Lines Matching refs:fcs
37 struct bfa_fcs_s *fcs = fcs_cbarg; in bfa_fcs_exit_comp() local
38 struct bfad_s *bfad = fcs->bfad; in bfa_fcs_exit_comp()
47 bfa_fcs_init(struct bfa_fcs_s *fcs) in bfa_fcs_init() argument
49 bfa_sm_send_event(&fcs->fabric, BFA_FCS_FABRIC_SM_CREATE); in bfa_fcs_init()
50 bfa_trc(fcs, 0); in bfa_fcs_init()
62 bfa_fcs_update_cfg(struct bfa_fcs_s *fcs) in bfa_fcs_update_cfg() argument
64 struct bfa_fcs_fabric_s *fabric = &fcs->fabric; in bfa_fcs_update_cfg()
66 struct bfa_ioc_s *ioc = &fabric->fcs->bfa->ioc; in bfa_fcs_update_cfg()
76 bfa_fcs_stop(struct bfa_fcs_s *fcs) in bfa_fcs_stop() argument
78 bfa_wc_init(&fcs->wc, bfa_fcs_exit_comp, fcs); in bfa_fcs_stop()
79 bfa_wc_up(&fcs->wc); in bfa_fcs_stop()
80 bfa_fcs_fabric_modstop(fcs); in bfa_fcs_stop()
81 bfa_wc_wait(&fcs->wc); in bfa_fcs_stop()
88 bfa_fcs_pbc_vport_init(struct bfa_fcs_s *fcs) in bfa_fcs_pbc_vport_init() argument
94 if (!fcs->min_cfg) { in bfa_fcs_pbc_vport_init()
96 bfa_iocfc_get_pbc_vports(fcs->bfa, pbc_vports); in bfa_fcs_pbc_vport_init()
98 bfa_fcb_pbc_vport_create(fcs->bfa->bfad, pbc_vports[i]); in bfa_fcs_pbc_vport_init()
112 bfa_fcs_driver_info_init(struct bfa_fcs_s *fcs, in bfa_fcs_driver_info_init() argument
116 fcs->driver_info = *driver_info; in bfa_fcs_driver_info_init()
118 bfa_fcs_fabric_psymb_init(&fcs->fabric); in bfa_fcs_driver_info_init()
119 bfa_fcs_fabric_nsymb_init(&fcs->fabric); in bfa_fcs_driver_info_init()
130 bfa_fcs_exit(struct bfa_fcs_s *fcs) in bfa_fcs_exit() argument
132 bfa_wc_init(&fcs->wc, bfa_fcs_exit_comp, fcs); in bfa_fcs_exit()
133 bfa_wc_up(&fcs->wc); in bfa_fcs_exit()
134 bfa_trc(fcs, 0); in bfa_fcs_exit()
135 bfa_lps_delete(fcs->fabric.lps); in bfa_fcs_exit()
136 bfa_sm_send_event(&fcs->fabric, BFA_FCS_FABRIC_SM_DELETE); in bfa_fcs_exit()
137 bfa_wc_wait(&fcs->wc); in bfa_fcs_exit()
148 if (bfa_fcport_get_topology((__fabric)->fcs->bfa) \
215 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn); in bfa_fcs_fabric_sm_uninit()
216 bfa_trc(fabric->fcs, event); in bfa_fcs_fabric_sm_uninit()
230 bfa_sm_fault(fabric->fcs, event); in bfa_fcs_fabric_sm_uninit()
241 struct bfa_s *bfa = fabric->fcs->bfa; in bfa_fcs_fabric_sm_created()
243 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn); in bfa_fcs_fabric_sm_created()
244 bfa_trc(fabric->fcs, event); in bfa_fcs_fabric_sm_created()
248 if (!bfa_fcport_is_linkup(fabric->fcs->bfa)) { in bfa_fcs_fabric_sm_created()
277 bfa_sm_fault(fabric->fcs, event); in bfa_fcs_fabric_sm_created()
289 struct bfa_s *bfa = fabric->fcs->bfa; in bfa_fcs_fabric_sm_linkdown()
291 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn); in bfa_fcs_fabric_sm_linkdown()
292 bfa_trc(fabric->fcs, event); in bfa_fcs_fabric_sm_linkdown()
324 bfa_sm_fault(fabric->fcs, event); in bfa_fcs_fabric_sm_linkdown()
335 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn); in bfa_fcs_fabric_sm_flogi()
336 bfa_trc(fabric->fcs, event); in bfa_fcs_fabric_sm_flogi()
341 bfa_fcport_set_tx_bbcredit(fabric->fcs->bfa, in bfa_fcs_fabric_sm_flogi()
347 bfa_trc(fabric->fcs, event); in bfa_fcs_fabric_sm_flogi()
356 bfa_timer_start(fabric->fcs->bfa, &fabric->delay_timer, in bfa_fcs_fabric_sm_flogi()
369 bfa_fcport_set_tx_bbcredit(fabric->fcs->bfa, in bfa_fcs_fabric_sm_flogi()
387 bfa_sm_fault(fabric->fcs, event); in bfa_fcs_fabric_sm_flogi()
396 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn); in bfa_fcs_fabric_sm_flogi_retry()
397 bfa_trc(fabric->fcs, event); in bfa_fcs_fabric_sm_flogi_retry()
417 bfa_sm_fault(fabric->fcs, event); in bfa_fcs_fabric_sm_flogi_retry()
428 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn); in bfa_fcs_fabric_sm_auth()
429 bfa_trc(fabric->fcs, event); in bfa_fcs_fabric_sm_auth()
457 bfa_sm_fault(fabric->fcs, event); in bfa_fcs_fabric_sm_auth()
468 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn); in bfa_fcs_fabric_sm_auth_failed()
469 bfa_trc(fabric->fcs, event); in bfa_fcs_fabric_sm_auth_failed()
483 bfa_sm_fault(fabric->fcs, event); in bfa_fcs_fabric_sm_auth_failed()
494 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn); in bfa_fcs_fabric_sm_loopback()
495 bfa_trc(fabric->fcs, event); in bfa_fcs_fabric_sm_loopback()
509 bfa_sm_fault(fabric->fcs, event); in bfa_fcs_fabric_sm_loopback()
520 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn); in bfa_fcs_fabric_sm_nofabric()
521 bfa_trc(fabric->fcs, event); in bfa_fcs_fabric_sm_nofabric()
536 bfa_trc(fabric->fcs, fabric->bb_credit); in bfa_fcs_fabric_sm_nofabric()
537 bfa_fcport_set_tx_bbcredit(fabric->fcs->bfa, in bfa_fcs_fabric_sm_nofabric()
545 bfa_sm_fault(fabric->fcs, event); in bfa_fcs_fabric_sm_nofabric()
556 struct bfa_s *bfa = fabric->fcs->bfa; in bfa_fcs_fabric_sm_online()
558 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn); in bfa_fcs_fabric_sm_online()
559 bfa_trc(fabric->fcs, event); in bfa_fcs_fabric_sm_online()
591 bfa_sm_fault(fabric->fcs, event); in bfa_fcs_fabric_sm_online()
602 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn); in bfa_fcs_fabric_sm_evfp()
603 bfa_trc(fabric->fcs, event); in bfa_fcs_fabric_sm_evfp()
615 bfa_sm_fault(fabric->fcs, event); in bfa_fcs_fabric_sm_evfp()
626 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn); in bfa_fcs_fabric_sm_evfp_done()
627 bfa_trc(fabric->fcs, event); in bfa_fcs_fabric_sm_evfp_done()
637 struct bfad_s *bfad = (struct bfad_s *)fabric->fcs->bfad; in bfa_fcs_fabric_sm_isolated()
640 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn); in bfa_fcs_fabric_sm_isolated()
641 bfa_trc(fabric->fcs, event); in bfa_fcs_fabric_sm_isolated()
647 pwwn_ptr, fabric->fcs->port_vfid, in bfa_fcs_fabric_sm_isolated()
658 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn); in bfa_fcs_fabric_sm_deleting()
659 bfa_trc(fabric->fcs, event); in bfa_fcs_fabric_sm_deleting()
664 bfa_wc_down(&fabric->fcs->wc); in bfa_fcs_fabric_sm_deleting()
675 bfa_sm_fault(fabric->fcs, event); in bfa_fcs_fabric_sm_deleting()
686 struct bfa_s *bfa = fabric->fcs->bfa; in bfa_fcs_fabric_sm_stopping()
688 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn); in bfa_fcs_fabric_sm_stopping()
689 bfa_trc(fabric->fcs, event); in bfa_fcs_fabric_sm_stopping()
712 bfa_sm_fault(fabric->fcs, event); in bfa_fcs_fabric_sm_stopping()
723 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn); in bfa_fcs_fabric_sm_cleanup()
724 bfa_trc(fabric->fcs, event); in bfa_fcs_fabric_sm_cleanup()
730 bfa_wc_down(&(fabric->fcs)->wc); in bfa_fcs_fabric_sm_cleanup()
741 bfa_sm_fault(fabric->fcs, event); in bfa_fcs_fabric_sm_cleanup()
755 port_cfg->nwwn = fabric->fcs->bfa->ioc.attr->nwwn; in bfa_fcs_fabric_init()
756 port_cfg->pwwn = fabric->fcs->bfa->ioc.attr->pwwn; in bfa_fcs_fabric_init()
767 struct bfa_fcs_driver_info_s *driver_info = &fabric->fcs->driver_info; in bfa_fcs_fabric_psymb_init()
769 bfa_ioc_get_adapter_model(&fabric->fcs->bfa->ioc, model); in bfa_fcs_fabric_psymb_init()
828 struct bfa_fcs_driver_info_s *driver_info = &fabric->fcs->driver_info; in bfa_fcs_fabric_nsymb_init()
830 bfa_ioc_get_adapter_model(&fabric->fcs->bfa->ioc, model); in bfa_fcs_fabric_nsymb_init()
866 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn); in bfa_cb_lps_flogi_comp()
867 bfa_trc(fabric->fcs, status); in bfa_cb_lps_flogi_comp()
910 bfa_trc(fabric->fcs, fabric->bb_credit); in bfa_cb_lps_flogi_comp()
933 bfa_trc(fabric->fcs, fabric->bport.pid); in bfa_cb_lps_flogi_comp()
934 bfa_trc(fabric->fcs, fabric->is_npiv); in bfa_cb_lps_flogi_comp()
935 bfa_trc(fabric->fcs, fabric->is_auth); in bfa_cb_lps_flogi_comp()
943 struct bfa_s *bfa = fabric->fcs->bfa; in bfa_fcs_fabric_login()
960 bfa_trc(fabric->fcs, fabric->fabric_name); in bfa_fcs_fabric_notify_online()
982 bfa_trc(fabric->fcs, fabric->fabric_name); in bfa_fcs_fabric_notify_offline()
1071 bfa_fcs_fabric_modstop(struct bfa_fcs_s *fcs) in bfa_fcs_fabric_modstop() argument
1075 bfa_trc(fcs, 0); in bfa_fcs_fabric_modstop()
1076 fabric = &fcs->fabric; in bfa_fcs_fabric_modstop()
1084 bfa_fcs_fabric_modstart(struct bfa_fcs_s *fcs) in bfa_fcs_fabric_modstart() argument
1088 bfa_trc(fcs, 0); in bfa_fcs_fabric_modstart()
1089 fabric = &fcs->fabric; in bfa_fcs_fabric_modstart()
1100 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn); in bfa_fcs_fabric_link_up()
1110 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn); in bfa_fcs_fabric_link_down()
1132 bfa_trc(fabric->fcs, fabric->vf_id); in bfa_fcs_fabric_addvport()
1211 bfa_trc(fabric->fcs, len); in bfa_fcs_fabric_uf_recv()
1212 bfa_trc(fabric->fcs, pid); in bfa_fcs_fabric_uf_recv()
1230 bfa_trc(fabric->fcs, pid); in bfa_fcs_fabric_uf_recv()
1239 bfa_trc(fabric->fcs, els_cmd->els_code); in bfa_fcs_fabric_uf_recv()
1241 bfa_trc(fabric->fcs, els_cmd->els_code); in bfa_fcs_fabric_uf_recv()
1245 bfa_trc(fabric->fcs, *(u8 *) ((u8 *) fchs)); in bfa_fcs_fabric_uf_recv()
1264 bfa_trc(fabric->fcs, fchs->type); in bfa_fcs_fabric_uf_recv()
1276 bfa_trc(fabric->fcs, els_cmd->els_code); in bfa_fcs_fabric_process_uf()
1301 bfa_trc(fabric->fcs, fchs->s_id); in bfa_fcs_fabric_process_flogi()
1311 bfa_trc(fabric->fcs, flogi->port_name); in bfa_fcs_fabric_process_flogi()
1332 struct bfa_s *bfa = fabric->fcs->bfa; in bfa_fcs_fabric_send_flogi_acc()
1337 fcxp = bfa_fcs_fcxp_alloc(fabric->fcs, BFA_FALSE); in bfa_fcs_fabric_send_flogi_acc()
1367 bfa_trc(fabric->fcs, status); in bfa_fcs_fabric_flogiacc_comp()
1378 struct bfad_s *bfad = (struct bfad_s *)port->fabric->fcs->bfad; in bfa_fcs_fabric_aen_post()
1389 bfad_im_post_vendor_event(aen_entry, bfad, ++port->fcs->fcs_aen_seq, in bfa_fcs_fabric_aen_post()
1404 struct bfad_s *bfad = (struct bfad_s *)fabric->fcs->bfad; in bfa_fcs_fabric_set_fabric_name()
1408 bfa_trc(fabric->fcs, fabric_name); in bfa_fcs_fabric_set_fabric_name()
1445 bfa_fcs_vf_lookup(struct bfa_fcs_s *fcs, u16 vf_id) in bfa_fcs_vf_lookup() argument
1447 bfa_trc(fcs, vf_id); in bfa_fcs_vf_lookup()
1449 return &fcs->fabric; in bfa_fcs_vf_lookup()
1469 struct bfa_fcs_s *fcs; in bfa_fcs_vf_get_ports() local
1474 fcs = vf->fcs; in bfa_fcs_vf_get_ports()
1476 bfa_trc(fcs, vf->vf_id); in bfa_fcs_vf_get_ports()
1477 bfa_trc(fcs, (uint32_t) *nlports); in bfa_fcs_vf_get_ports()
1489 bfa_trc(fcs, i); in bfa_fcs_vf_get_ports()
1499 struct bfa_fcs_s *fcs = cbarg; in bfa_fcs_port_event_handler() local
1501 bfa_trc(fcs, event); in bfa_fcs_port_event_handler()
1505 bfa_fcs_fabric_link_up(&fcs->fabric); in bfa_fcs_port_event_handler()
1509 bfa_fcs_fabric_link_down(&fcs->fabric); in bfa_fcs_port_event_handler()
1532 struct bfa_fcs_s *fcs = (struct bfa_fcs_s *) cbarg; in bfa_fcs_uf_recv() local
1543 bfa_stats(fcs, uf.tagged); in bfa_fcs_uf_recv()
1545 if (fcs->port_vfid == vft->vf_id) in bfa_fcs_uf_recv()
1546 fabric = &fcs->fabric; in bfa_fcs_uf_recv()
1548 fabric = bfa_fcs_vf_lookup(fcs, (u16) vft->vf_id); in bfa_fcs_uf_recv()
1555 bfa_stats(fcs, uf.vfid_unknown); in bfa_fcs_uf_recv()
1566 bfa_trc(fcs, vft->vf_id); in bfa_fcs_uf_recv()
1568 bfa_stats(fcs, uf.untagged); in bfa_fcs_uf_recv()
1569 fabric = &fcs->fabric; in bfa_fcs_uf_recv()
1572 bfa_trc(fcs, ((u32 *) fchs)[0]); in bfa_fcs_uf_recv()
1573 bfa_trc(fcs, ((u32 *) fchs)[1]); in bfa_fcs_uf_recv()
1574 bfa_trc(fcs, ((u32 *) fchs)[2]); in bfa_fcs_uf_recv()
1575 bfa_trc(fcs, ((u32 *) fchs)[3]); in bfa_fcs_uf_recv()
1576 bfa_trc(fcs, ((u32 *) fchs)[4]); in bfa_fcs_uf_recv()
1577 bfa_trc(fcs, ((u32 *) fchs)[5]); in bfa_fcs_uf_recv()
1578 bfa_trc(fcs, len); in bfa_fcs_uf_recv()
1588 bfa_fcs_attach(struct bfa_fcs_s *fcs, struct bfa_s *bfa, struct bfad_s *bfad, in bfa_fcs_attach() argument
1591 struct bfa_fcs_fabric_s *fabric = &fcs->fabric; in bfa_fcs_attach()
1593 fcs->bfa = bfa; in bfa_fcs_attach()
1594 fcs->bfad = bfad; in bfa_fcs_attach()
1595 fcs->min_cfg = min_cfg; in bfa_fcs_attach()
1596 fcs->num_rport_logins = 0; in bfa_fcs_attach()
1598 bfa->fcs = BFA_TRUE; in bfa_fcs_attach()
1601 bfa_fcport_event_register(fcs->bfa, bfa_fcs_port_event_handler, fcs); in bfa_fcs_attach()
1602 bfa_uf_recv_register(fcs->bfa, bfa_fcs_uf_recv, fcs); in bfa_fcs_attach()
1609 fabric->fcs = fcs; in bfa_fcs_attach()
1612 fabric->lps = bfa_lps_alloc(fcs->bfa); in bfa_fcs_attach()
1623 bfa_fcs_lport_attach(&fabric->bport, fabric->fcs, FC_VF_ID_NULL, NULL); in bfa_fcs_attach()