Lines Matching refs:fbd
23 struct fbnic_dev *fbd = s->private; in fbnic_dbg_mac_addr_show() local
34 struct fbnic_mac_addr *mac_addr = &fbd->mac_addr[i]; in fbnic_dbg_mac_addr_show()
49 struct fbnic_dev *fbd = s->private; in fbnic_dbg_tce_tcam_show() local
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()
83 struct fbnic_dev *fbd = s->private; in fbnic_dbg_act_tcam_show() local
94 struct fbnic_act_tcam *act_tcam = &fbd->act_tcam[i]; in fbnic_dbg_act_tcam_show()
143 struct fbnic_dev *fbd = s->private; in fbnic_dbg_ip_src_show() local
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() local
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() local
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() local
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() local
179 if (!fbnic_fw_log_ready(fbd)) 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()
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() local
205 fbnic_get_hw_stats(fbd); 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()
230 void fbnic_dbg_fbd_init(struct fbnic_dev *fbd) in fbnic_dbg_fbd_init() argument
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()
256 void fbnic_dbg_fbd_exit(struct fbnic_dev *fbd) in fbnic_dbg_fbd_exit() argument
258 debugfs_remove_recursive(fbd->dbg_fbd); in fbnic_dbg_fbd_exit()
259 fbd->dbg_fbd = NULL; in fbnic_dbg_fbd_exit()