Lines Matching refs:scn

5183 static void     bfa_fcs_lport_scn_sm_offline(struct bfa_fcs_lport_scn_s *scn,
5186 struct bfa_fcs_lport_scn_s *scn,
5188 static void bfa_fcs_lport_scn_sm_scr(struct bfa_fcs_lport_scn_s *scn,
5190 static void bfa_fcs_lport_scn_sm_scr_retry(struct bfa_fcs_lport_scn_s *scn,
5192 static void bfa_fcs_lport_scn_sm_online(struct bfa_fcs_lport_scn_s *scn,
5199 bfa_fcs_lport_scn_sm_offline(struct bfa_fcs_lport_scn_s *scn,
5204 bfa_sm_set_state(scn, bfa_fcs_lport_scn_sm_sending_scr);
5205 bfa_fcs_lport_scn_send_scr(scn, NULL);
5212 bfa_sm_fault(scn->port->fcs, event);
5217 bfa_fcs_lport_scn_sm_sending_scr(struct bfa_fcs_lport_scn_s *scn,
5222 bfa_sm_set_state(scn, bfa_fcs_lport_scn_sm_scr);
5226 bfa_sm_set_state(scn, bfa_fcs_lport_scn_sm_offline);
5227 bfa_fcxp_walloc_cancel(scn->port->fcs->bfa, &scn->fcxp_wqe);
5231 bfa_sm_fault(scn->port->fcs, event);
5236 bfa_fcs_lport_scn_sm_scr(struct bfa_fcs_lport_scn_s *scn,
5239 struct bfa_fcs_lport_s *port = scn->port;
5243 bfa_sm_set_state(scn, bfa_fcs_lport_scn_sm_online);
5247 bfa_sm_set_state(scn, bfa_fcs_lport_scn_sm_scr_retry);
5248 bfa_timer_start(port->fcs->bfa, &scn->timer,
5249 bfa_fcs_lport_scn_timeout, scn,
5254 bfa_sm_set_state(scn, bfa_fcs_lport_scn_sm_offline);
5255 bfa_fcxp_discard(scn->fcxp);
5264 bfa_fcs_lport_scn_sm_scr_retry(struct bfa_fcs_lport_scn_s *scn,
5269 bfa_sm_set_state(scn, bfa_fcs_lport_scn_sm_sending_scr);
5270 bfa_fcs_lport_scn_send_scr(scn, NULL);
5274 bfa_sm_set_state(scn, bfa_fcs_lport_scn_sm_offline);
5275 bfa_timer_stop(&scn->timer);
5279 bfa_sm_fault(scn->port->fcs, event);
5284 bfa_fcs_lport_scn_sm_online(struct bfa_fcs_lport_scn_s *scn,
5289 bfa_sm_set_state(scn, bfa_fcs_lport_scn_sm_offline);
5293 bfa_sm_fault(scn->port->fcs, event);
5309 struct bfa_fcs_lport_scn_s *scn = scn_cbarg;
5310 struct bfa_fcs_lport_s *port = scn->port;
5321 bfa_fcs_fcxp_alloc_wait(port->fcs->bfa, &scn->fcxp_wqe,
5322 bfa_fcs_lport_scn_send_scr, scn, BFA_TRUE);
5325 scn->fcxp = fcxp;
5341 (void *)scn, FC_MAX_PDUSZ, FC_ELS_TOV);
5343 bfa_sm_send_event(scn, SCNSM_EVENT_SCR_SENT);
5351 struct bfa_fcs_lport_scn_s *scn = (struct bfa_fcs_lport_scn_s *) cbarg;
5352 struct bfa_fcs_lport_s *port = scn->port;
5363 bfa_sm_send_event(scn, SCNSM_EVENT_RSP_ERROR);
5372 bfa_sm_send_event(scn, SCNSM_EVENT_RSP_OK);
5382 bfa_sm_send_event(scn, SCNSM_EVENT_RSP_ERROR);
5386 bfa_sm_send_event(scn, SCNSM_EVENT_RSP_ERROR);
5433 struct bfa_fcs_lport_scn_s *scn = (struct bfa_fcs_lport_scn_s *) arg;
5435 bfa_sm_send_event(scn, SCNSM_EVENT_TIMEOUT);
5450 struct bfa_fcs_lport_scn_s *scn = BFA_FCS_GET_SCN_FROM_PORT(port);
5452 scn->port = port;
5453 bfa_sm_set_state(scn, bfa_fcs_lport_scn_sm_offline);
5459 struct bfa_fcs_lport_scn_s *scn = BFA_FCS_GET_SCN_FROM_PORT(port);
5461 scn->port = port;
5462 bfa_sm_send_event(scn, SCNSM_EVENT_PORT_OFFLINE);
5468 struct bfa_fcs_lport_scn_s *scn = BFA_FCS_GET_SCN_FROM_PORT(port);
5470 scn->port = port;
5471 bfa_sm_send_event(scn, SCNSM_EVENT_PORT_ONLINE);