Lines Matching refs:context
64 mm->context.l1_stack_save = current_l1_stack_save = (void*)sp_base; in activate_l1stack()
82 if (prev_mm->context.page_rwx_mask == current_rwx_mask[cpu]) { in __switch_mm()
84 set_mask_dcplbs(next_mm->context.page_rwx_mask, cpu); in __switch_mm()
90 if (!next_mm->context.l1_stack_save) in __switch_mm()
92 if (next_mm->context.l1_stack_save == current_l1_stack_save) in __switch_mm()
97 current_l1_stack_save = next_mm->context.l1_stack_save; in __switch_mm()
123 unsigned long *mask = mm->context.page_rwx_mask; in protect_page()
154 if (mm->context.page_rwx_mask == current_rwx_mask[cpu]) { in update_protections()
156 set_mask_dcplbs(mm->context.page_rwx_mask, cpu); in update_protections()
177 mm->context.page_rwx_mask = (unsigned long *)p; in init_new_context()
178 memset(mm->context.page_rwx_mask, 0, in init_new_context()
192 if (current_l1_stack_save == mm->context.l1_stack_save) in destroy_context()
194 if (mm->context.l1_stack_save) in destroy_context()
198 while ((tmp = mm->context.sram_list)) { in destroy_context()
199 mm->context.sram_list = tmp->next; in destroy_context()
204 if (current_rwx_mask[cpu] == mm->context.page_rwx_mask) in destroy_context()
206 free_pages((unsigned long)mm->context.page_rwx_mask, page_mask_order); in destroy_context()