Home
last modified time | relevance | path

Searched refs:file_pos (Results 1 – 17 of 17) sorted by relevance

/external/arm-trusted-firmware/drivers/io/
Dio_memmap.c28 unsigned long long file_pos; member
118 current_memmap_file.file_pos = 0; in memmap_block_open()
148 fp->file_pos = (unsigned long long)offset; in memmap_block_seek()
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()
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()
[all …]
Dio_block.c22 unsigned long long file_pos; member
144 cur->file_pos = 0; in block_open()
162 cur->file_pos = (unsigned long long)offset; in block_seek()
165 cur->file_pos += (unsigned long long)offset; in block_seek()
170 assert(cur->file_pos < cur->size); in block_seek()
291 skip = cur->file_pos & (block_size - 1U); in block_read()
297 lba = (cur->file_pos + cur->base) / block_size; in block_read()
341 cur->file_pos += nbytes; in block_read()
404 skip = cur->file_pos & (block_size - 1U); in block_write()
410 lba = (cur->file_pos + cur->base) / block_size; in block_write()
[all …]
Dio_fip.c37 unsigned int file_pos; member
350 current_fip_file.file_pos = 0; in fip_file_open()
404 file_offset = fp->entry.offset_address + fp->file_pos; in fip_file_read()
422 fp->file_pos += bytes_read; in fip_file_read()
/external/arm-trusted-firmware/drivers/intel/soc/stratix10/io/
Ds10_memmap_qspi.c30 unsigned long long file_pos; member
121 current_file.file_pos = 0; in memmap_block_open()
151 fp->file_pos = offset; in memmap_block_seek()
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()
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()
[all …]
/external/arm-trusted-firmware/drivers/renesas/common/io/
Dio_memdrv.c32 signed long long file_pos; member
58 current_file.file_pos = 0; in memdrv_block_open()
73 ((file_state_t *) entity->info)->file_pos = offset; in memdrv_block_seek()
87 (unsigned long long)fp->file_pos, length, length); in memdrv_block_read()
89 if (FLASH_MEMORY_SIZE < (fp->file_pos + (signed long long)length)) { in memdrv_block_read()
94 rcar_dma_exec(buffer, fp->base + (uintptr_t)fp->file_pos, length); in memdrv_block_read()
95 fp->file_pos += (signed long long)length; in memdrv_block_read()
Dio_emmcdrv.c28 signed long long file_pos; member
48 ((file_state_t *) entity->info)->file_pos = offset; in emmcdrv_block_seek()
60 sector_add = current_file.file_pos >> EMMC_SECTOR_SIZE_SHIFT; in emmcdrv_block_read()
65 current_file.partition, current_file.file_pos, in emmcdrv_block_read()
78 fp->file_pos += (signed long long)length; in emmcdrv_block_read()
93 current_file.file_pos = 0; in emmcdrv_block_open()
/external/zlib/contrib/minizip/
Dunzip.h266 unz_file_pos* file_pos);
270 unz_file_pos* file_pos);
280 unz64_file_pos* file_pos);
284 const unz64_file_pos* file_pos);
Dunzip.c1304 extern int ZEXPORT unzGetFilePos64(unzFile file, unz64_file_pos* file_pos) in unzGetFilePos64() argument
1308 if (file==NULL || file_pos==NULL) in unzGetFilePos64()
1314 file_pos->pos_in_zip_directory = s->pos_in_central_dir; in unzGetFilePos64()
1315 file_pos->num_of_file = s->num_file; in unzGetFilePos64()
1322 unz_file_pos* file_pos) in unzGetFilePos() argument
1328 file_pos->pos_in_zip_directory = (uLong)file_pos64.pos_in_zip_directory; in unzGetFilePos()
1329 file_pos->num_of_file = (uLong)file_pos64.num_of_file; in unzGetFilePos()
1334 extern int ZEXPORT unzGoToFilePos64(unzFile file, const unz64_file_pos* file_pos) in unzGoToFilePos64() argument
1339 if (file==NULL || file_pos==NULL) in unzGoToFilePos64()
1344 s->pos_in_central_dir = file_pos->pos_in_zip_directory; in unzGoToFilePos64()
[all …]
/external/rust/crates/libz-sys/src/zlib/contrib/minizip/
Dunzip.h266 unz_file_pos* file_pos);
270 unz_file_pos* file_pos);
280 unz64_file_pos* file_pos);
284 const unz64_file_pos* file_pos);
Dunzip.c1308 extern int ZEXPORT unzGetFilePos64(unzFile file, unz64_file_pos* file_pos) in unzGetFilePos64() argument
1312 if (file==NULL || file_pos==NULL) in unzGetFilePos64()
1318 file_pos->pos_in_zip_directory = s->pos_in_central_dir; in unzGetFilePos64()
1319 file_pos->num_of_file = s->num_file; in unzGetFilePos64()
1326 unz_file_pos* file_pos) in unzGetFilePos() argument
1332 file_pos->pos_in_zip_directory = (uLong)file_pos64.pos_in_zip_directory; in unzGetFilePos()
1333 file_pos->num_of_file = (uLong)file_pos64.num_of_file; in unzGetFilePos()
1338 extern int ZEXPORT unzGoToFilePos64(unzFile file, const unz64_file_pos* file_pos) in unzGoToFilePos64() argument
1343 if (file==NULL || file_pos==NULL) in unzGoToFilePos64()
1348 s->pos_in_central_dir = file_pos->pos_in_zip_directory; in unzGoToFilePos64()
[all …]
/external/tensorflow/tensorflow/core/lib/io/snappy/
Dsnappy_test.cc95 size_t file_pos = 0; in TestMultipleWritesWriteFile() local
101 while ((file_reader->Read(file_pos, bytes_to_read, &data, scratch)).ok()) { in TestMultipleWritesWriteFile()
102 file_pos += data.size(); in TestMultipleWritesWriteFile()
/external/libhevc/test/decoder/
Dmain.c1736 UWORD32 file_pos = 0; in hevcdec_main() local
1819 file_pos = 0; in hevcdec_main()
2189 fseek(ps_ip_file, file_pos, SEEK_SET); in hevcdec_main()
2233 file_pos += u4_num_bytes_dec; in hevcdec_main()
2589 file_pos = 0; in hevcdec_main()
2591 fseek(ps_ip_file, file_pos, SEEK_SET); in hevcdec_main()
2635 fseek(ps_ip_file, file_pos, SEEK_SET); in hevcdec_main()
2653 file_pos = 0; in hevcdec_main()
2656 fseek(ps_ip_file, file_pos, SEEK_SET); in hevcdec_main()
2915 file_pos += u4_num_bytes_dec; in hevcdec_main()
/external/libmpeg2/test/decoder/
Dmain.c1769 UWORD32 file_pos = 0; in vdec_main() local
1853 file_pos = 0; in vdec_main()
2385 fseek(ps_ip_file, file_pos, SEEK_SET); in vdec_main()
2433 file_pos += u4_num_bytes_dec; in vdec_main()
2723 file_pos = 0; in vdec_main()
2725 fseek(ps_ip_file, file_pos, SEEK_SET); in vdec_main()
2769 fseek(ps_ip_file, file_pos, SEEK_SET); in vdec_main()
2787 file_pos = 0; in vdec_main()
2790 fseek(ps_ip_file, file_pos, SEEK_SET); in vdec_main()
3041 file_pos += u4_num_bytes_dec; in vdec_main()
/external/libavc/test/decoder/
Dmain.c1934 UWORD32 file_pos = 0; in h264dec_main() local
2019 file_pos = 0; in h264dec_main()
2435 fseek(ps_ip_file, file_pos, SEEK_SET); in h264dec_main()
2478 file_pos += u4_num_bytes_dec; in h264dec_main()
2903 fseek(ps_ip_file, file_pos, SEEK_SET); in h264dec_main()
2921 file_pos = 0; in h264dec_main()
2924 fseek(ps_ip_file, file_pos, SEEK_SET); in h264dec_main()
3287 file_pos += u4_num_bytes_dec; in h264dec_main()
/external/linux-kselftest/tools/testing/selftests/bpf/
Dtest_sysctl.c166 offsetof(struct bpf_sysctl, file_pos)),
189 offsetof(struct bpf_sysctl, file_pos)),
192 offsetof(struct bpf_sysctl, file_pos) + 3),
216 offsetof(struct bpf_sysctl, file_pos)),
/external/webrtc/test/
Drtp_file_reader.cc460 int32_t file_pos = ftell(file_); in ReadPacketHeader() local
476 TRY_PCAP(fseek(file_, file_pos, SEEK_SET)); in ReadPacketHeader()
/external/kernel-headers/original/uapi/linux/
Dbpf.h5191 __u32 file_pos; /* Sysctl file position to read from, write to. member