Lines Matching refs:rail
207 static int corsairpsu_request(struct corsairpsu_data *priv, u8 cmd, u8 rail, void *data) in corsairpsu_request() argument
219 ret = corsairpsu_usb_cmd(priv, 2, PSU_CMD_SELECT_RAIL, rail, NULL); in corsairpsu_request()
234 static int corsairpsu_get_value(struct corsairpsu_data *priv, u8 cmd, u8 rail, long *val) in corsairpsu_get_value() argument
240 ret = corsairpsu_request(priv, cmd, rail, data); in corsairpsu_get_value()
287 int rail; in corsairpsu_get_criticals() local
289 for (rail = 0; rail < TEMP_COUNT; ++rail) { in corsairpsu_get_criticals()
290 if (!corsairpsu_get_value(priv, PSU_CMD_TEMP_HCRIT, rail, &tmp)) { in corsairpsu_get_criticals()
291 priv->temp_crit_support |= BIT(rail); in corsairpsu_get_criticals()
292 priv->temp_crit[rail] = tmp; in corsairpsu_get_criticals()
296 for (rail = 0; rail < RAIL_COUNT; ++rail) { in corsairpsu_get_criticals()
297 if (!corsairpsu_get_value(priv, PSU_CMD_RAIL_VOLTS_HCRIT, rail, &tmp)) { in corsairpsu_get_criticals()
298 priv->in_crit_support |= BIT(rail); in corsairpsu_get_criticals()
299 priv->in_crit[rail] = tmp; in corsairpsu_get_criticals()
302 if (!corsairpsu_get_value(priv, PSU_CMD_RAIL_VOLTS_LCRIT, rail, &tmp)) { in corsairpsu_get_criticals()
303 priv->in_lcrit_support |= BIT(rail); in corsairpsu_get_criticals()
304 priv->in_lcrit[rail] = tmp; in corsairpsu_get_criticals()
307 if (!corsairpsu_get_value(priv, PSU_CMD_RAIL_AMPS_HCRIT, rail, &tmp)) { in corsairpsu_get_criticals()
308 priv->curr_crit_support |= BIT(rail); in corsairpsu_get_criticals()
309 priv->curr_crit[rail] = tmp; in corsairpsu_get_criticals()