Lines Matching refs:fp
135 memmap_file_state_t *fp; in memmap_block_seek() local
141 fp = (memmap_file_state_t *) entity->info; in memmap_block_seek()
145 ((unsigned long long)offset < fp->size)); in memmap_block_seek()
148 fp->file_pos = (unsigned long long)offset; in memmap_block_seek()
172 memmap_file_state_t *fp; in memmap_block_read() local
178 fp = (memmap_file_state_t *) entity->info; in memmap_block_read()
181 pos_after = fp->file_pos + length; in memmap_block_read()
182 assert((pos_after >= fp->file_pos) && (pos_after <= fp->size)); in memmap_block_read()
185 (void *)((uintptr_t)(fp->base + fp->file_pos)), length); in memmap_block_read()
190 fp->file_pos = pos_after; in memmap_block_read()
200 memmap_file_state_t *fp; in memmap_block_write() local
206 fp = (memmap_file_state_t *) entity->info; in memmap_block_write()
209 pos_after = fp->file_pos + length; in memmap_block_write()
210 assert((pos_after >= fp->file_pos) && (pos_after <= fp->size)); in memmap_block_write()
212 memcpy((void *)((uintptr_t)(fp->base + fp->file_pos)), in memmap_block_write()
218 fp->file_pos = pos_after; in memmap_block_write()