/trusted-firmware-a/drivers/nxp/flexspi/nor/ |
A D | test_fspi.c | 29 uint32_t buffer[SIZE_BUFFER]; in fspi_test() local 40 xspi_ip_read((fspi_test_addr), buffer, size * 4); in fspi_test() 44 if (fspi_swap32(0xffffffff) != buffer[i]) { in fspi_test() 52 ERROR("Erase: Failed -->xxx with buffer[%d]=0x%08x\n", i, buffer[i]); in fspi_test() 56 buffer[i] = 0x12345678; in fspi_test() 59 xspi_write(fspi_test_addr, (void *)buffer, (size * 4 + extra)); in fspi_test() 61 xspi_ip_read(fspi_test_addr, buffer, (size * 4 + extra)); in fspi_test() 64 if (fspi_swap32(0x12345678) != buffer[i]) { in fspi_test() 72 ERROR("Write: Failed -->xxxx with IP READ in buffer[%d]=0x%08x\n", i, buffer[i]); in fspi_test() 77 xspi_read((fspi_test_addr), buffer, (size * 4 + extra)); in fspi_test() [all …]
|
/trusted-firmware-a/plat/st/common/ |
A D | stm32cubeprogrammer_usb.c | 24 uint8_t buffer[UCHAR_MAX]; member 37 sizeof(dfu->buffer) - GET_PHASE_LEN, \ 64 dfu->buffer[0] = dfu->phase; in dfu_callback_upload() 65 dfu->buffer[1] = (uint8_t)(dfu->address); in dfu_callback_upload() 69 dfu->buffer[5] = 0x00; in dfu_callback_upload() 70 dfu->buffer[6] = 0x00; in dfu_callback_upload() 71 dfu->buffer[7] = 0x00; in dfu_callback_upload() 72 dfu->buffer[8] = 0x00; in dfu_callback_upload() 77 dfu->buffer[length++] = 0x01; in dfu_callback_upload() 96 *buffer = (uintptr_t)dfu->buffer; in dfu_callback_upload() [all …]
|
/trusted-firmware-a/drivers/st/crypto/ |
A D | stm32_hash.c | 71 uint32_t buffer; member 183 int stm32_hash_update(const uint8_t *buffer, size_t length) in stm32_hash_update() argument 188 if ((length == 0U) || (buffer == NULL)) { in stm32_hash_update() 200 buffer, copysize); in stm32_hash_update() 202 buffer += copysize; in stm32_hash_update() 204 ret = hash_write_data(stm32_remain.buffer); in stm32_hash_update() 216 memcpy(&tmp_buf, buffer, sizeof(uint32_t)); in stm32_hash_update() 222 buffer += sizeof(uint32_t); in stm32_hash_update() 229 memcpy((uint8_t *)&stm32_remain.buffer, buffer, remain_length); in stm32_hash_update() 246 ret = hash_write_data(stm32_remain.buffer); in stm32_hash_final() [all …]
|
/trusted-firmware-a/lib/semihosting/ |
A D | semihosting.c | 27 uintptr_t buffer; member 74 long semihosting_file_read(long file_handle, size_t *length, uintptr_t buffer) in semihosting_file_read() argument 79 if ((length == NULL) || (buffer == (uintptr_t)NULL)) { in semihosting_file_read() 84 read_block.buffer = buffer; in semihosting_file_read() 100 const uintptr_t buffer) in semihosting_file_write() argument 105 if ((length == NULL) || (buffer == (uintptr_t)NULL)) { in semihosting_file_write() 110 write_block.buffer = (uintptr_t)buffer; /* cast away const */ in semihosting_file_write()
|
/trusted-firmware-a/plat/intel/soc/common/soc/ |
A D | socfpga_handoff.c | 17 uint32_t *buffer; in socfpga_get_handoff() local 21 buffer = (uint32_t *)reverse_hoff_ptr; in socfpga_get_handoff() 25 buffer[i] = SWAP_UINT32(buffer[i]); in socfpga_get_handoff()
|
/trusted-firmware-a/drivers/marvell/ |
A D | io_win.c | 187 uint32_t *buffer) in iow_save_win_range() argument 193 buffer[idx++] = mmio_read_32(IO_WIN_CR_OFFSET(ap_id, win_id)); in iow_save_win_range() 194 buffer[idx++] = mmio_read_32(IO_WIN_ALR_OFFSET(ap_id, win_id)); in iow_save_win_range() 195 buffer[idx++] = mmio_read_32(IO_WIN_AHR_OFFSET(ap_id, win_id)); in iow_save_win_range() 197 buffer[idx] = mmio_read_32(MVEBU_IO_WIN_BASE(ap_id) + in iow_save_win_range() 202 uint32_t *buffer) in iow_restore_win_range() argument 208 mmio_write_32(IO_WIN_CR_OFFSET(ap_id, win_id), buffer[idx++]); in iow_restore_win_range() 209 mmio_write_32(IO_WIN_ALR_OFFSET(ap_id, win_id), buffer[idx++]); in iow_restore_win_range() 210 mmio_write_32(IO_WIN_AHR_OFFSET(ap_id, win_id), buffer[idx++]); in iow_restore_win_range() 213 buffer[idx++]); in iow_restore_win_range()
|
A D | ccu.c | 279 int win_last, uint32_t *buffer) in ccu_save_win_range() argument 284 buffer[idx++] = mmio_read_32(CCU_WIN_CR_OFFSET(ap_id, win_id)); in ccu_save_win_range() 285 buffer[idx++] = mmio_read_32(CCU_WIN_SCR_OFFSET(ap_id, win_id)); in ccu_save_win_range() 286 buffer[idx++] = mmio_read_32(CCU_WIN_ALR_OFFSET(ap_id, win_id)); in ccu_save_win_range() 287 buffer[idx++] = mmio_read_32(CCU_WIN_AHR_OFFSET(ap_id, win_id)); in ccu_save_win_range() 289 buffer[idx] = mmio_read_32(CCU_WIN_GCR_OFFSET(ap_id)); in ccu_save_win_range() 294 int win_last, uint32_t *buffer) in ccu_restore_win_range() argument 299 mmio_write_32(CCU_WIN_CR_OFFSET(ap_id, win_id), buffer[idx++]); in ccu_restore_win_range() 300 mmio_write_32(CCU_WIN_SCR_OFFSET(ap_id, win_id), buffer[idx++]); in ccu_restore_win_range() 301 mmio_write_32(CCU_WIN_ALR_OFFSET(ap_id, win_id), buffer[idx++]); in ccu_restore_win_range() [all …]
|
/trusted-firmware-a/drivers/io/ |
A D | io_block.c | 35 static int block_write(io_entity_t *entity, const uintptr_t buffer, 270 buf = &(cur->dev_spec->buffer); in block_read() 337 memcpy((void *)(buffer + count), in block_read() 356 static int block_write(io_entity_t *entity, const uintptr_t buffer, in block_write() argument 382 buf = &(cur->dev_spec->buffer); in block_write() 468 (void *)(buffer + count), in block_write() 503 io_block_spec_t *buffer; in block_dev_open() local 516 buffer = &(cur->dev_spec->buffer); in block_dev_open() 520 ((buffer->offset % block_size) == 0U) && in block_dev_open() 521 ((buffer->length % block_size) == 0U)); in block_dev_open() [all …]
|
A D | io_semihosting.c | 30 static int sh_file_read(io_entity_t *entity, uintptr_t buffer, size_t length, 32 static int sh_file_write(io_entity_t *entity, const uintptr_t buffer, 127 static int sh_file_read(io_entity_t *entity, uintptr_t buffer, size_t length, in sh_file_read() argument 140 sh_result = semihosting_file_read(file_handle, &bytes, buffer); in sh_file_read() 152 static int sh_file_write(io_entity_t *entity, const uintptr_t buffer, in sh_file_write() argument 164 sh_result = semihosting_file_write(file_handle, &bytes, buffer); in sh_file_write()
|
A D | io_memmap.c | 47 static int memmap_block_read(io_entity_t *entity, uintptr_t buffer, 49 static int memmap_block_write(io_entity_t *entity, const uintptr_t buffer, 169 static int memmap_block_read(io_entity_t *entity, uintptr_t buffer, in memmap_block_read() argument 184 memcpy((void *)buffer, in memmap_block_read() 197 static int memmap_block_write(io_entity_t *entity, const uintptr_t buffer, in memmap_block_write() argument 213 (void *)buffer, length); in memmap_block_write()
|
/trusted-firmware-a/plat/nvidia/tegra/soc/t210/drivers/se/ |
A D | security_engine.c | 473 se_dev->src_ll_buf->buffer[0].addr = src_addr; in tegra_se_lp_data_context_save() 474 se_dev->src_ll_buf->buffer[0].data_len = data_size; in tegra_se_lp_data_context_save() 475 se_dev->dst_ll_buf->buffer[0].addr = dst_addr; in tegra_se_lp_data_context_save() 476 se_dev->dst_ll_buf->buffer[0].data_len = data_size; in tegra_se_lp_data_context_save() 553 se_dev->dst_ll_buf->buffer[0].addr = ((uint64_t)(&( in tegra_se_aeskeytable_context_save() 577 se_dev->dst_ll_buf->buffer[0].addr = ((uint64_t)(&( in tegra_se_aeskeytable_context_save() 640 se_dev->dst_ll_buf->buffer[0].addr = ((uint64_t)(&( in tegra_se_lp_rsakeytable_context_save() 666 se_dev->dst_ll_buf->buffer[0].addr += in tegra_se_lp_rsakeytable_context_save() 681 se_dev->dst_ll_buf->buffer[0].addr = ((uint64_t)(&( in tegra_se_pkakeytable_sticky_bits_save() 709 se_dev->dst_ll_buf->buffer[0].addr = ((uint64_t)(&( in tegra_se_pkakeytable_context_save() [all …]
|
/trusted-firmware-a/drivers/intel/soc/stratix10/io/ |
A D | s10_memmap_qspi.c | 49 static int memmap_block_read(io_entity_t *entity, uintptr_t buffer, 51 static int memmap_block_write(io_entity_t *entity, const uintptr_t buffer, 172 static int memmap_block_read(io_entity_t *entity, uintptr_t buffer, in memmap_block_read() argument 188 cad_qspi_read((void *)buffer, fp->base + fp->file_pos, length); in memmap_block_read() 199 static int memmap_block_write(io_entity_t *entity, const uintptr_t buffer, in memmap_block_write() argument 214 memcpy((void *)(fp->base + fp->file_pos), (void *)buffer, length); in memmap_block_write()
|
/trusted-firmware-a/plat/intel/soc/common/ |
A D | socfpga_sip_svc.c | 47 static int intel_fpga_sdm_write_buffer(struct fpga_config_info *buffer) in intel_fpga_sdm_write_buffer() argument 51 while (max_blocks > 0 && buffer->size > buffer->size_written) { in intel_fpga_sdm_write_buffer() 53 args[1] = buffer->addr + buffer->size_written; in intel_fpga_sdm_write_buffer() 54 if (buffer->size - buffer->size_written <= bytes_per_block) { in intel_fpga_sdm_write_buffer() 55 args[2] = buffer->size - buffer->size_written; in intel_fpga_sdm_write_buffer() 61 buffer->size_written += args[2]; in intel_fpga_sdm_write_buffer() 65 buffer->subblocks_sent++; in intel_fpga_sdm_write_buffer()
|
/trusted-firmware-a/include/drivers/marvell/ |
A D | i2c.h | 15 unsigned int addr, int alen, uint8_t *buffer, int len); 18 unsigned int addr, int alen, uint8_t *buffer, int len);
|
/trusted-firmware-a/drivers/st/io/ |
A D | io_stm32image.c | 33 static int stm32image_partition_read(io_entity_t *entity, uintptr_t buffer, 246 static int stm32image_partition_read(io_entity_t *entity, uintptr_t buffer, in stm32image_partition_read() argument 256 assert(buffer != 0U); in stm32image_partition_read() 259 local_buffer = (uint8_t *)buffer; in stm32image_partition_read() 281 local_buffer = (uint8_t *)buffer; in stm32image_partition_read() 300 (header->load_address != buffer)) { in stm32image_partition_read() 336 result = stm32mp_check_header(header, buffer); in stm32image_partition_read() 343 result = stm32mp_auth_image(header, buffer); in stm32image_partition_read()
|
/trusted-firmware-a/include/drivers/mentor/ |
A D | mi2cv.h | 35 unsigned int addr, int alen, uint8_t *buffer, int len); 38 unsigned int addr, int alen, uint8_t *buffer, int len);
|
/trusted-firmware-a/drivers/mtd/nand/ |
A D | core.c | 24 int nand_read(unsigned int offset, uintptr_t buffer, size_t length, in nand_read() argument 83 memcpy((uint8_t *)buffer, in nand_read() 91 buffer); in nand_read() 100 buffer += bytes_read; in nand_read()
|
A D | raw_nand.c | 90 int nand_change_read_column_cmd(unsigned int offset, uintptr_t buffer, in nand_change_read_column_cmd() argument 121 return nand_read_data((uint8_t *)buffer, len, false); in nand_change_read_column_cmd() 125 uintptr_t buffer, unsigned int len) in nand_read_page_cmd() argument 133 buffer); in nand_read_page_cmd() 170 if (buffer != 0U) { in nand_read_page_cmd() 171 ret = nand_read_data((uint8_t *)buffer, len, false); in nand_read_page_cmd() 399 uintptr_t buffer) in nand_mtd_read_page_raw() argument 401 return nand_read_page_cmd(page, 0U, buffer, in nand_mtd_read_page_raw()
|
/trusted-firmware-a/include/drivers/st/ |
A D | stm32_hash.h | 17 int stm32_hash_update(const uint8_t *buffer, size_t length); 19 int stm32_hash_final_update(const uint8_t *buffer, uint32_t buf_length,
|
/trusted-firmware-a/include/drivers/io/ |
A D | io_mtd.h | 35 int (*read)(unsigned int offset, uintptr_t buffer, size_t length, 46 int (*write)(unsigned int offset, uintptr_t buffer, size_t length);
|
/trusted-firmware-a/include/drivers/ |
A D | nand.h | 33 uintptr_t buffer); 45 int nand_read(unsigned int offset, uintptr_t buffer, size_t length,
|
/trusted-firmware-a/drivers/renesas/common/io/ |
A D | io_emmcdrv.c | 53 static int32_t emmcdrv_block_read(io_entity_t *entity, uintptr_t buffer, in emmcdrv_block_read() argument 64 buffer, in emmcdrv_block_read() 68 if ((buffer + length - 1U) <= (uintptr_t)UINT32_MAX) { in emmcdrv_block_read() 72 if (emmc_read_sector((uint32_t *) buffer, sector_add, sector_num, in emmcdrv_block_read()
|
/trusted-firmware-a/docs/build/TF-A_2.5/_sources/components/ |
A D | debugfs-design.rst.txt | 40 - read(): read from a file to a buffer. 41 - write(): write from a buffer to a file. 82 shared buffer is used to pass path string parameters, or e.g. to exchange 92 - Special care is taken with the shared buffer to avoid TOCTOU attacks. 97 - In order to setup the shared buffer, the component consuming the interface 99 - In order to map the shared buffer, BL31 requires enabling the dynamic xlat 101 - Data exchange is limited by the shared buffer length. A large read operation 104 the internal work buffer, and re-entrancy into the filesystem layers.
|
/trusted-firmware-a/docs/components/ |
A D | debugfs-design.rst | 40 - read(): read from a file to a buffer. 41 - write(): write from a buffer to a file. 82 shared buffer is used to pass path string parameters, or e.g. to exchange 92 - Special care is taken with the shared buffer to avoid TOCTOU attacks. 97 - In order to setup the shared buffer, the component consuming the interface 99 - In order to map the shared buffer, BL31 requires enabling the dynamic xlat 101 - Data exchange is limited by the shared buffer length. A large read operation 104 the internal work buffer, and re-entrancy into the filesystem layers.
|
/trusted-firmware-a/include/drivers/brcm/i2c/ |
A D | i2c.h | 132 uint8_t *buffer, 157 uint8_t *buffer,
|