Lines Matching +full:x +full:- +full:mask

1 // SPDX-License-Identifier: GPL-2.0
15 while (i--) in fbnic_dbg_desc_break()
16 seq_putc(s, '-'); in fbnic_dbg_desc_break()
23 struct fbnic_dev *fbd = s->private; in fbnic_dbg_mac_addr_show()
28 snprintf(hdr, sizeof(hdr), "%3s %s %-17s %s\n", in fbnic_dbg_mac_addr_show()
29 "Idx", "S", "TCAM Bitmap", "Addr/Mask"); in fbnic_dbg_mac_addr_show()
34 struct fbnic_mac_addr *mac_addr = &fbd->mac_addr[i]; in fbnic_dbg_mac_addr_show()
37 i, mac_addr->state, mac_addr->act_tcam, in fbnic_dbg_mac_addr_show()
38 mac_addr->value.addr8); in fbnic_dbg_mac_addr_show()
40 mac_addr->mask.addr8); in fbnic_dbg_mac_addr_show()
49 struct fbnic_dev *fbd = s->private; in fbnic_dbg_tce_tcam_show()
54 snprintf(hdr, sizeof(hdr), "%3s %s %-17s %s\n", in fbnic_dbg_tce_tcam_show()
55 "Idx", "S", "TCAM Bitmap", "Addr/Mask"); in fbnic_dbg_tce_tcam_show()
59 for (i = 0; i < ARRAY_SIZE(fbd->mac_addr); i++) { in fbnic_dbg_tce_tcam_show()
60 struct fbnic_mac_addr *mac_addr = &fbd->mac_addr[i]; in fbnic_dbg_tce_tcam_show()
63 if (!test_bit(FBNIC_MAC_ADDR_T_BMC, mac_addr->act_tcam)) in fbnic_dbg_tce_tcam_show()
70 tcam_idx, mac_addr->state, mac_addr->act_tcam, in fbnic_dbg_tce_tcam_show()
71 mac_addr->value.addr8); in fbnic_dbg_tce_tcam_show()
73 mac_addr->mask.addr8); in fbnic_dbg_tce_tcam_show()
83 struct fbnic_dev *fbd = s->private; in fbnic_dbg_act_tcam_show()
88 snprintf(hdr, sizeof(hdr), "%3s %s %-55s %-4s %s\n", in fbnic_dbg_act_tcam_show()
89 "Idx", "S", "Value/Mask", "RSS", "Dest"); in fbnic_dbg_act_tcam_show()
94 struct fbnic_act_tcam *act_tcam = &fbd->act_tcam[i]; in fbnic_dbg_act_tcam_show()
96 seq_printf(s, "%02d %d %04x %04x %04x %04x %04x %04x %04x %04x %04x %04x %04x %04x %08x\n", in fbnic_dbg_act_tcam_show()
97 i, act_tcam->state, in fbnic_dbg_act_tcam_show()
98 act_tcam->value.tcam[10], act_tcam->value.tcam[9], in fbnic_dbg_act_tcam_show()
99 act_tcam->value.tcam[8], act_tcam->value.tcam[7], in fbnic_dbg_act_tcam_show()
100 act_tcam->value.tcam[6], act_tcam->value.tcam[5], in fbnic_dbg_act_tcam_show()
101 act_tcam->value.tcam[4], act_tcam->value.tcam[3], in fbnic_dbg_act_tcam_show()
102 act_tcam->value.tcam[2], act_tcam->value.tcam[1], in fbnic_dbg_act_tcam_show()
103 act_tcam->value.tcam[0], act_tcam->rss_en_mask, in fbnic_dbg_act_tcam_show()
104 act_tcam->dest); in fbnic_dbg_act_tcam_show()
105 seq_printf(s, " %04x %04x %04x %04x %04x %04x %04x %04x %04x %04x %04x\n", in fbnic_dbg_act_tcam_show()
106 act_tcam->mask.tcam[10], act_tcam->mask.tcam[9], in fbnic_dbg_act_tcam_show()
107 act_tcam->mask.tcam[8], act_tcam->mask.tcam[7], in fbnic_dbg_act_tcam_show()
108 act_tcam->mask.tcam[6], act_tcam->mask.tcam[5], in fbnic_dbg_act_tcam_show()
109 act_tcam->mask.tcam[4], act_tcam->mask.tcam[3], in fbnic_dbg_act_tcam_show()
110 act_tcam->mask.tcam[2], act_tcam->mask.tcam[1], in fbnic_dbg_act_tcam_show()
111 act_tcam->mask.tcam[0]); in fbnic_dbg_act_tcam_show()
125 snprintf(hdr, sizeof(hdr), "%3s %s %-17s %s %s\n", in fbnic_dbg_ip_addr_show()
126 "Idx", "S", "TCAM Bitmap", "V", "Addr/Mask"); in fbnic_dbg_ip_addr_show()
132 i, ip_addr->state, ip_addr->act_tcam, in fbnic_dbg_ip_addr_show()
133 ip_addr->version, &ip_addr->value); in fbnic_dbg_ip_addr_show()
135 &ip_addr->mask); in fbnic_dbg_ip_addr_show()
143 struct fbnic_dev *fbd = s->private; in fbnic_dbg_ip_src_show()
145 return fbnic_dbg_ip_addr_show(s, fbd->ip_src); in fbnic_dbg_ip_src_show()
151 struct fbnic_dev *fbd = s->private; in fbnic_dbg_ip_dst_show()
153 return fbnic_dbg_ip_addr_show(s, fbd->ip_dst); in fbnic_dbg_ip_dst_show()
159 struct fbnic_dev *fbd = s->private; in fbnic_dbg_ipo_src_show()
161 return fbnic_dbg_ip_addr_show(s, fbd->ipo_src); in fbnic_dbg_ipo_src_show()
167 struct fbnic_dev *fbd = s->private; in fbnic_dbg_ipo_dst_show()
169 return fbnic_dbg_ip_addr_show(s, fbd->ipo_dst); in fbnic_dbg_ipo_dst_show()
175 struct fbnic_dev *fbd = s->private; in fbnic_dbg_fw_log_show()
180 return -ENXIO; in fbnic_dbg_fw_log_show()
182 spin_lock_irqsave(&fbd->fw_log.lock, flags); in fbnic_dbg_fw_log_show()
184 list_for_each_entry_reverse(entry, &fbd->fw_log.entries, list) { in fbnic_dbg_fw_log_show()
185 seq_printf(s, FBNIC_FW_LOG_FMT, entry->index, in fbnic_dbg_fw_log_show()
186 (entry->timestamp / (MSEC_PER_SEC * 60 * 60 * 24)), in fbnic_dbg_fw_log_show()
187 (entry->timestamp / (MSEC_PER_SEC * 60 * 60)) % 24, in fbnic_dbg_fw_log_show()
188 ((entry->timestamp / (MSEC_PER_SEC * 60) % 60)), in fbnic_dbg_fw_log_show()
189 ((entry->timestamp / MSEC_PER_SEC) % 60), in fbnic_dbg_fw_log_show()
190 (entry->timestamp % MSEC_PER_SEC), in fbnic_dbg_fw_log_show()
191 entry->msg); in fbnic_dbg_fw_log_show()
194 spin_unlock_irqrestore(&fbd->fw_log.lock, flags); in fbnic_dbg_fw_log_show()
202 struct fbnic_dev *fbd = s->private; in fbnic_dbg_pcie_stats_show()
207 seq_printf(s, "ob_rd_tlp: %llu\n", fbd->hw_stats.pcie.ob_rd_tlp.value); in fbnic_dbg_pcie_stats_show()
209 fbd->hw_stats.pcie.ob_rd_dword.value); in fbnic_dbg_pcie_stats_show()
210 seq_printf(s, "ob_wr_tlp: %llu\n", fbd->hw_stats.pcie.ob_wr_tlp.value); in fbnic_dbg_pcie_stats_show()
212 fbd->hw_stats.pcie.ob_wr_dword.value); in fbnic_dbg_pcie_stats_show()
214 fbd->hw_stats.pcie.ob_cpl_tlp.value); in fbnic_dbg_pcie_stats_show()
216 fbd->hw_stats.pcie.ob_cpl_dword.value); in fbnic_dbg_pcie_stats_show()
218 fbd->hw_stats.pcie.ob_rd_no_tag.value); in fbnic_dbg_pcie_stats_show()
220 fbd->hw_stats.pcie.ob_rd_no_cpl_cred.value); in fbnic_dbg_pcie_stats_show()
222 fbd->hw_stats.pcie.ob_rd_no_np_cred.value); in fbnic_dbg_pcie_stats_show()
232 struct pci_dev *pdev = to_pci_dev(fbd->dev); in fbnic_dbg_fbd_init()
235 fbd->dbg_fbd = debugfs_create_dir(name, fbnic_dbg_root); in fbnic_dbg_fbd_init()
236 debugfs_create_file("pcie_stats", 0400, fbd->dbg_fbd, fbd, in fbnic_dbg_fbd_init()
238 debugfs_create_file("mac_addr", 0400, fbd->dbg_fbd, fbd, in fbnic_dbg_fbd_init()
240 debugfs_create_file("tce_tcam", 0400, fbd->dbg_fbd, fbd, in fbnic_dbg_fbd_init()
242 debugfs_create_file("act_tcam", 0400, fbd->dbg_fbd, fbd, in fbnic_dbg_fbd_init()
244 debugfs_create_file("ip_src", 0400, fbd->dbg_fbd, fbd, in fbnic_dbg_fbd_init()
246 debugfs_create_file("ip_dst", 0400, fbd->dbg_fbd, fbd, in fbnic_dbg_fbd_init()
248 debugfs_create_file("ipo_src", 0400, fbd->dbg_fbd, fbd, in fbnic_dbg_fbd_init()
250 debugfs_create_file("ipo_dst", 0400, fbd->dbg_fbd, fbd, in fbnic_dbg_fbd_init()
252 debugfs_create_file("fw_log", 0400, fbd->dbg_fbd, fbd, in fbnic_dbg_fbd_init()
258 debugfs_remove_recursive(fbd->dbg_fbd); in fbnic_dbg_fbd_exit()
259 fbd->dbg_fbd = NULL; in fbnic_dbg_fbd_exit()