Lines Matching defs:context
10 * Routines to manage the allocation of task context numbers. Task context
12 * due to context switches. Context numbers are implemented using ia-64
36 unsigned int next; /* next context number to use */
38 unsigned int max_ctx; /* max. context value supported by all CPUs */
56 * When the context counter wraps around all TLBs need to be flushed because
57 * an old context number might have been reused. This is signalled by the
81 nv_mm_context_t context = mm->context;
83 if (likely(context))
88 context = mm->context;
89 if (context == 0) {
99 mm->context = context = ia64_ctx.next++;
100 __set_bit(context, ia64_ctx.bitmap);
105 * Ensure we're not starting to use "context" before any old
110 return context;
114 * Initialize context number to some sane value. MM is guaranteed to be a
120 mm->context = 0;
131 reload_context (nv_mm_context_t context)
138 rid = context << 3; /* make space for encoding the region number */
165 nv_mm_context_t context;
168 context = get_mmu_context(mm);
171 reload_context(context);
176 } while (unlikely(context != mm->context));