Lines Matching refs:regp

734 static int search_cmp_ftr_reg(const void *id, const void *regp)  in search_cmp_ftr_reg()  argument
736 return (int)(unsigned long)id - (int)((const struct __ftr_reg_entry *)regp)->sys_id; in search_cmp_ftr_reg()
1076 struct arm64_ftr_reg *regp = get_arm64_ftr_reg(sys_id); in check_update_ftr_reg() local
1078 if (!regp) in check_update_ftr_reg()
1081 update_cpu_ftr_reg(regp, val); in check_update_ftr_reg()
1082 if ((boot & regp->strict_mask) == (val & regp->strict_mask)) in check_update_ftr_reg()
1085 regp->name, boot, cpu, val); in check_update_ftr_reg()
1092 struct arm64_ftr_reg *regp = get_arm64_ftr_reg(sys_id); in relax_cpu_ftr_reg() local
1094 if (!regp) in relax_cpu_ftr_reg()
1097 for (ftrp = regp->ftr_bits; ftrp->width; ftrp++) { in relax_cpu_ftr_reg()
1099 regp->strict_mask &= ~arm64_ftr_mask(ftrp); in relax_cpu_ftr_reg()
1335 struct arm64_ftr_reg *regp = get_arm64_ftr_reg(id); in read_sanitised_ftr_reg() local
1337 if (!regp) in read_sanitised_ftr_reg()
1339 return regp->sys_val; in read_sanitised_ftr_reg()
1352 struct arm64_ftr_reg *regp; in __read_sysreg_by_encoding() local
1400 regp = get_arm64_ftr_reg(sys_id); in __read_sysreg_by_encoding()
1401 if (regp) { in __read_sysreg_by_encoding()
1402 val &= ~regp->override->mask; in __read_sysreg_by_encoding()
1403 val |= (regp->override->val & regp->override->mask); in __read_sysreg_by_encoding()
1441 struct arm64_ftr_reg *regp; in has_user_cpuid_feature() local
1444 regp = get_arm64_ftr_reg(entry->sys_reg); in has_user_cpuid_feature()
1445 if (!regp) in has_user_cpuid_feature()
1448 mask = cpuid_feature_extract_unsigned_field_width(regp->user_mask, in has_user_cpuid_feature()
3523 struct arm64_ftr_reg *regp; in emulate_sys_reg() local
3531 regp = get_arm64_ftr_reg_nowarn(id); in emulate_sys_reg()
3532 if (regp) in emulate_sys_reg()
3533 *valp = arm64_ftr_reg_user_value(regp); in emulate_sys_reg()