Lines Matching refs:mm
60 activate_l1stack(struct mm_struct *mm, unsigned long sp_base) in activate_l1stack() argument
64 mm->context.l1_stack_save = current_l1_stack_save = (void*)sp_base; in activate_l1stack()
69 #define deactivate_mm(tsk,mm) do { } while (0) argument
120 static inline void protect_page(struct mm_struct *mm, unsigned long addr, in protect_page() argument
123 unsigned long *mask = mm->context.page_rwx_mask; in protect_page()
151 static inline void update_protections(struct mm_struct *mm) in update_protections() argument
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()
167 static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) in enter_lazy_tlb() argument
173 init_new_context(struct task_struct *tsk, struct mm_struct *mm) in init_new_context() argument
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()
184 static inline void destroy_context(struct mm_struct *mm) in destroy_context() argument
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()