Lines Matching refs:dma_dev
42 const struct device *dma_dev; member
292 static void dma_callback(const struct device *dma_dev, void *user_data, in dma_callback() argument
295 ARG_UNUSED(dma_dev); in dma_callback()
398 res = dma_config(drv_cfg->dma_dev, drv_cfg->dma_rx_channel, &rx_dma_cfg); in spi_sam_dma_txrx()
404 res = dma_config(drv_cfg->dma_dev, drv_cfg->dma_tx_channel, &tx_dma_cfg); in spi_sam_dma_txrx()
411 res = dma_start(drv_cfg->dma_dev, drv_cfg->dma_rx_channel); in spi_sam_dma_txrx()
417 res = dma_start(drv_cfg->dma_dev, drv_cfg->dma_tx_channel); in spi_sam_dma_txrx()
420 dma_stop(drv_cfg->dma_dev, drv_cfg->dma_rx_channel); in spi_sam_dma_txrx()
448 if ((rx_buf_len < SAM_SPI_DMA_THRESHOLD || cfg->dma_dev == NULL) && in spi_sam_rx()
476 if ((tx_buf_len < SAM_SPI_DMA_THRESHOLD || cfg->dma_dev == NULL) && in spi_sam_tx()
505 if ((buf_len < SAM_SPI_DMA_THRESHOLD || cfg->dma_dev == NULL) && in spi_sam_txrx()
858 .dma_dev = DEVICE_DT_GET(DT_INST_DMAS_CTLR_BY_NAME(n, tx)), \