Searched refs:ftrp (Results 1 – 3 of 3) sorted by relevance
/openbmc/linux/arch/arm64/include/asm/ |
H A D | cpufeature.h | 557 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);
|
/openbmc/linux/arch/arm64/kernel/ |
H A D | cpufeature.c | 818 switch (ftrp->type) { in arm64_ftr_safe_value() 820 ret = ftrp->safe_val; in arm64_ftr_safe_value() 908 for (ftrp = reg->ftr_bits; ftrp->width; ftrp++) { in init_cpu_ftr_reg() 935 ftrp->shift + ftrp->width - 1, in init_cpu_ftr_reg() 941 ftrp->shift + ftrp->width - 1, in init_cpu_ftr_reg() 942 ftrp->shift); in init_cpu_ftr_reg() 948 if (!ftrp->strict) in init_cpu_ftr_reg() 950 if (ftrp->visible) in init_cpu_ftr_reg() 1081 for (ftrp = reg->ftr_bits; ftrp->width; ftrp++) { in update_cpu_ftr_reg() 1117 for (ftrp = regp->ftr_bits; ftrp->width; ftrp++) { in relax_cpu_ftr_reg() [all …]
|
/openbmc/linux/arch/arm64/kvm/ |
H A D | sys_regs.c | 1211 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()
|