Home
last modified time | relevance | path

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

/Linux-v6.1/drivers/infiniband/hw/bnxt_re/
Dqplib_rcfw.c56 static int __wait_for_resp(struct bnxt_qplib_rcfw *rcfw, u16 cookie) in __wait_for_resp() argument
62 cmdq = &rcfw->cmdq; in __wait_for_resp()
63 cbit = cookie % rcfw->cmdq_depth; in __wait_for_resp()
70 static int __block_for_resp(struct bnxt_qplib_rcfw *rcfw, u16 cookie) in __block_for_resp() argument
76 cmdq = &rcfw->cmdq; in __block_for_resp()
77 cbit = cookie % rcfw->cmdq_depth; in __block_for_resp()
82 bnxt_qplib_service_creq(&rcfw->creq.creq_tasklet); in __block_for_resp()
88 static int __send_message(struct bnxt_qplib_rcfw *rcfw, struct cmdq_base *req, in __send_message() argument
91 struct bnxt_qplib_cmdq_ctx *cmdq = &rcfw->cmdq; in __send_message()
102 pdev = rcfw->pdev; in __send_message()
[all …]
Dqplib_sp.c57 static bool bnxt_qplib_is_atomic_cap(struct bnxt_qplib_rcfw *rcfw) in bnxt_qplib_is_atomic_cap() argument
61 if (!bnxt_qplib_is_chip_gen_p5(rcfw->res->cctx)) in bnxt_qplib_is_atomic_cap()
64 pcie_capability_read_word(rcfw->pdev, PCI_EXP_DEVCTL2, &pcie_ctl2); in bnxt_qplib_is_atomic_cap()
68 static void bnxt_qplib_query_version(struct bnxt_qplib_rcfw *rcfw, in bnxt_qplib_query_version() argument
78 rc = bnxt_qplib_rcfw_send_message(rcfw, (void *)&req, in bnxt_qplib_query_version()
88 int bnxt_qplib_get_dev_attr(struct bnxt_qplib_rcfw *rcfw, in bnxt_qplib_get_dev_attr() argument
102 sbuf = bnxt_qplib_rcfw_alloc_sbuf(rcfw, sizeof(*sb)); in bnxt_qplib_get_dev_attr()
104 dev_err(&rcfw->pdev->dev, in bnxt_qplib_get_dev_attr()
111 rc = bnxt_qplib_rcfw_send_message(rcfw, (void *)&req, (void *)&resp, in bnxt_qplib_get_dev_attr()
133 attr->max_qp_sges = bnxt_qplib_is_chip_gen_p5(rcfw->res->cctx) ? in bnxt_qplib_get_dev_attr()
[all …]
Dqplib_rcfw.h193 void bnxt_qplib_free_rcfw_channel(struct bnxt_qplib_rcfw *rcfw);
195 struct bnxt_qplib_rcfw *rcfw,
198 void bnxt_qplib_rcfw_stop_irq(struct bnxt_qplib_rcfw *rcfw, bool kill);
199 void bnxt_qplib_disable_rcfw_channel(struct bnxt_qplib_rcfw *rcfw);
200 int bnxt_qplib_rcfw_start_irq(struct bnxt_qplib_rcfw *rcfw, int msix_vector,
202 int bnxt_qplib_enable_rcfw_channel(struct bnxt_qplib_rcfw *rcfw,
208 struct bnxt_qplib_rcfw *rcfw,
210 void bnxt_qplib_rcfw_free_sbuf(struct bnxt_qplib_rcfw *rcfw,
212 int bnxt_qplib_rcfw_send_message(struct bnxt_qplib_rcfw *rcfw,
216 int bnxt_qplib_deinit_rcfw(struct bnxt_qplib_rcfw *rcfw);
[all …]
Dmain.c103 rdev->rcfw.res = NULL; in bnxt_re_destroy_chip_ctx()
129 rdev->rcfw.res = &rdev->qplib_res; in bnxt_re_setup_chip_ctx()
253 set_bit(ERR_DEVICE_DETACHED, &rdev->rcfw.cmdq.flags); in bnxt_re_stop()
261 set_bit(ERR_DEVICE_DETACHED, &rdev->rcfw.cmdq.flags); in bnxt_re_stop()
280 bnxt_qplib_set_func_resources(&rdev->qplib_res, &rdev->rcfw, in bnxt_re_sriov_config()
300 struct bnxt_qplib_rcfw *rcfw = &rdev->rcfw; in bnxt_re_stop_irq() local
309 bnxt_qplib_rcfw_stop_irq(rcfw, false); in bnxt_re_stop_irq()
316 struct bnxt_qplib_rcfw *rcfw = &rdev->rcfw; in bnxt_re_start_irq() local
336 bnxt_qplib_rcfw_start_irq(rcfw, msix_ent[BNXT_RE_AEQ_IDX].vector, in bnxt_re_start_irq()
870 static int bnxt_re_aeq_handler(struct bnxt_qplib_rcfw *rcfw, in bnxt_re_aeq_handler() argument
[all …]
Dqplib_fp.c583 struct bnxt_qplib_rcfw *rcfw = res->rcfw; in bnxt_qplib_destroy_srq() local
594 rc = bnxt_qplib_rcfw_send_message(rcfw, (struct cmdq_base *)&req, in bnxt_qplib_destroy_srq()
605 struct bnxt_qplib_rcfw *rcfw = res->rcfw; in bnxt_qplib_create_srq() local
647 rc = bnxt_qplib_rcfw_send_message(rcfw, (void *)&req, in bnxt_qplib_create_srq()
702 struct bnxt_qplib_rcfw *rcfw = res->rcfw; in bnxt_qplib_query_srq() local
713 sbuf = bnxt_qplib_rcfw_alloc_sbuf(rcfw, sizeof(*sb)); in bnxt_qplib_query_srq()
719 rc = bnxt_qplib_rcfw_send_message(rcfw, (void *)&req, (void *)&resp, in bnxt_qplib_query_srq()
722 bnxt_qplib_rcfw_free_sbuf(rcfw, sbuf); in bnxt_qplib_query_srq()
813 struct bnxt_qplib_rcfw *rcfw = res->rcfw; in bnxt_qplib_create_qp1() local
894 rc = bnxt_qplib_rcfw_send_message(rcfw, (void *)&req, in bnxt_qplib_create_qp1()
[all …]
Dqplib_sp.h258 int bnxt_qplib_get_dev_attr(struct bnxt_qplib_rcfw *rcfw,
261 struct bnxt_qplib_rcfw *rcfw,
281 int bnxt_qplib_get_roce_stats(struct bnxt_qplib_rcfw *rcfw,
283 int bnxt_qplib_qext_stat(struct bnxt_qplib_rcfw *rcfw, u32 fid,
Dbnxt_re.h152 struct bnxt_qplib_rcfw rcfw; member
Dhw_counters.c157 rc = bnxt_qplib_qext_stat(&rdev->rcfw, fid, estat); in bnxt_re_get_ext_stat()
291 rc = bnxt_qplib_get_roce_stats(&rdev->rcfw, err_s); in bnxt_re_ib_get_hw_stats()
Dqplib_res.h252 struct bnxt_qplib_rcfw *rcfw; member