Searched refs:ftrp (Results 1 – 2 of 2) sorted by relevance
| /linux/arch/arm64/kernel/ |
| H A D | cpufeature.c | 918 static u64 arm64_ftr_set_value(const struct arm64_ftr_bits *ftrp, s64 reg, in arm64_ftr_set_value() argument 921 u64 mask = arm64_ftr_mask(ftrp); in arm64_ftr_set_value() 924 reg |= (ftr_val << ftrp->shift) & mask; in arm64_ftr_set_value() 928 s64 arm64_ftr_safe_value(const struct arm64_ftr_bits *ftrp, s64 new, in arm64_ftr_safe_value() argument 933 switch (ftrp->type) { in arm64_ftr_safe_value() 935 ret = ftrp->safe_val; in arm64_ftr_safe_value() 1017 const struct arm64_ftr_bits *ftrp; in init_cpu_ftr_reg() local 1023 for (ftrp = reg->ftr_bits; ftrp->width; ftrp++) { in init_cpu_ftr_reg() 1024 u64 ftr_mask = arm64_ftr_mask(ftrp); in init_cpu_ftr_reg() 1025 s64 ftr_new = arm64_ftr_value(ftrp, new); in init_cpu_ftr_reg() [all …]
|
| /linux/arch/arm64/kvm/ |
| H A D | sys_regs.c | 1655 static s64 kvm_arm64_ftr_safe_value(u32 id, const struct arm64_ftr_bits *ftrp, in kvm_arm64_ftr_safe_value() argument 1658 struct arm64_ftr_bits kvm_ftr = *ftrp; in kvm_arm64_ftr_safe_value() 1698 const struct arm64_ftr_bits *ftrp = NULL; in arm64_check_features() local 1716 ftrp = ftr_reg->ftr_bits; in arm64_check_features() 1718 for (; ftrp && ftrp->width; ftrp++) { in arm64_check_features() 1722 ftr_mask = arm64_ftr_mask(ftrp); in arm64_check_features() 1726 f_val = arm64_ftr_value(ftrp, val); in arm64_check_features() 1727 f_lim = arm64_ftr_value(ftrp, limit); in arm64_check_features() 1733 safe_val = kvm_arm64_ftr_safe_value(id, ftrp, f_val, f_lim); in arm64_check_features()
|