/trusted-firmware-m-3.6.0/platform/ext/target/nxp/common/Native_Driver/components/serial_manager/ |
D | fsl_component_serial_manager.c | 88 uint8_t *buffer; member 290 … writeHandle->transfer.buffer, writeHandle->transfer.length); in SerialManager_StartWriting() 296 … writeHandle->transfer.buffer, writeHandle->transfer.length); in SerialManager_StartWriting() 302 … writeHandle->transfer.buffer, writeHandle->transfer.length); in SerialManager_StartWriting() 308 … writeHandle->transfer.buffer, writeHandle->transfer.length); in SerialManager_StartWriting() 314 … writeHandle->transfer.buffer, writeHandle->transfer.length); in SerialManager_StartWriting() 320 … writeHandle->transfer.buffer, writeHandle->transfer.length); in SerialManager_StartWriting() 326 … writeHandle->transfer.buffer, writeHandle->transfer.length); in SerialManager_StartWriting() 332 … writeHandle->transfer.buffer, writeHandle->transfer.length); in SerialManager_StartWriting() 346 uint8_t *buffer, in SerialManager_StartReading() argument [all …]
|
D | fsl_component_serial_port_internal.h | 27 serial_manager_status_t Serial_UartWrite(serial_handle_t serialHandle, uint8_t *buffer, uint32_t le… 28 serial_manager_status_t Serial_UartRead(serial_handle_t serialHandle, uint8_t *buffer, uint32_t len… 45 serial_manager_status_t Serial_UartDmaWrite(serial_handle_t serialHandle, uint8_t *buffer, uint32_t… 64 serial_manager_status_t Serial_RpmsgWrite(serial_handle_t serialHandle, uint8_t *buffer, uint32_t l… 65 serial_manager_status_t Serial_RpmsgWriteBlocking(serial_handle_t serialHandle, uint8_t *buffer, ui… 67 serial_manager_status_t Serial_RpmsgRead(serial_handle_t serialHandle, uint8_t *buffer, uint32_t le… 86 serial_manager_status_t Serial_UsbCdcWrite(serial_handle_t serialHandle, uint8_t *buffer, uint32_t … 87 serial_manager_status_t Serial_UsbCdcRead(serial_handle_t serialHandle, uint8_t *buffer, uint32_t l… 101 serial_manager_status_t Serial_SwoWrite(serial_handle_t serialHandle, uint8_t *buffer, uint32_t len… 103 serial_manager_status_t Serial_SwoRead(serial_handle_t serialHandle, uint8_t *buffer, uint32_t leng… [all …]
|
D | fsl_component_serial_port_uart.c | 40 uint8_t *buffer; member 147 msg.buffer = &serialUartHandle->rx.readBuffer[0]; in Serial_UartCallback() 159 msg.buffer = serialUartHandle->tx.buffer; in Serial_UartCallback() 241 serial_manager_status_t Serial_UartWrite(serial_handle_t serialHandle, uint8_t *buffer, uint32_t le… in Serial_UartWrite() argument 250 assert(buffer); in Serial_UartWrite() 260 serialUartHandle->tx.buffer = buffer; in Serial_UartWrite() 264 transfer.data = buffer; in Serial_UartWrite() 270 …_UartSendNonBlocking(((hal_uart_handle_t)&serialUartHandle->usartHandleBuffer[0]), buffer, length); in Serial_UartWrite() 278 serial_manager_status_t Serial_UartRead(serial_handle_t serialHandle, uint8_t *buffer, uint32_t len… in Serial_UartRead() argument 281 (void)buffer; in Serial_UartRead() [all …]
|
D | fsl_component_serial_manager.h | 404 uint8_t *buffer; /*!< Transferred buffer */ member 627 uint8_t *buffer, 648 serial_manager_status_t SerialManager_ReadBlocking(serial_read_handle_t readHandle, uint8_t *buffer… 671 uint8_t *buffer, 694 uint8_t *buffer, 714 uint8_t *buffer,
|
/trusted-firmware-m-3.6.0/platform/ext/target/arm/mps3/corstone310/fvp/native_drivers/ |
D | dma350_ch_drv.c | 30 uint32_t *buffer, uint32_t *buffer_end) in dma350_cmdlink_generate() argument 36 if (&buffer[__builtin_popcount((cmdlink_cfg->header) & 0xFFFFFFFCUL) + 1] >= in dma350_cmdlink_generate() 41 *(buffer++) = cmdlink_cfg->header; in dma350_cmdlink_generate() 47 *(buffer++) = *(cfg++); in dma350_cmdlink_generate() 52 return buffer; in dma350_cmdlink_generate()
|
/trusted-firmware-m-3.6.0/platform/ext/target/arm/rss/common/native_drivers/ |
D | dma350_ch_drv.c | 30 uint32_t *buffer, uint32_t *buffer_end) in dma350_cmdlink_generate() argument 36 if (&buffer[__builtin_popcount((cmdlink_cfg->header) & 0xFFFFFFFCUL) + 1] >= in dma350_cmdlink_generate() 41 *(buffer++) = cmdlink_cfg->header; in dma350_cmdlink_generate() 47 *(buffer++) = *(cfg++); in dma350_cmdlink_generate() 52 return buffer; in dma350_cmdlink_generate()
|
/trusted-firmware-m-3.6.0/secure_fw/partitions/platform/ |
D | Kconfig.comp | 12 int "Size of input buffer" 15 Size of the internal transiant buffer to hold input vectors from client. 18 int "Size of output buffer" 21 Size of the internal transiant buffer to hold service outputs.
|
/trusted-firmware-m-3.6.0/platform/ext/target/nxp/common/Native_Driver/components/uart/ |
D | fsl_adapter_usart.c | 34 uint8_t *volatile buffer; member 44 uint8_t *volatile buffer; member 77 volatile uint8_t *buffer; member 85 volatile uint8_t *buffer; member 224 if (NULL != uartHandle->rx.buffer) in HAL_UartInterruptHandle() 226 …uartHandle->rx.buffer[uartHandle->rx.bufferSofar++] = USART_ReadByte(s_UsartAdapterBase[instance]); in HAL_UartInterruptHandle() 231 uartHandle->rx.buffer = NULL; in HAL_UartInterruptHandle() 244 if (NULL != uartHandle->tx.buffer) in HAL_UartInterruptHandle() 246 …USART_WriteByte(s_UsartAdapterBase[instance], uartHandle->tx.buffer[uartHandle->tx.bufferSofar++]); in HAL_UartInterruptHandle() 250 uartHandle->tx.buffer = NULL; in HAL_UartInterruptHandle() [all …]
|
/trusted-firmware-m-3.6.0/platform/ext/target/arm/corstone1000/io/ |
D | io_block.c | 42 static int block_read(io_entity_t *entity, uintptr_t buffer, size_t length, 44 static int block_write(io_entity_t *entity, const uintptr_t buffer, 242 static int block_read(io_entity_t *entity, uintptr_t buffer, size_t length, in block_read() argument 267 buf = &(cur->dev_spec->buffer); in block_read() 331 memcpy((void *)(buffer + count), (void *)(buf->offset + skip), nbytes); in block_read() 348 static int block_write(io_entity_t *entity, const uintptr_t buffer, in block_write() argument 372 buf = &(cur->dev_spec->buffer); in block_write() 454 memcpy((void *)(buf->offset + skip), (void *)(buffer + count), nbytes); in block_write() 485 io_block_spec_t *buffer; in block_dev_open() local 496 buffer = &(cur->dev_spec->buffer); in block_dev_open() [all …]
|
D | io_driver.h | 40 int (*read)(io_entity_t *entity, uintptr_t buffer, size_t length, 42 int (*write)(io_entity_t *entity, const uintptr_t buffer, size_t length,
|
D | io_storage.h | 84 int io_read(uintptr_t handle, uintptr_t buffer, size_t length, 87 int io_write(uintptr_t handle, const uintptr_t buffer, size_t length,
|
/trusted-firmware-m-3.6.0/secure_fw/spm/core/ |
D | psa_read_write_skip_api.c | 16 void *buffer, size_t num_bytes) in tfm_spm_partition_psa_read() argument 68 curr_partition->boundary, (uintptr_t)buffer, in tfm_spm_partition_psa_read() 76 spm_memcpy(buffer, (char *)handle->invec_base[invec_idx] + in tfm_spm_partition_psa_read() 146 const void *buffer, size_t num_bytes) in tfm_spm_partition_psa_write() argument 199 curr_partition->boundary, (uintptr_t)buffer, in tfm_spm_partition_psa_write() 206 handle->outvec_written[outvec_idx], buffer, num_bytes); in tfm_spm_partition_psa_write()
|
D | psa_interface_sfn.c | 66 void *buffer, size_t num_bytes) in psa_read() argument 74 buffer, num_bytes); in psa_read() 89 const void *buffer, size_t num_bytes) in psa_write() argument 96 tfm_spm_partition_psa_write(msg_handle, outvec_idx, buffer, num_bytes); in psa_write()
|
/trusted-firmware-m-3.6.0/docs/security/security_advisories/ |
D | fwu_write_vulnerability.rst | 5 | Title | ``psa_fwu_write()`` may cause buffer overflow in SPE. | 19 | | local buffer in Firmware Update partition. | 42 * \param[in] block A buffer containing a block of image data. This 56 buffer via the ``psa_read()`` API. If the input argument ``block_size`` 58 of the local buffer with ``block_size`` bytes would be overwritten by the input 66 of the local buffer which locates at the stack of Firmware Update partition to 73 Add check against the input buffer length in the ``tfm_fwu_write_ipc()`` API 74 before reading the input data into the local buffer. See commit `78f7530`_.
|
/trusted-firmware-m-3.6.0/platform/ext/target/nxp/common/Native_Driver/drivers/ |
D | fsl_iap_kbp.h | 135 uint8_t *buffer; /*!< Caller-provided buffer used by Kboot.*/ member 151 status_t (*read)(uint32_t address, uint32_t length, uint8_t *buffer); 152 status_t (*write)(uint32_t address, uint32_t length, const uint8_t *buffer); 156 status_t (*config)(uint32_t *buffer);
|
/trusted-firmware-m-3.6.0/platform/ext/target/arm/corstone1000/openamp/ |
D | tfm_spe_openamp_interface.h | 32 void tfm_to_openamp_hold_buffer(const void *buffer); 33 void tfm_to_openamp_release_buffer(const void *buffer);
|
D | tfm_spe_openamp_interface_impl.c | 138 void tfm_to_openamp_hold_buffer(const void *buffer) in tfm_to_openamp_hold_buffer() argument 140 rpmsg_hold_rx_buffer(ep, (void*)buffer); in tfm_to_openamp_hold_buffer() 143 void tfm_to_openamp_release_buffer(const void *buffer) in tfm_to_openamp_release_buffer() argument 145 rpmsg_release_rx_buffer(ep, (void*)buffer); in tfm_to_openamp_release_buffer()
|
/trusted-firmware-m-3.6.0/secure_fw/partitions/firmware_update/ |
D | Kconfig.comp | 12 int "Size of the FWU internal data transfer buffer" 15 Size of the FWU internal data transfer buffer
|
/trusted-firmware-m-3.6.0/secure_fw/partitions/crypto/ |
D | Kconfig.comp | 16 hex "Crypto engine buffer size" 20 The mbed TLS library requires to provide a static buffer to be used as 25 int "Default size of the internal scratch buffer" 28 The size of the buffer used as an scratch for allocating internal input
|
/trusted-firmware-m-3.6.0/secure_fw/partitions/lib/runtime/ |
D | psa_api_ipc.c | 45 void *buffer, size_t num_bytes) in psa_read() argument 47 return PART_METADATA()->psa_fns->psa_read(msg_handle, invec_idx, buffer, num_bytes); in psa_read() 56 const void *buffer, size_t num_bytes) in psa_write() argument 58 PART_METADATA()->psa_fns->psa_write(msg_handle, outvec_idx, buffer, num_bytes); in psa_write()
|
/trusted-firmware-m-3.6.0/platform/ext/target/nxp/common/Native_Driver/utilities/debug_console/ |
D | fsl_debug_console.c | 1197 size_t __write(int handle, const unsigned char *buffer, size_t size); 1198 size_t __write(int handle, const unsigned char *buffer, size_t size) in __write() argument 1201 if (NULL == buffer) in __write() 1219 (void)memcpy(buff, buffer, size); in __write() 1228 size_t __read(int handle, unsigned char *buffer, size_t size); 1229 size_t __read(int handle, unsigned char *buffer, size_t size) in __read() argument 1250 *buffer++ = ch; in __read() 1262 int __attribute__((weak)) __sys_write(int handle, char *buffer, int size) in __sys_write() argument 1264 if (NULL == buffer) in __sys_write() 1277 DbgConsole_SendDataReliable((uint8_t *)buffer, size); in __sys_write() [all …]
|
/trusted-firmware-m-3.6.0/docs/design_docs/services/ |
D | tfm_its_512_flash.rst | 39 1. A new block-sized static buffer should be added to its_flash.c when 42 ``its_flash_block_to_block_move()`` will populate the buffer instead of 45 the block buffer to the device. 50 6. Writes to the block buffer should be atomic, and guarded against corruption 60 proposed block-buffer is used, the block is programmed in one-shot and the
|
/trusted-firmware-m-3.6.0/platform/ext/target/arm/corstone1000/fw_update_agent/ |
D | uefi_fmp.c | 164 static enum fwu_agent_error_t pack_image_info(void *buffer, uint32_t size) in pack_image_info() argument 172 packed_buffer_t *packed_buffer = buffer; in pack_image_info() 228 enum fwu_agent_error_t fmp_get_image_info(void *buffer, uint32_t size) in fmp_get_image_info() argument 234 status = pack_image_info(buffer, size); in fmp_get_image_info()
|
/trusted-firmware-m-3.6.0/interface/include/psa/ |
D | service.h | 176 void *buffer, size_t num_bytes); 223 const void *buffer, size_t num_bytes);
|
/trusted-firmware-m-3.6.0/platform/ext/target/lairdconnectivity/common/core/cmsis_drivers/ |
D | Driver_QSPI.c | 156 uint8_t *buffer = (uint8_t *)data; in ARM_QSPI_Flash_ReadData() local 173 memcpy(&buffer[data_index], &baTmpRAMBuffer[off_by], needed); in ARM_QSPI_Flash_ReadData() 201 memcpy(&buffer[data_index], baTmpRAMBuffer, save_size); in ARM_QSPI_Flash_ReadData()
|