Lines Matching full:rc

90 	int rc;  in bnxt_hwrm_queue_pri2cos_qcfg()  local
95 rc = _hwrm_send_message(softc, &req, sizeof(req)); in bnxt_hwrm_queue_pri2cos_qcfg()
96 if (!rc) { in bnxt_hwrm_queue_pri2cos_qcfg()
109 return rc; in bnxt_hwrm_queue_pri2cos_qcfg()
166 int rc, i; in bnxt_hwrm_queue_cos2bw_qcfg() local
170 rc = _hwrm_send_message(softc, &req, sizeof(req)); in bnxt_hwrm_queue_cos2bw_qcfg()
171 if (rc) { in bnxt_hwrm_queue_cos2bw_qcfg()
172 return rc; in bnxt_hwrm_queue_cos2bw_qcfg()
202 int i, j, rc; in bnxt_queue_remap() local
228 rc = bnxt_hwrm_queue_cos2bw_cfg(softc, softc->ieee_ets, softc->max_tc); in bnxt_queue_remap()
229 if (rc) { in bnxt_queue_remap()
230 device_printf(softc->dev, "failed to config BW, rc = %d\n", rc); in bnxt_queue_remap()
231 return rc; in bnxt_queue_remap()
233 rc = bnxt_hwrm_queue_pri2cos_cfg(softc, softc->ieee_ets, in bnxt_queue_remap()
235 if (rc) { in bnxt_queue_remap()
236 device_printf(softc->dev, "failed to config prio, rc = %d\n", rc); in bnxt_queue_remap()
237 return rc; in bnxt_queue_remap()
301 int rc; in bnxt_hwrm_queue_pfc_qcfg() local
305 rc = _hwrm_send_message(softc, &req, sizeof(req)); in bnxt_hwrm_queue_pfc_qcfg()
306 if (rc) { in bnxt_hwrm_queue_pfc_qcfg()
307 return rc; in bnxt_hwrm_queue_pfc_qcfg()
324 int rc, n, i; in bnxt_hwrm_get_dcbx_app() local
333 rc = iflib_dma_alloc(softc->ctx, data_len, &dma_data, in bnxt_hwrm_get_dcbx_app()
335 if (rc) in bnxt_hwrm_get_dcbx_app()
341 rc = _hwrm_send_message(softc, &get, sizeof(get)); in bnxt_hwrm_get_dcbx_app()
342 if (rc) in bnxt_hwrm_get_dcbx_app()
349 rc = -ENODEV; in bnxt_hwrm_get_dcbx_app()
363 return rc; in bnxt_hwrm_get_dcbx_app()
376 int rc, n, i; in bnxt_hwrm_set_dcbx_app() local
385 rc = iflib_dma_alloc(softc->ctx, data_len, &dma_data, in bnxt_hwrm_set_dcbx_app()
387 if (rc) in bnxt_hwrm_set_dcbx_app()
393 rc = _hwrm_send_message(softc, &get, sizeof(get)); in bnxt_hwrm_set_dcbx_app()
394 if (rc) in bnxt_hwrm_set_dcbx_app()
401 rc = -ENODEV; in bnxt_hwrm_set_dcbx_app()
445 rc = _hwrm_send_message(softc, &set, sizeof(set)); in bnxt_hwrm_set_dcbx_app()
449 return rc; in bnxt_hwrm_set_dcbx_app()
458 int rc; in bnxt_hwrm_queue_dscp_qcaps() local
466 rc = _hwrm_send_message(softc, &req, sizeof(req)); in bnxt_hwrm_queue_dscp_qcaps()
467 if (!rc) { in bnxt_hwrm_queue_dscp_qcaps()
472 return rc; in bnxt_hwrm_queue_dscp_qcaps()
484 int rc, entry_cnt; in bnxt_hwrm_queue_dscp2pri_qcfg() local
490 rc = iflib_dma_alloc(softc->ctx, sizeof(*dscp2pri) * 128, &dma_data, in bnxt_hwrm_queue_dscp2pri_qcfg()
492 if (rc) in bnxt_hwrm_queue_dscp2pri_qcfg()
502 rc = _hwrm_send_message(softc, &req, sizeof(req)); in bnxt_hwrm_queue_dscp2pri_qcfg()
504 if (rc) in bnxt_hwrm_queue_dscp2pri_qcfg()
517 return rc; in bnxt_hwrm_queue_dscp2pri_qcfg()
527 int rc; in bnxt_hwrm_queue_dscp2pri_cfg() local
532 rc = iflib_dma_alloc(softc->ctx, sizeof(*dscp2pri), &dma_data, in bnxt_hwrm_queue_dscp2pri_cfg()
534 if (rc) in bnxt_hwrm_queue_dscp2pri_cfg()
549 rc = _hwrm_send_message(softc, &req, sizeof(req)); in bnxt_hwrm_queue_dscp2pri_cfg()
552 return rc; in bnxt_hwrm_queue_dscp2pri_cfg()
606 int rc; in bnxt_dcb_ieee_getets() local
611 rc = bnxt_hwrm_queue_cos2bw_qcfg(softc, my_ets); in bnxt_dcb_ieee_getets()
612 if (rc) in bnxt_dcb_ieee_getets()
614 rc = bnxt_hwrm_queue_pri2cos_qcfg(softc, my_ets); in bnxt_dcb_ieee_getets()
615 if (rc) in bnxt_dcb_ieee_getets()
628 return rc; in bnxt_dcb_ieee_getets()
635 int rc; in bnxt_dcb_ieee_setets() local
641 rc = bnxt_ets_validate(softc, ets, &max_tc); in bnxt_dcb_ieee_setets()
642 if (rc) in bnxt_dcb_ieee_setets()
643 return rc; in bnxt_dcb_ieee_setets()
645 rc = bnxt_hwrm_queue_cos2bw_cfg(softc, ets, max_tc); in bnxt_dcb_ieee_setets()
646 if (rc) in bnxt_dcb_ieee_setets()
650 rc = bnxt_hwrm_queue_pri2cos_cfg(softc, ets, in bnxt_dcb_ieee_setets()
652 if (rc) in bnxt_dcb_ieee_setets()
655 rc = bnxt_hwrm_queue_pri2cos_cfg(softc, ets, in bnxt_dcb_ieee_setets()
657 if (rc) in bnxt_dcb_ieee_setets()
660 rc = bnxt_hwrm_queue_pri2cos_cfg(softc, ets, in bnxt_dcb_ieee_setets()
662 if (rc) in bnxt_dcb_ieee_setets()
669 return rc; in bnxt_dcb_ieee_setets()
676 int rc; in bnxt_dcb_ieee_getpfc() local
683 rc = bnxt_hwrm_queue_pfc_qcfg(softc, my_pfc); in bnxt_dcb_ieee_getpfc()
684 if (rc) in bnxt_dcb_ieee_getpfc()
698 int rc; in bnxt_dcb_ieee_setpfc() local
708 rc = bnxt_hwrm_queue_pfc_cfg(softc, pfc); in bnxt_dcb_ieee_setpfc()
709 if (!rc) in bnxt_dcb_ieee_setpfc()
712 return rc; in bnxt_dcb_ieee_setpfc()
730 int rc; in bnxt_dcb_ieee_setapp() local
737 rc = bnxt_dcb_ieee_dscp_app_prep(softc, app); in bnxt_dcb_ieee_setapp()
738 if (rc) in bnxt_dcb_ieee_setapp()
739 return rc; in bnxt_dcb_ieee_setapp()
745 rc = bnxt_hwrm_set_dcbx_app(softc, app, true); in bnxt_dcb_ieee_setapp()
748 rc = bnxt_hwrm_queue_dscp2pri_cfg(softc, app, true); in bnxt_dcb_ieee_setapp()
750 return rc; in bnxt_dcb_ieee_setapp()
756 int rc; in bnxt_dcb_ieee_delapp() local
762 rc = bnxt_dcb_ieee_dscp_app_prep(softc, app); in bnxt_dcb_ieee_delapp()
763 if (rc) in bnxt_dcb_ieee_delapp()
764 return rc; in bnxt_dcb_ieee_delapp()
770 rc = bnxt_hwrm_set_dcbx_app(softc, app, false); in bnxt_dcb_ieee_delapp()
773 rc = bnxt_hwrm_queue_dscp2pri_cfg(softc, app, false); in bnxt_dcb_ieee_delapp()
775 return rc; in bnxt_dcb_ieee_delapp()