Lines Matching refs:ia64_ctx
42 struct ia64_ctx ia64_ctx = { variable
43 .lock = __SPIN_LOCK_UNLOCKED(ia64_ctx.lock),
62 ia64_ctx.bitmap = memblock_alloc((ia64_ctx.max_ctx + 1) >> 3, in mmu_context_init()
64 if (!ia64_ctx.bitmap) in mmu_context_init()
66 (ia64_ctx.max_ctx + 1) >> 3); in mmu_context_init()
67 ia64_ctx.flushmap = memblock_alloc((ia64_ctx.max_ctx + 1) >> 3, in mmu_context_init()
69 if (!ia64_ctx.flushmap) in mmu_context_init()
71 (ia64_ctx.max_ctx + 1) >> 3); in mmu_context_init()
83 for (i=0; i <= ia64_ctx.max_ctx / BITS_PER_LONG; i++) { in wrap_mmu_context()
84 flush_bit = xchg(&ia64_ctx.flushmap[i], 0); in wrap_mmu_context()
85 ia64_ctx.bitmap[i] ^= flush_bit; in wrap_mmu_context()
89 ia64_ctx.next = find_next_zero_bit(ia64_ctx.bitmap, in wrap_mmu_context()
90 ia64_ctx.max_ctx, 300); in wrap_mmu_context()
91 ia64_ctx.limit = find_next_bit(ia64_ctx.bitmap, in wrap_mmu_context()
92 ia64_ctx.max_ctx, ia64_ctx.next); in wrap_mmu_context()