Lines Matching refs:bfa
39 #define BFA_PORT_IS_DISABLED(bfa) \ argument
40 ((bfa_fcport_is_disabled(bfa) == BFA_TRUE) || \
41 (bfa_ioc_is_disabled(&bfa->ioc) == BFA_TRUE))
77 if ((__rp)->bfa->fcs) \
80 bfa_cb_queue((__rp)->bfa, &(__rp)->hcb_qe, \
86 if ((__rp)->bfa->fcs) \
89 bfa_cb_queue((__rp)->bfa, &(__rp)->hcb_qe, \
98 static void hal_fcxp_rx_plog(struct bfa_s *bfa, struct bfa_fcxp_s *fcxp,
100 static void hal_fcxp_tx_plog(struct bfa_s *bfa, u32 reqlen,
109 static void bfa_lps_login_rsp(struct bfa_s *bfa,
112 static void bfa_lps_logout_rsp(struct bfa_s *bfa,
153 static void bfa_trunk_iocdisable(struct bfa_s *bfa);
447 struct bfa_s *bfa) in bfa_fcxp_meminfo() argument
449 struct bfa_fcxp_mod_s *fcxp_mod = BFA_FCXP_MOD(bfa); in bfa_fcxp_meminfo()
450 struct bfa_mem_kva_s *fcxp_kva = BFA_MEM_FCXP_KVA(bfa); in bfa_fcxp_meminfo()
484 bfa_fcxp_attach(struct bfa_s *bfa, void *bfad, struct bfa_iocfc_cfg_s *cfg, in bfa_fcxp_attach() argument
487 struct bfa_fcxp_mod_s *mod = BFA_FCXP_MOD(bfa); in bfa_fcxp_attach()
489 mod->bfa = bfa; in bfa_fcxp_attach()
506 bfa_fcxp_iocdisable(struct bfa_s *bfa) in bfa_fcxp_iocdisable() argument
508 struct bfa_fcxp_mod_s *mod = BFA_FCXP_MOD(bfa); in bfa_fcxp_iocdisable()
524 bfa_cb_queue(bfa, &fcxp->hcb_qe, in bfa_fcxp_iocdisable()
548 struct bfa_s *bfa, in bfa_fcxp_init_reqrsp() argument
559 WARN_ON(bfa == NULL); in bfa_fcxp_init_reqrsp()
561 bfa_trc(bfa, fcxp->fcxp_tag); in bfa_fcxp_init_reqrsp()
586 void *caller, struct bfa_s *bfa, int nreq_sgles, in bfa_fcxp_init() argument
593 WARN_ON(bfa == NULL); in bfa_fcxp_init()
595 bfa_trc(bfa, fcxp->fcxp_tag); in bfa_fcxp_init()
599 bfa_fcxp_init_reqrsp(fcxp, bfa, in bfa_fcxp_init()
604 bfa_fcxp_init_reqrsp(fcxp, bfa, in bfa_fcxp_init()
623 bfa_trc(mod->bfa, fcxp->fcxp_tag); in bfa_fcxp_put()
625 bfa_fcxp_init(fcxp, wqe->caller, wqe->bfa, wqe->nreq_sgles, in bfa_fcxp_put()
666 hal_fcxp_send_comp(struct bfa_s *bfa, struct bfi_fcxp_send_rsp_s *fcxp_rsp) in hal_fcxp_send_comp() argument
668 struct bfa_fcxp_mod_s *mod = BFA_FCXP_MOD(bfa); in hal_fcxp_send_comp()
672 bfa_trc(bfa, fcxp_tag); in hal_fcxp_send_comp()
689 hal_fcxp_rx_plog(mod->bfa, fcxp, fcxp_rsp); in hal_fcxp_send_comp()
692 bfa_trc(mod->bfa, (NULL == fcxp->caller)); in hal_fcxp_send_comp()
707 bfa_cb_queue(bfa, &fcxp->hcb_qe, in hal_fcxp_send_comp()
711 bfa_trc(bfa, (NULL == fcxp->send_cbfn)); in hal_fcxp_send_comp()
716 hal_fcxp_tx_plog(struct bfa_s *bfa, u32 reqlen, struct bfa_fcxp_s *fcxp, in hal_fcxp_tx_plog() argument
727 bfa_plog_fchdr_and_pl(bfa->plog, BFA_PL_MID_HAL_FCXP, in hal_fcxp_tx_plog()
732 bfa_plog_fchdr(bfa->plog, BFA_PL_MID_HAL_FCXP, in hal_fcxp_tx_plog()
738 bfa_plog_fchdr(bfa->plog, BFA_PL_MID_HAL_FCXP, BFA_PL_EID_TX, in hal_fcxp_tx_plog()
744 hal_fcxp_rx_plog(struct bfa_s *bfa, struct bfa_fcxp_s *fcxp, in hal_fcxp_rx_plog() argument
752 bfa_plog_fchdr_and_pl(bfa->plog, BFA_PL_MID_HAL_FCXP, in hal_fcxp_rx_plog()
757 bfa_plog_fchdr(bfa->plog, BFA_PL_MID_HAL_FCXP, in hal_fcxp_rx_plog()
763 bfa_plog_fchdr(bfa->plog, BFA_PL_MID_HAL_FCXP, BFA_PL_EID_RX, in hal_fcxp_rx_plog()
775 struct bfa_s *bfa = fcxp->fcxp_mod->bfa; in bfa_fcxp_qresume() local
779 send_req = bfa_reqq_next(bfa, BFA_REQQ_FCXP); in bfa_fcxp_qresume()
789 struct bfa_s *bfa = fcxp->fcxp_mod->bfa; in bfa_fcxp_queue() local
795 bfa_fn_lpu(bfa)); in bfa_fcxp_queue()
809 send_req->lp_fwtag = bfa_lps_get_fwtag(bfa, reqi->lp_tag); in bfa_fcxp_queue()
855 hal_fcxp_tx_plog(bfa, reqi->req_tot_len, fcxp, &reqi->fchs); in bfa_fcxp_queue()
857 bfa_reqq_produce(bfa, BFA_REQQ_FCXP, send_req->mh); in bfa_fcxp_queue()
859 bfa_trc(bfa, bfa_reqq_pi(bfa, BFA_REQQ_FCXP)); in bfa_fcxp_queue()
860 bfa_trc(bfa, bfa_reqq_ci(bfa, BFA_REQQ_FCXP)); in bfa_fcxp_queue()
889 bfa_fcxp_req_rsp_alloc(void *caller, struct bfa_s *bfa, int nreq_sgles, in bfa_fcxp_req_rsp_alloc() argument
897 WARN_ON(bfa == NULL); in bfa_fcxp_req_rsp_alloc()
899 fcxp = bfa_fcxp_get(BFA_FCXP_MOD(bfa), req); in bfa_fcxp_req_rsp_alloc()
903 bfa_trc(bfa, fcxp->fcxp_tag); in bfa_fcxp_req_rsp_alloc()
905 bfa_fcxp_init(fcxp, caller, bfa, nreq_sgles, nrsp_sgles, req_sga_cbfn, in bfa_fcxp_req_rsp_alloc()
973 bfa_trc(mod->bfa, fcxp->fcxp_tag); in bfa_fcxp_free()
1004 struct bfa_s *bfa = fcxp->fcxp_mod->bfa; in bfa_fcxp_send() local
1009 bfa_trc(bfa, fcxp->fcxp_tag); in bfa_fcxp_send()
1029 send_req = bfa_reqq_next(bfa, BFA_REQQ_FCXP); in bfa_fcxp_send()
1031 bfa_trc(bfa, fcxp->fcxp_tag); in bfa_fcxp_send()
1033 bfa_reqq_wait(bfa, BFA_REQQ_FCXP, &fcxp->reqq_wqe); in bfa_fcxp_send()
1050 bfa_trc(fcxp->fcxp_mod->bfa, fcxp->fcxp_tag); in bfa_fcxp_abort()
1056 bfa_fcxp_req_rsp_alloc_wait(struct bfa_s *bfa, struct bfa_fcxp_wqe_s *wqe, in bfa_fcxp_req_rsp_alloc_wait() argument
1064 struct bfa_fcxp_mod_s *mod = BFA_FCXP_MOD(bfa); in bfa_fcxp_req_rsp_alloc_wait()
1074 wqe->bfa = bfa; in bfa_fcxp_req_rsp_alloc_wait()
1089 bfa_fcxp_walloc_cancel(struct bfa_s *bfa, struct bfa_fcxp_wqe_s *wqe) in bfa_fcxp_walloc_cancel() argument
1091 struct bfa_fcxp_mod_s *mod = BFA_FCXP_MOD(bfa); in bfa_fcxp_walloc_cancel()
1116 bfa_fcxp_isr(struct bfa_s *bfa, struct bfi_msg_s *msg) in bfa_fcxp_isr() argument
1120 hal_fcxp_send_comp(bfa, (struct bfi_fcxp_send_rsp_s *) msg); in bfa_fcxp_isr()
1124 bfa_trc(bfa, msg->mhdr.msg_id); in bfa_fcxp_isr()
1130 bfa_fcxp_get_maxrsp(struct bfa_s *bfa) in bfa_fcxp_get_maxrsp() argument
1132 struct bfa_fcxp_mod_s *mod = BFA_FCXP_MOD(bfa); in bfa_fcxp_get_maxrsp()
1138 bfa_fcxp_res_recfg(struct bfa_s *bfa, u16 num_fcxp_fw) in bfa_fcxp_res_recfg() argument
1140 struct bfa_fcxp_mod_s *mod = BFA_FCXP_MOD(bfa); in bfa_fcxp_res_recfg()
1165 bfa_trc(lps->bfa, lps->bfa_tag); in bfa_lps_sm_init()
1166 bfa_trc(lps->bfa, event); in bfa_lps_sm_init()
1170 if (bfa_reqq_full(lps->bfa, lps->reqq)) { in bfa_lps_sm_init()
1172 bfa_reqq_wait(lps->bfa, lps->reqq, &lps->wqe); in bfa_lps_sm_init()
1179 bfa_plog_str(lps->bfa->plog, BFA_PL_MID_LPS, in bfa_lps_sm_init()
1182 bfa_plog_str(lps->bfa->plog, BFA_PL_MID_LPS, in bfa_lps_sm_init()
1213 bfa_sm_fault(lps->bfa, event); in bfa_lps_sm_init()
1223 bfa_trc(lps->bfa, lps->bfa_tag); in bfa_lps_sm_login()
1224 bfa_trc(lps->bfa, event); in bfa_lps_sm_login()
1231 bfa_plog_str(lps->bfa->plog, BFA_PL_MID_LPS, in bfa_lps_sm_login()
1234 bfa_plog_str(lps->bfa->plog, BFA_PL_MID_LPS, in bfa_lps_sm_login()
1237 bfa_trc(lps->bfa, lps->fport); in bfa_lps_sm_login()
1238 bfa_trc(lps->bfa, lps->lp_pid); in bfa_lps_sm_login()
1245 bfa_plog_str(lps->bfa->plog, BFA_PL_MID_LPS, in bfa_lps_sm_login()
1249 bfa_plog_str(lps->bfa->plog, BFA_PL_MID_LPS, in bfa_lps_sm_login()
1262 bfa_trc(lps->bfa, lps->fport); in bfa_lps_sm_login()
1263 bfa_trc(lps->bfa, lps->lp_pid); in bfa_lps_sm_login()
1267 bfa_sm_fault(lps->bfa, event); in bfa_lps_sm_login()
1277 bfa_trc(lps->bfa, lps->bfa_tag); in bfa_lps_sm_loginwait()
1278 bfa_trc(lps->bfa, event); in bfa_lps_sm_loginwait()
1301 bfa_sm_fault(lps->bfa, event); in bfa_lps_sm_loginwait()
1311 bfa_trc(lps->bfa, lps->bfa_tag); in bfa_lps_sm_online()
1312 bfa_trc(lps->bfa, event); in bfa_lps_sm_online()
1316 if (bfa_reqq_full(lps->bfa, lps->reqq)) { in bfa_lps_sm_online()
1318 bfa_reqq_wait(lps->bfa, lps->reqq, &lps->wqe); in bfa_lps_sm_online()
1323 bfa_plog_str(lps->bfa->plog, BFA_PL_MID_LPS, in bfa_lps_sm_online()
1332 bfa_plog_str(lps->bfa->plog, BFA_PL_MID_LPS, in bfa_lps_sm_online()
1337 if (bfa_reqq_full(lps->bfa, lps->reqq)) { in bfa_lps_sm_online()
1339 bfa_reqq_wait(lps->bfa, lps->reqq, &lps->wqe); in bfa_lps_sm_online()
1350 bfa_sm_fault(lps->bfa, event); in bfa_lps_sm_online()
1360 bfa_trc(lps->bfa, lps->bfa_tag); in bfa_lps_sm_online_n2n_pid_wait()
1361 bfa_trc(lps->bfa, event); in bfa_lps_sm_online_n2n_pid_wait()
1371 bfa_plog_str(lps->bfa->plog, BFA_PL_MID_LPS, in bfa_lps_sm_online_n2n_pid_wait()
1381 bfa_plog_str(lps->bfa->plog, BFA_PL_MID_LPS, in bfa_lps_sm_online_n2n_pid_wait()
1392 bfa_sm_fault(lps->bfa, event); in bfa_lps_sm_online_n2n_pid_wait()
1402 bfa_trc(lps->bfa, lps->bfa_tag); in bfa_lps_sm_logout()
1403 bfa_trc(lps->bfa, event); in bfa_lps_sm_logout()
1417 bfa_sm_fault(lps->bfa, event); in bfa_lps_sm_logout()
1427 bfa_trc(lps->bfa, lps->bfa_tag); in bfa_lps_sm_logowait()
1428 bfa_trc(lps->bfa, event); in bfa_lps_sm_logowait()
1443 bfa_sm_fault(lps->bfa, event); in bfa_lps_sm_logowait()
1458 struct bfa_s *bfa) in bfa_lps_meminfo() argument
1460 struct bfa_mem_kva_s *lps_kva = BFA_MEM_LPS_KVA(bfa); in bfa_lps_meminfo()
1474 bfa_lps_attach(struct bfa_s *bfa, void *bfad, struct bfa_iocfc_cfg_s *cfg, in bfa_lps_attach() argument
1477 struct bfa_lps_mod_s *mod = BFA_LPS_MOD(bfa); in bfa_lps_attach()
1495 lps->bfa = bfa; in bfa_lps_attach()
1507 bfa_lps_iocdisable(struct bfa_s *bfa) in bfa_lps_iocdisable() argument
1509 struct bfa_lps_mod_s *mod = BFA_LPS_MOD(bfa); in bfa_lps_iocdisable()
1528 bfa_lps_login_rsp(struct bfa_s *bfa, struct bfi_lps_login_rsp_s *rsp) in bfa_lps_login_rsp() argument
1530 struct bfa_lps_mod_s *mod = BFA_LPS_MOD(bfa); in bfa_lps_login_rsp()
1583 struct bfa_s *bfa = first_lps->bfa; in bfa_lps_no_res() local
1584 struct bfa_lps_mod_s *mod = BFA_LPS_MOD(bfa); in bfa_lps_no_res()
1588 bfa_trc(bfa, count); in bfa_lps_no_res()
1595 bfa_trc(bfa, lps->bfa_tag); in bfa_lps_no_res()
1609 bfa_lps_logout_rsp(struct bfa_s *bfa, struct bfi_lps_logout_rsp_s *rsp) in bfa_lps_logout_rsp() argument
1611 struct bfa_lps_mod_s *mod = BFA_LPS_MOD(bfa); in bfa_lps_logout_rsp()
1624 bfa_lps_rx_cvl_event(struct bfa_s *bfa, struct bfi_lps_cvl_event_s *cvl) in bfa_lps_rx_cvl_event() argument
1626 struct bfa_lps_mod_s *mod = BFA_LPS_MOD(bfa); in bfa_lps_rx_cvl_event()
1651 struct bfa_lps_mod_s *mod = BFA_LPS_MOD(lps->bfa); in bfa_lps_free()
1664 struct bfa_lps_mod_s *mod = BFA_LPS_MOD(lps->bfa); in bfa_lps_send_login()
1667 m = bfa_reqq_next(lps->bfa, lps->reqq); in bfa_lps_send_login()
1671 bfa_fn_lpu(lps->bfa)); in bfa_lps_send_login()
1681 bfa_reqq_produce(lps->bfa, lps->reqq, m->mh); in bfa_lps_send_login()
1694 m = bfa_reqq_next(lps->bfa, lps->reqq); in bfa_lps_send_logout()
1698 bfa_fn_lpu(lps->bfa)); in bfa_lps_send_logout()
1702 bfa_reqq_produce(lps->bfa, lps->reqq, m->mh); in bfa_lps_send_logout()
1713 m = bfa_reqq_next(lps->bfa, lps->reqq); in bfa_lps_send_set_n2n_pid()
1717 bfa_fn_lpu(lps->bfa)); in bfa_lps_send_set_n2n_pid()
1721 bfa_reqq_produce(lps->bfa, lps->reqq, m->mh); in bfa_lps_send_set_n2n_pid()
1736 bfa_cb_lps_fdisc_comp(lps->bfa->bfad, lps->uarg, lps->status); in bfa_lps_login_comp_cb()
1738 bfa_cb_lps_flogi_comp(lps->bfa->bfad, lps->uarg, lps->status); in bfa_lps_login_comp_cb()
1747 if (!lps->bfa->fcs) { in bfa_lps_login_comp()
1748 bfa_cb_queue(lps->bfa, &lps->hcb_qe, bfa_lps_login_comp_cb, in bfa_lps_login_comp()
1754 bfa_cb_lps_fdisc_comp(lps->bfa->bfad, lps->uarg, lps->status); in bfa_lps_login_comp()
1756 bfa_cb_lps_flogi_comp(lps->bfa->bfad, lps->uarg, lps->status); in bfa_lps_login_comp()
1771 bfa_cb_lps_fdisclogo_comp(lps->bfa->bfad, lps->uarg); in bfa_lps_logout_comp_cb()
1773 bfa_cb_lps_flogo_comp(lps->bfa->bfad, lps->uarg); in bfa_lps_logout_comp_cb()
1782 if (!lps->bfa->fcs) { in bfa_lps_logout_comp()
1783 bfa_cb_queue(lps->bfa, &lps->hcb_qe, bfa_lps_logout_comp_cb, in bfa_lps_logout_comp()
1788 bfa_cb_lps_fdisclogo_comp(lps->bfa->bfad, lps->uarg); in bfa_lps_logout_comp()
1804 bfa_cb_lps_cvl_event(lps->bfa->bfad, lps->uarg); in bfa_lps_cvl_event_cb()
1814 if (!lps->bfa->fcs) { in bfa_lps_cvl_event()
1815 bfa_cb_queue(lps->bfa, &lps->hcb_qe, bfa_lps_cvl_event_cb, in bfa_lps_cvl_event()
1822 bfa_cb_lps_cvl_event(lps->bfa->bfad, lps->uarg); in bfa_lps_cvl_event()
1832 bfa_lps_get_max_vport(struct bfa_s *bfa) in bfa_lps_get_max_vport() argument
1834 if (bfa_ioc_devid(&bfa->ioc) == BFA_PCI_DEVICE_ID_CT) in bfa_lps_get_max_vport()
1844 bfa_lps_alloc(struct bfa_s *bfa) in bfa_lps_alloc() argument
1846 struct bfa_lps_mod_s *mod = BFA_LPS_MOD(bfa); in bfa_lps_alloc()
1915 bfa_lps_get_fwtag(struct bfa_s *bfa, u8 lp_tag) in bfa_lps_get_fwtag() argument
1917 struct bfa_lps_mod_s *mod = BFA_LPS_MOD(bfa); in bfa_lps_get_fwtag()
1926 bfa_lps_get_tag_from_pid(struct bfa_s *bfa, u32 pid) in bfa_lps_get_tag_from_pid() argument
1928 struct bfa_lps_mod_s *mod = BFA_LPS_MOD(bfa); in bfa_lps_get_tag_from_pid()
1946 bfa_lps_get_base_pid(struct bfa_s *bfa) in bfa_lps_get_base_pid() argument
1948 struct bfa_lps_mod_s *mod = BFA_LPS_MOD(bfa); in bfa_lps_get_base_pid()
1959 bfa_trc(lps->bfa, lps->bfa_tag); in bfa_lps_set_n2n_pid()
1960 bfa_trc(lps->bfa, n2n_pid); in bfa_lps_set_n2n_pid()
1970 bfa_lps_isr(struct bfa_s *bfa, struct bfi_msg_s *m) in bfa_lps_isr() argument
1974 bfa_trc(bfa, m->mhdr.msg_id); in bfa_lps_isr()
1979 bfa_lps_login_rsp(bfa, msg.login_rsp); in bfa_lps_isr()
1983 bfa_lps_logout_rsp(bfa, msg.logout_rsp); in bfa_lps_isr()
1987 bfa_lps_rx_cvl_event(bfa, msg.cvl_event); in bfa_lps_isr()
1991 bfa_trc(bfa, m->mhdr.msg_id); in bfa_lps_isr()
1999 struct bfad_s *bfad = (struct bfad_s *)fcport->bfa->bfad; in bfa_fcport_aen_post()
2006 aen_entry->aen_data.port.ioc_type = bfa_get_type(fcport->bfa); in bfa_fcport_aen_post()
2010 bfad_im_post_vendor_event(aen_entry, bfad, ++fcport->bfa->bfa_aen_seq, in bfa_fcport_aen_post()
2021 bfa_trc(fcport->bfa, event); in bfa_fcport_sm_uninit()
2031 bfa_trc(fcport->bfa, BFA_TRUE); in bfa_fcport_sm_uninit()
2034 bfa_trc(fcport->bfa, BFA_FALSE); in bfa_fcport_sm_uninit()
2061 bfa_sm_fault(fcport->bfa, event); in bfa_fcport_sm_uninit()
2070 struct bfad_s *bfad = (struct bfad_s *)fcport->bfa->bfad; in bfa_fcport_sm_enabling_qwait()
2071 bfa_trc(fcport->bfa, event); in bfa_fcport_sm_enabling_qwait()
2097 bfa_plog_str(fcport->bfa->plog, BFA_PL_MID_HAL, in bfa_fcport_sm_enabling_qwait()
2125 bfa_sm_fault(fcport->bfa, event); in bfa_fcport_sm_enabling_qwait()
2134 struct bfad_s *bfad = (struct bfad_s *)fcport->bfa->bfad; in bfa_fcport_sm_enabling()
2135 bfa_trc(fcport->bfa, event); in bfa_fcport_sm_enabling()
2164 bfa_plog_str(fcport->bfa->plog, BFA_PL_MID_HAL, in bfa_fcport_sm_enabling()
2187 bfa_sm_fault(fcport->bfa, event); in bfa_fcport_sm_enabling()
2197 struct bfad_s *bfad = (struct bfad_s *)fcport->bfa->bfad; in bfa_fcport_sm_linkdown()
2199 bfa_trc(fcport->bfa, event); in bfa_fcport_sm_linkdown()
2206 bfa_plog_str(fcport->bfa->plog, BFA_PL_MID_HAL, in bfa_fcport_sm_linkdown()
2208 if (!bfa_ioc_get_fcmode(&fcport->bfa->ioc)) { in bfa_fcport_sm_linkdown()
2210 bfa_trc(fcport->bfa, in bfa_fcport_sm_linkdown()
2212 bfa_trc(fcport->bfa, in bfa_fcport_sm_linkdown()
2216 bfa_plog_str(fcport->bfa->plog, BFA_PL_MID_HAL, in bfa_fcport_sm_linkdown()
2220 bfa_plog_str(fcport->bfa->plog, BFA_PL_MID_HAL, in bfa_fcport_sm_linkdown()
2256 bfa_plog_str(fcport->bfa->plog, BFA_PL_MID_HAL, in bfa_fcport_sm_linkdown()
2279 bfa_sm_fault(fcport->bfa, event); in bfa_fcport_sm_linkdown()
2288 struct bfad_s *bfad = (struct bfad_s *)fcport->bfa->bfad; in bfa_fcport_sm_linkup()
2290 bfa_trc(fcport->bfa, event); in bfa_fcport_sm_linkup()
2308 bfa_plog_str(fcport->bfa->plog, BFA_PL_MID_HAL, in bfa_fcport_sm_linkup()
2323 bfa_plog_str(fcport->bfa->plog, BFA_PL_MID_HAL, in bfa_fcport_sm_linkup()
2326 if (BFA_PORT_IS_DISABLED(fcport->bfa)) { in bfa_fcport_sm_linkup()
2342 if (BFA_PORT_IS_DISABLED(fcport->bfa)) { in bfa_fcport_sm_linkup()
2359 if (BFA_PORT_IS_DISABLED(fcport->bfa)) { in bfa_fcport_sm_linkup()
2378 bfa_sm_fault(fcport->bfa, event); in bfa_fcport_sm_linkup()
2386 bfa_trc(fcport->bfa, event); in bfa_fcport_sm_disabling_qwait()
2429 bfa_sm_fault(fcport->bfa, event); in bfa_fcport_sm_disabling_qwait()
2437 bfa_trc(fcport->bfa, event); in bfa_fcport_sm_toggling_qwait()
2476 bfa_sm_fault(fcport->bfa, event); in bfa_fcport_sm_toggling_qwait()
2485 struct bfad_s *bfad = (struct bfad_s *)fcport->bfa->bfad; in bfa_fcport_sm_disabling()
2486 bfa_trc(fcport->bfa, event); in bfa_fcport_sm_disabling()
2506 bfa_plog_str(fcport->bfa->plog, BFA_PL_MID_HAL, in bfa_fcport_sm_disabling()
2531 bfa_sm_fault(fcport->bfa, event); in bfa_fcport_sm_disabling()
2540 struct bfad_s *bfad = (struct bfad_s *)fcport->bfa->bfad; in bfa_fcport_sm_disabled()
2541 bfa_trc(fcport->bfa, event); in bfa_fcport_sm_disabled()
2561 bfa_plog_str(fcport->bfa->plog, BFA_PL_MID_HAL, in bfa_fcport_sm_disabled()
2588 bfa_sm_fault(fcport->bfa, event); in bfa_fcport_sm_disabled()
2596 bfa_trc(fcport->bfa, event); in bfa_fcport_sm_stopped()
2622 bfa_trc(fcport->bfa, event); in bfa_fcport_sm_iocdown()
2648 bfa_trc(fcport->bfa, event); in bfa_fcport_sm_iocfail()
2670 bfa_trc(fcport->bfa, event); in bfa_fcport_sm_dport()
2695 bfa_sm_fault(fcport->bfa, event); in bfa_fcport_sm_dport()
2703 bfa_trc(fcport->bfa, event); in bfa_fcport_sm_ddport()
2729 bfa_sm_fault(fcport->bfa, event); in bfa_fcport_sm_ddport()
2737 bfa_trc(fcport->bfa, event); in bfa_fcport_sm_faa_misconfig()
2756 bfa_plog_str(fcport->bfa->plog, BFA_PL_MID_HAL, in bfa_fcport_sm_faa_misconfig()
2772 bfa_sm_fault(fcport->bfa, event); in bfa_fcport_sm_faa_misconfig()
2783 bfa_trc(ln->fcport->bfa, event); in bfa_fcport_ln_sm_dn()
2792 bfa_sm_fault(ln->fcport->bfa, event); in bfa_fcport_ln_sm_dn()
2803 bfa_trc(ln->fcport->bfa, event); in bfa_fcport_ln_sm_dn_nf()
2815 bfa_sm_fault(ln->fcport->bfa, event); in bfa_fcport_ln_sm_dn_nf()
2826 bfa_trc(ln->fcport->bfa, event); in bfa_fcport_ln_sm_dn_up_nf()
2839 bfa_sm_fault(ln->fcport->bfa, event); in bfa_fcport_ln_sm_dn_up_nf()
2850 bfa_trc(ln->fcport->bfa, event); in bfa_fcport_ln_sm_up()
2859 bfa_sm_fault(ln->fcport->bfa, event); in bfa_fcport_ln_sm_up()
2870 bfa_trc(ln->fcport->bfa, event); in bfa_fcport_ln_sm_up_nf()
2882 bfa_sm_fault(ln->fcport->bfa, event); in bfa_fcport_ln_sm_up_nf()
2893 bfa_trc(ln->fcport->bfa, event); in bfa_fcport_ln_sm_up_dn_nf()
2906 bfa_sm_fault(ln->fcport->bfa, event); in bfa_fcport_ln_sm_up_dn_nf()
2917 bfa_trc(ln->fcport->bfa, event); in bfa_fcport_ln_sm_up_dn_up_nf()
2930 bfa_sm_fault(ln->fcport->bfa, event); in bfa_fcport_ln_sm_up_dn_up_nf()
2973 if (fcport->bfa->fcs) { in bfa_fcport_queue_cb()
2978 bfa_cb_queue(fcport->bfa, &ln->ln_qe, in bfa_fcport_queue_cb()
2988 struct bfa_s *bfa) in bfa_fcport_meminfo() argument
2990 struct bfa_mem_dma_s *fcport_dma = BFA_MEM_FCPORT_DMA(bfa); in bfa_fcport_meminfo()
3018 bfa_fcport_attach(struct bfa_s *bfa, void *bfad, struct bfa_iocfc_cfg_s *cfg, in bfa_fcport_attach() argument
3021 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_attach()
3025 fcport->bfa = bfa; in bfa_fcport_attach()
3061 bfa_fcport_start(struct bfa_s *bfa) in bfa_fcport_start() argument
3063 bfa_sm_send_event(BFA_FCPORT_MOD(bfa), BFA_FCPORT_SM_START); in bfa_fcport_start()
3070 bfa_fcport_iocdisable(struct bfa_s *bfa) in bfa_fcport_iocdisable() argument
3072 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_iocdisable()
3075 bfa_trunk_iocdisable(bfa); in bfa_fcport_iocdisable()
3127 bfa_trc(fcport->bfa, fcport->speed); in bfa_fcport_update_linkinfo()
3128 bfa_trc(fcport->bfa, fcport->topology); in bfa_fcport_update_linkinfo()
3156 m = bfa_reqq_next(fcport->bfa, BFA_REQQ_PORT); in bfa_fcport_send_enable()
3158 bfa_reqq_wait(fcport->bfa, BFA_REQQ_PORT, in bfa_fcport_send_enable()
3164 bfa_fn_lpu(fcport->bfa)); in bfa_fcport_send_enable()
3172 bfa_trc(fcport->bfa, m->stats_dma_addr.a32.addr_lo); in bfa_fcport_send_enable()
3173 bfa_trc(fcport->bfa, m->stats_dma_addr.a32.addr_hi); in bfa_fcport_send_enable()
3178 bfa_reqq_produce(fcport->bfa, BFA_REQQ_PORT, m->mh); in bfa_fcport_send_enable()
3199 m = bfa_reqq_next(fcport->bfa, BFA_REQQ_PORT); in bfa_fcport_send_disable()
3201 bfa_reqq_wait(fcport->bfa, BFA_REQQ_PORT, in bfa_fcport_send_disable()
3207 bfa_fn_lpu(fcport->bfa)); in bfa_fcport_send_disable()
3213 bfa_reqq_produce(fcport->bfa, BFA_REQQ_PORT, m->mh); in bfa_fcport_send_disable()
3221 fcport->pwwn = fcport->bfa->ioc.attr->pwwn; in bfa_fcport_set_wwns()
3222 fcport->nwwn = fcport->bfa->ioc.attr->nwwn; in bfa_fcport_set_wwns()
3224 bfa_trc(fcport->bfa, fcport->pwwn); in bfa_fcport_set_wwns()
3225 bfa_trc(fcport->bfa, fcport->nwwn); in bfa_fcport_set_wwns()
3278 if (bfa_ioc_get_fcmode(&fcport->bfa->ioc)) in __bfa_cb_fcport_stats_get()
3288 bfa_cb_queue_status(fcport->bfa, &cb->hcb_qe, in __bfa_cb_fcport_stats_get()
3303 bfa_trc(fcport->bfa, fcport->stats_qfull); in bfa_fcport_stats_get_timeout()
3320 msg = bfa_reqq_next(fcport->bfa, BFA_REQQ_PORT); in bfa_fcport_send_stats_get()
3326 bfa_reqq_wait(fcport->bfa, BFA_REQQ_PORT, in bfa_fcport_send_stats_get()
3334 bfa_fn_lpu(fcport->bfa)); in bfa_fcport_send_stats_get()
3335 bfa_reqq_produce(fcport->bfa, BFA_REQQ_PORT, msg->mh); in bfa_fcport_send_stats_get()
3353 bfa_cb_queue_status(fcport->bfa, &cb->hcb_qe, in __bfa_cb_fcport_stats_clr()
3368 bfa_trc(fcport->bfa, fcport->stats_qfull); in bfa_fcport_stats_clr_timeout()
3385 msg = bfa_reqq_next(fcport->bfa, BFA_REQQ_PORT); in bfa_fcport_send_stats_clear()
3391 bfa_reqq_wait(fcport->bfa, BFA_REQQ_PORT, in bfa_fcport_send_stats_clear()
3399 bfa_fn_lpu(fcport->bfa)); in bfa_fcport_send_stats_clear()
3400 bfa_reqq_produce(fcport->bfa, BFA_REQQ_PORT, msg->mh); in bfa_fcport_send_stats_clear()
3416 bfa_trc(fcport->bfa, fcport->cfg.trunked); in bfa_trunk_scn()
3420 bfa_trc(fcport->bfa, trunk->attr.state); in bfa_trunk_scn()
3421 bfa_trc(fcport->bfa, scn->trunk_state); in bfa_trunk_scn()
3422 bfa_trc(fcport->bfa, scn->trunk_speed); in bfa_trunk_scn()
3447 bfa_trc(fcport->bfa, lattr->link_state); in bfa_trunk_scn()
3448 bfa_trc(fcport->bfa, lattr->trunk_wwn); in bfa_trunk_scn()
3449 bfa_trc(fcport->bfa, lattr->fctl); in bfa_trunk_scn()
3450 bfa_trc(fcport->bfa, lattr->speed); in bfa_trunk_scn()
3451 bfa_trc(fcport->bfa, lattr->deskew); in bfa_trunk_scn()
3456 bfa_plog_str(fcport->bfa->plog, BFA_PL_MID_HAL, in bfa_trunk_scn()
3460 bfa_plog_str(fcport->bfa->plog, BFA_PL_MID_HAL, in bfa_trunk_scn()
3464 bfa_plog_str(fcport->bfa->plog, BFA_PL_MID_HAL, in bfa_trunk_scn()
3468 bfa_plog_str(fcport->bfa->plog, BFA_PL_MID_HAL, in bfa_trunk_scn()
3483 bfa_trunk_iocdisable(struct bfa_s *bfa) in bfa_trunk_iocdisable() argument
3485 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_trunk_iocdisable()
3514 bfa_fcport_init(struct bfa_s *bfa) in bfa_fcport_init() argument
3516 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_init()
3523 fcport->cfg.maxfrsize = bfa_ioc_maxfrsize(&bfa->ioc); in bfa_fcport_init()
3524 fcport->cfg.rx_bbcredit = bfa_ioc_rx_bbcredit(&bfa->ioc); in bfa_fcport_init()
3525 fcport->speed_sup = bfa_ioc_speed_sup(&bfa->ioc); in bfa_fcport_init()
3527 if (bfa_fcport_is_pbcdisabled(bfa)) in bfa_fcport_init()
3528 bfa->modules.port.pbc_disabled = BFA_TRUE; in bfa_fcport_init()
3539 bfa_fcport_isr(struct bfa_s *bfa, struct bfi_msg_s *msg) in bfa_fcport_isr() argument
3541 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_isr()
3547 bfa_trc(bfa, msg->mhdr.msg_id); in bfa_fcport_isr()
3548 bfa_trc(bfa, bfa_sm_to_state(hal_port_sm_table, fcport->sm)); in bfa_fcport_isr()
3666 bfa_fcport_event_register(struct bfa_s *bfa, in bfa_fcport_event_register() argument
3671 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_event_register()
3678 bfa_fcport_enable(struct bfa_s *bfa) in bfa_fcport_enable() argument
3680 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_enable()
3682 if (bfa_fcport_is_pbcdisabled(bfa)) in bfa_fcport_enable()
3685 if (bfa_ioc_is_disabled(&bfa->ioc)) in bfa_fcport_enable()
3691 bfa_sm_send_event(BFA_FCPORT_MOD(bfa), BFA_FCPORT_SM_ENABLE); in bfa_fcport_enable()
3696 bfa_fcport_disable(struct bfa_s *bfa) in bfa_fcport_disable() argument
3698 if (bfa_fcport_is_pbcdisabled(bfa)) in bfa_fcport_disable()
3701 if (bfa_ioc_is_disabled(&bfa->ioc)) in bfa_fcport_disable()
3704 bfa_sm_send_event(BFA_FCPORT_MOD(bfa), BFA_FCPORT_SM_DISABLE); in bfa_fcport_disable()
3710 bfa_fcport_is_pbcdisabled(struct bfa_s *bfa) in bfa_fcport_is_pbcdisabled() argument
3712 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_is_pbcdisabled()
3713 struct bfa_iocfc_s *iocfc = &bfa->iocfc; in bfa_fcport_is_pbcdisabled()
3717 bfa_trc(bfa, fcport->pwwn); in bfa_fcport_is_pbcdisabled()
3727 bfa_fcport_cfg_speed(struct bfa_s *bfa, enum bfa_port_speed speed) in bfa_fcport_cfg_speed() argument
3729 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_cfg_speed()
3731 bfa_trc(bfa, speed); in bfa_fcport_cfg_speed()
3739 bfa_trc(bfa, fcport->speed_sup); in bfa_fcport_cfg_speed()
3744 if (bfa_ioc_get_type(&fcport->bfa->ioc) == BFA_IOC_TYPE_FC) { in bfa_fcport_cfg_speed()
3747 (bfa_asic_id_ct2(bfa->ioc.pcidev.device_id))) in bfa_fcport_cfg_speed()
3772 bfa_fcport_get_speed(struct bfa_s *bfa) in bfa_fcport_get_speed() argument
3774 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_get_speed()
3783 bfa_fcport_cfg_topology(struct bfa_s *bfa, enum bfa_port_topology topology) in bfa_fcport_cfg_topology() argument
3785 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_cfg_topology()
3787 bfa_trc(bfa, topology); in bfa_fcport_cfg_topology()
3788 bfa_trc(bfa, fcport->cfg.topology); in bfa_fcport_cfg_topology()
3795 if ((bfa_fcport_is_qos_enabled(bfa) != BFA_FALSE) || in bfa_fcport_cfg_topology()
3800 if ((bfa_fcport_is_trunk_enabled(bfa) != BFA_FALSE) || in bfa_fcport_cfg_topology()
3803 if ((bfa_fcport_get_speed(bfa) == BFA_PORT_SPEED_16GBPS) || in bfa_fcport_cfg_topology()
3806 if (bfa_mfg_is_mezz(bfa->ioc.attr->card_type)) in bfa_fcport_cfg_topology()
3808 if (bfa_fcport_is_dport(bfa) != BFA_FALSE) in bfa_fcport_cfg_topology()
3810 if (bfa_fcport_is_ddport(bfa) != BFA_FALSE) in bfa_fcport_cfg_topology()
3829 bfa_fcport_get_topology(struct bfa_s *bfa) in bfa_fcport_get_topology() argument
3831 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_get_topology()
3840 bfa_fcport_get_cfg_topology(struct bfa_s *bfa) in bfa_fcport_get_cfg_topology() argument
3842 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_get_cfg_topology()
3848 bfa_fcport_cfg_hardalpa(struct bfa_s *bfa, u8 alpa) in bfa_fcport_cfg_hardalpa() argument
3850 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_cfg_hardalpa()
3852 bfa_trc(bfa, alpa); in bfa_fcport_cfg_hardalpa()
3853 bfa_trc(bfa, fcport->cfg.cfg_hardalpa); in bfa_fcport_cfg_hardalpa()
3854 bfa_trc(bfa, fcport->cfg.hardalpa); in bfa_fcport_cfg_hardalpa()
3863 bfa_fcport_clr_hardalpa(struct bfa_s *bfa) in bfa_fcport_clr_hardalpa() argument
3865 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_clr_hardalpa()
3867 bfa_trc(bfa, fcport->cfg.cfg_hardalpa); in bfa_fcport_clr_hardalpa()
3868 bfa_trc(bfa, fcport->cfg.hardalpa); in bfa_fcport_clr_hardalpa()
3875 bfa_fcport_get_hardalpa(struct bfa_s *bfa, u8 *alpa) in bfa_fcport_get_hardalpa() argument
3877 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_get_hardalpa()
3884 bfa_fcport_get_myalpa(struct bfa_s *bfa) in bfa_fcport_get_myalpa() argument
3886 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_get_myalpa()
3892 bfa_fcport_cfg_maxfrsize(struct bfa_s *bfa, u16 maxfrsize) in bfa_fcport_cfg_maxfrsize() argument
3894 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_cfg_maxfrsize()
3896 bfa_trc(bfa, maxfrsize); in bfa_fcport_cfg_maxfrsize()
3897 bfa_trc(bfa, fcport->cfg.maxfrsize); in bfa_fcport_cfg_maxfrsize()
3912 bfa_fcport_get_maxfrsize(struct bfa_s *bfa) in bfa_fcport_get_maxfrsize() argument
3914 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_get_maxfrsize()
3920 bfa_fcport_get_rx_bbcredit(struct bfa_s *bfa) in bfa_fcport_get_rx_bbcredit() argument
3922 if (bfa_fcport_get_topology(bfa) != BFA_PORT_TOPOLOGY_LOOP) in bfa_fcport_get_rx_bbcredit()
3923 return (BFA_FCPORT_MOD(bfa))->cfg.rx_bbcredit; in bfa_fcport_get_rx_bbcredit()
3930 bfa_fcport_set_tx_bbcredit(struct bfa_s *bfa, u16 tx_bbcredit) in bfa_fcport_set_tx_bbcredit() argument
3932 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_set_tx_bbcredit()
3942 bfa_fcport_get_wwn(struct bfa_s *bfa, bfa_boolean_t node) in bfa_fcport_get_wwn() argument
3944 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_get_wwn()
3952 bfa_fcport_get_attr(struct bfa_s *bfa, struct bfa_port_attr_s *attr) in bfa_fcport_get_attr() argument
3954 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_get_attr()
3961 attr->factorypwwn = bfa->ioc.attr->mfg_pwwn; in bfa_fcport_get_attr()
3962 attr->factorynwwn = bfa->ioc.attr->mfg_nwwn; in bfa_fcport_get_attr()
3981 attr->pport_cfg.path_tov = bfa_fcpim_path_tov_get(bfa); in bfa_fcport_get_attr()
3982 attr->pport_cfg.q_depth = bfa_fcpim_qdepth_get(bfa); in bfa_fcport_get_attr()
3988 if (bfa_fcport_is_pbcdisabled(bfa)) in bfa_fcport_get_attr()
3991 if (bfa_ioc_is_disabled(&fcport->bfa->ioc)) in bfa_fcport_get_attr()
3993 else if (bfa_ioc_fw_mismatch(&fcport->bfa->ioc)) in bfa_fcport_get_attr()
4007 bfa_fcport_get_stats(struct bfa_s *bfa, struct bfa_cb_pending_q_s *cb) in bfa_fcport_get_stats() argument
4009 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_get_stats()
4011 if (!bfa_iocfc_is_operational(bfa) || in bfa_fcport_get_stats()
4021 bfa_timer_start(bfa, &fcport->timer, in bfa_fcport_get_stats()
4034 bfa_fcport_clear_stats(struct bfa_s *bfa, struct bfa_cb_pending_q_s *cb) in bfa_fcport_clear_stats() argument
4036 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_clear_stats()
4038 if (!bfa_iocfc_is_operational(bfa) || in bfa_fcport_clear_stats()
4048 bfa_timer_start(bfa, &fcport->timer, in bfa_fcport_clear_stats()
4061 bfa_fcport_is_disabled(struct bfa_s *bfa) in bfa_fcport_is_disabled() argument
4063 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_is_disabled()
4071 bfa_fcport_is_dport(struct bfa_s *bfa) in bfa_fcport_is_dport() argument
4073 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_is_dport()
4080 bfa_fcport_is_ddport(struct bfa_s *bfa) in bfa_fcport_is_ddport() argument
4082 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_is_ddport()
4089 bfa_fcport_set_qos_bw(struct bfa_s *bfa, struct bfa_qos_bw_s *qos_bw) in bfa_fcport_set_qos_bw() argument
4091 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_set_qos_bw()
4092 enum bfa_ioc_type_e ioc_type = bfa_get_type(bfa); in bfa_fcport_set_qos_bw()
4094 bfa_trc(bfa, ioc_type); in bfa_fcport_set_qos_bw()
4114 bfa_fcport_is_ratelim(struct bfa_s *bfa) in bfa_fcport_is_ratelim() argument
4116 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_is_ratelim()
4126 bfa_fcport_cfg_faa(struct bfa_s *bfa, u8 state) in bfa_fcport_cfg_faa() argument
4128 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_cfg_faa()
4130 bfa_trc(bfa, state); in bfa_fcport_cfg_faa()
4138 bfa_fcport_get_ratelim_speed(struct bfa_s *bfa) in bfa_fcport_get_ratelim_speed() argument
4140 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_get_ratelim_speed()
4142 bfa_trc(bfa, fcport->cfg.trl_def_speed); in bfa_fcport_get_ratelim_speed()
4151 struct bfa_s *bfa = dev; in bfa_fcport_beacon() local
4152 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_beacon()
4154 bfa_trc(bfa, beacon); in bfa_fcport_beacon()
4155 bfa_trc(bfa, link_e2e_beacon); in bfa_fcport_beacon()
4156 bfa_trc(bfa, fcport->beacon); in bfa_fcport_beacon()
4157 bfa_trc(bfa, fcport->link_e2e_beacon); in bfa_fcport_beacon()
4164 bfa_fcport_is_linkup(struct bfa_s *bfa) in bfa_fcport_is_linkup() argument
4166 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_is_linkup()
4175 bfa_fcport_is_qos_enabled(struct bfa_s *bfa) in bfa_fcport_is_qos_enabled() argument
4177 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_is_qos_enabled()
4183 bfa_fcport_is_trunk_enabled(struct bfa_s *bfa) in bfa_fcport_is_trunk_enabled() argument
4185 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_is_trunk_enabled()
4191 bfa_fcport_cfg_bbcr(struct bfa_s *bfa, bfa_boolean_t on_off, u8 bb_scn) in bfa_fcport_cfg_bbcr() argument
4193 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_cfg_bbcr()
4195 bfa_trc(bfa, on_off); in bfa_fcport_cfg_bbcr()
4197 if (bfa_ioc_get_type(&fcport->bfa->ioc) != BFA_IOC_TYPE_FC) in bfa_fcport_cfg_bbcr()
4200 if (bfa_mfg_is_mezz(bfa->ioc.attr->card_type) && in bfa_fcport_cfg_bbcr()
4201 (bfa->ioc.attr->card_type != BFA_MFG_TYPE_CHINOOK)) in bfa_fcport_cfg_bbcr()
4215 (fcport->cfg.speed < bfa_ioc_speed_sup(&bfa->ioc))) in bfa_fcport_cfg_bbcr()
4218 if (bfa_ioc_speed_sup(&bfa->ioc) < BFA_PORT_SPEED_8GBPS) in bfa_fcport_cfg_bbcr()
4245 bfa_fcport_get_bbcr_attr(struct bfa_s *bfa, in bfa_fcport_get_bbcr_attr() argument
4248 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_get_bbcr_attr()
4250 if (bfa_ioc_get_type(&fcport->bfa->ioc) != BFA_IOC_TYPE_FC) in bfa_fcport_get_bbcr_attr()
4262 bfa_fcport_dportenable(struct bfa_s *bfa) in bfa_fcport_dportenable() argument
4267 bfa_sm_send_event(BFA_FCPORT_MOD(bfa), BFA_FCPORT_SM_DPORTENABLE); in bfa_fcport_dportenable()
4268 bfa_port_set_dportenabled(&bfa->modules.port, BFA_TRUE); in bfa_fcport_dportenable()
4272 bfa_fcport_dportdisable(struct bfa_s *bfa) in bfa_fcport_dportdisable() argument
4277 bfa_sm_send_event(BFA_FCPORT_MOD(bfa), BFA_FCPORT_SM_DPORTDISABLE); in bfa_fcport_dportdisable()
4278 bfa_port_set_dportenabled(&bfa->modules.port, BFA_FALSE); in bfa_fcport_dportdisable()
4282 bfa_fcport_ddportenable(struct bfa_s *bfa) in bfa_fcport_ddportenable() argument
4287 bfa_sm_send_event(BFA_FCPORT_MOD(bfa), BFA_FCPORT_SM_DDPORTENABLE); in bfa_fcport_ddportenable()
4291 bfa_fcport_ddportdisable(struct bfa_s *bfa) in bfa_fcport_ddportdisable() argument
4296 bfa_sm_send_event(BFA_FCPORT_MOD(bfa), BFA_FCPORT_SM_DDPORTDISABLE); in bfa_fcport_ddportdisable()
4308 bfa_trc(rp->bfa, rp->rport_tag); in bfa_rport_sm_uninit()
4309 bfa_trc(rp->bfa, event); in bfa_rport_sm_uninit()
4319 bfa_sm_fault(rp->bfa, event); in bfa_rport_sm_uninit()
4326 bfa_trc(rp->bfa, rp->rport_tag); in bfa_rport_sm_created()
4327 bfa_trc(rp->bfa, event); in bfa_rport_sm_created()
4351 bfa_sm_fault(rp->bfa, event); in bfa_rport_sm_created()
4361 bfa_trc(rp->bfa, rp->rport_tag); in bfa_rport_sm_fwcreate()
4362 bfa_trc(rp->bfa, event); in bfa_rport_sm_fwcreate()
4388 bfa_sm_fault(rp->bfa, event); in bfa_rport_sm_fwcreate()
4398 bfa_trc(rp->bfa, rp->rport_tag); in bfa_rport_sm_fwcreate_qfull()
4399 bfa_trc(rp->bfa, event); in bfa_rport_sm_fwcreate_qfull()
4429 bfa_sm_fault(rp->bfa, event); in bfa_rport_sm_fwcreate_qfull()
4441 bfa_trc(rp->bfa, rp->rport_tag); in bfa_rport_sm_online()
4442 bfa_trc(rp->bfa, event); in bfa_rport_sm_online()
4473 bfa_trc(rp->bfa, qos_scn->old_qos_attr.qos_flow_id); in bfa_rport_sm_online()
4474 bfa_trc(rp->bfa, qos_scn->new_qos_attr.qos_flow_id); in bfa_rport_sm_online()
4475 bfa_trc(rp->bfa, qos_scn->old_qos_attr.qos_priority); in bfa_rport_sm_online()
4476 bfa_trc(rp->bfa, qos_scn->new_qos_attr.qos_priority); in bfa_rport_sm_online()
4497 bfa_sm_fault(rp->bfa, event); in bfa_rport_sm_online()
4507 bfa_trc(rp->bfa, rp->rport_tag); in bfa_rport_sm_fwdelete()
4508 bfa_trc(rp->bfa, event); in bfa_rport_sm_fwdelete()
4530 bfa_sm_fault(rp->bfa, event); in bfa_rport_sm_fwdelete()
4537 bfa_trc(rp->bfa, rp->rport_tag); in bfa_rport_sm_fwdelete_qfull()
4538 bfa_trc(rp->bfa, event); in bfa_rport_sm_fwdelete_qfull()
4560 bfa_sm_fault(rp->bfa, event); in bfa_rport_sm_fwdelete_qfull()
4570 bfa_trc(rp->bfa, rp->rport_tag); in bfa_rport_sm_offline()
4571 bfa_trc(rp->bfa, event); in bfa_rport_sm_offline()
4599 bfa_sm_fault(rp->bfa, event); in bfa_rport_sm_offline()
4609 bfa_trc(rp->bfa, rp->rport_tag); in bfa_rport_sm_deleting()
4610 bfa_trc(rp->bfa, event); in bfa_rport_sm_deleting()
4626 bfa_sm_fault(rp->bfa, event); in bfa_rport_sm_deleting()
4633 bfa_trc(rp->bfa, rp->rport_tag); in bfa_rport_sm_deleting_qfull()
4634 bfa_trc(rp->bfa, event); in bfa_rport_sm_deleting_qfull()
4651 bfa_sm_fault(rp->bfa, event); in bfa_rport_sm_deleting_qfull()
4662 bfa_trc(rp->bfa, rp->rport_tag); in bfa_rport_sm_delete_pending()
4663 bfa_trc(rp->bfa, event); in bfa_rport_sm_delete_pending()
4682 bfa_sm_fault(rp->bfa, event); in bfa_rport_sm_delete_pending()
4693 bfa_trc(rp->bfa, rp->rport_tag); in bfa_rport_sm_offline_pending()
4694 bfa_trc(rp->bfa, event); in bfa_rport_sm_offline_pending()
4718 bfa_sm_fault(rp->bfa, event); in bfa_rport_sm_offline_pending()
4728 bfa_trc(rp->bfa, rp->rport_tag); in bfa_rport_sm_iocdisable()
4729 bfa_trc(rp->bfa, event); in bfa_rport_sm_iocdisable()
4756 bfa_sm_fault(rp->bfa, event); in bfa_rport_sm_iocdisable()
4794 struct bfa_s *bfa) in bfa_rport_meminfo() argument
4796 struct bfa_mem_kva_s *rport_kva = BFA_MEM_RPORT_KVA(bfa); in bfa_rport_meminfo()
4807 bfa_rport_attach(struct bfa_s *bfa, void *bfad, struct bfa_iocfc_cfg_s *cfg, in bfa_rport_attach() argument
4810 struct bfa_rport_mod_s *mod = BFA_RPORT_MOD(bfa); in bfa_rport_attach()
4827 rp->bfa = bfa; in bfa_rport_attach()
4847 bfa_rport_iocdisable(struct bfa_s *bfa) in bfa_rport_iocdisable() argument
4849 struct bfa_rport_mod_s *mod = BFA_RPORT_MOD(bfa); in bfa_rport_iocdisable()
4877 struct bfa_rport_mod_s *mod = BFA_RPORT_MOD(rport->bfa); in bfa_rport_free()
4892 m = bfa_reqq_next(rp->bfa, BFA_REQQ_RPORT); in bfa_rport_send_fwcreate()
4894 bfa_reqq_wait(rp->bfa, BFA_REQQ_RPORT, &rp->reqq_wait); in bfa_rport_send_fwcreate()
4899 bfa_fn_lpu(rp->bfa)); in bfa_rport_send_fwcreate()
4903 m->lp_fwtag = bfa_lps_get_fwtag(rp->bfa, (u8)rp->rport_info.lp_tag); in bfa_rport_send_fwcreate()
4913 bfa_reqq_produce(rp->bfa, BFA_REQQ_RPORT, m->mh); in bfa_rport_send_fwcreate()
4925 m = bfa_reqq_next(rp->bfa, BFA_REQQ_RPORT); in bfa_rport_send_fwdelete()
4927 bfa_reqq_wait(rp->bfa, BFA_REQQ_RPORT, &rp->reqq_wait); in bfa_rport_send_fwdelete()
4932 bfa_fn_lpu(rp->bfa)); in bfa_rport_send_fwdelete()
4938 bfa_reqq_produce(rp->bfa, BFA_REQQ_RPORT, m->mh); in bfa_rport_send_fwdelete()
4950 m = bfa_reqq_next(rp->bfa, BFA_REQQ_RPORT); in bfa_rport_send_fwspeed()
4952 bfa_trc(rp->bfa, rp->rport_info.speed); in bfa_rport_send_fwspeed()
4957 bfa_fn_lpu(rp->bfa)); in bfa_rport_send_fwspeed()
4964 bfa_reqq_produce(rp->bfa, BFA_REQQ_RPORT, m->mh); in bfa_rport_send_fwspeed()
4978 bfa_rport_isr(struct bfa_s *bfa, struct bfi_msg_s *m) in bfa_rport_isr() argument
4983 bfa_trc(bfa, m->mhdr.msg_id); in bfa_rport_isr()
4989 rp = BFA_RPORT_FROM_TAG(bfa, msg.create_rsp->bfa_handle); in bfa_rport_isr()
4992 bfa_rport_set_lunmask(bfa, rp); in bfa_rport_isr()
4998 rp = BFA_RPORT_FROM_TAG(bfa, msg.delete_rsp->bfa_handle); in bfa_rport_isr()
5000 bfa_rport_unset_lunmask(bfa, rp); in bfa_rport_isr()
5005 rp = BFA_RPORT_FROM_TAG(bfa, msg.qos_scn_evt->bfa_handle); in bfa_rport_isr()
5011 bfa_fcport_update_loop_info(BFA_FCPORT_MOD(bfa), in bfa_rport_isr()
5013 bfa_cb_rport_scn_online(bfa); in bfa_rport_isr()
5017 bfa_cb_rport_scn_offline(bfa); in bfa_rport_isr()
5021 rp = BFA_RPORT_FROM_TAG(bfa, msg.lip_scn->bfa_handle); in bfa_rport_isr()
5026 bfa_trc(bfa, m->mhdr.msg_id); in bfa_rport_isr()
5032 bfa_rport_res_recfg(struct bfa_s *bfa, u16 num_rport_fw) in bfa_rport_res_recfg() argument
5034 struct bfa_rport_mod_s *mod = BFA_RPORT_MOD(bfa); in bfa_rport_res_recfg()
5049 bfa_rport_create(struct bfa_s *bfa, void *rport_drv) in bfa_rport_create() argument
5053 rp = bfa_rport_alloc(BFA_RPORT_MOD(bfa)); in bfa_rport_create()
5058 rp->bfa = bfa; in bfa_rport_create()
5078 bfa_trc(rport->bfa, rport->rport_tag); in bfa_rport_online()
5100 bfa_rport_set_lunmask(struct bfa_s *bfa, struct bfa_rport_s *rp) in bfa_rport_set_lunmask() argument
5102 struct bfa_lps_mod_s *lps_mod = BFA_LPS_MOD(bfa); in bfa_rport_set_lunmask()
5111 bfa_fcpim_lunmask_rp_update(bfa, lp_wwn, rp_wwn, rp->rport_tag, lp_tag); in bfa_rport_set_lunmask()
5116 bfa_rport_unset_lunmask(struct bfa_s *bfa, struct bfa_rport_s *rp) in bfa_rport_unset_lunmask() argument
5118 struct bfa_lps_mod_s *lps_mod = BFA_LPS_MOD(bfa); in bfa_rport_unset_lunmask()
5126 bfa_fcpim_lunmask_rp_update(bfa, lp_wwn, rp_wwn, in bfa_rport_unset_lunmask()
5139 struct bfa_s *bfa) in bfa_sgpg_meminfo() argument
5141 struct bfa_sgpg_mod_s *sgpg_mod = BFA_SGPG_MOD(bfa); in bfa_sgpg_meminfo()
5142 struct bfa_mem_kva_s *sgpg_kva = BFA_MEM_SGPG_KVA(bfa); in bfa_sgpg_meminfo()
5173 bfa_sgpg_attach(struct bfa_s *bfa, void *bfad, struct bfa_iocfc_cfg_s *cfg, in bfa_sgpg_attach() argument
5176 struct bfa_sgpg_mod_s *mod = BFA_SGPG_MOD(bfa); in bfa_sgpg_attach()
5192 bfa_trc(bfa, cfg->drvcfg.num_sgpgs); in bfa_sgpg_attach()
5236 bfa_sgpg_malloc(struct bfa_s *bfa, struct list_head *sgpg_q, int nsgpgs) in bfa_sgpg_malloc() argument
5238 struct bfa_sgpg_mod_s *mod = BFA_SGPG_MOD(bfa); in bfa_sgpg_malloc()
5256 bfa_sgpg_mfree(struct bfa_s *bfa, struct list_head *sgpg_q, int nsgpg) in bfa_sgpg_mfree() argument
5258 struct bfa_sgpg_mod_s *mod = BFA_SGPG_MOD(bfa); in bfa_sgpg_mfree()
5278 bfa_sgpg_malloc(bfa, &wqe->sgpg_q, nsgpg); in bfa_sgpg_mfree()
5288 bfa_sgpg_wait(struct bfa_s *bfa, struct bfa_sgpg_wqe_s *wqe, int nsgpg) in bfa_sgpg_wait() argument
5290 struct bfa_sgpg_mod_s *mod = BFA_SGPG_MOD(bfa); in bfa_sgpg_wait()
5314 bfa_sgpg_wcancel(struct bfa_s *bfa, struct bfa_sgpg_wqe_s *wqe) in bfa_sgpg_wcancel() argument
5316 struct bfa_sgpg_mod_s *mod = BFA_SGPG_MOD(bfa); in bfa_sgpg_wcancel()
5322 bfa_sgpg_mfree(bfa, &wqe->sgpg_q, in bfa_sgpg_wcancel()
5347 struct bfa_uf_mod_s *ufm = BFA_UF_MOD(uf->bfa); in __bfa_cb_uf_recv()
5371 bfa_fn_lpu(ufm->bfa)); in claim_uf_post_msgs()
5397 uf->bfa = ufm->bfa; in claim_ufs()
5420 struct bfa_s *bfa) in bfa_uf_meminfo() argument
5422 struct bfa_uf_mod_s *ufm = BFA_UF_MOD(bfa); in bfa_uf_meminfo()
5423 struct bfa_mem_kva_s *uf_kva = BFA_MEM_UF_KVA(bfa); in bfa_uf_meminfo()
5447 bfa_uf_attach(struct bfa_s *bfa, void *bfad, struct bfa_iocfc_cfg_s *cfg, in bfa_uf_attach() argument
5450 struct bfa_uf_mod_s *ufm = BFA_UF_MOD(bfa); in bfa_uf_attach()
5452 ufm->bfa = bfa; in bfa_uf_attach()
5481 uf_post_msg = bfa_reqq_next(ufm->bfa, BFA_REQQ_FCXP); in bfa_uf_post()
5487 bfa_reqq_produce(ufm->bfa, BFA_REQQ_FCXP, uf_post_msg->mh); in bfa_uf_post()
5489 bfa_trc(ufm->bfa, uf->uf_tag); in bfa_uf_post()
5507 uf_recv(struct bfa_s *bfa, struct bfi_uf_frm_rcvd_s *m) in uf_recv() argument
5509 struct bfa_uf_mod_s *ufm = BFA_UF_MOD(bfa); in uf_recv()
5530 bfa_plog_fchdr(bfa->plog, BFA_PL_MID_HAL_UF, BFA_PL_EID_RX, in uf_recv()
5534 bfa_plog_fchdr_and_pl(bfa->plog, BFA_PL_MID_HAL_UF, in uf_recv()
5539 if (bfa->fcs) in uf_recv()
5542 bfa_cb_queue(bfa, &uf->hcb_qe, __bfa_cb_uf_recv, uf); in uf_recv()
5546 bfa_uf_iocdisable(struct bfa_s *bfa) in bfa_uf_iocdisable() argument
5548 struct bfa_uf_mod_s *ufm = BFA_UF_MOD(bfa); in bfa_uf_iocdisable()
5563 bfa_uf_start(struct bfa_s *bfa) in bfa_uf_start() argument
5565 bfa_uf_post_all(BFA_UF_MOD(bfa)); in bfa_uf_start()
5576 bfa_uf_recv_register(struct bfa_s *bfa, bfa_cb_uf_recv_t ufrecv, void *cbarg) in bfa_uf_recv_register() argument
5578 struct bfa_uf_mod_s *ufm = BFA_UF_MOD(bfa); in bfa_uf_recv_register()
5594 bfa_uf_put(BFA_UF_MOD(uf->bfa), uf); in bfa_uf_free()
5595 bfa_uf_post_all(BFA_UF_MOD(uf->bfa)); in bfa_uf_free()
5604 bfa_uf_isr(struct bfa_s *bfa, struct bfi_msg_s *msg) in bfa_uf_isr() argument
5606 bfa_trc(bfa, msg->mhdr.msg_id); in bfa_uf_isr()
5610 uf_recv(bfa, (struct bfi_uf_frm_rcvd_s *) msg); in bfa_uf_isr()
5614 bfa_trc(bfa, msg->mhdr.msg_id); in bfa_uf_isr()
5620 bfa_uf_res_recfg(struct bfa_s *bfa, u16 num_uf_fw) in bfa_uf_res_recfg() argument
5622 struct bfa_uf_mod_s *mod = BFA_UF_MOD(bfa); in bfa_uf_res_recfg()
5695 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(fcdiag->bfa); in bfa_fcdiag_set_busy_status()
5704 bfa_fcdiag_attach(struct bfa_s *bfa, void *bfad, struct bfa_iocfc_cfg_s *cfg, in bfa_fcdiag_attach() argument
5707 struct bfa_fcdiag_s *fcdiag = BFA_FCDIAG_MOD(bfa); in bfa_fcdiag_attach()
5710 fcdiag->bfa = bfa; in bfa_fcdiag_attach()
5711 fcdiag->trcmod = bfa->trcmod; in bfa_fcdiag_attach()
5713 dport->bfa = bfa; in bfa_fcdiag_attach()
5723 bfa_fcdiag_iocdisable(struct bfa_s *bfa) in bfa_fcdiag_iocdisable() argument
5725 struct bfa_fcdiag_s *fcdiag = BFA_FCDIAG_MOD(bfa); in bfa_fcdiag_iocdisable()
5767 req = bfa_reqq_next(fcdiag->bfa, fcdiag->qtest.queue); in bfa_fcdiag_queuetest_send()
5773 bfa_fn_lpu(fcdiag->bfa)); in bfa_fcdiag_queuetest_send()
5780 bfa_reqq_produce(fcdiag->bfa, fcdiag->qtest.queue, req->mh); in bfa_fcdiag_queuetest_send()
5867 lb_req = bfa_reqq_next(fcdiag->bfa, BFA_REQQ_DIAG); in bfa_fcdiag_loopback_send()
5873 bfa_fn_lpu(fcdiag->bfa)); in bfa_fcdiag_loopback_send()
5881 bfa_reqq_produce(fcdiag->bfa, BFA_REQQ_DIAG, lb_req->mh); in bfa_fcdiag_loopback_send()
5894 bfa_fcdiag_intr(struct bfa_s *bfa, struct bfi_msg_s *msg) in bfa_fcdiag_intr() argument
5896 struct bfa_fcdiag_s *fcdiag = BFA_FCDIAG_MOD(bfa); in bfa_fcdiag_intr()
5935 bfa_fcdiag_loopback(struct bfa_s *bfa, enum bfa_port_opmode opmode, in bfa_fcdiag_loopback() argument
5943 struct bfa_fcdiag_s *fcdiag = BFA_FCDIAG_MOD(bfa); in bfa_fcdiag_loopback()
5945 if (!bfa_iocfc_is_operational(bfa)) in bfa_fcdiag_loopback()
5949 if (bfa_fcport_is_pbcdisabled(bfa)) { in bfa_fcdiag_loopback()
5954 if (bfa_fcport_is_disabled(bfa) == BFA_FALSE) { in bfa_fcdiag_loopback()
5962 if (bfa_ioc_get_type(&bfa->ioc) == BFA_IOC_TYPE_FC) { in bfa_fcdiag_loopback()
5972 bfa_fcport_get_attr(bfa, &attr); in bfa_fcdiag_loopback()
5987 (bfa_asic_id_ct2(bfa->ioc.pcidev.device_id))) { in bfa_fcdiag_loopback()
5993 if (bfa_mfg_is_mezz(bfa->ioc.attr->card_type)) { in bfa_fcdiag_loopback()
5994 if (bfa_ioc_get_type(&bfa->ioc) == BFA_IOC_TYPE_FC) { in bfa_fcdiag_loopback()
6008 if (bfa_fcport_is_dport(bfa)) { in bfa_fcdiag_loopback()
6047 bfa_fcdiag_queuetest(struct bfa_s *bfa, u32 force, u32 queue, in bfa_fcdiag_queuetest() argument
6051 struct bfa_fcdiag_s *fcdiag = BFA_FCDIAG_MOD(bfa); in bfa_fcdiag_queuetest()
6056 if (!force && !bfa_iocfc_is_operational(bfa)) in bfa_fcdiag_queuetest()
6090 bfa_timer_start(bfa, &fcdiag->qtest.timer, in bfa_fcdiag_queuetest()
6106 bfa_fcdiag_lb_is_running(struct bfa_s *bfa) in bfa_fcdiag_lb_is_running() argument
6108 struct bfa_fcdiag_s *fcdiag = BFA_FCDIAG_MOD(bfa); in bfa_fcdiag_lb_is_running()
6139 bfa_trc(dport->bfa, event); in bfa_dport_sm_disabled()
6143 bfa_fcport_dportenable(dport->bfa); in bfa_dport_sm_disabled()
6160 bfa_fcport_ddportenable(dport->bfa); in bfa_dport_sm_disabled()
6165 bfa_trc(dport->bfa, dport->i2hmsg.scn.state); in bfa_dport_sm_disabled()
6171 bfa_sm_fault(dport->bfa, event); in bfa_dport_sm_disabled()
6179 bfa_trc(dport->bfa, event); in bfa_dport_sm_enabling_qwait()
6194 bfa_sm_fault(dport->bfa, event); in bfa_dport_sm_enabling_qwait()
6201 bfa_trc(dport->bfa, event); in bfa_dport_sm_enabling()
6218 bfa_fcport_dportdisable(dport->bfa); in bfa_dport_sm_enabling()
6228 bfa_sm_fault(dport->bfa, event); in bfa_dport_sm_enabling()
6235 bfa_trc(dport->bfa, event); in bfa_dport_sm_enabled()
6246 bfa_fcport_dportdisable(dport->bfa); in bfa_dport_sm_enabled()
6277 bfa_fcport_ddportdisable(dport->bfa); in bfa_dport_sm_enabled()
6288 bfa_fcport_ddportdisable(dport->bfa); in bfa_dport_sm_enabled()
6295 bfa_trc(dport->bfa, dport->i2hmsg.scn.state); in bfa_dport_sm_enabled()
6296 bfa_sm_fault(dport->bfa, event); in bfa_dport_sm_enabled()
6300 bfa_sm_fault(dport->bfa, event); in bfa_dport_sm_enabled()
6308 bfa_trc(dport->bfa, event); in bfa_dport_sm_disabling_qwait()
6327 bfa_sm_fault(dport->bfa, event); in bfa_dport_sm_disabling_qwait()
6334 bfa_trc(dport->bfa, event); in bfa_dport_sm_disabling()
6352 bfa_sm_fault(dport->bfa, event); in bfa_dport_sm_disabling()
6360 bfa_trc(dport->bfa, event); in bfa_dport_sm_starting_qwait()
6375 bfa_sm_fault(dport->bfa, event); in bfa_dport_sm_starting_qwait()
6382 bfa_trc(dport->bfa, event); in bfa_dport_sm_starting()
6406 bfa_sm_fault(dport->bfa, event); in bfa_dport_sm_starting()
6414 bfa_trc(dport->bfa, event); in bfa_dport_sm_dynamic_disabling()
6422 bfa_fcport_enable(dport->bfa); in bfa_dport_sm_dynamic_disabling()
6426 bfa_trc(dport->bfa, dport->i2hmsg.scn.state); in bfa_dport_sm_dynamic_disabling()
6427 bfa_sm_fault(dport->bfa, event); in bfa_dport_sm_dynamic_disabling()
6438 bfa_sm_fault(dport->bfa, event); in bfa_dport_sm_dynamic_disabling()
6446 bfa_trc(dport->bfa, event); in bfa_dport_sm_dynamic_disabling_qwait()
6465 bfa_sm_fault(dport->bfa, event); in bfa_dport_sm_dynamic_disabling_qwait()
6477 m = bfa_reqq_next(dport->bfa, BFA_REQQ_DIAG); in bfa_dport_send_req()
6479 bfa_reqq_wait(dport->bfa, BFA_REQQ_PORT, &dport->reqq_wait); in bfa_dport_send_req()
6484 bfa_fn_lpu(dport->bfa)); in bfa_dport_send_req()
6494 bfa_reqq_produce(dport->bfa, BFA_REQQ_DIAG, m->mh); in bfa_dport_send_req()
6517 bfa_trc(dport->bfa, msg->status); in bfa_dport_req_comp()
6518 bfa_trc(dport->bfa, dport->rp_pwwn); in bfa_dport_req_comp()
6519 bfa_trc(dport->bfa, dport->rp_nwwn); in bfa_dport_req_comp()
6523 bfa_trc(dport->bfa, msg->status); in bfa_dport_req_comp()
6550 bfa_trc(dport->bfa, msg->state); in bfa_dport_scn()
6556 bfa_trc(dport->bfa, dport->result.end_time); in bfa_dport_scn()
6559 bfa_trc(dport->bfa, dport->result.status); in bfa_dport_scn()
6571 bfa_trc(dport->bfa, dport->result.roundtrip_latency); in bfa_dport_scn()
6572 bfa_trc(dport->bfa, dport->result.est_cable_distance); in bfa_dport_scn()
6573 bfa_trc(dport->bfa, dport->result.buffer_required); in bfa_dport_scn()
6574 bfa_trc(dport->bfa, dport->result.frmsz); in bfa_dport_scn()
6575 bfa_trc(dport->bfa, dport->result.speed); in bfa_dport_scn()
6580 bfa_trc(dport->bfa, dport->result.subtest[i].status); in bfa_dport_scn()
6606 bfa_trc(dport->bfa, subtesttype); in bfa_dport_scn()
6607 bfa_trc(dport->bfa, in bfa_dport_scn()
6619 bfa_sm_fault(dport->bfa, msg->state); in bfa_dport_scn()
6631 bfa_dport_enable(struct bfa_s *bfa, u32 lpcnt, u32 pat, in bfa_dport_enable() argument
6634 struct bfa_fcdiag_s *fcdiag = BFA_FCDIAG_MOD(bfa); in bfa_dport_enable()
6640 if (bfa_mfg_is_mezz(dport->bfa->ioc.attr->card_type)) { in bfa_dport_enable()
6641 bfa_trc(dport->bfa, BFA_STATUS_PBC); in bfa_dport_enable()
6648 if (!(bfa_asic_id_ct2(dport->bfa->ioc.pcidev.device_id))) { in bfa_dport_enable()
6649 bfa_trc(dport->bfa, dport->bfa->ioc.pcidev.device_id); in bfa_dport_enable()
6656 if (!bfa_iocfc_is_operational(bfa)) in bfa_dport_enable()
6660 if (bfa_fcport_is_pbcdisabled(bfa)) { in bfa_dport_enable()
6661 bfa_trc(dport->bfa, BFA_STATUS_PBC); in bfa_dport_enable()
6668 if (bfa_ioc_get_type(&bfa->ioc) != BFA_IOC_TYPE_FC) { in bfa_dport_enable()
6669 bfa_trc(dport->bfa, bfa_ioc_get_type(&bfa->ioc)); in bfa_dport_enable()
6676 if ((bfa_fcport_get_cfg_topology(bfa) == BFA_PORT_TOPOLOGY_LOOP) || in bfa_dport_enable()
6677 (bfa_fcport_get_topology(bfa) == BFA_PORT_TOPOLOGY_LOOP)) { in bfa_dport_enable()
6678 bfa_trc(dport->bfa, 0); in bfa_dport_enable()
6685 if (bfa_fcport_is_trunk_enabled(bfa)) { in bfa_dport_enable()
6686 bfa_trc(dport->bfa, 0); in bfa_dport_enable()
6693 if (bfa_fcdiag_lb_is_running(bfa)) { in bfa_dport_enable()
6694 bfa_trc(dport->bfa, 0); in bfa_dport_enable()
6701 if ((bfa_fcport_is_disabled(bfa) == BFA_FALSE) && in bfa_dport_enable()
6702 (bfa_fcport_is_dport(bfa) == BFA_FALSE)) { in bfa_dport_enable()
6703 bfa_trc(dport->bfa, 0); in bfa_dport_enable()
6723 bfa_trc(dport->bfa, 0); in bfa_dport_enable()
6727 bfa_trc(dport->bfa, lpcnt); in bfa_dport_enable()
6728 bfa_trc(dport->bfa, pat); in bfa_dport_enable()
6744 bfa_dport_disable(struct bfa_s *bfa, bfa_cb_diag_t cbfn, void *cbarg) in bfa_dport_disable() argument
6746 struct bfa_fcdiag_s *fcdiag = BFA_FCDIAG_MOD(bfa); in bfa_dport_disable()
6749 if (bfa_ioc_is_disabled(&bfa->ioc)) in bfa_dport_disable()
6753 if (bfa_fcport_is_pbcdisabled(bfa)) { in bfa_dport_disable()
6754 bfa_trc(dport->bfa, BFA_STATUS_PBC); in bfa_dport_disable()
6768 if ((bfa_fcport_is_disabled(bfa) == BFA_FALSE) && in bfa_dport_disable()
6769 (bfa_fcport_is_dport(bfa) == BFA_FALSE)) { in bfa_dport_disable()
6770 bfa_trc(dport->bfa, 0); in bfa_dport_disable()
6784 bfa_trc(dport->bfa, 0); in bfa_dport_disable()
6801 bfa_dport_start(struct bfa_s *bfa, u32 lpcnt, u32 pat, in bfa_dport_start() argument
6804 struct bfa_fcdiag_s *fcdiag = BFA_FCDIAG_MOD(bfa); in bfa_dport_start()
6810 if (!bfa_iocfc_is_operational(bfa)) in bfa_dport_start()
6830 bfa_trc(dport->bfa, 0); in bfa_dport_start()
6843 bfa_trc(dport->bfa, lpcnt); in bfa_dport_start()
6844 bfa_trc(dport->bfa, pat); in bfa_dport_start()
6862 bfa_dport_show(struct bfa_s *bfa, struct bfa_diag_dport_result_s *result) in bfa_dport_show() argument
6864 struct bfa_fcdiag_s *fcdiag = BFA_FCDIAG_MOD(bfa); in bfa_dport_show()
6870 if (!bfa_iocfc_is_operational(bfa)) in bfa_dport_show()
6883 bfa_trc(dport->bfa, 0); in bfa_dport_show()