Lines Matching refs:rcfw
58 static bool bnxt_qplib_is_atomic_cap(struct bnxt_qplib_rcfw *rcfw) in bnxt_qplib_is_atomic_cap() argument
62 if (!bnxt_qplib_is_chip_gen_p5_p7(rcfw->res->cctx)) in bnxt_qplib_is_atomic_cap()
65 pcie_capability_read_word(rcfw->pdev, PCI_EXP_DEVCTL2, &pcie_ctl2); in bnxt_qplib_is_atomic_cap()
69 static void bnxt_qplib_query_version(struct bnxt_qplib_rcfw *rcfw, in bnxt_qplib_query_version() argument
82 rc = bnxt_qplib_rcfw_send_message(rcfw, &msg); in bnxt_qplib_query_version()
91 int bnxt_qplib_get_dev_attr(struct bnxt_qplib_rcfw *rcfw, in bnxt_qplib_get_dev_attr() argument
104 cctx = rcfw->res->cctx; in bnxt_qplib_get_dev_attr()
110 sbuf.sb = dma_alloc_coherent(&rcfw->pdev->dev, sbuf.size, in bnxt_qplib_get_dev_attr()
118 rc = bnxt_qplib_rcfw_send_message(rcfw, &msg); in bnxt_qplib_get_dev_attr()
143 if (!bnxt_qplib_is_chip_gen_p7(rcfw->res->cctx)) in bnxt_qplib_get_dev_attr()
159 if (!bnxt_qplib_is_chip_gen_p7(rcfw->res->cctx)) in bnxt_qplib_get_dev_attr()
173 bnxt_qplib_query_version(rcfw, attr->fw_ver); in bnxt_qplib_get_dev_attr()
184 if (rcfw->res->cctx->hwrm_intf_ver >= HWRM_VERSION_DEV_ATTR_MAX_DPI) in bnxt_qplib_get_dev_attr()
187 attr->is_atomic = bnxt_qplib_is_atomic_cap(rcfw); in bnxt_qplib_get_dev_attr()
189 dma_free_coherent(&rcfw->pdev->dev, sbuf.size, in bnxt_qplib_get_dev_attr()
195 struct bnxt_qplib_rcfw *rcfw, in bnxt_qplib_set_func_resources() argument
220 rc = bnxt_qplib_rcfw_send_message(rcfw, &msg); in bnxt_qplib_set_func_resources()
248 struct bnxt_qplib_rcfw *rcfw = res->rcfw; in bnxt_qplib_del_sgid() local
283 rc = bnxt_qplib_rcfw_send_message(rcfw, &msg); in bnxt_qplib_del_sgid()
308 struct bnxt_qplib_rcfw *rcfw = res->rcfw; in bnxt_qplib_add_sgid() local
370 rc = bnxt_qplib_rcfw_send_message(rcfw, &msg); in bnxt_qplib_add_sgid()
398 struct bnxt_qplib_rcfw *rcfw = res->rcfw; in bnxt_qplib_update_sgid() local
427 rc = bnxt_qplib_rcfw_send_message(rcfw, &msg); in bnxt_qplib_update_sgid()
435 struct bnxt_qplib_rcfw *rcfw = res->rcfw; in bnxt_qplib_create_ah() local
470 rc = bnxt_qplib_rcfw_send_message(rcfw, &msg); in bnxt_qplib_create_ah()
481 struct bnxt_qplib_rcfw *rcfw = res->rcfw; in bnxt_qplib_destroy_ah() local
496 rc = bnxt_qplib_rcfw_send_message(rcfw, &msg); in bnxt_qplib_destroy_ah()
504 struct bnxt_qplib_rcfw *rcfw = res->rcfw; in bnxt_qplib_free_mrw() local
529 rc = bnxt_qplib_rcfw_send_message(rcfw, &msg); in bnxt_qplib_free_mrw()
542 struct bnxt_qplib_rcfw *rcfw = res->rcfw; in bnxt_qplib_alloc_mrw() local
565 rc = bnxt_qplib_rcfw_send_message(rcfw, &msg); in bnxt_qplib_alloc_mrw()
581 struct bnxt_qplib_rcfw *rcfw = res->rcfw; in bnxt_qplib_dereg_mrw() local
594 rc = bnxt_qplib_rcfw_send_message(rcfw, &msg); in bnxt_qplib_dereg_mrw()
611 struct bnxt_qplib_rcfw *rcfw = res->rcfw; in bnxt_qplib_reg_mr() local
678 rc = bnxt_qplib_rcfw_send_message(rcfw, &msg); in bnxt_qplib_reg_mr()
734 int bnxt_qplib_get_roce_stats(struct bnxt_qplib_rcfw *rcfw, in bnxt_qplib_get_roce_stats() argument
749 sbuf.sb = dma_alloc_coherent(&rcfw->pdev->dev, sbuf.size, in bnxt_qplib_get_roce_stats()
758 rc = bnxt_qplib_rcfw_send_message(rcfw, &msg); in bnxt_qplib_get_roce_stats()
801 if (!rcfw->init_oos_stats) { in bnxt_qplib_get_roce_stats()
802 rcfw->oos_prev = le64_to_cpu(sb->res_oos_drop_count); in bnxt_qplib_get_roce_stats()
803 rcfw->init_oos_stats = 1; in bnxt_qplib_get_roce_stats()
807 rcfw->oos_prev) & BNXT_QPLIB_OOS_COUNT_MASK; in bnxt_qplib_get_roce_stats()
808 rcfw->oos_prev = le64_to_cpu(sb->res_oos_drop_count); in bnxt_qplib_get_roce_stats()
812 dma_free_coherent(&rcfw->pdev->dev, sbuf.size, in bnxt_qplib_get_roce_stats()
817 int bnxt_qplib_qext_stat(struct bnxt_qplib_rcfw *rcfw, u32 fid, in bnxt_qplib_qext_stat() argument
828 sbuf.sb = dma_alloc_coherent(&rcfw->pdev->dev, sbuf.size, in bnxt_qplib_qext_stat()
845 rc = bnxt_qplib_rcfw_send_message(rcfw, &msg); in bnxt_qplib_qext_stat()
872 dma_free_coherent(&rcfw->pdev->dev, sbuf.size, in bnxt_qplib_qext_stat()
981 rc = bnxt_qplib_rcfw_send_message(res->rcfw, &msg); in bnxt_qplib_modify_cc()