Home
last modified time | relevance | path

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

/linux/drivers/iommu/
H A Ddma-iommu.c767 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()
1481 if (ret < 0 || ret < iova_len) in iommu_dma_map_sg()
[all …]
/linux/drivers/vdpa/vdpa_user/
H A Diova_domain.c362 unsigned long iova_len = iova_align(iovad, size) >> shift; in vduse_domain_alloc_iova() local
365 iova_pfn = alloc_iova_fast(iovad, iova_len, limit >> shift, true); in vduse_domain_alloc_iova()
374 unsigned long iova_len = iova_align(iovad, size) >> shift; in vduse_domain_free_iova() local
376 free_iova_fast(iovad, iova >> shift, iova_len); in vduse_domain_free_iova()