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);
453 struct bfa_s *bfa) in bfa_fcxp_meminfo() argument
455 struct bfa_fcxp_mod_s *fcxp_mod = BFA_FCXP_MOD(bfa); in bfa_fcxp_meminfo()
456 struct bfa_mem_kva_s *fcxp_kva = BFA_MEM_FCXP_KVA(bfa); in bfa_fcxp_meminfo()
490 bfa_fcxp_attach(struct bfa_s *bfa, void *bfad, struct bfa_iocfc_cfg_s *cfg, in bfa_fcxp_attach() argument
493 struct bfa_fcxp_mod_s *mod = BFA_FCXP_MOD(bfa); in bfa_fcxp_attach()
495 mod->bfa = bfa; in bfa_fcxp_attach()
512 bfa_fcxp_iocdisable(struct bfa_s *bfa) in bfa_fcxp_iocdisable() argument
514 struct bfa_fcxp_mod_s *mod = BFA_FCXP_MOD(bfa); in bfa_fcxp_iocdisable()
530 bfa_cb_queue(bfa, &fcxp->hcb_qe, in bfa_fcxp_iocdisable()
554 struct bfa_s *bfa, in bfa_fcxp_init_reqrsp() argument
565 WARN_ON(bfa == NULL); in bfa_fcxp_init_reqrsp()
567 bfa_trc(bfa, fcxp->fcxp_tag); in bfa_fcxp_init_reqrsp()
592 void *caller, struct bfa_s *bfa, int nreq_sgles, in bfa_fcxp_init() argument
599 WARN_ON(bfa == NULL); in bfa_fcxp_init()
601 bfa_trc(bfa, fcxp->fcxp_tag); in bfa_fcxp_init()
605 bfa_fcxp_init_reqrsp(fcxp, bfa, in bfa_fcxp_init()
610 bfa_fcxp_init_reqrsp(fcxp, bfa, in bfa_fcxp_init()
629 bfa_trc(mod->bfa, fcxp->fcxp_tag); in bfa_fcxp_put()
631 bfa_fcxp_init(fcxp, wqe->caller, wqe->bfa, wqe->nreq_sgles, in bfa_fcxp_put()
672 hal_fcxp_send_comp(struct bfa_s *bfa, struct bfi_fcxp_send_rsp_s *fcxp_rsp) in hal_fcxp_send_comp() argument
674 struct bfa_fcxp_mod_s *mod = BFA_FCXP_MOD(bfa); in hal_fcxp_send_comp()
678 bfa_trc(bfa, fcxp_tag); in hal_fcxp_send_comp()
695 hal_fcxp_rx_plog(mod->bfa, fcxp, fcxp_rsp); in hal_fcxp_send_comp()
698 bfa_trc(mod->bfa, (NULL == fcxp->caller)); in hal_fcxp_send_comp()
713 bfa_cb_queue(bfa, &fcxp->hcb_qe, in hal_fcxp_send_comp()
717 bfa_trc(bfa, (NULL == fcxp->send_cbfn)); in hal_fcxp_send_comp()
722 hal_fcxp_tx_plog(struct bfa_s *bfa, u32 reqlen, struct bfa_fcxp_s *fcxp, in hal_fcxp_tx_plog() argument
733 bfa_plog_fchdr_and_pl(bfa->plog, BFA_PL_MID_HAL_FCXP, in hal_fcxp_tx_plog()
738 bfa_plog_fchdr(bfa->plog, BFA_PL_MID_HAL_FCXP, in hal_fcxp_tx_plog()
744 bfa_plog_fchdr(bfa->plog, BFA_PL_MID_HAL_FCXP, BFA_PL_EID_TX, in hal_fcxp_tx_plog()
750 hal_fcxp_rx_plog(struct bfa_s *bfa, struct bfa_fcxp_s *fcxp, in hal_fcxp_rx_plog() argument
758 bfa_plog_fchdr_and_pl(bfa->plog, BFA_PL_MID_HAL_FCXP, in hal_fcxp_rx_plog()
763 bfa_plog_fchdr(bfa->plog, BFA_PL_MID_HAL_FCXP, in hal_fcxp_rx_plog()
769 bfa_plog_fchdr(bfa->plog, BFA_PL_MID_HAL_FCXP, BFA_PL_EID_RX, in hal_fcxp_rx_plog()
781 struct bfa_s *bfa = fcxp->fcxp_mod->bfa; in bfa_fcxp_qresume() local
785 send_req = bfa_reqq_next(bfa, BFA_REQQ_FCXP); in bfa_fcxp_qresume()
795 struct bfa_s *bfa = fcxp->fcxp_mod->bfa; in bfa_fcxp_queue() local
801 bfa_fn_lpu(bfa)); in bfa_fcxp_queue()
815 send_req->lp_fwtag = bfa_lps_get_fwtag(bfa, reqi->lp_tag); in bfa_fcxp_queue()
861 hal_fcxp_tx_plog(bfa, reqi->req_tot_len, fcxp, &reqi->fchs); in bfa_fcxp_queue()
863 bfa_reqq_produce(bfa, BFA_REQQ_FCXP, send_req->mh); in bfa_fcxp_queue()
865 bfa_trc(bfa, bfa_reqq_pi(bfa, BFA_REQQ_FCXP)); in bfa_fcxp_queue()
866 bfa_trc(bfa, bfa_reqq_ci(bfa, BFA_REQQ_FCXP)); in bfa_fcxp_queue()
895 bfa_fcxp_req_rsp_alloc(void *caller, struct bfa_s *bfa, int nreq_sgles, in bfa_fcxp_req_rsp_alloc() argument
903 WARN_ON(bfa == NULL); in bfa_fcxp_req_rsp_alloc()
905 fcxp = bfa_fcxp_get(BFA_FCXP_MOD(bfa), req); in bfa_fcxp_req_rsp_alloc()
909 bfa_trc(bfa, fcxp->fcxp_tag); in bfa_fcxp_req_rsp_alloc()
911 bfa_fcxp_init(fcxp, caller, bfa, nreq_sgles, nrsp_sgles, req_sga_cbfn, in bfa_fcxp_req_rsp_alloc()
979 bfa_trc(mod->bfa, fcxp->fcxp_tag); in bfa_fcxp_free()
1010 struct bfa_s *bfa = fcxp->fcxp_mod->bfa; in bfa_fcxp_send() local
1015 bfa_trc(bfa, fcxp->fcxp_tag); in bfa_fcxp_send()
1035 send_req = bfa_reqq_next(bfa, BFA_REQQ_FCXP); in bfa_fcxp_send()
1037 bfa_trc(bfa, fcxp->fcxp_tag); in bfa_fcxp_send()
1039 bfa_reqq_wait(bfa, BFA_REQQ_FCXP, &fcxp->reqq_wqe); in bfa_fcxp_send()
1056 bfa_trc(fcxp->fcxp_mod->bfa, fcxp->fcxp_tag); in bfa_fcxp_abort()
1062 bfa_fcxp_req_rsp_alloc_wait(struct bfa_s *bfa, struct bfa_fcxp_wqe_s *wqe, in bfa_fcxp_req_rsp_alloc_wait() argument
1070 struct bfa_fcxp_mod_s *mod = BFA_FCXP_MOD(bfa); in bfa_fcxp_req_rsp_alloc_wait()
1080 wqe->bfa = bfa; in bfa_fcxp_req_rsp_alloc_wait()
1095 bfa_fcxp_walloc_cancel(struct bfa_s *bfa, struct bfa_fcxp_wqe_s *wqe) in bfa_fcxp_walloc_cancel() argument
1097 struct bfa_fcxp_mod_s *mod = BFA_FCXP_MOD(bfa); in bfa_fcxp_walloc_cancel()
1122 bfa_fcxp_isr(struct bfa_s *bfa, struct bfi_msg_s *msg) in bfa_fcxp_isr() argument
1126 hal_fcxp_send_comp(bfa, (struct bfi_fcxp_send_rsp_s *) msg); in bfa_fcxp_isr()
1130 bfa_trc(bfa, msg->mhdr.msg_id); in bfa_fcxp_isr()
1136 bfa_fcxp_get_maxrsp(struct bfa_s *bfa) in bfa_fcxp_get_maxrsp() argument
1138 struct bfa_fcxp_mod_s *mod = BFA_FCXP_MOD(bfa); in bfa_fcxp_get_maxrsp()
1144 bfa_fcxp_res_recfg(struct bfa_s *bfa, u16 num_fcxp_fw) in bfa_fcxp_res_recfg() argument
1146 struct bfa_fcxp_mod_s *mod = BFA_FCXP_MOD(bfa); in bfa_fcxp_res_recfg()
1171 bfa_trc(lps->bfa, lps->bfa_tag); in bfa_lps_sm_init()
1172 bfa_trc(lps->bfa, event); in bfa_lps_sm_init()
1176 if (bfa_reqq_full(lps->bfa, lps->reqq)) { in bfa_lps_sm_init()
1178 bfa_reqq_wait(lps->bfa, lps->reqq, &lps->wqe); in bfa_lps_sm_init()
1185 bfa_plog_str(lps->bfa->plog, BFA_PL_MID_LPS, in bfa_lps_sm_init()
1188 bfa_plog_str(lps->bfa->plog, BFA_PL_MID_LPS, in bfa_lps_sm_init()
1219 bfa_sm_fault(lps->bfa, event); in bfa_lps_sm_init()
1229 bfa_trc(lps->bfa, lps->bfa_tag); in bfa_lps_sm_login()
1230 bfa_trc(lps->bfa, event); in bfa_lps_sm_login()
1237 bfa_plog_str(lps->bfa->plog, BFA_PL_MID_LPS, in bfa_lps_sm_login()
1240 bfa_plog_str(lps->bfa->plog, BFA_PL_MID_LPS, in bfa_lps_sm_login()
1243 bfa_trc(lps->bfa, lps->fport); in bfa_lps_sm_login()
1244 bfa_trc(lps->bfa, lps->lp_pid); in bfa_lps_sm_login()
1251 bfa_plog_str(lps->bfa->plog, BFA_PL_MID_LPS, in bfa_lps_sm_login()
1255 bfa_plog_str(lps->bfa->plog, BFA_PL_MID_LPS, in bfa_lps_sm_login()
1268 bfa_trc(lps->bfa, lps->fport); in bfa_lps_sm_login()
1269 bfa_trc(lps->bfa, lps->lp_pid); in bfa_lps_sm_login()
1273 bfa_sm_fault(lps->bfa, event); in bfa_lps_sm_login()
1283 bfa_trc(lps->bfa, lps->bfa_tag); in bfa_lps_sm_loginwait()
1284 bfa_trc(lps->bfa, event); in bfa_lps_sm_loginwait()
1307 bfa_sm_fault(lps->bfa, event); in bfa_lps_sm_loginwait()
1317 bfa_trc(lps->bfa, lps->bfa_tag); in bfa_lps_sm_online()
1318 bfa_trc(lps->bfa, event); in bfa_lps_sm_online()
1322 if (bfa_reqq_full(lps->bfa, lps->reqq)) { in bfa_lps_sm_online()
1324 bfa_reqq_wait(lps->bfa, lps->reqq, &lps->wqe); in bfa_lps_sm_online()
1329 bfa_plog_str(lps->bfa->plog, BFA_PL_MID_LPS, in bfa_lps_sm_online()
1338 bfa_plog_str(lps->bfa->plog, BFA_PL_MID_LPS, in bfa_lps_sm_online()
1343 if (bfa_reqq_full(lps->bfa, lps->reqq)) { in bfa_lps_sm_online()
1345 bfa_reqq_wait(lps->bfa, lps->reqq, &lps->wqe); in bfa_lps_sm_online()
1356 bfa_sm_fault(lps->bfa, event); in bfa_lps_sm_online()
1366 bfa_trc(lps->bfa, lps->bfa_tag); in bfa_lps_sm_online_n2n_pid_wait()
1367 bfa_trc(lps->bfa, event); in bfa_lps_sm_online_n2n_pid_wait()
1377 bfa_plog_str(lps->bfa->plog, BFA_PL_MID_LPS, in bfa_lps_sm_online_n2n_pid_wait()
1387 bfa_plog_str(lps->bfa->plog, BFA_PL_MID_LPS, in bfa_lps_sm_online_n2n_pid_wait()
1398 bfa_sm_fault(lps->bfa, event); in bfa_lps_sm_online_n2n_pid_wait()
1408 bfa_trc(lps->bfa, lps->bfa_tag); in bfa_lps_sm_logout()
1409 bfa_trc(lps->bfa, event); in bfa_lps_sm_logout()
1423 bfa_sm_fault(lps->bfa, event); in bfa_lps_sm_logout()
1433 bfa_trc(lps->bfa, lps->bfa_tag); in bfa_lps_sm_logowait()
1434 bfa_trc(lps->bfa, event); in bfa_lps_sm_logowait()
1449 bfa_sm_fault(lps->bfa, event); in bfa_lps_sm_logowait()
1464 struct bfa_s *bfa) in bfa_lps_meminfo() argument
1466 struct bfa_mem_kva_s *lps_kva = BFA_MEM_LPS_KVA(bfa); in bfa_lps_meminfo()
1480 bfa_lps_attach(struct bfa_s *bfa, void *bfad, struct bfa_iocfc_cfg_s *cfg, in bfa_lps_attach() argument
1483 struct bfa_lps_mod_s *mod = BFA_LPS_MOD(bfa); in bfa_lps_attach()
1501 lps->bfa = bfa; in bfa_lps_attach()
1513 bfa_lps_iocdisable(struct bfa_s *bfa) in bfa_lps_iocdisable() argument
1515 struct bfa_lps_mod_s *mod = BFA_LPS_MOD(bfa); in bfa_lps_iocdisable()
1534 bfa_lps_login_rsp(struct bfa_s *bfa, struct bfi_lps_login_rsp_s *rsp) in bfa_lps_login_rsp() argument
1536 struct bfa_lps_mod_s *mod = BFA_LPS_MOD(bfa); in bfa_lps_login_rsp()
1589 struct bfa_s *bfa = first_lps->bfa; in bfa_lps_no_res() local
1590 struct bfa_lps_mod_s *mod = BFA_LPS_MOD(bfa); in bfa_lps_no_res()
1594 bfa_trc(bfa, count); in bfa_lps_no_res()
1601 bfa_trc(bfa, lps->bfa_tag); in bfa_lps_no_res()
1615 bfa_lps_logout_rsp(struct bfa_s *bfa, struct bfi_lps_logout_rsp_s *rsp) in bfa_lps_logout_rsp() argument
1617 struct bfa_lps_mod_s *mod = BFA_LPS_MOD(bfa); in bfa_lps_logout_rsp()
1630 bfa_lps_rx_cvl_event(struct bfa_s *bfa, struct bfi_lps_cvl_event_s *cvl) in bfa_lps_rx_cvl_event() argument
1632 struct bfa_lps_mod_s *mod = BFA_LPS_MOD(bfa); in bfa_lps_rx_cvl_event()
1657 struct bfa_lps_mod_s *mod = BFA_LPS_MOD(lps->bfa); in bfa_lps_free()
1670 struct bfa_lps_mod_s *mod = BFA_LPS_MOD(lps->bfa); in bfa_lps_send_login()
1673 m = bfa_reqq_next(lps->bfa, lps->reqq); in bfa_lps_send_login()
1677 bfa_fn_lpu(lps->bfa)); in bfa_lps_send_login()
1687 bfa_reqq_produce(lps->bfa, lps->reqq, m->mh); in bfa_lps_send_login()
1700 m = bfa_reqq_next(lps->bfa, lps->reqq); in bfa_lps_send_logout()
1704 bfa_fn_lpu(lps->bfa)); in bfa_lps_send_logout()
1708 bfa_reqq_produce(lps->bfa, lps->reqq, m->mh); in bfa_lps_send_logout()
1719 m = bfa_reqq_next(lps->bfa, lps->reqq); in bfa_lps_send_set_n2n_pid()
1723 bfa_fn_lpu(lps->bfa)); in bfa_lps_send_set_n2n_pid()
1727 bfa_reqq_produce(lps->bfa, lps->reqq, m->mh); in bfa_lps_send_set_n2n_pid()
1742 bfa_cb_lps_fdisc_comp(lps->bfa->bfad, lps->uarg, lps->status); in bfa_lps_login_comp_cb()
1744 bfa_cb_lps_flogi_comp(lps->bfa->bfad, lps->uarg, lps->status); in bfa_lps_login_comp_cb()
1753 if (!lps->bfa->fcs) { in bfa_lps_login_comp()
1754 bfa_cb_queue(lps->bfa, &lps->hcb_qe, bfa_lps_login_comp_cb, in bfa_lps_login_comp()
1760 bfa_cb_lps_fdisc_comp(lps->bfa->bfad, lps->uarg, lps->status); in bfa_lps_login_comp()
1762 bfa_cb_lps_flogi_comp(lps->bfa->bfad, lps->uarg, lps->status); in bfa_lps_login_comp()
1777 bfa_cb_lps_fdisclogo_comp(lps->bfa->bfad, lps->uarg); in bfa_lps_logout_comp_cb()
1779 bfa_cb_lps_flogo_comp(lps->bfa->bfad, lps->uarg); in bfa_lps_logout_comp_cb()
1788 if (!lps->bfa->fcs) { in bfa_lps_logout_comp()
1789 bfa_cb_queue(lps->bfa, &lps->hcb_qe, bfa_lps_logout_comp_cb, in bfa_lps_logout_comp()
1794 bfa_cb_lps_fdisclogo_comp(lps->bfa->bfad, lps->uarg); in bfa_lps_logout_comp()
1810 bfa_cb_lps_cvl_event(lps->bfa->bfad, lps->uarg); in bfa_lps_cvl_event_cb()
1820 if (!lps->bfa->fcs) { in bfa_lps_cvl_event()
1821 bfa_cb_queue(lps->bfa, &lps->hcb_qe, bfa_lps_cvl_event_cb, in bfa_lps_cvl_event()
1828 bfa_cb_lps_cvl_event(lps->bfa->bfad, lps->uarg); in bfa_lps_cvl_event()
1838 bfa_lps_get_max_vport(struct bfa_s *bfa) in bfa_lps_get_max_vport() argument
1840 if (bfa_ioc_devid(&bfa->ioc) == BFA_PCI_DEVICE_ID_CT) in bfa_lps_get_max_vport()
1850 bfa_lps_alloc(struct bfa_s *bfa) in bfa_lps_alloc() argument
1852 struct bfa_lps_mod_s *mod = BFA_LPS_MOD(bfa); in bfa_lps_alloc()
1921 bfa_lps_get_fwtag(struct bfa_s *bfa, u8 lp_tag) in bfa_lps_get_fwtag() argument
1923 struct bfa_lps_mod_s *mod = BFA_LPS_MOD(bfa); in bfa_lps_get_fwtag()
1932 bfa_lps_get_tag_from_pid(struct bfa_s *bfa, u32 pid) in bfa_lps_get_tag_from_pid() argument
1934 struct bfa_lps_mod_s *mod = BFA_LPS_MOD(bfa); in bfa_lps_get_tag_from_pid()
1952 bfa_lps_get_base_pid(struct bfa_s *bfa) in bfa_lps_get_base_pid() argument
1954 struct bfa_lps_mod_s *mod = BFA_LPS_MOD(bfa); in bfa_lps_get_base_pid()
1965 bfa_trc(lps->bfa, lps->bfa_tag); in bfa_lps_set_n2n_pid()
1966 bfa_trc(lps->bfa, n2n_pid); in bfa_lps_set_n2n_pid()
1976 bfa_lps_isr(struct bfa_s *bfa, struct bfi_msg_s *m) in bfa_lps_isr() argument
1980 bfa_trc(bfa, m->mhdr.msg_id); in bfa_lps_isr()
1985 bfa_lps_login_rsp(bfa, msg.login_rsp); in bfa_lps_isr()
1989 bfa_lps_logout_rsp(bfa, msg.logout_rsp); in bfa_lps_isr()
1993 bfa_lps_rx_cvl_event(bfa, msg.cvl_event); in bfa_lps_isr()
1997 bfa_trc(bfa, m->mhdr.msg_id); in bfa_lps_isr()
2005 struct bfad_s *bfad = (struct bfad_s *)fcport->bfa->bfad; in bfa_fcport_aen_post()
2012 aen_entry->aen_data.port.ioc_type = bfa_get_type(fcport->bfa); in bfa_fcport_aen_post()
2016 bfad_im_post_vendor_event(aen_entry, bfad, ++fcport->bfa->bfa_aen_seq, in bfa_fcport_aen_post()
2027 bfa_trc(fcport->bfa, event); in bfa_fcport_sm_uninit()
2037 bfa_trc(fcport->bfa, BFA_TRUE); in bfa_fcport_sm_uninit()
2040 bfa_trc(fcport->bfa, BFA_FALSE); in bfa_fcport_sm_uninit()
2067 bfa_sm_fault(fcport->bfa, event); in bfa_fcport_sm_uninit()
2076 struct bfad_s *bfad = (struct bfad_s *)fcport->bfa->bfad; in bfa_fcport_sm_enabling_qwait()
2077 bfa_trc(fcport->bfa, event); in bfa_fcport_sm_enabling_qwait()
2103 bfa_plog_str(fcport->bfa->plog, BFA_PL_MID_HAL, in bfa_fcport_sm_enabling_qwait()
2131 bfa_sm_fault(fcport->bfa, event); in bfa_fcport_sm_enabling_qwait()
2140 struct bfad_s *bfad = (struct bfad_s *)fcport->bfa->bfad; in bfa_fcport_sm_enabling()
2141 bfa_trc(fcport->bfa, event); in bfa_fcport_sm_enabling()
2170 bfa_plog_str(fcport->bfa->plog, BFA_PL_MID_HAL, in bfa_fcport_sm_enabling()
2193 bfa_sm_fault(fcport->bfa, event); in bfa_fcport_sm_enabling()
2203 struct bfad_s *bfad = (struct bfad_s *)fcport->bfa->bfad; in bfa_fcport_sm_linkdown()
2205 bfa_trc(fcport->bfa, event); in bfa_fcport_sm_linkdown()
2212 bfa_plog_str(fcport->bfa->plog, BFA_PL_MID_HAL, in bfa_fcport_sm_linkdown()
2214 if (!bfa_ioc_get_fcmode(&fcport->bfa->ioc)) { in bfa_fcport_sm_linkdown()
2216 bfa_trc(fcport->bfa, in bfa_fcport_sm_linkdown()
2218 bfa_trc(fcport->bfa, in bfa_fcport_sm_linkdown()
2222 bfa_plog_str(fcport->bfa->plog, BFA_PL_MID_HAL, in bfa_fcport_sm_linkdown()
2226 bfa_plog_str(fcport->bfa->plog, BFA_PL_MID_HAL, in bfa_fcport_sm_linkdown()
2262 bfa_plog_str(fcport->bfa->plog, BFA_PL_MID_HAL, in bfa_fcport_sm_linkdown()
2285 bfa_sm_fault(fcport->bfa, event); in bfa_fcport_sm_linkdown()
2294 struct bfad_s *bfad = (struct bfad_s *)fcport->bfa->bfad; in bfa_fcport_sm_linkup()
2296 bfa_trc(fcport->bfa, event); in bfa_fcport_sm_linkup()
2314 bfa_plog_str(fcport->bfa->plog, BFA_PL_MID_HAL, in bfa_fcport_sm_linkup()
2329 bfa_plog_str(fcport->bfa->plog, BFA_PL_MID_HAL, in bfa_fcport_sm_linkup()
2332 if (BFA_PORT_IS_DISABLED(fcport->bfa)) { in bfa_fcport_sm_linkup()
2348 if (BFA_PORT_IS_DISABLED(fcport->bfa)) { in bfa_fcport_sm_linkup()
2365 if (BFA_PORT_IS_DISABLED(fcport->bfa)) { in bfa_fcport_sm_linkup()
2384 bfa_sm_fault(fcport->bfa, event); in bfa_fcport_sm_linkup()
2392 bfa_trc(fcport->bfa, event); in bfa_fcport_sm_disabling_qwait()
2435 bfa_sm_fault(fcport->bfa, event); in bfa_fcport_sm_disabling_qwait()
2443 bfa_trc(fcport->bfa, event); in bfa_fcport_sm_toggling_qwait()
2482 bfa_sm_fault(fcport->bfa, event); in bfa_fcport_sm_toggling_qwait()
2491 struct bfad_s *bfad = (struct bfad_s *)fcport->bfa->bfad; in bfa_fcport_sm_disabling()
2492 bfa_trc(fcport->bfa, event); in bfa_fcport_sm_disabling()
2512 bfa_plog_str(fcport->bfa->plog, BFA_PL_MID_HAL, in bfa_fcport_sm_disabling()
2537 bfa_sm_fault(fcport->bfa, event); in bfa_fcport_sm_disabling()
2546 struct bfad_s *bfad = (struct bfad_s *)fcport->bfa->bfad; in bfa_fcport_sm_disabled()
2547 bfa_trc(fcport->bfa, event); in bfa_fcport_sm_disabled()
2567 bfa_plog_str(fcport->bfa->plog, BFA_PL_MID_HAL, in bfa_fcport_sm_disabled()
2594 bfa_sm_fault(fcport->bfa, event); in bfa_fcport_sm_disabled()
2602 bfa_trc(fcport->bfa, event); in bfa_fcport_sm_stopped()
2628 bfa_trc(fcport->bfa, event); in bfa_fcport_sm_iocdown()
2654 bfa_trc(fcport->bfa, event); in bfa_fcport_sm_iocfail()
2676 bfa_trc(fcport->bfa, event); in bfa_fcport_sm_dport()
2701 bfa_sm_fault(fcport->bfa, event); in bfa_fcport_sm_dport()
2709 bfa_trc(fcport->bfa, event); in bfa_fcport_sm_ddport()
2735 bfa_sm_fault(fcport->bfa, event); in bfa_fcport_sm_ddport()
2743 bfa_trc(fcport->bfa, event); in bfa_fcport_sm_faa_misconfig()
2762 bfa_plog_str(fcport->bfa->plog, BFA_PL_MID_HAL, in bfa_fcport_sm_faa_misconfig()
2778 bfa_sm_fault(fcport->bfa, event); in bfa_fcport_sm_faa_misconfig()
2789 bfa_trc(ln->fcport->bfa, event); in bfa_fcport_ln_sm_dn()
2798 bfa_sm_fault(ln->fcport->bfa, event); in bfa_fcport_ln_sm_dn()
2809 bfa_trc(ln->fcport->bfa, event); in bfa_fcport_ln_sm_dn_nf()
2821 bfa_sm_fault(ln->fcport->bfa, event); in bfa_fcport_ln_sm_dn_nf()
2832 bfa_trc(ln->fcport->bfa, event); in bfa_fcport_ln_sm_dn_up_nf()
2845 bfa_sm_fault(ln->fcport->bfa, event); in bfa_fcport_ln_sm_dn_up_nf()
2856 bfa_trc(ln->fcport->bfa, event); in bfa_fcport_ln_sm_up()
2865 bfa_sm_fault(ln->fcport->bfa, event); in bfa_fcport_ln_sm_up()
2876 bfa_trc(ln->fcport->bfa, event); in bfa_fcport_ln_sm_up_nf()
2888 bfa_sm_fault(ln->fcport->bfa, event); in bfa_fcport_ln_sm_up_nf()
2899 bfa_trc(ln->fcport->bfa, event); in bfa_fcport_ln_sm_up_dn_nf()
2912 bfa_sm_fault(ln->fcport->bfa, event); in bfa_fcport_ln_sm_up_dn_nf()
2923 bfa_trc(ln->fcport->bfa, event); in bfa_fcport_ln_sm_up_dn_up_nf()
2936 bfa_sm_fault(ln->fcport->bfa, event); in bfa_fcport_ln_sm_up_dn_up_nf()
2979 if (fcport->bfa->fcs) { in bfa_fcport_queue_cb()
2984 bfa_cb_queue(fcport->bfa, &ln->ln_qe, in bfa_fcport_queue_cb()
2994 struct bfa_s *bfa) in bfa_fcport_meminfo() argument
2996 struct bfa_mem_dma_s *fcport_dma = BFA_MEM_FCPORT_DMA(bfa); in bfa_fcport_meminfo()
3024 bfa_fcport_attach(struct bfa_s *bfa, void *bfad, struct bfa_iocfc_cfg_s *cfg, in bfa_fcport_attach() argument
3027 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_attach()
3031 fcport->bfa = bfa; in bfa_fcport_attach()
3067 bfa_fcport_start(struct bfa_s *bfa) in bfa_fcport_start() argument
3069 bfa_sm_send_event(BFA_FCPORT_MOD(bfa), BFA_FCPORT_SM_START); in bfa_fcport_start()
3076 bfa_fcport_iocdisable(struct bfa_s *bfa) in bfa_fcport_iocdisable() argument
3078 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_iocdisable()
3081 bfa_trunk_iocdisable(bfa); in bfa_fcport_iocdisable()
3133 bfa_trc(fcport->bfa, fcport->speed); in bfa_fcport_update_linkinfo()
3134 bfa_trc(fcport->bfa, fcport->topology); in bfa_fcport_update_linkinfo()
3162 m = bfa_reqq_next(fcport->bfa, BFA_REQQ_PORT); in bfa_fcport_send_enable()
3164 bfa_reqq_wait(fcport->bfa, BFA_REQQ_PORT, in bfa_fcport_send_enable()
3170 bfa_fn_lpu(fcport->bfa)); in bfa_fcport_send_enable()
3178 bfa_trc(fcport->bfa, m->stats_dma_addr.a32.addr_lo); in bfa_fcport_send_enable()
3179 bfa_trc(fcport->bfa, m->stats_dma_addr.a32.addr_hi); in bfa_fcport_send_enable()
3184 bfa_reqq_produce(fcport->bfa, BFA_REQQ_PORT, m->mh); in bfa_fcport_send_enable()
3205 m = bfa_reqq_next(fcport->bfa, BFA_REQQ_PORT); in bfa_fcport_send_disable()
3207 bfa_reqq_wait(fcport->bfa, BFA_REQQ_PORT, in bfa_fcport_send_disable()
3213 bfa_fn_lpu(fcport->bfa)); in bfa_fcport_send_disable()
3219 bfa_reqq_produce(fcport->bfa, BFA_REQQ_PORT, m->mh); in bfa_fcport_send_disable()
3227 fcport->pwwn = fcport->bfa->ioc.attr->pwwn; in bfa_fcport_set_wwns()
3228 fcport->nwwn = fcport->bfa->ioc.attr->nwwn; in bfa_fcport_set_wwns()
3230 bfa_trc(fcport->bfa, fcport->pwwn); in bfa_fcport_set_wwns()
3231 bfa_trc(fcport->bfa, fcport->nwwn); in bfa_fcport_set_wwns()
3284 if (bfa_ioc_get_fcmode(&fcport->bfa->ioc)) in __bfa_cb_fcport_stats_get()
3294 bfa_cb_queue_status(fcport->bfa, &cb->hcb_qe, in __bfa_cb_fcport_stats_get()
3309 bfa_trc(fcport->bfa, fcport->stats_qfull); in bfa_fcport_stats_get_timeout()
3326 msg = bfa_reqq_next(fcport->bfa, BFA_REQQ_PORT); in bfa_fcport_send_stats_get()
3332 bfa_reqq_wait(fcport->bfa, BFA_REQQ_PORT, in bfa_fcport_send_stats_get()
3340 bfa_fn_lpu(fcport->bfa)); in bfa_fcport_send_stats_get()
3341 bfa_reqq_produce(fcport->bfa, BFA_REQQ_PORT, msg->mh); in bfa_fcport_send_stats_get()
3359 bfa_cb_queue_status(fcport->bfa, &cb->hcb_qe, in __bfa_cb_fcport_stats_clr()
3374 bfa_trc(fcport->bfa, fcport->stats_qfull); in bfa_fcport_stats_clr_timeout()
3391 msg = bfa_reqq_next(fcport->bfa, BFA_REQQ_PORT); in bfa_fcport_send_stats_clear()
3397 bfa_reqq_wait(fcport->bfa, BFA_REQQ_PORT, in bfa_fcport_send_stats_clear()
3405 bfa_fn_lpu(fcport->bfa)); in bfa_fcport_send_stats_clear()
3406 bfa_reqq_produce(fcport->bfa, BFA_REQQ_PORT, msg->mh); in bfa_fcport_send_stats_clear()
3422 bfa_trc(fcport->bfa, fcport->cfg.trunked); in bfa_trunk_scn()
3426 bfa_trc(fcport->bfa, trunk->attr.state); in bfa_trunk_scn()
3427 bfa_trc(fcport->bfa, scn->trunk_state); in bfa_trunk_scn()
3428 bfa_trc(fcport->bfa, scn->trunk_speed); in bfa_trunk_scn()
3453 bfa_trc(fcport->bfa, lattr->link_state); in bfa_trunk_scn()
3454 bfa_trc(fcport->bfa, lattr->trunk_wwn); in bfa_trunk_scn()
3455 bfa_trc(fcport->bfa, lattr->fctl); in bfa_trunk_scn()
3456 bfa_trc(fcport->bfa, lattr->speed); in bfa_trunk_scn()
3457 bfa_trc(fcport->bfa, lattr->deskew); in bfa_trunk_scn()
3462 bfa_plog_str(fcport->bfa->plog, BFA_PL_MID_HAL, in bfa_trunk_scn()
3466 bfa_plog_str(fcport->bfa->plog, BFA_PL_MID_HAL, in bfa_trunk_scn()
3470 bfa_plog_str(fcport->bfa->plog, BFA_PL_MID_HAL, in bfa_trunk_scn()
3474 bfa_plog_str(fcport->bfa->plog, BFA_PL_MID_HAL, in bfa_trunk_scn()
3489 bfa_trunk_iocdisable(struct bfa_s *bfa) in bfa_trunk_iocdisable() argument
3491 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_trunk_iocdisable()
3520 bfa_fcport_init(struct bfa_s *bfa) in bfa_fcport_init() argument
3522 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_init()
3529 fcport->cfg.maxfrsize = bfa_ioc_maxfrsize(&bfa->ioc); in bfa_fcport_init()
3530 fcport->cfg.rx_bbcredit = bfa_ioc_rx_bbcredit(&bfa->ioc); in bfa_fcport_init()
3531 fcport->speed_sup = bfa_ioc_speed_sup(&bfa->ioc); in bfa_fcport_init()
3533 if (bfa_fcport_is_pbcdisabled(bfa)) in bfa_fcport_init()
3534 bfa->modules.port.pbc_disabled = BFA_TRUE; in bfa_fcport_init()
3545 bfa_fcport_isr(struct bfa_s *bfa, struct bfi_msg_s *msg) in bfa_fcport_isr() argument
3547 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_isr()
3553 bfa_trc(bfa, msg->mhdr.msg_id); in bfa_fcport_isr()
3554 bfa_trc(bfa, bfa_sm_to_state(hal_port_sm_table, fcport->sm)); in bfa_fcport_isr()
3672 bfa_fcport_event_register(struct bfa_s *bfa, in bfa_fcport_event_register() argument
3677 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_event_register()
3684 bfa_fcport_enable(struct bfa_s *bfa) in bfa_fcport_enable() argument
3686 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_enable()
3688 if (bfa_fcport_is_pbcdisabled(bfa)) in bfa_fcport_enable()
3691 if (bfa_ioc_is_disabled(&bfa->ioc)) in bfa_fcport_enable()
3697 bfa_sm_send_event(BFA_FCPORT_MOD(bfa), BFA_FCPORT_SM_ENABLE); in bfa_fcport_enable()
3702 bfa_fcport_disable(struct bfa_s *bfa) in bfa_fcport_disable() argument
3704 if (bfa_fcport_is_pbcdisabled(bfa)) in bfa_fcport_disable()
3707 if (bfa_ioc_is_disabled(&bfa->ioc)) in bfa_fcport_disable()
3710 bfa_sm_send_event(BFA_FCPORT_MOD(bfa), BFA_FCPORT_SM_DISABLE); in bfa_fcport_disable()
3716 bfa_fcport_is_pbcdisabled(struct bfa_s *bfa) in bfa_fcport_is_pbcdisabled() argument
3718 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_is_pbcdisabled()
3719 struct bfa_iocfc_s *iocfc = &bfa->iocfc; in bfa_fcport_is_pbcdisabled()
3723 bfa_trc(bfa, fcport->pwwn); in bfa_fcport_is_pbcdisabled()
3733 bfa_fcport_cfg_speed(struct bfa_s *bfa, enum bfa_port_speed speed) in bfa_fcport_cfg_speed() argument
3735 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_cfg_speed()
3737 bfa_trc(bfa, speed); in bfa_fcport_cfg_speed()
3745 bfa_trc(bfa, fcport->speed_sup); in bfa_fcport_cfg_speed()
3750 if (bfa_ioc_get_type(&fcport->bfa->ioc) == BFA_IOC_TYPE_FC) { in bfa_fcport_cfg_speed()
3753 (bfa_asic_id_ct2(bfa->ioc.pcidev.device_id))) in bfa_fcport_cfg_speed()
3778 bfa_fcport_get_speed(struct bfa_s *bfa) in bfa_fcport_get_speed() argument
3780 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_get_speed()
3789 bfa_fcport_cfg_topology(struct bfa_s *bfa, enum bfa_port_topology topology) in bfa_fcport_cfg_topology() argument
3791 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_cfg_topology()
3793 bfa_trc(bfa, topology); in bfa_fcport_cfg_topology()
3794 bfa_trc(bfa, fcport->cfg.topology); in bfa_fcport_cfg_topology()
3801 if ((bfa_fcport_is_qos_enabled(bfa) != BFA_FALSE) || in bfa_fcport_cfg_topology()
3806 if ((bfa_fcport_is_trunk_enabled(bfa) != BFA_FALSE) || in bfa_fcport_cfg_topology()
3809 if ((bfa_fcport_get_speed(bfa) == BFA_PORT_SPEED_16GBPS) || in bfa_fcport_cfg_topology()
3812 if (bfa_mfg_is_mezz(bfa->ioc.attr->card_type)) in bfa_fcport_cfg_topology()
3814 if (bfa_fcport_is_dport(bfa) != BFA_FALSE) in bfa_fcport_cfg_topology()
3816 if (bfa_fcport_is_ddport(bfa) != BFA_FALSE) in bfa_fcport_cfg_topology()
3835 bfa_fcport_get_topology(struct bfa_s *bfa) in bfa_fcport_get_topology() argument
3837 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_get_topology()
3846 bfa_fcport_get_cfg_topology(struct bfa_s *bfa) in bfa_fcport_get_cfg_topology() argument
3848 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_get_cfg_topology()
3854 bfa_fcport_cfg_hardalpa(struct bfa_s *bfa, u8 alpa) in bfa_fcport_cfg_hardalpa() argument
3856 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_cfg_hardalpa()
3858 bfa_trc(bfa, alpa); in bfa_fcport_cfg_hardalpa()
3859 bfa_trc(bfa, fcport->cfg.cfg_hardalpa); in bfa_fcport_cfg_hardalpa()
3860 bfa_trc(bfa, fcport->cfg.hardalpa); in bfa_fcport_cfg_hardalpa()
3869 bfa_fcport_clr_hardalpa(struct bfa_s *bfa) in bfa_fcport_clr_hardalpa() argument
3871 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_clr_hardalpa()
3873 bfa_trc(bfa, fcport->cfg.cfg_hardalpa); in bfa_fcport_clr_hardalpa()
3874 bfa_trc(bfa, fcport->cfg.hardalpa); in bfa_fcport_clr_hardalpa()
3881 bfa_fcport_get_hardalpa(struct bfa_s *bfa, u8 *alpa) in bfa_fcport_get_hardalpa() argument
3883 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_get_hardalpa()
3890 bfa_fcport_get_myalpa(struct bfa_s *bfa) in bfa_fcport_get_myalpa() argument
3892 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_get_myalpa()
3898 bfa_fcport_cfg_maxfrsize(struct bfa_s *bfa, u16 maxfrsize) in bfa_fcport_cfg_maxfrsize() argument
3900 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_cfg_maxfrsize()
3902 bfa_trc(bfa, maxfrsize); in bfa_fcport_cfg_maxfrsize()
3903 bfa_trc(bfa, fcport->cfg.maxfrsize); in bfa_fcport_cfg_maxfrsize()
3918 bfa_fcport_get_maxfrsize(struct bfa_s *bfa) in bfa_fcport_get_maxfrsize() argument
3920 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_get_maxfrsize()
3926 bfa_fcport_get_rx_bbcredit(struct bfa_s *bfa) in bfa_fcport_get_rx_bbcredit() argument
3928 if (bfa_fcport_get_topology(bfa) != BFA_PORT_TOPOLOGY_LOOP) in bfa_fcport_get_rx_bbcredit()
3929 return (BFA_FCPORT_MOD(bfa))->cfg.rx_bbcredit; in bfa_fcport_get_rx_bbcredit()
3936 bfa_fcport_set_tx_bbcredit(struct bfa_s *bfa, u16 tx_bbcredit) in bfa_fcport_set_tx_bbcredit() argument
3938 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_set_tx_bbcredit()
3948 bfa_fcport_get_wwn(struct bfa_s *bfa, bfa_boolean_t node) in bfa_fcport_get_wwn() argument
3950 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_get_wwn()
3958 bfa_fcport_get_attr(struct bfa_s *bfa, struct bfa_port_attr_s *attr) in bfa_fcport_get_attr() argument
3960 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_get_attr()
3967 attr->factorypwwn = bfa->ioc.attr->mfg_pwwn; in bfa_fcport_get_attr()
3968 attr->factorynwwn = bfa->ioc.attr->mfg_nwwn; in bfa_fcport_get_attr()
3987 attr->pport_cfg.path_tov = bfa_fcpim_path_tov_get(bfa); in bfa_fcport_get_attr()
3988 attr->pport_cfg.q_depth = bfa_fcpim_qdepth_get(bfa); in bfa_fcport_get_attr()
3994 if (bfa_fcport_is_pbcdisabled(bfa)) in bfa_fcport_get_attr()
3997 if (bfa_ioc_is_disabled(&fcport->bfa->ioc)) in bfa_fcport_get_attr()
3999 else if (bfa_ioc_fw_mismatch(&fcport->bfa->ioc)) in bfa_fcport_get_attr()
4013 bfa_fcport_get_stats(struct bfa_s *bfa, struct bfa_cb_pending_q_s *cb) in bfa_fcport_get_stats() argument
4015 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_get_stats()
4017 if (!bfa_iocfc_is_operational(bfa) || in bfa_fcport_get_stats()
4027 bfa_timer_start(bfa, &fcport->timer, in bfa_fcport_get_stats()
4040 bfa_fcport_clear_stats(struct bfa_s *bfa, struct bfa_cb_pending_q_s *cb) in bfa_fcport_clear_stats() argument
4042 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_clear_stats()
4044 if (!bfa_iocfc_is_operational(bfa) || in bfa_fcport_clear_stats()
4054 bfa_timer_start(bfa, &fcport->timer, in bfa_fcport_clear_stats()
4067 bfa_fcport_is_disabled(struct bfa_s *bfa) in bfa_fcport_is_disabled() argument
4069 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_is_disabled()
4077 bfa_fcport_is_dport(struct bfa_s *bfa) in bfa_fcport_is_dport() argument
4079 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_is_dport()
4086 bfa_fcport_is_ddport(struct bfa_s *bfa) in bfa_fcport_is_ddport() argument
4088 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_is_ddport()
4095 bfa_fcport_set_qos_bw(struct bfa_s *bfa, struct bfa_qos_bw_s *qos_bw) in bfa_fcport_set_qos_bw() argument
4097 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_set_qos_bw()
4098 enum bfa_ioc_type_e ioc_type = bfa_get_type(bfa); in bfa_fcport_set_qos_bw()
4100 bfa_trc(bfa, ioc_type); in bfa_fcport_set_qos_bw()
4120 bfa_fcport_is_ratelim(struct bfa_s *bfa) in bfa_fcport_is_ratelim() argument
4122 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_is_ratelim()
4132 bfa_fcport_cfg_faa(struct bfa_s *bfa, u8 state) in bfa_fcport_cfg_faa() argument
4134 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_cfg_faa()
4136 bfa_trc(bfa, state); in bfa_fcport_cfg_faa()
4144 bfa_fcport_get_ratelim_speed(struct bfa_s *bfa) in bfa_fcport_get_ratelim_speed() argument
4146 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_get_ratelim_speed()
4148 bfa_trc(bfa, fcport->cfg.trl_def_speed); in bfa_fcport_get_ratelim_speed()
4157 struct bfa_s *bfa = dev; in bfa_fcport_beacon() local
4158 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_beacon()
4160 bfa_trc(bfa, beacon); in bfa_fcport_beacon()
4161 bfa_trc(bfa, link_e2e_beacon); in bfa_fcport_beacon()
4162 bfa_trc(bfa, fcport->beacon); in bfa_fcport_beacon()
4163 bfa_trc(bfa, fcport->link_e2e_beacon); in bfa_fcport_beacon()
4170 bfa_fcport_is_linkup(struct bfa_s *bfa) in bfa_fcport_is_linkup() argument
4172 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_is_linkup()
4181 bfa_fcport_is_qos_enabled(struct bfa_s *bfa) in bfa_fcport_is_qos_enabled() argument
4183 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_is_qos_enabled()
4189 bfa_fcport_is_trunk_enabled(struct bfa_s *bfa) in bfa_fcport_is_trunk_enabled() argument
4191 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_is_trunk_enabled()
4197 bfa_fcport_cfg_bbcr(struct bfa_s *bfa, bfa_boolean_t on_off, u8 bb_scn) in bfa_fcport_cfg_bbcr() argument
4199 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_cfg_bbcr()
4201 bfa_trc(bfa, on_off); in bfa_fcport_cfg_bbcr()
4203 if (bfa_ioc_get_type(&fcport->bfa->ioc) != BFA_IOC_TYPE_FC) in bfa_fcport_cfg_bbcr()
4206 if (bfa_mfg_is_mezz(bfa->ioc.attr->card_type) && in bfa_fcport_cfg_bbcr()
4207 (bfa->ioc.attr->card_type != BFA_MFG_TYPE_CHINOOK)) in bfa_fcport_cfg_bbcr()
4221 (fcport->cfg.speed < bfa_ioc_speed_sup(&bfa->ioc))) in bfa_fcport_cfg_bbcr()
4224 if (bfa_ioc_speed_sup(&bfa->ioc) < BFA_PORT_SPEED_8GBPS) in bfa_fcport_cfg_bbcr()
4251 bfa_fcport_get_bbcr_attr(struct bfa_s *bfa, in bfa_fcport_get_bbcr_attr() argument
4254 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); in bfa_fcport_get_bbcr_attr()
4256 if (bfa_ioc_get_type(&fcport->bfa->ioc) != BFA_IOC_TYPE_FC) in bfa_fcport_get_bbcr_attr()
4268 bfa_fcport_dportenable(struct bfa_s *bfa) in bfa_fcport_dportenable() argument
4273 bfa_sm_send_event(BFA_FCPORT_MOD(bfa), BFA_FCPORT_SM_DPORTENABLE); in bfa_fcport_dportenable()
4274 bfa_port_set_dportenabled(&bfa->modules.port, BFA_TRUE); in bfa_fcport_dportenable()
4278 bfa_fcport_dportdisable(struct bfa_s *bfa) in bfa_fcport_dportdisable() argument
4283 bfa_sm_send_event(BFA_FCPORT_MOD(bfa), BFA_FCPORT_SM_DPORTDISABLE); in bfa_fcport_dportdisable()
4284 bfa_port_set_dportenabled(&bfa->modules.port, BFA_FALSE); in bfa_fcport_dportdisable()
4288 bfa_fcport_ddportenable(struct bfa_s *bfa) in bfa_fcport_ddportenable() argument
4293 bfa_sm_send_event(BFA_FCPORT_MOD(bfa), BFA_FCPORT_SM_DDPORTENABLE); in bfa_fcport_ddportenable()
4297 bfa_fcport_ddportdisable(struct bfa_s *bfa) in bfa_fcport_ddportdisable() argument
4302 bfa_sm_send_event(BFA_FCPORT_MOD(bfa), BFA_FCPORT_SM_DDPORTDISABLE); in bfa_fcport_ddportdisable()
4314 bfa_trc(rp->bfa, rp->rport_tag); in bfa_rport_sm_uninit()
4315 bfa_trc(rp->bfa, event); in bfa_rport_sm_uninit()
4325 bfa_sm_fault(rp->bfa, event); in bfa_rport_sm_uninit()
4332 bfa_trc(rp->bfa, rp->rport_tag); in bfa_rport_sm_created()
4333 bfa_trc(rp->bfa, event); in bfa_rport_sm_created()
4357 bfa_sm_fault(rp->bfa, event); in bfa_rport_sm_created()
4367 bfa_trc(rp->bfa, rp->rport_tag); in bfa_rport_sm_fwcreate()
4368 bfa_trc(rp->bfa, event); in bfa_rport_sm_fwcreate()
4394 bfa_sm_fault(rp->bfa, event); in bfa_rport_sm_fwcreate()
4404 bfa_trc(rp->bfa, rp->rport_tag); in bfa_rport_sm_fwcreate_qfull()
4405 bfa_trc(rp->bfa, event); in bfa_rport_sm_fwcreate_qfull()
4435 bfa_sm_fault(rp->bfa, event); in bfa_rport_sm_fwcreate_qfull()
4447 bfa_trc(rp->bfa, rp->rport_tag); in bfa_rport_sm_online()
4448 bfa_trc(rp->bfa, event); in bfa_rport_sm_online()
4479 bfa_trc(rp->bfa, qos_scn->old_qos_attr.qos_flow_id); in bfa_rport_sm_online()
4480 bfa_trc(rp->bfa, qos_scn->new_qos_attr.qos_flow_id); in bfa_rport_sm_online()
4481 bfa_trc(rp->bfa, qos_scn->old_qos_attr.qos_priority); in bfa_rport_sm_online()
4482 bfa_trc(rp->bfa, qos_scn->new_qos_attr.qos_priority); in bfa_rport_sm_online()
4503 bfa_sm_fault(rp->bfa, event); in bfa_rport_sm_online()
4513 bfa_trc(rp->bfa, rp->rport_tag); in bfa_rport_sm_fwdelete()
4514 bfa_trc(rp->bfa, event); in bfa_rport_sm_fwdelete()
4536 bfa_sm_fault(rp->bfa, event); in bfa_rport_sm_fwdelete()
4543 bfa_trc(rp->bfa, rp->rport_tag); in bfa_rport_sm_fwdelete_qfull()
4544 bfa_trc(rp->bfa, event); in bfa_rport_sm_fwdelete_qfull()
4566 bfa_sm_fault(rp->bfa, event); in bfa_rport_sm_fwdelete_qfull()
4576 bfa_trc(rp->bfa, rp->rport_tag); in bfa_rport_sm_offline()
4577 bfa_trc(rp->bfa, event); in bfa_rport_sm_offline()
4605 bfa_sm_fault(rp->bfa, event); in bfa_rport_sm_offline()
4615 bfa_trc(rp->bfa, rp->rport_tag); in bfa_rport_sm_deleting()
4616 bfa_trc(rp->bfa, event); in bfa_rport_sm_deleting()
4632 bfa_sm_fault(rp->bfa, event); in bfa_rport_sm_deleting()
4639 bfa_trc(rp->bfa, rp->rport_tag); in bfa_rport_sm_deleting_qfull()
4640 bfa_trc(rp->bfa, event); in bfa_rport_sm_deleting_qfull()
4657 bfa_sm_fault(rp->bfa, event); in bfa_rport_sm_deleting_qfull()
4668 bfa_trc(rp->bfa, rp->rport_tag); in bfa_rport_sm_delete_pending()
4669 bfa_trc(rp->bfa, event); in bfa_rport_sm_delete_pending()
4688 bfa_sm_fault(rp->bfa, event); in bfa_rport_sm_delete_pending()
4699 bfa_trc(rp->bfa, rp->rport_tag); in bfa_rport_sm_offline_pending()
4700 bfa_trc(rp->bfa, event); in bfa_rport_sm_offline_pending()
4724 bfa_sm_fault(rp->bfa, event); in bfa_rport_sm_offline_pending()
4734 bfa_trc(rp->bfa, rp->rport_tag); in bfa_rport_sm_iocdisable()
4735 bfa_trc(rp->bfa, event); in bfa_rport_sm_iocdisable()
4762 bfa_sm_fault(rp->bfa, event); in bfa_rport_sm_iocdisable()
4800 struct bfa_s *bfa) in bfa_rport_meminfo() argument
4802 struct bfa_mem_kva_s *rport_kva = BFA_MEM_RPORT_KVA(bfa); in bfa_rport_meminfo()
4813 bfa_rport_attach(struct bfa_s *bfa, void *bfad, struct bfa_iocfc_cfg_s *cfg, in bfa_rport_attach() argument
4816 struct bfa_rport_mod_s *mod = BFA_RPORT_MOD(bfa); in bfa_rport_attach()
4833 rp->bfa = bfa; in bfa_rport_attach()
4853 bfa_rport_iocdisable(struct bfa_s *bfa) in bfa_rport_iocdisable() argument
4855 struct bfa_rport_mod_s *mod = BFA_RPORT_MOD(bfa); in bfa_rport_iocdisable()
4883 struct bfa_rport_mod_s *mod = BFA_RPORT_MOD(rport->bfa); in bfa_rport_free()
4898 m = bfa_reqq_next(rp->bfa, BFA_REQQ_RPORT); in bfa_rport_send_fwcreate()
4900 bfa_reqq_wait(rp->bfa, BFA_REQQ_RPORT, &rp->reqq_wait); in bfa_rport_send_fwcreate()
4905 bfa_fn_lpu(rp->bfa)); in bfa_rport_send_fwcreate()
4909 m->lp_fwtag = bfa_lps_get_fwtag(rp->bfa, (u8)rp->rport_info.lp_tag); in bfa_rport_send_fwcreate()
4919 bfa_reqq_produce(rp->bfa, BFA_REQQ_RPORT, m->mh); in bfa_rport_send_fwcreate()
4931 m = bfa_reqq_next(rp->bfa, BFA_REQQ_RPORT); in bfa_rport_send_fwdelete()
4933 bfa_reqq_wait(rp->bfa, BFA_REQQ_RPORT, &rp->reqq_wait); in bfa_rport_send_fwdelete()
4938 bfa_fn_lpu(rp->bfa)); in bfa_rport_send_fwdelete()
4944 bfa_reqq_produce(rp->bfa, BFA_REQQ_RPORT, m->mh); in bfa_rport_send_fwdelete()
4956 m = bfa_reqq_next(rp->bfa, BFA_REQQ_RPORT); in bfa_rport_send_fwspeed()
4958 bfa_trc(rp->bfa, rp->rport_info.speed); in bfa_rport_send_fwspeed()
4963 bfa_fn_lpu(rp->bfa)); in bfa_rport_send_fwspeed()
4970 bfa_reqq_produce(rp->bfa, BFA_REQQ_RPORT, m->mh); in bfa_rport_send_fwspeed()
4984 bfa_rport_isr(struct bfa_s *bfa, struct bfi_msg_s *m) in bfa_rport_isr() argument
4989 bfa_trc(bfa, m->mhdr.msg_id); in bfa_rport_isr()
4995 rp = BFA_RPORT_FROM_TAG(bfa, msg.create_rsp->bfa_handle); in bfa_rport_isr()
4998 bfa_rport_set_lunmask(bfa, rp); in bfa_rport_isr()
5004 rp = BFA_RPORT_FROM_TAG(bfa, msg.delete_rsp->bfa_handle); in bfa_rport_isr()
5006 bfa_rport_unset_lunmask(bfa, rp); in bfa_rport_isr()
5011 rp = BFA_RPORT_FROM_TAG(bfa, msg.qos_scn_evt->bfa_handle); in bfa_rport_isr()
5017 bfa_fcport_update_loop_info(BFA_FCPORT_MOD(bfa), in bfa_rport_isr()
5019 bfa_cb_rport_scn_online(bfa); in bfa_rport_isr()
5023 bfa_cb_rport_scn_offline(bfa); in bfa_rport_isr()
5027 rp = BFA_RPORT_FROM_TAG(bfa, msg.lip_scn->bfa_handle); in bfa_rport_isr()
5032 bfa_trc(bfa, m->mhdr.msg_id); in bfa_rport_isr()
5038 bfa_rport_res_recfg(struct bfa_s *bfa, u16 num_rport_fw) in bfa_rport_res_recfg() argument
5040 struct bfa_rport_mod_s *mod = BFA_RPORT_MOD(bfa); in bfa_rport_res_recfg()
5055 bfa_rport_create(struct bfa_s *bfa, void *rport_drv) in bfa_rport_create() argument
5059 rp = bfa_rport_alloc(BFA_RPORT_MOD(bfa)); in bfa_rport_create()
5064 rp->bfa = bfa; in bfa_rport_create()
5084 bfa_trc(rport->bfa, rport->rport_tag); in bfa_rport_online()
5106 bfa_rport_set_lunmask(struct bfa_s *bfa, struct bfa_rport_s *rp) in bfa_rport_set_lunmask() argument
5108 struct bfa_lps_mod_s *lps_mod = BFA_LPS_MOD(bfa); in bfa_rport_set_lunmask()
5117 bfa_fcpim_lunmask_rp_update(bfa, lp_wwn, rp_wwn, rp->rport_tag, lp_tag); in bfa_rport_set_lunmask()
5122 bfa_rport_unset_lunmask(struct bfa_s *bfa, struct bfa_rport_s *rp) in bfa_rport_unset_lunmask() argument
5124 struct bfa_lps_mod_s *lps_mod = BFA_LPS_MOD(bfa); in bfa_rport_unset_lunmask()
5132 bfa_fcpim_lunmask_rp_update(bfa, lp_wwn, rp_wwn, in bfa_rport_unset_lunmask()
5145 struct bfa_s *bfa) in bfa_sgpg_meminfo() argument
5147 struct bfa_sgpg_mod_s *sgpg_mod = BFA_SGPG_MOD(bfa); in bfa_sgpg_meminfo()
5148 struct bfa_mem_kva_s *sgpg_kva = BFA_MEM_SGPG_KVA(bfa); in bfa_sgpg_meminfo()
5179 bfa_sgpg_attach(struct bfa_s *bfa, void *bfad, struct bfa_iocfc_cfg_s *cfg, in bfa_sgpg_attach() argument
5182 struct bfa_sgpg_mod_s *mod = BFA_SGPG_MOD(bfa); in bfa_sgpg_attach()
5198 bfa_trc(bfa, cfg->drvcfg.num_sgpgs); in bfa_sgpg_attach()
5242 bfa_sgpg_malloc(struct bfa_s *bfa, struct list_head *sgpg_q, int nsgpgs) in bfa_sgpg_malloc() argument
5244 struct bfa_sgpg_mod_s *mod = BFA_SGPG_MOD(bfa); in bfa_sgpg_malloc()
5262 bfa_sgpg_mfree(struct bfa_s *bfa, struct list_head *sgpg_q, int nsgpg) in bfa_sgpg_mfree() argument
5264 struct bfa_sgpg_mod_s *mod = BFA_SGPG_MOD(bfa); in bfa_sgpg_mfree()
5284 bfa_sgpg_malloc(bfa, &wqe->sgpg_q, nsgpg); in bfa_sgpg_mfree()
5294 bfa_sgpg_wait(struct bfa_s *bfa, struct bfa_sgpg_wqe_s *wqe, int nsgpg) in bfa_sgpg_wait() argument
5296 struct bfa_sgpg_mod_s *mod = BFA_SGPG_MOD(bfa); in bfa_sgpg_wait()
5320 bfa_sgpg_wcancel(struct bfa_s *bfa, struct bfa_sgpg_wqe_s *wqe) in bfa_sgpg_wcancel() argument
5322 struct bfa_sgpg_mod_s *mod = BFA_SGPG_MOD(bfa); in bfa_sgpg_wcancel()
5328 bfa_sgpg_mfree(bfa, &wqe->sgpg_q, in bfa_sgpg_wcancel()
5353 struct bfa_uf_mod_s *ufm = BFA_UF_MOD(uf->bfa); in __bfa_cb_uf_recv()
5377 bfa_fn_lpu(ufm->bfa)); in claim_uf_post_msgs()
5403 uf->bfa = ufm->bfa; in claim_ufs()
5426 struct bfa_s *bfa) in bfa_uf_meminfo() argument
5428 struct bfa_uf_mod_s *ufm = BFA_UF_MOD(bfa); in bfa_uf_meminfo()
5429 struct bfa_mem_kva_s *uf_kva = BFA_MEM_UF_KVA(bfa); in bfa_uf_meminfo()
5453 bfa_uf_attach(struct bfa_s *bfa, void *bfad, struct bfa_iocfc_cfg_s *cfg, in bfa_uf_attach() argument
5456 struct bfa_uf_mod_s *ufm = BFA_UF_MOD(bfa); in bfa_uf_attach()
5458 ufm->bfa = bfa; in bfa_uf_attach()
5487 uf_post_msg = bfa_reqq_next(ufm->bfa, BFA_REQQ_FCXP); in bfa_uf_post()
5493 bfa_reqq_produce(ufm->bfa, BFA_REQQ_FCXP, uf_post_msg->mh); in bfa_uf_post()
5495 bfa_trc(ufm->bfa, uf->uf_tag); in bfa_uf_post()
5513 uf_recv(struct bfa_s *bfa, struct bfi_uf_frm_rcvd_s *m) in uf_recv() argument
5515 struct bfa_uf_mod_s *ufm = BFA_UF_MOD(bfa); in uf_recv()
5536 bfa_plog_fchdr(bfa->plog, BFA_PL_MID_HAL_UF, BFA_PL_EID_RX, in uf_recv()
5540 bfa_plog_fchdr_and_pl(bfa->plog, BFA_PL_MID_HAL_UF, in uf_recv()
5545 if (bfa->fcs) in uf_recv()
5548 bfa_cb_queue(bfa, &uf->hcb_qe, __bfa_cb_uf_recv, uf); in uf_recv()
5552 bfa_uf_iocdisable(struct bfa_s *bfa) in bfa_uf_iocdisable() argument
5554 struct bfa_uf_mod_s *ufm = BFA_UF_MOD(bfa); in bfa_uf_iocdisable()
5569 bfa_uf_start(struct bfa_s *bfa) in bfa_uf_start() argument
5571 bfa_uf_post_all(BFA_UF_MOD(bfa)); in bfa_uf_start()
5582 bfa_uf_recv_register(struct bfa_s *bfa, bfa_cb_uf_recv_t ufrecv, void *cbarg) in bfa_uf_recv_register() argument
5584 struct bfa_uf_mod_s *ufm = BFA_UF_MOD(bfa); in bfa_uf_recv_register()
5600 bfa_uf_put(BFA_UF_MOD(uf->bfa), uf); in bfa_uf_free()
5601 bfa_uf_post_all(BFA_UF_MOD(uf->bfa)); in bfa_uf_free()
5610 bfa_uf_isr(struct bfa_s *bfa, struct bfi_msg_s *msg) in bfa_uf_isr() argument
5612 bfa_trc(bfa, msg->mhdr.msg_id); in bfa_uf_isr()
5616 uf_recv(bfa, (struct bfi_uf_frm_rcvd_s *) msg); in bfa_uf_isr()
5620 bfa_trc(bfa, msg->mhdr.msg_id); in bfa_uf_isr()
5626 bfa_uf_res_recfg(struct bfa_s *bfa, u16 num_uf_fw) in bfa_uf_res_recfg() argument
5628 struct bfa_uf_mod_s *mod = BFA_UF_MOD(bfa); in bfa_uf_res_recfg()
5701 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(fcdiag->bfa); in bfa_fcdiag_set_busy_status()
5710 bfa_fcdiag_attach(struct bfa_s *bfa, void *bfad, struct bfa_iocfc_cfg_s *cfg, in bfa_fcdiag_attach() argument
5713 struct bfa_fcdiag_s *fcdiag = BFA_FCDIAG_MOD(bfa); in bfa_fcdiag_attach()
5716 fcdiag->bfa = bfa; in bfa_fcdiag_attach()
5717 fcdiag->trcmod = bfa->trcmod; in bfa_fcdiag_attach()
5719 dport->bfa = bfa; in bfa_fcdiag_attach()
5729 bfa_fcdiag_iocdisable(struct bfa_s *bfa) in bfa_fcdiag_iocdisable() argument
5731 struct bfa_fcdiag_s *fcdiag = BFA_FCDIAG_MOD(bfa); in bfa_fcdiag_iocdisable()
5773 req = bfa_reqq_next(fcdiag->bfa, fcdiag->qtest.queue); in bfa_fcdiag_queuetest_send()
5779 bfa_fn_lpu(fcdiag->bfa)); in bfa_fcdiag_queuetest_send()
5786 bfa_reqq_produce(fcdiag->bfa, fcdiag->qtest.queue, req->mh); in bfa_fcdiag_queuetest_send()
5873 lb_req = bfa_reqq_next(fcdiag->bfa, BFA_REQQ_DIAG); in bfa_fcdiag_loopback_send()
5879 bfa_fn_lpu(fcdiag->bfa)); in bfa_fcdiag_loopback_send()
5887 bfa_reqq_produce(fcdiag->bfa, BFA_REQQ_DIAG, lb_req->mh); in bfa_fcdiag_loopback_send()
5900 bfa_fcdiag_intr(struct bfa_s *bfa, struct bfi_msg_s *msg) in bfa_fcdiag_intr() argument
5902 struct bfa_fcdiag_s *fcdiag = BFA_FCDIAG_MOD(bfa); in bfa_fcdiag_intr()
5941 bfa_fcdiag_loopback(struct bfa_s *bfa, enum bfa_port_opmode opmode, in bfa_fcdiag_loopback() argument
5949 struct bfa_fcdiag_s *fcdiag = BFA_FCDIAG_MOD(bfa); in bfa_fcdiag_loopback()
5951 if (!bfa_iocfc_is_operational(bfa)) in bfa_fcdiag_loopback()
5955 if (bfa_fcport_is_pbcdisabled(bfa)) { in bfa_fcdiag_loopback()
5960 if (bfa_fcport_is_disabled(bfa) == BFA_FALSE) { in bfa_fcdiag_loopback()
5968 if (bfa_ioc_get_type(&bfa->ioc) == BFA_IOC_TYPE_FC) { in bfa_fcdiag_loopback()
5978 bfa_fcport_get_attr(bfa, &attr); in bfa_fcdiag_loopback()
5993 (bfa_asic_id_ct2(bfa->ioc.pcidev.device_id))) { in bfa_fcdiag_loopback()
5999 if (bfa_mfg_is_mezz(bfa->ioc.attr->card_type)) { in bfa_fcdiag_loopback()
6000 if (bfa_ioc_get_type(&bfa->ioc) == BFA_IOC_TYPE_FC) { in bfa_fcdiag_loopback()
6014 if (bfa_fcport_is_dport(bfa)) { in bfa_fcdiag_loopback()
6053 bfa_fcdiag_queuetest(struct bfa_s *bfa, u32 force, u32 queue, in bfa_fcdiag_queuetest() argument
6057 struct bfa_fcdiag_s *fcdiag = BFA_FCDIAG_MOD(bfa); in bfa_fcdiag_queuetest()
6062 if (!force && !bfa_iocfc_is_operational(bfa)) in bfa_fcdiag_queuetest()
6096 bfa_timer_start(bfa, &fcdiag->qtest.timer, in bfa_fcdiag_queuetest()
6112 bfa_fcdiag_lb_is_running(struct bfa_s *bfa) in bfa_fcdiag_lb_is_running() argument
6114 struct bfa_fcdiag_s *fcdiag = BFA_FCDIAG_MOD(bfa); in bfa_fcdiag_lb_is_running()
6145 bfa_trc(dport->bfa, event); in bfa_dport_sm_disabled()
6149 bfa_fcport_dportenable(dport->bfa); in bfa_dport_sm_disabled()
6166 bfa_fcport_ddportenable(dport->bfa); in bfa_dport_sm_disabled()
6171 bfa_trc(dport->bfa, dport->i2hmsg.scn.state); in bfa_dport_sm_disabled()
6177 bfa_sm_fault(dport->bfa, event); in bfa_dport_sm_disabled()
6185 bfa_trc(dport->bfa, event); in bfa_dport_sm_enabling_qwait()
6200 bfa_sm_fault(dport->bfa, event); in bfa_dport_sm_enabling_qwait()
6207 bfa_trc(dport->bfa, event); in bfa_dport_sm_enabling()
6224 bfa_fcport_dportdisable(dport->bfa); in bfa_dport_sm_enabling()
6234 bfa_sm_fault(dport->bfa, event); in bfa_dport_sm_enabling()
6241 bfa_trc(dport->bfa, event); in bfa_dport_sm_enabled()
6252 bfa_fcport_dportdisable(dport->bfa); in bfa_dport_sm_enabled()
6283 bfa_fcport_ddportdisable(dport->bfa); in bfa_dport_sm_enabled()
6294 bfa_fcport_ddportdisable(dport->bfa); in bfa_dport_sm_enabled()
6301 bfa_trc(dport->bfa, dport->i2hmsg.scn.state); in bfa_dport_sm_enabled()
6302 bfa_sm_fault(dport->bfa, event); in bfa_dport_sm_enabled()
6306 bfa_sm_fault(dport->bfa, event); in bfa_dport_sm_enabled()
6314 bfa_trc(dport->bfa, event); in bfa_dport_sm_disabling_qwait()
6333 bfa_sm_fault(dport->bfa, event); in bfa_dport_sm_disabling_qwait()
6340 bfa_trc(dport->bfa, event); in bfa_dport_sm_disabling()
6358 bfa_sm_fault(dport->bfa, event); in bfa_dport_sm_disabling()
6366 bfa_trc(dport->bfa, event); in bfa_dport_sm_starting_qwait()
6381 bfa_sm_fault(dport->bfa, event); in bfa_dport_sm_starting_qwait()
6388 bfa_trc(dport->bfa, event); in bfa_dport_sm_starting()
6412 bfa_sm_fault(dport->bfa, event); in bfa_dport_sm_starting()
6420 bfa_trc(dport->bfa, event); in bfa_dport_sm_dynamic_disabling()
6428 bfa_fcport_enable(dport->bfa); in bfa_dport_sm_dynamic_disabling()
6432 bfa_trc(dport->bfa, dport->i2hmsg.scn.state); in bfa_dport_sm_dynamic_disabling()
6433 bfa_sm_fault(dport->bfa, event); in bfa_dport_sm_dynamic_disabling()
6444 bfa_sm_fault(dport->bfa, event); in bfa_dport_sm_dynamic_disabling()
6452 bfa_trc(dport->bfa, event); in bfa_dport_sm_dynamic_disabling_qwait()
6471 bfa_sm_fault(dport->bfa, event); in bfa_dport_sm_dynamic_disabling_qwait()
6483 m = bfa_reqq_next(dport->bfa, BFA_REQQ_DIAG); in bfa_dport_send_req()
6485 bfa_reqq_wait(dport->bfa, BFA_REQQ_PORT, &dport->reqq_wait); in bfa_dport_send_req()
6490 bfa_fn_lpu(dport->bfa)); in bfa_dport_send_req()
6500 bfa_reqq_produce(dport->bfa, BFA_REQQ_DIAG, m->mh); in bfa_dport_send_req()
6523 bfa_trc(dport->bfa, msg->status); in bfa_dport_req_comp()
6524 bfa_trc(dport->bfa, dport->rp_pwwn); in bfa_dport_req_comp()
6525 bfa_trc(dport->bfa, dport->rp_nwwn); in bfa_dport_req_comp()
6529 bfa_trc(dport->bfa, msg->status); in bfa_dport_req_comp()
6556 bfa_trc(dport->bfa, msg->state); in bfa_dport_scn()
6562 bfa_trc(dport->bfa, dport->result.end_time); in bfa_dport_scn()
6565 bfa_trc(dport->bfa, dport->result.status); in bfa_dport_scn()
6577 bfa_trc(dport->bfa, dport->result.roundtrip_latency); in bfa_dport_scn()
6578 bfa_trc(dport->bfa, dport->result.est_cable_distance); in bfa_dport_scn()
6579 bfa_trc(dport->bfa, dport->result.buffer_required); in bfa_dport_scn()
6580 bfa_trc(dport->bfa, dport->result.frmsz); in bfa_dport_scn()
6581 bfa_trc(dport->bfa, dport->result.speed); in bfa_dport_scn()
6586 bfa_trc(dport->bfa, dport->result.subtest[i].status); in bfa_dport_scn()
6612 bfa_trc(dport->bfa, subtesttype); in bfa_dport_scn()
6613 bfa_trc(dport->bfa, in bfa_dport_scn()
6625 bfa_sm_fault(dport->bfa, msg->state); in bfa_dport_scn()
6637 bfa_dport_enable(struct bfa_s *bfa, u32 lpcnt, u32 pat, in bfa_dport_enable() argument
6640 struct bfa_fcdiag_s *fcdiag = BFA_FCDIAG_MOD(bfa); in bfa_dport_enable()
6646 if (bfa_mfg_is_mezz(dport->bfa->ioc.attr->card_type)) { in bfa_dport_enable()
6647 bfa_trc(dport->bfa, BFA_STATUS_PBC); in bfa_dport_enable()
6654 if (!(bfa_asic_id_ct2(dport->bfa->ioc.pcidev.device_id))) { in bfa_dport_enable()
6655 bfa_trc(dport->bfa, dport->bfa->ioc.pcidev.device_id); in bfa_dport_enable()
6662 if (!bfa_iocfc_is_operational(bfa)) in bfa_dport_enable()
6666 if (bfa_fcport_is_pbcdisabled(bfa)) { in bfa_dport_enable()
6667 bfa_trc(dport->bfa, BFA_STATUS_PBC); in bfa_dport_enable()
6674 if (bfa_ioc_get_type(&bfa->ioc) != BFA_IOC_TYPE_FC) { in bfa_dport_enable()
6675 bfa_trc(dport->bfa, bfa_ioc_get_type(&bfa->ioc)); in bfa_dport_enable()
6682 if ((bfa_fcport_get_cfg_topology(bfa) == BFA_PORT_TOPOLOGY_LOOP) || in bfa_dport_enable()
6683 (bfa_fcport_get_topology(bfa) == BFA_PORT_TOPOLOGY_LOOP)) { in bfa_dport_enable()
6684 bfa_trc(dport->bfa, 0); in bfa_dport_enable()
6691 if (bfa_fcport_is_trunk_enabled(bfa)) { in bfa_dport_enable()
6692 bfa_trc(dport->bfa, 0); in bfa_dport_enable()
6699 if (bfa_fcdiag_lb_is_running(bfa)) { in bfa_dport_enable()
6700 bfa_trc(dport->bfa, 0); in bfa_dport_enable()
6707 if ((bfa_fcport_is_disabled(bfa) == BFA_FALSE) && in bfa_dport_enable()
6708 (bfa_fcport_is_dport(bfa) == BFA_FALSE)) { in bfa_dport_enable()
6709 bfa_trc(dport->bfa, 0); in bfa_dport_enable()
6729 bfa_trc(dport->bfa, 0); in bfa_dport_enable()
6733 bfa_trc(dport->bfa, lpcnt); in bfa_dport_enable()
6734 bfa_trc(dport->bfa, pat); in bfa_dport_enable()
6750 bfa_dport_disable(struct bfa_s *bfa, bfa_cb_diag_t cbfn, void *cbarg) in bfa_dport_disable() argument
6752 struct bfa_fcdiag_s *fcdiag = BFA_FCDIAG_MOD(bfa); in bfa_dport_disable()
6755 if (bfa_ioc_is_disabled(&bfa->ioc)) in bfa_dport_disable()
6759 if (bfa_fcport_is_pbcdisabled(bfa)) { in bfa_dport_disable()
6760 bfa_trc(dport->bfa, BFA_STATUS_PBC); in bfa_dport_disable()
6774 if ((bfa_fcport_is_disabled(bfa) == BFA_FALSE) && in bfa_dport_disable()
6775 (bfa_fcport_is_dport(bfa) == BFA_FALSE)) { in bfa_dport_disable()
6776 bfa_trc(dport->bfa, 0); in bfa_dport_disable()
6790 bfa_trc(dport->bfa, 0); in bfa_dport_disable()
6807 bfa_dport_start(struct bfa_s *bfa, u32 lpcnt, u32 pat, in bfa_dport_start() argument
6810 struct bfa_fcdiag_s *fcdiag = BFA_FCDIAG_MOD(bfa); in bfa_dport_start()
6816 if (!bfa_iocfc_is_operational(bfa)) in bfa_dport_start()
6836 bfa_trc(dport->bfa, 0); in bfa_dport_start()
6849 bfa_trc(dport->bfa, lpcnt); in bfa_dport_start()
6850 bfa_trc(dport->bfa, pat); in bfa_dport_start()
6868 bfa_dport_show(struct bfa_s *bfa, struct bfa_diag_dport_result_s *result) in bfa_dport_show() argument
6870 struct bfa_fcdiag_s *fcdiag = BFA_FCDIAG_MOD(bfa); in bfa_dport_show()
6876 if (!bfa_iocfc_is_operational(bfa)) in bfa_dport_show()
6889 bfa_trc(dport->bfa, 0); in bfa_dport_show()