Home
last modified time | relevance | path

Searched refs:aligned_len (Results 1 – 3 of 3) sorted by relevance

/bsp/hpmicro/libraries/drivers/
A Ddrv_i2c.c224 rt_uint32_t aligned_len = 0; in hpm_i2c_master_transfer() local
233 aligned_len = (msg->len + HPM_L1C_CACHELINE_SIZE - 1U) & ~(HPM_L1C_CACHELINE_SIZE - 1U); in hpm_i2c_master_transfer()
239 … raw_alloc_buf = (uint8_t*)rt_malloc(aligned_len + HPM_L1C_CACHELINE_SIZE - RT_ALIGN_SIZE); in hpm_i2c_master_transfer()
246 … raw_alloc_buf = (uint8_t*)rt_malloc(aligned_len + HPM_L1C_CACHELINE_SIZE - RT_ALIGN_SIZE); in hpm_i2c_master_transfer()
250 l1c_dc_flush((uint32_t)aligned_buf, aligned_len); in hpm_i2c_master_transfer()
313 l1c_dc_invalidate((uint32_t) aligned_buf, aligned_len); in hpm_i2c_master_transfer()
A Ddrv_spi.c415 uint32_t aligned_len = 0; in hpm_spi_xfer_dma() local
420 aligned_len = (msg->length + HPM_L1C_CACHELINE_SIZE - 1U) & ~(HPM_L1C_CACHELINE_SIZE - 1U); in hpm_spi_xfer_dma()
426 … raw_alloc_tx_buf = (uint8_t*)rt_malloc(aligned_len + HPM_L1C_CACHELINE_SIZE - RT_ALIGN_SIZE); in hpm_spi_xfer_dma()
430 l1c_dc_flush((uint32_t) aligned_tx_buf, aligned_len); in hpm_spi_xfer_dma()
443 … raw_alloc_rx_buf = (uint8_t*)rt_malloc(aligned_len + HPM_L1C_CACHELINE_SIZE - RT_ALIGN_SIZE); in hpm_spi_xfer_dma()
565 l1c_dc_invalidate((uint32_t) aligned_rx_buf, aligned_len); in hpm_spi_xfer_dma()
/bsp/hpmicro/libraries/hpm_sdk/components/serial_nor/
A Dhpm_serial_nor.c891 uint32_t aligned_len; in hpm_serial_nor_erase_blocking() local
900 aligned_len = HPM_ALIGN_UP(start + length, sector_size) - aligned_start; in hpm_serial_nor_erase_blocking()
903 remaining_len = aligned_len; in hpm_serial_nor_erase_blocking()

Completed in 15 milliseconds