/linux-4.1.27/lib/ |
H A D | iommu-helper.c | 11 unsigned long boundary_size) iommu_is_span_boundary() 13 BUG_ON(!is_power_of_2(boundary_size)); iommu_is_span_boundary() 15 shift = (shift + index) & (boundary_size - 1); iommu_is_span_boundary() 16 return shift + nr > boundary_size; iommu_is_span_boundary() 21 unsigned long shift, unsigned long boundary_size, iommu_area_alloc() 31 if (iommu_is_span_boundary(index, nr, shift, boundary_size)) { iommu_area_alloc() 9 iommu_is_span_boundary(unsigned int index, unsigned int nr, unsigned long shift, unsigned long boundary_size) iommu_is_span_boundary() argument 19 iommu_area_alloc(unsigned long *map, unsigned long size, unsigned long start, unsigned int nr, unsigned long shift, unsigned long boundary_size, unsigned long align_mask) iommu_area_alloc() argument
|
H A D | iommu-common.c | 109 unsigned long n, end, start, limit, boundary_size; iommu_tbl_range_alloc() local 174 boundary_size = ALIGN(dma_get_seg_boundary(dev) + 1, iommu_tbl_range_alloc() 177 boundary_size = ALIGN(1ULL << 32, 1 << iommu->table_shift); iommu_tbl_range_alloc() 179 boundary_size = boundary_size >> iommu->table_shift; iommu_tbl_range_alloc() 187 boundary_size = iommu->poolsize * iommu->nr_pools; iommu_tbl_range_alloc() 190 boundary_size, align_mask); iommu_tbl_range_alloc()
|
/linux-4.1.27/include/linux/ |
H A D | iommu-helper.h | 18 unsigned long boundary_size); 22 unsigned long boundary_size,
|
/linux-4.1.27/arch/sparc/kernel/ |
H A D | iommu_common.h | 40 unsigned long boundary_size, is_span_boundary() 48 return iommu_is_span_boundary(entry, nr, shift, boundary_size); is_span_boundary() 38 is_span_boundary(unsigned long entry, unsigned long shift, unsigned long boundary_size, struct scatterlist *outs, struct scatterlist *sg) is_span_boundary() argument
|
/linux-4.1.27/arch/s390/pci/ |
H A D | pci_dma.c | 216 unsigned long boundary_size; __dma_alloc_iommu() local 218 boundary_size = ALIGN(dma_get_seg_boundary(&zdev->pdev->dev) + 1, __dma_alloc_iommu() 221 start, size, 0, boundary_size, 0); __dma_alloc_iommu()
|
/linux-4.1.27/arch/x86/kernel/ |
H A D | amd_gart_64.c | 98 unsigned long boundary_size; alloc_iommu() local 103 boundary_size = ALIGN((u64)dma_get_seg_boundary(dev) + 1, alloc_iommu() 108 size, base_index, boundary_size, align_mask); alloc_iommu() 112 size, base_index, boundary_size, alloc_iommu()
|
H A D | pci-calgary_64.c | 233 unsigned long boundary_size; iommu_range_alloc() local 235 boundary_size = ALIGN(dma_get_seg_boundary(dev) + 1, iommu_range_alloc() 243 npages, 0, boundary_size, 0); iommu_range_alloc() 248 npages, 0, boundary_size, 0); iommu_range_alloc()
|
/linux-4.1.27/arch/alpha/kernel/ |
H A D | pci_iommu.c | 129 unsigned long boundary_size; iommu_arena_find_pages() 133 boundary_size = dma_get_seg_boundary(dev) + 1; iommu_arena_find_pages() 134 boundary_size >>= PAGE_SHIFT; iommu_arena_find_pages() 136 boundary_size = 1UL << (32 - PAGE_SHIFT); iommu_arena_find_pages() 147 if (!i && iommu_is_span_boundary(p, n, base, boundary_size)) { iommu_arena_find_pages() 128 unsigned long boundary_size; iommu_arena_find_pages() local
|
/linux-4.1.27/arch/powerpc/kernel/ |
H A D | iommu.c | 188 unsigned long boundary_size; iommu_range_alloc() local 253 boundary_size = ALIGN(dma_get_seg_boundary(dev) + 1, iommu_range_alloc() 256 boundary_size = ALIGN(1UL << 32, 1 << tbl->it_page_shift); iommu_range_alloc() 260 boundary_size >> tbl->it_page_shift, align_mask); iommu_range_alloc()
|
/linux-4.1.27/arch/ia64/hp/common/ |
H A D | sba_iommu.c | 489 unsigned long boundary_size; sba_search_bitmap() local 496 boundary_size = (unsigned long long)dma_get_seg_boundary(dev) + 1; sba_search_bitmap() 497 boundary_size = ALIGN(boundary_size, 1ULL << iovp_shift) >> iovp_shift; sba_search_bitmap() 558 boundary_size); sba_search_bitmap() 584 shift, boundary_size); sba_search_bitmap()
|
/linux-4.1.27/drivers/parisc/ |
H A D | sba_iommu.c | 342 unsigned long boundary_size; sba_search_bitmap() local 346 boundary_size = ALIGN((unsigned long long)dma_get_seg_boundary(dev) + 1, sba_search_bitmap() 362 boundary_size); sba_search_bitmap() 397 boundary_size); sba_search_bitmap()
|
H A D | ccio-dma.c | 300 ret = iommu_is_span_boundary(idx << 3, pages_needed, 0, boundary_size);\ 344 unsigned long boundary_size; ccio_alloc_range() local 360 boundary_size = ALIGN((unsigned long long)dma_get_seg_boundary(dev) + 1, ccio_alloc_range()
|
/linux-4.1.27/drivers/iommu/ |
H A D | amd_iommu.c | 1707 unsigned long boundary_size; dma_ops_area_alloc() local 1713 boundary_size = ALIGN(dma_get_seg_boundary(dev) + 1, dma_ops_area_alloc() 1727 boundary_size, align_mask); dma_ops_area_alloc()
|