Lines Matching refs:pfc
211 struct ieee_pfc *pfc) in xgbe_dcb_ieee_getpfc() argument
216 pfc->pfc_cap = pdata->hw_feat.tc_cnt; in xgbe_dcb_ieee_getpfc()
218 if (pdata->pfc) { in xgbe_dcb_ieee_getpfc()
219 pfc->pfc_en = pdata->pfc->pfc_en; in xgbe_dcb_ieee_getpfc()
220 pfc->mbc = pdata->pfc->mbc; in xgbe_dcb_ieee_getpfc()
221 pfc->delay = pdata->pfc->delay; in xgbe_dcb_ieee_getpfc()
228 struct ieee_pfc *pfc) in xgbe_dcb_ieee_setpfc() argument
234 pfc->pfc_cap, pfc->pfc_en, pfc->mbc, pfc->delay); in xgbe_dcb_ieee_setpfc()
237 if (pfc->pfc_en & ~((1 << pdata->hw_feat.tc_cnt) - 1)) { in xgbe_dcb_ieee_setpfc()
243 if (!pdata->pfc) { in xgbe_dcb_ieee_setpfc()
244 pdata->pfc = devm_kzalloc(pdata->dev, sizeof(*pdata->pfc), in xgbe_dcb_ieee_setpfc()
246 if (!pdata->pfc) in xgbe_dcb_ieee_setpfc()
250 memcpy(pdata->pfc, pfc, sizeof(*pdata->pfc)); in xgbe_dcb_ieee_setpfc()