/external/ltp/testcases/kernel/device-drivers/acpi/ |
D | ltp_acpi.c | 58 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()
|
D | ltp_acpi_cmds.c | 71 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() 564 if (sysfs_path) in sys_path() 565 return scnprintf(buf, PAGE_SIZE, "%s", sysfs_path); in sys_path() 684 kfree(sysfs_path); in cleanup_module()
|
/external/chromium-trace/catapult/third_party/pyserial/serial/tools/ |
D | list_ports_linux.py | 65 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/power_WakeupRTC/ |
D | power_WakeupRTC.py | 17 sysfs_path = '/sys/class/rtc/%s/device/power/wakeup' % rtc_device 18 if os.path.isfile(sysfs_path): 19 return file(sysfs_path).read().strip()
|
/external/autotest/client/site_tests/hardware_SsdDetection/ |
D | hardware_SsdDetection.py | 39 sysfs_path = '/sys/block/%s/removable' % dev 40 return (os.path.exists(sysfs_path) and 41 open(sysfs_path).read().strip() == '0')
|
/external/crosvm/devices/src/pci/pcie/ |
D | pcie_host.rs | 224 sysfs_path: Option<PathBuf>, field 274 let (sysfs_path, header_type_reg) = in new() 300 sysfs_path, in new() 349 if self.sysfs_path.is_some() in write_config() 430 let path = Path::new(&self.sysfs_path.as_ref().unwrap()).join("power_state"); in power_state() 449 let path = Path::new(self.sysfs_path.as_ref().unwrap()).join("power/op_call"); in op_call() 458 if self.sysfs_path.is_some() { in drop() 459 let _ = PcieHostRootPort::coordinated_pm(self.sysfs_path.as_ref().unwrap(), false); in drop()
|
/external/autotest/client/deps/fakegudev/src/test_files/ |
D | fake_and_fake2.dat | 3 sysfs_path=/sys/devices/virtual/fake 7 sysfs_path=/sys/devices/virtual/fake2
|
D | fake2_parent_fake.dat | 3 sysfs_path=/sys/devices/virtual/fake 7 sysfs_path=/sys/devices/virtual/fake2
|
D | fake.dat | 3 sysfs_path=/sys/devices/virtual/fake
|
D | fake2.dat | 3 sysfs_path=/sys/devices/virtual/fake2
|
D | fake_property_foo.dat | 3 sysfs_path=/sys/devices/virtual/fake
|
D | fake_driver.dat | 3 sysfs_path=/sys/devices/virtual/fake
|
D | fake_name.dat | 3 sysfs_path=/sys/devices/virtual/fake
|
D | fake_subsystem.dat | 3 sysfs_path=/sys/devices/virtual/fake
|
D | fake_parent_null.dat | 3 sysfs_path=/sys/devices/virtual/fake
|
D | fake_properties.dat | 3 sysfs_path=/sys/devices/virtual/fake
|
D | fake_full.dat | 7 sysfs_path=/sys/devices/virtual/fake
|
/external/f2fs-tools/lib/ |
D | libf2fs_zoned.c | 39 char sysfs_path[PATH_MAX]; in get_sysfs_path() local 54 ret = snprintf(sysfs_path, sizeof(sysfs_path), in get_sysfs_path() 56 if (ret >= sizeof(sysfs_path)) in get_sysfs_path() 60 ret = snprintf(str, sizeof(str), "%s/partition", sysfs_path); in get_sysfs_path() 77 delim = strrchr(sysfs_path, '/'); in get_sysfs_path() 83 ret = snprintf(buf, buflen, "%s/%s", sysfs_path, attr); in get_sysfs_path()
|
/external/crosvm/devices/src/pci/ |
D | vfio_pci.rs | 626 let mut sysfs_path = PathBuf::new(); in run() localVariable 627 sysfs_path.push("/sys/bus/pci/devices/"); in run() 628 sysfs_path.push(self.name.clone()); in run() 630 vfio_path: sysfs_path, in run() 671 sysfs_path: Option<PathBuf>, field 681 #[cfg(feature = "direct")] sysfs_path: &Path, in new() 743 let (sysfs_path, header_type_reg) = match VfioPciDevice::coordinated_pm(sysfs_path, true) { in new() 753 (Some(sysfs_path.to_path_buf()), Some(reg)) in new() 779 sysfs_path, in new() 1476 fn coordinated_pm(sysfs_path: &Path, enter: bool) -> anyhow::Result<()> { in coordinated_pm() [all …]
|
/external/igt-gpu-tools/tests/i915/ |
D | i915_pm_rps.c | 633 char sysfs_path[80]; variable 640 igt_assert(igt_sysfs_path(drm_fd, sysfs_path, 641 sizeof(sysfs_path))); 648 sysfs_path, sysfs_file->name);
|
/external/autotest/client/deps/fakegudev/src/ |
D | fakegudev.c | 425 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()
|
/external/libdrm/tests/amdgpu/ |
D | ras_tests.c | 531 static char sysfs_path[PATH_SIZE]; variable 539 snprintf(sysfs_path, PATH_SIZE, "/sys/class/drm/card%d/device/ras/", devices[card].id); in set_test_card() 550 return sysfs_path; in get_ras_sysfs_root()
|