Lines Matching refs:context
26 mm->context = alloc_sid(); in init_new_context()
33 free_sid(mm->context); in destroy_context()
34 mm->context = 0; in destroy_context()
37 static inline unsigned long __space_to_prot(mm_context_t context) in __space_to_prot() argument
40 return context << 1; in __space_to_prot()
42 return context >> (SPACEID_SHIFT - 1); in __space_to_prot()
46 static inline void load_context(mm_context_t context) in load_context() argument
48 mtsp(context, 3); in load_context()
49 mtctl(__space_to_prot(context), 8); in load_context()
57 load_context(next->context); in switch_mm()
75 if (next->context == 0) in activate_mm()
76 next->context = alloc_sid(); in activate_mm()