Home
last modified time | relevance | path

Searched refs:buffer (Results 1 – 25 of 92) sorted by relevance

1234

/trusted-firmware-a-3.7.0/drivers/nxp/flexspi/nor/
Dtest_fspi.c29 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()
50 NOTICE("[%d]: Success Erase: data in buffer[%d] 0x%08x\n", __LINE__, i-3, buffer[i-3]); 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()
70 NOTICE("[%d]: Success IpWrite with IP READ in buffer[%d] 0x%08x\n", __LINE__, i-3, buffer[i-3]); in fspi_test()
[all …]
/trusted-firmware-a-3.7.0/plat/st/common/
Dstm32cubeprogrammer_usb.c25 uint8_t buffer[UCHAR_MAX]; member
37 snprintf((char *)&dfu->buffer[GET_PHASE_LEN], \
38 sizeof(dfu->buffer) - GET_PHASE_LEN, \
55 static int dfu_callback_upload(uint8_t alt, uintptr_t *buffer, uint32_t *len, in dfu_callback_upload() argument
65 dfu->buffer[0] = dfu->phase; in dfu_callback_upload()
66 dfu->buffer[1] = (uint8_t)(dfu->address); in dfu_callback_upload()
67 dfu->buffer[2] = (uint8_t)(dfu->address >> 8); in dfu_callback_upload()
68 dfu->buffer[3] = (uint8_t)(dfu->address >> 16); in dfu_callback_upload()
69 dfu->buffer[4] = (uint8_t)(dfu->address >> 24); in dfu_callback_upload()
70 dfu->buffer[5] = 0x00; in dfu_callback_upload()
[all …]
Dstm32cubeprogrammer_uart.c354 static int uart_start_cmd(uintptr_t buffer) in uart_start_cmd() argument
391 if (!is_valid_header((fip_toc_header_t *)buffer)) { in uart_start_cmd()
393 buffer, handle.phase); in uart_start_cmd()
401 static int uart_read(uint8_t id, uintptr_t buffer, size_t length) in uart_read() argument
409 handle.addr = (uint8_t *)buffer; in uart_read()
413 id, buffer, length); in uart_read()
449 ret = uart_send_phase((uint32_t)buffer); in uart_read()
461 ret = uart_start_cmd(buffer); in uart_read()
/trusted-firmware-a-3.7.0/drivers/st/crypto/
Dstm32_hash.c91 uint32_t buffer; member
214 int stm32_hash_update(const uint8_t *buffer, size_t length) in stm32_hash_update() argument
219 if ((length == 0U) || (buffer == NULL)) { in stm32_hash_update()
230 memcpy(((uint8_t *)&stm32_remain.buffer) + stm32_remain.length, in stm32_hash_update()
231 buffer, copysize); in stm32_hash_update()
233 buffer += copysize; in stm32_hash_update()
235 ret = hash_write_data(stm32_remain.buffer); in stm32_hash_update()
247 memcpy(&tmp_buf, buffer, sizeof(uint32_t)); in stm32_hash_update()
253 buffer += sizeof(uint32_t); in stm32_hash_update()
260 memcpy((uint8_t *)&stm32_remain.buffer, buffer, remain_length); in stm32_hash_update()
[all …]
/trusted-firmware-a-3.7.0/plat/intel/soc/common/soc/
Dsocfpga_handoff.c18 uint32_t *buffer; in socfpga_get_handoff() local
26 buffer = (uint32_t *)reverse_hoff_ptr; in socfpga_get_handoff()
30 buffer[i] = SWAP_UINT32(buffer[i]); in socfpga_get_handoff()
/trusted-firmware-a-3.7.0/lib/semihosting/
Dsemihosting.c27 uintptr_t buffer; member
76 long semihosting_file_read(long file_handle, size_t *length, uintptr_t buffer) in semihosting_file_read() argument
81 if ((length == NULL) || (buffer == (uintptr_t)NULL)) { in semihosting_file_read()
86 read_block.buffer = buffer; in semihosting_file_read()
102 const uintptr_t buffer) in semihosting_file_write() argument
107 if ((length == NULL) || (buffer == (uintptr_t)NULL)) { in semihosting_file_write()
112 write_block.buffer = (uintptr_t)buffer; /* cast away const */ in semihosting_file_write()
/trusted-firmware-a-3.7.0/drivers/marvell/
Dio_win.c187 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()
Dccu.c279 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-3.7.0/drivers/io/
Dio_block.c33 static int block_read(io_entity_t *entity, uintptr_t buffer, size_t length,
35 static int block_write(io_entity_t *entity, const uintptr_t buffer,
244 static int block_read(io_entity_t *entity, uintptr_t buffer, size_t length, in block_read() argument
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()
[all …]
Dio_semihosting.c30 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()
Dio_memmap.c47 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-3.7.0/include/drivers/marvell/
Di2c.h15 unsigned int addr, int alen, uint8_t *buffer, int len);
18 unsigned int addr, int alen, uint8_t *buffer, int len);
/trusted-firmware-a-3.7.0/include/drivers/mentor/
Dmi2cv.h35 unsigned int addr, int alen, uint8_t *buffer, int len);
38 unsigned int addr, int alen, uint8_t *buffer, int len);
/trusted-firmware-a-3.7.0/plat/nvidia/tegra/soc/t210/drivers/se/
Dsecurity_engine.c418 se_dev->dst_ll_buf->buffer[0].addr = ((uint64_t)(&(((tegra_se_context_t *) in tegra_se_lp_generate_random_data()
420 se_dev->dst_ll_buf->buffer[0].data_len = SE_CTX_SAVE_RANDOM_DATA_SIZE; in tegra_se_lp_generate_random_data()
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()
515 se_dev->dst_ll_buf->buffer[0].addr = ((uint64_t)(&(((tegra_se_context_t *) in tegra_se_lp_sticky_bits_context_save()
517 se_dev->dst_ll_buf->buffer[0].data_len = SE_CTX_SAVE_STICKY_BITS_SIZE; in tegra_se_lp_sticky_bits_context_save()
533 se_dev->dst_ll_buf->buffer[0].addr += SE_CTX_SAVE_STICKY_BITS_SIZE; in tegra_se_lp_sticky_bits_context_save()
553 se_dev->dst_ll_buf->buffer[0].addr = ((uint64_t)(&( in tegra_se_aeskeytable_context_save()
[all …]
/trusted-firmware-a-3.7.0/include/drivers/st/
Dstm32_hash.h25 int stm32_hash_update(const uint8_t *buffer, size_t length);
27 int stm32_hash_final_update(const uint8_t *buffer, uint32_t buf_length,
/trusted-firmware-a-3.7.0/drivers/intel/soc/stratix10/io/
Ds10_memmap_qspi.c49 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-3.7.0/include/drivers/io/
Dio_mtd.h35 int (*read)(unsigned int offset, uintptr_t buffer, size_t length,
46 int (*write)(unsigned int offset, uintptr_t buffer, size_t length);
Dio_driver.h44 int (*read)(io_entity_t *entity, uintptr_t buffer, size_t length,
46 int (*write)(io_entity_t *entity, const uintptr_t buffer,
/trusted-firmware-a-3.7.0/include/drivers/
Dnand.h33 uintptr_t buffer);
47 int nand_read(unsigned int offset, uintptr_t buffer, size_t length,
/trusted-firmware-a-3.7.0/include/drivers/brcm/i2c/
Di2c.h132 uint8_t *buffer,
157 uint8_t *buffer,
/trusted-firmware-a-3.7.0/drivers/mtd/nand/
Dcore.c35 int nand_read(unsigned int offset, uintptr_t buffer, size_t length, in nand_read() argument
100 memcpy((uint8_t *)buffer, in nand_read()
108 buffer); in nand_read()
117 buffer += bytes_read; in nand_read()
/trusted-firmware-a-3.7.0/plat/st/common/include/
Dusb_dfu.h57 int (*upload)(uint8_t alt, uintptr_t *buffer, uint32_t *len,
59 int (*download)(uint8_t alt, uintptr_t *buffer, uint32_t *len,
/trusted-firmware-a-3.7.0/tools/fiptool/
Dwin_posix.h136 inline int fstat(int fd, struct _stat *buffer) in fstat() argument
138 return _fstat(fd, buffer); in fstat()
/trusted-firmware-a-3.7.0/include/lib/
Dsemihosting.h44 long semihosting_file_read(long file_handle, size_t *length, uintptr_t buffer);
47 const uintptr_t buffer);
/trusted-firmware-a-3.7.0/drivers/renesas/common/io/
Dio_emmcdrv.c53 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()

1234