Searched refs:linebuf (Results 1 – 4 of 4) sorted by relevance
/tools/power/cpupower/lib/ |
D | cpufreq.c | 92 char linebuf[MAX_LINE_LEN]; in sysfs_cpufreq_get_one_value() local 99 linebuf, sizeof(linebuf)); in sysfs_cpufreq_get_one_value() 104 value = strtoul(linebuf, &endp, 0); in sysfs_cpufreq_get_one_value() 106 if (endp == linebuf || errno == ERANGE) in sysfs_cpufreq_get_one_value() 129 char linebuf[MAX_LINE_LEN]; in sysfs_cpufreq_get_one_string() local 137 linebuf, sizeof(linebuf)); in sysfs_cpufreq_get_one_string() 141 result = strdup(linebuf); in sysfs_cpufreq_get_one_string() 266 char linebuf[MAX_LINE_LEN]; in cpufreq_get_available_governors() local 271 linebuf, sizeof(linebuf)); in cpufreq_get_available_governors() 277 if (linebuf[i] == ' ' || linebuf[i] == '\n') { in cpufreq_get_available_governors() [all …]
|
D | cpuidle.c | 139 char linebuf[MAX_LINE_LEN]; in cpuidle_state_get_one_value() local 147 linebuf, sizeof(linebuf)); in cpuidle_state_get_one_value() 151 value = strtoull(linebuf, &endp, 0); in cpuidle_state_get_one_value() 153 if (endp == linebuf || errno == ERANGE) in cpuidle_state_get_one_value() 177 char linebuf[MAX_LINE_LEN]; in cpuidle_state_get_one_string() local 186 linebuf, sizeof(linebuf)); in cpuidle_state_get_one_string() 190 result = strdup(linebuf); in cpuidle_state_get_one_string() 344 char linebuf[MAX_LINE_LEN]; in sysfs_cpuidle_get_one_string() local 352 linebuf, sizeof(linebuf)); in sysfs_cpuidle_get_one_string() 356 result = strdup(linebuf); in sysfs_cpuidle_get_one_string()
|
D | cpupower.c | 52 char linebuf[MAX_LINE_LEN]; in cpupower_is_cpu_online() local 73 numread = read(fd, linebuf, MAX_LINE_LEN - 1); in cpupower_is_cpu_online() 78 linebuf[numread] = '\0'; in cpupower_is_cpu_online() 81 value = strtoull(linebuf, &endp, 0); in cpupower_is_cpu_online() 91 char linebuf[MAX_LINE_LEN]; in sysfs_topology_read_file() local 97 if (cpupower_read_sysfs(path, linebuf, MAX_LINE_LEN) == 0) in sysfs_topology_read_file() 99 *result = strtol(linebuf, &endp, 0); in sysfs_topology_read_file() 100 if (endp == linebuf || errno == ERANGE) in sysfs_topology_read_file()
|
/tools/power/cpupower/utils/helpers/ |
D | sysfs.c | 53 char linebuf[MAX_LINE_LEN]; in sysfs_is_cpu_online() local 74 numread = read(fd, linebuf, MAX_LINE_LEN - 1); in sysfs_is_cpu_online() 79 linebuf[numread] = '\0'; in sysfs_is_cpu_online() 82 value = strtoull(linebuf, &endp, 0); in sysfs_is_cpu_online() 209 char linebuf[MAX_LINE_LEN]; in sysfs_idlestate_get_one_value() local 217 linebuf, sizeof(linebuf)); in sysfs_idlestate_get_one_value() 221 value = strtoull(linebuf, &endp, 0); in sysfs_idlestate_get_one_value() 223 if (endp == linebuf || errno == ERANGE) in sysfs_idlestate_get_one_value() 247 char linebuf[MAX_LINE_LEN]; in sysfs_idlestate_get_one_string() local 256 linebuf, sizeof(linebuf)); in sysfs_idlestate_get_one_string() [all …]
|