Lines Matching refs:state
396 * being low. Set state DELETED for re-login process to start again.
668 * @vha: adapter state pointer.
892 * Allow relogin code to recheck state again
986 * Reset link to kick start his state
1587 /* Set discovery state back to GNL to Relogin attempt */
1781 /* recheck login state */
1852 atomic_read(&fcport->state) == FCS_ONLINE) {
1868 if (atomic_read(&fcport->state) == FCS_ONLINE) {
1870 * If state = online, then set scan_needed=1 to do relogin.
1885 atomic_read(&fcport->state) == FCS_ONLINE)
1897 atomic_read(&fcport->state) == FCS_ONLINE)
1910 atomic_read(&fcport->state) == FCS_ONLINE)
2418 * state machine
2494 * Driver must validate login state - If PRLI not complete,
3534 /* Assume a failed state */
4117 * @vha: adapter state pointer.
4866 uint16_t state[6];
4898 memset(state, -1, sizeof(state));
4899 rval = qla2x00_get_firmware_state(vha, state);
4901 if (state[0] < FSTATE_LOSS_OF_SYNC) {
4904 if (IS_QLA84XX(ha) && state[0] != FSTATE_READY) {
4906 "fw_state=%x 84xx=%x.\n", state[0],
4907 state[2]);
4908 if ((state[2] & FSTATE_LOGGED_IN) &&
4909 (state[2] & FSTATE_WAITING_FOR_VERIFY)) {
4931 } else if (state[0] == FSTATE_READY) {
4945 state[0] != FSTATE_READY) {
4972 "fw_state=%x (%x, %x, %x, %x %x) curr time=%lx.\n", state[0],
4973 state[1], state[2], state[3], state[4], state[5], jiffies);
4988 * ha = adapter state pointer.
5020 "Loop is in a transition state.\n");
5494 void qla2x00_set_fcport_state(fc_port_t *fcport, int state)
5498 old_state = atomic_read(&fcport->state);
5499 atomic_set(&fcport->state, state);
5501 /* Don't print state transitions during initial allocation of fcport */
5502 if (old_state && old_state != state) {
5504 "FCPort %8phC state transitioned from %s to %s - portid=%02x%02x%02x.\n",
5506 port_state_str[state], fcport->d_id.b.domain,
5748 /* Restore state if a resync event occurred during processing */
5999 atomic_read(&fcport->state) == FCS_ONLINE) {
6041 if (atomic_read(&fcport->state) != FCS_ONLINE)
6089 if (atomic_read(&fcport->state) == FCS_ONLINE)
6596 /* Update port state. */
6602 * If address the same and state FCS_ONLINE
6606 (atomic_read(&fcport->state) == FCS_ONLINE ||
6697 atomic_read(&fcport->state) == FCS_ONLINE) {
7153 /* Set NEED-RESET iff in READY state and we are the reset-owner */
7165 /* Wait for IDC state change READY -> NEED_RESET */
7216 "Device in unrecoverable FAILED state.\n");
7236 * else wait till IDC state changes to READY/FAILED.