Lines Matching refs:rcfw
57 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
196 rc = bnxt_qplib_rcfw_send_message(rcfw, (void *)&req, in bnxt_qplib_set_func_resources()
226 struct bnxt_qplib_rcfw *rcfw = res->rcfw; in bnxt_qplib_del_sgid() local
261 rc = bnxt_qplib_rcfw_send_message(rcfw, (void *)&req, in bnxt_qplib_del_sgid()
287 struct bnxt_qplib_rcfw *rcfw = res->rcfw; in bnxt_qplib_add_sgid() local
349 rc = bnxt_qplib_rcfw_send_message(rcfw, (void *)&req, in bnxt_qplib_add_sgid()
378 struct bnxt_qplib_rcfw *rcfw = res->rcfw; in bnxt_qplib_update_sgid() local
403 rc = bnxt_qplib_rcfw_send_message(rcfw, (void *)&req, in bnxt_qplib_update_sgid()
499 struct bnxt_qplib_rcfw *rcfw = res->rcfw; in bnxt_qplib_create_ah() local
530 rc = bnxt_qplib_rcfw_send_message(rcfw, (void *)&req, (void *)&resp, in bnxt_qplib_create_ah()
542 struct bnxt_qplib_rcfw *rcfw = res->rcfw; in bnxt_qplib_destroy_ah() local
552 bnxt_qplib_rcfw_send_message(rcfw, (void *)&req, (void *)&resp, NULL, in bnxt_qplib_destroy_ah()
559 struct bnxt_qplib_rcfw *rcfw = res->rcfw; in bnxt_qplib_free_mrw() local
581 rc = bnxt_qplib_rcfw_send_message(rcfw, (void *)&req, (void *)&resp, in bnxt_qplib_free_mrw()
595 struct bnxt_qplib_rcfw *rcfw = res->rcfw; in bnxt_qplib_alloc_mrw() local
614 rc = bnxt_qplib_rcfw_send_message(rcfw, (void *)&req, in bnxt_qplib_alloc_mrw()
631 struct bnxt_qplib_rcfw *rcfw = res->rcfw; in bnxt_qplib_dereg_mrw() local
640 rc = bnxt_qplib_rcfw_send_message(rcfw, (void *)&req, in bnxt_qplib_dereg_mrw()
658 struct bnxt_qplib_rcfw *rcfw = res->rcfw; in bnxt_qplib_reg_mr() local
728 rc = bnxt_qplib_rcfw_send_message(rcfw, (void *)&req, in bnxt_qplib_reg_mr()
775 struct bnxt_qplib_rcfw *rcfw = res->rcfw; in bnxt_qplib_map_tc2cos() local
784 return bnxt_qplib_rcfw_send_message(rcfw, (void *)&req, (void *)&resp, in bnxt_qplib_map_tc2cos()
788 int bnxt_qplib_get_roce_stats(struct bnxt_qplib_rcfw *rcfw, in bnxt_qplib_get_roce_stats() argument
800 sbuf = bnxt_qplib_rcfw_alloc_sbuf(rcfw, sizeof(*sb)); in bnxt_qplib_get_roce_stats()
802 dev_err(&rcfw->pdev->dev, in bnxt_qplib_get_roce_stats()
809 rc = bnxt_qplib_rcfw_send_message(rcfw, (void *)&req, (void *)&resp, in bnxt_qplib_get_roce_stats()
853 if (!rcfw->init_oos_stats) { in bnxt_qplib_get_roce_stats()
854 rcfw->oos_prev = le64_to_cpu(sb->res_oos_drop_count); in bnxt_qplib_get_roce_stats()
855 rcfw->init_oos_stats = 1; in bnxt_qplib_get_roce_stats()
859 rcfw->oos_prev) & BNXT_QPLIB_OOS_COUNT_MASK; in bnxt_qplib_get_roce_stats()
860 rcfw->oos_prev = le64_to_cpu(sb->res_oos_drop_count); in bnxt_qplib_get_roce_stats()
864 bnxt_qplib_rcfw_free_sbuf(rcfw, sbuf); in bnxt_qplib_get_roce_stats()