Lines Matching full:rail

37  *	- some of the commands work on a rail and can be switched to a specific rail (0 = 12v,
40 * - parameter bytes amount and values are specific to the command (rail setting is the only
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()
673 * The rail mode is switchable on the fly. The RAW interface can be used for this. But it in ocpmode_show()
677 * than OCP_MULTI_RAIL can be considered as "single rail". in ocpmode_show()
683 seq_printf(seqf, "%s\n", (val == OCP_MULTI_RAIL) ? "multi rail" : "single rail"); in ocpmode_show()