Home
last modified time | relevance | path

Searched refs:bytes (Results 1 – 25 of 105) sorted by relevance

12345

/hal_nxp-latest/mcux/mcux-sdk/CMSIS/NN/Source/PoolingFunctions/
Darm_max_pool_s8.c61 if (comp_max.bytes[0] > ref_max.bytes[0]) in compare_and_replace_if_larger_q7()
63 ref_max.bytes[0] = comp_max.bytes[0]; in compare_and_replace_if_larger_q7()
65 if (comp_max.bytes[1] > ref_max.bytes[1]) in compare_and_replace_if_larger_q7()
67 ref_max.bytes[1] = comp_max.bytes[1]; in compare_and_replace_if_larger_q7()
69 if (comp_max.bytes[2] > ref_max.bytes[2]) in compare_and_replace_if_larger_q7()
71 ref_max.bytes[2] = comp_max.bytes[2]; in compare_and_replace_if_larger_q7()
73 if (comp_max.bytes[3] > ref_max.bytes[3]) in compare_and_replace_if_larger_q7()
75 ref_max.bytes[3] = comp_max.bytes[3]; in compare_and_replace_if_larger_q7()
121 in.bytes[0] = MAX(in.bytes[0], act_min); in clamp_output()
122 in.bytes[0] = MIN(in.bytes[0], act_max); in clamp_output()
[all …]
Darm_pool_q7_HWC.c69 if (com.bytes[0] > in.bytes[0]) in compare_and_replace_if_larger_q7()
70 in.bytes[0] = com.bytes[0]; in compare_and_replace_if_larger_q7()
71 if (com.bytes[1] > in.bytes[1]) in compare_and_replace_if_larger_q7()
72 in.bytes[1] = com.bytes[1]; in compare_and_replace_if_larger_q7()
73 if (com.bytes[2] > in.bytes[2]) in compare_and_replace_if_larger_q7()
74 in.bytes[2] = com.bytes[2]; in compare_and_replace_if_larger_q7()
75 if (com.bytes[3] > in.bytes[3]) in compare_and_replace_if_larger_q7()
76 in.bytes[3] = com.bytes[3]; in compare_and_replace_if_larger_q7()
/hal_nxp-latest/mcux/mcux-sdk/components/codec/tfa9896/
Dfsl_hal_registers.c415 void tfa9896_convert_data2bytes(int num_data, const int data[], unsigned char bytes[]) in tfa9896_convert_data2bytes() argument
434 bytes[k] = (d >> 16) & 0xFF; /* MSB */ in tfa9896_convert_data2bytes()
435 bytes[k + 1] = (d >> 8) & 0xFF; in tfa9896_convert_data2bytes()
436 bytes[k + 2] = (d)&0xFF; /* LSB */ in tfa9896_convert_data2bytes()
440 void tfa9896_convert_bytes2data(int num_bytes, const unsigned char bytes[], int data[]) in tfa9896_convert_bytes2data() argument
449 d = (bytes[k] << 16) | (bytes[k + 1] << 8) | (bytes[k + 2]); in tfa9896_convert_bytes2data()
450 if (bytes[k] & 0x80) /* sign bit was set */ in tfa9896_convert_bytes2data()
462 unsigned char bytes[6 * 3]; in TFA9896_DspBiquad_Disable() local
472 tfa9896_convert_data2bytes(6, coeff_buffer, bytes); in TFA9896_DspBiquad_Disable()
473 … error = TFA9896_DspSetParam(handle, 2, (unsigned char)biquad_index, (unsigned char)6 * 3, bytes); in TFA9896_DspBiquad_Disable()
[all …]
Dfsl_tfa9896.h178 uint8_t bytes[6 * sizeof(uint24M_t)]; member
202 uint8_t bytes[5 * 3]; /*!< payload 5*24buts coeffs*/ member
214 uint8_t bytes[5 * 3]; /*!< payload 5*24buts coeffs*/ member
226 uint8_t bytes[5 * 3]; /*!< payload 5*24buts coeffs*/ member
427 status_t TFA9896_ProcessPatchFile(tfa9896_handle_t *handle, int length, const unsigned char *bytes);
/hal_nxp-latest/mcux/mcux-sdk/components/internal_flash/
Dfsl_adapter_flash.c152 uint32_t bytes = dest & ((uint32_t)PGM_SIZE_BYTE - 1U); in HAL_FlashProgramUnaligned() local
155 if (bytes != 0U) in HAL_FlashProgramUnaligned()
157 uint32_t unalignedBytes = (uint32_t)PGM_SIZE_BYTE - bytes; in HAL_FlashProgramUnaligned()
164 (void)memcpy(buffer, (uint8_t *)(dest - bytes), PGM_SIZE_BYTE); in HAL_FlashProgramUnaligned()
165 (void)memcpy(&buffer[bytes], pData, unalignedBytes); in HAL_FlashProgramUnaligned()
167 status = HAL_FlashProgramAdaptation(dest - bytes, PGM_SIZE_BYTE, buffer); in HAL_FlashProgramUnaligned()
170 dest += (uint32_t)PGM_SIZE_BYTE - bytes; in HAL_FlashProgramUnaligned()
178 bytes = size & ~((uint32_t)PGM_SIZE_BYTE - 1U); in HAL_FlashProgramUnaligned()
180 if (bytes != 0U) in HAL_FlashProgramUnaligned()
182 status = HAL_FlashProgramAdaptation(dest, bytes, pData); in HAL_FlashProgramUnaligned()
[all …]
Dfsl_adapter_k4_flash.c228 uint32_t bytes = dest & ((uint32_t)PGM_SIZE_BYTE - 1U); in HAL_FlashProgramUnaligned() local
231 if (bytes != 0U) in HAL_FlashProgramUnaligned()
233 uint32_t unalignedBytes = (uint32_t)PGM_SIZE_BYTE - bytes; in HAL_FlashProgramUnaligned()
240 memcpy(buffer, (uint8_t *)(dest - bytes), PGM_SIZE_BYTE); in HAL_FlashProgramUnaligned()
241 memcpy(&buffer[bytes], pData, unalignedBytes); in HAL_FlashProgramUnaligned()
243 status = HAL_FlashProgramAdaptation(dest - bytes, PGM_SIZE_BYTE, buffer); in HAL_FlashProgramUnaligned()
246 dest += (uint32_t)PGM_SIZE_BYTE - bytes; in HAL_FlashProgramUnaligned()
254 bytes = size & ~((uint32_t)PGM_SIZE_BYTE - 1U); in HAL_FlashProgramUnaligned()
256 if (bytes != 0U) in HAL_FlashProgramUnaligned()
258 status = HAL_FlashProgramAdaptation(dest, bytes, pData); in HAL_FlashProgramUnaligned()
[all …]
/hal_nxp-latest/mcux/mcux-sdk/drivers/spi/
Dfsl_spi.c281 uint8_t bytes = handle->bytePerFrame; in SPI_SendTransfer() local
292 SPI_WriteNonBlocking(base, handle->txData, bytes); in SPI_SendTransfer()
296 handle->txData += bytes; in SPI_SendTransfer()
298 handle->txRemainingBytes -= bytes; in SPI_SendTransfer()
304 while (((base->S & SPI_S_SPTEF_MASK) != 0U) && (handle->txRemainingBytes >= bytes)) in SPI_SendTransfer()
306 SPI_WriteNonBlocking(base, handle->txData, bytes); in SPI_SendTransfer()
311 handle->txData += bytes; in SPI_SendTransfer()
313 handle->txRemainingBytes -= bytes; in SPI_SendTransfer()
344 uint8_t bytes = handle->bytePerFrame; in SPI_ReceiveTransfer() local
351 SPI_ReadNonBlocking(base, handle->rxData, bytes); in SPI_ReceiveTransfer()
[all …]
/hal_nxp-latest/mcux/mcux-sdk/CMSIS/NN/Source/ConvolutionFunctions/
Darm_depthwise_separable_conv_HWC_q7.c331 sum += inA.bytes[0] * inB.bytes[0]; in arm_depthwise_separable_conv_HWC_q7()
332 sum2 += inA.bytes[1] * inB.bytes[1]; in arm_depthwise_separable_conv_HWC_q7()
333 sum3 += inA.bytes[2] * inB.bytes[2]; in arm_depthwise_separable_conv_HWC_q7()
334 sum4 += inA.bytes[3] * inB.bytes[3]; in arm_depthwise_separable_conv_HWC_q7()
Darm_depthwise_separable_conv_HWC_q7_nonsquare.c335 sum += inA.bytes[0] * inB.bytes[0]; in arm_depthwise_separable_conv_HWC_q7_nonsquare()
336 sum2 += inA.bytes[1] * inB.bytes[1]; in arm_depthwise_separable_conv_HWC_q7_nonsquare()
337 sum3 += inA.bytes[2] * inB.bytes[2]; in arm_depthwise_separable_conv_HWC_q7_nonsquare()
338 sum4 += inA.bytes[3] * inB.bytes[3]; in arm_depthwise_separable_conv_HWC_q7_nonsquare()
/hal_nxp-latest/mcux/mcux-sdk/drivers/lpc_dma/
Dfsl_dma.h96 #define DMA_DESCRIPTOR_END_ADDRESS(start, inc, bytes, width) \ argument
97 ((uint32_t *)((uint32_t)(start) + (inc) * (bytes) - (inc) * (width)))
99 #define DMA_CHANNEL_XFER(reload, clrTrig, intA, intB, width, srcInc, dstInc, bytes) \ argument
100 (DMA_SetChannelXferConfig(reload, clrTrig, intA, intB, width, srcInc, dstInc, bytes))
487 … bool clrTrig, bool intA, bool intB, uint8_t width, uint8_t srcInc, uint8_t dstInc, uint32_t bytes) in DMA_SetChannelXferConfig() argument
489 assert(((uint32_t)bytes / (uint32_t)width) <= DMA_MAX_TRANSFER_COUNT); in DMA_SetChannelXferConfig()
496 DMA_CHANNEL_XFERCFG_XFERCOUNT((uint32_t)bytes / (uint32_t)width - 1UL)); in DMA_SetChannelXferConfig()
/hal_nxp-latest/mcux/mcux-sdk/components/extern_flash/
Dfsl_adapter_eeprom_AT25Fxxxx.c232 uint32_t bytes = EEPROM_PAGE_SIZE - (addr2eeprom & EEPROM_PAGE_MASK); in EEPROM_WriteData() local
234 retval = EEPROM_WritePage(bytes, addr2eeprom, Outbuf); in EEPROM_WriteData()
235 noOfBytes -= bytes; in EEPROM_WriteData()
236 addr2eeprom += bytes; in EEPROM_WriteData()
238 for (uint32_t j = 0; j < bytes; j++) in EEPROM_WriteData()
Dfsl_adapter_eeprom_AT45DBxxxx.c355 uint32_t bytes = EEPROM_PAGE_SIZE - (addr2eeprom & EEPROM_PAGE_MASK); in EEPROM_WriteData() local
357 retval = EEPROM_WritePage(bytes, addr2eeprom, Outbuf); in EEPROM_WriteData()
358 noOfBytes -= bytes; in EEPROM_WriteData()
359 addr2eeprom += bytes; in EEPROM_WriteData()
361 for (uint32_t j = 0; j < bytes; j++) in EEPROM_WriteData()
/hal_nxp-latest/mcux/mcux-sdk/components/serial_manager/
Dfsl_component_serial_port_rpmsg.c76 uint32_t bytes; in Serial_RpmsgRxCallback() local
98 bytes = (len <= (serialRpmsgHandle->rx.len - serialRpmsgHandle->rx.sofar)) ? in Serial_RpmsgRxCallback()
102 … (void)memcpy((uint8_t *)&serialRpmsgHandle->rx.data[serialRpmsgHandle->rx.sofar], data, bytes); in Serial_RpmsgRxCallback()
103 serialRpmsgHandle->rx.sofar += bytes; in Serial_RpmsgRxCallback()
107 serialRpmsgHandle->rx.remain = len - bytes; in Serial_RpmsgRxCallback()
/hal_nxp-latest/mcux/mcux-sdk/components/flash/nor/lpspi/
Dfsl_lpspi_nor_flash.c191 uint32_t bytes = 0x100u - (address & 0xFFu); in Nor_Flash_Program() local
193 writeStatus = LPSPI_MemWritePage(address, buffer, bytes, blocking, base); in Nor_Flash_Program()
194 length -= bytes; in Nor_Flash_Program()
195 address += bytes; in Nor_Flash_Program()
196 buffer += bytes; in Nor_Flash_Program()
/hal_nxp-latest/mcux/mcux-sdk/components/codec/tfa9xxx/vas_tfa_drv/
Dtfa9xxx_parameters.h117 uint8_t bytes[BIQUAD_COEFF_SIZE * sizeof(uint24_t)]; member
230 uint8_t bytes[5 * 3]; // payload 5*24buts coeffs member
241 uint8_t bytes[5 * 3]; // payload 5*24buts coeffs member
252 uint8_t bytes[5 * 3]; // payload 5*24buts coeffs member
/hal_nxp-latest/mcux/middleware/mcux-sdk-middleware-connectivity-framework/platform/Common/
Dfwk_platform_mflash.ch85 /* Unaligned trailing bytes */
151 * \param[in] length number of bytes - arbitrary byte length.
184 /* we cannot know whether the caller has left space for extra bytes to allow
186 * trailing bytes to the destination buffer */
241 …of partial page in RAM, add the new values at right offset in page buffer (256 bytes), then program
/hal_nxp-latest/mcux/mcux-sdk/devices/MIMXRT595S/drivers/
Dfsl_iap.c35 …d)(uint32_t instance, flexspi_nor_config_t *config, uint32_t *dst, uint32_t start, uint32_t bytes);
140 uint32_t instance, flexspi_nor_config_t *config, uint32_t *dst, uint32_t start, uint32_t bytes) in IAP_FlexspiNorRead() argument
142 return FLEXSPI_API_TREE->read(instance, config, dst, start, bytes); in IAP_FlexspiNorRead()
/hal_nxp-latest/mcux/mcux-sdk/devices/MIMXRT533S/drivers/
Dfsl_iap.c35 …d)(uint32_t instance, flexspi_nor_config_t *config, uint32_t *dst, uint32_t start, uint32_t bytes);
140 uint32_t instance, flexspi_nor_config_t *config, uint32_t *dst, uint32_t start, uint32_t bytes) in IAP_FlexspiNorRead() argument
142 return FLEXSPI_API_TREE->read(instance, config, dst, start, bytes); in IAP_FlexspiNorRead()
/hal_nxp-latest/mcux/mcux-sdk/devices/MIMXRT555S/drivers/
Dfsl_iap.c35 …d)(uint32_t instance, flexspi_nor_config_t *config, uint32_t *dst, uint32_t start, uint32_t bytes);
140 uint32_t instance, flexspi_nor_config_t *config, uint32_t *dst, uint32_t start, uint32_t bytes) in IAP_FlexspiNorRead() argument
142 return FLEXSPI_API_TREE->read(instance, config, dst, start, bytes); in IAP_FlexspiNorRead()
/hal_nxp-latest/mcux/mcux-sdk/devices/MIMXRT685S/drivers/
Dfsl_iap.c35 …d)(uint32_t instance, flexspi_nor_config_t *config, uint32_t *dst, uint32_t start, uint32_t bytes);
140 uint32_t instance, flexspi_nor_config_t *config, uint32_t *dst, uint32_t start, uint32_t bytes) in IAP_FlexspiNorRead() argument
142 return FLEXSPI_API_TREE->read(instance, config, dst, start, bytes); in IAP_FlexspiNorRead()
/hal_nxp-latest/mcux/mcux-sdk/devices/MIMXRT633S/drivers/
Dfsl_iap.c35 …d)(uint32_t instance, flexspi_nor_config_t *config, uint32_t *dst, uint32_t start, uint32_t bytes);
140 uint32_t instance, flexspi_nor_config_t *config, uint32_t *dst, uint32_t start, uint32_t bytes) in IAP_FlexspiNorRead() argument
142 return FLEXSPI_API_TREE->read(instance, config, dst, start, bytes); in IAP_FlexspiNorRead()
/hal_nxp-latest/mcux/mcux-sdk/middleware/mmcau/asm-cm0p/src/
Dmmcau_sha256_functions.s167 adds r1, #1<<2 @ move r1 by 4 bytes
168 ldmia r1!, {r2-r7} @ load sha256_reg_data[4-9] and move r1 by 24 bytes
169 subs r1, #7<<2 @ move r1 back by 28 bytes
414 adds r0, #1<<2 @ move r0 by 4 bytes
415 ldmia r0!, {r1-r2} @ load sha256_reg_data[1-2] and move r0 by 8 bytes
416 subs r0, #3<<2 @ move r0 back by 12 bytes
548 adds r1, #1<<2 @ move r0 by 4 bytes
549 ldmia r1!, {r2-r4} @ load sha256_reg_data[4-6] and move r0 by 12 bytes
550 subs r1, #1<<4 @ move r0 back by 16 bytes
/hal_nxp-latest/mcux/mcux-sdk/devices/RW610/drivers/romapi/flexspi/
Dfsl_romapi_flexspi.c70 uint32_t instance, flexspi_nor_config_t *config, uint32_t *dst, uint32_t start, uint32_t bytes) in flexspi_nor_flash_read() argument
73 return FLEXSPI_FLASH_API_TREE->read(instance, config, dst, start, bytes); in flexspi_nor_flash_read()
/hal_nxp-latest/mcux/mcux-sdk/devices/RW612/drivers/romapi/flexspi/
Dfsl_romapi_flexspi.c70 uint32_t instance, flexspi_nor_config_t *config, uint32_t *dst, uint32_t start, uint32_t bytes) in flexspi_nor_flash_read() argument
73 return FLEXSPI_FLASH_API_TREE->read(instance, config, dst, start, bytes); in flexspi_nor_flash_read()
/hal_nxp-latest/mcux/mcux-sdk/drivers/dspi/
Dfsl_dspi_edma.c1100 size_t bytes; in DSPI_MasterTransferGetCountEDMA() local
1102bytes = (uint32_t)handle->nbytes * EDMA_GetRemainingMajorLoopCount(handle->edmaRxRegToRxDataHandle… in DSPI_MasterTransferGetCountEDMA()
1105 *count = handle->totalByteCount - bytes; in DSPI_MasterTransferGetCountEDMA()
1553 size_t bytes; in DSPI_SlaveTransferGetCountEDMA() local
1555bytes = (uint32_t)handle->nbytes * EDMA_GetRemainingMajorLoopCount(handle->edmaRxRegToRxDataHandle… in DSPI_SlaveTransferGetCountEDMA()
1558 *count = handle->totalByteCount - bytes; in DSPI_SlaveTransferGetCountEDMA()

12345