Searched refs:asid_cache (Results 1 – 15 of 15) sorted by relevance
/linux-6.12.1/arch/sh/include/asm/ |
D | mmu_context.h | 37 #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()
|
D | processor.h | 75 unsigned long asid_cache; member
|
/linux-6.12.1/arch/mips/mm/ |
D | context.c | 34 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/ |
D | mmu_context.h | 35 #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()
|
D | cpu-info.h | 36 u64 asid_cache; member
|
/linux-6.12.1/arch/arc/include/asm/ |
D | mmu_context.h | 52 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/ |
D | mmu_context.h | 34 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/ |
D | mmu_context.h | 123 #define asid_cache(cpu) (cpu_data[cpu].asid_cache) macro
|
D | cpu-info.h | 53 u64 asid_cache; member
|
/linux-6.12.1/arch/csky/include/asm/ |
D | processor.h | 18 unsigned long asid_cache; member
|
/linux-6.12.1/arch/xtensa/mm/ |
D | mmu.c | 21 DEFINE_PER_CPU(unsigned long, asid_cache) = ASID_USER_FIRST;
|
/linux-6.12.1/arch/sh/kernel/cpu/ |
D | init.c | 342 current_cpu_data.asid_cache = NO_CONTEXT; in cpu_init()
|
/linux-6.12.1/arch/loongarch/kernel/ |
D | traps.c | 1134 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/ |
D | traps.c | 2264 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/ |
D | tlb.c | 19 DEFINE_PER_CPU(unsigned int, asid_cache) = MM_CTXT_FIRST_CYCLE;
|