Home
last modified time | relevance | path

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

/linux-6.12.1/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_rcfw.h260 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 …]
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_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()
143 if (!bnxt_qplib_is_chip_gen_p7(rcfw->res->cctx)) in bnxt_qplib_get_dev_attr()
[all …]
Dmain.c157 rdev->rcfw.res = NULL; in bnxt_re_destroy_chip_ctx()
183 rdev->rcfw.res = &rdev->qplib_res; in bnxt_re_setup_chip_ctx()
293 bnxt_qplib_set_func_resources(&rdev->qplib_res, &rdev->rcfw, in bnxt_re_vf_res_config()
311 struct bnxt_qplib_rcfw *rcfw; in bnxt_re_stop_irq() local
317 rcfw = &rdev->rcfw; in bnxt_re_stop_irq()
324 bnxt_qplib_rcfw_stop_irq(rcfw, false); in bnxt_re_stop_irq()
331 struct bnxt_qplib_rcfw *rcfw; in bnxt_re_start_irq() local
338 rcfw = &rdev->rcfw; in bnxt_re_start_irq()
355 rc = bnxt_qplib_rcfw_start_irq(rcfw, msix_ent[BNXT_RE_AEQ_IDX].vector, in bnxt_re_start_irq()
1224 static int bnxt_re_aeq_handler(struct bnxt_qplib_rcfw *rcfw, in bnxt_re_aeq_handler() argument
[all …]
Dqplib_fp.c620 struct bnxt_qplib_rcfw *rcfw = res->rcfw; in bnxt_qplib_destroy_srq() local
634 rc = bnxt_qplib_rcfw_send_message(rcfw, &msg); in bnxt_qplib_destroy_srq()
644 struct bnxt_qplib_rcfw *rcfw = res->rcfw; in bnxt_qplib_create_srq() local
689 rc = bnxt_qplib_rcfw_send_message(rcfw, &msg); in bnxt_qplib_create_srq()
739 struct bnxt_qplib_rcfw *rcfw = res->rcfw; in bnxt_qplib_query_srq() local
753 sbuf.sb = dma_alloc_coherent(&rcfw->pdev->dev, sbuf.size, in bnxt_qplib_query_srq()
762 rc = bnxt_qplib_rcfw_send_message(rcfw, &msg); in bnxt_qplib_query_srq()
765 dma_free_coherent(&rcfw->pdev->dev, sbuf.size, in bnxt_qplib_query_srq()
845 struct bnxt_qplib_rcfw *rcfw = res->rcfw; in bnxt_qplib_create_qp1() local
930 rc = bnxt_qplib_rcfw_send_message(rcfw, &msg); in bnxt_qplib_create_qp1()
[all …]
Dqplib_sp.h328 int bnxt_qplib_get_dev_attr(struct bnxt_qplib_rcfw *rcfw,
331 struct bnxt_qplib_rcfw *rcfw,
350 int bnxt_qplib_get_roce_stats(struct bnxt_qplib_rcfw *rcfw,
352 int bnxt_qplib_qext_stat(struct bnxt_qplib_rcfw *rcfw, u32 fid,
Dbnxt_re.h188 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.h305 struct bnxt_qplib_rcfw *rcfw; member