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
181 if (lport->state == LPORT_ST_DNS) {
184 } else if (lport->state == LPORT_ST_FDMI) {
191 "in the DNS or FDMI state, it's in the "
192 "%d state", rdata->ids.port_id,
193 lport->state);
212 * fc_lport_state() - Return a string which represents the lport's state
213 * @lport: The lport whose state is to converted to a string
219 cp = fc_lport_state_names[lport->state];
261 * fc_get_host_port_state() - Return the port state of the given Scsi_Host
262 * @shost: The SCSI host whose port state is to be determined
272 switch (lport->state) {
407 FC_LPORT_DBG(lport, "Received RLIR request while in state %s\n",
429 FC_LPORT_DBG(lport, "Received ECHO request while in state %s\n",
470 FC_LPORT_DBG(lport, "Received RNID request while in state %s\n",
522 * fc_fabric_login() - Start the lport state machine
533 if (lport->state == LPORT_ST_DISABLED ||
534 lport->state == LPORT_ST_LOGO) {
556 if (lport->state == LPORT_ST_RESET)
642 lport->state = LPORT_ST_DISABLED;
715 * fc_lport_enter_ready() - Enter the ready state and start discovery
722 FC_LPORT_DBG(lport, "Entered READY from state %s\n",
773 switch (lport->state) {
808 FC_LPORT_DBG(lport, "Received FLOGI request while in state %s\n",
1031 FC_LPORT_DBG(lport, "Entered RESET state from %s state\n",
1034 if (lport->state == LPORT_ST_DISABLED || lport->state == LPORT_ST_LOGO)
1060 FC_LPORT_DBG(lport, "Entered disabled state from %s state\n",
1080 FC_LPORT_DBG(lport, "Error %ld in state %s, retries %d\n",
1129 if (lport->state < LPORT_ST_RNN_ID || lport->state > LPORT_ST_RFF_ID) {
1131 "but in state %s\n", fc_lport_state(lport));
1149 switch (lport->state) {
1169 /* should have already been caught by state checks */
1205 if (lport->state < LPORT_ST_RHBA || lport->state > LPORT_ST_DPRT) {
1207 "but in state %s\n", fc_lport_state(lport));
1229 switch (lport->state) {
1252 /* should have already been caught by state checks */
1288 if (lport->state != LPORT_ST_SCR) {
1289 FC_LPORT_DBG(lport, "Received a SCR response, but in state "
1315 * @lport: The local port to register for state changes
1323 FC_LPORT_DBG(lport, "Entered SCR state from %s state\n",
1343 * @state: Local port state
1345 static void fc_lport_enter_ns(struct fc_lport *lport, enum fc_lport_state state)
1354 FC_LPORT_DBG(lport, "Entered %s state from %s state\n",
1355 fc_lport_state_names[state],
1358 fc_lport_state_enter(lport, state);
1360 switch (state) {
1420 FC_LPORT_DBG(lport, "Entered DNS state from %s state\n",
1442 * @state: Local port state
1444 static void fc_lport_enter_ms(struct fc_lport *lport, enum fc_lport_state state)
1454 FC_LPORT_DBG(lport, "Entered %s state from %s state\n",
1455 fc_lport_state_names[state],
1458 fc_lport_state_enter(lport, state);
1460 switch (state) {
1566 FC_LPORT_DBG(lport, "Entered FDMI state from %s state\n",
1598 switch (lport->state) {
1616 fc_lport_enter_ns(lport, lport->state);
1632 FC_LPORT_DBG(lport, "Skipping lport state %s to SCR\n",
1669 if (lport->state != LPORT_ST_LOGO) {
1670 FC_LPORT_DBG(lport, "Received a LOGO response, but in state "
1706 FC_LPORT_DBG(lport, "Entered LOGO state from %s state\n",
1753 if (lport->state != LPORT_ST_FLOGI) {
1754 FC_LPORT_DBG(lport, "Received a FLOGI response, but in state "
1847 FC_LPORT_DBG(lport, "Entered FLOGI state from %s state\n",