Lines Matching refs:sg
379 static int sbus_map_sg(struct device *dev, struct scatterlist *sg, int n, in sbus_map_sg() argument
382 mmu_get_scsi_sgl(dev, sg, n); in sbus_map_sg()
386 static void sbus_unmap_sg(struct device *dev, struct scatterlist *sg, int n, in sbus_unmap_sg() argument
389 mmu_release_scsi_sgl(dev, sg, n); in sbus_unmap_sg()
392 static void sbus_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, in sbus_sync_sg_for_cpu() argument
398 static void sbus_sync_sg_for_device(struct device *dev, struct scatterlist *sg, in sbus_sync_sg_for_device() argument
553 struct scatterlist *sg; in pci32_map_sg() local
557 for_each_sg(sgl, sg, nents, n) { in pci32_map_sg()
558 sg->dma_address = sg_phys(sg); in pci32_map_sg()
559 sg->dma_length = sg->length; in pci32_map_sg()
572 struct scatterlist *sg; in pci32_unmap_sg() local
576 for_each_sg(sgl, sg, nents, n) { in pci32_unmap_sg()
577 dma_make_coherent(sg_phys(sg), PAGE_ALIGN(sg->length)); in pci32_unmap_sg()
617 struct scatterlist *sg; in pci32_sync_sg_for_cpu() local
621 for_each_sg(sgl, sg, nents, n) { in pci32_sync_sg_for_cpu()
622 dma_make_coherent(sg_phys(sg), PAGE_ALIGN(sg->length)); in pci32_sync_sg_for_cpu()
630 struct scatterlist *sg; in pci32_sync_sg_for_device() local
634 for_each_sg(sgl, sg, nents, n) { in pci32_sync_sg_for_device()
635 dma_make_coherent(sg_phys(sg), PAGE_ALIGN(sg->length)); in pci32_sync_sg_for_device()