Lines Matching refs:pfc
279 static int hclge_ieee_getpfc(struct hnae3_handle *h, struct ieee_pfc *pfc) in hclge_ieee_getpfc() argument
287 memset(pfc, 0, sizeof(*pfc)); in hclge_ieee_getpfc()
288 pfc->pfc_cap = hdev->pfc_max; in hclge_ieee_getpfc()
296 pfc->pfc_en |= BIT(j); in hclge_ieee_getpfc()
309 pfc->requests[i] = requests[i]; in hclge_ieee_getpfc()
310 pfc->indications[i] = indications[i]; in hclge_ieee_getpfc()
315 static int hclge_ieee_setpfc(struct hnae3_handle *h, struct ieee_pfc *pfc) in hclge_ieee_setpfc() argument
327 if (pfc->pfc_en == hdev->tm_info.pfc_en) in hclge_ieee_setpfc()
335 if ((prio_tc[j] == i) && (pfc->pfc_en & BIT(j))) { in hclge_ieee_setpfc()
343 hdev->tm_info.pfc_en = pfc->pfc_en; in hclge_ieee_setpfc()
347 pfc->pfc_en, pfc_map, hdev->tm_info.num_tc); in hclge_ieee_setpfc()