Home
last modified time | relevance | path

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

/Linux-v5.4/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
61 cbit = cookie % rcfw->cmdq_depth; in __wait_for_resp()
62 rc = wait_event_timeout(rcfw->waitq, in __wait_for_resp()
63 !test_bit(cbit, rcfw->cmdq_bitmap), in __wait_for_resp()
68 static int __block_for_resp(struct bnxt_qplib_rcfw *rcfw, u16 cookie) in __block_for_resp() argument
73 cbit = cookie % rcfw->cmdq_depth; in __block_for_resp()
74 if (!test_bit(cbit, rcfw->cmdq_bitmap)) in __block_for_resp()
78 bnxt_qplib_service_creq((unsigned long)rcfw); in __block_for_resp()
79 } while (test_bit(cbit, rcfw->cmdq_bitmap) && --count); in __block_for_resp()
84 static int __send_message(struct bnxt_qplib_rcfw *rcfw, struct cmdq_base *req, in __send_message() argument
[all …]
Dqplib_sp.c57 static void bnxt_qplib_query_version(struct bnxt_qplib_rcfw *rcfw, in bnxt_qplib_query_version() argument
67 rc = bnxt_qplib_rcfw_send_message(rcfw, (void *)&req, in bnxt_qplib_query_version()
77 int bnxt_qplib_get_dev_attr(struct bnxt_qplib_rcfw *rcfw, in bnxt_qplib_get_dev_attr() argument
91 sbuf = bnxt_qplib_rcfw_alloc_sbuf(rcfw, sizeof(*sb)); in bnxt_qplib_get_dev_attr()
93 dev_err(&rcfw->pdev->dev, in bnxt_qplib_get_dev_attr()
100 rc = bnxt_qplib_rcfw_send_message(rcfw, (void *)&req, (void *)&resp, in bnxt_qplib_get_dev_attr()
122 attr->max_qp_sges = bnxt_qplib_is_chip_gen_p5(rcfw->res->cctx) ? in bnxt_qplib_get_dev_attr()
157 bnxt_qplib_query_version(rcfw, attr->fw_ver); in bnxt_qplib_get_dev_attr()
170 bnxt_qplib_rcfw_free_sbuf(rcfw, sbuf); in bnxt_qplib_get_dev_attr()
175 struct bnxt_qplib_rcfw *rcfw, in bnxt_qplib_set_func_resources() argument
[all …]
Dqplib_rcfw.h270 void bnxt_qplib_free_rcfw_channel(struct bnxt_qplib_rcfw *rcfw);
272 struct bnxt_qplib_rcfw *rcfw,
275 void bnxt_qplib_rcfw_stop_irq(struct bnxt_qplib_rcfw *rcfw, bool kill);
276 void bnxt_qplib_disable_rcfw_channel(struct bnxt_qplib_rcfw *rcfw);
277 int bnxt_qplib_rcfw_start_irq(struct bnxt_qplib_rcfw *rcfw, int msix_vector,
280 struct bnxt_qplib_rcfw *rcfw,
287 struct bnxt_qplib_rcfw *rcfw,
289 void bnxt_qplib_rcfw_free_sbuf(struct bnxt_qplib_rcfw *rcfw,
291 int bnxt_qplib_rcfw_send_message(struct bnxt_qplib_rcfw *rcfw,
295 int bnxt_qplib_deinit_rcfw(struct bnxt_qplib_rcfw *rcfw);
[all …]
Dmain.c85 rdev->rcfw.res = NULL; in bnxt_re_destroy_chip_ctx()
101 rdev->rcfw.res = &rdev->qplib_res; in bnxt_re_setup_chip_ctx()
197 bnxt_qplib_set_func_resources(&rdev->qplib_res, &rdev->rcfw, in bnxt_re_sriov_config()
214 struct bnxt_qplib_rcfw *rcfw = &rdev->rcfw; in bnxt_re_stop_irq() local
223 bnxt_qplib_rcfw_stop_irq(rcfw, false); in bnxt_re_stop_irq()
230 struct bnxt_qplib_rcfw *rcfw = &rdev->rcfw; in bnxt_re_start_irq() local
250 bnxt_qplib_rcfw_start_irq(rcfw, msix_ent[BNXT_RE_AEQ_IDX].vector, in bnxt_re_start_irq()
829 static int bnxt_re_aeq_handler(struct bnxt_qplib_rcfw *rcfw, in bnxt_re_aeq_handler() argument
911 if (rdev->qplib_res.rcfw) in bnxt_re_cleanup_res()
965 if (rdev->qplib_res.rcfw) { in bnxt_re_free_res()
[all …]
Dqplib_fp.c513 struct bnxt_qplib_rcfw *rcfw = res->rcfw; in bnxt_qplib_destroy_srq() local
524 rc = bnxt_qplib_rcfw_send_message(rcfw, (struct cmdq_base *)&req, in bnxt_qplib_destroy_srq()
535 struct bnxt_qplib_rcfw *rcfw = res->rcfw; in bnxt_qplib_create_srq() local
585 rc = bnxt_qplib_rcfw_send_message(rcfw, (void *)&req, in bnxt_qplib_create_srq()
636 struct bnxt_qplib_rcfw *rcfw = res->rcfw; in bnxt_qplib_query_srq() local
648 sbuf = bnxt_qplib_rcfw_alloc_sbuf(rcfw, sizeof(*sb)); in bnxt_qplib_query_srq()
652 rc = bnxt_qplib_rcfw_send_message(rcfw, (void *)&req, (void *)&resp, in bnxt_qplib_query_srq()
655 bnxt_qplib_rcfw_free_sbuf(rcfw, sbuf); in bnxt_qplib_query_srq()
724 struct bnxt_qplib_rcfw *rcfw = res->rcfw; in bnxt_qplib_create_qp1() local
836 rc = bnxt_qplib_rcfw_send_message(rcfw, (void *)&req, in bnxt_qplib_create_qp1()
[all …]
Dqplib_sp.h244 int bnxt_qplib_get_dev_attr(struct bnxt_qplib_rcfw *rcfw,
247 struct bnxt_qplib_rcfw *rcfw,
267 int bnxt_qplib_get_roce_stats(struct bnxt_qplib_rcfw *rcfw,
Dbnxt_re.h143 struct bnxt_qplib_rcfw rcfw; member
Dqplib_res.h196 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()