Home
last modified time | relevance | path

Searched refs:ftrp (Results 1 – 3 of 3) sorted by relevance

/Linux-v6.6/arch/arm64/include/asm/
Dcpufeature.h557 static inline u64 arm64_ftr_mask(const struct arm64_ftr_bits *ftrp) in arm64_ftr_mask() argument
559 return (u64)GENMASK(ftrp->shift + ftrp->width - 1, ftrp->shift); in arm64_ftr_mask()
583 static inline s64 arm64_ftr_value(const struct arm64_ftr_bits *ftrp, u64 val) in arm64_ftr_value() argument
585 return (s64)cpuid_feature_extract_field_width(val, ftrp->shift, ftrp->width, ftrp->sign); in arm64_ftr_value()
911 s64 arm64_ftr_safe_value(const struct arm64_ftr_bits *ftrp, s64 new, s64 cur);
/Linux-v6.6/arch/arm64/kernel/
Dcpufeature.c803 static u64 arm64_ftr_set_value(const struct arm64_ftr_bits *ftrp, s64 reg, in arm64_ftr_set_value() argument
806 u64 mask = arm64_ftr_mask(ftrp); in arm64_ftr_set_value()
809 reg |= (ftr_val << ftrp->shift) & mask; in arm64_ftr_set_value()
813 s64 arm64_ftr_safe_value(const struct arm64_ftr_bits *ftrp, s64 new, in arm64_ftr_safe_value() argument
818 switch (ftrp->type) { in arm64_ftr_safe_value()
820 ret = ftrp->safe_val; in arm64_ftr_safe_value()
902 const struct arm64_ftr_bits *ftrp; in init_cpu_ftr_reg() local
908 for (ftrp = reg->ftr_bits; ftrp->width; ftrp++) { in init_cpu_ftr_reg()
909 u64 ftr_mask = arm64_ftr_mask(ftrp); in init_cpu_ftr_reg()
910 s64 ftr_new = arm64_ftr_value(ftrp, new); in init_cpu_ftr_reg()
[all …]
/Linux-v6.6/arch/arm64/kvm/
Dsys_regs.c1211 static s64 kvm_arm64_ftr_safe_value(u32 id, const struct arm64_ftr_bits *ftrp, in kvm_arm64_ftr_safe_value() argument
1214 struct arm64_ftr_bits kvm_ftr = *ftrp; in kvm_arm64_ftr_safe_value()
1248 const struct arm64_ftr_bits *ftrp = NULL; in arm64_check_features() local
1266 ftrp = ftr_reg->ftr_bits; in arm64_check_features()
1268 for (; ftrp && ftrp->width; ftrp++) { in arm64_check_features()
1272 ftr_mask = arm64_ftr_mask(ftrp); in arm64_check_features()
1276 f_val = arm64_ftr_value(ftrp, val); in arm64_check_features()
1277 f_lim = arm64_ftr_value(ftrp, limit); in arm64_check_features()
1283 safe_val = kvm_arm64_ftr_safe_value(id, ftrp, f_val, f_lim); in arm64_check_features()