Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/drivers/infiniband/hw/bnxt_re/
H A 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 …]
H A 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()
154 bnxt_qplib_query_version(rcfw, attr->fw_ver); in bnxt_qplib_get_dev_attr()
167 bnxt_qplib_rcfw_free_sbuf(rcfw, sbuf); in bnxt_qplib_get_dev_attr()
172 struct bnxt_qplib_rcfw *rcfw, in bnxt_qplib_set_func_resources() argument
[all …]
H A Dqplib_rcfw.h191 void bnxt_qplib_free_rcfw_channel(struct bnxt_qplib_rcfw *rcfw);
193 struct bnxt_qplib_rcfw *rcfw,
196 void bnxt_qplib_rcfw_stop_irq(struct bnxt_qplib_rcfw *rcfw, bool kill);
197 void bnxt_qplib_disable_rcfw_channel(struct bnxt_qplib_rcfw *rcfw);
198 int bnxt_qplib_rcfw_start_irq(struct bnxt_qplib_rcfw *rcfw, int msix_vector,
200 int bnxt_qplib_enable_rcfw_channel(struct bnxt_qplib_rcfw *rcfw,
206 struct bnxt_qplib_rcfw *rcfw,
208 void bnxt_qplib_rcfw_free_sbuf(struct bnxt_qplib_rcfw *rcfw,
210 int bnxt_qplib_rcfw_send_message(struct bnxt_qplib_rcfw *rcfw,
214 int bnxt_qplib_deinit_rcfw(struct bnxt_qplib_rcfw *rcfw);
[all …]
H A Dmain.c102 rdev->rcfw.res = NULL; in bnxt_re_destroy_chip_ctx()
128 rdev->rcfw.res = &rdev->qplib_res; in bnxt_re_setup_chip_ctx()
241 bnxt_qplib_set_func_resources(&rdev->qplib_res, &rdev->rcfw, in bnxt_re_sriov_config()
261 struct bnxt_qplib_rcfw *rcfw = &rdev->rcfw; in bnxt_re_stop_irq() local
270 bnxt_qplib_rcfw_stop_irq(rcfw, false); in bnxt_re_stop_irq()
277 struct bnxt_qplib_rcfw *rcfw = &rdev->rcfw; in bnxt_re_start_irq() local
297 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
952 if (rdev->qplib_res.rcfw) in bnxt_re_cleanup_res()
1006 if (rdev->qplib_res.rcfw) { in bnxt_re_free_res()
[all …]
H A 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
712 sbuf = bnxt_qplib_rcfw_alloc_sbuf(rcfw, sizeof(*sb)); in bnxt_qplib_query_srq()
718 rc = bnxt_qplib_rcfw_send_message(rcfw, (void *)&req, (void *)&resp, in bnxt_qplib_query_srq()
721 bnxt_qplib_rcfw_free_sbuf(rcfw, sbuf); in bnxt_qplib_query_srq()
812 struct bnxt_qplib_rcfw *rcfw = res->rcfw; in bnxt_qplib_create_qp1() local
893 rc = bnxt_qplib_rcfw_send_message(rcfw, (void *)&req, in bnxt_qplib_create_qp1()
[all …]
H A Dqplib_sp.h243 int bnxt_qplib_get_dev_attr(struct bnxt_qplib_rcfw *rcfw,
246 struct bnxt_qplib_rcfw *rcfw,
266 int bnxt_qplib_get_roce_stats(struct bnxt_qplib_rcfw *rcfw,
H A Dbnxt_re.h160 struct bnxt_qplib_rcfw rcfw; member
H A Dhw_counters.c148 rc = bnxt_qplib_get_roce_stats(&rdev->rcfw, &rdev->stats); in bnxt_re_ib_get_hw_stats()
H A Dqplib_res.h264 struct bnxt_qplib_rcfw *rcfw; member