Home
last modified time | relevance | path

Searched refs:debugfs (Results 1 – 25 of 528) sorted by relevance

12345678910>>...22

/linux/drivers/usb/typec/ucsi/
H A Ddebugfs.c27 memset(&ucsi->debugfs->response, 0, sizeof(ucsi->debugfs->response)); in ucsi_cmd()
28 ucsi->debugfs->status = 0; in ucsi_cmd()
45 &ucsi->debugfs->response, in ucsi_cmd()
46 sizeof(ucsi->debugfs->response)); in ucsi_cmd()
53 ucsi->debugfs->status = ret; in ucsi_cmd()
65 if (ucsi->debugfs->status) in ucsi_resp_show()
66 return ucsi->debugfs->status; in ucsi_resp_show()
69 ucsi->debugfs->response.low); in ucsi_resp_show()
76 ucsi->debugfs = kzalloc(sizeof(*ucsi->debugfs), GFP_KERNEL); in ucsi_debugfs_register()
77 if (!ucsi->debugfs) in ucsi_debugfs_register()
[all …]
/linux/Documentation/translations/zh_CN/filesystems/
H A Ddebugfs.rst5 :Original: Documentation/filesystems/debugfs.rst
26 从理论上讲,debugfs导出文件的时候没有任何约束。但是[1]实际情况并不总是那么
27 简单。即使是debugfs接口,也最好根据需要进行设计,并尽量保持接口不变。
38 使用debugfs的代码应包含<linux/debugfs.h>。然后,首先是创建至少一个目录来保存
39 一组debugfs文件::
49debugfs目录中创建文件的最通用方法是::
110 布尔值可以通过以下方式放置在debugfs中::
119 同样,atomic_t类型的值也可以放置在debugfs中::
167 如果要在debugfs中转储u32数组,可以使用以下函数创建文件::
202 所有debugfs用户必须考虑的一件事是:
[all …]
/linux/Documentation/translations/zh_TW/filesystems/
H A Ddebugfs.rst5 :Original: Documentation/filesystems/debugfs.rst
27 從理論上講,debugfs導出文件的時候沒有任何約束。但是[1]實際情況並不總是那麼
28 簡單。即使是debugfs接口,也最好根據需要進行設計,並儘量保持接口不變。
39 使用debugfs的代碼應包含<linux/debugfs.h>。然後,首先是創建至少一個目錄來保存
40 一組debugfs文件::
50debugfs目錄中創建文件的最通用方法是::
111 布爾值可以通過以下方式放置在debugfs中::
120 同樣,atomic_t類型的值也可以放置在debugfs中::
168 如果要在debugfs中轉儲u32數組,可以使用以下函數創建文件::
203 所有debugfs用戶必須考慮的一件事是:
[all …]
/linux/tools/testing/selftests/drivers/net/virtio_net/
H A Dvirtio_net_common.sh62 local debugfs=`virtio_debugfs_get $dev`
64 if [ ! -f "$debugfs/device_features" ] ||
65 [ ! -f "$debugfs/filter_feature_add" ] ||
66 [ ! -f "$debugfs/filter_feature_del" ] ||
67 [ ! -f "$debugfs/filter_features" ] ||
68 [ ! -f "$debugfs/filter_features_clear" ]; then
78 local debugfs=`virtio_debugfs_get $dev`
87 local debugfs=`virtio_debugfs_get $dev`
89 echo "1" > $debugfs/filter_features_clear
96 local debugfs=`virtio_debugfs_get $dev`
[all …]
/linux/net/bluetooth/
H A Dhci_debugfs.c317 debugfs_create_file("features", 0444, hdev->debugfs, hdev, in hci_debugfs_create_common()
319 debugfs_create_u16("manufacturer", 0444, hdev->debugfs, in hci_debugfs_create_common()
323 debugfs_create_u8("hardware_error", 0444, hdev->debugfs, in hci_debugfs_create_common()
348 debugfs_create_file("sc_only_mode", 0444, hdev->debugfs, in hci_debugfs_create_common()
352 debugfs_create_file("hardware_info", 0444, hdev->debugfs, in hci_debugfs_create_common()
661 debugfs_create_file("idle_timeout", 0644, hdev->debugfs, in hci_debugfs_create_bredr()
1215 hdev->debugfs, hdev, in hci_debugfs_create_le()
1256 hdev->debugfs, hdev, in hci_debugfs_create_le()
1259 hdev->debugfs, hdev, in hci_debugfs_create_le()
1268 if (IS_ERR_OR_NULL(hdev->debugfs) || conn->debugfs) in hci_debugfs_create_conn()
[all …]
/linux/net/mac80211/
H A Ddebugfs_key.c333 if (!key->local->debugfs.keys) in ieee80211_debugfs_key_add()
337 key->debugfs.cnt = keycount; in ieee80211_debugfs_key_add()
340 key->local->debugfs.keys); in ieee80211_debugfs_key_add()
346 key->debugfs.stalink = in ieee80211_debugfs_key_add()
370 key->debugfs.dir = NULL; in ieee80211_debugfs_key_remove()
390 sdata->debugfs.default_unicast_key = in ieee80211_debugfs_key_update_default()
402 sdata->debugfs.default_multicast_key = in ieee80211_debugfs_key_update_default()
420 sdata->debugfs.default_mgmt_key = in ieee80211_debugfs_key_add_mgmt_default()
449 sdata->debugfs.default_beacon_key = in ieee80211_debugfs_key_add_beacon_default()
470 debugfs_remove(key->debugfs.stalink); in ieee80211_debugfs_key_sta_del()
[all …]
/linux/drivers/memory/tegra/
H A Dtegra186-emc.c33 } debugfs; member
97 *rate = emc->debugfs.min_rate; in tegra186_emc_debug_min_rate_get()
114 emc->debugfs.min_rate = rate; in tegra186_emc_debug_min_rate_set()
127 *rate = emc->debugfs.max_rate; in tegra186_emc_debug_max_rate_get()
144 emc->debugfs.max_rate = rate; in tegra186_emc_debug_max_rate_set()
177 emc->debugfs.min_rate = ULONG_MAX; in tegra186_emc_get_emc_dvfs_latency()
178 emc->debugfs.max_rate = 0; in tegra186_emc_get_emc_dvfs_latency()
193 emc->debugfs.min_rate = emc->dvfs[i].rate; in tegra186_emc_get_emc_dvfs_latency()
196 emc->debugfs.max_rate = emc->dvfs[i].rate; in tegra186_emc_get_emc_dvfs_latency()
202 err = clk_set_rate_range(emc->clk, emc->debugfs.min_rate, emc->debugfs.max_rate); in tegra186_emc_get_emc_dvfs_latency()
[all …]
H A Dtegra20-emc.c213 } debugfs; member
847 *rate = emc->debugfs.min_rate; in tegra_emc_debug_min_rate_get()
864 emc->debugfs.min_rate = rate; in tegra_emc_debug_min_rate_set()
877 *rate = emc->debugfs.max_rate; in tegra_emc_debug_max_rate_get()
894 emc->debugfs.max_rate = rate; in tegra_emc_debug_max_rate_set()
909 emc->debugfs.min_rate = ULONG_MAX; in tegra_emc_debugfs_init()
910 emc->debugfs.max_rate = 0; in tegra_emc_debugfs_init()
914 emc->debugfs.min_rate = emc->timings[i].rate; in tegra_emc_debugfs_init()
922 emc->debugfs.max_rate = emc->debugfs.min_rate; in tegra_emc_debugfs_init()
926 emc->debugfs.max_rate); in tegra_emc_debugfs_init()
[all …]
/linux/drivers/gpu/drm/nouveau/
H A Dnouveau_debugfs.c75 struct nouveau_debugfs *debugfs = nouveau_debugfs(drm); in nouveau_debugfs_pstate_get() local
80 if (!debugfs) in nouveau_debugfs_pstate_get()
83 ctrl = &debugfs->ctrl; in nouveau_debugfs_pstate_get()
152 if (!debugfs) in nouveau_debugfs_pstate_set()
298 drm->debugfs = kzalloc(sizeof(*drm->debugfs), GFP_KERNEL); in nouveau_debugfs_init()
299 if (!drm->debugfs) in nouveau_debugfs_init()
304 &drm->debugfs->ctrl); in nouveau_debugfs_init()
310 if (drm->debugfs && drm->debugfs->ctrl.priv) in nouveau_debugfs_fini()
311 nvif_object_dtor(&drm->debugfs->ctrl); in nouveau_debugfs_fini()
313 kfree(drm->debugfs); in nouveau_debugfs_fini()
[all …]
/linux/arch/sh/mm/
H A DMakefile24 debugfs-y := asids-debugfs.o
26 debugfs-$(CONFIG_CPU_SH4) += cache-debugfs.o
30 debugfs-$(CONFIG_CPU_SH4) += tlb-debugfs.o
37 obj-$(CONFIG_DEBUG_FS) += $(debugfs-y)
/linux/Documentation/filesystems/
H A Ddebugfs.rst13 debugfs has no rules at all. Developers can put any information they want
14 there. The debugfs filesystem is also intended to not serve as a stable
22 mount -t debugfs none /sys/kernel/debug
25 The debugfs root directory is accessible only to the root user by
29 Note that the debugfs API is exported GPL-only to modules.
31 Code using debugfs should include <linux/debugfs.h>. Then, the first order
33 debugfs files::
39 created in the debugfs root. On success, the return value is a struct
59 ERR_PTR(-ERROR) on error, or ERR_PTR(-ENODEV) if debugfs support is
121 Boolean values can be placed in debugfs with::
[all …]
/linux/drivers/vdpa/mlx5/net/
H A Ddebug.c20 if (ndev->debugfs) in mlx5_vdpa_remove_tirn()
42 if (ndev->debugfs) in mlx5_vdpa_remove_rx_flow_table()
133 if (node->dent && ndev->debugfs) in mlx5_vdpa_remove_rx_counters()
143 ndev->debugfs = debugfs_create_dir(dev_name(&ndev->mvdev.vdev.dev), in mlx5_vdpa_add_debugfs()
145 if (!IS_ERR(ndev->debugfs)) in mlx5_vdpa_add_debugfs()
146 ndev->rx_dent = debugfs_create_dir("rx", ndev->debugfs); in mlx5_vdpa_add_debugfs()
151 debugfs_remove_recursive(ndev->debugfs); in mlx5_vdpa_remove_debugfs()
152 ndev->debugfs = NULL; in mlx5_vdpa_remove_debugfs()
/linux/Documentation/translations/zh_TW/admin-guide/mm/damon/
H A Dusage.rst31 - *debugfs interface.*
338 debugfs接口
348 ``rm_contexts`` under its debugfs directory, ``<debugfs>/damon/``.
358 # cd <debugfs>/damon
372 # cd <debugfs>/damon
380 # cd <debugfs>/damon
408 # cd <debugfs>/damon
513 # cd <debugfs>/damon
529 # cd <debugfs>/damon
545 # cd <debugfs>/damon
[all …]
/linux/Documentation/translations/zh_CN/admin-guide/mm/damon/
H A Dusage.rst31 - *debugfs interface.*
338 debugfs接口
348 ``rm_contexts`` under its debugfs directory, ``<debugfs>/damon/``.
358 # cd <debugfs>/damon
372 # cd <debugfs>/damon
380 # cd <debugfs>/damon
408 # cd <debugfs>/damon
513 # cd <debugfs>/damon
529 # cd <debugfs>/damon
545 # cd <debugfs>/damon
[all …]
/linux/drivers/soundwire/
H A Dintel_ace2x_debugfs.c124 struct dentry *root = sdw->cdns.bus.debugfs; in intel_ace2x_debugfs_init()
129 sdw->debugfs = debugfs_create_dir("intel-sdw", root); in intel_ace2x_debugfs_init()
131 debugfs_create_file("intel-registers", 0400, sdw->debugfs, sdw, in intel_ace2x_debugfs_init()
134 debugfs_create_file("intel-m-datamode", 0200, sdw->debugfs, sdw, in intel_ace2x_debugfs_init()
137 debugfs_create_file("intel-s-datamode", 0200, sdw->debugfs, sdw, in intel_ace2x_debugfs_init()
140 sdw_cdns_debugfs_init(&sdw->cdns, sdw->debugfs); in intel_ace2x_debugfs_init()
145 debugfs_remove_recursive(sdw->debugfs); in intel_ace2x_debugfs_exit()
/linux/Documentation/gpu/amdgpu/
H A Dras.rst6 debugfs (for error injection).
8 RAS debugfs/sysfs Control and Error Injection Interfaces
12 :doc: AMDGPU RAS debugfs control interface
26 RAS EEPROM debugfs Interface
30 :doc: AMDGPU RAS debugfs EEPROM table reset interface
48 The test verifies the RAS feature enabled status and makes sure the necessary sysfs and debugfs fil…
/linux/Documentation/fault-injection/
H A Dprovoke-crashes.rst12 support via debugfs.
16 inserting the module, or through the debugfs interface.
36 These are numerous, and best queried directly from debugfs. Some
46 You can also induce failures by mounting debugfs and writing the type to
47 <debugfs>/provoke-crash/<crashpoint>. E.g.::
49 mount -t debugfs debugfs /sys/kernel/debug
/linux/Documentation/dev-tools/kunit/
H A Drun_manual.rst52 debugfs chapter
55 KUnit can be accessed from userspace via the debugfs filesystem (See more
56 information about debugfs at Documentation/filesystems/debugfs.rst).
58 If ``CONFIG_KUNIT_DEBUGFS`` is enabled, the KUnit debugfs filesystem is
65 You can use debugfs to retrieve KUnit test results. The test results are
66 accessible from the debugfs filesystem in the following read-only file:
78 You can use the debugfs filesystem to trigger built-in tests to run after
84 echo "any string" > /sys/kernel/debugfs/kunit/<test_suite>/run
/linux/drivers/misc/cxl/
H A Ddebugfs.c67 adapter->debugfs = dir; in cxl_debugfs_adapter_add()
77 debugfs_remove_recursive(adapter->debugfs); in cxl_debugfs_adapter_remove()
101 if (!afu->adapter->debugfs) in cxl_debugfs_afu_add()
105 dir = debugfs_create_dir(buf, afu->adapter->debugfs); in cxl_debugfs_afu_add()
106 afu->debugfs = dir; in cxl_debugfs_afu_add()
120 debugfs_remove_recursive(afu->debugfs); in cxl_debugfs_afu_remove()
/linux/drivers/hwspinlock/
H A Dsun6i_hwspinlock.c33 struct dentry *debugfs; member
51 priv->debugfs = debugfs_create_dir(DRIVER_NAME, NULL); in sun6i_hwspinlock_debugfs_init()
52 debugfs_create_file("supported", 0444, priv->debugfs, priv, &hwlocks_supported_fops); in sun6i_hwspinlock_debugfs_init()
86 debugfs_remove_recursive(priv->debugfs); in sun6i_hwspinlock_disable()
171 if (IS_ERR(priv->debugfs)) in sun6i_hwspinlock_probe()
172 priv->debugfs = NULL; in sun6i_hwspinlock_probe()
/linux/drivers/net/wireless/ti/wl1251/
H A Ddebugfs.c46 debugfs_remove(wl->debugfs.name); \
47 wl->debugfs.name = NULL; \
73 DEBUGFS_ADD(sub## _ ##name, wl->debugfs.fw_statistics)
431 DEBUGFS_ADD(tx_queue_len, wl->debugfs.rootdir); in wl1251_debugfs_add_files()
432 DEBUGFS_ADD(tx_queue_status, wl->debugfs.rootdir); in wl1251_debugfs_add_files()
433 DEBUGFS_ADD(retry_count, wl->debugfs.rootdir); in wl1251_debugfs_add_files()
454 wl->debugfs.rootdir); in wl1251_debugfs_init()
470 debugfs_remove(wl->debugfs.fw_statistics); in wl1251_debugfs_exit()
471 wl->debugfs.fw_statistics = NULL; in wl1251_debugfs_exit()
473 debugfs_remove(wl->debugfs.rootdir); in wl1251_debugfs_exit()
[all …]
/linux/drivers/media/platform/amphion/
H A Dvpu_dbg.c430 if (!vpu->debugfs) in vpu_inst_create_dbgfs_file()
433 if (inst->debugfs) in vpu_inst_create_dbgfs_file()
439 vpu->debugfs, in vpu_inst_create_dbgfs_file()
451 debugfs_remove(inst->debugfs); in vpu_inst_remove_dbgfs_file()
452 inst->debugfs = NULL; in vpu_inst_remove_dbgfs_file()
466 if (!vpu->debugfs) in vpu_core_create_dbgfs_file()
469 if (!core->debugfs) { in vpu_core_create_dbgfs_file()
473 vpu->debugfs, in vpu_core_create_dbgfs_file()
481 vpu->debugfs, in vpu_core_create_dbgfs_file()
493 debugfs_remove(core->debugfs); in vpu_core_remove_dbgfs_file()
[all …]
/linux/drivers/gpu/drm/i915/gvt/
H A Ddebugfs.c179 vgpu->debugfs = debugfs_create_dir(name, vgpu->gvt->debugfs_root); in intel_gvt_debugfs_add_vgpu()
181 debugfs_create_file("mmio_diff", 0444, vgpu->debugfs, vgpu, in intel_gvt_debugfs_add_vgpu()
183 debugfs_create_file_unsafe("scan_nonprivbb", 0644, vgpu->debugfs, vgpu, in intel_gvt_debugfs_add_vgpu()
185 debugfs_create_file_unsafe("status", 0644, vgpu->debugfs, vgpu, in intel_gvt_debugfs_add_vgpu()
199 debugfs_remove_recursive(vgpu->debugfs); in intel_gvt_debugfs_remove_vgpu()
200 vgpu->debugfs = NULL; in intel_gvt_debugfs_remove_vgpu()
/linux/Documentation/admin-guide/mm/
H A Dcma_debugfs.rst5 The CMA debugfs interface is useful to retrieve basic information out of the
8 Each CMA area represents a directory under <debugfs>/cma/, represented by
11 <debugfs>/cma/<cma_name>
21 echo 5 > <debugfs>/cma/<cma_name>/alloc
/linux/drivers/hwmon/
H A Dsg2042-mcu.c53 struct dentry *debugfs; member
298 mcu->debugfs = debugfs_create_dir(dev_name(dev), sgmcu_debugfs); in sg2042_mcu_debugfs_init()
300 debugfs_create_file("firmware_version", 0444, mcu->debugfs, in sg2042_mcu_debugfs_init()
302 debugfs_create_file("pcb_version", 0444, mcu->debugfs, mcu, in sg2042_mcu_debugfs_init()
304 debugfs_create_file("mcu_type", 0444, mcu->debugfs, mcu, in sg2042_mcu_debugfs_init()
306 debugfs_create_file("board_type", 0444, mcu->debugfs, mcu, in sg2042_mcu_debugfs_init()
345 debugfs_remove_recursive(mcu->debugfs); in sg2042_mcu_i2c_remove()

12345678910>>...22