Lines Matching refs:entity
25 io_entity_t *entity);
26 static int sh_file_seek(io_entity_t *entity, int mode, ssize_t offset);
27 static int sh_file_len(io_entity_t *entity, size_t *length);
28 static int sh_file_read(io_entity_t *entity, uintptr_t buffer, size_t length,
30 static int sh_file_write(io_entity_t *entity, const uintptr_t buffer,
32 static int sh_file_close(io_entity_t *entity);
71 const uintptr_t spec, io_entity_t *entity) in sh_file_open() argument
78 assert(entity != NULL); in sh_file_open()
83 entity->info = (uintptr_t)sh_result; in sh_file_open()
91 static int sh_file_seek(io_entity_t *entity, int mode, ssize_t offset) in sh_file_seek() argument
95 assert(entity != NULL); in sh_file_seek()
97 file_handle = (long)entity->info; in sh_file_seek()
106 static int sh_file_len(io_entity_t *entity, size_t *length) in sh_file_len() argument
110 assert(entity != NULL); in sh_file_len()
113 long sh_handle = (long)entity->info; in sh_file_len()
126 static int sh_file_read(io_entity_t *entity, uintptr_t buffer, size_t length, in sh_file_read() argument
134 assert(entity != NULL); in sh_file_read()
138 file_handle = (long)entity->info; in sh_file_read()
152 static int sh_file_write(io_entity_t *entity, const uintptr_t buffer, in sh_file_write() argument
159 assert(entity != NULL); in sh_file_write()
163 file_handle = (long)entity->info; in sh_file_write()
174 static int sh_file_close(io_entity_t *entity) in sh_file_close() argument
179 assert(entity != NULL); in sh_file_close()
181 file_handle = (long)entity->info; in sh_file_close()