Lines Matching defs:state
124 * - Poll the link state and reconfigure the hardware as necessary.
209 if ((efx->state == STATE_READY) || \
210 (efx->state == STATE_RECOVERY) || \
211 (efx->state == STATE_DISABLED)) \
217 if (efx->state == STATE_DISABLED || efx->state == STATE_RECOVERY) {
345 * plus some extra for link state events and MCDI completions. */
474 channel->napi_str.state = 0;
1472 BUG_ON(efx->state == STATE_DISABLED);
1504 if (efx->state == STATE_DISABLED)
1528 BUG_ON(efx->state == STATE_DISABLED);
1820 BUG_ON(efx->state == STATE_DISABLED);
1845 * times with the NIC in almost any state, but interrupts should be
2073 /* Notify the kernel of the link state polled during driver load,
2284 efx->state = STATE_READY;
2285 smp_mb(); /* ensure we change state before checking reset_pending */
2328 efx->state = STATE_UNINIT;
2354 /* Tears down the entire software state and most of the hardware state
2425 * fail, in which case the card will be left in an unusable state.
2475 efx->state = STATE_DISABLED;
2529 /* We checked the state in ef4_schedule_reset() but it may
2533 if (efx->state == STATE_READY)
2543 if (efx->state == STATE_RECOVERY) {
2571 smp_mb(); /* ensure we change reset_pending before checking state */
2576 if (READ_ONCE(efx->state) != STATE_READY)
2652 efx->state = STATE_UNINIT;
2736 BUG_ON(efx->state == STATE_READY);
2764 efx->state = STATE_UNINIT;
3006 if (efx->state != STATE_DISABLED) {
3007 efx->state = STATE_UNINIT;
3027 if (efx->state != STATE_DISABLED) {
3040 efx->state = STATE_READY;
3121 pci_channel_state_t state)
3126 if (state == pci_channel_io_perm_failure)
3131 if (efx->state != STATE_DISABLED) {
3132 efx->state = STATE_RECOVERY;
3178 if (efx->state == STATE_DISABLED)
3186 efx->state = STATE_READY;