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
219 static int corsairpsu_request(struct corsairpsu_data *priv, u8 cmd, u8 rail, void *data) in corsairpsu_request() argument
231 ret = corsairpsu_usb_cmd(priv, 2, PSU_CMD_SELECT_RAIL, rail, NULL); in corsairpsu_request()
246 static int corsairpsu_get_value(struct corsairpsu_data *priv, u8 cmd, u8 rail, long *val) in corsairpsu_get_value() argument
252 ret = corsairpsu_request(priv, cmd, rail, data); in corsairpsu_get_value()
317 int rail; in corsairpsu_get_criticals() local
319 for (rail = 0; rail < TEMP_COUNT; ++rail) { in corsairpsu_get_criticals()
320 if (!corsairpsu_get_value(priv, PSU_CMD_TEMP_HCRIT, rail, &tmp)) { in corsairpsu_get_criticals()
321 priv->temp_crit_support |= BIT(rail); in corsairpsu_get_criticals()
322 priv->temp_crit[rail] = tmp; in corsairpsu_get_criticals()
326 for (rail = 0; rail < RAIL_COUNT; ++rail) { in corsairpsu_get_criticals()
327 if (!corsairpsu_get_value(priv, PSU_CMD_RAIL_VOLTS_HCRIT, rail, &tmp)) { in corsairpsu_get_criticals()
328 priv->in_crit_support |= BIT(rail); in corsairpsu_get_criticals()
329 priv->in_crit[rail] = tmp; in corsairpsu_get_criticals()
332 if (!corsairpsu_get_value(priv, PSU_CMD_RAIL_VOLTS_LCRIT, rail, &tmp)) { in corsairpsu_get_criticals()
333 priv->in_lcrit_support |= BIT(rail); in corsairpsu_get_criticals()
334 priv->in_lcrit[rail] = tmp; in corsairpsu_get_criticals()
337 if (!corsairpsu_get_value(priv, PSU_CMD_RAIL_AMPS_HCRIT, rail, &tmp)) { in corsairpsu_get_criticals()
338 priv->curr_crit_support |= BIT(rail); in corsairpsu_get_criticals()
339 priv->curr_crit[rail] = tmp; in corsairpsu_get_criticals()
735 * The rail mode is switchable on the fly. The RAW interface can be used for this. But it in ocpmode_show()
739 * than OCP_MULTI_RAIL can be considered as "single rail". in ocpmode_show()
745 seq_printf(seqf, "%s\n", (val == OCP_MULTI_RAIL) ? "multi rail" : "single rail"); in ocpmode_show()