Home
last modified time | relevance | path

Searched refs:SYSFS_PATH (Results 1 – 3 of 3) sorted by relevance

/Linux-v6.6/tools/testing/selftests/gpio/
Dgpio-sim.sh155 local SYSFS_PATH="/sys/devices/platform/$DEVNAME/$CHIPNAME/sim_gpio$OFFSET/pull"
157 echo $PULL > $SYSFS_PATH || fail "Unable to set line pull in sysfs"
343 SYSFS_PATH=/sys/devices/platform/$DEVNAME/$CHIPNAME/sim_gpio0/pull
344 test `cat $SYSFS_PATH` = "pull-down" || fail "reading the pull failed"
346 test `cat $SYSFS_PATH` = "pull-up" || fail "reading the pull failed"
356 SYSFS_PATH="/sys/devices/platform/$DEVNAME/$CHIPNAME/sim_gpio0/pull"
357 echo foobar > $SYSFS_PATH 2> /dev/null && fail "invalid input not detected"
366 SYSFS_PATH="/sys/devices/platform/$DEVNAME/$CHIPNAME/sim_gpio0/value"
367 echo 1 > $SYSFS_PATH 2> /dev/null && fail "writing to 'value' succeeded unexpectedly"
379 SYSFS_PATH="/sys/devices/platform/$DEVNAME/$CHIPNAME/sim_gpio0/value"
[all …]
/Linux-v6.6/tools/power/acpi/tools/ec/
Dec_access.c23 #define SYSFS_PATH "/sys/kernel/debug/ec/ec0/io" macro
134 err(EXIT_FAILURE, "Could not read from %s\n", SYSFS_PATH); in dump_ec()
157 err(EXIT_FAILURE, "Could not read from %s\n", SYSFS_PATH); in dump_ec()
187 byte_offset, SYSFS_PATH); in read_ec_val()
220 fd = open(SYSFS_PATH, file_mode); in main()
222 err(EXIT_FAILURE, "%s", SYSFS_PATH); in main()
/Linux-v6.6/Documentation/admin-guide/
Dsysfs-rules.rst34 possibly support a ``SYSFS_PATH`` environment variable to overwrite the