Home
last modified time | relevance | path

Searched refs:asid_mask (Results 1 – 9 of 9) sorted by relevance

/arch/mips/mm/
Dtlb-r3k.c72 unsigned long asid_mask = cpu_asid_mask(&current_cpu_data); in local_flush_tlb_range() local
81 cpu_context(cpu, mm) & asid_mask, start, end); in local_flush_tlb_range()
86 int oldpid = read_c0_entryhi() & asid_mask; in local_flush_tlb_range()
87 int newpid = cpu_context(cpu, mm) & asid_mask; in local_flush_tlb_range()
151 unsigned long asid_mask = cpu_asid_mask(&current_cpu_data); in local_flush_tlb_page() local
161 newpid = cpu_context(cpu, vma->vm_mm) & asid_mask; in local_flush_tlb_page()
164 oldpid = read_c0_entryhi() & asid_mask; in local_flush_tlb_page()
183 unsigned long asid_mask = cpu_asid_mask(&current_cpu_data); in __update_tlb() local
193 pid = read_c0_entryhi() & asid_mask; in __update_tlb()
196 if ((pid != (cpu_context(cpu, vma->vm_mm) & asid_mask)) || (cpu_context(cpu, vma->vm_mm) == 0)) { in __update_tlb()
[all …]
/arch/mips/lib/
Dr3k_dump_tlb.c32 unsigned long entryhi, entrylo0, asid_mask; in dump_tlb() local
34 asid_mask = cpu_asid_mask(&current_cpu_data); in dump_tlb()
35 asid = read_c0_entryhi() & asid_mask; in dump_tlb()
50 (entryhi & asid_mask) == asid)) { in dump_tlb()
59 entryhi & asid_mask, in dump_tlb()
/arch/riscv/mm/
Dcontext.c25 unsigned long asid_mask; variable
84 __set_bit(cntx & asid_mask, context_asid_map); in __flush_context()
105 unsigned long newcntx = ver | (cntx & asid_mask); in __new_context()
118 if (!__test_and_set_bit(cntx & asid_mask, context_asid_map)) in __new_context()
171 ((cntx & ~asid_mask) == atomic_long_read(&current_version)) && in set_mm_asid()
180 if ((cntx & ~asid_mask) != atomic_long_read(&current_version)) { in set_mm_asid()
194 ((cntx & asid_mask) << SATP_ASID_SHIFT) | in set_mm_asid()
249 asid_mask = num_asids - 1; in asids_init()
Dtlbflush.c46 unsigned long asid = atomic_long_read(&mm->context.id) & asid_mask; in __sbi_tlb_flush_range()
/arch/mips/include/asm/
Dcpu-info.h55 unsigned long asid_mask; member
206 return cpuinfo->asid_mask; in cpu_asid_mask()
212 unsigned long asid_mask) in set_cpu_asid_mask() argument
215 cpuinfo->asid_mask = asid_mask; in set_cpu_asid_mask()
Dmmu_context.h96 unsigned long asid_mask = cpu_asid_mask(&cpu_data[cpu]); in asid_version_mask() local
98 return ~(u64)(asid_mask | (asid_mask - 1)); in asid_version_mask()
/arch/riscv/include/asm/
Dtlbflush.h15 extern unsigned long asid_mask;
/arch/mips/kernel/
Dcpu-probe.c562 unsigned long asid_mask; in decode_config4() local
625 asid_mask = MIPS_ENTRYHI_ASID; in decode_config4()
627 asid_mask |= MIPS_ENTRYHI_ASIDX; in decode_config4()
628 set_cpu_asid_mask(c, asid_mask); in decode_config4()
635 WARN_ON(asid_mask != cpu_asid_mask(c)); in decode_config4()
643 unsigned long asid_mask; in decode_config5() local
692 asid_mask = read_c0_memorymapid(); in decode_config5()
707 if (asid_mask > GENMASK(max_mmid_width - 1, 0)) { in decode_config5()
710 asid_mask = GENMASK(max_mmid_width - 1, 0); in decode_config5()
713 set_cpu_asid_mask(c, asid_mask); in decode_config5()
/arch/mips/kvm/
Dentry.c385 UASM_i_LA_mostly(&p, AT, (long)&cpu_data[0].asid_mask); in kvm_mips_build_enter_guest()
387 UASM_i_LW(&p, T2, uasm_rel_lo((long)&cpu_data[0].asid_mask), AT); in kvm_mips_build_enter_guest()