Searched refs:ftrp (Results 1 – 3 of 3) sorted by relevance
| /linux-6.15/arch/arm64/include/asm/ |
| H A D | cpufeature.h | 528 static inline u64 arm64_ftr_mask(const struct arm64_ftr_bits *ftrp) in arm64_ftr_mask() argument 530 return (u64)GENMASK(ftrp->shift + ftrp->width - 1, ftrp->shift); in arm64_ftr_mask() 554 static inline s64 arm64_ftr_value(const struct arm64_ftr_bits *ftrp, u64 val) in arm64_ftr_value() argument 556 return (s64)cpuid_feature_extract_field_width(val, ftrp->shift, ftrp->width, ftrp->sign); in arm64_ftr_value() 928 s64 arm64_ftr_safe_value(const struct arm64_ftr_bits *ftrp, s64 new, s64 cur);
|
| /linux-6.15/arch/arm64/kernel/ |
| H A D | cpufeature.c | 925 switch (ftrp->type) { in arm64_ftr_safe_value() 927 ret = ftrp->safe_val; in arm64_ftr_safe_value() 1015 for (ftrp = reg->ftr_bits; ftrp->width; ftrp++) { in init_cpu_ftr_reg() 1041 ftrp->shift + ftrp->width - 1, in init_cpu_ftr_reg() 1042 ftrp->shift, str, in init_cpu_ftr_reg() 1048 ftrp->shift + ftrp->width - 1, in init_cpu_ftr_reg() 1049 ftrp->shift); in init_cpu_ftr_reg() 1055 if (!ftrp->strict) in init_cpu_ftr_reg() 1057 if (ftrp->visible) in init_cpu_ftr_reg() 1212 for (ftrp = reg->ftr_bits; ftrp->width; ftrp++) { in update_cpu_ftr_reg() [all …]
|
| /linux-6.15/arch/arm64/kvm/ |
| H A D | sys_regs.c | 1476 static s64 kvm_arm64_ftr_safe_value(u32 id, const struct arm64_ftr_bits *ftrp, in kvm_arm64_ftr_safe_value() argument 1479 struct arm64_ftr_bits kvm_ftr = *ftrp; in kvm_arm64_ftr_safe_value() 1519 const struct arm64_ftr_bits *ftrp = NULL; in arm64_check_features() local 1537 ftrp = ftr_reg->ftr_bits; in arm64_check_features() 1539 for (; ftrp && ftrp->width; ftrp++) { in arm64_check_features() 1543 ftr_mask = arm64_ftr_mask(ftrp); in arm64_check_features() 1547 f_val = arm64_ftr_value(ftrp, val); in arm64_check_features() 1548 f_lim = arm64_ftr_value(ftrp, limit); in arm64_check_features() 1554 safe_val = kvm_arm64_ftr_safe_value(id, ftrp, f_val, f_lim); in arm64_check_features()
|