Searched refs:clidr (Results 1 – 6 of 6) sorted by relevance
/linux-6.12.1/arch/arm64/include/asm/ |
D | cache.h | 15 #define CLIDR_LOUU(clidr) (((clidr) >> CLIDR_LOUU_SHIFT) & 0x7) argument 16 #define CLIDR_LOC(clidr) (((clidr) >> CLIDR_LOC_SHIFT) & 0x7) argument 17 #define CLIDR_LOUIS(clidr) (((clidr) >> CLIDR_LOUIS_SHIFT) & 0x7) argument 22 #define CLIDR_CTYPE(clidr, level) \ argument 23 (((clidr) & CLIDR_CTYPE_MASK(level)) >> CLIDR_CTYPE_SHIFT(level)) 111 u64 clidr = read_sysreg(clidr_el1); in read_cpuid_effective_cachetype() local 113 if (CLIDR_LOC(clidr) == 0 || in read_cpuid_effective_cachetype() 114 (CLIDR_LOUIS(clidr) == 0 && CLIDR_LOUU(clidr) == 0)) in read_cpuid_effective_cachetype()
|
/linux-6.12.1/arch/arm64/kernel/ |
D | cacheinfo.c | 26 u64 clidr; in get_cache_type() local 30 clidr = read_sysreg(clidr_el1); in get_cache_type() 31 return CLIDR_CTYPE(clidr, level); in get_cache_type()
|
/linux-6.12.1/tools/testing/selftests/kvm/aarch64/ |
D | set_id_regs.c | 476 #define CLIDR_CTYPE(clidr, level) \ argument 477 (((clidr) & CLIDR_CTYPE_MASK(level)) >> CLIDR_CTYPE_SHIFT(level)) 481 uint64_t clidr; in test_clidr() local 484 vcpu_get_reg(vcpu, KVM_ARM64_SYS_REG(SYS_CLIDR_EL1), &clidr); in test_clidr() 488 if (!CLIDR_CTYPE(clidr, level)) in test_clidr() 499 clidr |= BIT(2) << CLIDR_CTYPE_SHIFT(level); in test_clidr() 501 vcpu_set_reg(vcpu, KVM_ARM64_SYS_REG(SYS_CLIDR_EL1), clidr); in test_clidr() 502 test_reg_vals[encoding_to_range_idx(SYS_CLIDR_EL1)] = clidr; in test_clidr()
|
/linux-6.12.1/arch/arm/mm/ |
D | cache-v7.S | 101 mrc p15, 1, r0, c0, c0, 1 @ read clidr, r0 = clidr 104 ands r3, r3, #7 << 1 @ extract LoU*2 field from clidr 129 mrc p15, 1, r0, c0, c0, 1 @ read clidr 131 ands r3, r3, #7 << 1 @ extract LoC*2 from clidr 137 mov r1, r0, lsr r2 @ extract cache type bits from clidr
|
D | cache-v7m.S | 179 ands r3, r3, #7 << 1 @ extract LoC*2 from clidr 185 mov r1, r0, lsr r2 @ extract cache type bits from clidr
|
/linux-6.12.1/arch/arm64/kvm/ |
D | sys_regs.c | 1955 u64 clidr; in reset_clidr() local 1968 clidr = CACHE_TYPE_UNIFIED << CLIDR_CTYPE_SHIFT(loc); in reset_clidr() 1976 clidr = 1 << CLIDR_LOUU_SHIFT; in reset_clidr() 1977 clidr |= 1 << CLIDR_LOUIS_SHIFT; in reset_clidr() 1978 clidr |= CACHE_TYPE_DATA << CLIDR_CTYPE_SHIFT(1); in reset_clidr() 1987 clidr |= CACHE_TYPE_INST << CLIDR_CTYPE_SHIFT(1); in reset_clidr() 1989 clidr |= loc << CLIDR_LOC_SHIFT; in reset_clidr() 1997 clidr |= 2ULL << CLIDR_TTYPE_SHIFT(loc); in reset_clidr() 1999 __vcpu_sys_reg(vcpu, r->reg) = clidr; in reset_clidr()
|