Lines Matching refs:sg
306 struct scatterlist *sg; in mips_dma_map_sg() local
308 for_each_sg(sglist, sg, nents, i) { in mips_dma_map_sg()
310 __dma_sync(sg_page(sg), sg->offset, sg->length, in mips_dma_map_sg()
313 sg->dma_length = sg->length; in mips_dma_map_sg()
315 sg->dma_address = plat_map_dma_mem_page(dev, sg_page(sg)) + in mips_dma_map_sg()
316 sg->offset; in mips_dma_map_sg()
337 struct scatterlist *sg; in mips_dma_unmap_sg() local
339 for_each_sg(sglist, sg, nhwentries, i) { in mips_dma_unmap_sg()
342 __dma_sync(sg_page(sg), sg->offset, sg->length, in mips_dma_unmap_sg()
344 plat_unmap_dma_mem(dev, sg->dma_address, sg->length, direction); in mips_dma_unmap_sg()
370 struct scatterlist *sg; in mips_dma_sync_sg_for_cpu() local
373 for_each_sg(sglist, sg, nelems, i) { in mips_dma_sync_sg_for_cpu()
374 __dma_sync(sg_page(sg), sg->offset, sg->length, in mips_dma_sync_sg_for_cpu()
386 struct scatterlist *sg; in mips_dma_sync_sg_for_device() local
389 for_each_sg(sglist, sg, nelems, i) { in mips_dma_sync_sg_for_device()
390 __dma_sync(sg_page(sg), sg->offset, sg->length, in mips_dma_sync_sg_for_device()