Lines Matching refs:uval
443 static int xe_hwmon_pcode_read_i1(const struct xe_hwmon *hwmon, u32 *uval) in xe_hwmon_pcode_read_i1() argument
453 uval, NULL); in xe_hwmon_pcode_read_i1()
456 static int xe_hwmon_pcode_write_i1(const struct xe_hwmon *hwmon, u32 uval) in xe_hwmon_pcode_write_i1() argument
462 (uval & POWER_SETUP_I1_DATA_MASK)); in xe_hwmon_pcode_write_i1()
469 u32 uval; in xe_hwmon_power_curr_crit_read() local
473 ret = xe_hwmon_pcode_read_i1(hwmon, &uval); in xe_hwmon_power_curr_crit_read()
477 *value = mul_u64_u32_shr(REG_FIELD_GET(POWER_SETUP_I1_DATA_MASK, uval), in xe_hwmon_power_curr_crit_read()
488 u32 uval; in xe_hwmon_power_curr_crit_write() local
492 uval = DIV_ROUND_CLOSEST_ULL(value << POWER_SETUP_I1_SHIFT, scale_factor); in xe_hwmon_power_curr_crit_write()
493 ret = xe_hwmon_pcode_write_i1(hwmon, uval); in xe_hwmon_power_curr_crit_write()
512 u32 uval; in xe_hwmon_power_is_visible() local
523 return (xe_hwmon_pcode_read_i1(hwmon, &uval) || in xe_hwmon_power_is_visible()
524 !(uval & POWER_SETUP_I1_WATTS)) ? 0 : 0644; in xe_hwmon_power_is_visible()
568 u32 uval; in xe_hwmon_curr_is_visible() local
576 return (xe_hwmon_pcode_read_i1(hwmon, &uval) || in xe_hwmon_curr_is_visible()
577 (uval & POWER_SETUP_I1_WATTS)) ? 0 : 0644; in xe_hwmon_curr_is_visible()
579 return (xe_hwmon_pcode_read_i1(hwmon, &uval) || in xe_hwmon_curr_is_visible()
580 (uval & POWER_SETUP_I1_WATTS)) ? 0 : 0444; in xe_hwmon_curr_is_visible()