Lines Matching refs:state
21 * while processing another state.
37 * As rports exit the rport state machine a callback is made to the owner of
61 * that every _enter_* function corresponds to a state change. They generally
62 * change the lports state and then send a request out on the wire. We lock
63 * before calling any of these functions to protect that state change. This
65 * the state machine can transition between states (i.e. _enter_* functions)
71 * trigger a state change and so the lock must already be held.
74 * context and the work function will lock the lport and then retry the state
178 if (lport->state == LPORT_ST_DNS) {
181 } else if (lport->state == LPORT_ST_FDMI) {
188 "in the DNS or FDMI state, it's in the "
189 "%d state", rdata->ids.port_id,
190 lport->state);
209 * fc_lport_state() - Return a string which represents the lport's state
210 * @lport: The lport whose state is to converted to a string
216 cp = fc_lport_state_names[lport->state];
258 * fc_get_host_port_state() - Return the port state of the given Scsi_Host
259 * @shost: The SCSI host whose port state is to be determined
269 switch (lport->state) {
404 FC_LPORT_DBG(lport, "Received RLIR request while in state %s\n",
426 FC_LPORT_DBG(lport, "Received ECHO request while in state %s\n",
467 FC_LPORT_DBG(lport, "Received RNID request while in state %s\n",
519 * fc_fabric_login() - Start the lport state machine
530 if (lport->state == LPORT_ST_DISABLED ||
531 lport->state == LPORT_ST_LOGO) {
553 if (lport->state == LPORT_ST_RESET)
639 lport->state = LPORT_ST_DISABLED;
712 * fc_rport_enter_ready() - Enter the ready state and start discovery
719 FC_LPORT_DBG(lport, "Entered READY from state %s\n",
770 switch (lport->state) {
805 FC_LPORT_DBG(lport, "Received FLOGI request while in state %s\n",
1028 FC_LPORT_DBG(lport, "Entered RESET state from %s state\n",
1031 if (lport->state == LPORT_ST_DISABLED || lport->state == LPORT_ST_LOGO)
1057 FC_LPORT_DBG(lport, "Entered disabled state from %s state\n",
1077 FC_LPORT_DBG(lport, "Error %ld in state %s, retries %d\n",
1126 if (lport->state < LPORT_ST_RNN_ID || lport->state > LPORT_ST_RFF_ID) {
1128 "but in state %s\n", fc_lport_state(lport));
1146 switch (lport->state) {
1166 /* should have already been caught by state checks */
1202 if (lport->state < LPORT_ST_RHBA || lport->state > LPORT_ST_DPRT) {
1204 "but in state %s\n", fc_lport_state(lport));
1226 switch (lport->state) {
1243 /* should have already been caught by state checks */
1279 if (lport->state != LPORT_ST_SCR) {
1280 FC_LPORT_DBG(lport, "Received a SCR response, but in state "
1306 * @lport: The local port to register for state changes
1314 FC_LPORT_DBG(lport, "Entered SCR state from %s state\n",
1334 * @state: Local port state
1336 static void fc_lport_enter_ns(struct fc_lport *lport, enum fc_lport_state state)
1345 FC_LPORT_DBG(lport, "Entered %s state from %s state\n",
1346 fc_lport_state_names[state],
1349 fc_lport_state_enter(lport, state);
1351 switch (state) {
1411 FC_LPORT_DBG(lport, "Entered DNS state from %s state\n",
1433 * @state: Local port state
1435 static void fc_lport_enter_ms(struct fc_lport *lport, enum fc_lport_state state)
1445 FC_LPORT_DBG(lport, "Entered %s state from %s state\n",
1446 fc_lport_state_names[state],
1449 fc_lport_state_enter(lport, state);
1451 switch (state) {
1527 FC_LPORT_DBG(lport, "Entered FDMI state from %s state\n",
1558 switch (lport->state) {
1576 fc_lport_enter_ns(lport, lport->state);
1585 FC_LPORT_DBG(lport, "Skipping lport state %s to SCR\n",
1622 if (lport->state != LPORT_ST_LOGO) {
1623 FC_LPORT_DBG(lport, "Received a LOGO response, but in state "
1659 FC_LPORT_DBG(lport, "Entered LOGO state from %s state\n",
1706 if (lport->state != LPORT_ST_FLOGI) {
1707 FC_LPORT_DBG(lport, "Received a FLOGI response, but in state "
1800 FC_LPORT_DBG(lport, "Entered FLOGI state from %s state\n",