Lines Matching refs:pg_info
527 if (hdev->tm_info.pg_info[pg_id].pg_sch_mode == HCLGE_SCH_MODE_DWRR) in hclge_tm_pg_schd_mode_cfg()
724 vport->bw_limit = hdev->tm_info.pg_info[0].bw_limit; in hclge_tm_vport_tc_info_update()
768 bw_limit = hdev->tm_info.pg_info[0].bw_limit; in hclge_tm_tc_info_init()
796 hdev->tm_info.pg_info[i].pg_id = i; in hclge_tm_pg_info_init()
797 hdev->tm_info.pg_info[i].pg_sch_mode = HCLGE_SCH_MODE_DWRR; in hclge_tm_pg_info_init()
799 hdev->tm_info.pg_info[i].bw_limit = in hclge_tm_pg_info_init()
805 hdev->tm_info.pg_info[i].tc_bit_map = hdev->hw_tc_map; in hclge_tm_pg_info_init()
807 hdev->tm_info.pg_info[i].tc_dwrr[k] = BW_PERCENT; in hclge_tm_pg_info_init()
809 hdev->tm_info.pg_info[i].tc_dwrr[k] = 0; in hclge_tm_pg_info_init()
874 hdev, i, hdev->tm_info.pg_info[i].tc_bit_map); in hclge_tm_pg_to_pri_map()
896 u32 rate = hdev->tm_info.pg_info[i].bw_limit; in hclge_tm_pg_shaper_cfg()
1185 struct hclge_pg_info *pg_info; in hclge_tm_pri_tc_base_dwrr_cfg() local
1191 pg_info = in hclge_tm_pri_tc_base_dwrr_cfg()
1192 &hdev->tm_info.pg_info[hdev->tm_info.tc_info[i].pgid]; in hclge_tm_pri_tc_base_dwrr_cfg()
1193 dwrr = pg_info->tc_dwrr[i]; in hclge_tm_pri_tc_base_dwrr_cfg()
1229 struct hclge_pg_info *pg_info; in hclge_tm_ets_tc_dwrr_cfg() local
1231 pg_info = &hdev->tm_info.pg_info[hdev->tm_info.tc_info[i].pgid]; in hclge_tm_ets_tc_dwrr_cfg()
1232 ets_weight->tc_weight[i] = pg_info->tc_dwrr[i]; in hclge_tm_ets_tc_dwrr_cfg()
1256 hdev->tm_info.pg_info[0].tc_dwrr[i]); in hclge_tm_pri_vnet_base_dwrr_pri_cfg()