Home
last modified time | relevance | path

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

/trusted-firmware-a/drivers/intel/soc/stratix10/io/
A 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 …]
/trusted-firmware-a/drivers/io/
A 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 …]
A 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 …]
A 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()
/trusted-firmware-a/drivers/renesas/common/io/
A 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()
A 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()

Completed in 16 milliseconds