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