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
67 * i40e_dcbnl_ieee_getpfc - retrieve local IEEE PFC configuration
69 * @pfc: structure to hold the PFC information
71 * Returns local IEEE PFC configuration
74 struct ieee_pfc *pfc) in i40e_dcbnl_ieee_getpfc() argument
85 pfc->pfc_cap = dcbxcfg->pfc.pfccap; in i40e_dcbnl_ieee_getpfc()
86 pfc->pfc_en = dcbxcfg->pfc.pfcenable; in i40e_dcbnl_ieee_getpfc()
87 pfc->mbc = dcbxcfg->pfc.mbc; in i40e_dcbnl_ieee_getpfc()
88 i40e_get_pfc_delay(hw, &pfc->delay); in i40e_dcbnl_ieee_getpfc()
92 pfc->requests[i] = pf->stats.priority_xoff_tx[i]; in i40e_dcbnl_ieee_getpfc()
93 pfc->indications[i] = pf->stats.priority_xoff_rx[i]; in i40e_dcbnl_ieee_getpfc()
148 * i40e_dcbnl_ieee_setpfc - set local IEEE PFC configuration
150 * @pfc: structure to hold the PFC information
152 * Sets local IEEE PFC configuration
155 struct ieee_pfc *pfc) in i40e_dcbnl_ieee_setpfc() argument
168 if (pfc->pfc_cap) in i40e_dcbnl_ieee_setpfc()
169 pf->tmp_cfg.pfc.pfccap = pfc->pfc_cap; in i40e_dcbnl_ieee_setpfc()
171 pf->tmp_cfg.pfc.pfccap = I40E_MAX_TRAFFIC_CLASS; in i40e_dcbnl_ieee_setpfc()
172 pf->tmp_cfg.pfc.pfcenable = pfc->pfc_en; in i40e_dcbnl_ieee_setpfc()
177 "Failed setting DCB PFC configuration err %s aq_err %s\n", in i40e_dcbnl_ieee_setpfc()
568 * i40e_dcbnl_set_pfc_cfg - Set CEE PFC configuration
571 * @setting: the PFC setting for given priority
573 * Set the PFC enabled/disabled setting for given user priority
587 pf->tmp_cfg.pfc.pfccap = I40E_MAX_TRAFFIC_CLASS; in i40e_dcbnl_set_pfc_cfg()
589 pf->tmp_cfg.pfc.pfcenable |= BIT(prio); in i40e_dcbnl_set_pfc_cfg()
591 pf->tmp_cfg.pfc.pfcenable &= ~BIT(prio); in i40e_dcbnl_set_pfc_cfg()
593 "Set PFC Config up=%d setting=%d pfcenable=0x%x\n", in i40e_dcbnl_set_pfc_cfg()
594 prio, setting, pf->tmp_cfg.pfc.pfcenable); in i40e_dcbnl_set_pfc_cfg()
598 * i40e_dcbnl_get_pfc_cfg - Get CEE PFC configuration
601 * @setting: the PFC setting for given priority
603 * Get the PFC enabled/disabled setting for given user priority
617 *setting = (pf->hw.local_dcbx_config.pfc.pfcenable >> prio) & 0x1; in i40e_dcbnl_get_pfc_cfg()
619 "Get PFC Config up=%d setting=%d pfcenable=0x%x\n", in i40e_dcbnl_get_pfc_cfg()
620 prio, *setting, pf->hw.local_dcbx_config.pfc.pfcenable); in i40e_dcbnl_get_pfc_cfg()
717 * i40e_dcbnl_getpfcstate - Get CEE PFC mode
720 * Get the current PFC enabled state
726 /* Return enabled if any PFC enabled UP */ in i40e_dcbnl_getpfcstate()
727 if (pf->hw.local_dcbx_config.pfc.pfcenable) in i40e_dcbnl_getpfcstate()
734 * i40e_dcbnl_setpfcstate - Set CEE PFC mode
738 * The PFC state to be set; this is enabled/disabled based on the PFC
745 dev_dbg(&pf->pdev->dev, "PFC State is modified via PFC config.\n"); in i40e_dcbnl_setpfcstate()