Home
last modified time | relevance | path

Searched refs:rcfw (Results 1 – 9 of 9) sorted by relevance

/drivers/infiniband/hw/bnxt_re/
Dqplib_rcfw.c111 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 …]
Dqplib_sp.c58 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(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
108 sbuf.sb = dma_alloc_coherent(&rcfw->pdev->dev, sbuf.size, in bnxt_qplib_get_dev_attr()
116 rc = bnxt_qplib_rcfw_send_message(rcfw, &msg); in bnxt_qplib_get_dev_attr()
136 attr->max_qp_sges = bnxt_qplib_is_chip_gen_p5(rcfw->res->cctx) ? in bnxt_qplib_get_dev_attr()
159 bnxt_qplib_query_version(rcfw, attr->fw_ver); in bnxt_qplib_get_dev_attr()
[all …]
Dqplib_rcfw.h258 void bnxt_qplib_free_rcfw_channel(struct bnxt_qplib_rcfw *rcfw);
260 struct bnxt_qplib_rcfw *rcfw,
263 void bnxt_qplib_rcfw_stop_irq(struct bnxt_qplib_rcfw *rcfw, bool kill);
264 void bnxt_qplib_disable_rcfw_channel(struct bnxt_qplib_rcfw *rcfw);
265 int bnxt_qplib_rcfw_start_irq(struct bnxt_qplib_rcfw *rcfw, int msix_vector,
267 int bnxt_qplib_enable_rcfw_channel(struct bnxt_qplib_rcfw *rcfw,
273 struct bnxt_qplib_rcfw *rcfw,
275 void bnxt_qplib_rcfw_free_sbuf(struct bnxt_qplib_rcfw *rcfw,
277 int bnxt_qplib_rcfw_send_message(struct bnxt_qplib_rcfw *rcfw,
280 int bnxt_qplib_deinit_rcfw(struct bnxt_qplib_rcfw *rcfw);
[all …]
Dmain.c146 rdev->rcfw.res = NULL; in bnxt_re_destroy_chip_ctx()
171 rdev->rcfw.res = &rdev->qplib_res; in bnxt_re_setup_chip_ctx()
281 bnxt_qplib_set_func_resources(&rdev->qplib_res, &rdev->rcfw, in bnxt_re_vf_res_config()
299 struct bnxt_qplib_rcfw *rcfw = &rdev->rcfw; in bnxt_re_stop_irq() local
308 bnxt_qplib_rcfw_stop_irq(rcfw, false); in bnxt_re_stop_irq()
315 struct bnxt_qplib_rcfw *rcfw = &rdev->rcfw; in bnxt_re_start_irq() local
335 rc = bnxt_qplib_rcfw_start_irq(rcfw, msix_ent[BNXT_RE_AEQ_IDX].vector, in bnxt_re_start_irq()
1014 static int bnxt_re_aeq_handler(struct bnxt_qplib_rcfw *rcfw, in bnxt_re_aeq_handler() argument
1087 if (rdev->qplib_res.rcfw) in bnxt_re_cleanup_res()
1140 if (rdev->qplib_res.rcfw) { in bnxt_re_free_res()
[all …]
Dqplib_fp.c601 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
670 rc = bnxt_qplib_rcfw_send_message(rcfw, &msg); in bnxt_qplib_create_srq()
720 struct bnxt_qplib_rcfw *rcfw = res->rcfw; in bnxt_qplib_query_srq() local
734 sbuf.sb = dma_alloc_coherent(&rcfw->pdev->dev, sbuf.size, in bnxt_qplib_query_srq()
743 rc = bnxt_qplib_rcfw_send_message(rcfw, &msg); in bnxt_qplib_query_srq()
746 dma_free_coherent(&rcfw->pdev->dev, sbuf.size, in bnxt_qplib_query_srq()
826 struct bnxt_qplib_rcfw *rcfw = res->rcfw; in bnxt_qplib_create_qp1() local
911 rc = bnxt_qplib_rcfw_send_message(rcfw, &msg); in bnxt_qplib_create_qp1()
[all …]
Dqplib_sp.h324 int bnxt_qplib_get_dev_attr(struct bnxt_qplib_rcfw *rcfw,
327 struct bnxt_qplib_rcfw *rcfw,
346 int bnxt_qplib_get_roce_stats(struct bnxt_qplib_rcfw *rcfw,
348 int bnxt_qplib_qext_stat(struct bnxt_qplib_rcfw *rcfw, u32 fid,
Dbnxt_re.h164 struct bnxt_qplib_rcfw rcfw; member
Dhw_counters.c190 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()
Dqplib_res.h286 struct bnxt_qplib_rcfw *rcfw; member