Lines Matching refs:dms
775 dmaengine_terminate_async(host->dms->ch); in dw_mci_edmac_stop_dma()
807 ret = dmaengine_slave_config(host->dms->ch, &cfg); in dw_mci_edmac_start_dma()
813 desc = dmaengine_prep_slave_sg(host->dms->ch, sgl, in dw_mci_edmac_start_dma()
831 dma_async_issue_pending(host->dms->ch); in dw_mci_edmac_start_dma()
839 host->dms = kzalloc(sizeof(struct dw_mci_dma_slave), GFP_KERNEL); in dw_mci_edmac_init()
840 if (!host->dms) in dw_mci_edmac_init()
843 host->dms->ch = dma_request_chan(host->dev, "rx-tx"); in dw_mci_edmac_init()
844 if (IS_ERR(host->dms->ch)) { in dw_mci_edmac_init()
845 int ret = PTR_ERR(host->dms->ch); in dw_mci_edmac_init()
848 kfree(host->dms); in dw_mci_edmac_init()
849 host->dms = NULL; in dw_mci_edmac_init()
858 if (host->dms) { in dw_mci_edmac_exit()
859 if (host->dms->ch) { in dw_mci_edmac_exit()
860 dma_release_channel(host->dms->ch); in dw_mci_edmac_exit()
861 host->dms->ch = NULL; in dw_mci_edmac_exit()
863 kfree(host->dms); in dw_mci_edmac_exit()
864 host->dms = NULL; in dw_mci_edmac_exit()