/arch/powerpc/kernel/ |
D | dma-iommu.c | 118 static int dma_iommu_map_sg(struct device *dev, struct scatterlist *sglist, in dma_iommu_map_sg() argument 122 return ppc_iommu_map_sg(dev, get_iommu_table_base(dev), sglist, nelems, in dma_iommu_map_sg() 126 static void dma_iommu_unmap_sg(struct device *dev, struct scatterlist *sglist, in dma_iommu_unmap_sg() argument 130 ppc_iommu_unmap_sg(get_iommu_table_base(dev), sglist, nelems, in dma_iommu_unmap_sg()
|
D | iommu.c | 471 struct scatterlist *sglist, int nelems, in ppc_iommu_map_sg() argument 487 outs = s = segstart = &sglist[0]; in ppc_iommu_map_sg() 498 for_each_sg(sglist, s, nelems, i) { in ppc_iommu_map_sg() 596 for_each_sg(sglist, s, nelems, i) { in ppc_iommu_map_sg() 613 void ppc_iommu_unmap_sg(struct iommu_table *tbl, struct scatterlist *sglist, in ppc_iommu_unmap_sg() argument 624 sg = sglist; in ppc_iommu_unmap_sg()
|
/arch/ia64/hp/common/ |
D | sba_iommu.c | 1416 static void sba_unmap_sg_attrs(struct device *dev, struct scatterlist *sglist, 1429 static int sba_map_sg_attrs(struct device *dev, struct scatterlist *sglist, in sba_map_sg_attrs() argument 1449 for_each_sg(sglist, sg, nents, filled) { in sba_map_sg_attrs() 1458 sglist->dma_length = sglist->length; in sba_map_sg_attrs() 1459 sglist->dma_address = sba_map_page(dev, sg_page(sglist), in sba_map_sg_attrs() 1460 sglist->offset, sglist->length, dir, attrs); in sba_map_sg_attrs() 1461 if (dma_mapping_error(dev, sglist->dma_address)) in sba_map_sg_attrs() 1470 sba_dump_sg(ioc, sglist, nents); in sba_map_sg_attrs() 1486 coalesced = sba_coalesce_chunks(ioc, dev, sglist, nents); in sba_map_sg_attrs() 1488 sba_unmap_sg_attrs(dev, sglist, nents, dir, attrs); in sba_map_sg_attrs() [all …]
|
/arch/sparc/kernel/ |
D | iommu.c | 432 static int dma_4u_map_sg(struct device *dev, struct scatterlist *sglist, in dma_4u_map_sg() argument 466 outs = s = segstart = &sglist[0]; in dma_4u_map_sg() 477 for_each_sg(sglist, s, nelems, i) { in dma_4u_map_sg() 555 for_each_sg(sglist, s, nelems, i) { in dma_4u_map_sg() 605 static void dma_4u_unmap_sg(struct device *dev, struct scatterlist *sglist, in dma_4u_unmap_sg() argument 619 ctx = fetch_sg_ctx(iommu, sglist); in dma_4u_unmap_sg() 623 sg = sglist; in dma_4u_unmap_sg() 696 struct scatterlist *sglist, int nelems, in dma_4u_sync_sg_for_cpu() argument 720 iopte = iommu->page_table + ((sglist[0].dma_address - in dma_4u_sync_sg_for_cpu() 726 bus_addr = sglist[0].dma_address & IO_PAGE_MASK; in dma_4u_sync_sg_for_cpu() [all …]
|
D | pci_sun4v.c | 468 static int dma_4v_map_sg(struct device *dev, struct scatterlist *sglist, in dma_4v_map_sg() argument 499 outs = s = segstart = &sglist[0]; in dma_4v_map_sg() 522 for_each_sg(sglist, s, nelems, i) { in dma_4v_map_sg() 603 for_each_sg(sglist, s, nelems, i) { in dma_4v_map_sg() 623 static void dma_4v_unmap_sg(struct device *dev, struct scatterlist *sglist, in dma_4v_unmap_sg() argument 644 sg = sglist; in dma_4v_unmap_sg()
|
/arch/mips/jazz/ |
D | jazzdma.c | 543 static int jazz_dma_map_sg(struct device *dev, struct scatterlist *sglist, in jazz_dma_map_sg() argument 549 for_each_sg(sglist, sg, nents, i) { in jazz_dma_map_sg() 562 static void jazz_dma_unmap_sg(struct device *dev, struct scatterlist *sglist, in jazz_dma_unmap_sg() argument 568 for_each_sg(sglist, sg, nents, i) { in jazz_dma_unmap_sg()
|
/arch/powerpc/include/asm/ |
D | iommu.h | 254 struct scatterlist *sglist, int nelems, 259 struct scatterlist *sglist,
|
/arch/powerpc/platforms/pseries/ |
D | vio.c | 550 static int vio_dma_iommu_map_sg(struct device *dev, struct scatterlist *sglist, in vio_dma_iommu_map_sg() argument 560 for_each_sg(sglist, sgl, nelems, count) in vio_dma_iommu_map_sg() 566 ret = ppc_iommu_map_sg(dev, tbl, sglist, nelems, dma_get_mask(dev), in vio_dma_iommu_map_sg() 571 for_each_sg(sglist, sgl, ret, count) in vio_dma_iommu_map_sg() 585 struct scatterlist *sglist, int nelems, in vio_dma_iommu_unmap_sg() argument 595 for_each_sg(sglist, sgl, nelems, count) in vio_dma_iommu_unmap_sg() 598 ppc_iommu_unmap_sg(tbl, sglist, nelems, direction, attrs); in vio_dma_iommu_unmap_sg()
|