Home
last modified time | relevance | path

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

/hal_espressif-3.6.0/components/driver/
Dspi_slave.c161 int dma_desc_ct = 0; in spi_slave_initialize() local
166 dma_desc_ct = (bus_config->max_transfer_sz + SPI_MAX_DMA_LEN - 1) / SPI_MAX_DMA_LEN; in spi_slave_initialize()
167 if (dma_desc_ct == 0) dma_desc_ct = 1; //default to 4k when max is not given in spi_slave_initialize()
168 spihost[host]->max_transfer_sz = dma_desc_ct * SPI_MAX_DMA_LEN; in spi_slave_initialize()
208 if (dma_desc_ct) { in spi_slave_initialize()
209 hal->dmadesc_tx = heap_caps_malloc(sizeof(lldesc_t) * dma_desc_ct, MALLOC_CAP_DMA); in spi_slave_initialize()
210 hal->dmadesc_rx = heap_caps_malloc(sizeof(lldesc_t) * dma_desc_ct, MALLOC_CAP_DMA); in spi_slave_initialize()
216 hal->dmadesc_n = dma_desc_ct; in spi_slave_initialize()
Dspi_common.c793 int dma_desc_ct = lldesc_get_required_num(bus_config->max_transfer_sz); in spi_bus_initialize() local
794 if (dma_desc_ct == 0) dma_desc_ct = 1; //default to 4k when max is not given in spi_bus_initialize()
796 bus_attr->max_transfer_sz = dma_desc_ct * LLDESC_MAX_NUM_PER_DESC; in spi_bus_initialize()
797 bus_attr->dmadesc_tx = heap_caps_malloc(sizeof(lldesc_t) * dma_desc_ct, MALLOC_CAP_DMA); in spi_bus_initialize()
798 bus_attr->dmadesc_rx = heap_caps_malloc(sizeof(lldesc_t) * dma_desc_ct, MALLOC_CAP_DMA); in spi_bus_initialize()
803 bus_attr->dma_desc_num = dma_desc_ct; in spi_bus_initialize()
/hal_espressif-3.6.0/components/hal/
Dspi_slave_hd_hal.c134 int dma_desc_ct = (bus_size + LLDESC_MAX_NUM_PER_DESC - 1) / LLDESC_MAX_NUM_PER_DESC; in spi_slave_hd_hal_get_total_desc_size() local
135 if (dma_desc_ct == 0) { in spi_slave_hd_hal_get_total_desc_size()
136 dma_desc_ct = 1; //default to 4k when max is not given in spi_slave_hd_hal_get_total_desc_size()
138 hal->dma_desc_num = dma_desc_ct; in spi_slave_hd_hal_get_total_desc_size()