Lines Matching refs:bd_num
325 struct hclge_desc *desc_src, int bd_num, in hclge_dfx_reg_cmd_send() argument
332 for (i = 0; i < bd_num - 1; i++) { in hclge_dfx_reg_cmd_send()
339 ret = hclge_cmd_send(&hdev->hw, desc, bd_num); in hclge_dfx_reg_cmd_send()
350 struct hclge_desc *desc, int bd_num) in hclge_dfx_reg_rpu_tnl_cmd_send() argument
354 for (i = 0; i < bd_num; i++) { in hclge_dfx_reg_rpu_tnl_cmd_send()
357 if (i != bd_num - 1) in hclge_dfx_reg_rpu_tnl_cmd_send()
362 ret = hclge_cmd_send(&hdev->hw, desc, bd_num); in hclge_dfx_reg_rpu_tnl_cmd_send()
370 static int hclge_dfx_reg_fetch_data(struct hclge_desc *desc_src, int bd_num, in hclge_dfx_reg_fetch_data() argument
378 reg_num = entries_per_desc * bd_num; in hclge_dfx_reg_fetch_data()
428 int bd_num) in hclge_get_dfx_rpu_tnl_reg() argument
435 ret = hclge_dfx_reg_rpu_tnl_cmd_send(hdev, i, desc_src, bd_num); in hclge_get_dfx_rpu_tnl_reg()
440 ARRAY_SIZE(desc_src->data) * bd_num, in hclge_get_dfx_rpu_tnl_reg()
442 reg += hclge_dfx_reg_fetch_data(desc_src, bd_num, reg); in hclge_get_dfx_rpu_tnl_reg()
451 int bd_num, bd_num_max, buf_len; in hclge_get_dfx_reg() local
481 bd_num = bd_num_list[i]; in hclge_get_dfx_reg()
482 ret = hclge_dfx_reg_cmd_send(hdev, desc_src, bd_num, in hclge_get_dfx_reg()
491 ARRAY_SIZE(desc_src->data) * bd_num, in hclge_get_dfx_reg()
493 reg += hclge_dfx_reg_fetch_data(desc_src, bd_num, reg); in hclge_get_dfx_reg()
500 bd_num = bd_num_list[HCLGE_DFX_RPU_0_BD_OFFSET - 1]; in hclge_get_dfx_reg()
501 ret = hclge_get_dfx_rpu_tnl_reg(hdev, reg, desc_src, bd_num); in hclge_get_dfx_reg()