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) \
277 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn); in bfa_fcs_fabric_sm_uninit()
278 bfa_trc(fabric->fcs, event); in bfa_fcs_fabric_sm_uninit()
292 bfa_sm_fault(fabric->fcs, event); in bfa_fcs_fabric_sm_uninit()
303 struct bfa_s *bfa = fabric->fcs->bfa; in bfa_fcs_fabric_sm_created()
305 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn); in bfa_fcs_fabric_sm_created()
306 bfa_trc(fabric->fcs, event); in bfa_fcs_fabric_sm_created()
310 if (!bfa_fcport_is_linkup(fabric->fcs->bfa)) { in bfa_fcs_fabric_sm_created()
339 bfa_sm_fault(fabric->fcs, event); in bfa_fcs_fabric_sm_created()
351 struct bfa_s *bfa = fabric->fcs->bfa; in bfa_fcs_fabric_sm_linkdown()
353 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn); in bfa_fcs_fabric_sm_linkdown()
354 bfa_trc(fabric->fcs, event); in bfa_fcs_fabric_sm_linkdown()
386 bfa_sm_fault(fabric->fcs, event); in bfa_fcs_fabric_sm_linkdown()
397 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn); in bfa_fcs_fabric_sm_flogi()
398 bfa_trc(fabric->fcs, event); in bfa_fcs_fabric_sm_flogi()
403 bfa_fcport_set_tx_bbcredit(fabric->fcs->bfa, in bfa_fcs_fabric_sm_flogi()
409 bfa_trc(fabric->fcs, event); in bfa_fcs_fabric_sm_flogi()
418 bfa_timer_start(fabric->fcs->bfa, &fabric->delay_timer, in bfa_fcs_fabric_sm_flogi()
431 bfa_fcport_set_tx_bbcredit(fabric->fcs->bfa, in bfa_fcs_fabric_sm_flogi()
449 bfa_sm_fault(fabric->fcs, event); in bfa_fcs_fabric_sm_flogi()
458 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn); in bfa_fcs_fabric_sm_flogi_retry()
459 bfa_trc(fabric->fcs, event); in bfa_fcs_fabric_sm_flogi_retry()
479 bfa_sm_fault(fabric->fcs, event); in bfa_fcs_fabric_sm_flogi_retry()
490 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn); in bfa_fcs_fabric_sm_auth()
491 bfa_trc(fabric->fcs, event); in bfa_fcs_fabric_sm_auth()
519 bfa_sm_fault(fabric->fcs, event); in bfa_fcs_fabric_sm_auth()
530 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn); in bfa_fcs_fabric_sm_auth_failed()
531 bfa_trc(fabric->fcs, event); in bfa_fcs_fabric_sm_auth_failed()
545 bfa_sm_fault(fabric->fcs, event); in bfa_fcs_fabric_sm_auth_failed()
556 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn); in bfa_fcs_fabric_sm_loopback()
557 bfa_trc(fabric->fcs, event); in bfa_fcs_fabric_sm_loopback()
571 bfa_sm_fault(fabric->fcs, event); in bfa_fcs_fabric_sm_loopback()
582 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn); in bfa_fcs_fabric_sm_nofabric()
583 bfa_trc(fabric->fcs, event); in bfa_fcs_fabric_sm_nofabric()
598 bfa_trc(fabric->fcs, fabric->bb_credit); in bfa_fcs_fabric_sm_nofabric()
599 bfa_fcport_set_tx_bbcredit(fabric->fcs->bfa, in bfa_fcs_fabric_sm_nofabric()
607 bfa_sm_fault(fabric->fcs, event); in bfa_fcs_fabric_sm_nofabric()
618 struct bfa_s *bfa = fabric->fcs->bfa; in bfa_fcs_fabric_sm_online()
620 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn); in bfa_fcs_fabric_sm_online()
621 bfa_trc(fabric->fcs, event); in bfa_fcs_fabric_sm_online()
653 bfa_sm_fault(fabric->fcs, event); in bfa_fcs_fabric_sm_online()
664 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn); in bfa_fcs_fabric_sm_evfp()
665 bfa_trc(fabric->fcs, event); in bfa_fcs_fabric_sm_evfp()
677 bfa_sm_fault(fabric->fcs, event); in bfa_fcs_fabric_sm_evfp()
688 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn); in bfa_fcs_fabric_sm_evfp_done()
689 bfa_trc(fabric->fcs, event); in bfa_fcs_fabric_sm_evfp_done()
699 struct bfad_s *bfad = (struct bfad_s *)fabric->fcs->bfad; in bfa_fcs_fabric_sm_isolated()
702 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn); in bfa_fcs_fabric_sm_isolated()
703 bfa_trc(fabric->fcs, event); in bfa_fcs_fabric_sm_isolated()
709 pwwn_ptr, fabric->fcs->port_vfid, in bfa_fcs_fabric_sm_isolated()
720 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn); in bfa_fcs_fabric_sm_deleting()
721 bfa_trc(fabric->fcs, event); in bfa_fcs_fabric_sm_deleting()
726 bfa_wc_down(&fabric->fcs->wc); in bfa_fcs_fabric_sm_deleting()
737 bfa_sm_fault(fabric->fcs, event); in bfa_fcs_fabric_sm_deleting()
748 struct bfa_s *bfa = fabric->fcs->bfa; in bfa_fcs_fabric_sm_stopping()
750 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn); in bfa_fcs_fabric_sm_stopping()
751 bfa_trc(fabric->fcs, event); in bfa_fcs_fabric_sm_stopping()
774 bfa_sm_fault(fabric->fcs, event); in bfa_fcs_fabric_sm_stopping()
785 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn); in bfa_fcs_fabric_sm_cleanup()
786 bfa_trc(fabric->fcs, event); in bfa_fcs_fabric_sm_cleanup()
792 bfa_wc_down(&(fabric->fcs)->wc); in bfa_fcs_fabric_sm_cleanup()
803 bfa_sm_fault(fabric->fcs, event); in bfa_fcs_fabric_sm_cleanup()
817 port_cfg->nwwn = fabric->fcs->bfa->ioc.attr->nwwn; in bfa_fcs_fabric_init()
818 port_cfg->pwwn = fabric->fcs->bfa->ioc.attr->pwwn; in bfa_fcs_fabric_init()
829 struct bfa_fcs_driver_info_s *driver_info = &fabric->fcs->driver_info; in bfa_fcs_fabric_psymb_init()
831 bfa_ioc_get_adapter_model(&fabric->fcs->bfa->ioc, model); in bfa_fcs_fabric_psymb_init()
890 struct bfa_fcs_driver_info_s *driver_info = &fabric->fcs->driver_info; in bfa_fcs_fabric_nsymb_init()
892 bfa_ioc_get_adapter_model(&fabric->fcs->bfa->ioc, model); in bfa_fcs_fabric_nsymb_init()
928 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn); in bfa_cb_lps_flogi_comp()
929 bfa_trc(fabric->fcs, status); in bfa_cb_lps_flogi_comp()
972 bfa_trc(fabric->fcs, fabric->bb_credit); in bfa_cb_lps_flogi_comp()
995 bfa_trc(fabric->fcs, fabric->bport.pid); in bfa_cb_lps_flogi_comp()
996 bfa_trc(fabric->fcs, fabric->is_npiv); in bfa_cb_lps_flogi_comp()
997 bfa_trc(fabric->fcs, fabric->is_auth); in bfa_cb_lps_flogi_comp()
1005 struct bfa_s *bfa = fabric->fcs->bfa; in bfa_fcs_fabric_login()
1022 bfa_trc(fabric->fcs, fabric->fabric_name); in bfa_fcs_fabric_notify_online()
1044 bfa_trc(fabric->fcs, fabric->fabric_name); in bfa_fcs_fabric_notify_offline()
1133 bfa_fcs_fabric_attach(struct bfa_fcs_s *fcs) in bfa_fcs_fabric_attach() argument
1137 fabric = &fcs->fabric; in bfa_fcs_fabric_attach()
1143 fabric->fcs = fcs; in bfa_fcs_fabric_attach()
1146 fabric->lps = bfa_lps_alloc(fcs->bfa); in bfa_fcs_fabric_attach()
1157 bfa_fcs_lport_attach(&fabric->bport, fabric->fcs, FC_VF_ID_NULL, NULL); in bfa_fcs_fabric_attach()
1161 bfa_fcs_fabric_modinit(struct bfa_fcs_s *fcs) in bfa_fcs_fabric_modinit() argument
1163 bfa_sm_send_event(&fcs->fabric, BFA_FCS_FABRIC_SM_CREATE); in bfa_fcs_fabric_modinit()
1164 bfa_trc(fcs, 0); in bfa_fcs_fabric_modinit()
1171 bfa_fcs_fabric_modexit(struct bfa_fcs_s *fcs) in bfa_fcs_fabric_modexit() argument
1175 bfa_trc(fcs, 0); in bfa_fcs_fabric_modexit()
1180 fabric = &fcs->fabric; in bfa_fcs_fabric_modexit()
1189 bfa_fcs_fabric_modstop(struct bfa_fcs_s *fcs) in bfa_fcs_fabric_modstop() argument
1193 bfa_trc(fcs, 0); in bfa_fcs_fabric_modstop()
1194 fabric = &fcs->fabric; in bfa_fcs_fabric_modstop()
1202 bfa_fcs_fabric_modstart(struct bfa_fcs_s *fcs) in bfa_fcs_fabric_modstart() argument
1206 bfa_trc(fcs, 0); in bfa_fcs_fabric_modstart()
1207 fabric = &fcs->fabric; in bfa_fcs_fabric_modstart()
1218 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn); in bfa_fcs_fabric_link_up()
1228 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn); in bfa_fcs_fabric_link_down()
1250 bfa_trc(fabric->fcs, fabric->vf_id); in bfa_fcs_fabric_addvport()
1329 bfa_trc(fabric->fcs, len); in bfa_fcs_fabric_uf_recv()
1330 bfa_trc(fabric->fcs, pid); in bfa_fcs_fabric_uf_recv()
1348 bfa_trc(fabric->fcs, pid); in bfa_fcs_fabric_uf_recv()
1357 bfa_trc(fabric->fcs, els_cmd->els_code); in bfa_fcs_fabric_uf_recv()
1359 bfa_trc(fabric->fcs, els_cmd->els_code); in bfa_fcs_fabric_uf_recv()
1363 bfa_trc(fabric->fcs, *(u8 *) ((u8 *) fchs)); in bfa_fcs_fabric_uf_recv()
1382 bfa_trc(fabric->fcs, fchs->type); in bfa_fcs_fabric_uf_recv()
1394 bfa_trc(fabric->fcs, els_cmd->els_code); in bfa_fcs_fabric_process_uf()
1419 bfa_trc(fabric->fcs, fchs->s_id); in bfa_fcs_fabric_process_flogi()
1429 bfa_trc(fabric->fcs, flogi->port_name); in bfa_fcs_fabric_process_flogi()
1450 struct bfa_s *bfa = fabric->fcs->bfa; in bfa_fcs_fabric_send_flogi_acc()
1455 fcxp = bfa_fcs_fcxp_alloc(fabric->fcs, BFA_FALSE); in bfa_fcs_fabric_send_flogi_acc()
1485 bfa_trc(fabric->fcs, status); in bfa_fcs_fabric_flogiacc_comp()
1496 struct bfad_s *bfad = (struct bfad_s *)port->fabric->fcs->bfad; in bfa_fcs_fabric_aen_post()
1507 bfad_im_post_vendor_event(aen_entry, bfad, ++port->fcs->fcs_aen_seq, in bfa_fcs_fabric_aen_post()
1522 struct bfad_s *bfad = (struct bfad_s *)fabric->fcs->bfad; in bfa_fcs_fabric_set_fabric_name()
1526 bfa_trc(fabric->fcs, fabric_name); in bfa_fcs_fabric_set_fabric_name()
1563 bfa_fcs_vf_lookup(struct bfa_fcs_s *fcs, u16 vf_id) in bfa_fcs_vf_lookup() argument
1565 bfa_trc(fcs, vf_id); in bfa_fcs_vf_lookup()
1567 return &fcs->fabric; in bfa_fcs_vf_lookup()
1587 struct bfa_fcs_s *fcs; in bfa_fcs_vf_get_ports() local
1592 fcs = vf->fcs; in bfa_fcs_vf_get_ports()
1594 bfa_trc(fcs, vf->vf_id); in bfa_fcs_vf_get_ports()
1595 bfa_trc(fcs, (uint32_t) *nlports); in bfa_fcs_vf_get_ports()
1607 bfa_trc(fcs, i); in bfa_fcs_vf_get_ports()
1617 struct bfa_fcs_s *fcs = cbarg; in bfa_fcs_port_event_handler() local
1619 bfa_trc(fcs, event); in bfa_fcs_port_event_handler()
1623 bfa_fcs_fabric_link_up(&fcs->fabric); in bfa_fcs_port_event_handler()
1627 bfa_fcs_fabric_link_down(&fcs->fabric); in bfa_fcs_port_event_handler()
1636 bfa_fcs_port_attach(struct bfa_fcs_s *fcs) in bfa_fcs_port_attach() argument
1638 bfa_fcport_event_register(fcs->bfa, bfa_fcs_port_event_handler, fcs); in bfa_fcs_port_attach()
1656 struct bfa_fcs_s *fcs = (struct bfa_fcs_s *) cbarg; in bfa_fcs_uf_recv() local
1667 bfa_stats(fcs, uf.tagged); in bfa_fcs_uf_recv()
1669 if (fcs->port_vfid == vft->vf_id) in bfa_fcs_uf_recv()
1670 fabric = &fcs->fabric; in bfa_fcs_uf_recv()
1672 fabric = bfa_fcs_vf_lookup(fcs, (u16) vft->vf_id); in bfa_fcs_uf_recv()
1679 bfa_stats(fcs, uf.vfid_unknown); in bfa_fcs_uf_recv()
1690 bfa_trc(fcs, vft->vf_id); in bfa_fcs_uf_recv()
1692 bfa_stats(fcs, uf.untagged); in bfa_fcs_uf_recv()
1693 fabric = &fcs->fabric; in bfa_fcs_uf_recv()
1696 bfa_trc(fcs, ((u32 *) fchs)[0]); in bfa_fcs_uf_recv()
1697 bfa_trc(fcs, ((u32 *) fchs)[1]); in bfa_fcs_uf_recv()
1698 bfa_trc(fcs, ((u32 *) fchs)[2]); in bfa_fcs_uf_recv()
1699 bfa_trc(fcs, ((u32 *) fchs)[3]); in bfa_fcs_uf_recv()
1700 bfa_trc(fcs, ((u32 *) fchs)[4]); in bfa_fcs_uf_recv()
1701 bfa_trc(fcs, ((u32 *) fchs)[5]); in bfa_fcs_uf_recv()
1702 bfa_trc(fcs, len); in bfa_fcs_uf_recv()
1709 bfa_fcs_uf_attach(struct bfa_fcs_s *fcs) in bfa_fcs_uf_attach() argument
1711 bfa_uf_recv_register(fcs->bfa, bfa_fcs_uf_recv, fcs); in bfa_fcs_uf_attach()