Lines Matching refs:pri_id
226 static int hclge_fill_pri_array(struct hclge_dev *hdev, u8 *pri, u8 pri_id) in hclge_fill_pri_array() argument
230 tc = hdev->tm_info.prio_tc[pri_id]; in hclge_fill_pri_array()
244 pri[pri_id >> 1] |= tc << ((pri_id & 1) * 4); in hclge_fill_pri_array()
253 u8 pri_id; in hclge_up_to_tc_map() local
258 for (pri_id = 0; pri_id < HNAE3_MAX_USER_PRIO; pri_id++) { in hclge_up_to_tc_map()
259 ret = hclge_fill_pri_array(hdev, pri, pri_id); in hclge_up_to_tc_map()
332 static int hclge_tm_pri_weight_cfg(struct hclge_dev *hdev, u8 pri_id, in hclge_tm_pri_weight_cfg() argument
342 weight->pri_id = pri_id; in hclge_tm_pri_weight_cfg()
427 enum hclge_shap_bucket bucket, u8 pri_id, in hclge_tm_pri_shapping_cfg() argument
441 shap_cfg_cmd->pri_id = pri_id; in hclge_tm_pri_shapping_cfg()
464 static int hclge_tm_pri_schd_mode_cfg(struct hclge_dev *hdev, u8 pri_id) in hclge_tm_pri_schd_mode_cfg() argument
470 if (hdev->tm_info.tc_info[pri_id].tc_sch_mode == HCLGE_SCH_MODE_DWRR) in hclge_tm_pri_schd_mode_cfg()
475 desc.data[0] = cpu_to_le32(pri_id); in hclge_tm_pri_schd_mode_cfg()