Lines Matching +full:i +full:- +full:tlb +full:- +full:sets
1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * OpenRISC tlb.c
11 * Copyright (C) 2010-2011 Julius Baxter <julius.baxter@orsoc.se>
12 * Copyright (C) 2010-2011 Jonas Bonn <jonas@southpole.se>
29 #define NO_CONTEXT -1
35 #define DTLB_OFFSET(addr) (((addr) >> PAGE_SHIFT) & (NUM_DTLB_SETS-1))
36 #define ITLB_OFFSET(addr) (((addr) >> PAGE_SHIFT) & (NUM_ITLB_SETS-1))
38 * Invalidate all TLB entries.
48 int i; in local_flush_tlb_all() local
51 /* Determine number of sets for IMMU. */ in local_flush_tlb_all()
52 /* FIXME: Assumption is I & D nsets equal. */ in local_flush_tlb_all()
55 for (i = 0; i < num_tlb_sets; i++) { in local_flush_tlb_all()
56 mtspr_off(SPR_DTLBMR_BASE(0), i, 0); in local_flush_tlb_all()
57 mtspr_off(SPR_ITLBMR_BASE(0), i, 0); in local_flush_tlb_all()
68 * the data or instruction TLB that should be flushed... that would take more
72 * MMU's with a single way and is hard-coded that way.
156 current_pgd[cpu] = next->pgd; in switch_mm()
171 mm->context = NO_CONTEXT; in init_new_context()
191 /* invalidate the entire TLB */ in tlb_init()