Home
last modified time | relevance | path

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

/Linux-v4.19/arch/powerpc/mm/
Dmmu_context_hash32.c61 static unsigned long context_map[LAST_CONTEXT / BITS_PER_LONG + 1]; variable
67 while (test_and_set_bit(ctx, context_map)) { in __init_new_context()
68 ctx = find_next_zero_bit(context_map, LAST_CONTEXT+1, ctx); in __init_new_context()
93 clear_bit(ctx, context_map); in __destroy_context()
116 context_map[0] = (1 << FIRST_CONTEXT) - 1; in mmu_context_init()
Dmmu_context_nohash.c86 static unsigned long *context_map; variable
185 __clear_bit(id, context_map); in steal_all_contexts()
241 int used = test_bit(id, context_map); in context_check_map()
258 if (FIRST_CONTEXT > 0 && !test_bit(0, context_map)) in context_check_map()
307 map = context_map; in switch_mmu_context()
407 __clear_bit(id, context_map); in destroy_context()
464 context_map = memblock_virt_alloc(CTX_MAP_SIZE, 0); in mmu_context_init()
485 context_map[0] = (1 << FIRST_CONTEXT) - 1; in mmu_context_init()
/Linux-v4.19/arch/microblaze/include/asm/
Dmmu_context_mm.h63 extern unsigned long context_map[];
93 while (test_and_set_bit(ctx, context_map)) { in get_mmu_context()
94 ctx = find_next_zero_bit(context_map, LAST_CONTEXT+1, ctx); in get_mmu_context()
114 clear_bit(mm->context, context_map); in destroy_context()
/Linux-v4.19/arch/microblaze/mm/
Dmmu_context.c34 unsigned long context_map[LAST_CONTEXT / BITS_PER_LONG + 1]; variable
47 context_map[0] = (1 << FIRST_CONTEXT) - 1; in mmu_context_init()
/Linux-v4.19/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-v4.19/arch/m68k/mm/
Dmcfmmu.c29 unsigned long context_map[LAST_CONTEXT / BITS_PER_LONG + 1]; variable
196 context_map[0] = (1 << FIRST_CONTEXT) - 1; in cf_mmu_context_init()
/Linux-v4.19/drivers/iommu/
Dmsm_iommu.h71 DECLARE_BITMAP(context_map, IOMMU_MAX_CBS);
Dmsm_iommu.c460 msm_iommu_alloc_ctx(iommu->context_map, in msm_iommu_attach_dev()
499 msm_iommu_free_ctx(iommu->context_map, master->num); in msm_iommu_detach_dev()
Darm-smmu.c189 DECLARE_BITMAP(context_map, ARM_SMMU_MAX_CBS);
837 ret = __arm_smmu_alloc_bitmap(smmu->context_map, start, in arm_smmu_init_domain_context()
931 __arm_smmu_free_bitmap(smmu->context_map, cfg->cbndx); in arm_smmu_destroy_domain_context()
2182 if (!bitmap_empty(smmu->context_map, ARM_SMMU_MAX_CBS)) in arm_smmu_device_remove()
/Linux-v4.19/drivers/staging/vc04_services/bcm2835-camera/
Dmmal-vchiq.c164 struct idr context_map; member
189 handle = idr_alloc(&instance->context_map, msg_context, in get_msg_context()
207 return idr_find(&instance->context_map, handle); in lookup_msg_context()
216 idr_remove(&instance->context_map, msg_context->handle); in release_msg_context()
1795 idr_destroy(&instance->context_map); in vchiq_mmal_finalise()
1858 idr_init_base(&instance->context_map, 1); in vchiq_mmal_init()