Home
last modified time | relevance | path

Searched refs:iova_len (Results 1 – 2 of 2) sorted by relevance

/drivers/vdpa/vdpa_user/
Diova_domain.c292 unsigned long iova_len = iova_align(iovad, size) >> shift; in vduse_domain_alloc_iova() local
301 if (iova_len < (1 << (IOVA_RANGE_CACHE_MAX_SIZE - 1))) in vduse_domain_alloc_iova()
302 iova_len = roundup_pow_of_two(iova_len); in vduse_domain_alloc_iova()
303 iova_pfn = alloc_iova_fast(iovad, iova_len, limit >> shift, true); in vduse_domain_alloc_iova()
312 unsigned long iova_len = iova_align(iovad, size) >> shift; in vduse_domain_free_iova() local
314 free_iova_fast(iovad, iova >> shift, iova_len); in vduse_domain_free_iova()
/drivers/iommu/
Ddma-iommu.c483 unsigned long shift, iova_len, iova = 0; in iommu_dma_alloc_iova() local
491 iova_len = size >> shift; in iommu_dma_alloc_iova()
498 if (iova_len < (1 << (IOVA_RANGE_CACHE_MAX_SIZE - 1))) in iommu_dma_alloc_iova()
499 iova_len = roundup_pow_of_two(iova_len); in iommu_dma_alloc_iova()
508 iova = alloc_iova_fast(iovad, iova_len, in iommu_dma_alloc_iova()
512 iova = alloc_iova_fast(iovad, iova_len, dma_limit >> shift, in iommu_dma_alloc_iova()
1038 size_t iova_len = 0; in iommu_dma_map_sg() local
1064 size_t pad_len = (mask - iova_len + 1) & mask; in iommu_dma_map_sg()
1087 iova_len += pad_len; in iommu_dma_map_sg()
1090 iova_len += s_length; in iommu_dma_map_sg()
[all …]