Home
last modified time | relevance | path

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

/linux/arch/arm64/include/asm/
H A Dcpufeature.h551 static inline u64 arm64_ftr_mask(const struct arm64_ftr_bits *ftrp) in arm64_ftr_mask() argument
553 return (u64)GENMASK(ftrp->shift + ftrp->width - 1, ftrp->shift); in arm64_ftr_mask()
577 static inline s64 arm64_ftr_value(const struct arm64_ftr_bits *ftrp, u64 val) in arm64_ftr_value() argument
579 return (s64)cpuid_feature_extract_field_width(val, ftrp->shift, ftrp->width, ftrp->sign); in arm64_ftr_value()
958 s64 arm64_ftr_safe_value(const struct arm64_ftr_bits *ftrp, s64 new, s64 cur);
/linux/arch/arm64/kernel/
H A Dcpufeature.c929 static u64 arm64_ftr_set_value(const struct arm64_ftr_bits *ftrp, s64 reg, in arm64_ftr_set_value() argument
932 u64 mask = arm64_ftr_mask(ftrp); in arm64_ftr_set_value()
935 reg |= (ftr_val << ftrp->shift) & mask; in arm64_ftr_set_value()
939 s64 arm64_ftr_safe_value(const struct arm64_ftr_bits *ftrp, s64 new, in arm64_ftr_safe_value() argument
944 switch (ftrp->type) { in arm64_ftr_safe_value()
946 ret = ftrp->safe_val; in arm64_ftr_safe_value()
1028 const struct arm64_ftr_bits *ftrp; in init_cpu_ftr_reg() local
1034 for (ftrp = reg->ftr_bits; ftrp->width; ftrp++) { in init_cpu_ftr_reg()
1035 u64 ftr_mask = arm64_ftr_mask(ftrp); in init_cpu_ftr_reg()
1036 s64 ftr_new = arm64_ftr_value(ftrp, new); in init_cpu_ftr_reg()
[all …]