Home
last modified time | relevance | path

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

/linux/drivers/hwmon/
H A Dcorsair-psu.c246 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()
[all …]