Lines Matching refs:context

99 	mm->context.hash_context = kmalloc(sizeof(struct hash_mm_context),  in hash__init_new_context()
101 if (!mm->context.hash_context) in hash__init_new_context()
118 if (mm->context.id == 0) { in hash__init_new_context()
119 memset(mm->context.hash_context, 0, sizeof(struct hash_mm_context)); in hash__init_new_context()
123 …memcpy(mm->context.hash_context, current->mm->context.hash_context, sizeof(struct hash_mm_context)… in hash__init_new_context()
126 if (current->mm->context.hash_context->spt) { in hash__init_new_context()
127 mm->context.hash_context->spt = kmalloc(sizeof(struct subpage_prot_table), in hash__init_new_context()
129 if (!mm->context.hash_context->spt) { in hash__init_new_context()
130 kfree(mm->context.hash_context); in hash__init_new_context()
137 index = realloc_context_ids(&mm->context); in hash__init_new_context()
140 kfree(mm->context.hash_context->spt); in hash__init_new_context()
142 kfree(mm->context.hash_context); in hash__init_new_context()
189 mm->context.hash_context = NULL; in radix__init_new_context()
207 mm->context.id = index; in init_new_context()
209 mm->context.pte_frag = NULL; in init_new_context()
210 mm->context.pmd_frag = NULL; in init_new_context()
214 atomic_set(&mm->context.active_cpus, 0); in init_new_context()
215 atomic_set(&mm->context.copros, 0); in init_new_context()
265 frag = mm->context.pte_frag; in destroy_pagetable_cache()
269 frag = mm->context.pmd_frag; in destroy_pagetable_cache()
278 WARN_ON_ONCE(!list_empty(&mm->context.iommu_group_mem_list)); in destroy_context()
294 process_tb[mm->context.id].prtb0 = 0; in destroy_context()
297 destroy_contexts(&mm->context); in destroy_context()
298 mm->context.id = MMU_NO_CONTEXT; in destroy_context()
320 process_tb[mm->context.id].prtb0 = 0; in arch_exit_mmap()
327 mtspr(SPRN_PID, next->context.id); in radix__switch_mmu_context()