Lines Matching refs:len

88 static void hclge_dbg_fill_content(char *content, u16 len,  in hclge_dbg_fill_content()  argument
97 if (!len) { in hclge_dbg_fill_content()
99 } else if (len <= HCLGE_DBG_LINE_END_LEN) { in hclge_dbg_fill_content()
104 memset(content, ' ', len); in hclge_dbg_fill_content()
105 len -= HCLGE_DBG_LINE_END_LEN; in hclge_dbg_fill_content()
109 if (len < item_len) in hclge_dbg_fill_content()
120 len -= item_len; in hclge_dbg_fill_content()
191 char *buf, int len, int *pos) in hclge_dbg_dump_reg_tqp() argument
211 *pos += scnprintf(buf + *pos, len - *pos, "item%u = %s\n", in hclge_dbg_dump_reg_tqp()
215 *pos += scnprintf(buf + *pos, len - *pos, "item%u\t", i); in hclge_dbg_dump_reg_tqp()
217 *pos += scnprintf(buf + *pos, len - *pos, "\n"); in hclge_dbg_dump_reg_tqp()
232 *pos += scnprintf(buf + *pos, len - *pos, "%#x\t", in hclge_dbg_dump_reg_tqp()
235 *pos += scnprintf(buf + *pos, len - *pos, "\n"); in hclge_dbg_dump_reg_tqp()
245 char *buf, int len, int *pos) in hclge_dbg_dump_reg_common() argument
279 *pos += scnprintf(buf + *pos, len - *pos, "%s: %#x\n", in hclge_dbg_dump_reg_common()
306 int len, int *pos) in hclge_dbg_dump_mac_enable_status() argument
327 *pos += scnprintf(buf + *pos, len - *pos, "%s: %#x\n", in hclge_dbg_dump_mac_enable_status()
336 int len, int *pos) in hclge_dbg_dump_mac_frame_size() argument
353 *pos += scnprintf(buf + *pos, len - *pos, "max_frame_size: %u\n", in hclge_dbg_dump_mac_frame_size()
355 *pos += scnprintf(buf + *pos, len - *pos, "min_frame_size: %u\n", in hclge_dbg_dump_mac_frame_size()
362 int len, int *pos) in hclge_dbg_dump_mac_speed_duplex() argument
383 *pos += scnprintf(buf + *pos, len - *pos, "speed: %#lx\n", in hclge_dbg_dump_mac_speed_duplex()
386 *pos += scnprintf(buf + *pos, len - *pos, "duplex: %#x\n", in hclge_dbg_dump_mac_speed_duplex()
392 static int hclge_dbg_dump_mac(struct hclge_dev *hdev, char *buf, int len) in hclge_dbg_dump_mac() argument
397 ret = hclge_dbg_dump_mac_enable_status(hdev, buf, len, &pos); in hclge_dbg_dump_mac()
401 ret = hclge_dbg_dump_mac_frame_size(hdev, buf, len, &pos); in hclge_dbg_dump_mac()
405 return hclge_dbg_dump_mac_speed_duplex(hdev, buf, len, &pos); in hclge_dbg_dump_mac()
408 static int hclge_dbg_dump_dcb_qset(struct hclge_dev *hdev, char *buf, int len, in hclge_dbg_dump_dcb_qset() argument
420 *pos += scnprintf(buf + *pos, len - *pos, in hclge_dbg_dump_dcb_qset()
430 *pos += scnprintf(buf + *pos, len - *pos, in hclge_dbg_dump_dcb_qset()
439 static int hclge_dbg_dump_dcb_pri(struct hclge_dev *hdev, char *buf, int len, in hclge_dbg_dump_dcb_pri() argument
451 *pos += scnprintf(buf + *pos, len - *pos, in hclge_dbg_dump_dcb_pri()
461 *pos += scnprintf(buf + *pos, len - *pos, in hclge_dbg_dump_dcb_pri()
469 static int hclge_dbg_dump_dcb_pg(struct hclge_dev *hdev, char *buf, int len, in hclge_dbg_dump_dcb_pg() argument
477 *pos += scnprintf(buf + *pos, len - *pos, in hclge_dbg_dump_dcb_pg()
487 *pos += scnprintf(buf + *pos, len - *pos, in hclge_dbg_dump_dcb_pg()
495 static int hclge_dbg_dump_dcb_queue(struct hclge_dev *hdev, char *buf, int len, in hclge_dbg_dump_dcb_queue() argument
502 *pos += scnprintf(buf + *pos, len - *pos, in hclge_dbg_dump_dcb_queue()
510 *pos += scnprintf(buf + *pos, len - *pos, "%04u %#x", in hclge_dbg_dump_dcb_queue()
518 *pos += scnprintf(buf + *pos, len - *pos, in hclge_dbg_dump_dcb_queue()
526 static int hclge_dbg_dump_dcb_port(struct hclge_dev *hdev, char *buf, int len, in hclge_dbg_dump_dcb_port() argument
541 *pos += scnprintf(buf + *pos, len - *pos, "port_mask: %#x\n", in hclge_dbg_dump_dcb_port()
543 *pos += scnprintf(buf + *pos, len - *pos, "port_shaping_pass: %#x\n", in hclge_dbg_dump_dcb_port()
549 static int hclge_dbg_dump_dcb_tm(struct hclge_dev *hdev, char *buf, int len, in hclge_dbg_dump_dcb_tm() argument
561 *pos += scnprintf(buf + *pos, len - *pos, "SCH_NIC_NUM: %#x\n", in hclge_dbg_dump_dcb_tm()
563 *pos += scnprintf(buf + *pos, len - *pos, "SCH_ROCE_NUM: %#x\n", in hclge_dbg_dump_dcb_tm()
571 *pos += scnprintf(buf + *pos, len - *pos, "pri_bp: %#x\n", in hclge_dbg_dump_dcb_tm()
573 *pos += scnprintf(buf + *pos, len - *pos, "fifo_dfx_info: %#x\n", in hclge_dbg_dump_dcb_tm()
575 *pos += scnprintf(buf + *pos, len - *pos, in hclge_dbg_dump_dcb_tm()
578 *pos += scnprintf(buf + *pos, len - *pos, in hclge_dbg_dump_dcb_tm()
581 *pos += scnprintf(buf + *pos, len - *pos, "tm_bypass_en: %#x\n", in hclge_dbg_dump_dcb_tm()
583 *pos += scnprintf(buf + *pos, len - *pos, "SSU_TM_BYPASS_EN: %#x\n", in hclge_dbg_dump_dcb_tm()
585 *pos += scnprintf(buf + *pos, len - *pos, "SSU_RESERVE_CFG: %#x\n", in hclge_dbg_dump_dcb_tm()
596 *pos += scnprintf(buf + *pos, len - *pos, "TC_MAP_SEL: %#x\n", in hclge_dbg_dump_dcb_tm()
598 *pos += scnprintf(buf + *pos, len - *pos, "IGU_PFC_PRI_EN: %#x\n", in hclge_dbg_dump_dcb_tm()
600 *pos += scnprintf(buf + *pos, len - *pos, "MAC_PFC_PRI_EN: %#x\n", in hclge_dbg_dump_dcb_tm()
602 *pos += scnprintf(buf + *pos, len - *pos, "IGU_PRI_MAP_TC_CFG: %#x\n", in hclge_dbg_dump_dcb_tm()
604 *pos += scnprintf(buf + *pos, len - *pos, in hclge_dbg_dump_dcb_tm()
611 static int hclge_dbg_dump_dcb(struct hclge_dev *hdev, char *buf, int len) in hclge_dbg_dump_dcb() argument
616 ret = hclge_dbg_dump_dcb_qset(hdev, buf, len, &pos); in hclge_dbg_dump_dcb()
620 ret = hclge_dbg_dump_dcb_pri(hdev, buf, len, &pos); in hclge_dbg_dump_dcb()
624 ret = hclge_dbg_dump_dcb_pg(hdev, buf, len, &pos); in hclge_dbg_dump_dcb()
628 ret = hclge_dbg_dump_dcb_queue(hdev, buf, len, &pos); in hclge_dbg_dump_dcb()
632 ret = hclge_dbg_dump_dcb_port(hdev, buf, len, &pos); in hclge_dbg_dump_dcb()
636 return hclge_dbg_dump_dcb_tm(hdev, buf, len, &pos); in hclge_dbg_dump_dcb()
640 enum hnae3_dbg_cmd cmd, char *buf, int len) in hclge_dbg_dump_reg_cmd() argument
651 buf, len, &pos); in hclge_dbg_dump_reg_cmd()
654 len, &pos); in hclge_dbg_dump_reg_cmd()
663 static int hclge_dbg_dump_tc(struct hclge_dev *hdev, char *buf, int len) in hclge_dbg_dump_tc() argument
688 pos += scnprintf(buf + pos, len - pos, "enabled tc number: %u\n", in hclge_dbg_dump_tc()
690 pos += scnprintf(buf + pos, len - pos, "weight_offset: %u\n", in hclge_dbg_dump_tc()
693 pos += scnprintf(buf + pos, len - pos, "TC MODE WEIGHT\n"); in hclge_dbg_dump_tc()
696 pos += scnprintf(buf + pos, len - pos, "%u %4s %3u\n", in hclge_dbg_dump_tc()
737 char *buf, int len) in __hclge_dbg_dump_tm_pg() argument
753 pos += scnprintf(buf + pos, len - pos, "%s", content); in __hclge_dbg_dump_tm_pg()
794 pos += scnprintf(buf + pos, len - pos, "%s", content); in __hclge_dbg_dump_tm_pg()
800 static int hclge_dbg_dump_tm_pg(struct hclge_dev *hdev, char *buf, int len) in hclge_dbg_dump_tm_pg() argument
810 ret = __hclge_dbg_dump_tm_pg(hdev, data_str, buf, len); in hclge_dbg_dump_tm_pg()
817 static int hclge_dbg_dump_tm_port(struct hclge_dev *hdev, char *buf, int len) in hclge_dbg_dump_tm_port() argument
827 pos += scnprintf(buf + pos, len - pos, in hclge_dbg_dump_tm_port()
829 pos += scnprintf(buf + pos, len - pos, in hclge_dbg_dump_tm_port()
839 char *buf, int len) in hclge_dbg_dump_tm_bp_qset_map() argument
870 pos += scnprintf(buf + pos, len - pos, "INDEX | TM BP QSET MAPPING:\n"); in hclge_dbg_dump_tm_bp_qset_map()
872 pos += scnprintf(buf + pos, len - pos, in hclge_dbg_dump_tm_bp_qset_map()
885 static int hclge_dbg_dump_tm_map(struct hclge_dev *hdev, char *buf, int len) in hclge_dbg_dump_tm_map() argument
909 pos += scnprintf(buf + pos, len - pos, in hclge_dbg_dump_tm_map()
911 pos += scnprintf(buf + pos, len - pos, in hclge_dbg_dump_tm_map()
919 len - pos); in hclge_dbg_dump_tm_map()
924 pos += scnprintf(buf + pos, len - pos, "\n"); in hclge_dbg_dump_tm_map()
930 static int hclge_dbg_dump_tm_nodes(struct hclge_dev *hdev, char *buf, int len) in hclge_dbg_dump_tm_nodes() argument
947 pos += scnprintf(buf + pos, len - pos, " BASE_ID MAX_NUM\n"); in hclge_dbg_dump_tm_nodes()
948 pos += scnprintf(buf + pos, len - pos, "PG %4u %4u\n", in hclge_dbg_dump_tm_nodes()
950 pos += scnprintf(buf + pos, len - pos, "PRI %4u %4u\n", in hclge_dbg_dump_tm_nodes()
952 pos += scnprintf(buf + pos, len - pos, "QSET %4u %4u\n", in hclge_dbg_dump_tm_nodes()
955 pos += scnprintf(buf + pos, len - pos, "QUEUE %4u %4u\n", in hclge_dbg_dump_tm_nodes()
982 static int hclge_dbg_dump_tm_pri(struct hclge_dev *hdev, char *buf, int len) in hclge_dbg_dump_tm_pri() argument
1000 pos = scnprintf(buf, len, "%s", content); in hclge_dbg_dump_tm_pri()
1035 pos += scnprintf(buf + pos, len - pos, "%s", content); in hclge_dbg_dump_tm_pri()
1056 static int hclge_dbg_dump_tm_qset(struct hclge_dev *hdev, char *buf, int len) in hclge_dbg_dump_tm_qset() argument
1076 pos = scnprintf(buf, len, "%s", content); in hclge_dbg_dump_tm_qset()
1109 pos += scnprintf(buf + pos, len - pos, "%s", content); in hclge_dbg_dump_tm_qset()
1116 int len) in hclge_dbg_dump_qos_pause_cfg() argument
1133 pos += scnprintf(buf + pos, len - pos, "pause_trans_gap: 0x%x\n", in hclge_dbg_dump_qos_pause_cfg()
1135 pos += scnprintf(buf + pos, len - pos, "pause_trans_time: 0x%x\n", in hclge_dbg_dump_qos_pause_cfg()
1143 int len) in hclge_dbg_dump_qos_pri_map() argument
1164 pos += scnprintf(buf + pos, len - pos, "vlan_to_pri: 0x%x\n", in hclge_dbg_dump_qos_pri_map()
1166 pos += scnprintf(buf + pos, len - pos, "PRI TC\n"); in hclge_dbg_dump_qos_pri_map()
1172 pos += scnprintf(buf + pos, len - pos, "%u %u\n", i, tc); in hclge_dbg_dump_qos_pri_map()
1179 int len) in hclge_dbg_dump_qos_dscp_map() argument
1189 pos = scnprintf(buf, len, "tc map mode: %s\n", in hclge_dbg_dump_qos_dscp_map()
1205 pos += scnprintf(buf + pos, len - pos, "\nDSCP PRIO TC\n"); in hclge_dbg_dump_qos_dscp_map()
1223 pos += scnprintf(buf + pos, len - pos, " %2u %u %u\n", in hclge_dbg_dump_qos_dscp_map()
1230 static int hclge_dbg_dump_tx_buf_cfg(struct hclge_dev *hdev, char *buf, int len) in hclge_dbg_dump_tx_buf_cfg() argument
1247 pos += scnprintf(buf + pos, len - pos, in hclge_dbg_dump_tx_buf_cfg()
1255 int len) in hclge_dbg_dump_rx_priv_buf_cfg() argument
1270 pos += scnprintf(buf + pos, len - pos, "\n"); in hclge_dbg_dump_rx_priv_buf_cfg()
1274 pos += scnprintf(buf + pos, len - pos, in hclge_dbg_dump_rx_priv_buf_cfg()
1278 pos += scnprintf(buf + pos, len - pos, "rx_share_buf: 0x%x\n", in hclge_dbg_dump_rx_priv_buf_cfg()
1285 int len) in hclge_dbg_dump_rx_common_wl_cfg() argument
1301 pos += scnprintf(buf + pos, len - pos, "\n"); in hclge_dbg_dump_rx_common_wl_cfg()
1302 pos += scnprintf(buf + pos, len - pos, in hclge_dbg_dump_rx_common_wl_cfg()
1311 int len) in hclge_dbg_dump_rx_global_pkt_cnt() argument
1327 pos += scnprintf(buf + pos, len - pos, in hclge_dbg_dump_rx_global_pkt_cnt()
1336 int len) in hclge_dbg_dump_rx_priv_wl_buf_cfg() argument
1355 pos += scnprintf(buf + pos, len - pos, in hclge_dbg_dump_rx_priv_wl_buf_cfg()
1362 pos += scnprintf(buf + pos, len - pos, in hclge_dbg_dump_rx_priv_wl_buf_cfg()
1372 char *buf, int len) in hclge_dbg_dump_rx_common_threshold_cfg() argument
1389 pos += scnprintf(buf + pos, len - pos, "\n"); in hclge_dbg_dump_rx_common_threshold_cfg()
1392 pos += scnprintf(buf + pos, len - pos, in hclge_dbg_dump_rx_common_threshold_cfg()
1399 pos += scnprintf(buf + pos, len - pos, in hclge_dbg_dump_rx_common_threshold_cfg()
1409 int len) in hclge_dbg_dump_qos_buf_cfg() argument
1414 ret = hclge_dbg_dump_tx_buf_cfg(hdev, buf + pos, len - pos); in hclge_dbg_dump_qos_buf_cfg()
1419 ret = hclge_dbg_dump_rx_priv_buf_cfg(hdev, buf + pos, len - pos); in hclge_dbg_dump_qos_buf_cfg()
1424 ret = hclge_dbg_dump_rx_common_wl_cfg(hdev, buf + pos, len - pos); in hclge_dbg_dump_qos_buf_cfg()
1429 ret = hclge_dbg_dump_rx_global_pkt_cnt(hdev, buf + pos, len - pos); in hclge_dbg_dump_qos_buf_cfg()
1434 pos += scnprintf(buf + pos, len - pos, "\n"); in hclge_dbg_dump_qos_buf_cfg()
1438 ret = hclge_dbg_dump_rx_priv_wl_buf_cfg(hdev, buf + pos, len - pos); in hclge_dbg_dump_qos_buf_cfg()
1444 len - pos); in hclge_dbg_dump_qos_buf_cfg()
1451 static int hclge_dbg_dump_mng_table(struct hclge_dev *hdev, char *buf, int len) in hclge_dbg_dump_mng_table() argument
1459 pos += scnprintf(buf + pos, len - pos, in hclge_dbg_dump_mng_table()
1461 pos += scnprintf(buf + pos, len - pos, in hclge_dbg_dump_mng_table()
1463 pos += scnprintf(buf + pos, len - pos, "pf_id vf_id q_id drop\n"); in hclge_dbg_dump_mng_table()
1481 pos += scnprintf(buf + pos, len - pos, "%02u %pM ", in hclge_dbg_dump_mng_table()
1484 pos += scnprintf(buf + pos, len - pos, in hclge_dbg_dump_mng_table()
1492 pos += scnprintf(buf + pos, len - pos, in hclge_dbg_dump_mng_table()
1498 pos += scnprintf(buf + pos, len - pos, in hclge_dbg_dump_mng_table()
1586 static int hclge_dbg_dump_fd_tcam(struct hclge_dev *hdev, char *buf, int len) in hclge_dbg_dump_fd_tcam() argument
1634 pos += scnprintf(buf + pos, len - pos, "%s", tcam_buf); in hclge_dbg_dump_fd_tcam()
1643 pos += scnprintf(buf + pos, len - pos, "%s", tcam_buf); in hclge_dbg_dump_fd_tcam()
1652 static int hclge_dbg_dump_fd_counter(struct hclge_dev *hdev, char *buf, int len) in hclge_dbg_dump_fd_counter() argument
1666 pos += scnprintf(buf + pos, len - pos, in hclge_dbg_dump_fd_counter()
1681 pos += scnprintf(buf + pos, len - pos, in hclge_dbg_dump_fd_counter()
1698 int hclge_dbg_dump_rst_info(struct hclge_dev *hdev, char *buf, int len) in hclge_dbg_dump_rst_info() argument
1703 pos += scnprintf(buf + pos, len - pos, "PF reset count: %u\n", in hclge_dbg_dump_rst_info()
1705 pos += scnprintf(buf + pos, len - pos, "FLR reset count: %u\n", in hclge_dbg_dump_rst_info()
1707 pos += scnprintf(buf + pos, len - pos, "GLOBAL reset count: %u\n", in hclge_dbg_dump_rst_info()
1709 pos += scnprintf(buf + pos, len - pos, "IMP reset count: %u\n", in hclge_dbg_dump_rst_info()
1711 pos += scnprintf(buf + pos, len - pos, "reset done count: %u\n", in hclge_dbg_dump_rst_info()
1713 pos += scnprintf(buf + pos, len - pos, "HW reset done count: %u\n", in hclge_dbg_dump_rst_info()
1715 pos += scnprintf(buf + pos, len - pos, "reset count: %u\n", in hclge_dbg_dump_rst_info()
1717 pos += scnprintf(buf + pos, len - pos, "reset fail count: %u\n", in hclge_dbg_dump_rst_info()
1722 pos += scnprintf(buf + pos, len - pos, "%s: 0x%x\n", in hclge_dbg_dump_rst_info()
1727 pos += scnprintf(buf + pos, len - pos, "hdev state: 0x%lx\n", in hclge_dbg_dump_rst_info()
1733 static int hclge_dbg_dump_serv_info(struct hclge_dev *hdev, char *buf, int len) in hclge_dbg_dump_serv_info() argument
1742 pos += scnprintf(buf + pos, len - pos, "local_clock: [%5lu.%06lu]\n", in hclge_dbg_dump_serv_info()
1744 pos += scnprintf(buf + pos, len - pos, "delta: %u(ms)\n", in hclge_dbg_dump_serv_info()
1746 pos += scnprintf(buf + pos, len - pos, in hclge_dbg_dump_serv_info()
1749 pos += scnprintf(buf + pos, len - pos, "last_service_task_cnt: %lu\n", in hclge_dbg_dump_serv_info()
1755 static int hclge_dbg_dump_interrupt(struct hclge_dev *hdev, char *buf, int len) in hclge_dbg_dump_interrupt() argument
1759 pos += scnprintf(buf + pos, len - pos, "num_nic_msi: %u\n", in hclge_dbg_dump_interrupt()
1761 pos += scnprintf(buf + pos, len - pos, "num_roce_msi: %u\n", in hclge_dbg_dump_interrupt()
1763 pos += scnprintf(buf + pos, len - pos, "num_msi_used: %u\n", in hclge_dbg_dump_interrupt()
1765 pos += scnprintf(buf + pos, len - pos, "num_msi_left: %u\n", in hclge_dbg_dump_interrupt()
1772 char *buf, int len, u32 bd_num) in hclge_dbg_imp_info_data_print() argument
1781 pos += scnprintf(buf + pos, len - pos, "offset | data\n"); in hclge_dbg_imp_info_data_print()
1786 pos += scnprintf(buf + pos, len - pos, "0x%04x | ", in hclge_dbg_imp_info_data_print()
1788 pos += scnprintf(buf + pos, len - pos, "0x%08x ", in hclge_dbg_imp_info_data_print()
1790 pos += scnprintf(buf + pos, len - pos, "0x%08x\n", in hclge_dbg_imp_info_data_print()
1799 hclge_dbg_get_imp_stats_info(struct hclge_dev *hdev, char *buf, int len) in hclge_dbg_get_imp_stats_info() argument
1837 hclge_dbg_imp_info_data_print(desc_src, buf, len, bd_num); in hclge_dbg_get_imp_stats_info()
1848 char *buf, int len, int *pos) in hclge_ncl_config_data_print() argument
1860 *pos += scnprintf(buf + *pos, len - *pos, in hclge_ncl_config_data_print()
1874 hclge_dbg_dump_ncl_config(struct hclge_dev *hdev, char *buf, int len) in hclge_dbg_dump_ncl_config() argument
1885 pos += scnprintf(buf + pos, len - pos, "offset | data\n"); in hclge_dbg_dump_ncl_config()
1898 hclge_ncl_config_data_print(desc, &index, buf, len, &pos); in hclge_dbg_dump_ncl_config()
1904 static int hclge_dbg_dump_loopback(struct hclge_dev *hdev, char *buf, int len) in hclge_dbg_dump_loopback() argument
1917 pos += scnprintf(buf + pos, len - pos, "mac id: %u\n", in hclge_dbg_dump_loopback()
1930 pos += scnprintf(buf + pos, len - pos, "app loopback: %s\n", in hclge_dbg_dump_loopback()
1943 pos += scnprintf(buf + pos, len - pos, "serdes serial loopback: %s\n", in hclge_dbg_dump_loopback()
1948 pos += scnprintf(buf + pos, len - pos, "serdes parallel loopback: %s\n", in hclge_dbg_dump_loopback()
1953 pos += scnprintf(buf + pos, len - pos, "phy loopback: %s\n", in hclge_dbg_dump_loopback()
1958 pos += scnprintf(buf + pos, len - pos, "phy loopback: %s\n", in hclge_dbg_dump_loopback()
1969 hclge_dbg_dump_mac_tnl_status(struct hclge_dev *hdev, char *buf, int len) in hclge_dbg_dump_mac_tnl_status() argument
1975 pos += scnprintf(buf + pos, len - pos, in hclge_dbg_dump_mac_tnl_status()
1981 pos += scnprintf(buf + pos, len - pos, in hclge_dbg_dump_mac_tnl_status()
1997 static void hclge_dbg_dump_mac_list(struct hclge_dev *hdev, char *buf, int len, in hclge_dbg_dump_mac_list() argument
2013 pos += scnprintf(buf + pos, len - pos, "%s MAC_LIST:\n", in hclge_dbg_dump_mac_list()
2017 pos += scnprintf(buf + pos, len - pos, "%s", content); in hclge_dbg_dump_mac_list()
2034 pos += scnprintf(buf + pos, len - pos, "%s", content); in hclge_dbg_dump_mac_list()
2040 static int hclge_dbg_dump_umv_info(struct hclge_dev *hdev, char *buf, int len) in hclge_dbg_dump_umv_info() argument
2047 pos += scnprintf(buf, len, "num_alloc_vport : %u\n", in hclge_dbg_dump_umv_info()
2049 pos += scnprintf(buf + pos, len - pos, "max_umv_size : %u\n", in hclge_dbg_dump_umv_info()
2051 pos += scnprintf(buf + pos, len - pos, "wanted_umv_size : %u\n", in hclge_dbg_dump_umv_info()
2053 pos += scnprintf(buf + pos, len - pos, "priv_umv_size : %u\n", in hclge_dbg_dump_umv_info()
2057 pos += scnprintf(buf + pos, len - pos, "share_umv_size : %u\n", in hclge_dbg_dump_umv_info()
2061 pos += scnprintf(buf + pos, len - pos, in hclge_dbg_dump_umv_info()
2067 pos += scnprintf(buf + pos, len - pos, "used_mc_mac_num : %u\n", in hclge_dbg_dump_umv_info()
2236 int len, int *pos) in hclge_dbg_dump_vlan_filter_config() argument
2251 *pos += scnprintf(buf, len, "I_PORT_VLAN_FILTER: %s\n", in hclge_dbg_dump_vlan_filter_config()
2253 *pos += scnprintf(buf + *pos, len - *pos, "E_PORT_VLAN_FILTER: %s\n", in hclge_dbg_dump_vlan_filter_config()
2258 *pos += scnprintf(buf + *pos, len - *pos, "%s", content); in hclge_dbg_dump_vlan_filter_config()
2281 *pos += scnprintf(buf + *pos, len - *pos, "%s", content); in hclge_dbg_dump_vlan_filter_config()
2283 *pos += scnprintf(buf + *pos, len - *pos, "\n"); in hclge_dbg_dump_vlan_filter_config()
2289 int len, int *pos) in hclge_dbg_dump_vlan_offload_config() argument
2301 *pos += scnprintf(buf + *pos, len - *pos, "%s", content); in hclge_dbg_dump_vlan_offload_config()
2333 *pos += scnprintf(buf + *pos, len - *pos, "%s", content); in hclge_dbg_dump_vlan_offload_config()
2340 int len) in hclge_dbg_dump_vlan_config() argument
2345 ret = hclge_dbg_dump_vlan_filter_config(hdev, buf, len, &pos); in hclge_dbg_dump_vlan_config()
2349 return hclge_dbg_dump_vlan_offload_config(hdev, buf, len, &pos); in hclge_dbg_dump_vlan_config()
2352 static int hclge_dbg_dump_ptp_info(struct hclge_dev *hdev, char *buf, int len) in hclge_dbg_dump_ptp_info() argument
2362 pos += scnprintf(buf + pos, len - pos, "phc %s's debug info:\n", in hclge_dbg_dump_ptp_info()
2364 pos += scnprintf(buf + pos, len - pos, "ptp enable: %s\n", in hclge_dbg_dump_ptp_info()
2367 pos += scnprintf(buf + pos, len - pos, "ptp tx enable: %s\n", in hclge_dbg_dump_ptp_info()
2370 pos += scnprintf(buf + pos, len - pos, "ptp rx enable: %s\n", in hclge_dbg_dump_ptp_info()
2375 pos += scnprintf(buf + pos, len - pos, "last rx time: %lu.%lu\n", in hclge_dbg_dump_ptp_info()
2377 pos += scnprintf(buf + pos, len - pos, "rx count: %lu\n", ptp->rx_cnt); in hclge_dbg_dump_ptp_info()
2380 pos += scnprintf(buf + pos, len - pos, "last tx start time: %lu.%lu\n", in hclge_dbg_dump_ptp_info()
2382 pos += scnprintf(buf + pos, len - pos, "tx count: %lu\n", ptp->tx_cnt); in hclge_dbg_dump_ptp_info()
2383 pos += scnprintf(buf + pos, len - pos, "tx skipped count: %lu\n", in hclge_dbg_dump_ptp_info()
2385 pos += scnprintf(buf + pos, len - pos, "tx timeout count: %lu\n", in hclge_dbg_dump_ptp_info()
2387 pos += scnprintf(buf + pos, len - pos, "last tx seqid: %u\n", in hclge_dbg_dump_ptp_info()
2394 pos += scnprintf(buf + pos, len - pos, "sw_cfg: %#x, hw_cfg: %#x\n", in hclge_dbg_dump_ptp_info()
2397 pos += scnprintf(buf + pos, len - pos, "tx type: %d, rx filter: %d\n", in hclge_dbg_dump_ptp_info()
2403 static int hclge_dbg_dump_mac_uc(struct hclge_dev *hdev, char *buf, int len) in hclge_dbg_dump_mac_uc() argument
2405 hclge_dbg_dump_mac_list(hdev, buf, len, true); in hclge_dbg_dump_mac_uc()
2410 static int hclge_dbg_dump_mac_mc(struct hclge_dev *hdev, char *buf, int len) in hclge_dbg_dump_mac_mc() argument
2412 hclge_dbg_dump_mac_list(hdev, buf, len, false); in hclge_dbg_dump_mac_mc()
2569 char *buf, int len) in hclge_dbg_read_cmd() argument
2580 return cmd_func->dbg_dump(hdev, buf, len); in hclge_dbg_read_cmd()
2583 len); in hclge_dbg_read_cmd()