• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/scsi/bfa/

Lines Matching refs:scn

65 static void     bfa_fcs_port_scn_sm_offline(struct bfa_fcs_port_scn_s *scn,
67 static void bfa_fcs_port_scn_sm_sending_scr(struct bfa_fcs_port_scn_s *scn,
69 static void bfa_fcs_port_scn_sm_scr(struct bfa_fcs_port_scn_s *scn,
71 static void bfa_fcs_port_scn_sm_scr_retry(struct bfa_fcs_port_scn_s *scn,
73 static void bfa_fcs_port_scn_sm_online(struct bfa_fcs_port_scn_s *scn,
80 bfa_fcs_port_scn_sm_offline(struct bfa_fcs_port_scn_s *scn,
85 bfa_sm_set_state(scn, bfa_fcs_port_scn_sm_sending_scr);
86 bfa_fcs_port_scn_send_scr(scn, NULL);
93 bfa_sm_fault(scn->port->fcs, event);
98 bfa_fcs_port_scn_sm_sending_scr(struct bfa_fcs_port_scn_s *scn,
103 bfa_sm_set_state(scn, bfa_fcs_port_scn_sm_scr);
107 bfa_sm_set_state(scn, bfa_fcs_port_scn_sm_offline);
108 bfa_fcxp_walloc_cancel(scn->port->fcs->bfa, &scn->fcxp_wqe);
112 bfa_sm_fault(scn->port->fcs, event);
117 bfa_fcs_port_scn_sm_scr(struct bfa_fcs_port_scn_s *scn,
120 struct bfa_fcs_port_s *port = scn->port;
124 bfa_sm_set_state(scn, bfa_fcs_port_scn_sm_online);
128 bfa_sm_set_state(scn, bfa_fcs_port_scn_sm_scr_retry);
129 bfa_timer_start(port->fcs->bfa, &scn->timer,
130 bfa_fcs_port_scn_timeout, scn,
135 bfa_sm_set_state(scn, bfa_fcs_port_scn_sm_offline);
136 bfa_fcxp_discard(scn->fcxp);
140 bfa_sm_fault(scn->port->fcs, event);
145 bfa_fcs_port_scn_sm_scr_retry(struct bfa_fcs_port_scn_s *scn,
150 bfa_sm_set_state(scn, bfa_fcs_port_scn_sm_sending_scr);
151 bfa_fcs_port_scn_send_scr(scn, NULL);
155 bfa_sm_set_state(scn, bfa_fcs_port_scn_sm_offline);
156 bfa_timer_stop(&scn->timer);
160 bfa_sm_fault(scn->port->fcs, event);
165 bfa_fcs_port_scn_sm_online(struct bfa_fcs_port_scn_s *scn,
170 bfa_sm_set_state(scn, bfa_fcs_port_scn_sm_offline);
174 bfa_sm_fault(scn->port->fcs, event);
190 struct bfa_fcs_port_scn_s *scn = scn_cbarg;
191 struct bfa_fcs_port_s *port = scn->port;
201 bfa_fcxp_alloc_wait(port->fcs->bfa, &scn->fcxp_wqe,
202 bfa_fcs_port_scn_send_scr, scn);
205 scn->fcxp = fcxp;
221 (void *)scn, FC_MAX_PDUSZ, FC_ELS_TOV);
223 bfa_sm_send_event(scn, SCNSM_EVENT_SCR_SENT);
232 struct bfa_fcs_port_scn_s *scn = (struct bfa_fcs_port_scn_s *)cbarg;
233 struct bfa_fcs_port_s *port = scn->port;
244 bfa_sm_send_event(scn, SCNSM_EVENT_RSP_ERROR);
253 bfa_sm_send_event(scn, SCNSM_EVENT_RSP_OK);
263 bfa_sm_send_event(scn, SCNSM_EVENT_RSP_ERROR);
267 bfa_sm_send_event(scn, SCNSM_EVENT_RSP_ERROR);
313 struct bfa_fcs_port_scn_s *scn = (struct bfa_fcs_port_scn_s *)arg;
315 bfa_sm_send_event(scn, SCNSM_EVENT_TIMEOUT);
330 struct bfa_fcs_port_scn_s *scn = BFA_FCS_GET_SCN_FROM_PORT(port);
332 scn->port = port;
333 bfa_sm_set_state(scn, bfa_fcs_port_scn_sm_offline);
339 struct bfa_fcs_port_scn_s *scn = BFA_FCS_GET_SCN_FROM_PORT(port);
341 scn->port = port;
342 bfa_sm_send_event(scn, SCNSM_EVENT_PORT_OFFLINE);
348 struct bfa_fcs_port_scn_s *scn = BFA_FCS_GET_SCN_FROM_PORT(port);
350 scn->port = port;
351 bfa_sm_send_event(scn, SCNSM_EVENT_PORT_ONLINE);