Lines Matching refs:state

80 const char *fnic_state_to_str(unsigned int state)
82 if (state >= ARRAY_SIZE(fnic_state_str) || !fnic_state_str[state])
85 return fnic_state_str[state];
88 static const char *fnic_ioreq_state_to_str(unsigned int state)
90 if (state >= ARRAY_SIZE(fnic_ioreq_state_str) ||
91 !fnic_ioreq_state_str[state])
94 return fnic_ioreq_state_str[state];
479 "rport 0x%x in state 0x%x, returning DID_IMM_RETRY\n",
487 if (lp->state != LPORT_ST_READY || !(lp->link_up))
650 if (fnic->state == FNIC_IN_FC_TRANS_ETH_MODE) {
656 fnic->state = FNIC_IN_ETH_MODE;
665 * Change state to fc mode, so that subsequent Flogi
669 fnic->state = FNIC_IN_FC_MODE;
676 "Unexpected state %s while processing"
677 " reset cmpl\n", fnic_state_to_str(fnic->state));
721 /* Update fnic state based on status of flogi reg completion */
724 if (fnic->state == FNIC_IN_ETH_TRANS_FC_MODE) {
730 fnic->state = FNIC_IN_FC_MODE;
736 fnic->state = FNIC_IN_ETH_MODE;
741 "Unexpected fnic state %s while"
743 fnic_state_to_str(fnic->state));
786 * used which is correct behavior. This state should be in the copy Wq
798 /* mark the ack state */
1263 "Unexpected itmf io state %s tag %x\n",
1414 * free the corresponding state
1619 "state is %s\n",
1627 "%x state %d\n",
1655 * Revert the cmd state back to old state, if
1769 "state is %s\n",
1776 "%x state %d\n",
1804 * Revert the cmd state back to old state, if
1874 if (lp->state != LPORT_ST_READY || !(lp->link_up)) {
2186 "%s: io_req->abts_done is set state is %s\n",
2191 * in abts pending state, if not we need to set
2238 /* Recheck cmd state to check if it is now aborted */
2363 if (lp->state != LPORT_ST_READY || !(lp->link_up))
2647 if ((lp->state == LPORT_ST_READY) &&
2676 if (unlikely(fnic->state == FNIC_IN_FC_TRANS_ETH_MODE)) {
2684 old_state = fnic->state;
2685 fnic->state = FNIC_IN_FC_TRANS_ETH_MODE;
2692 if (fnic->state == FNIC_IN_FC_TRANS_ETH_MODE)
2693 fnic->state = old_state;
2707 (fnic->state == FNIC_IN_ETH_MODE) ?
2714 * This fxn called from libFC to clean up driver IO state on link down
2725 if (unlikely(fnic->state == FNIC_IN_FC_TRANS_ETH_MODE)) {
2731 old_state = fnic->state;
2732 fnic->state = FNIC_IN_FC_TRANS_ETH_MODE;
2738 if (fnic->state == FNIC_IN_FC_TRANS_ETH_MODE)
2739 fnic->state = old_state;