Lines Matching refs:new_ctx
755 unsigned long new_ver, new_ctx, old_ctx; in mmu_context_wrap() local
792 new_ctx = (old_ctx & ~CTX_VERSION_MASK) | new_ver; in mmu_context_wrap()
793 set_bit(new_ctx & CTX_NR_MASK, mmu_context_bmap); in mmu_context_wrap()
794 mm->context.sparc64_ctx_val = new_ctx; in mmu_context_wrap()
811 unsigned long ctx, new_ctx; in get_new_mmu_context() local
821 new_ctx = find_next_zero_bit(mmu_context_bmap, 1 << CTX_NR_BITS, ctx); in get_new_mmu_context()
822 if (new_ctx >= (1 << CTX_NR_BITS)) { in get_new_mmu_context()
823 new_ctx = find_next_zero_bit(mmu_context_bmap, ctx, 1); in get_new_mmu_context()
824 if (new_ctx >= ctx) { in get_new_mmu_context()
831 mmu_context_bmap[new_ctx>>6] |= (1UL << (new_ctx & 63)); in get_new_mmu_context()
832 new_ctx |= (tlb_context_cache & CTX_VERSION_MASK); in get_new_mmu_context()
833 tlb_context_cache = new_ctx; in get_new_mmu_context()
834 mm->context.sparc64_ctx_val = new_ctx | orig_pgsz_bits; in get_new_mmu_context()