Lines Matching refs:sglist
908 ccio_map_sg(struct device *dev, struct scatterlist *sglist, int nents, in ccio_map_sg() argument
927 sg_dma_address(sglist) = ccio_map_single(dev, in ccio_map_sg()
928 sg_virt(sglist), sglist->length, in ccio_map_sg()
930 sg_dma_len(sglist) = sglist->length; in ccio_map_sg()
935 prev_len += sglist[i].length; in ccio_map_sg()
951 coalesced = iommu_coalesce_chunks(ioc, dev, sglist, nents, ccio_alloc_range); in ccio_map_sg()
961 filled = iommu_fill_pdir(ioc, sglist, nents, hint, ccio_io_pdir_entry); in ccio_map_sg()
970 current_len += sg_dma_len(sglist + i); in ccio_map_sg()
987 ccio_unmap_sg(struct device *dev, struct scatterlist *sglist, int nents, in ccio_unmap_sg() argument
1000 __func__, nents, sg_virt(sglist), sglist->length); in ccio_unmap_sg()
1006 while(sg_dma_len(sglist) && nents--) { in ccio_unmap_sg()
1009 ioc->usg_pages += sg_dma_len(sglist) >> PAGE_SHIFT; in ccio_unmap_sg()
1011 ccio_unmap_page(dev, sg_dma_address(sglist), in ccio_unmap_sg()
1012 sg_dma_len(sglist), direction, 0); in ccio_unmap_sg()
1013 ++sglist; in ccio_unmap_sg()