/Linux-v4.19/drivers/infiniband/hw/bnxt_re/ |
D | qplib_rcfw.c | 53 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 …]
|
D | qplib_rcfw.h | 195 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 …]
|
D | qplib_sp.c | 55 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 …]
|
D | main.c | 174 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 …]
|
D | qplib_fp.c | 505 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 …]
|
D | qplib_sp.h | 229 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,
|
D | bnxt_re.h | 141 struct bnxt_qplib_rcfw rcfw; member
|
D | qplib_res.h | 186 struct bnxt_qplib_rcfw *rcfw; member
|
D | hw_counters.c | 141 rc = bnxt_qplib_get_roce_stats(&rdev->rcfw, &rdev->stats); in bnxt_re_ib_get_hw_stats()
|