Lines Matching refs:iova_len
767 unsigned long shift, iova_len, iova; in iommu_dma_alloc_iova() local
775 iova_len = size >> shift; in iommu_dma_alloc_iova()
794 iova = alloc_iova_fast(iovad, iova_len, in iommu_dma_alloc_iova()
803 iova = alloc_iova_fast(iovad, iova_len, dma_limit >> shift, true); in iommu_dma_alloc_iova()
1387 size_t iova_len = 0; in iommu_dma_map_sg() local
1413 size_t pad_len = (mask - iova_len + 1) & mask; in iommu_dma_map_sg()
1460 iova_len += pad_len; in iommu_dma_map_sg()
1463 iova_len += s_length; in iommu_dma_map_sg()
1467 if (!iova_len) in iommu_dma_map_sg()
1470 iova = iommu_dma_alloc_iova(domain, iova_len, dma_get_mask(dev), dev); in iommu_dma_map_sg()
1481 if (ret < 0 || ret < iova_len) in iommu_dma_map_sg()
1487 iommu_dma_free_iova(cookie, iova, iova_len, NULL); in iommu_dma_map_sg()