Lines Matching refs:dma_cfg

60 	struct usb_smartbond_dma_config dma_cfg;  member
129 const struct usb_smartbond_dma_config *dma_cfg = &config->dma_cfg; in usb_smartbond_dma_config() local
135 if (dma_request_channel(dma_cfg->rx_dev, (void *)&dma_cfg->rx_chan) < 0) { in usb_smartbond_dma_config()
140 if (dma_request_channel(dma_cfg->tx_dev, (void *)&dma_cfg->tx_chan) < 0) { in usb_smartbond_dma_config()
155 tx->dma_slot = dma_cfg->tx_slot_mux; in usb_smartbond_dma_config()
187 rx->dma_slot = dma_cfg->rx_slot_mux; in usb_smartbond_dma_config()
209 if (dma_config(dma_cfg->rx_dev, dma_cfg->rx_chan, rx) < 0) { in usb_smartbond_dma_config()
214 if (dma_config(dma_cfg->tx_dev, dma_cfg->tx_chan, tx) < 0) { in usb_smartbond_dma_config()
225 const struct usb_smartbond_dma_config *dma_cfg = &config->dma_cfg; in usb_smartbond_dma_deconfig() local
227 dma_stop(dma_cfg->tx_dev, dma_cfg->tx_chan); in usb_smartbond_dma_deconfig()
228 dma_stop(dma_cfg->rx_dev, dma_cfg->rx_chan); in usb_smartbond_dma_deconfig()
230 dma_release_channel(dma_cfg->tx_dev, dma_cfg->tx_chan); in usb_smartbond_dma_deconfig()
231 dma_release_channel(dma_cfg->rx_dev, dma_cfg->rx_chan); in usb_smartbond_dma_deconfig()
348 static void start_rx_dma(const struct usb_smartbond_dma_config *dma_cfg, uintptr_t src, in start_rx_dma() argument
351 if (dma_reload(dma_cfg->rx_dev, dma_cfg->rx_chan, src, dst, size) < 0) { in start_rx_dma()
354 dma_start(dma_cfg->rx_dev, dma_cfg->rx_chan); in start_rx_dma()
375 start_rx_dma(&config->dma_cfg, (uintptr_t)&regs->rxd, in start_rx_packet()
400 static void start_tx_dma(const struct usb_smartbond_dma_config *dma_cfg, uintptr_t src, in start_tx_dma() argument
403 if (dma_reload(dma_cfg->tx_dev, dma_cfg->tx_chan, src, dst, size) < 0) { in start_tx_dma()
406 dma_start(dma_cfg->tx_dev, dma_cfg->tx_chan); in start_tx_dma()
435 start_tx_dma(&config->dma_cfg, (uintptr_t)buf->data, (uintptr_t)&regs->txd, size); in start_tx_packet()
538 dma_stop(config->dma_cfg.rx_dev, config->dma_cfg.rx_chan); in udc_smartbond_ep_abort()
541 dma_stop(config->dma_cfg.tx_dev, config->dma_cfg.tx_chan); in udc_smartbond_ep_abort()
932 dma_stop(config->dma_cfg.rx_dev, config->dma_cfg.rx_chan); in handle_epx_rx_ev()
936 dma_start(config->dma_cfg.rx_dev, config->dma_cfg.rx_chan); in handle_epx_rx_ev()
944 dma_get_status(config->dma_cfg.rx_dev, config->dma_cfg.rx_chan, in handle_epx_rx_ev()
950 dma_stop(config->dma_cfg.rx_dev, config->dma_cfg.rx_chan); in handle_epx_rx_ev()
1040 dma_get_status(config->dma_cfg.tx_dev, config->dma_cfg.tx_chan, in handle_epx_tx_ev()
1046 dma_stop(config->dma_cfg.tx_dev, config->dma_cfg.tx_chan); in handle_epx_tx_ev()
1750 .dma_cfg = { \