• Home
  • Raw
  • Download

Lines Matching refs:fcs

33 	void		(*attach) (struct bfa_fcs_s *fcs);
34 void (*modinit) (struct bfa_fcs_s *fcs);
35 void (*modexit) (struct bfa_fcs_s *fcs);
54 struct bfa_fcs_s *fcs = fcs_cbarg; in bfa_fcs_exit_comp() local
55 struct bfad_s *bfad = fcs->bfad; in bfa_fcs_exit_comp()
70 bfa_fcs_attach(struct bfa_fcs_s *fcs, struct bfa_s *bfa, struct bfad_s *bfad, in bfa_fcs_attach() argument
76 fcs->bfa = bfa; in bfa_fcs_attach()
77 fcs->bfad = bfad; in bfa_fcs_attach()
78 fcs->min_cfg = min_cfg; in bfa_fcs_attach()
79 fcs->num_rport_logins = 0; in bfa_fcs_attach()
81 bfa->fcs = BFA_TRUE; in bfa_fcs_attach()
87 mod->attach(fcs); in bfa_fcs_attach()
95 bfa_fcs_init(struct bfa_fcs_s *fcs) in bfa_fcs_init() argument
103 mod->modinit(fcs); in bfa_fcs_init()
112 bfa_fcs_update_cfg(struct bfa_fcs_s *fcs) in bfa_fcs_update_cfg() argument
114 struct bfa_fcs_fabric_s *fabric = &fcs->fabric; in bfa_fcs_update_cfg()
116 struct bfa_ioc_s *ioc = &fabric->fcs->bfa->ioc; in bfa_fcs_update_cfg()
126 bfa_fcs_stop(struct bfa_fcs_s *fcs) in bfa_fcs_stop() argument
128 bfa_wc_init(&fcs->wc, bfa_fcs_exit_comp, fcs); in bfa_fcs_stop()
129 bfa_wc_up(&fcs->wc); in bfa_fcs_stop()
130 bfa_fcs_fabric_modstop(fcs); in bfa_fcs_stop()
131 bfa_wc_wait(&fcs->wc); in bfa_fcs_stop()
138 bfa_fcs_pbc_vport_init(struct bfa_fcs_s *fcs) in bfa_fcs_pbc_vport_init() argument
144 if (!fcs->min_cfg) { in bfa_fcs_pbc_vport_init()
146 bfa_iocfc_get_pbc_vports(fcs->bfa, pbc_vports); in bfa_fcs_pbc_vport_init()
148 bfa_fcb_pbc_vport_create(fcs->bfa->bfad, pbc_vports[i]); in bfa_fcs_pbc_vport_init()
162 bfa_fcs_driver_info_init(struct bfa_fcs_s *fcs, in bfa_fcs_driver_info_init() argument
166 fcs->driver_info = *driver_info; in bfa_fcs_driver_info_init()
168 bfa_fcs_fabric_psymb_init(&fcs->fabric); in bfa_fcs_driver_info_init()
169 bfa_fcs_fabric_nsymb_init(&fcs->fabric); in bfa_fcs_driver_info_init()
180 bfa_fcs_exit(struct bfa_fcs_s *fcs) in bfa_fcs_exit() argument
185 bfa_wc_init(&fcs->wc, bfa_fcs_exit_comp, fcs); in bfa_fcs_exit()
193 bfa_wc_up(&fcs->wc); in bfa_fcs_exit()
194 mod->modexit(fcs); in bfa_fcs_exit()
198 bfa_wc_wait(&fcs->wc); in bfa_fcs_exit()
210 if (bfa_fcport_get_topology((__fabric)->fcs->bfa) \
280 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn); in bfa_fcs_fabric_sm_uninit()
281 bfa_trc(fabric->fcs, event); in bfa_fcs_fabric_sm_uninit()
295 bfa_sm_fault(fabric->fcs, event); in bfa_fcs_fabric_sm_uninit()
306 struct bfa_s *bfa = fabric->fcs->bfa; in bfa_fcs_fabric_sm_created()
308 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn); in bfa_fcs_fabric_sm_created()
309 bfa_trc(fabric->fcs, event); in bfa_fcs_fabric_sm_created()
313 if (!bfa_fcport_is_linkup(fabric->fcs->bfa)) { in bfa_fcs_fabric_sm_created()
342 bfa_sm_fault(fabric->fcs, event); in bfa_fcs_fabric_sm_created()
354 struct bfa_s *bfa = fabric->fcs->bfa; in bfa_fcs_fabric_sm_linkdown()
356 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn); in bfa_fcs_fabric_sm_linkdown()
357 bfa_trc(fabric->fcs, event); in bfa_fcs_fabric_sm_linkdown()
389 bfa_sm_fault(fabric->fcs, event); in bfa_fcs_fabric_sm_linkdown()
400 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn); in bfa_fcs_fabric_sm_flogi()
401 bfa_trc(fabric->fcs, event); in bfa_fcs_fabric_sm_flogi()
406 bfa_fcport_set_tx_bbcredit(fabric->fcs->bfa, in bfa_fcs_fabric_sm_flogi()
413 bfa_trc(fabric->fcs, event); in bfa_fcs_fabric_sm_flogi()
422 bfa_timer_start(fabric->fcs->bfa, &fabric->delay_timer, in bfa_fcs_fabric_sm_flogi()
435 bfa_fcport_set_tx_bbcredit(fabric->fcs->bfa, in bfa_fcs_fabric_sm_flogi()
454 bfa_sm_fault(fabric->fcs, event); in bfa_fcs_fabric_sm_flogi()
463 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn); in bfa_fcs_fabric_sm_flogi_retry()
464 bfa_trc(fabric->fcs, event); in bfa_fcs_fabric_sm_flogi_retry()
484 bfa_sm_fault(fabric->fcs, event); in bfa_fcs_fabric_sm_flogi_retry()
495 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn); in bfa_fcs_fabric_sm_auth()
496 bfa_trc(fabric->fcs, event); in bfa_fcs_fabric_sm_auth()
524 bfa_sm_fault(fabric->fcs, event); in bfa_fcs_fabric_sm_auth()
535 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn); in bfa_fcs_fabric_sm_auth_failed()
536 bfa_trc(fabric->fcs, event); in bfa_fcs_fabric_sm_auth_failed()
550 bfa_sm_fault(fabric->fcs, event); in bfa_fcs_fabric_sm_auth_failed()
561 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn); in bfa_fcs_fabric_sm_loopback()
562 bfa_trc(fabric->fcs, event); in bfa_fcs_fabric_sm_loopback()
576 bfa_sm_fault(fabric->fcs, event); in bfa_fcs_fabric_sm_loopback()
587 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn); in bfa_fcs_fabric_sm_nofabric()
588 bfa_trc(fabric->fcs, event); in bfa_fcs_fabric_sm_nofabric()
603 bfa_trc(fabric->fcs, fabric->bb_credit); in bfa_fcs_fabric_sm_nofabric()
604 bfa_fcport_set_tx_bbcredit(fabric->fcs->bfa, in bfa_fcs_fabric_sm_nofabric()
613 bfa_sm_fault(fabric->fcs, event); in bfa_fcs_fabric_sm_nofabric()
624 struct bfa_s *bfa = fabric->fcs->bfa; in bfa_fcs_fabric_sm_online()
626 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn); in bfa_fcs_fabric_sm_online()
627 bfa_trc(fabric->fcs, event); in bfa_fcs_fabric_sm_online()
659 bfa_sm_fault(fabric->fcs, event); in bfa_fcs_fabric_sm_online()
670 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn); in bfa_fcs_fabric_sm_evfp()
671 bfa_trc(fabric->fcs, event); in bfa_fcs_fabric_sm_evfp()
683 bfa_sm_fault(fabric->fcs, event); in bfa_fcs_fabric_sm_evfp()
694 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn); in bfa_fcs_fabric_sm_evfp_done()
695 bfa_trc(fabric->fcs, event); in bfa_fcs_fabric_sm_evfp_done()
705 struct bfad_s *bfad = (struct bfad_s *)fabric->fcs->bfad; in bfa_fcs_fabric_sm_isolated()
708 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn); in bfa_fcs_fabric_sm_isolated()
709 bfa_trc(fabric->fcs, event); in bfa_fcs_fabric_sm_isolated()
715 pwwn_ptr, fabric->fcs->port_vfid, in bfa_fcs_fabric_sm_isolated()
726 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn); in bfa_fcs_fabric_sm_deleting()
727 bfa_trc(fabric->fcs, event); in bfa_fcs_fabric_sm_deleting()
732 bfa_wc_down(&fabric->fcs->wc); in bfa_fcs_fabric_sm_deleting()
743 bfa_sm_fault(fabric->fcs, event); in bfa_fcs_fabric_sm_deleting()
754 struct bfa_s *bfa = fabric->fcs->bfa; in bfa_fcs_fabric_sm_stopping()
756 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn); in bfa_fcs_fabric_sm_stopping()
757 bfa_trc(fabric->fcs, event); in bfa_fcs_fabric_sm_stopping()
780 bfa_sm_fault(fabric->fcs, event); in bfa_fcs_fabric_sm_stopping()
791 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn); in bfa_fcs_fabric_sm_cleanup()
792 bfa_trc(fabric->fcs, event); in bfa_fcs_fabric_sm_cleanup()
798 bfa_wc_down(&(fabric->fcs)->wc); in bfa_fcs_fabric_sm_cleanup()
809 bfa_sm_fault(fabric->fcs, event); in bfa_fcs_fabric_sm_cleanup()
823 port_cfg->nwwn = fabric->fcs->bfa->ioc.attr->nwwn; in bfa_fcs_fabric_init()
824 port_cfg->pwwn = fabric->fcs->bfa->ioc.attr->pwwn; in bfa_fcs_fabric_init()
835 struct bfa_fcs_driver_info_s *driver_info = &fabric->fcs->driver_info; in bfa_fcs_fabric_psymb_init()
837 bfa_ioc_get_adapter_model(&fabric->fcs->bfa->ioc, model); in bfa_fcs_fabric_psymb_init()
896 struct bfa_fcs_driver_info_s *driver_info = &fabric->fcs->driver_info; in bfa_fcs_fabric_nsymb_init()
898 bfa_ioc_get_adapter_model(&fabric->fcs->bfa->ioc, model); in bfa_fcs_fabric_nsymb_init()
934 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn); in bfa_cb_lps_flogi_comp()
935 bfa_trc(fabric->fcs, status); in bfa_cb_lps_flogi_comp()
970 fabric->fcs->bbscn_flogi_rjt = BFA_TRUE; in bfa_cb_lps_flogi_comp()
982 bfa_trc(fabric->fcs, fabric->bb_credit); in bfa_cb_lps_flogi_comp()
1005 bfa_trc(fabric->fcs, fabric->bport.pid); in bfa_cb_lps_flogi_comp()
1006 bfa_trc(fabric->fcs, fabric->is_npiv); in bfa_cb_lps_flogi_comp()
1007 bfa_trc(fabric->fcs, fabric->is_auth); in bfa_cb_lps_flogi_comp()
1015 struct bfa_s *bfa = fabric->fcs->bfa; in bfa_fcs_fabric_login()
1020 (!fabric->fcs->bbscn_flogi_rjt)) in bfa_fcs_fabric_login()
1035 bfa_trc(fabric->fcs, fabric->fabric_name); in bfa_fcs_fabric_notify_online()
1057 bfa_trc(fabric->fcs, fabric->fabric_name); in bfa_fcs_fabric_notify_offline()
1111 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(fabric->fcs->bfa); in bfa_fcs_fabric_oper_bbscn()
1127 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(fabric->fcs->bfa); in bfa_fcs_fabric_is_bbscn_enabled()
1129 if (bfa_ioc_get_fcmode(&fabric->fcs->bfa->ioc) && in bfa_fcs_fabric_is_bbscn_enabled()
1131 !bfa_fcport_is_qos_enabled(fabric->fcs->bfa) && in bfa_fcs_fabric_is_bbscn_enabled()
1132 !bfa_fcport_is_trunk_enabled(fabric->fcs->bfa)) in bfa_fcs_fabric_is_bbscn_enabled()
1180 bfa_fcs_fabric_attach(struct bfa_fcs_s *fcs) in bfa_fcs_fabric_attach() argument
1184 fabric = &fcs->fabric; in bfa_fcs_fabric_attach()
1190 fabric->fcs = fcs; in bfa_fcs_fabric_attach()
1193 fabric->lps = bfa_lps_alloc(fcs->bfa); in bfa_fcs_fabric_attach()
1204 bfa_fcs_lport_attach(&fabric->bport, fabric->fcs, FC_VF_ID_NULL, NULL); in bfa_fcs_fabric_attach()
1208 bfa_fcs_fabric_modinit(struct bfa_fcs_s *fcs) in bfa_fcs_fabric_modinit() argument
1210 bfa_sm_send_event(&fcs->fabric, BFA_FCS_FABRIC_SM_CREATE); in bfa_fcs_fabric_modinit()
1211 bfa_trc(fcs, 0); in bfa_fcs_fabric_modinit()
1218 bfa_fcs_fabric_modexit(struct bfa_fcs_s *fcs) in bfa_fcs_fabric_modexit() argument
1222 bfa_trc(fcs, 0); in bfa_fcs_fabric_modexit()
1227 fabric = &fcs->fabric; in bfa_fcs_fabric_modexit()
1236 bfa_fcs_fabric_modstop(struct bfa_fcs_s *fcs) in bfa_fcs_fabric_modstop() argument
1240 bfa_trc(fcs, 0); in bfa_fcs_fabric_modstop()
1241 fabric = &fcs->fabric; in bfa_fcs_fabric_modstop()
1249 bfa_fcs_fabric_modstart(struct bfa_fcs_s *fcs) in bfa_fcs_fabric_modstart() argument
1253 bfa_trc(fcs, 0); in bfa_fcs_fabric_modstart()
1254 fabric = &fcs->fabric; in bfa_fcs_fabric_modstart()
1265 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn); in bfa_fcs_fabric_link_up()
1275 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn); in bfa_fcs_fabric_link_down()
1276 fabric->fcs->bbscn_flogi_rjt = BFA_FALSE; in bfa_fcs_fabric_link_down()
1298 bfa_trc(fabric->fcs, fabric->vf_id); in bfa_fcs_fabric_addvport()
1377 bfa_trc(fabric->fcs, len); in bfa_fcs_fabric_uf_recv()
1378 bfa_trc(fabric->fcs, pid); in bfa_fcs_fabric_uf_recv()
1396 bfa_trc(fabric->fcs, pid); in bfa_fcs_fabric_uf_recv()
1405 bfa_trc(fabric->fcs, els_cmd->els_code); in bfa_fcs_fabric_uf_recv()
1407 bfa_trc(fabric->fcs, els_cmd->els_code); in bfa_fcs_fabric_uf_recv()
1411 bfa_trc(fabric->fcs, *(u8 *) ((u8 *) fchs)); in bfa_fcs_fabric_uf_recv()
1430 bfa_trc(fabric->fcs, fchs->type); in bfa_fcs_fabric_uf_recv()
1442 bfa_trc(fabric->fcs, els_cmd->els_code); in bfa_fcs_fabric_process_uf()
1467 bfa_trc(fabric->fcs, fchs->s_id); in bfa_fcs_fabric_process_flogi()
1477 bfa_trc(fabric->fcs, flogi->port_name); in bfa_fcs_fabric_process_flogi()
1499 struct bfa_s *bfa = fabric->fcs->bfa; in bfa_fcs_fabric_send_flogi_acc()
1504 fcxp = bfa_fcs_fcxp_alloc(fabric->fcs, BFA_FALSE); in bfa_fcs_fabric_send_flogi_acc()
1535 bfa_trc(fabric->fcs, status); in bfa_fcs_fabric_flogiacc_comp()
1546 struct bfad_s *bfad = (struct bfad_s *)port->fabric->fcs->bfad; in bfa_fcs_fabric_aen_post()
1557 bfad_im_post_vendor_event(aen_entry, bfad, ++port->fcs->fcs_aen_seq, in bfa_fcs_fabric_aen_post()
1572 struct bfad_s *bfad = (struct bfad_s *)fabric->fcs->bfad; in bfa_fcs_fabric_set_fabric_name()
1576 bfa_trc(fabric->fcs, fabric_name); in bfa_fcs_fabric_set_fabric_name()
1613 bfa_fcs_vf_lookup(struct bfa_fcs_s *fcs, u16 vf_id) in bfa_fcs_vf_lookup() argument
1615 bfa_trc(fcs, vf_id); in bfa_fcs_vf_lookup()
1617 return &fcs->fabric; in bfa_fcs_vf_lookup()
1637 struct bfa_fcs_s *fcs; in bfa_fcs_vf_get_ports() local
1642 fcs = vf->fcs; in bfa_fcs_vf_get_ports()
1644 bfa_trc(fcs, vf->vf_id); in bfa_fcs_vf_get_ports()
1645 bfa_trc(fcs, (uint32_t) *nlports); in bfa_fcs_vf_get_ports()
1657 bfa_trc(fcs, i); in bfa_fcs_vf_get_ports()
1667 struct bfa_fcs_s *fcs = cbarg; in bfa_fcs_port_event_handler() local
1669 bfa_trc(fcs, event); in bfa_fcs_port_event_handler()
1673 bfa_fcs_fabric_link_up(&fcs->fabric); in bfa_fcs_port_event_handler()
1677 bfa_fcs_fabric_link_down(&fcs->fabric); in bfa_fcs_port_event_handler()
1686 bfa_fcs_port_attach(struct bfa_fcs_s *fcs) in bfa_fcs_port_attach() argument
1688 bfa_fcport_event_register(fcs->bfa, bfa_fcs_port_event_handler, fcs); in bfa_fcs_port_attach()
1706 struct bfa_fcs_s *fcs = (struct bfa_fcs_s *) cbarg; in bfa_fcs_uf_recv() local
1717 bfa_stats(fcs, uf.tagged); in bfa_fcs_uf_recv()
1719 if (fcs->port_vfid == vft->vf_id) in bfa_fcs_uf_recv()
1720 fabric = &fcs->fabric; in bfa_fcs_uf_recv()
1722 fabric = bfa_fcs_vf_lookup(fcs, (u16) vft->vf_id); in bfa_fcs_uf_recv()
1729 bfa_stats(fcs, uf.vfid_unknown); in bfa_fcs_uf_recv()
1740 bfa_trc(fcs, vft->vf_id); in bfa_fcs_uf_recv()
1742 bfa_stats(fcs, uf.untagged); in bfa_fcs_uf_recv()
1743 fabric = &fcs->fabric; in bfa_fcs_uf_recv()
1746 bfa_trc(fcs, ((u32 *) fchs)[0]); in bfa_fcs_uf_recv()
1747 bfa_trc(fcs, ((u32 *) fchs)[1]); in bfa_fcs_uf_recv()
1748 bfa_trc(fcs, ((u32 *) fchs)[2]); in bfa_fcs_uf_recv()
1749 bfa_trc(fcs, ((u32 *) fchs)[3]); in bfa_fcs_uf_recv()
1750 bfa_trc(fcs, ((u32 *) fchs)[4]); in bfa_fcs_uf_recv()
1751 bfa_trc(fcs, ((u32 *) fchs)[5]); in bfa_fcs_uf_recv()
1752 bfa_trc(fcs, len); in bfa_fcs_uf_recv()
1759 bfa_fcs_uf_attach(struct bfa_fcs_s *fcs) in bfa_fcs_uf_attach() argument
1761 bfa_uf_recv_register(fcs->bfa, bfa_fcs_uf_recv, fcs); in bfa_fcs_uf_attach()