Home
last modified time | relevance | path

Searched refs:asid_cache (Results 1 – 15 of 15) sorted by relevance

/linux-6.12.1/arch/sh/include/asm/
Dmmu_context.h37 #define asid_cache(cpu) (cpu_data[cpu].asid_cache) macro
57 unsigned long asid = asid_cache(cpu); in get_mmu_context()
80 cpu_context(cpu, mm) = asid_cache(cpu) = asid; in get_mmu_context()
153 if (asid_cache(cpu) == NO_CONTEXT) in enable_mmu()
154 asid_cache(cpu) = MMU_CONTEXT_FIRST_VERSION; in enable_mmu()
156 set_asid(asid_cache(cpu) & MMU_CONTEXT_ASID_MASK); in enable_mmu()
Dprocessor.h75 unsigned long asid_cache; member
/linux-6.12.1/arch/mips/mm/
Dcontext.c34 asid = asid_cache(cpu); in get_new_mmu_context()
43 asid_cache(cpu) = asid; in get_new_mmu_context()
59 if (!asid_versions_eq(cpu, cpu_context(cpu, mm), asid_cache(cpu))) in check_mmu_context()
76 mmid = xchg_relaxed(&cpu_data[cpu].asid_cache, 0); in flush_context()
210 old_active_mmid = READ_ONCE(cpu_data[cpu].asid_cache); in check_switch_mmu_context()
213 !cmpxchg_relaxed(&cpu_data[cpu].asid_cache, old_active_mmid, ctx)) { in check_switch_mmu_context()
220 WRITE_ONCE(cpu_data[cpu].asid_cache, ctx); in check_switch_mmu_context()
/linux-6.12.1/arch/loongarch/include/asm/
Dmmu_context.h35 #define asid_cache(cpu) (cpu_data[cpu].asid_cache) macro
40 if ((cpu_context(cpu, mm) ^ asid_cache(cpu)) & asid_version_mask(cpu)) in asid_valid()
54 u64 asid = asid_cache(cpu); in get_new_mmu_context()
59 cpu_context(cpu, mm) = asid_cache(cpu) = asid; in get_new_mmu_context()
Dcpu-info.h36 u64 asid_cache; member
/linux-6.12.1/arch/arc/include/asm/
Dmmu_context.h52 DECLARE_PER_CPU(unsigned int, asid_cache);
53 #define asid_cpu(cpu) per_cpu(asid_cache, cpu)
/linux-6.12.1/arch/xtensa/include/asm/
Dmmu_context.h34 DECLARE_PER_CPU(unsigned long, asid_cache);
35 #define cpu_asid_cache(cpu) per_cpu(asid_cache, cpu)
/linux-6.12.1/arch/mips/include/asm/
Dmmu_context.h123 #define asid_cache(cpu) (cpu_data[cpu].asid_cache) macro
Dcpu-info.h53 u64 asid_cache; member
/linux-6.12.1/arch/csky/include/asm/
Dprocessor.h18 unsigned long asid_cache; member
/linux-6.12.1/arch/xtensa/mm/
Dmmu.c21 DEFINE_PER_CPU(unsigned long, asid_cache) = ASID_USER_FIRST;
/linux-6.12.1/arch/sh/kernel/cpu/
Dinit.c342 current_cpu_data.asid_cache = NO_CONTEXT; in cpu_init()
/linux-6.12.1/arch/loongarch/kernel/
Dtraps.c1134 if (!cpu_data[cpu].asid_cache) in per_cpu_trap_init()
1135 cpu_data[cpu].asid_cache = asid_first_version(cpu); in per_cpu_trap_init()
/linux-6.12.1/arch/mips/kernel/
Dtraps.c2264 cpu_data[cpu].asid_cache = 0; in per_cpu_trap_init()
2265 else if (!cpu_data[cpu].asid_cache) in per_cpu_trap_init()
2266 cpu_data[cpu].asid_cache = asid_first_version(cpu); in per_cpu_trap_init()
/linux-6.12.1/arch/arc/mm/
Dtlb.c19 DEFINE_PER_CPU(unsigned int, asid_cache) = MM_CTXT_FIRST_CYCLE;