Lines Matching defs:state
298 if (!(test_bit(BNXT_STATE_IN_FW_RESET, &bp->state)))
2264 set_bit(BNXT_STATE_FW_ACTIVATE_RESET, &bp->state);
2268 set_bit(BNXT_STATE_FW_FATAL_COND, &bp->state);
2273 set_bit(BNXT_STATE_FW_NON_FATAL_COND, &bp->state);
2705 if (unlikely(test_bit(BNXT_STATE_FW_FATAL_COND, &bp->state))) {
2784 if (unlikely(test_bit(BNXT_STATE_FW_FATAL_COND, &bp->state))) {
4147 WRITE_ONCE(token->state, BNXT_HWRM_CANCELLED);
4504 test_bit(BNXT_STATE_IN_FW_RESET, &bp->state))
4792 set_bit(BNXT_STATE_DRV_REGISTERED, &bp->state);
4806 if (!test_and_clear_bit(BNXT_STATE_DRV_REGISTERED, &bp->state))
8860 if (test_bit(BNXT_STATE_HALF_OPEN, &bp->state))
9412 test_and_set_bit(BNXT_STATE_NAPI_DISABLED, &bp->state))
9434 clear_bit(BNXT_STATE_NAPI_DISABLED, &bp->state);
9664 netdev_warn(bp->dev, "Cannot obtain link state while PF unavailable.\n");
9758 /* always link down if not require to update link state */
9963 * when forced. Setting the state unknown is consistent with
9964 * driver startup and will force link state to be reported
10106 test_bit(BNXT_STATE_FW_RESET_DET, &bp->state))
10111 if (test_bit(BNXT_STATE_IN_FW_RESET, &bp->state) && !fw_reset) {
10113 set_bit(BNXT_STATE_ABORT_ERR, &bp->state);
10118 set_bit(BNXT_STATE_FW_RESET_DET, &bp->state);
10119 if (!test_bit(BNXT_STATE_IN_FW_RESET, &bp->state))
10127 clear_bit(BNXT_STATE_FW_RESET_DET, &bp->state);
10128 set_bit(BNXT_STATE_ABORT_ERR, &bp->state);
10134 clear_bit(BNXT_STATE_FW_RESET_DET, &bp->state);
10450 if (test_bit(BNXT_STATE_IN_FW_RESET, &bp->state))
10461 clear_bit(BNXT_STATE_ABORT_ERR, &bp->state);
10462 set_bit(BNXT_STATE_FW_RESET_DET, &bp->state);
10539 set_bit(BNXT_STATE_OPEN, &bp->state);
10571 if (test_bit(BNXT_STATE_ABORT_ERR, &bp->state))
10590 if (test_bit(BNXT_STATE_ABORT_ERR, &bp->state)) {
10602 set_bit(BNXT_STATE_HALF_OPEN, &bp->state);
10605 clear_bit(BNXT_STATE_HALF_OPEN, &bp->state);
10628 clear_bit(BNXT_STATE_HALF_OPEN, &bp->state);
10647 if (test_bit(BNXT_STATE_ABORT_ERR, &bp->state)) {
10666 if (test_and_clear_bit(BNXT_STATE_FW_RESET_DET, &bp->state)) {
10667 if (!test_bit(BNXT_STATE_IN_FW_RESET, &bp->state)) {
10680 return (test_bit(BNXT_STATE_IN_SP_TASK, &bp->state) ||
10681 test_bit(BNXT_STATE_READ_STATS, &bp->state));
10694 /* Change device state to avoid TX queue wake up's */
10697 clear_bit(BNXT_STATE_OPEN, &bp->state);
10726 if (test_bit(BNXT_STATE_IN_FW_RESET, &bp->state)) {
10735 set_bit(BNXT_STATE_ABORT_ERR, &bp->state);
10927 set_bit(BNXT_STATE_READ_STATS, &bp->state);
10932 if (!test_bit(BNXT_STATE_OPEN, &bp->state)) {
10933 clear_bit(BNXT_STATE_READ_STATS, &bp->state);
10963 clear_bit(BNXT_STATE_READ_STATS, &bp->state);
11056 if (!test_bit(BNXT_STATE_OPEN, &bp->state))
11132 if (!test_and_set_bit(BNXT_STATE_L2_FILTER_RETRY, &bp->state))
11144 if (test_and_clear_bit(BNXT_STATE_L2_FILTER_RETRY, &bp->state))
11322 if (!test_bit(BNXT_STATE_OPEN, &bp->state)) {
11657 if (!fw_health->enabled || test_bit(BNXT_STATE_IN_FW_RESET, &bp->state))
11693 if (!netif_running(dev) || !test_bit(BNXT_STATE_OPEN, &bp->state))
11722 if (test_bit(BNXT_STATE_L2_FILTER_RETRY, &bp->state))
11740 clear_bit(BNXT_STATE_IN_SP_TASK, &bp->state);
11746 set_bit(BNXT_STATE_IN_SP_TASK, &bp->state);
11754 if (test_bit(BNXT_STATE_OPEN, &bp->state))
11765 if (!test_bit(BNXT_STATE_OPEN, &bp->state)) {
11811 /* When firmware is in fatal state, quiesce device and disable
11815 if (test_bit(BNXT_STATE_FW_FATAL_COND, &bp->state)) {
11866 if (!test_bit(BNXT_STATE_OPEN, &bp->state) ||
11867 test_bit(BNXT_STATE_IN_FW_RESET, &bp->state))
11872 set_bit(BNXT_STATE_IN_FW_RESET, &bp->state);
11875 set_bit(BNXT_STATE_IN_FW_RESET, &bp->state);
11897 set_bit(BNXT_STATE_FW_FATAL_COND, &bp->state);
11930 if (test_bit(BNXT_STATE_OPEN, &bp->state) &&
11931 !test_bit(BNXT_STATE_IN_FW_RESET, &bp->state)) {
11937 set_bit(BNXT_STATE_IN_FW_RESET, &bp->state);
11940 set_bit(BNXT_STATE_IN_FW_RESET, &bp->state);
11943 !test_bit(BNXT_STATE_FW_FATAL_COND, &bp->state))
11948 clear_bit(BNXT_STATE_IN_FW_RESET, &bp->state);
12065 set_bit(BNXT_STATE_IN_SP_TASK, &bp->state);
12067 if (!test_bit(BNXT_STATE_OPEN, &bp->state)) {
12068 clear_bit(BNXT_STATE_IN_SP_TASK, &bp->state);
12146 if (test_bit(BNXT_STATE_FW_FATAL_COND, &bp->state) ||
12147 test_bit(BNXT_STATE_FW_NON_FATAL_COND, &bp->state))
12159 clear_bit(BNXT_STATE_IN_SP_TASK, &bp->state);
12500 clear_bit(BNXT_STATE_IN_FW_RESET, &bp->state);
12514 if (!test_bit(BNXT_STATE_IN_FW_RESET, &bp->state)) {
12531 clear_bit(BNXT_STATE_IN_FW_RESET, &bp->state);
12542 if (test_bit(BNXT_STATE_ABORT_ERR, &bp->state)) {
12586 if (test_bit(BNXT_STATE_FW_FATAL_COND, &bp->state) &&
12601 clear_bit(BNXT_STATE_FW_FATAL_COND, &bp->state);
12602 clear_bit(BNXT_STATE_FW_NON_FATAL_COND, &bp->state);
12603 if (test_and_clear_bit(BNXT_STATE_FW_ACTIVATE_RESET, &bp->state) &&
12604 !test_bit(BNXT_STATE_FW_ACTIVATE, &bp->state))
12649 clear_bit(BNXT_STATE_IN_FW_RESET, &bp->state);
12655 clear_bit(BNXT_STATE_FW_ACTIVATE, &bp->state);
12656 if (test_and_clear_bit(BNXT_STATE_RECOVER, &bp->state)) {
12751 clear_bit(BNXT_STATE_OPEN, &bp->state);
13037 if (test_bit(BNXT_FLTR_VALID, &fltr->state)) {
13051 set_bit(BNXT_FLTR_VALID, &fltr->state);
13219 clear_bit(BNXT_STATE_IN_FW_RESET, &bp->state);
13958 * @state: The current pci connection state
13964 pci_channel_state_t state)
13976 if (state == pci_channel_io_perm_failure) {
13981 if (state == pci_channel_io_frozen)
13982 set_bit(BNXT_STATE_PCI_CHANNEL_IO_FROZEN, &bp->state);
14034 &bp->state)) {