Home
last modified time | relevance | path

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

1234567891011

/drivers/usb/typec/ucsi/
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()
68 seq_printf(s, "0x%016llx%016llx\n", ucsi->debugfs->response.high, 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()
[all …]
/drivers/memory/tegra/
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()
192 if (emc->dvfs[i].rate < emc->debugfs.min_rate) in tegra186_emc_get_emc_dvfs_latency()
193 emc->debugfs.min_rate = emc->dvfs[i].rate; in tegra186_emc_get_emc_dvfs_latency()
195 if (emc->dvfs[i].rate > emc->debugfs.max_rate) in tegra186_emc_get_emc_dvfs_latency()
[all …]
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()
913 if (emc->timings[i].rate < emc->debugfs.min_rate) in tegra_emc_debugfs_init()
914 emc->debugfs.min_rate = emc->timings[i].rate; in tegra_emc_debugfs_init()
916 if (emc->timings[i].rate > emc->debugfs.max_rate) in tegra_emc_debugfs_init()
[all …]
Dtegra124-emc.c502 } debugfs; member
1182 *rate = emc->debugfs.min_rate; in tegra_emc_debug_min_rate_get()
1199 emc->debugfs.min_rate = rate; in tegra_emc_debug_min_rate_set()
1212 *rate = emc->debugfs.max_rate; in tegra_emc_debug_max_rate_get()
1229 emc->debugfs.max_rate = rate; in tegra_emc_debug_max_rate_set()
1243 emc->debugfs.min_rate = ULONG_MAX; in emc_debugfs_init()
1244 emc->debugfs.max_rate = 0; in emc_debugfs_init()
1247 if (emc->timings[i].rate < emc->debugfs.min_rate) in emc_debugfs_init()
1248 emc->debugfs.min_rate = emc->timings[i].rate; in emc_debugfs_init()
1250 if (emc->timings[i].rate > emc->debugfs.max_rate) in emc_debugfs_init()
[all …]
Dtegra210-emc-core.c620 if (!emc->debugfs.temperature) in tegra210_emc_poll_refresh()
623 temperature = emc->debugfs.temperature; in tegra210_emc_poll_refresh()
1630 *rate = emc->debugfs.min_rate; in tegra210_emc_debug_min_rate_get()
1647 emc->debugfs.min_rate = rate; in tegra210_emc_debug_min_rate_set()
1660 *rate = emc->debugfs.max_rate; in tegra210_emc_debug_max_rate_get()
1677 emc->debugfs.max_rate = rate; in tegra210_emc_debug_max_rate_set()
1691 if (!emc->debugfs.temperature) in tegra210_emc_debug_temperature_get()
1694 value = emc->debugfs.temperature; in tegra210_emc_debug_temperature_get()
1708 emc->debugfs.temperature = temperature; in tegra210_emc_debug_temperature_set()
1723 emc->debugfs.min_rate = ULONG_MAX; in tegra210_emc_debugfs_init()
[all …]
Dtegra30-emc.c384 } debugfs; member
1365 *rate = emc->debugfs.min_rate; in tegra_emc_debug_min_rate_get()
1382 emc->debugfs.min_rate = rate; in tegra_emc_debug_min_rate_set()
1395 *rate = emc->debugfs.max_rate; in tegra_emc_debug_max_rate_get()
1412 emc->debugfs.max_rate = rate; in tegra_emc_debug_max_rate_set()
1427 emc->debugfs.min_rate = ULONG_MAX; in tegra_emc_debugfs_init()
1428 emc->debugfs.max_rate = 0; in tegra_emc_debugfs_init()
1431 if (emc->timings[i].rate < emc->debugfs.min_rate) in tegra_emc_debugfs_init()
1432 emc->debugfs.min_rate = emc->timings[i].rate; in tegra_emc_debugfs_init()
1434 if (emc->timings[i].rate > emc->debugfs.max_rate) in tegra_emc_debugfs_init()
[all …]
/drivers/gpu/drm/nouveau/
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()
147 struct nouveau_debugfs *debugfs = nouveau_debugfs(drm); in nouveau_debugfs_pstate_set() local
152 if (!debugfs) in nouveau_debugfs_pstate_set()
191 ret = nvif_mthd(&debugfs->ctrl, NVIF_CONTROL_PSTATE_USER, 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()
[all …]
/drivers/vdpa/mlx5/net/
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()
/drivers/soundwire/
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()
/drivers/net/wireless/ti/wl1251/
Ddebugfs.c41 wl->debugfs.name = debugfs_create_file(#name, 0400, parent, \
46 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()
434 DEBUGFS_ADD(excessive_retries, wl->debugfs.rootdir); in wl1251_debugfs_add_files()
451 wl->debugfs.rootdir = debugfs_create_dir(KBUILD_MODNAME, NULL); in wl1251_debugfs_init()
453 wl->debugfs.fw_statistics = debugfs_create_dir("fw-statistics", in wl1251_debugfs_init()
[all …]
/drivers/media/platform/amphion/
Dvpu_dbg.c430 if (!vpu->debugfs) in vpu_inst_create_dbgfs_file()
433 if (inst->debugfs) in vpu_inst_create_dbgfs_file()
437 inst->debugfs = debugfs_create_file((const char *)name, 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()
471 core->debugfs = debugfs_create_file((const char *)name, in vpu_core_create_dbgfs_file()
473 vpu->debugfs, in vpu_core_create_dbgfs_file()
[all …]
/drivers/misc/cxl/
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()
/drivers/hwspinlock/
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()
/drivers/gpu/drm/i915/gvt/
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()
/drivers/hwmon/
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()
/drivers/base/regmap/
Dregmap-debugfs.c606 map->debugfs = debugfs_create_dir(name, regmap_debugfs_root); in regmap_debugfs_init()
608 debugfs_create_file("name", 0400, map->debugfs, in regmap_debugfs_init()
611 debugfs_create_file("range", 0400, map->debugfs, in regmap_debugfs_init()
623 debugfs_create_file("registers", registers_mode, map->debugfs, in regmap_debugfs_init()
625 debugfs_create_file("access", 0400, map->debugfs, in regmap_debugfs_init()
630 debugfs_create_file("cache_only", 0600, map->debugfs, in regmap_debugfs_init()
632 debugfs_create_bool("cache_dirty", 0400, map->debugfs, in regmap_debugfs_init()
634 debugfs_create_file("cache_bypass", 0600, map->debugfs, in regmap_debugfs_init()
646 debugfs_create_bool("force_write_field", 0600, map->debugfs, in regmap_debugfs_init()
656 map->debugfs, range_node, in regmap_debugfs_init()
[all …]
/drivers/bluetooth/
Dhci_vhci.c387 debugfs_create_file("force_suspend", 0644, hdev->debugfs, data, in vhci_debugfs_init()
390 debugfs_create_file("force_wakeup", 0644, hdev->debugfs, data, in vhci_debugfs_init()
394 debugfs_create_file("msft_opcode", 0644, hdev->debugfs, data, in vhci_debugfs_init()
398 debugfs_create_file("aosp_capable", 0644, hdev->debugfs, data, in vhci_debugfs_init()
401 debugfs_create_file("force_devcoredump", 0644, hdev->debugfs, data, in vhci_debugfs_init()
458 if (!IS_ERR_OR_NULL(hdev->debugfs)) in __vhci_create_device()
663 debugfs_lookup_and_remove("force_suspend", hdev->debugfs); in vhci_debugfs_remove()
665 debugfs_lookup_and_remove("force_wakeup", hdev->debugfs); in vhci_debugfs_remove()
668 debugfs_lookup_and_remove("msft_opcode", hdev->debugfs); in vhci_debugfs_remove()
671 debugfs_lookup_and_remove("aosp_capable", hdev->debugfs); in vhci_debugfs_remove()
[all …]
/drivers/video/fbdev/omap2/omapfb/dss/
DKconfig16 appropriate flags in <debugfs>/dynamic_debug/control.
22 This enables debugfs for OMAPDSS at <debugfs>/omapdss. This enables
30 Collect DSS IRQ statistics, printable via debugfs.
33 <debugfs>/omapdss/dispc_irq for DISPC interrupts, and
34 <debugfs>/omapdss/dsi_irq for DSI interrupts.
/drivers/hwmon/pmbus/
Dibm-cffps.c486 struct dentry *debugfs; in ibm_cffps_probe() local
559 debugfs = pmbus_get_debugfs_dir(client); in ibm_cffps_probe()
560 if (!debugfs) in ibm_cffps_probe()
566 debugfs_create_file("input_history", 0444, debugfs, psu, &ibm_cffps_input_history_fops); in ibm_cffps_probe()
567 debugfs_create_file("max_power_out", 0444, debugfs, in ibm_cffps_probe()
570 debugfs_create_file("ccin", 0444, debugfs, in ibm_cffps_probe()
573 debugfs_create_file("fw_version", 0444, debugfs, in ibm_cffps_probe()
576 debugfs_create_file("on_off_config", 0644, debugfs, in ibm_cffps_probe()
581 debugfs_create_symlink(client->name, debugfs, "."); in ibm_cffps_probe()
Ducd9000.c69 struct dentry *debugfs; member
447 struct dentry *debugfs; in ucd9000_init_debugfs() local
452 debugfs = pmbus_get_debugfs_dir(client); in ucd9000_init_debugfs()
453 if (!debugfs) in ucd9000_init_debugfs()
456 data->debugfs = debugfs_create_dir(client->name, debugfs); in ucd9000_init_debugfs()
479 debugfs_create_file(name, 0444, data->debugfs, in ucd9000_init_debugfs()
486 debugfs_create_file(name, 0444, data->debugfs, client, in ucd9000_init_debugfs()
/drivers/net/caif/
Dcaif_virtio.c126 struct dentry *debugfs; member
626 cfv->debugfs = debugfs_create_dir(netdev_name(cfv->ndev), NULL); in debugfs_init()
628 debugfs_create_u32("rx-napi-complete", 0400, cfv->debugfs, in debugfs_init()
630 debugfs_create_u32("rx-napi-resched", 0400, cfv->debugfs, in debugfs_init()
632 debugfs_create_u32("rx-nomem", 0400, cfv->debugfs, in debugfs_init()
634 debugfs_create_u32("rx-kicks", 0400, cfv->debugfs, in debugfs_init()
636 debugfs_create_u32("tx-full-ring", 0400, cfv->debugfs, in debugfs_init()
638 debugfs_create_u32("tx-no-mem", 0400, cfv->debugfs, in debugfs_init()
640 debugfs_create_u32("tx-kicks", 0400, cfv->debugfs, in debugfs_init()
642 debugfs_create_u32("tx-flow-on", 0400, cfv->debugfs, in debugfs_init()
[all …]
/drivers/thermal/
Dthermal_debugfs.c411 struct thermal_debugfs *thermal_dbg = cdev->debugfs; in thermal_debug_cdev_state_update()
516 cdev->debugfs = thermal_dbg; in thermal_debug_cdev_add()
532 thermal_dbg = cdev->debugfs; in thermal_debug_cdev_remove()
538 cdev->debugfs = NULL; in thermal_debug_cdev_remove()
577 struct thermal_debugfs *thermal_dbg = tz->debugfs; in thermal_debug_tz_trip_up()
670 struct thermal_debugfs *thermal_dbg = tz->debugfs; in thermal_debug_tz_trip_down()
724 struct thermal_debugfs *thermal_dbg = tz->debugfs; in thermal_debug_update_trip_stats()
885 tz->debugfs = thermal_dbg; in thermal_debug_tz_add()
897 thermal_dbg = tz->debugfs; in thermal_debug_tz_remove()
903 tz->debugfs = NULL; in thermal_debug_tz_remove()
[all …]
/drivers/gpu/drm/omapdrm/
DKconfig25 appropriate flags in <debugfs>/dynamic_debug/control.
32 This enables debugfs for OMAPDSS at <debugfs>/omapdss. This enables
41 Collect DSS IRQ statistics, printable via debugfs.
44 <debugfs>/omapdss/dispc_irq for DISPC interrupts, and
45 <debugfs>/omapdss/dsi_irq for DSI interrupts.
/drivers/net/wireless/ath/wil6210/
DKconfig29 registers with debugfs. If COR were used, ISR would
47 bool "wil6210 debugfs support"
52 Say Y here to enable wil6210 debugfs support, using the
53 kernel debugfs infrastructure. Select this
/drivers/edac/
Dnpcm_edac.c98 struct dentry *debugfs; member
292 priv->debugfs = edac_debugfs_create_dir(mci->mod_name); in setup_debugfs()
293 if (!priv->debugfs) in setup_debugfs()
296 edac_debugfs_create_x8("error_type", 0644, priv->debugfs, &priv->error_type); in setup_debugfs()
297 edac_debugfs_create_x8("location", 0644, priv->debugfs, &priv->location); in setup_debugfs()
298 edac_debugfs_create_x8("bit", 0644, priv->debugfs, &priv->bit); in setup_debugfs()
299 edac_debugfs_create_file("force_ecc_error", 0200, priv->debugfs, in setup_debugfs()
421 edac_debugfs_remove_recursive(priv->debugfs); in edac_remove()

1234567891011