Lines Matching refs:sg_cpu
73 struct pxa_dma_desc *sg_cpu; member
217 host->sg_cpu[i].dcmd = dcmd | length; in pxamci_setup_data()
219 host->sg_cpu[i].dcmd |= DCMD_ENDIRQEN; in pxamci_setup_data()
224 host->sg_cpu[i].dsadr = host->res->start + MMC_RXFIFO; in pxamci_setup_data()
225 host->sg_cpu[i].dtadr = sg_dma_address(&data->sg[i]); in pxamci_setup_data()
227 host->sg_cpu[i].dsadr = sg_dma_address(&data->sg[i]); in pxamci_setup_data()
228 host->sg_cpu[i].dtadr = host->res->start + MMC_TXFIFO; in pxamci_setup_data()
230 host->sg_cpu[i].ddadr = host->sg_dma + (i + 1) * in pxamci_setup_data()
233 host->sg_cpu[host->dma_len - 1].ddadr = DDADR_STOP; in pxamci_setup_data()
705 host->sg_cpu = dma_alloc_coherent(&pdev->dev, PAGE_SIZE, &host->sg_dma, GFP_KERNEL); in pxamci_probe()
706 if (!host->sg_cpu) { in pxamci_probe()
821 if (host->sg_cpu) in pxamci_probe()
822 dma_free_coherent(&pdev->dev, PAGE_SIZE, host->sg_cpu, host->sg_dma); in pxamci_probe()
872 dma_free_coherent(&pdev->dev, PAGE_SIZE, host->sg_cpu, host->sg_dma); in pxamci_remove()