Searched refs:rcfw (Results 1 – 9 of 9) sorted by relevance
/openbmc/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 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() 133 if (!bnxt_qplib_is_chip_gen_p5_p7(rcfw->res->cctx)) { in bnxt_qplib_get_dev_attr() [all …]
|
H A D | qplib_rcfw.h | 260 void bnxt_qplib_free_rcfw_channel(struct bnxt_qplib_rcfw *rcfw); 262 struct bnxt_qplib_rcfw *rcfw, 265 void bnxt_qplib_rcfw_stop_irq(struct bnxt_qplib_rcfw *rcfw, bool kill); 266 void bnxt_qplib_disable_rcfw_channel(struct bnxt_qplib_rcfw *rcfw); 267 int bnxt_qplib_rcfw_start_irq(struct bnxt_qplib_rcfw *rcfw, int msix_vector, 269 int bnxt_qplib_enable_rcfw_channel(struct bnxt_qplib_rcfw *rcfw, 275 struct bnxt_qplib_rcfw *rcfw, 277 void bnxt_qplib_rcfw_free_sbuf(struct bnxt_qplib_rcfw *rcfw, 279 int bnxt_qplib_rcfw_send_message(struct bnxt_qplib_rcfw *rcfw, 282 int bnxt_qplib_deinit_rcfw(struct bnxt_qplib_rcfw *rcfw); [all …]
|
H A D | main.c | 151 rdev->rcfw.res = NULL; in bnxt_re_destroy_chip_ctx() 176 rdev->rcfw.res = &rdev->qplib_res; in bnxt_re_setup_chip_ctx() 289 bnxt_qplib_set_func_resources(&rdev->qplib_res, &rdev->rcfw, in bnxt_re_vf_res_config() 307 struct bnxt_qplib_rcfw *rcfw = &rdev->rcfw; in bnxt_re_stop_irq() local 316 bnxt_qplib_rcfw_stop_irq(rcfw, false); in bnxt_re_stop_irq() 323 struct bnxt_qplib_rcfw *rcfw = &rdev->rcfw; in bnxt_re_start_irq() local 343 rc = bnxt_qplib_rcfw_start_irq(rcfw, msix_ent[BNXT_RE_AEQ_IDX].vector, in bnxt_re_start_irq() 1032 static int bnxt_re_aeq_handler(struct bnxt_qplib_rcfw *rcfw, in bnxt_re_aeq_handler() argument 1095 if (rdev->qplib_res.rcfw) in bnxt_re_cleanup_res() 1148 if (rdev->qplib_res.rcfw) { in bnxt_re_free_res() [all …]
|
H A D | qplib_fp.c | 601 struct bnxt_qplib_rcfw *rcfw = res->rcfw; in bnxt_qplib_destroy_srq() local 615 rc = bnxt_qplib_rcfw_send_message(rcfw, &msg); in bnxt_qplib_destroy_srq() 625 struct bnxt_qplib_rcfw *rcfw = res->rcfw; in bnxt_qplib_create_srq() local 663 rc = bnxt_qplib_rcfw_send_message(rcfw, &msg); in bnxt_qplib_create_srq() 721 struct bnxt_qplib_rcfw *rcfw = res->rcfw; in bnxt_qplib_query_srq() local 735 sbuf.sb = dma_alloc_coherent(&rcfw->pdev->dev, sbuf.size, in bnxt_qplib_query_srq() 744 rc = bnxt_qplib_rcfw_send_message(rcfw, &msg); in bnxt_qplib_query_srq() 747 dma_free_coherent(&rcfw->pdev->dev, sbuf.size, in bnxt_qplib_query_srq() 827 struct bnxt_qplib_rcfw *rcfw = res->rcfw; in bnxt_qplib_create_qp1() local 912 rc = bnxt_qplib_rcfw_send_message(rcfw, &msg); in bnxt_qplib_create_qp1() [all …]
|
H A D | qplib_sp.h | 327 int bnxt_qplib_get_dev_attr(struct bnxt_qplib_rcfw *rcfw, 330 struct bnxt_qplib_rcfw *rcfw, 349 int bnxt_qplib_get_roce_stats(struct bnxt_qplib_rcfw *rcfw, 351 int bnxt_qplib_qext_stat(struct bnxt_qplib_rcfw *rcfw, u32 fid,
|
H A D | bnxt_re.h | 164 struct bnxt_qplib_rcfw rcfw; member
|
H A D | hw_counters.c | 190 rc = bnxt_qplib_qext_stat(&rdev->rcfw, fid, estat); in bnxt_re_get_ext_stat() 353 rc = bnxt_qplib_get_roce_stats(&rdev->rcfw, err_s); in bnxt_re_ib_get_hw_stats()
|
H A D | qplib_res.h | 289 struct bnxt_qplib_rcfw *rcfw; member
|