Searched refs:sglist (Results 1 - 14 of 14) sorted by relevance

/arch/c6x/kernel/
H A Ddma.c64 int dma_map_sg(struct device *dev, struct scatterlist *sglist, argument
70 for_each_sg(sglist, sg, nents, i)
74 debug_dma_map_sg(dev, sglist, nents, nents, dir);
81 void dma_unmap_sg(struct device *dev, struct scatterlist *sglist, argument
87 for_each_sg(sglist, sg, nents, i)
90 debug_dma_unmap_sg(dev, sglist, nents, dir);
114 void dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sglist, argument
120 for_each_sg(sglist, sg, nents, i)
124 debug_dma_sync_sg_for_cpu(dev, sglist, nents, dir);
129 void dma_sync_sg_for_device(struct device *dev, struct scatterlist *sglist, argument
[all...]
/arch/powerpc/kernel/
H A Ddma-iommu.c59 static int dma_iommu_map_sg(struct device *dev, struct scatterlist *sglist, argument
63 return iommu_map_sg(dev, get_iommu_table_base(dev), sglist, nelems,
67 static void dma_iommu_unmap_sg(struct device *dev, struct scatterlist *sglist, argument
71 iommu_unmap_sg(get_iommu_table_base(dev), sglist, nelems, direction, local
H A Diommu.c432 struct scatterlist *sglist, int nelems,
448 outs = s = segstart = &sglist[0];
459 for_each_sg(sglist, s, nelems, i) {
543 * next entry of the sglist if we didn't fill the list completely
557 for_each_sg(sglist, s, nelems, i) {
575 void iommu_unmap_sg(struct iommu_table *tbl, struct scatterlist *sglist, argument
586 sg = sglist;
431 iommu_map_sg(struct device *dev, struct iommu_table *tbl, struct scatterlist *sglist, int nelems, unsigned long mask, enum dma_data_direction direction, struct dma_attrs *attrs) argument
H A Dvio.c553 static int vio_dma_iommu_map_sg(struct device *dev, struct scatterlist *sglist, argument
564 for (sgl = sglist; count < nelems; count++, sgl++)
572 ret = dma_iommu_ops.map_sg(dev, sglist, nelems, direction, attrs);
580 for (sgl = sglist, count = 0; count < ret; count++, sgl++)
589 struct scatterlist *sglist, int nelems,
600 for (sgl = sglist; count < nelems; count++, sgl++)
603 dma_iommu_ops.unmap_sg(dev, sglist, nelems, direction, attrs);
588 vio_dma_iommu_unmap_sg(struct device *dev, struct scatterlist *sglist, int nelems, enum dma_data_direction direction, struct dma_attrs *attrs) argument
/arch/tile/kernel/
H A Dpci-dma.c203 static int tile_dma_map_sg(struct device *dev, struct scatterlist *sglist, argument
212 WARN_ON(nents == 0 || sglist->length == 0);
214 for_each_sg(sglist, sg, nents, i) {
225 static void tile_dma_unmap_sg(struct device *dev, struct scatterlist *sglist, argument
233 for_each_sg(sglist, sg, nents, i) {
281 struct scatterlist *sglist, int nelems,
288 WARN_ON(nelems == 0 || sglist->length == 0);
290 for_each_sg(sglist, sg, nelems, i) {
297 struct scatterlist *sglist, int nelems,
304 WARN_ON(nelems == 0 || sglist
280 tile_dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sglist, int nelems, enum dma_data_direction direction) argument
296 tile_dma_sync_sg_for_device(struct device *dev, struct scatterlist *sglist, int nelems, enum dma_data_direction direction) argument
376 tile_pci_dma_map_sg(struct device *dev, struct scatterlist *sglist, int nents, enum dma_data_direction direction, struct dma_attrs *attrs) argument
400 tile_pci_dma_unmap_sg(struct device *dev, struct scatterlist *sglist, int nents, enum dma_data_direction direction, struct dma_attrs *attrs) argument
465 tile_pci_dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sglist, int nelems, enum dma_data_direction direction) argument
482 tile_pci_dma_sync_sg_for_device(struct device *dev, struct scatterlist *sglist, int nelems, enum dma_data_direction direction) argument
[all...]
/arch/parisc/kernel/
H A Dpci-dma.c478 static int pa11_dma_map_sg(struct device *dev, struct scatterlist *sglist, int nents, enum dma_data_direction direction) argument
484 for (i = 0; i < nents; i++, sglist++ ) {
485 unsigned long vaddr = sg_virt_addr(sglist);
486 sg_dma_address(sglist) = (dma_addr_t) virt_to_phys(vaddr);
487 sg_dma_len(sglist) = sglist->length;
488 flush_kernel_dcache_range(vaddr, sglist->length);
493 static void pa11_dma_unmap_sg(struct device *dev, struct scatterlist *sglist, int nents, enum dma_data_direction direction) argument
502 /* once we do combining we'll need to use phys_to_virt(sg_dma_address(sglist)) */
504 for (i = 0; i < nents; i++, sglist
523 pa11_dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sglist, int nents, enum dma_data_direction direction) argument
533 pa11_dma_sync_sg_for_device(struct device *dev, struct scatterlist *sglist, int nents, enum dma_data_direction direction) argument
[all...]
/arch/metag/include/asm/
H A Ddma-mapping.h48 dma_map_sg(struct device *dev, struct scatterlist *sglist, int nents, argument
55 WARN_ON(nents == 0 || sglist[0].length == 0);
57 for_each_sg(sglist, sg, nents, i) {
87 dma_unmap_sg(struct device *dev, struct scatterlist *sglist, int nhwentries, argument
94 WARN_ON(nhwentries == 0 || sglist[0].length == 0);
96 for_each_sg(sglist, sg, nhwentries, i) {
/arch/mn10300/include/asm/
H A Ddma-mapping.h51 int dma_map_sg(struct device *dev, struct scatterlist *sglist, int nents, argument
58 WARN_ON(nents == 0 || sglist[0].length == 0);
60 for_each_sg(sglist, sg, nents, i) {
/arch/c6x/include/asm/
H A Ddma-mapping.h45 extern int dma_map_sg(struct device *dev, struct scatterlist *sglist,
48 extern void dma_unmap_sg(struct device *dev, struct scatterlist *sglist,
/arch/powerpc/include/asm/
H A Diommu.h141 struct scatterlist *sglist, int nelems,
144 extern void iommu_unmap_sg(struct iommu_table *tbl, struct scatterlist *sglist,
/arch/ia64/hp/common/
H A Dsba_iommu.c1321 * the sglist do both.
1447 static void sba_unmap_sg_attrs(struct device *dev, struct scatterlist *sglist,
1453 * @sglist: array of buffer/length pairs
1460 static int sba_map_sg_attrs(struct device *dev, struct scatterlist *sglist, argument
1480 for_each_sg(sglist, sg, nents, filled) {
1489 sglist->dma_length = sglist->length;
1490 sglist->dma_address = sba_map_single_attrs(dev, sba_sg_address(sglist), sglist
1556 sba_unmap_sg_attrs(struct device *dev, struct scatterlist *sglist, int nents, enum dma_data_direction dir, struct dma_attrs *attrs) argument
[all...]
/arch/sparc/kernel/
H A Diommu.c525 static int dma_4u_map_sg(struct device *dev, struct scatterlist *sglist, argument
559 outs = s = segstart = &sglist[0];
571 for_each_sg(sglist, s, nelems, i) {
649 for_each_sg(sglist, s, nelems, i) {
697 static void dma_4u_unmap_sg(struct device *dev, struct scatterlist *sglist, argument
711 ctx = fetch_sg_ctx(iommu, sglist);
715 sg = sglist;
786 struct scatterlist *sglist, int nelems,
810 ((sglist[0].dma_address - iommu->page_table_map_base) >> IO_PAGE_SHIFT);
815 bus_addr = sglist[
785 dma_4u_sync_sg_for_cpu(struct device *dev, struct scatterlist *sglist, int nelems, enum dma_data_direction direction) argument
[all...]
H A Dpci_sun4v.c342 static int dma_4v_map_sg(struct device *dev, struct scatterlist *sglist, argument
366 outs = s = segstart = &sglist[0];
382 for_each_sg(sglist, s, nelems, i) {
465 for_each_sg(sglist, s, nelems, i) {
485 static void dma_4v_unmap_sg(struct device *dev, struct scatterlist *sglist, argument
503 sg = sglist;
/arch/x86/kernel/
H A Dpci-calgary_64.c341 static void calgary_unmap_sg(struct device *dev, struct scatterlist *sglist, argument
352 for_each_sg(sglist, s, nelems, i) {

Completed in 218 milliseconds