Home
last modified time | relevance | path

Searched refs:sysfs_path (Results 1 – 18 of 18) sorted by relevance

/external/ltp/testcases/kernel/device-drivers/acpi/
Dltp_acpi.c58 char descr[4096], sysfs_path[4096]; in tc_acpi_str() local
80 strcpy(sysfs_path, "/sys"); in tc_acpi_str()
81 if (read_sysfs_file(dev_path, sysfs_path + 4, 4092)) { in tc_acpi_str()
102 strcat(sysfs_path, "/description"); in tc_acpi_str()
103 if (access(sysfs_path, R_OK)) { in tc_acpi_str()
105 sysfs_path); in tc_acpi_str()
108 tst_resm(TINFO, "found description file '%s'", sysfs_path); in tc_acpi_str()
111 if (read_sysfs_file(sysfs_path, sysfs_descr, 4096)) in tc_acpi_str()
Dltp_acpi_cmds.c71 static char *sysfs_path; variable
129 kfree(sysfs_path); in get_sysfs_path()
130 sysfs_path = NULL; in get_sysfs_path()
134 sysfs_path = kobject_get_path(&device->dev.kobj, GFP_KERNEL); in get_sysfs_path()
192 (sysfs_path) ? sysfs_path : "no path"); in acpi_traverse()
199 (sysfs_path) ? sysfs_path : "no path"); in acpi_traverse()
556 if (sysfs_path) in sys_path()
557 return scnprintf(buf, PAGE_SIZE, "%s", sysfs_path); in sys_path()
676 kfree(sysfs_path); in cleanup_module()
/external/chromium-trace/catapult/third_party/pyserial/serial/tools/
Dlist_ports_linux.py65 def usb_sysfs_hw_string(sysfs_path): argument
67 bus, dev = os.path.basename(os.path.realpath(sysfs_path)).split('-')
68 snr = read_line(sysfs_path+'/serial')
74 read_line(sysfs_path+'/idVendor'),
75 read_line(sysfs_path+'/idProduct'),
79 def usb_lsusb_string(sysfs_path): argument
80 base = os.path.basename(os.path.realpath(sysfs_path))
83 dev = int(read_line(os.path.join(sysfs_path, 'devnum')))
/external/autotest/client/site_tests/kernel_CrosECSysfs/
Dkernel_CrosECSysfs.py16 sysfs_path = '/sys/devices/virtual/chromeos/cros_ec' variable in kernel_CrosECSysfs
19 sysfs_path = '/sys/class/chromeos/cros_ec' variable in kernel_CrosECSysfs
39 fullpath = os.path.join(self.sysfs_path, filename)
49 fullpath = os.path.join(self.sysfs_path, filename)
/external/autotest/client/site_tests/hardware_SsdDetection/
Dhardware_SsdDetection.py39 sysfs_path = '/sys/block/%s/removable' % dev
40 return (os.path.exists(sysfs_path) and
41 open(sysfs_path).read().strip() == '0')
/external/autotest/client/deps/fakegudev/src/test_files/
Dfake_and_fake2.dat3 sysfs_path=/sys/devices/virtual/fake
7 sysfs_path=/sys/devices/virtual/fake2
Dfake2_parent_fake.dat3 sysfs_path=/sys/devices/virtual/fake
7 sysfs_path=/sys/devices/virtual/fake2
Dfake.dat3 sysfs_path=/sys/devices/virtual/fake
Dfake2.dat3 sysfs_path=/sys/devices/virtual/fake2
Dfake_subsystem.dat3 sysfs_path=/sys/devices/virtual/fake
Dfake_name.dat3 sysfs_path=/sys/devices/virtual/fake
Dfake_property_foo.dat3 sysfs_path=/sys/devices/virtual/fake
Dfake_driver.dat3 sysfs_path=/sys/devices/virtual/fake
Dfake_parent_null.dat3 sysfs_path=/sys/devices/virtual/fake
Dfake_properties.dat3 sysfs_path=/sys/devices/virtual/fake
Dfake_full.dat7 sysfs_path=/sys/devices/virtual/fake
/external/autotest/client/site_tests/power_WakeupRTC/
Dpower_WakeupRTC.py17 sysfs_path = '/sys/class/rtc/%s/device/power/wakeup' % rtc_device
18 return file(sysfs_path).read().strip()
/external/autotest/client/deps/fakegudev/src/
Dfakegudev.c425 const gchar *sysfs_path) in g_udev_client_query_by_sysfs_path() argument
433 if (g_hash_table_lookup_extended (devices_by_syspath, sysfs_path, NULL, in g_udev_client_query_by_sysfs_path()
442 return realfunc (client, sysfs_path); in g_udev_client_query_by_sysfs_path()