Lines Matching refs:corsairpsu_get_value

246 static int corsairpsu_get_value(struct corsairpsu_data *priv, u8 cmd, u8 rail, long *val)  in corsairpsu_get_value()  function
320 if (!corsairpsu_get_value(priv, PSU_CMD_TEMP_HCRIT, rail, &tmp)) { in corsairpsu_get_criticals()
327 if (!corsairpsu_get_value(priv, PSU_CMD_RAIL_VOLTS_HCRIT, rail, &tmp)) { in corsairpsu_get_criticals()
332 if (!corsairpsu_get_value(priv, PSU_CMD_RAIL_VOLTS_LCRIT, rail, &tmp)) { in corsairpsu_get_criticals()
337 if (!corsairpsu_get_value(priv, PSU_CMD_RAIL_AMPS_HCRIT, rail, &tmp)) { in corsairpsu_get_criticals()
348 priv->in_curr_cmd_support = !corsairpsu_get_value(priv, PSU_CMD_IN_AMPS, 0, &tmp); in corsairpsu_check_cmd_support()
481 return corsairpsu_get_value(priv, channel ? PSU_CMD_TEMP1 : PSU_CMD_TEMP0, in corsairpsu_hwmon_temp_read()
498 return corsairpsu_get_value(priv, PSU_CMD_FAN_PWM, 0, val); in corsairpsu_hwmon_pwm_read()
500 return corsairpsu_get_value(priv, PSU_CMD_FAN_PWM_ENABLE, 0, val); in corsairpsu_hwmon_pwm_read()
514 return corsairpsu_get_value(priv, PSU_CMD_TOTAL_WATTS, 0, val); in corsairpsu_hwmon_power_read()
516 return corsairpsu_get_value(priv, PSU_CMD_RAIL_WATTS, channel - 1, val); in corsairpsu_hwmon_power_read()
533 return corsairpsu_get_value(priv, PSU_CMD_IN_VOLTS, 0, val); in corsairpsu_hwmon_in_read()
535 return corsairpsu_get_value(priv, PSU_CMD_RAIL_VOLTS, channel - 1, val); in corsairpsu_hwmon_in_read()
562 return corsairpsu_get_value(priv, PSU_CMD_IN_AMPS, 0, val); in corsairpsu_hwmon_curr_read()
564 return corsairpsu_get_value(priv, PSU_CMD_RAIL_AMPS, channel - 1, val); in corsairpsu_hwmon_curr_read()
590 return corsairpsu_get_value(priv, PSU_CMD_FAN, 0, val); in corsairpsu_hwmon_ops_read()
675 ret = corsairpsu_get_value(priv, cmd, 0, &val); in print_uptime()
741 ret = corsairpsu_get_value(priv, PSU_CMD_OCPMODE, 0, &val); in ocpmode_show()