Lines Matching refs:dma_dev
41 const struct device *dma_dev; member
443 if (dma_get_status(data->dma_rx.dma_dev, data->dma_rx.dma_channel, &stat) == 0) { in async_evt_rx_stopped()
525 if (dma_get_status(data->dma_rx.dma_dev, data->dma_rx.dma_channel, &stat) == 0) { in uart_xmc4xxx_async_rx_timeout()
552 if (!dma_get_status(data->dma_tx.dma_dev, data->dma_tx.dma_channel, &stat)) { in uart_xmc4xxx_async_tx_abort()
556 dma_stop(data->dma_tx.dma_dev, data->dma_tx.dma_channel); in uart_xmc4xxx_async_tx_abort()
582 if (data->dma_rx.dma_dev != NULL) { in uart_xmc4xxx_async_init()
583 if (!device_is_ready(data->dma_rx.dma_dev)) { in uart_xmc4xxx_async_init()
600 if (data->dma_tx.dma_dev != NULL) { in uart_xmc4xxx_async_init()
601 if (!device_is_ready(data->dma_tx.dma_dev)) { in uart_xmc4xxx_async_init()
647 if (data->dma_tx.dma_dev == NULL) { in uart_xmc4xxx_async_tx()
669 ret = dma_config(data->dma_tx.dma_dev, data->dma_tx.dma_channel, &data->dma_tx.dma_cfg); in uart_xmc4xxx_async_tx()
685 return dma_start(data->dma_tx.dma_dev, data->dma_tx.dma_channel); in uart_xmc4xxx_async_tx()
694 if (data->dma_rx.dma_dev == NULL) { in uart_xmc4xxx_async_rx_enable()
711 ret = dma_config(data->dma_rx.dma_dev, data->dma_rx.dma_channel, &data->dma_rx.dma_cfg); in uart_xmc4xxx_async_rx_enable()
721 return dma_start(data->dma_rx.dma_dev, data->dma_rx.dma_channel); in uart_xmc4xxx_async_rx_enable()
724 static void uart_xmc4xxx_dma_rx_cb(const struct device *dma_dev, void *user_data, uint32_t channel, in uart_xmc4xxx_dma_rx_cb() argument
739 dma_stop(data->dma_rx.dma_dev, data->dma_rx.dma_channel); in uart_xmc4xxx_dma_rx_cb()
757 dma_stop(data->dma_rx.dma_dev, data->dma_rx.dma_channel); in uart_xmc4xxx_dma_rx_cb()
769 ret = dma_reload(data->dma_rx.dma_dev, data->dma_rx.dma_channel, in uart_xmc4xxx_dma_rx_cb()
775 dma_stop(data->dma_rx.dma_dev, data->dma_rx.dma_channel); in uart_xmc4xxx_dma_rx_cb()
781 dma_start(data->dma_rx.dma_dev, data->dma_rx.dma_channel); in uart_xmc4xxx_dma_rx_cb()
805 dma_stop(data->dma_rx.dma_dev, data->dma_rx.dma_channel); in uart_xmc4xxx_async_rx_disable()
808 if (dma_get_status(data->dma_rx.dma_dev, data->dma_rx.dma_channel, &stat) == 0) { in uart_xmc4xxx_async_rx_disable()
826 static void uart_xmc4xxx_dma_tx_cb(const struct device *dma_dev, void *user_data, uint32_t channel, in uart_xmc4xxx_dma_tx_cb() argument
846 if (!dma_get_status(data->dma_tx.dma_dev, channel, &stat)) { in uart_xmc4xxx_dma_tx_cb()
853 dma_stop(data->dma_tx.dma_dev, data->dma_tx.dma_channel); in uart_xmc4xxx_dma_tx_cb()
970 .dma_dev = DEVICE_DT_GET(DT_INST_DMAS_CTLR_BY_NAME(index, dir)), \