Searched refs:linebuf (Results 1 – 3 of 3) sorted by relevance
/tools/power/cpupower/lib/ |
D | sysfs.c | 119 char linebuf[MAX_LINE_LEN]; in sysfs_cpufreq_get_one_value() local 126 linebuf, sizeof(linebuf)); in sysfs_cpufreq_get_one_value() 131 value = strtoul(linebuf, &endp, 0); in sysfs_cpufreq_get_one_value() 133 if (endp == linebuf || errno == ERANGE) in sysfs_cpufreq_get_one_value() 156 char linebuf[MAX_LINE_LEN]; in sysfs_cpufreq_get_one_string() local 164 linebuf, sizeof(linebuf)); in sysfs_cpufreq_get_one_string() 168 result = strdup(linebuf); in sysfs_cpufreq_get_one_string() 275 char linebuf[MAX_LINE_LEN]; in sysfs_get_freq_available_governors() local 280 linebuf, sizeof(linebuf)); in sysfs_get_freq_available_governors() 286 if (linebuf[i] == ' ' || linebuf[i] == '\n') { in sysfs_get_freq_available_governors() [all …]
|
/tools/power/cpupower/utils/helpers/ |
D | sysfs.c | 54 char linebuf[MAX_LINE_LEN]; in sysfs_is_cpu_online() local 75 numread = read(fd, linebuf, MAX_LINE_LEN - 1); in sysfs_is_cpu_online() 80 linebuf[numread] = '\0'; in sysfs_is_cpu_online() 83 value = strtoull(linebuf, &endp, 0); in sysfs_is_cpu_online() 210 char linebuf[MAX_LINE_LEN]; in sysfs_idlestate_get_one_value() local 218 linebuf, sizeof(linebuf)); in sysfs_idlestate_get_one_value() 222 value = strtoull(linebuf, &endp, 0); in sysfs_idlestate_get_one_value() 224 if (endp == linebuf || errno == ERANGE) in sysfs_idlestate_get_one_value() 248 char linebuf[MAX_LINE_LEN]; in sysfs_idlestate_get_one_string() local 257 linebuf, sizeof(linebuf)); in sysfs_idlestate_get_one_string() [all …]
|
D | topology.c | 25 char linebuf[MAX_LINE_LEN]; in sysfs_topology_read_file() local 31 if (sysfs_read_file(path, linebuf, MAX_LINE_LEN) == 0) in sysfs_topology_read_file() 33 *result = strtol(linebuf, &endp, 0); in sysfs_topology_read_file() 34 if (endp == linebuf || errno == ERANGE) in sysfs_topology_read_file()
|