Lines Matching refs:tm_info
19 hdev->tm_info.tc_info[i].tc_sch_mode = in hclge_ieee_ets_to_tm_info()
21 hdev->tm_info.pg_info[0].tc_dwrr[i] = 0; in hclge_ieee_ets_to_tm_info()
24 hdev->tm_info.tc_info[i].tc_sch_mode = in hclge_ieee_ets_to_tm_info()
26 hdev->tm_info.pg_info[0].tc_dwrr[i] = in hclge_ieee_ets_to_tm_info()
54 ets->prio_tc[i] = hdev->tm_info.prio_tc[i]; in hclge_tm_info_to_ieee_ets()
55 if (i < hdev->tm_info.num_tc) in hclge_tm_info_to_ieee_ets()
56 ets->tc_tx_bw[i] = hdev->tm_info.pg_info[0].tc_dwrr[i]; in hclge_tm_info_to_ieee_ets()
60 if (hdev->tm_info.tc_info[i].tc_sch_mode == in hclge_tm_info_to_ieee_ets()
117 if (ets->prio_tc[i] != hdev->tm_info.prio_tc[i]) in hclge_ets_tc_changed()
139 if (hdev->tm_info.tc_info[i].tc_sch_mode != in hclge_ets_sch_mode_validate()
160 if (hdev->tm_info.tc_info[i].tc_sch_mode != in hclge_ets_sch_mode_validate()
195 if (*tc != hdev->tm_info.num_tc) in hclge_ets_validate()
311 pfc->pfc_en = hdev->tm_info.pfc_en; in hclge_ieee_getpfc()
338 if (pfc->pfc_en == hdev->tm_info.pfc_en) in hclge_ieee_setpfc()
341 prio_tc = hdev->tm_info.prio_tc; in hclge_ieee_setpfc()
344 for (i = 0; i < hdev->tm_info.num_tc; i++) { in hclge_ieee_setpfc()
353 hdev->tm_info.hw_pfc_map = pfc_map; 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()
588 hdev->tm_info.prio_tc[i] = tc_info->prio_tc[i]; in hclge_config_tc()