/trusted-firmware-a-3.7.0/tools/nxp/create_pbl/ |
D | byte_swap.c | 34 int do_byteswap(FILE *fp) in do_byteswap() argument 46 fseek(fp, 0L, SEEK_END); in do_byteswap() 47 bytes = ftell(fp); in do_byteswap() 51 if (fwrite(&pad, append_bytes, NUM_MEM_BLOCK, fp) in do_byteswap() 60 rewind(fp); in do_byteswap() 62 if ((fread(&upper_byte, sizeof(upper_byte), NUM_MEM_BLOCK, fp) in do_byteswap() 63 != NUM_MEM_BLOCK) && (feof(fp) == 0)) { in do_byteswap() 67 if ((fread(&lower_byte, sizeof(lower_byte), NUM_MEM_BLOCK, fp) in do_byteswap() 68 != NUM_MEM_BLOCK) && (feof(fp) == 0)) { in do_byteswap() 72 fseek(fp, -8L, SEEK_CUR); in do_byteswap() [all …]
|
D | create_pbl.c | 443 FILE *fp; in get_filesize() local 446 fp = fopen(c, "rb"); in get_filesize() 447 if (fp == NULL) { in get_filesize() 453 fseek(fp, 0L, SEEK_END); in get_filesize() 454 ret = ftell(fp); in get_filesize() 455 fclose(fp); in get_filesize()
|
/trusted-firmware-a-3.7.0/drivers/intel/soc/stratix10/io/ |
D | s10_memmap_qspi.c | 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() [all …]
|
/trusted-firmware-a-3.7.0/drivers/io/ |
D | io_memmap.c | 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() [all …]
|
D | io_fip.c | 383 fip_file_state_t *fp; in fip_file_read() local 401 fp = (fip_file_state_t *)entity->info; in fip_file_read() 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-3.7.0/drivers/renesas/common/io/ |
D | io_memdrv.c | 81 file_state_t *fp; in memdrv_block_read() local 83 fp = (file_state_t *) entity->info; in memdrv_block_read() 86 buffer, (unsigned long long)fp->base + in memdrv_block_read() 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()
|
D | io_emmcdrv.c | 56 file_state_t *fp = (file_state_t *) entity->info; in emmcdrv_block_read() local 78 fp->file_pos += (signed long long)length; in emmcdrv_block_read()
|
D | io_rcar.c | 550 file_state_t *fp = (file_state_t *) entity->info; in rcar_file_read() local 551 ssize_t offset = fp->offset + fp->position; in rcar_file_read() 565 ((io_drv_spec_t *) rcar_spec)->partition = fp->partition; in rcar_file_read() 593 fp->position += *cnt; in rcar_file_read()
|
/trusted-firmware-a-3.7.0/tools/cert_create/src/ |
D | key.c | 254 FILE *fp = fopen(key->fn, "r"); in key_load() local 255 if (fp == NULL) { in key_load() 260 key->key = PEM_read_PrivateKey(fp, NULL, NULL, NULL); in key_load() 261 fclose(fp); in key_load() 274 FILE *fp; in key_store() local 281 fp = fopen(key->fn, "w"); in key_store() 282 if (fp) { in key_store() 283 PEM_write_PrivateKey(fp, key->key, in key_store() 285 fclose(fp); in key_store()
|
/trusted-firmware-a-3.7.0/tools/fiptool/ |
D | fiptool.c | 134 static void xfwrite(void *buf, size_t size, FILE *fp, const char *filename) in xfwrite() argument 136 if (fwrite(buf, 1, size, fp) != size) in xfwrite() 299 FILE *fp; in parse_fip() local 306 fp = fopen(filename, "rb"); in parse_fip() 307 if (fp == NULL) in parse_fip() 310 if (fstat(fileno(fp), &st) == -1) in parse_fip() 317 if (ioctl(fileno(fp), BLKGETSIZE64, &st_size) == -1) in parse_fip() 322 if (fread(buf, 1, st_size, fp) != st_size) in parse_fip() 325 fclose(fp); in parse_fip() 403 FILE *fp; in read_image_from_file() local [all …]
|
/trusted-firmware-a-3.7.0/docs/ |
D | change-log.md | 3532 …- add support to save and restore fp regs ([15dd6f1](https://review.trustedfirmware.org/plugins/gi…
|