Lines Matching refs:new_ctx
769 unsigned long new_ver, new_ctx, old_ctx; in mmu_context_wrap() local
806 new_ctx = (old_ctx & ~CTX_VERSION_MASK) | new_ver; in mmu_context_wrap()
807 set_bit(new_ctx & CTX_NR_MASK, mmu_context_bmap); in mmu_context_wrap()
808 mm->context.sparc64_ctx_val = new_ctx; in mmu_context_wrap()
825 unsigned long ctx, new_ctx; in get_new_mmu_context() local
835 new_ctx = find_next_zero_bit(mmu_context_bmap, 1 << CTX_NR_BITS, ctx); in get_new_mmu_context()
836 if (new_ctx >= (1 << CTX_NR_BITS)) { in get_new_mmu_context()
837 new_ctx = find_next_zero_bit(mmu_context_bmap, ctx, 1); in get_new_mmu_context()
838 if (new_ctx >= ctx) { in get_new_mmu_context()
845 mmu_context_bmap[new_ctx>>6] |= (1UL << (new_ctx & 63)); in get_new_mmu_context()
846 new_ctx |= (tlb_context_cache & CTX_VERSION_MASK); in get_new_mmu_context()
847 tlb_context_cache = new_ctx; in get_new_mmu_context()
848 mm->context.sparc64_ctx_val = new_ctx | orig_pgsz_bits; in get_new_mmu_context()