Home
last modified time | relevance | path

Searched refs:io_entity_t (Results 1 – 6 of 6) sorted by relevance

/device/linaro/bootloader/arm-trusted-firmware/include/drivers/io/
Dio_driver.h43 } io_entity_t; typedef
65 io_entity_t *entity);
66 int (*seek)(io_entity_t *entity, int mode, ssize_t offset);
67 int (*size)(io_entity_t *entity, size_t *length);
68 int (*read)(io_entity_t *entity, uintptr_t buffer, size_t length,
70 int (*write)(io_entity_t *entity, const uintptr_t buffer,
72 int (*close)(io_entity_t *entity);
/device/linaro/bootloader/arm-trusted-firmware/drivers/io/
Dio_storage.c39 static io_entity_t entity_pool[MAX_IO_HANDLES];
43 static io_entity_t *entity_map[MAX_IO_HANDLES];
79 const io_entity_t *entity = (io_entity_t *)handle; in is_valid_entity()
109 static void set_handle(uintptr_t *handle, io_entity_t *entity) in set_handle()
117 static int find_first_entity(const io_entity_t *entity, unsigned int *index_out) in find_first_entity()
132 static int allocate_entity(io_entity_t **entity) in allocate_entity()
151 static int free_entity(const io_entity_t *entity) in free_entity()
252 io_entity_t *entity; in io_open()
276 io_entity_t *entity = (io_entity_t *)handle; in io_seek()
295 io_entity_t *entity = (io_entity_t *)handle; in io_size()
[all …]
Dio_semihosting.c49 io_entity_t *entity);
50 static int sh_file_seek(io_entity_t *entity, int mode, ssize_t offset);
51 static int sh_file_len(io_entity_t *entity, size_t *length);
52 static int sh_file_read(io_entity_t *entity, uintptr_t buffer, size_t length,
54 static int sh_file_write(io_entity_t *entity, const uintptr_t buffer,
56 static int sh_file_close(io_entity_t *entity);
96 const uintptr_t spec, io_entity_t *entity) in sh_file_open()
118 static int sh_file_seek(io_entity_t *entity, int mode, ssize_t offset) in sh_file_seek()
136 static int sh_file_len(io_entity_t *entity, size_t *length) in sh_file_len()
156 static int sh_file_read(io_entity_t *entity, uintptr_t buffer, size_t length, in sh_file_read()
[all …]
Dio_memmap.c61 io_entity_t *entity);
62 static int memmap_block_seek(io_entity_t *entity, int mode,
64 static int memmap_block_read(io_entity_t *entity, uintptr_t buffer,
66 static int memmap_block_write(io_entity_t *entity, const uintptr_t buffer,
68 static int memmap_block_close(io_entity_t *entity);
121 io_entity_t *entity) in memmap_block_open()
150 static int memmap_block_seek(io_entity_t *entity, int mode, ssize_t offset) in memmap_block_seek()
170 static int memmap_block_read(io_entity_t *entity, uintptr_t buffer, in memmap_block_read()
192 static int memmap_block_write(io_entity_t *entity, const uintptr_t buffer, in memmap_block_write()
215 static int memmap_block_close(io_entity_t *entity) in memmap_block_close()
Dio_block.c68 io_entity_t *entity);
69 static int block_seek(io_entity_t *entity, int mode, ssize_t offset);
70 static int block_read(io_entity_t *entity, uintptr_t buffer,
72 static int block_write(io_entity_t *entity, uintptr_t buffer,
74 static int block_close(io_entity_t *entity);
142 io_entity_t *entity) in block_open()
172 static int block_seek(io_entity_t *entity, int mode, ssize_t offset) in block_seek()
192 static int block_read(io_entity_t *entity, uintptr_t buffer, in block_read()
223 static int block_write(io_entity_t *entity, uintptr_t buffer, in block_write()
255 static int block_close(io_entity_t *entity) in block_close()
Dio_fip.c107 io_entity_t *entity);
108 static int fip_file_len(io_entity_t *entity, size_t *length);
109 static int fip_file_read(io_entity_t *entity, uintptr_t buffer, size_t length,
111 static int fip_file_close(io_entity_t *entity);
260 io_entity_t *entity) in fip_file_open()
342 static int fip_file_len(io_entity_t *entity, size_t *length) in fip_file_len()
354 static int fip_file_read(io_entity_t *entity, uintptr_t buffer, size_t length, in fip_file_read()
410 static int fip_file_close(io_entity_t *entity) in fip_file_close()