Lines Matching defs:fbd

23 	struct fbnic_dev *fbd = s->private;
34 struct fbnic_mac_addr *mac_addr = &fbd->mac_addr[i];
49 struct fbnic_dev *fbd = s->private;
59 for (i = 0; i < ARRAY_SIZE(fbd->mac_addr); i++) {
60 struct fbnic_mac_addr *mac_addr = &fbd->mac_addr[i];
83 struct fbnic_dev *fbd = s->private;
94 struct fbnic_act_tcam *act_tcam = &fbd->act_tcam[i];
143 struct fbnic_dev *fbd = s->private;
145 return fbnic_dbg_ip_addr_show(s, fbd->ip_src);
151 struct fbnic_dev *fbd = s->private;
153 return fbnic_dbg_ip_addr_show(s, fbd->ip_dst);
159 struct fbnic_dev *fbd = s->private;
161 return fbnic_dbg_ip_addr_show(s, fbd->ipo_src);
167 struct fbnic_dev *fbd = s->private;
169 return fbnic_dbg_ip_addr_show(s, fbd->ipo_dst);
175 struct fbnic_dev *fbd = s->private;
179 if (!fbnic_fw_log_ready(fbd))
182 spin_lock_irqsave(&fbd->fw_log.lock, flags);
184 list_for_each_entry_reverse(entry, &fbd->fw_log.entries, list) {
194 spin_unlock_irqrestore(&fbd->fw_log.lock, flags);
202 struct fbnic_dev *fbd = s->private;
205 fbnic_get_hw_stats(fbd);
207 seq_printf(s, "ob_rd_tlp: %llu\n", fbd->hw_stats.pcie.ob_rd_tlp.value);
209 fbd->hw_stats.pcie.ob_rd_dword.value);
210 seq_printf(s, "ob_wr_tlp: %llu\n", fbd->hw_stats.pcie.ob_wr_tlp.value);
212 fbd->hw_stats.pcie.ob_wr_dword.value);
214 fbd->hw_stats.pcie.ob_cpl_tlp.value);
216 fbd->hw_stats.pcie.ob_cpl_dword.value);
218 fbd->hw_stats.pcie.ob_rd_no_tag.value);
220 fbd->hw_stats.pcie.ob_rd_no_cpl_cred.value);
222 fbd->hw_stats.pcie.ob_rd_no_np_cred.value);
230 void fbnic_dbg_fbd_init(struct fbnic_dev *fbd)
232 struct pci_dev *pdev = to_pci_dev(fbd->dev);
235 fbd->dbg_fbd = debugfs_create_dir(name, fbnic_dbg_root);
236 debugfs_create_file("pcie_stats", 0400, fbd->dbg_fbd, fbd,
238 debugfs_create_file("mac_addr", 0400, fbd->dbg_fbd, fbd,
240 debugfs_create_file("tce_tcam", 0400, fbd->dbg_fbd, fbd,
242 debugfs_create_file("act_tcam", 0400, fbd->dbg_fbd, fbd,
244 debugfs_create_file("ip_src", 0400, fbd->dbg_fbd, fbd,
246 debugfs_create_file("ip_dst", 0400, fbd->dbg_fbd, fbd,
248 debugfs_create_file("ipo_src", 0400, fbd->dbg_fbd, fbd,
250 debugfs_create_file("ipo_dst", 0400, fbd->dbg_fbd, fbd,
252 debugfs_create_file("fw_log", 0400, fbd->dbg_fbd, fbd,
256 void fbnic_dbg_fbd_exit(struct fbnic_dev *fbd)
258 debugfs_remove_recursive(fbd->dbg_fbd);
259 fbd->dbg_fbd = NULL;