Home
last modified time | relevance | path

Searched refs:boundary_size (Results 1 – 9 of 9) sorted by relevance

/kernel/linux/linux-5.10/include/linux/
Diommu-helper.h19 unsigned long shift, unsigned long boundary_size) in iommu_is_span_boundary() argument
21 BUG_ON(!is_power_of_2(boundary_size)); in iommu_is_span_boundary()
23 shift = (shift + index) & (boundary_size - 1); in iommu_is_span_boundary()
24 return shift + nr > boundary_size; in iommu_is_span_boundary()
30 unsigned long boundary_size,
/kernel/linux/linux-5.10/lib/
Diommu-helper.c11 unsigned long shift, unsigned long boundary_size, in iommu_area_alloc() argument
21 if (iommu_is_span_boundary(index, nr, shift, boundary_size)) { in iommu_area_alloc()
22 start = ALIGN(shift + index, boundary_size) - shift; in iommu_area_alloc()
/kernel/linux/linux-5.10/arch/sparc/kernel/
Diommu_common.h40 unsigned long boundary_size, in is_span_boundary() argument
48 return iommu_is_span_boundary(entry, nr, shift, boundary_size); in is_span_boundary()
Diommu-common.c105 unsigned long n, end, start, limit, boundary_size; in iommu_tbl_range_alloc() local
176 boundary_size = iommu->poolsize * iommu->nr_pools; in iommu_tbl_range_alloc()
178 boundary_size = dma_get_seg_boundary_nr_pages(dev, in iommu_tbl_range_alloc()
182 boundary_size, align_mask); in iommu_tbl_range_alloc()
/kernel/linux/linux-5.10/arch/x86/kernel/
Damd_gart_64.c95 unsigned long boundary_size; in alloc_iommu() local
100 boundary_size = dma_get_seg_boundary_nr_pages(dev, PAGE_SHIFT); in alloc_iommu()
104 size, base_index, boundary_size, align_mask); in alloc_iommu()
108 size, base_index, boundary_size, in alloc_iommu()
/kernel/linux/linux-5.10/arch/alpha/kernel/
Dpci_iommu.c141 unsigned long boundary_size; in iommu_arena_find_pages() local
144 boundary_size = dma_get_seg_boundary_nr_pages(dev, PAGE_SHIFT); in iommu_arena_find_pages()
154 if (!i && iommu_is_span_boundary(p, n, base, boundary_size)) { in iommu_arena_find_pages()
/kernel/linux/linux-5.10/drivers/parisc/
Dccio-dma.c300 ret = iommu_is_span_boundary(idx << 3, pages_needed, 0, boundary_size);\
344 unsigned long boundary_size; in ccio_alloc_range() local
360 boundary_size = dma_get_seg_boundary_nr_pages(dev, IOVP_SHIFT); in ccio_alloc_range()
Dsba_iommu.c342 unsigned long boundary_size; in sba_search_bitmap() local
346 boundary_size = dma_get_seg_boundary_nr_pages(dev, IOVP_SHIFT); in sba_search_bitmap()
361 boundary_size); in sba_search_bitmap()
396 boundary_size); in sba_search_bitmap()
/kernel/linux/linux-5.10/arch/ia64/hp/common/
Dsba_iommu.c481 unsigned long boundary_size; in sba_search_bitmap() local
488 boundary_size = dma_get_seg_boundary_nr_pages(dev, iovp_shift); in sba_search_bitmap()
549 boundary_size); in sba_search_bitmap()
575 shift, boundary_size); in sba_search_bitmap()