Lines Matching refs:scn
5254 static void bfa_fcs_lport_scn_sm_offline(struct bfa_fcs_lport_scn_s *scn,
5257 struct bfa_fcs_lport_scn_s *scn,
5259 static void bfa_fcs_lport_scn_sm_scr(struct bfa_fcs_lport_scn_s *scn,
5261 static void bfa_fcs_lport_scn_sm_scr_retry(struct bfa_fcs_lport_scn_s *scn,
5263 static void bfa_fcs_lport_scn_sm_online(struct bfa_fcs_lport_scn_s *scn,
5270 bfa_fcs_lport_scn_sm_offline(struct bfa_fcs_lport_scn_s *scn, in bfa_fcs_lport_scn_sm_offline() argument
5275 bfa_sm_set_state(scn, bfa_fcs_lport_scn_sm_sending_scr); in bfa_fcs_lport_scn_sm_offline()
5276 bfa_fcs_lport_scn_send_scr(scn, NULL); in bfa_fcs_lport_scn_sm_offline()
5283 bfa_sm_fault(scn->port->fcs, event); in bfa_fcs_lport_scn_sm_offline()
5288 bfa_fcs_lport_scn_sm_sending_scr(struct bfa_fcs_lport_scn_s *scn, in bfa_fcs_lport_scn_sm_sending_scr() argument
5293 bfa_sm_set_state(scn, bfa_fcs_lport_scn_sm_scr); in bfa_fcs_lport_scn_sm_sending_scr()
5297 bfa_sm_set_state(scn, bfa_fcs_lport_scn_sm_offline); in bfa_fcs_lport_scn_sm_sending_scr()
5298 bfa_fcxp_walloc_cancel(scn->port->fcs->bfa, &scn->fcxp_wqe); in bfa_fcs_lport_scn_sm_sending_scr()
5302 bfa_sm_fault(scn->port->fcs, event); in bfa_fcs_lport_scn_sm_sending_scr()
5307 bfa_fcs_lport_scn_sm_scr(struct bfa_fcs_lport_scn_s *scn, in bfa_fcs_lport_scn_sm_scr() argument
5310 struct bfa_fcs_lport_s *port = scn->port; in bfa_fcs_lport_scn_sm_scr()
5314 bfa_sm_set_state(scn, bfa_fcs_lport_scn_sm_online); in bfa_fcs_lport_scn_sm_scr()
5318 bfa_sm_set_state(scn, bfa_fcs_lport_scn_sm_scr_retry); in bfa_fcs_lport_scn_sm_scr()
5319 bfa_timer_start(port->fcs->bfa, &scn->timer, in bfa_fcs_lport_scn_sm_scr()
5320 bfa_fcs_lport_scn_timeout, scn, in bfa_fcs_lport_scn_sm_scr()
5325 bfa_sm_set_state(scn, bfa_fcs_lport_scn_sm_offline); in bfa_fcs_lport_scn_sm_scr()
5326 bfa_fcxp_discard(scn->fcxp); in bfa_fcs_lport_scn_sm_scr()
5335 bfa_fcs_lport_scn_sm_scr_retry(struct bfa_fcs_lport_scn_s *scn, in bfa_fcs_lport_scn_sm_scr_retry() argument
5340 bfa_sm_set_state(scn, bfa_fcs_lport_scn_sm_sending_scr); in bfa_fcs_lport_scn_sm_scr_retry()
5341 bfa_fcs_lport_scn_send_scr(scn, NULL); in bfa_fcs_lport_scn_sm_scr_retry()
5345 bfa_sm_set_state(scn, bfa_fcs_lport_scn_sm_offline); in bfa_fcs_lport_scn_sm_scr_retry()
5346 bfa_timer_stop(&scn->timer); in bfa_fcs_lport_scn_sm_scr_retry()
5350 bfa_sm_fault(scn->port->fcs, event); in bfa_fcs_lport_scn_sm_scr_retry()
5355 bfa_fcs_lport_scn_sm_online(struct bfa_fcs_lport_scn_s *scn, in bfa_fcs_lport_scn_sm_online() argument
5360 bfa_sm_set_state(scn, bfa_fcs_lport_scn_sm_offline); in bfa_fcs_lport_scn_sm_online()
5364 bfa_sm_fault(scn->port->fcs, event); in bfa_fcs_lport_scn_sm_online()
5380 struct bfa_fcs_lport_scn_s *scn = scn_cbarg; in bfa_fcs_lport_scn_send_scr() local
5381 struct bfa_fcs_lport_s *port = scn->port; in bfa_fcs_lport_scn_send_scr()
5392 bfa_fcs_fcxp_alloc_wait(port->fcs->bfa, &scn->fcxp_wqe, in bfa_fcs_lport_scn_send_scr()
5393 bfa_fcs_lport_scn_send_scr, scn, BFA_TRUE); in bfa_fcs_lport_scn_send_scr()
5396 scn->fcxp = fcxp; in bfa_fcs_lport_scn_send_scr()
5412 (void *)scn, FC_MAX_PDUSZ, FC_ELS_TOV); in bfa_fcs_lport_scn_send_scr()
5414 bfa_sm_send_event(scn, SCNSM_EVENT_SCR_SENT); in bfa_fcs_lport_scn_send_scr()
5422 struct bfa_fcs_lport_scn_s *scn = (struct bfa_fcs_lport_scn_s *) cbarg; in bfa_fcs_lport_scn_scr_response() local
5423 struct bfa_fcs_lport_s *port = scn->port; in bfa_fcs_lport_scn_scr_response()
5434 bfa_sm_send_event(scn, SCNSM_EVENT_RSP_ERROR); in bfa_fcs_lport_scn_scr_response()
5443 bfa_sm_send_event(scn, SCNSM_EVENT_RSP_OK); in bfa_fcs_lport_scn_scr_response()
5453 bfa_sm_send_event(scn, SCNSM_EVENT_RSP_ERROR); in bfa_fcs_lport_scn_scr_response()
5457 bfa_sm_send_event(scn, SCNSM_EVENT_RSP_ERROR); in bfa_fcs_lport_scn_scr_response()
5504 struct bfa_fcs_lport_scn_s *scn = (struct bfa_fcs_lport_scn_s *) arg; in bfa_fcs_lport_scn_timeout() local
5506 bfa_sm_send_event(scn, SCNSM_EVENT_TIMEOUT); in bfa_fcs_lport_scn_timeout()
5521 struct bfa_fcs_lport_scn_s *scn = BFA_FCS_GET_SCN_FROM_PORT(port); in bfa_fcs_lport_scn_init() local
5523 scn->port = port; in bfa_fcs_lport_scn_init()
5524 bfa_sm_set_state(scn, bfa_fcs_lport_scn_sm_offline); in bfa_fcs_lport_scn_init()
5530 struct bfa_fcs_lport_scn_s *scn = BFA_FCS_GET_SCN_FROM_PORT(port); in bfa_fcs_lport_scn_offline() local
5532 scn->port = port; in bfa_fcs_lport_scn_offline()
5533 bfa_sm_send_event(scn, SCNSM_EVENT_PORT_OFFLINE); in bfa_fcs_lport_scn_offline()
5539 struct bfa_fcs_lport_scn_s *scn = BFA_FCS_GET_SCN_FROM_PORT(port); in bfa_fcs_lport_fab_scn_online() local
5541 scn->port = port; in bfa_fcs_lport_fab_scn_online()
5542 bfa_sm_send_event(scn, SCNSM_EVENT_PORT_ONLINE); in bfa_fcs_lport_fab_scn_online()