Searched refs:file_pos (Results 1 – 3 of 3) sorted by relevance
24 size_t file_pos; member115 current_file.file_pos = 0; in memmap_block_open()143 fp->file_pos = offset; in memmap_block_seek()177 pos_after = fp->file_pos + length; in memmap_block_read()178 assert((pos_after >= fp->file_pos) && (pos_after <= fp->size)); in memmap_block_read()180 memcpy((void *)buffer, (void *)(fp->base + fp->file_pos), length); in memmap_block_read()185 fp->file_pos = pos_after; in memmap_block_read()205 pos_after = fp->file_pos + length; in memmap_block_write()206 assert((pos_after >= fp->file_pos) && (pos_after <= fp->size)); in memmap_block_write()208 memcpy((void *)(fp->base + fp->file_pos), (void *)buffer, length); in memmap_block_write()[all …]
20 size_t file_pos; member140 cur->file_pos = 0; in block_open()158 cur->file_pos = offset; in block_seek()161 cur->file_pos += offset; in block_seek()166 assert(cur->file_pos < cur->size); in block_seek()200 skip = cur->file_pos % block_size; in block_read()206 lba = (cur->file_pos + cur->base) / block_size; in block_read()227 cur->file_pos += count - skip; in block_read()256 cur->file_pos += left; in block_read()269 skip = cur->file_pos % block_size; in block_read()[all …]
35 unsigned int file_pos; member240 current_file.file_pos = 0; in fip_file_open()295 file_offset = fp->entry.offset_address + fp->file_pos; in fip_file_read()312 fp->file_pos += bytes_read; in fip_file_read()