Lines Matching refs:fp
138 file_state_t *fp; in memmap_block_seek() local
144 fp = (file_state_t *) entity->info; in memmap_block_seek()
148 ((unsigned long long)offset < fp->size)); in memmap_block_seek()
151 fp->file_pos = offset; in memmap_block_seek()
175 file_state_t *fp; in memmap_block_read() local
181 fp = (file_state_t *) entity->info; in memmap_block_read()
184 pos_after = fp->file_pos + length; in memmap_block_read()
185 assert((pos_after >= fp->file_pos) && (pos_after <= fp->size)); in memmap_block_read()
188 cad_qspi_read((void *)buffer, fp->base + fp->file_pos, length); in memmap_block_read()
192 fp->file_pos = pos_after; in memmap_block_read()
202 file_state_t *fp; in memmap_block_write() local
208 fp = (file_state_t *) entity->info; in memmap_block_write()
211 pos_after = fp->file_pos + length; in memmap_block_write()
212 assert((pos_after >= fp->file_pos) && (pos_after <= fp->size)); in memmap_block_write()
214 memcpy((void *)(fp->base + fp->file_pos), (void *)buffer, length); in memmap_block_write()
219 fp->file_pos = pos_after; in memmap_block_write()