Lines Matching +full:directory +full:- +full:based

1 // SPDX-License-Identifier: GPL-2.0
12 * It resides in the "thermal-testing" directory under the debugfs root and
21 * # echo addtz > /sys/kernel/debug/thermal-testing/command
23 * That template will be represented as a subdirectory in the "thermal-testing"
24 * directory, for example
26 * # ls /sys/kernel/debug/thermal-testing/
32 * # echo tzaddtrip:0 > /sys/kernel/debug/thermal-testing/command
35 * template 0 (represented by the tz0 subdirectory in "thermal-testing").
37 * # ls /sys/kernel/debug/thermal-testing/tz0
45 * The initial temperature of a thermal zone based on a template can be set by
46 * writing to the "init_temp" file in its directory under "thermal-testing", for
49 * echo 50000 > /sys/kernel/debug/thermal-testing/tz0/init_temp
52 * thermal zone based on a given template with the thermal core, for example
54 * # echo tzreg:0 > /sys/kernel/debug/thermal-testing/command
65 * "temp" file in the corresponding thermal zone template's directory under
66 * "thermal-testing", for example
68 * echo 10000 > /sys/kernel/debug/thermal-testing/tz0/temp
77 * # echo deltz:0 > /sys/kernel/debug/thermal-testing/command
79 * which will also unregister the thermal zone based on it, if present.
82 #define pr_fmt(fmt) "thermal-testing: " fmt
135 ret = -EINVAL; in tt_command_exec()
151 return -ENOMEM; in tt_command_process()
154 return -EFAULT; in tt_command_process()
170 return -EINVAL; in tt_command_process()
176 struct dentry *dentry = file->f_path.dentry; in tt_command_write()
180 return -EINVAL; in tt_command_write()
183 return -E2BIG; in tt_command_write()
204 d_testing = debugfs_create_dir("thermal-testing", NULL); in thermal_testing_init()