/freebsd/sys/dev/bnxt/bnxt_re/ |
H A D | qplib_rcfw.c | 49 int __check_cmdq_stall(struct bnxt_qplib_rcfw *rcfw, in __check_cmdq_stall() argument 54 cmdq = &rcfw->cmdq; in __check_cmdq_stall() 98 static int bnxt_re_is_fw_stalled(struct bnxt_qplib_rcfw *rcfw, u16 cookie) in bnxt_re_is_fw_stalled() argument 103 crsqe = &rcfw->crsqe_tbl[cookie]; in bnxt_re_is_fw_stalled() 104 cmdq = &rcfw->cmdq; in bnxt_re_is_fw_stalled() 107 (rcfw->max_timeout * HZ))) { in bnxt_re_is_fw_stalled() 108 dev_warn_ratelimited(&rcfw->pdev->dev, in bnxt_re_is_fw_stalled() 112 rcfw->max_timeout * 1000, in bnxt_re_is_fw_stalled() 130 static int __wait_for_resp(struct bnxt_qplib_rcfw *rcfw, u16 cookie) in __wait_for_resp() argument 137 cmdq = &rcfw->cmdq; in __wait_for_resp() [all …]
|
H A D | qplib_sp.c | 48 static u8 bnxt_qplib_is_atomic_cap(struct bnxt_qplib_rcfw *rcfw) in bnxt_qplib_is_atomic_cap() argument 52 if (!_is_chip_gen_p5_p7(rcfw->res->cctx)) in bnxt_qplib_is_atomic_cap() 54 pcie_capability_read_word(rcfw->pdev, PCI_EXP_DEVCTL2, &pcie_ctl2); in bnxt_qplib_is_atomic_cap() 58 static void bnxt_qplib_query_version(struct bnxt_qplib_rcfw *rcfw, char *fw_ver) in bnxt_qplib_query_version() argument 69 rc = bnxt_qplib_rcfw_send_message(rcfw, &msg); in bnxt_qplib_query_version() 71 dev_err(&rcfw->pdev->dev, "QPLIB: Failed to query version\n"); in bnxt_qplib_query_version() 80 int bnxt_qplib_get_dev_attr(struct bnxt_qplib_rcfw *rcfw) in bnxt_qplib_get_dev_attr() argument 94 cctx = rcfw->res->cctx; in bnxt_qplib_get_dev_attr() 95 attr = rcfw->res->dattr; in bnxt_qplib_get_dev_attr() 101 sbuf.sb = dma_zalloc_coherent(&rcfw->pdev->dev, sbuf.size, in bnxt_qplib_get_dev_attr() [all …]
|
H A D | qplib_rcfw.h | 148 #define RCFW_NO_FW_ACCESS(rcfw) \ argument 149 (test_bit(ERR_DEVICE_DETACHED, &(rcfw)->cmdq.flags) || \ 150 pci_channel_offline((rcfw)->pdev)) 332 void bnxt_qplib_rcfw_stop_irq(struct bnxt_qplib_rcfw *rcfw, bool kill); 333 void bnxt_qplib_disable_rcfw_channel(struct bnxt_qplib_rcfw *rcfw); 334 int bnxt_qplib_rcfw_start_irq(struct bnxt_qplib_rcfw *rcfw, int msix_vector, 336 int bnxt_qplib_enable_rcfw_channel(struct bnxt_qplib_rcfw *rcfw, 342 struct bnxt_qplib_rcfw *rcfw, 344 void bnxt_qplib_rcfw_free_sbuf(struct bnxt_qplib_rcfw *rcfw, 346 int bnxt_qplib_rcfw_send_message(struct bnxt_qplib_rcfw *rcfw, [all …]
|
H A D | qplib_fp.c | 612 static int __qplib_destroy_srq(struct bnxt_qplib_rcfw *rcfw, in __qplib_destroy_srq() argument 624 return bnxt_qplib_rcfw_send_message(rcfw, &msg); in __qplib_destroy_srq() 630 struct bnxt_qplib_rcfw *rcfw = res->rcfw; in bnxt_qplib_destroy_srq() local 633 rc = __qplib_destroy_srq(rcfw, srq); in bnxt_qplib_destroy_srq() 645 struct bnxt_qplib_rcfw *rcfw = res->rcfw; in bnxt_qplib_create_srq() local 677 rc = bnxt_qplib_rcfw_send_message(rcfw, &msg); in bnxt_qplib_create_srq() 711 __qplib_destroy_srq(rcfw, srq); in bnxt_qplib_create_srq() 738 struct bnxt_qplib_rcfw *rcfw = res->rcfw; in bnxt_qplib_query_srq() local 749 sbuf.sb = dma_zalloc_coherent(&rcfw->pdev->dev, sbuf.size, in bnxt_qplib_query_srq() 757 rc = bnxt_qplib_rcfw_send_message(rcfw, &msg); in bnxt_qplib_query_srq() [all …]
|
H A D | main.c | 300 struct bnxt_qplib_rcfw *rcfw = NULL; in bnxt_re_dettach_irq() local 304 rcfw = &rdev->rcfw; in bnxt_re_dettach_irq() 312 bnxt_qplib_rcfw_stop_irq(rcfw, false); in bnxt_re_dettach_irq() 321 set_bit(ERR_DEVICE_DETACHED, &rdev->rcfw.cmdq.flags); in bnxt_re_detach_err_device() 323 wake_up_all(&rdev->rcfw.cmdq.waitq); in bnxt_re_detach_err_device() 774 set_bit(ERR_DEVICE_DETACHED, &rdev->rcfw.cmdq.flags); in bnxt_re_async_notifier() 777 wake_up_all(&rdev->rcfw.cmdq.waitq); in bnxt_re_async_notifier() 1036 cur_prod = rdev->rcfw.cmdq.hwq.prod; in __wait_for_ib_unregister() 1037 cur_cons = rdev->rcfw.cmdq.hwq.cons; in __wait_for_ib_unregister() 1062 if (!RCFW_NO_FW_ACCESS(&rdev->rcfw)) { in __wait_for_ib_unregister() [all …]
|
H A D | qplib_sp.h | 356 int bnxt_qplib_get_dev_attr(struct bnxt_qplib_rcfw *rcfw); 383 int bnxt_qplib_get_roce_error_stats(struct bnxt_qplib_rcfw *rcfw, 386 int bnxt_qplib_qext_stat(struct bnxt_qplib_rcfw *rcfw, u32 fid,
|
H A D | stats.c | 312 rc = bnxt_qplib_qext_stat(&rdev->rcfw, fid, &estat[0], &sinfo); in bnxt_re_get_ext_stat() 386 rc = bnxt_qplib_get_roce_error_stats(&rdev->rcfw, in bnxt_re_get_device_stats() 756 stats->value[BNXT_RE_NUM_IRQ_STARTED] = rdev->rcfw.num_irq_started; in bnxt_re_get_hw_stats() 757 stats->value[BNXT_RE_NUM_IRQ_STOPPED] = rdev->rcfw.num_irq_stopped; in bnxt_re_get_hw_stats() 758 stats->value[BNXT_RE_POLL_IN_INTR_EN] = rdev->rcfw.poll_in_intr_en; in bnxt_re_get_hw_stats() 759 stats->value[BNXT_RE_POLL_IN_INTR_DIS] = rdev->rcfw.poll_in_intr_dis; in bnxt_re_get_hw_stats() 760 stats->value[BNXT_RE_CMDQ_FULL_DBG_CNT] = rdev->rcfw.cmdq_full_dbg; in bnxt_re_get_hw_stats()
|
H A D | qplib_res.c | 1050 struct bnxt_qplib_rcfw *rcfw = res->rcfw; in bnxt_qplib_stop_res() local 1060 rc = bnxt_qplib_rcfw_send_message(rcfw, &msg); in bnxt_qplib_stop_res()
|
H A D | qplib_res.h | 425 struct bnxt_qplib_rcfw *rcfw; member
|
H A D | bnxt_re.h | 519 struct bnxt_qplib_rcfw rcfw; member
|
H A D | ib_verbs.c | 1478 if (!rdev->rcfw.sp_perf_stats_enabled) in bnxt_re_dump_debug_stats() 1485 if (rdev->rcfw.qp_destroy_stats[i]) { in bnxt_re_dump_debug_stats() 1487 avg_time += rdev->rcfw.qp_destroy_stats[i]; in bnxt_re_dump_debug_stats()
|