Lines Matching refs:pfc
303 static int hclge_ieee_getpfc(struct hnae3_handle *h, struct ieee_pfc *pfc) in hclge_ieee_getpfc() argument
309 memset(pfc, 0, sizeof(*pfc)); in hclge_ieee_getpfc()
310 pfc->pfc_cap = hdev->pfc_max; in hclge_ieee_getpfc()
311 pfc->pfc_en = hdev->tm_info.pfc_en; in hclge_ieee_getpfc()
320 hclge_pfc_tx_stats_get(hdev, pfc->requests); in hclge_ieee_getpfc()
321 hclge_pfc_rx_stats_get(hdev, pfc->indications); in hclge_ieee_getpfc()
326 static int hclge_ieee_setpfc(struct hnae3_handle *h, struct ieee_pfc *pfc) in hclge_ieee_setpfc() argument
338 if (pfc->pfc_en == hdev->tm_info.pfc_en) in hclge_ieee_setpfc()
346 if ((prio_tc[j] == i) && (pfc->pfc_en & BIT(j))) { in hclge_ieee_setpfc()
354 hdev->tm_info.pfc_en = pfc->pfc_en; in hclge_ieee_setpfc()
358 pfc->pfc_en, pfc_map, hdev->tm_info.num_tc); in hclge_ieee_setpfc()