Home
last modified time | relevance | path

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

/linux/arch/arm64/include/asm/
H A Dcpufeature.h550 static inline u64 arm64_ftr_mask(const struct arm64_ftr_bits *ftrp) in arm64_ftr_mask() argument
552 return (u64)GENMASK(ftrp->shift + ftrp->width - 1, ftrp->shift); in arm64_ftr_mask()
576 static inline s64 arm64_ftr_value(const struct arm64_ftr_bits *ftrp, u64 val) in arm64_ftr_value() argument
578 return (s64)cpuid_feature_extract_field_width(val, ftrp->shift, ftrp->width, ftrp->sign); in arm64_ftr_value()
918 s64 arm64_ftr_safe_value(const struct arm64_ftr_bits *ftrp, s64 new, s64 cur);
/linux/arch/arm64/kernel/
H A Dcpufeature.c883 switch (ftrp->type) { in arm64_ftr_safe_value()
885 ret = ftrp->safe_val; in arm64_ftr_safe_value()
973 for (ftrp = reg->ftr_bits; ftrp->width; ftrp++) { in init_cpu_ftr_reg()
1000 ftrp->shift + ftrp->width - 1, in init_cpu_ftr_reg()
1001 ftrp->shift, str, in init_cpu_ftr_reg()
1007 ftrp->shift + ftrp->width - 1, in init_cpu_ftr_reg()
1008 ftrp->shift); in init_cpu_ftr_reg()
1014 if (!ftrp->strict) in init_cpu_ftr_reg()
1016 if (ftrp->visible) in init_cpu_ftr_reg()
1174 for (ftrp = reg->ftr_bits; ftrp->width; ftrp++) { in update_cpu_ftr_reg()
[all …]
/linux/arch/arm64/kvm/
H A Dsys_regs.c1408 static s64 kvm_arm64_ftr_safe_value(u32 id, const struct arm64_ftr_bits *ftrp, in kvm_arm64_ftr_safe_value() argument
1411 struct arm64_ftr_bits kvm_ftr = *ftrp; in kvm_arm64_ftr_safe_value()
1451 const struct arm64_ftr_bits *ftrp = NULL; in arm64_check_features() local
1469 ftrp = ftr_reg->ftr_bits; in arm64_check_features()
1471 for (; ftrp && ftrp->width; ftrp++) { in arm64_check_features()
1475 ftr_mask = arm64_ftr_mask(ftrp); in arm64_check_features()
1479 f_val = arm64_ftr_value(ftrp, val); in arm64_check_features()
1480 f_lim = arm64_ftr_value(ftrp, limit); in arm64_check_features()
1486 safe_val = kvm_arm64_ftr_safe_value(id, ftrp, f_val, f_lim); in arm64_check_features()