Home
last modified time | relevance | path

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

/linux/arch/arm64/kernel/
H A Dcpufeature.c923 static u64 arm64_ftr_set_value(const struct arm64_ftr_bits *ftrp, s64 reg, in arm64_ftr_set_value() argument
926 u64 mask = arm64_ftr_mask(ftrp); in arm64_ftr_set_value()
929 reg |= (ftr_val << ftrp->shift) & mask; in arm64_ftr_set_value()
933 s64 arm64_ftr_safe_value(const struct arm64_ftr_bits *ftrp, s64 new, in arm64_ftr_safe_value() argument
938 switch (ftrp->type) { in arm64_ftr_safe_value()
940 ret = ftrp->safe_val; in arm64_ftr_safe_value()
1022 const struct arm64_ftr_bits *ftrp; in init_cpu_ftr_reg() local
1028 for (ftrp = reg->ftr_bits; ftrp->width; ftrp++) { in init_cpu_ftr_reg()
1029 u64 ftr_mask = arm64_ftr_mask(ftrp); in init_cpu_ftr_reg()
1030 s64 ftr_new = arm64_ftr_value(ftrp, new); in init_cpu_ftr_reg()
[all …]
/linux/arch/arm64/kvm/
H A Dsys_regs.c1740 static s64 kvm_arm64_ftr_safe_value(u32 id, const struct arm64_ftr_bits *ftrp, in kvm_arm64_ftr_safe_value() argument
1743 struct arm64_ftr_bits kvm_ftr = *ftrp; in kvm_arm64_ftr_safe_value()
1783 const struct arm64_ftr_bits *ftrp = NULL; in arm64_check_features() local
1801 ftrp = ftr_reg->ftr_bits; in arm64_check_features()
1803 for (; ftrp && ftrp->width; ftrp++) { in arm64_check_features()
1807 ftr_mask = arm64_ftr_mask(ftrp); in arm64_check_features()
1811 f_val = arm64_ftr_value(ftrp, val); in arm64_check_features()
1812 f_lim = arm64_ftr_value(ftrp, limit); in arm64_check_features()
1818 safe_val = kvm_arm64_ftr_safe_value(id, ftrp, f_val, f_lim); in arm64_check_features()