Searched refs:clidr (Results 1 – 5 of 5) sorted by relevance
/linux/arch/arm64/include/asm/ |
H A 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/arch/arm64/kernel/ |
H A 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/tools/testing/selftests/kvm/aarch64/ |
H A D | set_id_regs.c | 476 #define CLIDR_CTYPE(clidr, level) \ in test_clidr() 477 (((clidr) & CLIDR_CTYPE_MASK(level)) >> CLIDR_CTYPE_SHIFT(level)) in test_clidr() 481 uint64_t clidr; in test_clidr() 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_ctr() 501 vcpu_set_reg(vcpu, KVM_ARM64_SYS_REG(SYS_CLIDR_EL1), clidr); in test_ctr() 502 test_reg_vals[encoding_to_range_idx(SYS_CLIDR_EL1)] = clidr; in test_ctr() 466 CLIDR_CTYPE(clidr,level) global() argument 471 uint64_t clidr; test_clidr() local
|
/linux/arch/arm/mm/ |
H A 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
|
H A 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
|