Lines Matching refs:sglist
895 * @sglist: The scatter/gather list to be mapped in the IOMMU.
903 ccio_map_sg(struct device *dev, struct scatterlist *sglist, int nents,
922 sg_dma_address(sglist) = ccio_map_single(dev,
923 sg_virt(sglist), sglist->length,
925 sg_dma_len(sglist) = sglist->length;
930 prev_len += sglist[i].length;
946 coalesced = iommu_coalesce_chunks(ioc, dev, sglist, nents, ccio_alloc_range);
956 filled = iommu_fill_pdir(ioc, sglist, nents, hint, ccio_io_pdir_entry);
965 current_len += sg_dma_len(sglist + i);
975 * @sglist: The scatter/gather list to be unmapped from the IOMMU.
983 ccio_unmap_sg(struct device *dev, struct scatterlist *sglist, int nents,
996 __func__, nents, sg_virt(sglist), sglist->length);
1002 while (nents && sg_dma_len(sglist)) {
1005 ioc->usg_pages += sg_dma_len(sglist) >> PAGE_SHIFT;
1007 ccio_unmap_page(dev, sg_dma_address(sglist),
1008 sg_dma_len(sglist), direction, 0);
1009 ++sglist;