Lines Matching refs:path
97 char path[PROPERTY_VALUE_MAX]; member
106 static int sysfs_write(const char *path, char *s) in sysfs_write() argument
110 int fd = open(path, O_WRONLY); in sysfs_write()
114 ALOGE("Error opening %s: %s\n", path, buf); in sysfs_write()
121 ALOGE("Error writing to %s: %s\n", path, buf); in sysfs_write()
128 static int sysfs_read(const char *path, char *s, int slen) in sysfs_read() argument
131 int fd = open(path, O_RDONLY); in sysfs_read()
134 ALOGE("Error opening %s\n", path); in sysfs_read()
140 ALOGE("Error reading %s\n", path); in sysfs_read()
364 sysfs_write(hikey_cpufreq_clusters[i].path, hikey_cpufreq_clusters[i].low_power_max); in power_set_interactive()
366 sysfs_write(hikey_cpufreq_clusters[i].path, hikey_cpufreq_clusters[i].normal_max); in power_set_interactive()
379 property_get(buf, hikey_cpufreq_clusters[i].path, ""); in hikey_cpufreq_init()
381 if (hikey_cpufreq_clusters[i].path[0] == '\0') { in hikey_cpufreq_init()
384 strncpy(hikey_cpufreq_clusters[i].path, in hikey_cpufreq_init()
392 len = sysfs_read(hikey_cpufreq_clusters[i].path, in hikey_cpufreq_init()
396 hikey_cpufreq_clusters[i].path, in hikey_cpufreq_init()