Lines Matching refs:seq

56 static void *seq_tab_start(struct seq_file *seq, loff_t *pos)  in seq_tab_start()  argument
58 struct seq_tab *tb = seq->private; in seq_tab_start()
66 static void *seq_tab_next(struct seq_file *seq, void *v, loff_t *pos) in seq_tab_next() argument
68 v = seq_tab_get_idx(seq->private, *pos + 1); in seq_tab_next()
74 static void seq_tab_stop(struct seq_file *seq, void *v) in seq_tab_stop() argument
78 static int seq_tab_show(struct seq_file *seq, void *v) in seq_tab_show() argument
80 const struct seq_tab *tb = seq->private; in seq_tab_show()
82 return tb->show(seq, v, ((char *)v - tb->data) / tb->width); in seq_tab_show()
94 int (*show)(struct seq_file *seq, void *v, int i)) in seq_open_tab() argument
119 static int cim_la_show(struct seq_file *seq, void *v, int idx) in cim_la_show() argument
122 seq_puts(seq, "Status Data PC LS0Stat LS0Addr " in cim_la_show()
127 seq_printf(seq, in cim_la_show()
136 static int cim_la_show_3in1(struct seq_file *seq, void *v, int idx) in cim_la_show_3in1() argument
139 seq_puts(seq, "Status Data PC\n"); in cim_la_show_3in1()
143 seq_printf(seq, " %02x %08x %08x\n", p[5] & 0xff, p[6], in cim_la_show_3in1()
145 seq_printf(seq, " %02x %02x%06x %02x%06x\n", in cim_la_show_3in1()
148 seq_printf(seq, " %02x %x%07x %x%07x\n", (p[0] >> 4) & 0xff, in cim_la_show_3in1()
185 static int cim_qcfg_show(struct seq_file *seq, void *v) in cim_qcfg_show() argument
194 struct adapter *adap = seq->private; in cim_qcfg_show()
224 seq_printf(seq, in cim_qcfg_show()
227 seq_printf(seq, "%7s %5x %5u %5u %6x %4x %4u %4u %5u\n", in cim_qcfg_show()
233 seq_printf(seq, "%7s %5x %5u %12x %4x %4u %4u %5u\n", in cim_qcfg_show()
254 static int cimq_show(struct seq_file *seq, void *v, int idx) in cimq_show() argument
258 seq_printf(seq, "%#06x: %08x %08x %08x %08x\n", idx * 16, p[0], p[1], in cimq_show()
325 static void field_desc_show(struct seq_file *seq, u64 v, in field_desc_show() argument
338 seq_puts(seq, "\n "); in field_desc_show()
340 seq_printf(seq, "%s ", buf); in field_desc_show()
344 seq_putc(seq, '\n'); in field_desc_show()
384 static int tp_la_show(struct seq_file *seq, void *v, int idx) in tp_la_show() argument
388 field_desc_show(seq, *p, tp_la0); in tp_la_show()
392 static int tp_la_show2(struct seq_file *seq, void *v, int idx) in tp_la_show2() argument
397 seq_putc(seq, '\n'); in tp_la_show2()
398 field_desc_show(seq, p[0], tp_la0); in tp_la_show2()
400 field_desc_show(seq, p[1], tp_la0); in tp_la_show2()
404 static int tp_la_show3(struct seq_file *seq, void *v, int idx) in tp_la_show3() argument
503 seq_putc(seq, '\n'); in tp_la_show3()
504 field_desc_show(seq, p[0], tp_la0); in tp_la_show3()
506 field_desc_show(seq, p[1], (p[0] & BIT(17)) ? tp_la2 : tp_la1); in tp_la_show3()
566 static int ulprx_la_show(struct seq_file *seq, void *v, int idx) in ulprx_la_show() argument
571 seq_puts(seq, " Pcmd Type Message" in ulprx_la_show()
574 seq_printf(seq, "%08x%08x %4x %08x %08x%08x%08x%08x\n", in ulprx_la_show()
613 static int pm_stats_show(struct seq_file *seq, void *v) in pm_stats_show() argument
625 struct adapter *adap = seq->private; in pm_stats_show()
630 seq_printf(seq, "%13s %10s %20s\n", " ", "Tx pcmds", "Tx bytes"); in pm_stats_show()
632 seq_printf(seq, "%-13s %10u %20llu\n", in pm_stats_show()
635 seq_printf(seq, "%13s %10s %20s\n", " ", "Rx pcmds", "Rx bytes"); in pm_stats_show()
637 seq_printf(seq, "%-13s %10u %20llu\n", in pm_stats_show()
666 static int cctrl_tbl_show(struct seq_file *seq, void *v) in cctrl_tbl_show() argument
674 struct adapter *adap = seq->private; in cctrl_tbl_show()
683 seq_printf(seq, "%2d: %4u %4u %4u %4u %4u %4u %4u %4u\n", i, in cctrl_tbl_show()
686 seq_printf(seq, "%8u %4u %4u %4u %4u %4u %4u %4u %5u %s\n", in cctrl_tbl_show()
717 static int clk_show(struct seq_file *seq, void *v) in clk_show() argument
720 struct adapter *adap = seq->private; in clk_show()
727 seq_printf(seq, "Core clock period: %s ns\n", in clk_show()
729 seq_printf(seq, "TP timer tick: %s us\n", in clk_show()
731 seq_printf(seq, "TCP timestamp tick: %s us\n", in clk_show()
734 seq_printf(seq, "DACK tick: %s us\n", in clk_show()
736 seq_printf(seq, "DACK timer: %u us\n", in clk_show()
739 seq_printf(seq, "Retransmit min: %llu us\n", in clk_show()
741 seq_printf(seq, "Retransmit max: %llu us\n", in clk_show()
743 seq_printf(seq, "Persist timer min: %llu us\n", in clk_show()
745 seq_printf(seq, "Persist timer max: %llu us\n", in clk_show()
747 seq_printf(seq, "Keepalive idle timer: %llu us\n", in clk_show()
749 seq_printf(seq, "Keepalive interval: %llu us\n", in clk_show()
751 seq_printf(seq, "Initial SRTT: %llu us\n", in clk_show()
753 seq_printf(seq, "FINWAIT2 timer: %llu us\n", in clk_show()
807 static int devlog_show(struct seq_file *seq, void *v) in devlog_show() argument
810 seq_printf(seq, "%10s %15s %8s %8s %s\n", in devlog_show()
813 struct devlog_info *dinfo = seq->private; in devlog_show()
832 seq_printf(seq, "%10d %15llu %8s %8s ", in devlog_show()
840 seq_printf(seq, e->fmt, e->params[0], e->params[1], in devlog_show()
857 static void *devlog_start(struct seq_file *seq, loff_t *pos) in devlog_start() argument
859 struct devlog_info *dinfo = seq->private; in devlog_start()
866 static void *devlog_next(struct seq_file *seq, void *v, loff_t *pos) in devlog_next() argument
868 struct devlog_info *dinfo = seq->private; in devlog_next()
874 static void devlog_stop(struct seq_file *seq, void *v) in devlog_stop() argument
957 static int mbox_show(struct seq_file *seq, void *v) in mbox_show() argument
963 unsigned int mbox = (uintptr_t)seq->private & 7; in mbox_show()
964 struct adapter *adap = seq->private - mbox; in mbox_show()
972 seq_printf(seq, "mailbox owned by %s\n\n", owner[i]); in mbox_show()
975 seq_printf(seq, "%016llx\n", in mbox_show()
1085 static int mps_tcam_show(struct seq_file *seq, void *v) in mps_tcam_show() argument
1088 seq_puts(seq, "Idx Ethernet address Mask Vld Ports PF" in mps_tcam_show()
1094 struct adapter *adap = seq->private; in mps_tcam_show()
1103 seq_printf(seq, "%3u -\n", idx); in mps_tcam_show()
1137 seq_printf(seq, "%3u %02x:%02x:%02x:%02x:%02x:%02x %012llx" in mps_tcam_show()
1145 seq_printf(seq, " %08x %08x %08x %08x", in mps_tcam_show()
1148 seq_printf(seq, "%36c", ' '); in mps_tcam_show()
1149 seq_printf(seq, "%4u%3u%3u%3u %#x\n", in mps_tcam_show()
1157 static inline void *mps_tcam_get_idx(struct seq_file *seq, loff_t pos) in mps_tcam_get_idx() argument
1159 struct adapter *adap = seq->private; in mps_tcam_get_idx()
1166 static void *mps_tcam_start(struct seq_file *seq, loff_t *pos) in mps_tcam_start() argument
1168 return *pos ? mps_tcam_get_idx(seq, *pos) : SEQ_START_TOKEN; in mps_tcam_start()
1171 static void *mps_tcam_next(struct seq_file *seq, void *v, loff_t *pos) in mps_tcam_next() argument
1174 return mps_tcam_get_idx(seq, *pos); in mps_tcam_next()
1177 static void mps_tcam_stop(struct seq_file *seq, void *v) in mps_tcam_stop() argument
1193 struct seq_file *seq = file->private_data; in mps_tcam_open() local
1195 seq->private = inode->i_private; in mps_tcam_open()
1210 static int sensors_show(struct seq_file *seq, void *v) in sensors_show() argument
1212 struct adapter *adap = seq->private; in sensors_show()
1229 seq_puts(seq, "Temperature: <unknown>\n"); in sensors_show()
1231 seq_printf(seq, "Temperature: %dC\n", val[0]); in sensors_show()
1234 seq_puts(seq, "Core VDD: <unknown>\n"); in sensors_show()
1236 seq_printf(seq, "Core VDD: %dmV\n", val[1]); in sensors_show()
1261 static int rss_show(struct seq_file *seq, void *v, int idx) in rss_show() argument
1265 seq_printf(seq, "%4d: %4u %4u %4u %4u %4u %4u %4u %4u\n", in rss_show()
1310 static int rss_config_show(struct seq_file *seq, void *v) in rss_config_show() argument
1312 struct adapter *adapter = seq->private; in rss_config_show()
1322 seq_printf(seq, "TP_RSS_CONFIG: %#x\n", rssconf); in rss_config_show()
1323 seq_printf(seq, " Tnl4TupEnIpv6: %3s\n", yesno(rssconf & in rss_config_show()
1325 seq_printf(seq, " Tnl2TupEnIpv6: %3s\n", yesno(rssconf & in rss_config_show()
1327 seq_printf(seq, " Tnl4TupEnIpv4: %3s\n", yesno(rssconf & in rss_config_show()
1329 seq_printf(seq, " Tnl2TupEnIpv4: %3s\n", yesno(rssconf & in rss_config_show()
1331 seq_printf(seq, " TnlTcpSel: %3s\n", yesno(rssconf & TNLTCPSEL_F)); in rss_config_show()
1332 seq_printf(seq, " TnlIp6Sel: %3s\n", yesno(rssconf & TNLIP6SEL_F)); in rss_config_show()
1333 seq_printf(seq, " TnlVrtSel: %3s\n", yesno(rssconf & TNLVRTSEL_F)); in rss_config_show()
1334 seq_printf(seq, " TnlMapEn: %3s\n", yesno(rssconf & TNLMAPEN_F)); in rss_config_show()
1335 seq_printf(seq, " OfdHashSave: %3s\n", yesno(rssconf & in rss_config_show()
1337 seq_printf(seq, " OfdVrtSel: %3s\n", yesno(rssconf & OFDVRTSEL_F)); in rss_config_show()
1338 seq_printf(seq, " OfdMapEn: %3s\n", yesno(rssconf & OFDMAPEN_F)); in rss_config_show()
1339 seq_printf(seq, " OfdLkpEn: %3s\n", yesno(rssconf & OFDLKPEN_F)); in rss_config_show()
1340 seq_printf(seq, " Syn4TupEnIpv6: %3s\n", yesno(rssconf & in rss_config_show()
1342 seq_printf(seq, " Syn2TupEnIpv6: %3s\n", yesno(rssconf & in rss_config_show()
1344 seq_printf(seq, " Syn4TupEnIpv4: %3s\n", yesno(rssconf & in rss_config_show()
1346 seq_printf(seq, " Syn2TupEnIpv4: %3s\n", yesno(rssconf & in rss_config_show()
1348 seq_printf(seq, " Syn4TupEnIpv6: %3s\n", yesno(rssconf & in rss_config_show()
1350 seq_printf(seq, " SynIp6Sel: %3s\n", yesno(rssconf & SYNIP6SEL_F)); in rss_config_show()
1351 seq_printf(seq, " SynVrt6Sel: %3s\n", yesno(rssconf & SYNVRTSEL_F)); in rss_config_show()
1352 seq_printf(seq, " SynMapEn: %3s\n", yesno(rssconf & SYNMAPEN_F)); in rss_config_show()
1353 seq_printf(seq, " SynLkpEn: %3s\n", yesno(rssconf & SYNLKPEN_F)); in rss_config_show()
1354 seq_printf(seq, " ChnEn: %3s\n", yesno(rssconf & in rss_config_show()
1356 seq_printf(seq, " PrtEn: %3s\n", yesno(rssconf & in rss_config_show()
1358 seq_printf(seq, " TnlAllLkp: %3s\n", yesno(rssconf & in rss_config_show()
1360 seq_printf(seq, " VrtEn: %3s\n", yesno(rssconf & in rss_config_show()
1362 seq_printf(seq, " CngEn: %3s\n", yesno(rssconf & in rss_config_show()
1364 seq_printf(seq, " HashToeplitz: %3s\n", yesno(rssconf & in rss_config_show()
1366 seq_printf(seq, " Udp4En: %3s\n", yesno(rssconf & UDPENABLE_F)); in rss_config_show()
1367 seq_printf(seq, " Disable: %3s\n", yesno(rssconf & DISABLE_F)); in rss_config_show()
1369 seq_puts(seq, "\n"); in rss_config_show()
1372 seq_printf(seq, "TP_RSS_CONFIG_TNL: %#x\n", rssconf); in rss_config_show()
1373 seq_printf(seq, " MaskSize: %3d\n", MASKSIZE_G(rssconf)); in rss_config_show()
1374 seq_printf(seq, " MaskFilter: %3d\n", MASKFILTER_G(rssconf)); in rss_config_show()
1376 seq_printf(seq, " HashAll: %3s\n", in rss_config_show()
1378 seq_printf(seq, " HashEth: %3s\n", in rss_config_show()
1381 seq_printf(seq, " UseWireCh: %3s\n", yesno(rssconf & USEWIRECH_F)); in rss_config_show()
1383 seq_puts(seq, "\n"); in rss_config_show()
1386 seq_printf(seq, "TP_RSS_CONFIG_OFD: %#x\n", rssconf); in rss_config_show()
1387 seq_printf(seq, " MaskSize: %3d\n", MASKSIZE_G(rssconf)); in rss_config_show()
1388 seq_printf(seq, " RRCplMapEn: %3s\n", yesno(rssconf & in rss_config_show()
1390 seq_printf(seq, " RRCplQueWidth: %3d\n", RRCPLQUEWIDTH_G(rssconf)); in rss_config_show()
1392 seq_puts(seq, "\n"); in rss_config_show()
1395 seq_printf(seq, "TP_RSS_CONFIG_SYN: %#x\n", rssconf); in rss_config_show()
1396 seq_printf(seq, " MaskSize: %3d\n", MASKSIZE_G(rssconf)); in rss_config_show()
1397 seq_printf(seq, " UseWireCh: %3s\n", yesno(rssconf & USEWIRECH_F)); in rss_config_show()
1399 seq_puts(seq, "\n"); in rss_config_show()
1402 seq_printf(seq, "TP_RSS_CONFIG_VRT: %#x\n", rssconf); in rss_config_show()
1404 seq_printf(seq, " KeyWrAddrX: %3d\n", in rss_config_show()
1406 seq_printf(seq, " KeyExtend: %3s\n", in rss_config_show()
1409 seq_printf(seq, " VfRdRg: %3s\n", yesno(rssconf & VFRDRG_F)); in rss_config_show()
1410 seq_printf(seq, " VfRdEn: %3s\n", yesno(rssconf & VFRDEN_F)); in rss_config_show()
1411 seq_printf(seq, " VfPerrEn: %3s\n", yesno(rssconf & VFPERREN_F)); in rss_config_show()
1412 seq_printf(seq, " KeyPerrEn: %3s\n", yesno(rssconf & KEYPERREN_F)); in rss_config_show()
1413 seq_printf(seq, " DisVfVlan: %3s\n", yesno(rssconf & in rss_config_show()
1415 seq_printf(seq, " EnUpSwt: %3s\n", yesno(rssconf & ENABLEUP0_F)); in rss_config_show()
1416 seq_printf(seq, " HashDelay: %3d\n", HASHDELAY_G(rssconf)); in rss_config_show()
1418 seq_printf(seq, " VfWrAddr: %3d\n", VFWRADDR_G(rssconf)); in rss_config_show()
1419 seq_printf(seq, " KeyMode: %s\n", keymode[KEYMODE_G(rssconf)]); in rss_config_show()
1420 seq_printf(seq, " VfWrEn: %3s\n", yesno(rssconf & VFWREN_F)); in rss_config_show()
1421 seq_printf(seq, " KeyWrEn: %3s\n", yesno(rssconf & KEYWREN_F)); in rss_config_show()
1422 seq_printf(seq, " KeyWrAddr: %3d\n", KEYWRADDR_G(rssconf)); in rss_config_show()
1424 seq_puts(seq, "\n"); in rss_config_show()
1427 seq_printf(seq, "TP_RSS_CONFIG_CNG: %#x\n", rssconf); in rss_config_show()
1428 seq_printf(seq, " ChnCount3: %3s\n", yesno(rssconf & CHNCOUNT3_F)); in rss_config_show()
1429 seq_printf(seq, " ChnCount2: %3s\n", yesno(rssconf & CHNCOUNT2_F)); in rss_config_show()
1430 seq_printf(seq, " ChnCount1: %3s\n", yesno(rssconf & CHNCOUNT1_F)); in rss_config_show()
1431 seq_printf(seq, " ChnCount0: %3s\n", yesno(rssconf & CHNCOUNT0_F)); in rss_config_show()
1432 seq_printf(seq, " ChnUndFlow3: %3s\n", yesno(rssconf & in rss_config_show()
1434 seq_printf(seq, " ChnUndFlow2: %3s\n", yesno(rssconf & in rss_config_show()
1436 seq_printf(seq, " ChnUndFlow1: %3s\n", yesno(rssconf & in rss_config_show()
1438 seq_printf(seq, " ChnUndFlow0: %3s\n", yesno(rssconf & in rss_config_show()
1440 seq_printf(seq, " RstChn3: %3s\n", yesno(rssconf & RSTCHN3_F)); in rss_config_show()
1441 seq_printf(seq, " RstChn2: %3s\n", yesno(rssconf & RSTCHN2_F)); in rss_config_show()
1442 seq_printf(seq, " RstChn1: %3s\n", yesno(rssconf & RSTCHN1_F)); in rss_config_show()
1443 seq_printf(seq, " RstChn0: %3s\n", yesno(rssconf & RSTCHN0_F)); in rss_config_show()
1444 seq_printf(seq, " UpdVld: %3s\n", yesno(rssconf & UPDVLD_F)); in rss_config_show()
1445 seq_printf(seq, " Xoff: %3s\n", yesno(rssconf & XOFF_F)); in rss_config_show()
1446 seq_printf(seq, " UpdChn3: %3s\n", yesno(rssconf & UPDCHN3_F)); in rss_config_show()
1447 seq_printf(seq, " UpdChn2: %3s\n", yesno(rssconf & UPDCHN2_F)); in rss_config_show()
1448 seq_printf(seq, " UpdChn1: %3s\n", yesno(rssconf & UPDCHN1_F)); in rss_config_show()
1449 seq_printf(seq, " UpdChn0: %3s\n", yesno(rssconf & UPDCHN0_F)); in rss_config_show()
1450 seq_printf(seq, " Queue: %3d\n", QUEUE_G(rssconf)); in rss_config_show()
1460 static int rss_key_show(struct seq_file *seq, void *v) in rss_key_show() argument
1464 t4_read_rss_key(seq->private, key); in rss_key_show()
1465 seq_printf(seq, "%08x%08x%08x%08x%08x%08x%08x%08x%08x%08x\n", in rss_key_show()
1523 static int rss_pf_config_show(struct seq_file *seq, void *v, int idx) in rss_pf_config_show() argument
1529 pfconf = seq->private + offsetof(struct seq_tab, data); in rss_pf_config_show()
1530 seq_printf(seq, "PF Map Index Size = %d\n\n", in rss_pf_config_show()
1533 seq_puts(seq, " RSS PF VF Hash Tuple Enable Default\n"); in rss_pf_config_show()
1534 seq_puts(seq, " Enable IPF Mask Mask IPv6 IPv4 UDP Queue\n"); in rss_pf_config_show()
1535 seq_puts(seq, " PF Map Chn Prt Map Size Size Four Two Four Two Four Ch1 Ch0\n"); in rss_pf_config_show()
1543 seq_printf(seq, "%3d %3s %3s %3s %3d %3d %3d %3s %3s %3s %3s %3s %3d %3d\n", in rss_pf_config_show()
1604 static int rss_vf_config_show(struct seq_file *seq, void *v, int idx) in rss_vf_config_show() argument
1607 seq_puts(seq, " RSS Hash Tuple Enable\n"); in rss_vf_config_show()
1608 seq_puts(seq, " Enable IVF Dis Enb IPv6 IPv4 UDP Def Secret Key\n"); in rss_vf_config_show()
1609 seq_puts(seq, " VF Chn Prt Map VLAN uP Four Two Four Two Four Que Idx Hash\n"); in rss_vf_config_show()
1613 seq_printf(seq, "%3d %3s %3s %3d %3s %3s %3s %3s %3s %3s %3s %4d %3d %#10x\n", in rss_vf_config_show()
1681 static int sge_qinfo_show(struct seq_file *seq, void *v) in sge_qinfo_show() argument
1683 struct adapter *adap = seq->private; in sge_qinfo_show()
1697 seq_putc(seq, '\n'); in sge_qinfo_show()
1701 seq_printf(seq, "%-12s", s); \ in sge_qinfo_show()
1703 seq_printf(seq, " %16" fmt_spec, v); \ in sge_qinfo_show()
1704 seq_putc(seq, '\n'); \ in sge_qinfo_show()
1822 seq_printf(seq, "%-12s %16s\n", "QType:", "FW event queue"); in sge_qinfo_show()
1823 seq_printf(seq, "%-12s %16u\n", "RspQ ID:", evtq->abs_id); in sge_qinfo_show()
1824 seq_printf(seq, "%-12s %16u\n", "RspQ size:", evtq->size); in sge_qinfo_show()
1825 seq_printf(seq, "%-12s %16u\n", "RspQE size:", evtq->iqe_len); in sge_qinfo_show()
1826 seq_printf(seq, "%-12s %16u\n", "RspQ CIDX:", evtq->cidx); in sge_qinfo_show()
1827 seq_printf(seq, "%-12s %16u\n", "RspQ Gen:", evtq->gen); in sge_qinfo_show()
1828 seq_printf(seq, "%-12s %16u\n", "Intr delay:", in sge_qinfo_show()
1830 seq_printf(seq, "%-12s %16u\n", "Intr pktcnt:", in sge_qinfo_show()
1849 static void *sge_queue_start(struct seq_file *seq, loff_t *pos) in sge_queue_start() argument
1851 int entries = sge_queue_entries(seq->private); in sge_queue_start()
1856 static void sge_queue_stop(struct seq_file *seq, void *v) in sge_queue_stop() argument
1860 static void *sge_queue_next(struct seq_file *seq, void *v, loff_t *pos) in sge_queue_next() argument
1862 int entries = sge_queue_entries(seq->private); in sge_queue_next()
1880 struct seq_file *seq = file->private_data; in sge_qinfo_open() local
1882 seq->private = inode->i_private; in sge_qinfo_open()