Lines Matching refs:dev_dma
51 const struct device *dev_dma; member
72 static void spi_xmc4xxx_dma_callback(const struct device *dev_dma, void *arg, uint32_t dma_channel, in spi_xmc4xxx_dma_callback() argument
81 if (dev_dma == data->dma_tx.dev_dma && dma_channel == data->dma_tx.dma_channel) { in spi_xmc4xxx_dma_callback()
83 } else if (dev_dma == data->dma_rx.dev_dma && in spi_xmc4xxx_dma_callback()
409 ret = dma_config(dma_rx->dev_dma, dma_rx->dma_channel, &dma_rx->dma_cfg); in spi_xmc4xxx_transceive_dma()
418 ret = dma_start(dma_rx->dev_dma, dma_rx->dma_channel); in spi_xmc4xxx_transceive_dma()
439 ret = dma_config(dma_tx->dev_dma, dma_tx->dma_channel, &dma_tx->dma_cfg); in spi_xmc4xxx_transceive_dma()
450 ret = dma_start(dma_tx->dev_dma, dma_tx->dma_channel); in spi_xmc4xxx_transceive_dma()
465 dma_stop(dma_tx->dev_dma, dma_tx->dma_channel); in spi_xmc4xxx_transceive_dma()
466 dma_stop(dma_rx->dev_dma, dma_rx->dma_channel); in spi_xmc4xxx_transceive_dma()
489 if (data->dma_tx.dev_dma != NULL && data->dma_rx.dev_dma != NULL) { in spi_xmc4xxx_transceive_sync()
562 if (data->dma_rx.dev_dma != NULL) { in spi_xmc4xxx_init()
563 if (!device_is_ready(data->dma_rx.dev_dma)) { in spi_xmc4xxx_init()
571 if (data->dma_tx.dev_dma != NULL) { in spi_xmc4xxx_init()
572 if (!device_is_ready(data->dma_tx.dev_dma)) { in spi_xmc4xxx_init()
608 .dev_dma = DEVICE_DT_GET(DT_INST_DMAS_CTLR_BY_NAME(index, dir)), \