Lines Matching refs:len
109 int len; in sysfs_write() local
118 len = write(fd, s, strlen(s)); in sysfs_write()
119 if (len < 0) { in sysfs_write()
125 return len; in sysfs_write()
130 int len; in sysfs_read() local
138 len = read(fd, s, slen); in sysfs_read()
139 if (len < 0) { in sysfs_read()
144 return len; in sysfs_read()
191 int len; in interactive_boostpulse() local
206 len = write(hikey->boostpulse_fd, "1", 1); in interactive_boostpulse()
207 if (len < 0) { in interactive_boostpulse()
258 int len; in schedtune_sysfs_boost() local
263 len = write(hikey->schedtune_boost_fd, booststr, strlen(booststr)); in schedtune_sysfs_boost()
264 if (len < 0) { in schedtune_sysfs_boost()
268 return len; in schedtune_sysfs_boost()
338 size_t len = read(hikey->schedtune_boost_fd, schedtune_boost_norm, in schedtune_power_init() local
340 if (len <= 0) in schedtune_power_init()
342 else if (schedtune_boost_norm[len] == '\n') in schedtune_power_init()
343 schedtune_boost_norm[len] = '\0'; in schedtune_power_init()
375 int len, i; in hikey_cpufreq_init() local
392 len = sysfs_read(hikey_cpufreq_clusters[i].path, in hikey_cpufreq_init()