Lines Matching refs:bd_num

777 				    u32 *bd_num)  in hclge_dbg_get_dfx_bd_num()  argument
795 *bd_num = le32_to_cpu(desc[offset / entries_per_desc].data[index]); in hclge_dbg_get_dfx_bd_num()
796 if (!(*bd_num)) { in hclge_dbg_get_dfx_bd_num()
805 int index, int bd_num, enum hclge_opcode_type cmd) in hclge_dbg_cmd_send() argument
813 for (i = 1; i < bd_num; i++) { in hclge_dbg_cmd_send()
819 ret = hclge_cmd_send(&hdev->hw, desc_src, bd_num); in hclge_dbg_cmd_send()
835 int bd_num, min_num, ret; in hclge_dbg_dump_reg_tqp() local
838 ret = hclge_dbg_get_dfx_bd_num(hdev, reg_msg->offset, &bd_num); in hclge_dbg_dump_reg_tqp()
842 desc_src = kcalloc(bd_num, sizeof(struct hclge_desc), GFP_KERNEL); in hclge_dbg_dump_reg_tqp()
846 min_num = min_t(int, bd_num * HCLGE_DESC_DATA_LEN, reg_msg->msg_num); in hclge_dbg_dump_reg_tqp()
860 ret = hclge_dbg_cmd_send(hdev, desc, index, bd_num, in hclge_dbg_dump_reg_tqp()
888 int bd_num, min_num, ret; in hclge_dbg_dump_reg_common() local
892 ret = hclge_dbg_get_dfx_bd_num(hdev, reg_msg->offset, &bd_num); in hclge_dbg_dump_reg_common()
896 desc_src = kcalloc(bd_num, sizeof(struct hclge_desc), GFP_KERNEL); in hclge_dbg_dump_reg_common()
902 ret = hclge_dbg_cmd_send(hdev, desc, 0, bd_num, reg_msg->cmd); in hclge_dbg_dump_reg_common()
908 min_num = min_t(int, bd_num * HCLGE_DESC_DATA_LEN, reg_msg->msg_num); in hclge_dbg_dump_reg_common()
2417 char *buf, int len, u32 bd_num) in hclge_dbg_imp_info_data_print() argument
2428 for (i = 0; i < bd_num; i++) { in hclge_dbg_imp_info_data_print()
2449 u32 bd_num; in hclge_dbg_get_imp_stats_info() local
2463 bd_num = le32_to_cpu(req->bd_num); in hclge_dbg_get_imp_stats_info()
2464 if (!bd_num) { in hclge_dbg_get_imp_stats_info()
2469 desc_src = kcalloc(bd_num, sizeof(struct hclge_desc), GFP_KERNEL); in hclge_dbg_get_imp_stats_info()
2473 ret = hclge_dbg_cmd_send(hdev, desc_src, 0, bd_num, in hclge_dbg_get_imp_stats_info()
2482 hclge_dbg_imp_info_data_print(desc_src, buf, len, bd_num); in hclge_dbg_get_imp_stats_info()
2524 int bd_num = HCLGE_CMD_NCL_CONFIG_BD_NUM; in hclge_dbg_dump_ncl_config() local
2538 ret = hclge_dbg_cmd_send(hdev, desc, data0, bd_num, in hclge_dbg_dump_ncl_config()