Lines Matching full:pfc
13 * i40e_get_pfc_delay - retrieve PFC Link Delay
15 * @delay: holds the PFC Link delay value
17 * Returns PFC Link Delay from the PRTDCB_GENC.PFCLDA
66 * i40e_dcbnl_ieee_getpfc - retrieve local IEEE PFC configuration
68 * @pfc: structure to hold the PFC information
70 * Returns local IEEE PFC configuration
73 struct ieee_pfc *pfc) in i40e_dcbnl_ieee_getpfc() argument
84 pfc->pfc_cap = dcbxcfg->pfc.pfccap; in i40e_dcbnl_ieee_getpfc()
85 pfc->pfc_en = dcbxcfg->pfc.pfcenable; in i40e_dcbnl_ieee_getpfc()
86 pfc->mbc = dcbxcfg->pfc.mbc; in i40e_dcbnl_ieee_getpfc()
87 i40e_get_pfc_delay(hw, &pfc->delay); in i40e_dcbnl_ieee_getpfc()
91 pfc->requests[i] = pf->stats.priority_xoff_tx[i]; in i40e_dcbnl_ieee_getpfc()
92 pfc->indications[i] = pf->stats.priority_xoff_rx[i]; in i40e_dcbnl_ieee_getpfc()
147 * i40e_dcbnl_ieee_setpfc - set local IEEE PFC configuration
149 * @pfc: structure to hold the PFC information
151 * Sets local IEEE PFC configuration
154 struct ieee_pfc *pfc) in i40e_dcbnl_ieee_setpfc() argument
167 if (pfc->pfc_cap) in i40e_dcbnl_ieee_setpfc()
168 pf->tmp_cfg.pfc.pfccap = pfc->pfc_cap; in i40e_dcbnl_ieee_setpfc()
170 pf->tmp_cfg.pfc.pfccap = I40E_MAX_TRAFFIC_CLASS; in i40e_dcbnl_ieee_setpfc()
171 pf->tmp_cfg.pfc.pfcenable = pfc->pfc_en; in i40e_dcbnl_ieee_setpfc()
176 "Failed setting DCB PFC configuration err %pe aq_err %s\n", in i40e_dcbnl_ieee_setpfc()
567 * i40e_dcbnl_set_pfc_cfg - Set CEE PFC configuration
570 * @setting: the PFC setting for given priority
572 * Set the PFC enabled/disabled setting for given user priority
586 pf->tmp_cfg.pfc.pfccap = I40E_MAX_TRAFFIC_CLASS; in i40e_dcbnl_set_pfc_cfg()
588 pf->tmp_cfg.pfc.pfcenable |= BIT(prio); in i40e_dcbnl_set_pfc_cfg()
590 pf->tmp_cfg.pfc.pfcenable &= ~BIT(prio); in i40e_dcbnl_set_pfc_cfg()
592 "Set PFC Config up=%d setting=%d pfcenable=0x%x\n", in i40e_dcbnl_set_pfc_cfg()
593 prio, setting, pf->tmp_cfg.pfc.pfcenable); in i40e_dcbnl_set_pfc_cfg()
597 * i40e_dcbnl_get_pfc_cfg - Get CEE PFC configuration
600 * @setting: the PFC setting for given priority
602 * Get the PFC enabled/disabled setting for given user priority
616 *setting = (pf->hw.local_dcbx_config.pfc.pfcenable >> prio) & 0x1; in i40e_dcbnl_get_pfc_cfg()
618 "Get PFC Config up=%d setting=%d pfcenable=0x%x\n", in i40e_dcbnl_get_pfc_cfg()
619 prio, *setting, pf->hw.local_dcbx_config.pfc.pfcenable); in i40e_dcbnl_get_pfc_cfg()
716 * i40e_dcbnl_getpfcstate - Get CEE PFC mode
719 * Get the current PFC enabled state
725 /* Return enabled if any PFC enabled UP */ in i40e_dcbnl_getpfcstate()
726 if (pf->hw.local_dcbx_config.pfc.pfcenable) in i40e_dcbnl_getpfcstate()
733 * i40e_dcbnl_setpfcstate - Set CEE PFC mode
737 * The PFC state to be set; this is enabled/disabled based on the PFC
744 dev_dbg(&pf->pdev->dev, "PFC State is modified via PFC config.\n"); in i40e_dcbnl_setpfcstate()