• Home
  • Raw
  • Download

Lines Matching refs:scn

5256 static void     bfa_fcs_lport_scn_sm_offline(struct bfa_fcs_lport_scn_s *scn,
5259 struct bfa_fcs_lport_scn_s *scn,
5261 static void bfa_fcs_lport_scn_sm_scr(struct bfa_fcs_lport_scn_s *scn,
5263 static void bfa_fcs_lport_scn_sm_scr_retry(struct bfa_fcs_lport_scn_s *scn,
5265 static void bfa_fcs_lport_scn_sm_online(struct bfa_fcs_lport_scn_s *scn,
5272 bfa_fcs_lport_scn_sm_offline(struct bfa_fcs_lport_scn_s *scn, in bfa_fcs_lport_scn_sm_offline() argument
5277 bfa_sm_set_state(scn, bfa_fcs_lport_scn_sm_sending_scr); in bfa_fcs_lport_scn_sm_offline()
5278 bfa_fcs_lport_scn_send_scr(scn, NULL); in bfa_fcs_lport_scn_sm_offline()
5285 bfa_sm_fault(scn->port->fcs, event); in bfa_fcs_lport_scn_sm_offline()
5290 bfa_fcs_lport_scn_sm_sending_scr(struct bfa_fcs_lport_scn_s *scn, in bfa_fcs_lport_scn_sm_sending_scr() argument
5295 bfa_sm_set_state(scn, bfa_fcs_lport_scn_sm_scr); in bfa_fcs_lport_scn_sm_sending_scr()
5299 bfa_sm_set_state(scn, bfa_fcs_lport_scn_sm_offline); in bfa_fcs_lport_scn_sm_sending_scr()
5300 bfa_fcxp_walloc_cancel(scn->port->fcs->bfa, &scn->fcxp_wqe); in bfa_fcs_lport_scn_sm_sending_scr()
5304 bfa_sm_fault(scn->port->fcs, event); in bfa_fcs_lport_scn_sm_sending_scr()
5309 bfa_fcs_lport_scn_sm_scr(struct bfa_fcs_lport_scn_s *scn, in bfa_fcs_lport_scn_sm_scr() argument
5312 struct bfa_fcs_lport_s *port = scn->port; in bfa_fcs_lport_scn_sm_scr()
5316 bfa_sm_set_state(scn, bfa_fcs_lport_scn_sm_online); in bfa_fcs_lport_scn_sm_scr()
5320 bfa_sm_set_state(scn, bfa_fcs_lport_scn_sm_scr_retry); in bfa_fcs_lport_scn_sm_scr()
5321 bfa_timer_start(port->fcs->bfa, &scn->timer, in bfa_fcs_lport_scn_sm_scr()
5322 bfa_fcs_lport_scn_timeout, scn, in bfa_fcs_lport_scn_sm_scr()
5327 bfa_sm_set_state(scn, bfa_fcs_lport_scn_sm_offline); in bfa_fcs_lport_scn_sm_scr()
5328 bfa_fcxp_discard(scn->fcxp); in bfa_fcs_lport_scn_sm_scr()
5337 bfa_fcs_lport_scn_sm_scr_retry(struct bfa_fcs_lport_scn_s *scn, in bfa_fcs_lport_scn_sm_scr_retry() argument
5342 bfa_sm_set_state(scn, bfa_fcs_lport_scn_sm_sending_scr); in bfa_fcs_lport_scn_sm_scr_retry()
5343 bfa_fcs_lport_scn_send_scr(scn, NULL); in bfa_fcs_lport_scn_sm_scr_retry()
5347 bfa_sm_set_state(scn, bfa_fcs_lport_scn_sm_offline); in bfa_fcs_lport_scn_sm_scr_retry()
5348 bfa_timer_stop(&scn->timer); in bfa_fcs_lport_scn_sm_scr_retry()
5352 bfa_sm_fault(scn->port->fcs, event); in bfa_fcs_lport_scn_sm_scr_retry()
5357 bfa_fcs_lport_scn_sm_online(struct bfa_fcs_lport_scn_s *scn, in bfa_fcs_lport_scn_sm_online() argument
5362 bfa_sm_set_state(scn, bfa_fcs_lport_scn_sm_offline); in bfa_fcs_lport_scn_sm_online()
5366 bfa_sm_fault(scn->port->fcs, event); in bfa_fcs_lport_scn_sm_online()
5382 struct bfa_fcs_lport_scn_s *scn = scn_cbarg; in bfa_fcs_lport_scn_send_scr() local
5383 struct bfa_fcs_lport_s *port = scn->port; in bfa_fcs_lport_scn_send_scr()
5394 bfa_fcs_fcxp_alloc_wait(port->fcs->bfa, &scn->fcxp_wqe, in bfa_fcs_lport_scn_send_scr()
5395 bfa_fcs_lport_scn_send_scr, scn, BFA_TRUE); in bfa_fcs_lport_scn_send_scr()
5398 scn->fcxp = fcxp; in bfa_fcs_lport_scn_send_scr()
5414 (void *)scn, FC_MAX_PDUSZ, FC_ELS_TOV); in bfa_fcs_lport_scn_send_scr()
5416 bfa_sm_send_event(scn, SCNSM_EVENT_SCR_SENT); in bfa_fcs_lport_scn_send_scr()
5424 struct bfa_fcs_lport_scn_s *scn = (struct bfa_fcs_lport_scn_s *) cbarg; in bfa_fcs_lport_scn_scr_response() local
5425 struct bfa_fcs_lport_s *port = scn->port; in bfa_fcs_lport_scn_scr_response()
5436 bfa_sm_send_event(scn, SCNSM_EVENT_RSP_ERROR); in bfa_fcs_lport_scn_scr_response()
5445 bfa_sm_send_event(scn, SCNSM_EVENT_RSP_OK); in bfa_fcs_lport_scn_scr_response()
5455 bfa_sm_send_event(scn, SCNSM_EVENT_RSP_ERROR); in bfa_fcs_lport_scn_scr_response()
5459 bfa_sm_send_event(scn, SCNSM_EVENT_RSP_ERROR); in bfa_fcs_lport_scn_scr_response()
5506 struct bfa_fcs_lport_scn_s *scn = (struct bfa_fcs_lport_scn_s *) arg; in bfa_fcs_lport_scn_timeout() local
5508 bfa_sm_send_event(scn, SCNSM_EVENT_TIMEOUT); in bfa_fcs_lport_scn_timeout()
5523 struct bfa_fcs_lport_scn_s *scn = BFA_FCS_GET_SCN_FROM_PORT(port); in bfa_fcs_lport_scn_init() local
5525 scn->port = port; in bfa_fcs_lport_scn_init()
5526 bfa_sm_set_state(scn, bfa_fcs_lport_scn_sm_offline); in bfa_fcs_lport_scn_init()
5532 struct bfa_fcs_lport_scn_s *scn = BFA_FCS_GET_SCN_FROM_PORT(port); in bfa_fcs_lport_scn_offline() local
5534 scn->port = port; in bfa_fcs_lport_scn_offline()
5535 bfa_sm_send_event(scn, SCNSM_EVENT_PORT_OFFLINE); in bfa_fcs_lport_scn_offline()
5541 struct bfa_fcs_lport_scn_s *scn = BFA_FCS_GET_SCN_FROM_PORT(port); in bfa_fcs_lport_fab_scn_online() local
5543 scn->port = port; in bfa_fcs_lport_fab_scn_online()
5544 bfa_sm_send_event(scn, SCNSM_EVENT_PORT_ONLINE); in bfa_fcs_lport_fab_scn_online()