Lines Matching refs:dma_len
21 unsigned long dma_offset = 0, dma_len = 0; in iommu_fill_pdir() local
46 BUG_ON(pdirp && (dma_len != sg_dma_len(dma_sg))); in iommu_fill_pdir()
50 dma_len = sg_dma_len(startsg); in iommu_fill_pdir()
105 unsigned long dma_offset, dma_len; /* start/len of DMA stream */ in iommu_coalesce_chunks() local
115 dma_len = startsg->length; in iommu_coalesce_chunks()
145 if(unlikely(ALIGN(dma_len + dma_offset + startsg->length, in iommu_coalesce_chunks()
149 if (startsg->length + dma_len > max_seg_size) in iommu_coalesce_chunks()
159 dma_len += startsg->length; in iommu_coalesce_chunks()
167 sg_dma_len(contig_sg) = dma_len; in iommu_coalesce_chunks()
168 dma_len = ALIGN(dma_len + dma_offset, IOVP_SIZE); in iommu_coalesce_chunks()
171 | (iommu_alloc_range(ioc, dev, dma_len) << IOVP_SHIFT) in iommu_coalesce_chunks()