Lines Matching refs:context
25 mm->context = alloc_sid(); in init_new_context()
32 free_sid(mm->context); in destroy_context()
33 mm->context = 0; in destroy_context()
36 static inline unsigned long __space_to_prot(mm_context_t context) in __space_to_prot() argument
39 return context << 1; in __space_to_prot()
41 return context >> (SPACEID_SHIFT - 1); in __space_to_prot()
45 static inline void load_context(mm_context_t context) in load_context() argument
47 mtsp(context, 3); in load_context()
48 mtctl(__space_to_prot(context), 8); in load_context()
56 load_context(next->context); in switch_mm_irqs_off()
88 if (next->context == 0) in activate_mm()
89 next->context = alloc_sid(); in activate_mm()