Home
last modified time | relevance | path

Searched refs:context_map (Results 1 – 11 of 11) sorted by relevance

/Linux-v5.10/arch/powerpc/mm/book3s32/
Dmmu_context.c56 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/
Dmmu_context.c82 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/
Dmmu_context_mm.h60 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/
Dmmu_context.c29 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/
Dmmu_context.h25 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/
Dmsm_iommu.h58 DECLARE_BITMAP(context_map, IOMMU_MAX_CBS);
Dmsm_iommu.c438 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/
Dmcfmmu.c28 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/
Dmmal-vchiq.c174 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/
Darm-smmu.c630 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()
Darm-smmu.h302 DECLARE_BITMAP(context_map, ARM_SMMU_MAX_CBS);