Lines Matching defs:ia64_ctx
42 struct ia64_ctx ia64_ctx = {
43 .lock = __SPIN_LOCK_UNLOCKED(ia64_ctx.lock),
55 * Initializes the ia64_ctx.bitmap array based on max_ctx+1.
56 * Called after cpu_init() has setup ia64_ctx.max_ctx based on
62 ia64_ctx.bitmap = memblock_alloc((ia64_ctx.max_ctx + 1) >> 3,
64 if (!ia64_ctx.bitmap)
66 (ia64_ctx.max_ctx + 1) >> 3);
67 ia64_ctx.flushmap = memblock_alloc((ia64_ctx.max_ctx + 1) >> 3,
69 if (!ia64_ctx.flushmap)
71 (ia64_ctx.max_ctx + 1) >> 3);
75 * Acquire the ia64_ctx.lock before calling this function!
83 for (i=0; i <= ia64_ctx.max_ctx / BITS_PER_LONG; i++) {
84 flush_bit = xchg(&ia64_ctx.flushmap[i], 0);
85 ia64_ctx.bitmap[i] ^= flush_bit;
89 ia64_ctx.next = find_next_zero_bit(ia64_ctx.bitmap,
90 ia64_ctx.max_ctx, 300);
91 ia64_ctx.limit = find_next_bit(ia64_ctx.bitmap,
92 ia64_ctx.max_ctx, ia64_ctx.next);