File Index
Files and directories
Sign in
FILE

bng_debugfs.c

File preview with syntax highlighting.

linux-6.19.14/drivers/infiniband/hw/bng_re/bng_debugfs.c C
 1// SPDX-License-Identifier: GPL-2.0
 2// Copyright (c) 2025 Broadcom.
 3#include <linux/debugfs.h>
 4#include <linux/pci.h>
 5
 6#include <rdma/ib_verbs.h>
 7
 8#include "bng_res.h"
 9#include "bng_fw.h"
10#include "bnge.h"
11#include "bnge_auxr.h"
12#include "bng_re.h"
13#include "bng_debugfs.h"
14
15static struct dentry *bng_re_debugfs_root;
16
17void bng_re_debugfs_add_pdev(struct bng_re_dev *rdev)
18{
19	struct pci_dev *pdev = rdev->aux_dev->pdev;
20
21	rdev->dbg_root =
22		debugfs_create_dir(dev_name(&pdev->dev), bng_re_debugfs_root);
23}
24
25void bng_re_debugfs_rem_pdev(struct bng_re_dev *rdev)
26{
27	debugfs_remove_recursive(rdev->dbg_root);
28	rdev->dbg_root = NULL;
29}
30
31void bng_re_register_debugfs(void)
32{
33	bng_re_debugfs_root = debugfs_create_dir("bng_re", NULL);
34}
35
36void bng_re_unregister_debugfs(void)
37{
38	debugfs_remove(bng_re_debugfs_root);
39}
~/ Read-only file preview.