Home
last modified time | relevance | path

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

/Linux-v5.15/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_rcfw.h194 void bnxt_qplib_free_rcfw_channel(struct bnxt_qplib_rcfw *rcfw);
196 struct bnxt_qplib_rcfw *rcfw,
199 void bnxt_qplib_rcfw_stop_irq(struct bnxt_qplib_rcfw *rcfw, bool kill);
200 void bnxt_qplib_disable_rcfw_channel(struct bnxt_qplib_rcfw *rcfw);
201 int bnxt_qplib_rcfw_start_irq(struct bnxt_qplib_rcfw *rcfw, int msix_vector,
203 int bnxt_qplib_enable_rcfw_channel(struct bnxt_qplib_rcfw *rcfw,
209 struct bnxt_qplib_rcfw *rcfw,
211 void bnxt_qplib_rcfw_free_sbuf(struct bnxt_qplib_rcfw *rcfw,
213 int bnxt_qplib_rcfw_send_message(struct bnxt_qplib_rcfw *rcfw,
217 int bnxt_qplib_deinit_rcfw(struct bnxt_qplib_rcfw *rcfw);
[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 …]
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()
251 set_bit(ERR_DEVICE_DETACHED, &rdev->rcfw.cmdq.flags); in bnxt_re_stop()
259 set_bit(ERR_DEVICE_DETACHED, &rdev->rcfw.cmdq.flags); in bnxt_re_stop()
278 bnxt_qplib_set_func_resources(&rdev->qplib_res, &rdev->rcfw, in bnxt_re_sriov_config()
298 struct bnxt_qplib_rcfw *rcfw = &rdev->rcfw; in bnxt_re_stop_irq() local
307 bnxt_qplib_rcfw_stop_irq(rcfw, false); in bnxt_re_stop_irq()
314 struct bnxt_qplib_rcfw *rcfw = &rdev->rcfw; in bnxt_re_start_irq() local
334 bnxt_qplib_rcfw_start_irq(rcfw, msix_ent[BNXT_RE_AEQ_IDX].vector, in bnxt_re_start_irq()
866 static int bnxt_re_aeq_handler(struct bnxt_qplib_rcfw *rcfw, in bnxt_re_aeq_handler() argument
[all …]
Dqplib_fp.c582 struct bnxt_qplib_rcfw *rcfw = res->rcfw; in bnxt_qplib_destroy_srq() local
593 rc = bnxt_qplib_rcfw_send_message(rcfw, (struct cmdq_base *)&req, in bnxt_qplib_destroy_srq()
604 struct bnxt_qplib_rcfw *rcfw = res->rcfw; in bnxt_qplib_create_srq() local
646 rc = bnxt_qplib_rcfw_send_message(rcfw, (void *)&req, in bnxt_qplib_create_srq()
701 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()
717 rc = bnxt_qplib_rcfw_send_message(rcfw, (void *)&req, (void *)&resp, in bnxt_qplib_query_srq()
720 bnxt_qplib_rcfw_free_sbuf(rcfw, sbuf); in bnxt_qplib_query_srq()
811 struct bnxt_qplib_rcfw *rcfw = res->rcfw; in bnxt_qplib_create_qp1() local
892 rc = bnxt_qplib_rcfw_send_message(rcfw, (void *)&req, in bnxt_qplib_create_qp1()
[all …]
Dqplib_sp.h241 int bnxt_qplib_get_dev_attr(struct bnxt_qplib_rcfw *rcfw,
244 struct bnxt_qplib_rcfw *rcfw,
264 int bnxt_qplib_get_roce_stats(struct bnxt_qplib_rcfw *rcfw,
Dbnxt_re.h161 struct bnxt_qplib_rcfw rcfw; member
Dhw_counters.c148 rc = bnxt_qplib_get_roce_stats(&rdev->rcfw, &rdev->stats); in bnxt_re_ib_get_hw_stats()
Dqplib_res.h258 struct bnxt_qplib_rcfw *rcfw; member