Lines Matching refs:idma

84 	struct sdmmc_idma *idma = host->dma_priv;  in sdmmc_idma_validate_data()  local
93 idma->use_bounce_buffer = false; in sdmmc_idma_validate_data()
115 if (!idma->bounce_buf) { in sdmmc_idma_validate_data()
116 idma->bounce_buf = dmam_alloc_coherent(dev, in sdmmc_idma_validate_data()
118 &idma->bounce_dma_addr, in sdmmc_idma_validate_data()
120 if (!idma->bounce_buf) { in sdmmc_idma_validate_data()
126 idma->use_bounce_buffer = true; in sdmmc_idma_validate_data()
134 struct sdmmc_idma *idma = host->dma_priv; in _sdmmc_idma_prep_data() local
136 if (idma->use_bounce_buffer) { in _sdmmc_idma_prep_data()
141 idma->bounce_buf, xfer_bytes); in _sdmmc_idma_prep_data()
173 struct sdmmc_idma *idma = host->dma_priv; in sdmmc_idma_unprep_data() local
175 if (idma->use_bounce_buffer) { in sdmmc_idma_unprep_data()
180 idma->bounce_buf, xfer_bytes); in sdmmc_idma_unprep_data()
190 struct sdmmc_idma *idma; in sdmmc_idma_setup() local
193 idma = devm_kzalloc(dev, sizeof(*idma), GFP_KERNEL); in sdmmc_idma_setup()
194 if (!idma) in sdmmc_idma_setup()
197 host->dma_priv = idma; in sdmmc_idma_setup()
200 idma->sg_cpu = dmam_alloc_coherent(dev, SDMMC_LLI_BUF_LEN, in sdmmc_idma_setup()
201 &idma->sg_dma, GFP_KERNEL); in sdmmc_idma_setup()
202 if (!idma->sg_cpu) { in sdmmc_idma_setup()
222 struct sdmmc_idma *idma = host->dma_priv; in sdmmc_idma_start() local
223 struct sdmmc_lli_desc *desc = (struct sdmmc_lli_desc *)idma->sg_cpu; in sdmmc_idma_start()
231 idma->use_bounce_buffer) { in sdmmc_idma_start()
234 if (idma->use_bounce_buffer) in sdmmc_idma_start()
235 dma_addr = idma->bounce_dma_addr; in sdmmc_idma_start()
258 writel_relaxed(idma->sg_dma, host->base + MMCI_STM32_IDMABAR); in sdmmc_idma_start()
271 struct sdmmc_idma *idma = host->dma_priv; in sdmmc_idma_error() local
280 if (!idma->use_bounce_buffer) in sdmmc_idma_error()