Lines Matching +full:8 +full:- +full:cpu
1 // SPDX-License-Identifier: GPL-2.0
25 #include <asm/cpu.h>
49 write_c0_index(entry << 8); in local_flush_tlb_from()
65 local_flush_tlb_from(r3k_have_wired_reg ? read_c0_wired() : 8); in local_flush_tlb_all()
73 struct mm_struct *mm = vma->vm_mm; in local_flush_tlb_range()
74 int cpu = smp_processor_id(); in local_flush_tlb_range() local
76 if (cpu_context(cpu, mm) != 0) { in local_flush_tlb_range()
81 cpu_context(cpu, mm) & asid_mask, start, end); in local_flush_tlb_range()
84 size = (end - start + (PAGE_SIZE - 1)) >> PAGE_SHIFT; in local_flush_tlb_range()
87 int newpid = cpu_context(cpu, mm) & asid_mask; in local_flush_tlb_range()
90 end += PAGE_SIZE - 1; in local_flush_tlb_range()
121 size = (end - start + (PAGE_SIZE - 1)) >> PAGE_SHIFT; in local_flush_tlb_kernel_range()
126 end += PAGE_SIZE - 1; in local_flush_tlb_kernel_range()
152 int cpu = smp_processor_id(); in local_flush_tlb_page() local
154 if (cpu_context(cpu, vma->vm_mm) != 0) { in local_flush_tlb_page()
159 printk("[tlbpage<%lu,0x%08lx>]", cpu_context(cpu, vma->vm_mm), page); in local_flush_tlb_page()
161 newpid = cpu_context(cpu, vma->vm_mm) & asid_mask; in local_flush_tlb_page()
190 if (current->active_mm != vma->vm_mm) in __update_tlb()
196 if ((pid != (cpu_context(cpu, vma->vm_mm) & asid_mask)) || (cpu_context(cpu, vma->vm_mm) == 0)) { in __update_tlb()
198 (cpu_context(cpu, vma->vm_mm)), pid); in __update_tlb()
232 printk("[tlbwired<entry lo0 %8x, hi %8x\n, pagemask %8x>]\n", in add_wired_entry()
242 write_c0_index(w << 8); in add_wired_entry()
254 } else if (wired < 8) { in add_wired_entry()
256 printk("[tlbwired<entry lo0 %8x, hi %8x\n>]\n", in add_wired_entry()
279 write_c0_wired(0); /* Set to 8 on reset... */ in tlb_init()