Lines Matching full:app

316 bnxt_hwrm_get_dcbx_app(struct bnxt_softc *softc, struct bnxt_dcb_app *app,  in bnxt_hwrm_get_dcbx_app()  argument
355 app[*num_inputs].priority = fw_app->priority; in bnxt_hwrm_get_dcbx_app()
356 app[*num_inputs].protocol = htobe16(fw_app->protocol_id); in bnxt_hwrm_get_dcbx_app()
357 app[*num_inputs].selector = fw_app->protocol_selector; in bnxt_hwrm_get_dcbx_app()
367 bnxt_hwrm_set_dcbx_app(struct bnxt_softc *softc, struct bnxt_dcb_app *app, in bnxt_hwrm_set_dcbx_app() argument
407 if (fw_app->protocol_id == htobe16(app->protocol) && in bnxt_hwrm_set_dcbx_app()
408 fw_app->protocol_selector == app->selector && in bnxt_hwrm_set_dcbx_app()
409 fw_app->priority == app->priority) { in bnxt_hwrm_set_dcbx_app()
419 fw_app->protocol_id = htobe16(app->protocol); in bnxt_hwrm_set_dcbx_app()
420 fw_app->protocol_selector = app->selector; in bnxt_hwrm_set_dcbx_app()
421 fw_app->priority = app->priority; in bnxt_hwrm_set_dcbx_app()
476 bnxt_hwrm_queue_dscp2pri_qcfg(struct bnxt_softc *softc, struct bnxt_dcb_app *app, in bnxt_hwrm_queue_dscp2pri_qcfg() argument
509 app[*num_inputs].priority = dscp2pri[i].pri; in bnxt_hwrm_queue_dscp2pri_qcfg()
510 app[*num_inputs].protocol = dscp2pri[i].dscp; in bnxt_hwrm_queue_dscp2pri_qcfg()
511 app[*num_inputs].selector = BNXT_IEEE_8021QAZ_APP_SEL_DSCP; in bnxt_hwrm_queue_dscp2pri_qcfg()
521 bnxt_hwrm_queue_dscp2pri_cfg(struct bnxt_softc *softc, struct bnxt_dcb_app *app, in bnxt_hwrm_queue_dscp2pri_cfg() argument
541 dscp2pri->dscp = app->protocol; in bnxt_hwrm_queue_dscp2pri_cfg()
546 dscp2pri->pri = app->priority; in bnxt_hwrm_queue_dscp2pri_cfg()
716 bnxt_dcb_ieee_dscp_app_prep(struct bnxt_softc *softc, struct bnxt_dcb_app *app) in bnxt_dcb_ieee_dscp_app_prep() argument
718 if (app->selector == BNXT_IEEE_8021QAZ_APP_SEL_DSCP) { in bnxt_dcb_ieee_dscp_app_prep()
721 if (app->protocol > softc->max_dscp_value) in bnxt_dcb_ieee_dscp_app_prep()
728 bnxt_dcb_ieee_setapp(struct bnxt_softc *softc, struct bnxt_dcb_app *app) in bnxt_dcb_ieee_setapp() argument
737 rc = bnxt_dcb_ieee_dscp_app_prep(softc, app); in bnxt_dcb_ieee_setapp()
741 if ((app->selector == BNXT_IEEE_8021QAZ_APP_SEL_ETHERTYPE && in bnxt_dcb_ieee_setapp()
742 app->protocol == ETH_P_ROCE) || in bnxt_dcb_ieee_setapp()
743 (app->selector == BNXT_IEEE_8021QAZ_APP_SEL_DGRAM && in bnxt_dcb_ieee_setapp()
744 app->protocol == ROCE_V2_UDP_DPORT)) in bnxt_dcb_ieee_setapp()
745 rc = bnxt_hwrm_set_dcbx_app(softc, app, true); in bnxt_dcb_ieee_setapp()
747 if (app->selector == BNXT_IEEE_8021QAZ_APP_SEL_DSCP) in bnxt_dcb_ieee_setapp()
748 rc = bnxt_hwrm_queue_dscp2pri_cfg(softc, app, true); in bnxt_dcb_ieee_setapp()
754 bnxt_dcb_ieee_delapp(struct bnxt_softc *softc, struct bnxt_dcb_app *app) in bnxt_dcb_ieee_delapp() argument
762 rc = bnxt_dcb_ieee_dscp_app_prep(softc, app); in bnxt_dcb_ieee_delapp()
766 if ((app->selector == BNXT_IEEE_8021QAZ_APP_SEL_ETHERTYPE && in bnxt_dcb_ieee_delapp()
767 app->protocol == ETH_P_ROCE) || in bnxt_dcb_ieee_delapp()
768 (app->selector == BNXT_IEEE_8021QAZ_APP_SEL_DGRAM && in bnxt_dcb_ieee_delapp()
769 app->protocol == ROCE_V2_UDP_DPORT)) in bnxt_dcb_ieee_delapp()
770 rc = bnxt_hwrm_set_dcbx_app(softc, app, false); in bnxt_dcb_ieee_delapp()
772 if (app->selector == BNXT_IEEE_8021QAZ_APP_SEL_DSCP) in bnxt_dcb_ieee_delapp()
773 rc = bnxt_hwrm_queue_dscp2pri_cfg(softc, app, false); in bnxt_dcb_ieee_delapp()
779 bnxt_dcb_ieee_listapp(struct bnxt_softc *softc, struct bnxt_dcb_app *app, in bnxt_dcb_ieee_listapp() argument
782 bnxt_hwrm_get_dcbx_app(softc, app, nitems, num_inputs); in bnxt_dcb_ieee_listapp()
783 bnxt_hwrm_queue_dscp2pri_qcfg(softc, app, nitems, num_inputs); in bnxt_dcb_ieee_listapp()