Lines Matching full:pfc
287 static int hclge_ieee_getpfc(struct hnae3_handle *h, struct ieee_pfc *pfc) in hclge_ieee_getpfc() argument
295 memset(pfc, 0, sizeof(*pfc)); in hclge_ieee_getpfc()
296 pfc->pfc_cap = hdev->pfc_max; in hclge_ieee_getpfc()
297 pfc->pfc_en = hdev->tm_info.pfc_en; in hclge_ieee_getpfc()
308 pfc->requests[i] = requests[i]; in hclge_ieee_getpfc()
309 pfc->indications[i] = indications[i]; in hclge_ieee_getpfc()
314 static int hclge_ieee_setpfc(struct hnae3_handle *h, struct ieee_pfc *pfc) in hclge_ieee_setpfc() argument
325 if (pfc->pfc_en == hdev->tm_info.pfc_en) in hclge_ieee_setpfc()
333 if ((prio_tc[j] == i) && (pfc->pfc_en & BIT(j))) { in hclge_ieee_setpfc()
341 hdev->tm_info.pfc_en = pfc->pfc_en; in hclge_ieee_setpfc()
344 "set pfc: pfc_en=%x, pfc_map=%x, num_tc=%u\n", in hclge_ieee_setpfc()
345 pfc->pfc_en, pfc_map, hdev->tm_info.num_tc); in hclge_ieee_setpfc()