Lines Matching defs: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 */
58 * When the context counter wraps around all TLBs need to be flushed because
59 * an old context number might have been reused. This is signalled by the
83 nv_mm_context_t context = mm->context;
85 if (likely(context))
90 context = mm->context;
91 if (context == 0) {
101 mm->context = context = ia64_ctx.next++;
102 __set_bit(context, ia64_ctx.bitmap);
107 * Ensure we're not starting to use "context" before any old
112 return context;
116 * Initialize context number to some sane value. MM is guaranteed to be a
122 mm->context = 0;
133 reload_context (nv_mm_context_t context)
140 rid = context << 3; /* make space for encoding the region number */
167 nv_mm_context_t context;
170 context = get_mmu_context(mm);
173 reload_context(context);
178 } while (unlikely(context != mm->context));