Lines Matching defs:action
458 static int mlxreg_lc_power_on_off(struct mlxreg_lc *mlxreg_lc, u8 action)
467 if (action)
478 static int mlxreg_lc_enable_disable(struct mlxreg_lc *mlxreg_lc, bool action)
495 if (action)
533 mlxreg_lc_state_update(struct mlxreg_lc *mlxreg_lc, enum mlxreg_lc_state state, u8 action)
535 if (action)
542 mlxreg_lc_state_update_locked(struct mlxreg_lc *mlxreg_lc, enum mlxreg_lc_state state, u8 action)
546 if (action)
558 static int mlxreg_lc_event_handler(void *handle, enum mlxreg_hotplug_kind kind, u8 action)
563 dev_info(mlxreg_lc->dev, "linecard#%d state %d event kind %d action %d\n",
564 mlxreg_lc->data->slot, mlxreg_lc->state, kind, action);
576 mlxreg_lc_state_update(mlxreg_lc, MLXREG_LC_SYNCED, action);
578 if (!(mlxreg_lc->state & MLXREG_LC_POWERED) && action) {
584 if (mlxreg_lc->state & MLXREG_LC_CONFIGURED && action)
589 if (action) {
610 mlxreg_lc_state_update(mlxreg_lc, MLXREG_LC_POWERED, action);
617 err = mlxreg_lc_enable_disable(mlxreg_lc, !!action);
621 if (action)