Searched refs:sysfs_path (Results 1 - 7 of 7) sorted by relevance
/third_party/alsa-utils/alsactl/ |
H A D | init_sysfs.c | 21 static char sysfs_path[PATH_SIZE]; variable 41 strlcpy(sysfs_path, env, sizeof(sysfs_path)); in sysfs_init() 42 remove_trailing_chars(sysfs_path, '/'); in sysfs_init() 44 strlcpy(sysfs_path, "/sys", sizeof(sysfs_path)); in sysfs_init() 45 dbg("sysfs_path='%s'", sysfs_path); in sysfs_init() 47 strlcpy(sysfs_test, sysfs_path, sizeof(sysfs_test)); in sysfs_init() 50 strlcpy(sysfs_test, sysfs_path, sizeo in sysfs_init() [all...] |
H A D | init_parse.c | 1179 strlcat(string, sysfs_path, maxsize); in apply_format() 1180 dbg("substitute sysfs_path '%s'", sysfs_path); in apply_format()
|
/third_party/ltp/testcases/kernel/device-drivers/acpi/ |
H A D | ltp_acpi.c | 58 char descr[4096], sysfs_path[4096]; in tc_acpi_str() local 78 strcpy(sysfs_path, "/sys"); in tc_acpi_str() 79 if (read_sysfs_file(dev_path, sysfs_path + 4, 4092)) { in tc_acpi_str() 87 strcat(sysfs_path, "/description"); in tc_acpi_str() 88 if (access(sysfs_path, R_OK)) { in tc_acpi_str() 90 sysfs_path); in tc_acpi_str() 93 tst_resm(TINFO, "found description file '%s'", sysfs_path); in tc_acpi_str() 96 if (read_sysfs_file(sysfs_path, sysfs_descr, 4096)) in tc_acpi_str()
|
H A 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() 566 if (sysfs_path) in sys_path() 567 return scnprintf(buf, PAGE_SIZE, "%s", sysfs_path); in sys_path() [all...] |
/third_party/f2fs-tools/lib/ |
H A 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()
|
/third_party/pulseaudio/src/modules/ |
H A D | module-udev-detect.c | 159 char *sysfs_path, *pcm_class; in pcm_is_modem() local 169 sysfs_path = pa_sprintf_malloc("pcmC%sD%s/pcm_class", card_idx, pcm); in pcm_is_modem() 170 pcm_class = card_get_sysattr(card_idx, sysfs_path); in pcm_is_modem() 173 pa_xfree(sysfs_path); in pcm_is_modem()
|
/third_party/libdrm/tests/amdgpu/ |
H A 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()
|
Completed in 7 milliseconds