Lines Matching full:context
11 * Routines to manage the allocation of task context numbers. Task context
13 * due to context switches. Context numbers are implemented using ia-64
38 unsigned int next; /* next context number to use */
40 unsigned int max_ctx; /* max. context value supported by all CPUs */
53 * When the context counter wraps around all TLBs need to be flushed because
54 * an old context number might have been reused. This is signalled by the
78 nv_mm_context_t context = mm->context; in get_mmu_context() local
80 if (likely(context)) in get_mmu_context()
85 context = mm->context; in get_mmu_context()
86 if (context == 0) { in get_mmu_context()
96 mm->context = context = ia64_ctx.next++; in get_mmu_context()
97 __set_bit(context, ia64_ctx.bitmap); in get_mmu_context()
102 * Ensure we're not starting to use "context" before any old in get_mmu_context()
107 return context; in get_mmu_context()
111 * Initialize context number to some sane value. MM is guaranteed to be a
118 mm->context = 0; in init_new_context()
123 reload_context (nv_mm_context_t context) in reload_context() argument
133 rid = context << 3; /* make space for encoding the region number */ in reload_context()
160 nv_mm_context_t context; in activate_context() local
163 context = get_mmu_context(mm); in activate_context()
166 reload_context(context); in activate_context()
171 } while (unlikely(context != mm->context)); in activate_context()