Lines Matching defs:state
42 * enum mlxreg_lc_state - line cards state
72 * @state: line card state;
90 enum mlxreg_lc_state state;
484 * Hardware holds the line card after powering on in the disabled state. Holding line card
485 * in disabled state protects access to the line components, like FPGA and gearboxes.
486 * Line card should be enabled in order to get it in operational state. Line card could be
487 * disabled for moving it to non-operational state. Enabling line card does not affect the
533 mlxreg_lc_state_update(struct mlxreg_lc *mlxreg_lc, enum mlxreg_lc_state state, u8 action)
536 mlxreg_lc->state |= state;
538 mlxreg_lc->state &= ~state;
542 mlxreg_lc_state_update_locked(struct mlxreg_lc *mlxreg_lc, enum mlxreg_lc_state state, u8 action)
547 mlxreg_lc->state |= state;
549 mlxreg_lc->state &= ~state;
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);
567 if (!(mlxreg_lc->state & MLXREG_LC_INITIALIZED))
578 if (!(mlxreg_lc->state & MLXREG_LC_POWERED) && action) {
584 if (mlxreg_lc->state & MLXREG_LC_CONFIGURED && action)
591 if (mlxreg_lc->state & MLXREG_LC_POWERED) {
593 if (mlxreg_lc->state & MLXREG_LC_CONFIGURED)
603 /* In case line card is already in ready state - enable it. */
604 if (mlxreg_lc->state & MLXREG_LC_CONFIGURED)
615 * to reset state.
689 mlxreg_lc->state |= MLXREG_LC_SYNCED;
691 if (mlxreg_lc->state & ~MLXREG_LC_POWERED) {
704 if (mlxreg_lc->state & MLXREG_LC_POWERED)