Lines Matching refs:desc_src
325 struct hclge_desc *desc_src, int bd_num, in hclge_dfx_reg_cmd_send() argument
328 struct hclge_desc *desc = desc_src; in hclge_dfx_reg_cmd_send()
338 desc = desc_src; in hclge_dfx_reg_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
374 struct hclge_desc *desc = desc_src; in hclge_dfx_reg_fetch_data()
427 struct hclge_desc *desc_src, 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()
452 struct hclge_desc *desc_src; in hclge_get_dfx_reg() local
473 buf_len = sizeof(*desc_src) * bd_num_max; in hclge_get_dfx_reg()
474 desc_src = kzalloc(buf_len, GFP_KERNEL); in hclge_get_dfx_reg()
475 if (!desc_src) { 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()
501 ret = hclge_get_dfx_rpu_tnl_reg(hdev, reg, desc_src, bd_num); in hclge_get_dfx_reg()
504 kfree(desc_src); in hclge_get_dfx_reg()