Lines Matching refs:context
27 mm->context = alloc_sid(); in init_new_context()
34 free_sid(mm->context); in destroy_context()
35 mm->context = 0; in destroy_context()
38 static inline unsigned long __space_to_prot(mm_context_t context) in __space_to_prot() argument
41 return context << 1; in __space_to_prot()
43 return context >> (SPACEID_SHIFT - 1); in __space_to_prot()
47 static inline void load_context(mm_context_t context) in load_context() argument
49 mtsp(context, 3); in load_context()
50 mtctl(__space_to_prot(context), 8); in load_context()
58 load_context(next->context); in switch_mm_irqs_off()
90 if (next->context == 0) in activate_mm()
91 next->context = alloc_sid(); in activate_mm()