Lines Matching refs:pfc

238 static int ice_dcbnl_getpfc(struct net_device *netdev, struct ieee_pfc *pfc)  in ice_dcbnl_getpfc()  argument
246 pfc->pfc_cap = dcbxcfg->pfc.pfccap; in ice_dcbnl_getpfc()
247 pfc->pfc_en = dcbxcfg->pfc.pfcena; in ice_dcbnl_getpfc()
248 pfc->mbc = dcbxcfg->pfc.mbc; in ice_dcbnl_getpfc()
249 ice_get_pfc_delay(&pf->hw, &pfc->delay); in ice_dcbnl_getpfc()
252 pfc->requests[i] = pf->stats.priority_xoff_tx[i]; in ice_dcbnl_getpfc()
253 pfc->indications[i] = pf->stats.priority_xoff_rx[i]; in ice_dcbnl_getpfc()
264 static int ice_dcbnl_setpfc(struct net_device *netdev, struct ieee_pfc *pfc) in ice_dcbnl_setpfc() argument
283 if (pfc->pfc_cap) in ice_dcbnl_setpfc()
284 new_cfg->pfc.pfccap = pfc->pfc_cap; in ice_dcbnl_setpfc()
286 new_cfg->pfc.pfccap = pf->hw.func_caps.common_cap.maxtc; in ice_dcbnl_setpfc()
288 new_cfg->pfc.pfcena = pfc->pfc_en; in ice_dcbnl_setpfc()
318 *setting = (pi->qos_cfg.local_dcbx_cfg.pfc.pfcena >> prio) & 0x1; in ice_dcbnl_get_pfc_cfg()
320 prio, *setting, pi->qos_cfg.local_dcbx_cfg.pfc.pfcena); in ice_dcbnl_get_pfc_cfg()
348 new_cfg->pfc.pfccap = pf->hw.func_caps.common_cap.maxtc; in ice_dcbnl_set_pfc_cfg()
350 new_cfg->pfc.pfcena |= BIT(prio); in ice_dcbnl_set_pfc_cfg()
352 new_cfg->pfc.pfcena &= ~BIT(prio); in ice_dcbnl_set_pfc_cfg()
355 prio, set, new_cfg->pfc.pfcena); in ice_dcbnl_set_pfc_cfg()
368 if (pi->qos_cfg.local_dcbx_cfg.pfc.pfcena) in ice_dcbnl_getpfcstate()
817 new_cfg->pfc.pfccap = max_tc; in ice_dcbnl_setapp()
818 new_cfg->pfc.willing = 0; in ice_dcbnl_setapp()