/kernel/linux/linux-5.10/arch/sparc/kernel/ |
H A D | iommu-common.c | 48 * is the number of table entries. If `large_pool' is set to true, 56 bool large_pool, u32 npools, in iommu_tbl_pool_init() 60 struct iommu_pool *p = &(iommu->large_pool); in iommu_tbl_pool_init() 74 if (large_pool) in iommu_tbl_pool_init() 77 if (!large_pool) in iommu_tbl_pool_init() 88 if (!large_pool) in iommu_tbl_pool_init() 90 /* initialize large_pool */ in iommu_tbl_pool_init() 111 bool large_pool = ((iommu->flags & IOMMU_HAS_LARGE_POOL) != 0); in iommu_tbl_range_alloc() local 112 bool largealloc = (large_pool && npages > iommu_large_alloc); in iommu_tbl_range_alloc() 126 pool = &(iommu->large_pool); in iommu_tbl_range_alloc() 52 iommu_tbl_pool_init(struct iommu_map_table *iommu, unsigned long num_entries, u32 table_shift, void (*lazy_flush)(struct iommu_map_table *), bool large_pool, u32 npools, bool skip_span_boundary_check) iommu_tbl_pool_init() argument 228 bool large_pool = ((tbl->flags & IOMMU_HAS_LARGE_POOL) != 0); get_pool() local [all...] |
/kernel/linux/linux-6.6/arch/sparc/kernel/ |
H A D | iommu-common.c | 48 * is the number of table entries. If `large_pool' is set to true, 56 bool large_pool, u32 npools, in iommu_tbl_pool_init() 60 struct iommu_pool *p = &(iommu->large_pool); in iommu_tbl_pool_init() 74 if (large_pool) in iommu_tbl_pool_init() 77 if (!large_pool) in iommu_tbl_pool_init() 88 if (!large_pool) in iommu_tbl_pool_init() 90 /* initialize large_pool */ in iommu_tbl_pool_init() 111 bool large_pool = ((iommu->flags & IOMMU_HAS_LARGE_POOL) != 0); in iommu_tbl_range_alloc() local 112 bool largealloc = (large_pool && npages > iommu_large_alloc); in iommu_tbl_range_alloc() 126 pool = &(iommu->large_pool); in iommu_tbl_range_alloc() 52 iommu_tbl_pool_init(struct iommu_map_table *iommu, unsigned long num_entries, u32 table_shift, void (*lazy_flush)(struct iommu_map_table *), bool large_pool, u32 npools, bool skip_span_boundary_check) iommu_tbl_pool_init() argument 228 bool large_pool = ((tbl->flags & IOMMU_HAS_LARGE_POOL) != 0); get_pool() local [all...] |
/kernel/linux/linux-5.10/arch/sparc/include/asm/ |
H A D | iommu-common.h | 31 struct iommu_pool large_pool; member 39 bool large_pool, u32 npools,
|
/kernel/linux/linux-6.6/arch/sparc/include/asm/ |
H A D | iommu-common.h | 31 struct iommu_pool large_pool; member 39 bool large_pool, u32 npools,
|
/kernel/linux/linux-5.10/arch/powerpc/kernel/ |
H A D | iommu.c | 211 pool = &(tbl->large_pool); in iommu_range_alloc() 372 unsigned long largepool_start = tbl->large_pool.start; in get_pool() 376 p = &tbl->large_pool; in get_pool() 725 p = &tbl->large_pool; in iommu_init_table() 1062 spin_lock_irqsave(&tbl->large_pool.lock, flags); in iommu_take_ownership() 1064 spin_lock_nest_lock(&tbl->pools[i].lock, &tbl->large_pool.lock); in iommu_take_ownership() 1080 spin_unlock_irqrestore(&tbl->large_pool.lock, flags); in iommu_take_ownership() 1090 spin_lock_irqsave(&tbl->large_pool.lock, flags); in iommu_release_ownership() 1092 spin_lock_nest_lock(&tbl->pools[i].lock, &tbl->large_pool.lock); in iommu_release_ownership() 1101 spin_unlock_irqrestore(&tbl->large_pool in iommu_release_ownership() [all...] |
/kernel/linux/linux-6.6/arch/powerpc/kernel/ |
H A D | iommu.c | 250 pool = &(tbl->large_pool); in iommu_range_alloc() 311 pool = &tbl->large_pool; in iommu_range_alloc() 420 unsigned long largepool_start = tbl->large_pool.start; in get_pool() 424 p = &tbl->large_pool; in get_pool() 762 p = &tbl->large_pool; in iommu_init_table() 1120 spin_lock_irqsave(&tbl->large_pool.lock, flags); in iommu_take_ownership() 1122 spin_lock_nest_lock(&tbl->pools[i].lock, &tbl->large_pool.lock); in iommu_take_ownership() 1133 spin_unlock_irqrestore(&tbl->large_pool.lock, flags); in iommu_take_ownership() 1142 spin_lock_irqsave(&tbl->large_pool.lock, flags); in iommu_release_ownership() 1144 spin_lock_nest_lock(&tbl->pools[i].lock, &tbl->large_pool in iommu_release_ownership() [all...] |
/kernel/linux/linux-5.10/arch/powerpc/include/asm/ |
H A D | iommu.h | 106 struct iommu_pool large_pool; member
|
/kernel/linux/linux-6.6/arch/powerpc/include/asm/ |
H A D | iommu.h | 107 struct iommu_pool large_pool; member
|
/kernel/linux/linux-5.10/arch/powerpc/platforms/pseries/ |
H A D | iommu.c | 662 spin_lock_irqsave(&tbl->large_pool.lock, flags); in tce_exchange_pseries() 673 spin_unlock_irqrestore(&tbl->large_pool.lock, flags); in tce_exchange_pseries()
|
/kernel/linux/linux-6.6/arch/powerpc/platforms/pseries/ |
H A D | iommu.c | 673 spin_lock_irqsave(&tbl->large_pool.lock, flags); in tce_exchange_pseries() 684 spin_unlock_irqrestore(&tbl->large_pool.lock, flags); in tce_exchange_pseries()
|