Lines Matching refs:sg
353 dma_unmap_sg(mmc_dev(host->mmc), data->sg, data->sg_len, host->dma.dir); in au1xmmc_data_complete()
399 struct scatterlist *sg; in au1xmmc_send_pio() local
407 sg = &data->sg[host->pio.index]; in au1xmmc_send_pio()
408 sg_ptr = sg_virt(sg) + host->pio.offset; in au1xmmc_send_pio()
411 sg_len = data->sg[host->pio.index].length - host->pio.offset; in au1xmmc_send_pio()
454 struct scatterlist *sg; in au1xmmc_receive_pio() local
464 sg = &data->sg[host->pio.index]; in au1xmmc_receive_pio()
465 sg_ptr = sg_virt(sg) + host->pio.offset; in au1xmmc_receive_pio()
468 sg_len = sg_dma_len(&data->sg[host->pio.index]) - host->pio.offset; in au1xmmc_receive_pio()
630 host->dma.len = dma_map_sg(mmc_dev(host->mmc), data->sg, in au1xmmc_prepare_data()
646 struct scatterlist *sg = &data->sg[i]; in au1xmmc_prepare_data() local
647 int sg_len = sg->length; in au1xmmc_prepare_data()
656 sg_phys(sg), len, flags); in au1xmmc_prepare_data()
659 sg_phys(sg), len, flags); in au1xmmc_prepare_data()
682 dma_unmap_sg(mmc_dev(host->mmc), data->sg, data->sg_len, in au1xmmc_prepare_data()