Home
last modified time | relevance | path

Searched refs:file_handle_t (Results 1 – 3 of 3) sorted by relevance

/aosp12/system/core/trusty/storage/lib/include/trusty/lib/
H A Dstorage.h27 typedef uint64_t file_handle_t; typedef
76 int storage_open_file(storage_session_t session, file_handle_t *handle_p,
83 void storage_close_file(file_handle_t handle);
105 ssize_t storage_read(file_handle_t handle,
118 ssize_t storage_write(file_handle_t handle,
130 int storage_set_file_size(file_handle_t handle, storage_off_t file_size,
141 int storage_get_file_size(file_handle_t handle, storage_off_t *size);
/aosp12/system/core/trusty/storage/tests/
H A Dmain.cpp251 file_handle_t handle; in TEST_P()
296 file_handle_t handle; in TEST_P()
333 file_handle_t handle; in TEST_P()
367 file_handle_t handle; in TEST_P()
395 file_handle_t handle; in TEST_P()
422 file_handle_t handle; in TEST_P()
464 file_handle_t handle; in TEST_P()
590 file_handle_t handle; in TEST_P()
636 file_handle_t handle; in TEST_P()
679 file_handle_t handle; in TEST_P()
[all …]
/aosp12/system/core/trusty/storage/lib/
H A Dstorage.c32 static inline file_handle_t make_file_handle(storage_session_t s, uint32_t fid) in make_file_handle()
37 static inline storage_session_t _to_session(file_handle_t fh) in _to_session()
42 static inline uint32_t _to_handle(file_handle_t fh) in _to_handle()
143 int storage_open_file(storage_session_t session, file_handle_t *handle_p, const char *name, in storage_open_file()
166 void storage_close_file(file_handle_t fh) in storage_close_file()
191 static int _read_chunk(file_handle_t fh, storage_off_t off, void *buf, size_t size) in _read_chunk()
202 ssize_t storage_read(file_handle_t fh, storage_off_t off, void *buf, size_t size) in storage_read()
225 static int _write_req(file_handle_t fh, storage_off_t off, in _write_req()
238 ssize_t storage_write(file_handle_t fh, storage_off_t off, in storage_write()
268 int storage_set_file_size(file_handle_t fh, storage_off_t file_size, uint32_t opflags) in storage_set_file_size()
[all …]