Lines Matching refs:mm
6 static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk, unsigned cpu) in enter_lazy_tlb() argument
17 struct mm_struct *mm) in init_new_context() argument
19 mm->context = virt_to_phys(mm->pgd); in init_new_context()
23 #define destroy_context(mm) do { } while(0) argument
25 static inline void switch_mm_0230(struct mm_struct *mm) in switch_mm_0230() argument
28 0x80000000 | _PAGE_TABLE, mm->context in switch_mm_0230()
58 static inline void switch_mm_0460(struct mm_struct *mm) in switch_mm_0460() argument
66 asm volatile ("movec %0,%%urp" : : "r" (mm->context)); in switch_mm_0460()
107 extern unsigned long get_free_context(struct mm_struct *mm);
111 static inline int init_new_context(struct task_struct *tsk, struct mm_struct *mm) in init_new_context() argument
113 mm->context = SUN3_INVALID_CONTEXT; in init_new_context()
119 static inline void get_mmu_context(struct mm_struct *mm) in get_mmu_context() argument
121 if(mm->context == SUN3_INVALID_CONTEXT) in get_mmu_context()
122 mm->context = get_free_context(mm); in get_mmu_context()
126 static inline void destroy_context(struct mm_struct *mm) in destroy_context() argument
128 if(mm->context != SUN3_INVALID_CONTEXT) in destroy_context()
129 clear_context(mm->context); in destroy_context()
132 static inline void activate_context(struct mm_struct *mm) in activate_context() argument
134 get_mmu_context(mm); in activate_context()
135 sun3_put_context(mm->context); in activate_context()
140 activate_context(tsk->mm); in switch_mm()