Searched refs:rcfw (Results 1 – 7 of 7) sorted by relevance
/linux/drivers/infiniband/hw/bnxt_re/ |
H A D | qplib_rcfw.c | 111 static int bnxt_re_is_fw_stalled(struct bnxt_qplib_rcfw *rcfw, in bnxt_re_is_fw_stalled() argument 117 crsqe = &rcfw->crsqe_tbl[cookie]; in bnxt_re_is_fw_stalled() 118 cmdq = &rcfw->cmdq; in bnxt_re_is_fw_stalled() 121 (rcfw->max_timeout * HZ))) { in bnxt_re_is_fw_stalled() 122 dev_warn_ratelimited(&rcfw->pdev->dev, in bnxt_re_is_fw_stalled() 126 rcfw->max_timeout * 1000, in bnxt_re_is_fw_stalled() 145 static int __wait_for_resp(struct bnxt_qplib_rcfw *rcfw, u16 cookie) in __wait_for_resp() argument 151 cmdq = &rcfw->cmdq; in __wait_for_resp() 152 crsqe = &rcfw->crsqe_tbl[cookie]; in __wait_for_resp() 163 msecs_to_jiffies(rcfw->max_timeout * 1000)); in __wait_for_resp() [all …]
|
H A D | qplib_sp.c | 58 static bool bnxt_qplib_is_atomic_cap(struct bnxt_qplib_rcfw *rcfw) in bnxt_qplib_is_atomic_cap() argument 62 if (!bnxt_qplib_is_chip_gen_p5_p7(rcfw->res->cctx)) in bnxt_qplib_is_atomic_cap() 65 pcie_capability_read_word(rcfw->pdev, PCI_EXP_DEVCTL2, &pcie_ctl2); in bnxt_qplib_is_atomic_cap() 69 static void bnxt_qplib_query_version(struct bnxt_qplib_rcfw *rcfw, in bnxt_qplib_query_version() argument 82 rc = bnxt_qplib_rcfw_send_message(rcfw, &msg); in bnxt_qplib_query_version() 91 int bnxt_qplib_get_dev_attr(struct bnxt_qplib_rcfw *rcfw) in bnxt_qplib_get_dev_attr() argument 93 struct bnxt_qplib_dev_attr *attr = rcfw->res->dattr; in bnxt_qplib_get_dev_attr() 104 cctx = rcfw->res->cctx; in bnxt_qplib_get_dev_attr() 110 sbuf.sb = dma_alloc_coherent(&rcfw->pdev->dev, sbuf.size, in bnxt_qplib_get_dev_attr() 118 rc = bnxt_qplib_rcfw_send_message(rcfw, &msg); in bnxt_qplib_get_dev_attr() [all …]
|
H A D | main.c | 157 rdev->rcfw.res = NULL; in bnxt_re_destroy_chip_ctx() 183 rdev->rcfw.res = &rdev->qplib_res; in bnxt_re_setup_chip_ctx() 307 bnxt_qplib_set_func_resources(&rdev->qplib_res, &rdev->rcfw, in bnxt_re_vf_res_config() 435 struct bnxt_qplib_rcfw *rcfw; in bnxt_re_stop_irq() local 443 rcfw = &rdev->rcfw; in bnxt_re_stop_irq() 446 set_bit(ERR_DEVICE_DETACHED, &rdev->rcfw.cmdq.flags); in bnxt_re_stop_irq() 448 wake_up_all(&rdev->rcfw.cmdq.waitq); in bnxt_re_stop_irq() 458 bnxt_qplib_rcfw_stop_irq(rcfw, false); in bnxt_re_stop_irq() 465 struct bnxt_qplib_rcfw *rcfw; in bnxt_re_start_irq() local 474 rcfw = &rdev->rcfw; in bnxt_re_start_irq() [all …]
|
H A D | qplib_fp.c | 621 struct bnxt_qplib_rcfw *rcfw = res->rcfw; in bnxt_qplib_destroy_srq() local 635 rc = bnxt_qplib_rcfw_send_message(rcfw, &msg); in bnxt_qplib_destroy_srq() 645 struct bnxt_qplib_rcfw *rcfw = res->rcfw; in bnxt_qplib_create_srq() local 683 rc = bnxt_qplib_rcfw_send_message(rcfw, &msg); in bnxt_qplib_create_srq() 741 struct bnxt_qplib_rcfw *rcfw = res->rcfw; in bnxt_qplib_query_srq() local 755 sbuf.sb = dma_alloc_coherent(&rcfw->pdev->dev, sbuf.size, in bnxt_qplib_query_srq() 764 rc = bnxt_qplib_rcfw_send_message(rcfw, &msg); in bnxt_qplib_query_srq() 767 dma_free_coherent(&rcfw->pdev->dev, sbuf.size, in bnxt_qplib_query_srq() 847 struct bnxt_qplib_rcfw *rcfw = res->rcfw; in bnxt_qplib_create_qp1() local 932 rc = bnxt_qplib_rcfw_send_message(rcfw, &msg); in bnxt_qplib_create_qp1() [all …]
|
H A D | bnxt_re.h | 200 struct bnxt_qplib_rcfw rcfw; member 264 rdev->rcfw.res->cctx->hwrm_intf_ver < HWRM_VERSION_READ_CTX) in bnxt_re_read_context_allowed()
|
H A D | hw_counters.c | 181 rc = bnxt_qplib_qext_stat(&rdev->rcfw, fid, estat); in bnxt_re_get_ext_stat() 344 rc = bnxt_qplib_get_roce_stats(&rdev->rcfw, err_s); in bnxt_re_ib_get_hw_stats()
|
H A D | qplib_res.h | 308 struct bnxt_qplib_rcfw *rcfw; member
|