Lines Matching refs:seq

61 static void *seq_tab_start(struct seq_file *seq, loff_t *pos)  in seq_tab_start()  argument
63 struct seq_tab *tb = seq->private; in seq_tab_start()
71 static void *seq_tab_next(struct seq_file *seq, void *v, loff_t *pos) in seq_tab_next() argument
73 v = seq_tab_get_idx(seq->private, *pos + 1); in seq_tab_next()
78 static void seq_tab_stop(struct seq_file *seq, void *v) in seq_tab_stop() argument
82 static int seq_tab_show(struct seq_file *seq, void *v) in seq_tab_show() argument
84 const struct seq_tab *tb = seq->private; in seq_tab_show()
86 return tb->show(seq, v, ((char *)v - tb->data) / tb->width); in seq_tab_show()
98 int (*show)(struct seq_file *seq, void *v, int i)) in seq_open_tab() argument
123 static int cim_la_show(struct seq_file *seq, void *v, int idx) in cim_la_show() argument
126 seq_puts(seq, "Status Data PC LS0Stat LS0Addr " in cim_la_show()
131 seq_printf(seq, in cim_la_show()
140 static int cim_la_show_3in1(struct seq_file *seq, void *v, int idx) in cim_la_show_3in1() argument
143 seq_puts(seq, "Status Data PC\n"); in cim_la_show_3in1()
147 seq_printf(seq, " %02x %08x %08x\n", p[5] & 0xff, p[6], in cim_la_show_3in1()
149 seq_printf(seq, " %02x %02x%06x %02x%06x\n", in cim_la_show_3in1()
152 seq_printf(seq, " %02x %x%07x %x%07x\n", (p[0] >> 4) & 0xff, in cim_la_show_3in1()
158 static int cim_la_show_t6(struct seq_file *seq, void *v, int idx) in cim_la_show_t6() argument
161 seq_puts(seq, "Status Inst Data PC LS0Stat " in cim_la_show_t6()
166 seq_printf(seq, " %02x %04x%04x %04x%04x %04x%04x %08x %08x %08x %08x %08x %08x\n", in cim_la_show_t6()
177 static int cim_la_show_pc_t6(struct seq_file *seq, void *v, int idx) in cim_la_show_pc_t6() argument
180 seq_puts(seq, "Status Inst Data PC\n"); in cim_la_show_pc_t6()
184 seq_printf(seq, " %02x %08x %08x %08x\n", in cim_la_show_pc_t6()
186 seq_printf(seq, " %02x %02x%06x %02x%06x %02x%06x\n", in cim_la_show_pc_t6()
189 seq_printf(seq, " %02x %04x%04x %04x%04x %04x%04x\n", in cim_la_show_pc_t6()
237 static int cim_pif_la_show(struct seq_file *seq, void *v, int idx) in cim_pif_la_show() argument
242 seq_puts(seq, "Cntl ID DataBE Addr Data\n"); in cim_pif_la_show()
244 seq_printf(seq, " %02x %02x %04x %08x %08x%08x%08x%08x\n", in cim_pif_la_show()
249 seq_puts(seq, "\nCntl ID Data\n"); in cim_pif_la_show()
250 seq_printf(seq, " %02x %02x %08x%08x%08x%08x\n", in cim_pif_la_show()
280 static int cim_ma_la_show(struct seq_file *seq, void *v, int idx) in cim_ma_la_show() argument
285 seq_puts(seq, "\n"); in cim_ma_la_show()
287 seq_printf(seq, "%02x%08x%08x%08x%08x\n", in cim_ma_la_show()
291 seq_puts(seq, in cim_ma_la_show()
293 seq_printf(seq, "%3u %2u %x %u %08x%08x %u %u\n", in cim_ma_la_show()
326 static int cim_qcfg_show(struct seq_file *seq, void *v) in cim_qcfg_show() argument
335 struct adapter *adap = seq->private; in cim_qcfg_show()
365 seq_printf(seq, in cim_qcfg_show()
368 seq_printf(seq, "%7s %5x %5u %5u %6x %4x %4u %4u %5u\n", in cim_qcfg_show()
374 seq_printf(seq, "%7s %5x %5u %12x %4x %4u %4u %5u\n", in cim_qcfg_show()
383 static int cimq_show(struct seq_file *seq, void *v, int idx) in cimq_show() argument
387 seq_printf(seq, "%#06x: %08x %08x %08x %08x\n", idx * 16, p[0], p[1], in cimq_show()
454 static void field_desc_show(struct seq_file *seq, u64 v, in field_desc_show() argument
467 seq_puts(seq, "\n "); in field_desc_show()
469 seq_printf(seq, "%s ", buf); in field_desc_show()
473 seq_putc(seq, '\n'); in field_desc_show()
513 static int tp_la_show(struct seq_file *seq, void *v, int idx) in tp_la_show() argument
517 field_desc_show(seq, *p, tp_la0); in tp_la_show()
521 static int tp_la_show2(struct seq_file *seq, void *v, int idx) in tp_la_show2() argument
526 seq_putc(seq, '\n'); in tp_la_show2()
527 field_desc_show(seq, p[0], tp_la0); in tp_la_show2()
529 field_desc_show(seq, p[1], tp_la0); in tp_la_show2()
533 static int tp_la_show3(struct seq_file *seq, void *v, int idx) in tp_la_show3() argument
632 seq_putc(seq, '\n'); in tp_la_show3()
633 field_desc_show(seq, p[0], tp_la0); in tp_la_show3()
635 field_desc_show(seq, p[1], (p[0] & BIT(17)) ? tp_la2 : tp_la1); in tp_la_show3()
695 static int ulprx_la_show(struct seq_file *seq, void *v, int idx) in ulprx_la_show() argument
700 seq_puts(seq, " Pcmd Type Message" in ulprx_la_show()
703 seq_printf(seq, "%08x%08x %4x %08x %08x%08x%08x%08x\n", in ulprx_la_show()
742 static int pm_stats_show(struct seq_file *seq, void *v) in pm_stats_show() argument
754 struct adapter *adap = seq->private; in pm_stats_show()
759 seq_printf(seq, "%13s %10s %20s\n", " ", "Tx pcmds", "Tx bytes"); in pm_stats_show()
761 seq_printf(seq, "%-13s %10u %20llu\n", in pm_stats_show()
764 seq_printf(seq, "%13s %10s %20s\n", " ", "Rx pcmds", "Rx bytes"); in pm_stats_show()
766 seq_printf(seq, "%-13s %10u %20llu\n", in pm_stats_show()
774 seq_printf(seq, "%13s %10s %20s\n", in pm_stats_show()
776 seq_printf(seq, "Tx FIFO wait %10u %20llu\n", in pm_stats_show()
778 seq_printf(seq, "Rx FIFO wait %10u %20llu\n", in pm_stats_show()
787 seq_printf(seq, "%13s %10s %20s\n", in pm_stats_show()
789 seq_printf(seq, "Tx latency %10u %20llu\n", in pm_stats_show()
791 seq_printf(seq, "Rx latency %10u %20llu\n", in pm_stats_show()
821 static int tx_rate_show(struct seq_file *seq, void *v) in tx_rate_show() argument
824 struct adapter *adap = seq->private; in tx_rate_show()
828 seq_puts(seq, " channel 0 channel 1 " in tx_rate_show()
830 seq_printf(seq, "NIC B/s: %10llu %10llu %10llu %10llu\n", in tx_rate_show()
835 seq_printf(seq, "Offload B/s: %10llu %10llu %10llu %10llu\n", in tx_rate_show()
841 seq_puts(seq, " channel 0 channel 1\n"); in tx_rate_show()
842 seq_printf(seq, "NIC B/s: %10llu %10llu\n", in tx_rate_show()
845 seq_printf(seq, "Offload B/s: %10llu %10llu\n", in tx_rate_show()
853 static int cctrl_tbl_show(struct seq_file *seq, void *v) in cctrl_tbl_show() argument
861 struct adapter *adap = seq->private; in cctrl_tbl_show()
870 seq_printf(seq, "%2d: %4u %4u %4u %4u %4u %4u %4u %4u\n", i, in cctrl_tbl_show()
873 seq_printf(seq, "%8u %4u %4u %4u %4u %4u %4u %4u %5u %s\n", in cctrl_tbl_show()
903 static int clk_show(struct seq_file *seq, void *v) in clk_show() argument
906 struct adapter *adap = seq->private; in clk_show()
913 seq_printf(seq, "Core clock period: %s ns\n", in clk_show()
915 seq_printf(seq, "TP timer tick: %s us\n", in clk_show()
917 seq_printf(seq, "TCP timestamp tick: %s us\n", in clk_show()
920 seq_printf(seq, "DACK tick: %s us\n", in clk_show()
922 seq_printf(seq, "DACK timer: %u us\n", in clk_show()
925 seq_printf(seq, "Retransmit min: %llu us\n", in clk_show()
927 seq_printf(seq, "Retransmit max: %llu us\n", in clk_show()
929 seq_printf(seq, "Persist timer min: %llu us\n", in clk_show()
931 seq_printf(seq, "Persist timer max: %llu us\n", in clk_show()
933 seq_printf(seq, "Keepalive idle timer: %llu us\n", in clk_show()
935 seq_printf(seq, "Keepalive interval: %llu us\n", in clk_show()
937 seq_printf(seq, "Initial SRTT: %llu us\n", in clk_show()
939 seq_printf(seq, "FINWAIT2 timer: %llu us\n", in clk_show()
993 static int devlog_show(struct seq_file *seq, void *v) in devlog_show() argument
996 seq_printf(seq, "%10s %15s %8s %8s %s\n", in devlog_show()
999 struct devlog_info *dinfo = seq->private; in devlog_show()
1018 seq_printf(seq, "%10d %15llu %8s %8s ", in devlog_show()
1027 seq_printf(seq, e->fmt, in devlog_show()
1050 static void *devlog_start(struct seq_file *seq, loff_t *pos) in devlog_start() argument
1052 struct devlog_info *dinfo = seq->private; in devlog_start()
1059 static void *devlog_next(struct seq_file *seq, void *v, loff_t *pos) in devlog_next() argument
1061 struct devlog_info *dinfo = seq->private; in devlog_next()
1067 static void devlog_stop(struct seq_file *seq, void *v) in devlog_stop() argument
1154 static int mboxlog_show(struct seq_file *seq, void *v) in mboxlog_show() argument
1156 struct adapter *adapter = seq->private; in mboxlog_show()
1162 seq_printf(seq, in mboxlog_show()
1178 seq_printf(seq, "%10u %15llu %5d %5d", in mboxlog_show()
1186 seq_printf(seq, " %08x %08x", hi, lo); in mboxlog_show()
1188 seq_puts(seq, "\n"); in mboxlog_show()
1192 static inline void *mboxlog_get_idx(struct seq_file *seq, loff_t pos) in mboxlog_get_idx() argument
1194 struct adapter *adapter = seq->private; in mboxlog_get_idx()
1200 static void *mboxlog_start(struct seq_file *seq, loff_t *pos) in mboxlog_start() argument
1202 return *pos ? mboxlog_get_idx(seq, *pos) : SEQ_START_TOKEN; in mboxlog_start()
1205 static void *mboxlog_next(struct seq_file *seq, void *v, loff_t *pos) in mboxlog_next() argument
1208 return mboxlog_get_idx(seq, *pos); in mboxlog_next()
1211 static void mboxlog_stop(struct seq_file *seq, void *v) in mboxlog_stop() argument
1227 struct seq_file *seq = file->private_data; in mboxlog_open() local
1229 seq->private = inode->i_private; in mboxlog_open()
1242 static int mbox_show(struct seq_file *seq, void *v) in mbox_show() argument
1248 unsigned int mbox = (uintptr_t)seq->private & 7; in mbox_show()
1249 struct adapter *adap = seq->private - mbox; in mbox_show()
1265 seq_printf(seq, "mailbox owned by %s\n\n", owner[i]); in mbox_show()
1268 seq_printf(seq, "%016llx\n", in mbox_show()
1326 static int mps_trc_show(struct seq_file *seq, void *v) in mps_trc_show() argument
1330 unsigned int trcidx = (uintptr_t)seq->private & 3; in mps_trc_show()
1331 struct adapter *adap = seq->private - trcidx; in mps_trc_show()
1335 seq_puts(seq, "tracer is disabled\n"); in mps_trc_show()
1350 seq_printf(seq, "tracer is capturing %s %s, ", in mps_trc_show()
1353 seq_printf(seq, "tracer is capturing loopback %d, ", in mps_trc_show()
1355 seq_printf(seq, "snap length: %u, min length: %u\n", tp.snap_len, in mps_trc_show()
1357 seq_printf(seq, "packets captured %smatch filter\n", in mps_trc_show()
1361 seq_puts(seq, "filter pattern: "); in mps_trc_show()
1363 seq_printf(seq, "%08x%08x", tp.data[i], tp.data[i + 1]); in mps_trc_show()
1364 seq_putc(seq, '/'); in mps_trc_show()
1366 seq_printf(seq, "%08x%08x", tp.mask[i], tp.mask[i + 1]); in mps_trc_show()
1367 seq_puts(seq, "@0\n"); in mps_trc_show()
1370 seq_puts(seq, "filter pattern: "); in mps_trc_show()
1372 seq_printf(seq, "%08x%08x", tp.data[i], tp.data[i + 1]); in mps_trc_show()
1373 seq_putc(seq, '/'); in mps_trc_show()
1375 seq_printf(seq, "%08x%08x", tp.mask[i], tp.mask[i + 1]); in mps_trc_show()
1376 seq_printf(seq, "@%u\n", (tp.skip_ofst + tp.skip_len) * 8); in mps_trc_show()
1672 static int mps_tcam_show(struct seq_file *seq, void *v) in mps_tcam_show() argument
1674 struct adapter *adap = seq->private; in mps_tcam_show()
1678 seq_puts(seq, "Idx Ethernet address Mask " in mps_tcam_show()
1686 seq_puts(seq, "Idx Ethernet address Mask " in mps_tcam_show()
1691 seq_puts(seq, "Idx Ethernet address Mask " in mps_tcam_show()
1762 seq_printf(seq, "%3u -\n", idx); in mps_tcam_show()
1815 seq_printf(seq, in mps_tcam_show()
1828 seq_printf(seq, in mps_tcam_show()
1834 seq_printf(seq, "%4u Y ", ivlan); in mps_tcam_show()
1836 seq_puts(seq, " - N "); in mps_tcam_show()
1838 seq_printf(seq, in mps_tcam_show()
1848 seq_printf(seq, "%3u %pM %012llx%3c %#x%4u%4d", in mps_tcam_show()
1857 seq_printf(seq, " %08x %08x %08x %08x " in mps_tcam_show()
1862 seq_printf(seq, " %08x %08x %08x %08x", in mps_tcam_show()
1866 seq_printf(seq, "%72c", ' '); in mps_tcam_show()
1868 seq_printf(seq, "%36c", ' '); in mps_tcam_show()
1872 seq_printf(seq, "%4u%3u%3u%3u %#x\n", in mps_tcam_show()
1879 seq_printf(seq, "%4u%3u%3u%3u %#x\n", in mps_tcam_show()
1887 static inline void *mps_tcam_get_idx(struct seq_file *seq, loff_t pos) in mps_tcam_get_idx() argument
1889 struct adapter *adap = seq->private; in mps_tcam_get_idx()
1896 static void *mps_tcam_start(struct seq_file *seq, loff_t *pos) in mps_tcam_start() argument
1898 return *pos ? mps_tcam_get_idx(seq, *pos) : SEQ_START_TOKEN; in mps_tcam_start()
1901 static void *mps_tcam_next(struct seq_file *seq, void *v, loff_t *pos) in mps_tcam_next() argument
1904 return mps_tcam_get_idx(seq, *pos); in mps_tcam_next()
1907 static void mps_tcam_stop(struct seq_file *seq, void *v) in mps_tcam_stop() argument
1923 struct seq_file *seq = file->private_data; in mps_tcam_open() local
1925 seq->private = inode->i_private; in mps_tcam_open()
1940 static int sensors_show(struct seq_file *seq, void *v) in sensors_show() argument
1942 struct adapter *adap = seq->private; in sensors_show()
1959 seq_puts(seq, "Temperature: <unknown>\n"); in sensors_show()
1961 seq_printf(seq, "Temperature: %dC\n", val[0]); in sensors_show()
1964 seq_puts(seq, "Core VDD: <unknown>\n"); in sensors_show()
1966 seq_printf(seq, "Core VDD: %dmV\n", val[1]); in sensors_show()
1979 static int rss_show(struct seq_file *seq, void *v, int idx) in rss_show() argument
1983 seq_printf(seq, "%4d: %4u %4u %4u %4u %4u %4u %4u %4u\n", in rss_show()
2029 static int rss_config_show(struct seq_file *seq, void *v) in rss_config_show() argument
2031 struct adapter *adapter = seq->private; in rss_config_show()
2041 seq_printf(seq, "TP_RSS_CONFIG: %#x\n", rssconf); in rss_config_show()
2042 seq_printf(seq, " Tnl4TupEnIpv6: %3s\n", yesno(rssconf & in rss_config_show()
2044 seq_printf(seq, " Tnl2TupEnIpv6: %3s\n", yesno(rssconf & in rss_config_show()
2046 seq_printf(seq, " Tnl4TupEnIpv4: %3s\n", yesno(rssconf & in rss_config_show()
2048 seq_printf(seq, " Tnl2TupEnIpv4: %3s\n", yesno(rssconf & in rss_config_show()
2050 seq_printf(seq, " TnlTcpSel: %3s\n", yesno(rssconf & TNLTCPSEL_F)); in rss_config_show()
2051 seq_printf(seq, " TnlIp6Sel: %3s\n", yesno(rssconf & TNLIP6SEL_F)); in rss_config_show()
2052 seq_printf(seq, " TnlVrtSel: %3s\n", yesno(rssconf & TNLVRTSEL_F)); in rss_config_show()
2053 seq_printf(seq, " TnlMapEn: %3s\n", yesno(rssconf & TNLMAPEN_F)); in rss_config_show()
2054 seq_printf(seq, " OfdHashSave: %3s\n", yesno(rssconf & in rss_config_show()
2056 seq_printf(seq, " OfdVrtSel: %3s\n", yesno(rssconf & OFDVRTSEL_F)); in rss_config_show()
2057 seq_printf(seq, " OfdMapEn: %3s\n", yesno(rssconf & OFDMAPEN_F)); in rss_config_show()
2058 seq_printf(seq, " OfdLkpEn: %3s\n", yesno(rssconf & OFDLKPEN_F)); in rss_config_show()
2059 seq_printf(seq, " Syn4TupEnIpv6: %3s\n", yesno(rssconf & in rss_config_show()
2061 seq_printf(seq, " Syn2TupEnIpv6: %3s\n", yesno(rssconf & in rss_config_show()
2063 seq_printf(seq, " Syn4TupEnIpv4: %3s\n", yesno(rssconf & in rss_config_show()
2065 seq_printf(seq, " Syn2TupEnIpv4: %3s\n", yesno(rssconf & in rss_config_show()
2067 seq_printf(seq, " Syn4TupEnIpv6: %3s\n", yesno(rssconf & in rss_config_show()
2069 seq_printf(seq, " SynIp6Sel: %3s\n", yesno(rssconf & SYNIP6SEL_F)); in rss_config_show()
2070 seq_printf(seq, " SynVrt6Sel: %3s\n", yesno(rssconf & SYNVRTSEL_F)); in rss_config_show()
2071 seq_printf(seq, " SynMapEn: %3s\n", yesno(rssconf & SYNMAPEN_F)); in rss_config_show()
2072 seq_printf(seq, " SynLkpEn: %3s\n", yesno(rssconf & SYNLKPEN_F)); in rss_config_show()
2073 seq_printf(seq, " ChnEn: %3s\n", yesno(rssconf & in rss_config_show()
2075 seq_printf(seq, " PrtEn: %3s\n", yesno(rssconf & in rss_config_show()
2077 seq_printf(seq, " TnlAllLkp: %3s\n", yesno(rssconf & in rss_config_show()
2079 seq_printf(seq, " VrtEn: %3s\n", yesno(rssconf & in rss_config_show()
2081 seq_printf(seq, " CngEn: %3s\n", yesno(rssconf & in rss_config_show()
2083 seq_printf(seq, " HashToeplitz: %3s\n", yesno(rssconf & in rss_config_show()
2085 seq_printf(seq, " Udp4En: %3s\n", yesno(rssconf & UDPENABLE_F)); in rss_config_show()
2086 seq_printf(seq, " Disable: %3s\n", yesno(rssconf & DISABLE_F)); in rss_config_show()
2088 seq_puts(seq, "\n"); in rss_config_show()
2091 seq_printf(seq, "TP_RSS_CONFIG_TNL: %#x\n", rssconf); in rss_config_show()
2092 seq_printf(seq, " MaskSize: %3d\n", MASKSIZE_G(rssconf)); in rss_config_show()
2093 seq_printf(seq, " MaskFilter: %3d\n", MASKFILTER_G(rssconf)); in rss_config_show()
2095 seq_printf(seq, " HashAll: %3s\n", in rss_config_show()
2097 seq_printf(seq, " HashEth: %3s\n", in rss_config_show()
2100 seq_printf(seq, " UseWireCh: %3s\n", yesno(rssconf & USEWIRECH_F)); in rss_config_show()
2102 seq_puts(seq, "\n"); in rss_config_show()
2105 seq_printf(seq, "TP_RSS_CONFIG_OFD: %#x\n", rssconf); in rss_config_show()
2106 seq_printf(seq, " MaskSize: %3d\n", MASKSIZE_G(rssconf)); in rss_config_show()
2107 seq_printf(seq, " RRCplMapEn: %3s\n", yesno(rssconf & in rss_config_show()
2109 seq_printf(seq, " RRCplQueWidth: %3d\n", RRCPLQUEWIDTH_G(rssconf)); in rss_config_show()
2111 seq_puts(seq, "\n"); in rss_config_show()
2114 seq_printf(seq, "TP_RSS_CONFIG_SYN: %#x\n", rssconf); in rss_config_show()
2115 seq_printf(seq, " MaskSize: %3d\n", MASKSIZE_G(rssconf)); in rss_config_show()
2116 seq_printf(seq, " UseWireCh: %3s\n", yesno(rssconf & USEWIRECH_F)); in rss_config_show()
2118 seq_puts(seq, "\n"); in rss_config_show()
2121 seq_printf(seq, "TP_RSS_CONFIG_VRT: %#x\n", rssconf); in rss_config_show()
2123 seq_printf(seq, " KeyWrAddrX: %3d\n", in rss_config_show()
2125 seq_printf(seq, " KeyExtend: %3s\n", in rss_config_show()
2128 seq_printf(seq, " VfRdRg: %3s\n", yesno(rssconf & VFRDRG_F)); in rss_config_show()
2129 seq_printf(seq, " VfRdEn: %3s\n", yesno(rssconf & VFRDEN_F)); in rss_config_show()
2130 seq_printf(seq, " VfPerrEn: %3s\n", yesno(rssconf & VFPERREN_F)); in rss_config_show()
2131 seq_printf(seq, " KeyPerrEn: %3s\n", yesno(rssconf & KEYPERREN_F)); in rss_config_show()
2132 seq_printf(seq, " DisVfVlan: %3s\n", yesno(rssconf & in rss_config_show()
2134 seq_printf(seq, " EnUpSwt: %3s\n", yesno(rssconf & ENABLEUP0_F)); in rss_config_show()
2135 seq_printf(seq, " HashDelay: %3d\n", HASHDELAY_G(rssconf)); in rss_config_show()
2137 seq_printf(seq, " VfWrAddr: %3d\n", VFWRADDR_G(rssconf)); in rss_config_show()
2139 seq_printf(seq, " VfWrAddr: %3d\n", in rss_config_show()
2141 seq_printf(seq, " KeyMode: %s\n", keymode[KEYMODE_G(rssconf)]); in rss_config_show()
2142 seq_printf(seq, " VfWrEn: %3s\n", yesno(rssconf & VFWREN_F)); in rss_config_show()
2143 seq_printf(seq, " KeyWrEn: %3s\n", yesno(rssconf & KEYWREN_F)); in rss_config_show()
2144 seq_printf(seq, " KeyWrAddr: %3d\n", KEYWRADDR_G(rssconf)); in rss_config_show()
2146 seq_puts(seq, "\n"); in rss_config_show()
2149 seq_printf(seq, "TP_RSS_CONFIG_CNG: %#x\n", rssconf); in rss_config_show()
2150 seq_printf(seq, " ChnCount3: %3s\n", yesno(rssconf & CHNCOUNT3_F)); in rss_config_show()
2151 seq_printf(seq, " ChnCount2: %3s\n", yesno(rssconf & CHNCOUNT2_F)); in rss_config_show()
2152 seq_printf(seq, " ChnCount1: %3s\n", yesno(rssconf & CHNCOUNT1_F)); in rss_config_show()
2153 seq_printf(seq, " ChnCount0: %3s\n", yesno(rssconf & CHNCOUNT0_F)); in rss_config_show()
2154 seq_printf(seq, " ChnUndFlow3: %3s\n", yesno(rssconf & in rss_config_show()
2156 seq_printf(seq, " ChnUndFlow2: %3s\n", yesno(rssconf & in rss_config_show()
2158 seq_printf(seq, " ChnUndFlow1: %3s\n", yesno(rssconf & in rss_config_show()
2160 seq_printf(seq, " ChnUndFlow0: %3s\n", yesno(rssconf & in rss_config_show()
2162 seq_printf(seq, " RstChn3: %3s\n", yesno(rssconf & RSTCHN3_F)); in rss_config_show()
2163 seq_printf(seq, " RstChn2: %3s\n", yesno(rssconf & RSTCHN2_F)); in rss_config_show()
2164 seq_printf(seq, " RstChn1: %3s\n", yesno(rssconf & RSTCHN1_F)); in rss_config_show()
2165 seq_printf(seq, " RstChn0: %3s\n", yesno(rssconf & RSTCHN0_F)); in rss_config_show()
2166 seq_printf(seq, " UpdVld: %3s\n", yesno(rssconf & UPDVLD_F)); in rss_config_show()
2167 seq_printf(seq, " Xoff: %3s\n", yesno(rssconf & XOFF_F)); in rss_config_show()
2168 seq_printf(seq, " UpdChn3: %3s\n", yesno(rssconf & UPDCHN3_F)); in rss_config_show()
2169 seq_printf(seq, " UpdChn2: %3s\n", yesno(rssconf & UPDCHN2_F)); in rss_config_show()
2170 seq_printf(seq, " UpdChn1: %3s\n", yesno(rssconf & UPDCHN1_F)); in rss_config_show()
2171 seq_printf(seq, " UpdChn0: %3s\n", yesno(rssconf & UPDCHN0_F)); in rss_config_show()
2172 seq_printf(seq, " Queue: %3d\n", QUEUE_G(rssconf)); in rss_config_show()
2181 static int rss_key_show(struct seq_file *seq, void *v) in rss_key_show() argument
2185 t4_read_rss_key(seq->private, key, true); in rss_key_show()
2186 seq_printf(seq, "%08x%08x%08x%08x%08x%08x%08x%08x%08x%08x\n", in rss_key_show()
2244 static int rss_pf_config_show(struct seq_file *seq, void *v, int idx) in rss_pf_config_show() argument
2250 pfconf = seq->private + offsetof(struct seq_tab, data); in rss_pf_config_show()
2251 seq_printf(seq, "PF Map Index Size = %d\n\n", in rss_pf_config_show()
2254 seq_puts(seq, " RSS PF VF Hash Tuple Enable Default\n"); in rss_pf_config_show()
2255 seq_puts(seq, " Enable IPF Mask Mask IPv6 IPv4 UDP Queue\n"); in rss_pf_config_show()
2256 seq_puts(seq, " PF Map Chn Prt Map Size Size Four Two Four Two Four Ch1 Ch0\n"); in rss_pf_config_show()
2264 seq_printf(seq, "%3d %3s %3s %3s %3d %3d %3d %3s %3s %3s %3s %3s %3d %3d\n", in rss_pf_config_show()
2326 static int rss_vf_config_show(struct seq_file *seq, void *v, int idx) in rss_vf_config_show() argument
2329 seq_puts(seq, " RSS Hash Tuple Enable\n"); in rss_vf_config_show()
2330 seq_puts(seq, " Enable IVF Dis Enb IPv6 IPv4 UDP Def Secret Key\n"); in rss_vf_config_show()
2331 seq_puts(seq, " VF Chn Prt Map VLAN uP Four Two Four Two Four Que Idx Hash\n"); in rss_vf_config_show()
2335 seq_printf(seq, "%3d %3s %3s %3d %3s %3s %3s %3s %3s %3s %3s %4d %3d %#10x\n", in rss_vf_config_show()
2385 static int dcb_info_show(struct seq_file *seq, void *v) in dcb_info_show() argument
2387 struct adapter *adap = seq->private; in dcb_info_show()
2390 seq_puts(seq, "Data Center Bridging Information\n"); in dcb_info_show()
2397 seq_puts(seq, "\n"); in dcb_info_show()
2398 seq_printf(seq, "Port: %d (DCB negotiated: %s)\n", in dcb_info_show()
2403 seq_printf(seq, "[ DCBx Version %s ]\n", in dcb_info_show()
2409 seq_puts(seq, "\n Index\t\t\t :\t"); in dcb_info_show()
2411 seq_printf(seq, " %3d", i); in dcb_info_show()
2412 seq_puts(seq, "\n\n"); in dcb_info_show()
2418 seq_puts(seq, " Priority Group IDs\t :\t"); in dcb_info_show()
2421 seq_printf(seq, " %3d", pgid); in dcb_info_show()
2423 seq_puts(seq, "\n"); in dcb_info_show()
2429 seq_puts(seq, " Priority Group BW(%)\t :\t"); in dcb_info_show()
2431 seq_printf(seq, " %3d", dcb->pgrate[pg]); in dcb_info_show()
2432 seq_puts(seq, "\n"); in dcb_info_show()
2435 seq_puts(seq, " TSA Algorithm\t\t :\t"); in dcb_info_show()
2437 seq_printf(seq, " %3d", dcb->tsa[pg]); in dcb_info_show()
2438 seq_puts(seq, "\n"); in dcb_info_show()
2441 seq_printf(seq, " Max PG Traffic Classes [%3d ]\n", in dcb_info_show()
2444 seq_puts(seq, "\n"); in dcb_info_show()
2450 seq_puts(seq, " Priority Rate\t:\t"); in dcb_info_show()
2452 seq_printf(seq, " %3d", dcb->priorate[prio]); in dcb_info_show()
2453 seq_puts(seq, "\n"); in dcb_info_show()
2459 seq_puts(seq, " Priority Flow Control :\t"); in dcb_info_show()
2463 seq_printf(seq, " %3d", pfcen); in dcb_info_show()
2465 seq_puts(seq, "\n"); in dcb_info_show()
2467 seq_printf(seq, " Max PFC Traffic Classes [%3d ]\n", in dcb_info_show()
2470 seq_puts(seq, "\n"); in dcb_info_show()
2476 seq_puts(seq, " Application Information:\n"); in dcb_info_show()
2477 seq_puts(seq, " App Priority Selection Protocol\n"); in dcb_info_show()
2478 seq_puts(seq, " Index Map Field ID\n"); in dcb_info_show()
2501 seq_printf(seq, " %3d %#04x %-10s (%d) %#06x (%d)\n", in dcb_info_show()
2508 seq_puts(seq, " --- None ---\n"); in dcb_info_show()
2521 static void *dcb_info_start(struct seq_file *seq, loff_t *pos) in dcb_info_start() argument
2523 struct adapter *adap = seq->private; in dcb_info_start()
2530 static void dcb_info_stop(struct seq_file *seq, void *v) in dcb_info_stop() argument
2534 static void *dcb_info_next(struct seq_file *seq, void *v, loff_t *pos) in dcb_info_next() argument
2536 struct adapter *adap = seq->private; in dcb_info_next()
2554 struct seq_file *seq = file->private_data; in dcb_info_open() local
2556 seq->private = inode->i_private; in dcb_info_open()
2570 static int resources_show(struct seq_file *seq, void *v) in resources_show() argument
2572 struct adapter *adapter = seq->private; in resources_show()
2576 seq_printf(seq, "%-60s " fmt "\n", \ in resources_show()
2650 static int sge_qinfo_show(struct seq_file *seq, void *v) in sge_qinfo_show() argument
2659 struct adapter *adap = seq->private; in sge_qinfo_show()
2667 seq_putc(seq, '\n'); in sge_qinfo_show()
2671 seq_printf(seq, "%-12s", s); \ in sge_qinfo_show()
2673 seq_printf(seq, " %16" fmt_spec, v); \ in sge_qinfo_show()
2674 seq_putc(seq, '\n'); \ in sge_qinfo_show()
3123 seq_printf(seq, "%-12s %16s\n", "QType:", "FW event queue"); in sge_qinfo_show()
3124 seq_printf(seq, "%-12s %16u\n", "RspQ ID:", evtq->abs_id); in sge_qinfo_show()
3125 seq_printf(seq, "%-12s %16u\n", "RspQ size:", evtq->size); in sge_qinfo_show()
3126 seq_printf(seq, "%-12s %16u\n", "RspQE size:", evtq->iqe_len); in sge_qinfo_show()
3127 seq_printf(seq, "%-12s %16u\n", "RspQ CIDX:", evtq->cidx); in sge_qinfo_show()
3128 seq_printf(seq, "%-12s %16u\n", "RspQ Gen:", evtq->gen); in sge_qinfo_show()
3129 seq_printf(seq, "%-12s %16u\n", "Intr delay:", in sge_qinfo_show()
3131 seq_printf(seq, "%-12s %16u\n", "Intr pktcnt:", in sge_qinfo_show()
3207 static void *sge_queue_start(struct seq_file *seq, loff_t *pos) in sge_queue_start() argument
3209 int entries = sge_queue_entries(seq->private); in sge_queue_start()
3214 static void sge_queue_stop(struct seq_file *seq, void *v) in sge_queue_stop() argument
3218 static void *sge_queue_next(struct seq_file *seq, void *v, loff_t *pos) in sge_queue_next() argument
3220 int entries = sge_queue_entries(seq->private); in sge_queue_next()
3238 struct seq_file *seq = file->private_data; in sge_qinfo_open() local
3240 seq->private = inode->i_private; in sge_qinfo_open()
3312 static int tid_info_show(struct seq_file *seq, void *v) in tid_info_show() argument
3314 struct adapter *adap = seq->private; in tid_info_show()
3322 seq_printf(seq, "Connections in use: %u\n", in tid_info_show()
3331 seq_printf(seq, "TID range: %u..%u/%u..%u", t->tid_base, in tid_info_show()
3334 seq_printf(seq, ", in use: %u/%u\n", in tid_info_show()
3338 seq_printf(seq, "TID range: %u..%u/%u..%u", in tid_info_show()
3343 seq_printf(seq, ", in use: %u/%u\n", in tid_info_show()
3347 seq_printf(seq, "TID range: %u..%u", in tid_info_show()
3350 seq_printf(seq, ", in use: %u\n", in tid_info_show()
3354 seq_printf(seq, "Connections in use: %u\n", in tid_info_show()
3357 seq_printf(seq, "TID range: %u..%u", t->tid_base, in tid_info_show()
3359 seq_printf(seq, ", in use: %u\n", in tid_info_show()
3364 seq_printf(seq, "STID range: %u..%u, in use-IPv4/IPv6: %u/%u\n", in tid_info_show()
3373 seq_printf(seq, "ATID range: 0..%u, in use: %u\n", in tid_info_show()
3375 seq_printf(seq, "FTID range: %u..%u\n", t->ftid_base, in tid_info_show()
3378 seq_printf(seq, "SFTID range: %u..%u in use: %u\n", in tid_info_show()
3382 seq_printf(seq, "HPFTID range: %u..%u\n", t->hpftid_base, in tid_info_show()
3385 seq_printf(seq, "EOTID range: %u..%u, in use: %u\n", in tid_info_show()
3389 seq_printf(seq, "HW TID usage: %u IP users, %u IPv6 users\n", in tid_info_show()
3455 static void mem_region_show(struct seq_file *seq, const char *name, in mem_region_show() argument
3462 seq_printf(seq, "%-15s %#x-%#x [%s]\n", name, from, to, buf); in mem_region_show()
3465 static int meminfo_show(struct seq_file *seq, void *v) in meminfo_show() argument
3469 struct adapter *adap = seq->private; in meminfo_show()
3479 mem_region_show(seq, memory[meminfo.avail[i].idx], in meminfo_show()
3483 seq_putc(seq, '\n'); in meminfo_show()
3491 mem_region_show(seq, cudbg_region[meminfo.mem[i].idx], in meminfo_show()
3495 seq_putc(seq, '\n'); in meminfo_show()
3496 mem_region_show(seq, "uP RAM:", meminfo.up_ram_lo, meminfo.up_ram_hi); in meminfo_show()
3497 mem_region_show(seq, "uP Extmem2:", meminfo.up_extmem2_lo, in meminfo_show()
3500 seq_printf(seq, "\n%u Rx pages (%u free) of size %uKiB for %u channels\n", in meminfo_show()
3504 seq_printf(seq, "%u Tx pages (%u free) of size %u%ciB for %u channels\n", in meminfo_show()
3509 seq_printf(seq, "%u p-structs (%u free)\n\n", in meminfo_show()
3514 seq_printf(seq, "Port %d using %u pages out of %u allocated\n", in meminfo_show()
3519 seq_printf(seq, in meminfo_show()
3528 static int chcr_stats_show(struct seq_file *seq, void *v) in chcr_stats_show() argument
3534 struct adapter *adap = seq->private; in chcr_stats_show()
3536 seq_puts(seq, "Chelsio Crypto Accelerator Stats \n"); in chcr_stats_show()
3537 seq_printf(seq, "Cipher Ops: %10u \n", in chcr_stats_show()
3539 seq_printf(seq, "Digest Ops: %10u \n", in chcr_stats_show()
3541 seq_printf(seq, "Aead Ops: %10u \n", in chcr_stats_show()
3543 seq_printf(seq, "Completion: %10u \n", in chcr_stats_show()
3545 seq_printf(seq, "Error: %10u \n", in chcr_stats_show()
3547 seq_printf(seq, "Fallback: %10u \n", in chcr_stats_show()
3549 seq_printf(seq, "TLS PDU Tx: %10u\n", in chcr_stats_show()
3551 seq_printf(seq, "TLS PDU Rx: %10u\n", in chcr_stats_show()
3553 seq_printf(seq, "TLS Keys (DDR) Count: %10u\n", in chcr_stats_show()
3556 seq_puts(seq, "\nChelsio Inline IPsec Crypto Accelerator Stats\n"); in chcr_stats_show()
3557 seq_printf(seq, "IPSec PDU: %10u\n", in chcr_stats_show()
3561 seq_puts(seq, "\nChelsio KTLS Crypto Accelerator Stats\n"); in chcr_stats_show()
3562 seq_printf(seq, "Tx TLS offload refcount: %20u\n", in chcr_stats_show()
3564 seq_printf(seq, "Tx records send: %20llu\n", in chcr_stats_show()
3566 seq_printf(seq, "Tx partial start of records: %20llu\n", in chcr_stats_show()
3568 seq_printf(seq, "Tx partial middle of records: %20llu\n", in chcr_stats_show()
3570 seq_printf(seq, "Tx partial end of record: %20llu\n", in chcr_stats_show()
3572 seq_printf(seq, "Tx complete records: %20llu\n", in chcr_stats_show()
3574 seq_printf(seq, "TX trim pkts : %20llu\n", in chcr_stats_show()
3576 seq_printf(seq, "TX sw fallback : %20llu\n", in chcr_stats_show()
3580 seq_printf(seq, "Port %d\n", i); in chcr_stats_show()
3581 seq_printf(seq, "Tx connection created: %20llu\n", in chcr_stats_show()
3583 seq_printf(seq, "Tx connection failed: %20llu\n", in chcr_stats_show()
3585 seq_printf(seq, "Tx connection closed: %20llu\n", in chcr_stats_show()
3595 seq_printf(seq, "%-25s %-20llu\n", (string), \
3600 seq_printf(seq, "%-25s ", (string)); \
3602 seq_printf(seq, "%-20llu ", \
3604 seq_printf(seq, "\n"); \
3609 seq_printf(seq, "%-25s ", (string)); \
3611 seq_printf(seq, "%-20llu ", \
3613 seq_printf(seq, "\n"); \
3616 static void show_tcp_stats(struct seq_file *seq) in show_tcp_stats() argument
3618 struct adapter *adap = seq->private; in show_tcp_stats()
3635 static void show_ddp_stats(struct seq_file *seq) in show_ddp_stats() argument
3637 struct adapter *adap = seq->private; in show_ddp_stats()
3649 static void show_rdma_stats(struct seq_file *seq) in show_rdma_stats() argument
3651 struct adapter *adap = seq->private; in show_rdma_stats()
3662 static void show_tp_err_adapter_stats(struct seq_file *seq) in show_tp_err_adapter_stats() argument
3664 struct adapter *adap = seq->private; in show_tp_err_adapter_stats()
3675 static void show_cpl_stats(struct seq_file *seq) in show_cpl_stats() argument
3677 struct adapter *adap = seq->private; in show_cpl_stats()
3689 static void show_tp_err_channel_stats(struct seq_file *seq) in show_tp_err_channel_stats() argument
3691 struct adapter *adap = seq->private; in show_tp_err_channel_stats()
3709 static void show_fcoe_stats(struct seq_file *seq) in show_fcoe_stats() argument
3711 struct adapter *adap = seq->private; in show_fcoe_stats()
3729 static int tp_stats_show(struct seq_file *seq, void *v) in tp_stats_show() argument
3731 struct adapter *adap = seq->private; in tp_stats_show()
3733 seq_puts(seq, "\n--------Adapter Stats--------\n"); in tp_stats_show()
3734 show_tcp_stats(seq); in tp_stats_show()
3735 show_ddp_stats(seq); in tp_stats_show()
3736 show_rdma_stats(seq); in tp_stats_show()
3737 show_tp_err_adapter_stats(seq); in tp_stats_show()
3739 seq_puts(seq, "\n-------- Channel Stats --------\n"); in tp_stats_show()
3741 seq_printf(seq, "%-25s %-20s %-20s %-20s %-20s\n", in tp_stats_show()
3745 seq_printf(seq, "%-25s %-20s %-20s\n", in tp_stats_show()
3747 show_cpl_stats(seq); in tp_stats_show()
3748 show_tp_err_channel_stats(seq); in tp_stats_show()
3749 show_fcoe_stats(seq); in tp_stats_show()