Home
last modified time | relevance | path

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

/linux-6.1.9/include/linux/
Diommu-helper.h21 unsigned long shift, unsigned long boundary_size) in iommu_is_span_boundary() argument
23 BUG_ON(!is_power_of_2(boundary_size)); in iommu_is_span_boundary()
25 shift = (shift + index) & (boundary_size - 1); in iommu_is_span_boundary()
26 return shift + nr > boundary_size; in iommu_is_span_boundary()
32 unsigned long boundary_size,
/linux-6.1.9/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()
/linux-6.1.9/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()
/linux-6.1.9/arch/x86/kernel/
Damd_gart_64.c93 unsigned long boundary_size; in alloc_iommu() local
98 boundary_size = dma_get_seg_boundary_nr_pages(dev, PAGE_SHIFT); in alloc_iommu()
102 size, base_index, boundary_size, align_mask); in alloc_iommu()
106 size, base_index, boundary_size, in alloc_iommu()
/linux-6.1.9/arch/alpha/kernel/
Dpci_iommu.c112 unsigned long boundary_size; in iommu_arena_find_pages() local
115 boundary_size = dma_get_seg_boundary_nr_pages(dev, PAGE_SHIFT); in iommu_arena_find_pages()
125 if (!i && iommu_is_span_boundary(p, n, base, boundary_size)) { in iommu_arena_find_pages()
/linux-6.1.9/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.c348 unsigned long boundary_size; in sba_search_bitmap() local
352 boundary_size = dma_get_seg_boundary_nr_pages(dev, IOVP_SHIFT); in sba_search_bitmap()
367 boundary_size); in sba_search_bitmap()
402 boundary_size); in sba_search_bitmap()
/linux-6.1.9/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()