Lines Matching refs:entity
48 io_entity_t *entity);
49 static int fip_file_len(io_entity_t *entity, size_t *length);
50 static int fip_file_read(io_entity_t *entity, uintptr_t buffer, size_t length,
52 static int fip_file_close(io_entity_t *entity);
178 io_entity_t *entity) in fip_file_open() argument
187 assert(entity != NULL); in fip_file_open()
241 entity->info = (uintptr_t)¤t_file; in fip_file_open()
257 static int fip_file_len(io_entity_t *entity, size_t *length) in fip_file_len() argument
259 assert(entity != NULL); in fip_file_len()
262 *length = ((file_state_t *)entity->info)->entry.size; in fip_file_len()
269 static int fip_file_read(io_entity_t *entity, uintptr_t buffer, size_t length, in fip_file_read() argument
278 assert(entity != NULL); in fip_file_read()
281 assert(entity->info != (uintptr_t)NULL); in fip_file_read()
292 fp = (file_state_t *)entity->info; in fip_file_read()
325 static int fip_file_close(io_entity_t *entity) in fip_file_close() argument
335 entity->info = 0; in fip_file_close()