Lines Matching refs:SYSFS_PATH
156 local SYSFS_PATH="/sys/devices/platform/$DEVNAME/$CHIPNAME/sim_gpio$OFFSET/pull"
158 echo $PULL > $SYSFS_PATH || fail "Unable to set line pull in sysfs"
357 SYSFS_PATH=/sys/devices/platform/$DEVNAME/$CHIPNAME/sim_gpio0/pull
358 test `cat $SYSFS_PATH` = "pull-down" || fail "reading the pull failed"
360 test `cat $SYSFS_PATH` = "pull-up" || fail "reading the pull failed"
371 SYSFS_PATH="/sys/devices/platform/$DEVNAME/$CHIPNAME/sim_gpio0/pull"
372 echo foobar > $SYSFS_PATH 2> /dev/null && fail "invalid input not detected"
382 SYSFS_PATH="/sys/devices/platform/$DEVNAME/$CHIPNAME/sim_gpio0/value"
383 echo 1 > $SYSFS_PATH 2> /dev/null && fail "writing to 'value' succeeded unexpectedly"
396 SYSFS_PATH="/sys/devices/platform/$DEVNAME/$CHIPNAME/sim_gpio0/value"
397 test `cat $SYSFS_PATH` = "0" || fail "incorrect value read from sysfs"
400 test `cat $SYSFS_PATH` = "1" || fail "incorrect value read from sysfs"
412 SYSFS_PATH="/sys/devices/platform/$DEVNAME/$CHIPNAME/sim_gpio0/value"
414 test `cat $SYSFS_PATH` = "1" || fail "bias setting does not work"