Home
last modified time | relevance | path

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

/third_party/alsa-utils/alsactl/
Dinit_sysfs.c21 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, sizeof(sysfs_test)); in sysfs_init()
53 error("sysfs path '%s' is invalid", sysfs_path); in sysfs_init()
85 sysfs_len = strlcpy(path_full, sysfs_path, sizeof(path_full)); in sysfs_attr_get_value()
Dinit_parse.c1179 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/
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()
566 if (sysfs_path) in sys_path()
567 return scnprintf(buf, PAGE_SIZE, "%s", sysfs_path); in sys_path()
686 kfree(sysfs_path); in cleanup_module()
/third_party/f2fs-tools/lib/
Dlibf2fs_zoned.c41 char sysfs_path[PATH_MAX]; in get_sysfs_path() local
56 ret = snprintf(sysfs_path, sizeof(sysfs_path), in get_sysfs_path()
58 if (ret >= sizeof(sysfs_path)) in get_sysfs_path()
62 ret = snprintf(str, sizeof(str), "%s/partition", sysfs_path); in get_sysfs_path()
79 delim = strrchr(sysfs_path, '/'); in get_sysfs_path()
85 ret = snprintf(buf, buflen, "%s/%s", sysfs_path, attr); in get_sysfs_path()
/third_party/pulseaudio/src/modules/
Dmodule-udev-detect.c159 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/
Dras_tests.c531 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()