Lines Matching refs:iova_len
409 unsigned long shift, iova_len, iova = 0;
417 iova_len = size >> shift;
424 if (iova_len < (1 << (IOVA_RANGE_CACHE_MAX_SIZE - 1)))
425 iova_len = roundup_pow_of_two(iova_len);
434 iova = alloc_iova_fast(iovad, iova_len,
438 iova = alloc_iova_fast(iovad, iova_len, dma_limit >> shift,
842 size_t iova_len = 0;
861 size_t pad_len = (mask - iova_len + 1) & mask;
879 * iova_len == 0, thus we cannot dereference prev the first
884 iova_len += pad_len;
887 iova_len += s_length;
891 iova = iommu_dma_alloc_iova(domain, iova_len, dma_get_mask(dev), dev);
899 if (iommu_map_sg_atomic(domain, iova, sg, nents, prot) < iova_len)
905 iommu_dma_free_iova(cookie, iova, iova_len);