Lines Matching defs:fcs

29 	struct bfa_fcs_s      *fcs = fcs_cbarg;
30 struct bfad_s *bfad = fcs->bfad;
36 * fcs initialization, called once after bfa initialization is complete
39 bfa_fcs_init(struct bfa_fcs_s *fcs)
41 bfa_sm_send_event(&fcs->fabric, BFA_FCS_FABRIC_SM_CREATE);
42 bfa_trc(fcs, 0);
54 bfa_fcs_update_cfg(struct bfa_fcs_s *fcs)
56 struct bfa_fcs_fabric_s *fabric = &fcs->fabric;
58 struct bfa_ioc_s *ioc = &fabric->fcs->bfa->ioc;
68 bfa_fcs_stop(struct bfa_fcs_s *fcs)
70 bfa_wc_init(&fcs->wc, bfa_fcs_exit_comp, fcs);
71 bfa_wc_up(&fcs->wc);
72 bfa_fcs_fabric_modstop(fcs);
73 bfa_wc_wait(&fcs->wc);
77 * fcs pbc vport initialization
80 bfa_fcs_pbc_vport_init(struct bfa_fcs_s *fcs)
86 if (!fcs->min_cfg) {
88 bfa_iocfc_get_pbc_vports(fcs->bfa, pbc_vports);
90 bfa_fcb_pbc_vport_create(fcs->bfa->bfad, pbc_vports[i]);
98 * param[in] fcs FCS instance
104 bfa_fcs_driver_info_init(struct bfa_fcs_s *fcs,
108 fcs->driver_info = *driver_info;
110 bfa_fcs_fabric_psymb_init(&fcs->fabric);
111 bfa_fcs_fabric_nsymb_init(&fcs->fabric);
118 * param[in] fcs FCS instance
122 bfa_fcs_exit(struct bfa_fcs_s *fcs)
124 bfa_wc_init(&fcs->wc, bfa_fcs_exit_comp, fcs);
125 bfa_wc_up(&fcs->wc);
126 bfa_trc(fcs, 0);
127 bfa_lps_delete(fcs->fabric.lps);
128 bfa_sm_send_event(&fcs->fabric, BFA_FCS_FABRIC_SM_DELETE);
129 bfa_wc_wait(&fcs->wc);
140 if (bfa_fcport_get_topology((__fabric)->fcs->bfa) \
207 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn);
208 bfa_trc(fabric->fcs, event);
222 bfa_sm_fault(fabric->fcs, event);
233 struct bfa_s *bfa = fabric->fcs->bfa;
235 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn);
236 bfa_trc(fabric->fcs, event);
240 if (!bfa_fcport_is_linkup(fabric->fcs->bfa)) {
269 bfa_sm_fault(fabric->fcs, event);
281 struct bfa_s *bfa = fabric->fcs->bfa;
283 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn);
284 bfa_trc(fabric->fcs, event);
316 bfa_sm_fault(fabric->fcs, event);
327 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn);
328 bfa_trc(fabric->fcs, event);
333 bfa_fcport_set_tx_bbcredit(fabric->fcs->bfa,
339 bfa_trc(fabric->fcs, event);
348 bfa_timer_start(fabric->fcs->bfa, &fabric->delay_timer,
361 bfa_fcport_set_tx_bbcredit(fabric->fcs->bfa,
379 bfa_sm_fault(fabric->fcs, event);
388 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn);
389 bfa_trc(fabric->fcs, event);
409 bfa_sm_fault(fabric->fcs, event);
420 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn);
421 bfa_trc(fabric->fcs, event);
449 bfa_sm_fault(fabric->fcs, event);
460 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn);
461 bfa_trc(fabric->fcs, event);
475 bfa_sm_fault(fabric->fcs, event);
486 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn);
487 bfa_trc(fabric->fcs, event);
501 bfa_sm_fault(fabric->fcs, event);
512 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn);
513 bfa_trc(fabric->fcs, event);
528 bfa_trc(fabric->fcs, fabric->bb_credit);
529 bfa_fcport_set_tx_bbcredit(fabric->fcs->bfa,
537 bfa_sm_fault(fabric->fcs, event);
548 struct bfa_s *bfa = fabric->fcs->bfa;
550 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn);
551 bfa_trc(fabric->fcs, event);
583 bfa_sm_fault(fabric->fcs, event);
594 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn);
595 bfa_trc(fabric->fcs, event);
607 bfa_sm_fault(fabric->fcs, event);
618 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn);
619 bfa_trc(fabric->fcs, event);
629 struct bfad_s *bfad = (struct bfad_s *)fabric->fcs->bfad;
632 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn);
633 bfa_trc(fabric->fcs, event);
639 pwwn_ptr, fabric->fcs->port_vfid,
650 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn);
651 bfa_trc(fabric->fcs, event);
656 bfa_wc_down(&fabric->fcs->wc);
667 bfa_sm_fault(fabric->fcs, event);
678 struct bfa_s *bfa = fabric->fcs->bfa;
680 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn);
681 bfa_trc(fabric->fcs, event);
704 bfa_sm_fault(fabric->fcs, event);
715 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn);
716 bfa_trc(fabric->fcs, event);
722 bfa_wc_down(&(fabric->fcs)->wc);
733 bfa_sm_fault(fabric->fcs, event);
747 port_cfg->nwwn = fabric->fcs->bfa->ioc.attr->nwwn;
748 port_cfg->pwwn = fabric->fcs->bfa->ioc.attr->pwwn;
759 struct bfa_fcs_driver_info_s *driver_info = &fabric->fcs->driver_info;
761 bfa_ioc_get_adapter_model(&fabric->fcs->bfa->ioc, model);
820 struct bfa_fcs_driver_info_s *driver_info = &fabric->fcs->driver_info;
822 bfa_ioc_get_adapter_model(&fabric->fcs->bfa->ioc, model);
858 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn);
859 bfa_trc(fabric->fcs, status);
902 bfa_trc(fabric->fcs, fabric->bb_credit);
925 bfa_trc(fabric->fcs, fabric->bport.pid);
926 bfa_trc(fabric->fcs, fabric->is_npiv);
927 bfa_trc(fabric->fcs, fabric->is_auth);
935 struct bfa_s *bfa = fabric->fcs->bfa;
952 bfa_trc(fabric->fcs, fabric->fabric_name);
974 bfa_trc(fabric->fcs, fabric->fabric_name);
1063 bfa_fcs_fabric_modstop(struct bfa_fcs_s *fcs)
1067 bfa_trc(fcs, 0);
1068 fabric = &fcs->fabric;
1076 bfa_fcs_fabric_modstart(struct bfa_fcs_s *fcs)
1080 bfa_trc(fcs, 0);
1081 fabric = &fcs->fabric;
1092 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn);
1102 bfa_trc(fabric->fcs, fabric->bport.port_cfg.pwwn);
1124 bfa_trc(fabric->fcs, fabric->vf_id);
1203 bfa_trc(fabric->fcs, len);
1204 bfa_trc(fabric->fcs, pid);
1222 bfa_trc(fabric->fcs, pid);
1231 bfa_trc(fabric->fcs, els_cmd->els_code);
1233 bfa_trc(fabric->fcs, els_cmd->els_code);
1237 bfa_trc(fabric->fcs, *(u8 *) ((u8 *) fchs));
1256 bfa_trc(fabric->fcs, fchs->type);
1268 bfa_trc(fabric->fcs, els_cmd->els_code);
1293 bfa_trc(fabric->fcs, fchs->s_id);
1303 bfa_trc(fabric->fcs, flogi->port_name);
1324 struct bfa_s *bfa = fabric->fcs->bfa;
1329 fcxp = bfa_fcs_fcxp_alloc(fabric->fcs, BFA_FALSE);
1359 bfa_trc(fabric->fcs, status);
1370 struct bfad_s *bfad = (struct bfad_s *)port->fabric->fcs->bfad;
1381 bfad_im_post_vendor_event(aen_entry, bfad, ++port->fcs->fcs_aen_seq,
1396 struct bfad_s *bfad = (struct bfad_s *)fabric->fcs->bfad;
1400 bfa_trc(fabric->fcs, fabric_name);
1434 * If lookup succeeds, retuns fcs vf object, otherwise returns NULL
1437 bfa_fcs_vf_lookup(struct bfa_fcs_s *fcs, u16 vf_id)
1439 bfa_trc(fcs, vf_id);
1441 return &fcs->fabric;
1461 struct bfa_fcs_s *fcs;
1466 fcs = vf->fcs;
1468 bfa_trc(fcs, vf->vf_id);
1469 bfa_trc(fcs, (uint32_t) *nlports);
1481 bfa_trc(fcs, i);
1491 struct bfa_fcs_s *fcs = cbarg;
1493 bfa_trc(fcs, event);
1497 bfa_fcs_fabric_link_up(&fcs->fabric);
1501 bfa_fcs_fabric_link_down(&fcs->fabric);
1524 struct bfa_fcs_s *fcs = (struct bfa_fcs_s *) cbarg;
1535 bfa_stats(fcs, uf.tagged);
1537 if (fcs->port_vfid == vft->vf_id)
1538 fabric = &fcs->fabric;
1540 fabric = bfa_fcs_vf_lookup(fcs, (u16) vft->vf_id);
1547 bfa_stats(fcs, uf.vfid_unknown);
1558 bfa_trc(fcs, vft->vf_id);
1560 bfa_stats(fcs, uf.untagged);
1561 fabric = &fcs->fabric;
1564 bfa_trc(fcs, ((u32 *) fchs)[0]);
1565 bfa_trc(fcs, ((u32 *) fchs)[1]);
1566 bfa_trc(fcs, ((u32 *) fchs)[2]);
1567 bfa_trc(fcs, ((u32 *) fchs)[3]);
1568 bfa_trc(fcs, ((u32 *) fchs)[4]);
1569 bfa_trc(fcs, ((u32 *) fchs)[5]);
1570 bfa_trc(fcs, len);
1577 * fcs attach -- called once to initialize data structures at driver attach time
1580 bfa_fcs_attach(struct bfa_fcs_s *fcs, struct bfa_s *bfa, struct bfad_s *bfad,
1583 struct bfa_fcs_fabric_s *fabric = &fcs->fabric;
1585 fcs->bfa = bfa;
1586 fcs->bfad = bfad;
1587 fcs->min_cfg = min_cfg;
1588 fcs->num_rport_logins = 0;
1590 bfa->fcs = BFA_TRUE;
1593 bfa_fcport_event_register(fcs->bfa, bfa_fcs_port_event_handler, fcs);
1594 bfa_uf_recv_register(fcs->bfa, bfa_fcs_uf_recv, fcs);
1601 fabric->fcs = fcs;
1604 fabric->lps = bfa_lps_alloc(fcs->bfa);
1615 bfa_fcs_lport_attach(&fabric->bport, fabric->fcs, FC_VF_ID_NULL, NULL);