Searched refs:context_map (Results 1 – 11 of 11) sorted by relevance
/Linux-v5.10/arch/powerpc/mm/book3s32/ |
D | mmu_context.c | 56 static unsigned long context_map[LAST_CONTEXT / BITS_PER_LONG + 1]; variable 62 while (test_and_set_bit(ctx, context_map)) { in __init_new_context() 63 ctx = find_next_zero_bit(context_map, LAST_CONTEXT+1, ctx); in __init_new_context() 88 clear_bit(ctx, context_map); in __destroy_context() 111 context_map[0] = (1 << FIRST_CONTEXT) - 1; in mmu_context_init()
|
/Linux-v5.10/arch/powerpc/mm/nohash/ |
D | mmu_context.c | 82 static unsigned long *context_map; variable 181 __clear_bit(id, context_map); in steal_all_contexts() 237 int used = test_bit(id, context_map); in context_check_map() 254 if (FIRST_CONTEXT > 0 && !test_bit(0, context_map)) in context_check_map() 303 map = context_map; in switch_mmu_context() 402 __clear_bit(id, context_map); in destroy_context() 459 context_map = memblock_alloc(CTX_MAP_SIZE, SMP_CACHE_BYTES); in mmu_context_init() 460 if (!context_map) in mmu_context_init() 490 context_map[0] = (1 << FIRST_CONTEXT) - 1; in mmu_context_init()
|
/Linux-v5.10/arch/microblaze/include/asm/ |
D | mmu_context_mm.h | 60 extern unsigned long context_map[]; 90 while (test_and_set_bit(ctx, context_map)) { in get_mmu_context() 91 ctx = find_next_zero_bit(context_map, LAST_CONTEXT+1, ctx); in get_mmu_context() 111 clear_bit(mm->context, context_map); in destroy_context()
|
/Linux-v5.10/arch/microblaze/mm/ |
D | mmu_context.c | 29 unsigned long context_map[LAST_CONTEXT / BITS_PER_LONG + 1]; variable 42 context_map[0] = (1 << FIRST_CONTEXT) - 1; in mmu_context_init()
|
/Linux-v5.10/arch/m68k/include/asm/ |
D | mmu_context.h | 25 extern unsigned long context_map[]; 43 while (test_and_set_bit(ctx, context_map)) { in get_mmu_context() 44 ctx = find_next_zero_bit(context_map, LAST_CONTEXT+1, ctx); in get_mmu_context() 64 clear_bit(mm->context, context_map); in destroy_context()
|
/Linux-v5.10/drivers/iommu/ |
D | msm_iommu.h | 58 DECLARE_BITMAP(context_map, IOMMU_MAX_CBS);
|
D | msm_iommu.c | 438 msm_iommu_alloc_ctx(iommu->context_map, in msm_iommu_attach_dev() 477 msm_iommu_free_ctx(iommu->context_map, master->num); in msm_iommu_detach_dev()
|
/Linux-v5.10/arch/m68k/mm/ |
D | mcfmmu.c | 28 unsigned long context_map[LAST_CONTEXT / BITS_PER_LONG + 1]; variable 210 context_map[0] = (1 << FIRST_CONTEXT) - 1; in cf_mmu_context_init()
|
/Linux-v5.10/drivers/staging/vc04_services/vchiq-mmal/ |
D | mmal-vchiq.c | 174 struct idr context_map; member 204 handle = idr_alloc(&instance->context_map, msg_context, in get_msg_context() 222 return idr_find(&instance->context_map, handle); in lookup_msg_context() 231 idr_remove(&instance->context_map, msg_context->handle); in release_msg_context() 1852 idr_destroy(&instance->context_map); in vchiq_mmal_finalise() 1915 idr_init_base(&instance->context_map, 1); in vchiq_mmal_init()
|
/Linux-v5.10/drivers/iommu/arm/arm-smmu/ |
D | arm-smmu.c | 630 return __arm_smmu_alloc_bitmap(smmu->context_map, start, smmu->num_context_banks); in arm_smmu_alloc_context_bank() 837 __arm_smmu_free_bitmap(smmu->context_map, cfg->cbndx); in arm_smmu_init_domain_context() 871 __arm_smmu_free_bitmap(smmu->context_map, cfg->cbndx); in arm_smmu_destroy_domain_context() 2252 if (!bitmap_empty(smmu->context_map, ARM_SMMU_MAX_CBS)) in arm_smmu_device_remove()
|
D | arm-smmu.h | 302 DECLARE_BITMAP(context_map, ARM_SMMU_MAX_CBS);
|