Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/infiniband/hw/bnxt_re/
Dqplib_rcfw.c53 static int __wait_for_resp(struct bnxt_qplib_rcfw *rcfw, u16 cookie) in __wait_for_resp() argument
59 rc = wait_event_timeout(rcfw->waitq, in __wait_for_resp()
60 !test_bit(cbit, rcfw->cmdq_bitmap), in __wait_for_resp()
65 static int __block_for_resp(struct bnxt_qplib_rcfw *rcfw, u16 cookie) in __block_for_resp() argument
71 if (!test_bit(cbit, rcfw->cmdq_bitmap)) in __block_for_resp()
75 bnxt_qplib_service_creq((unsigned long)rcfw); in __block_for_resp()
76 } while (test_bit(cbit, rcfw->cmdq_bitmap) && --count); in __block_for_resp()
81 static int __send_message(struct bnxt_qplib_rcfw *rcfw, struct cmdq_base *req, in __send_message() argument
85 struct bnxt_qplib_hwq *cmdq = &rcfw->cmdq; in __send_message()
94 if (!test_bit(FIRMWARE_INITIALIZED_FLAG, &rcfw->flags) && in __send_message()
[all …]
Dqplib_rcfw.h195 void bnxt_qplib_free_rcfw_channel(struct bnxt_qplib_rcfw *rcfw);
197 struct bnxt_qplib_rcfw *rcfw, int qp_tbl_sz);
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,
203 struct bnxt_qplib_rcfw *rcfw,
210 struct bnxt_qplib_rcfw *rcfw,
212 void bnxt_qplib_rcfw_free_sbuf(struct bnxt_qplib_rcfw *rcfw,
214 int bnxt_qplib_rcfw_send_message(struct bnxt_qplib_rcfw *rcfw,
218 int bnxt_qplib_deinit_rcfw(struct bnxt_qplib_rcfw *rcfw);
[all …]
Dqplib_sp.c55 static void bnxt_qplib_query_version(struct bnxt_qplib_rcfw *rcfw, in bnxt_qplib_query_version() argument
65 rc = bnxt_qplib_rcfw_send_message(rcfw, (void *)&req, in bnxt_qplib_query_version()
75 int bnxt_qplib_get_dev_attr(struct bnxt_qplib_rcfw *rcfw, in bnxt_qplib_get_dev_attr() argument
89 sbuf = bnxt_qplib_rcfw_alloc_sbuf(rcfw, sizeof(*sb)); in bnxt_qplib_get_dev_attr()
91 dev_err(&rcfw->pdev->dev, in bnxt_qplib_get_dev_attr()
98 rc = bnxt_qplib_rcfw_send_message(rcfw, (void *)&req, (void *)&resp, in bnxt_qplib_get_dev_attr()
146 bnxt_qplib_query_version(rcfw, attr->fw_ver); in bnxt_qplib_get_dev_attr()
159 bnxt_qplib_rcfw_free_sbuf(rcfw, sbuf); in bnxt_qplib_get_dev_attr()
164 struct bnxt_qplib_rcfw *rcfw, in bnxt_qplib_set_func_resources() argument
185 rc = bnxt_qplib_rcfw_send_message(rcfw, (void *)&req, in bnxt_qplib_set_func_resources()
[all …]
Dmain.c174 bnxt_qplib_set_func_resources(&rdev->qplib_res, &rdev->rcfw, in bnxt_re_sriov_config()
191 struct bnxt_qplib_rcfw *rcfw = &rdev->rcfw; in bnxt_re_stop_irq() local
200 bnxt_qplib_rcfw_stop_irq(rcfw, false); in bnxt_re_stop_irq()
207 struct bnxt_qplib_rcfw *rcfw = &rdev->rcfw; in bnxt_re_start_irq() local
227 bnxt_qplib_rcfw_start_irq(rcfw, msix_ent[BNXT_RE_AEQ_IDX].vector, in bnxt_re_start_irq()
794 static int bnxt_re_aeq_handler(struct bnxt_qplib_rcfw *rcfw, in bnxt_re_aeq_handler() argument
872 if (rdev->qplib_res.rcfw) in bnxt_re_cleanup_res()
919 if (rdev->qplib_res.rcfw) { in bnxt_re_free_res()
921 rdev->qplib_res.rcfw = NULL; in bnxt_re_free_res()
930 rdev->qplib_res.rcfw = &rdev->rcfw; in bnxt_re_alloc_res()
[all …]
Dqplib_fp.c505 struct bnxt_qplib_rcfw *rcfw = res->rcfw; in bnxt_qplib_destroy_srq() local
516 rc = bnxt_qplib_rcfw_send_message(rcfw, (void *)&req, in bnxt_qplib_destroy_srq()
529 struct bnxt_qplib_rcfw *rcfw = res->rcfw; in bnxt_qplib_create_srq() local
579 rc = bnxt_qplib_rcfw_send_message(rcfw, (void *)&req, in bnxt_qplib_create_srq()
630 struct bnxt_qplib_rcfw *rcfw = res->rcfw; in bnxt_qplib_query_srq() local
642 sbuf = bnxt_qplib_rcfw_alloc_sbuf(rcfw, sizeof(*sb)); in bnxt_qplib_query_srq()
646 rc = bnxt_qplib_rcfw_send_message(rcfw, (void *)&req, (void *)&resp, in bnxt_qplib_query_srq()
649 bnxt_qplib_rcfw_free_sbuf(rcfw, sbuf); in bnxt_qplib_query_srq()
718 struct bnxt_qplib_rcfw *rcfw = res->rcfw; in bnxt_qplib_create_qp1() local
830 rc = bnxt_qplib_rcfw_send_message(rcfw, (void *)&req, in bnxt_qplib_create_qp1()
[all …]
Dqplib_sp.h229 int bnxt_qplib_get_dev_attr(struct bnxt_qplib_rcfw *rcfw,
232 struct bnxt_qplib_rcfw *rcfw,
250 int bnxt_qplib_get_roce_stats(struct bnxt_qplib_rcfw *rcfw,
Dbnxt_re.h141 struct bnxt_qplib_rcfw rcfw; member
Dqplib_res.h186 struct bnxt_qplib_rcfw *rcfw; member
Dhw_counters.c141 rc = bnxt_qplib_get_roce_stats(&rdev->rcfw, &rdev->stats); in bnxt_re_ib_get_hw_stats()