Home
last modified time | relevance | path

Searched refs:linebuf (Results 1 – 12 of 12) sorted by relevance

/linux/tools/power/cpupower/lib/
A Dcpufreq.c99 linebuf, sizeof(linebuf)); in sysfs_cpufreq_get_one_value()
137 linebuf, sizeof(linebuf)); in sysfs_cpufreq_get_one_string()
271 linebuf, sizeof(linebuf)); in cpufreq_get_available_governors()
277 if (linebuf[i] == ' ' || linebuf[i] == '\n') { in cpufreq_get_available_governors()
346 linebuf, sizeof(linebuf)); in cpufreq_get_available_frequencies()
352 if (linebuf[i] == ' ' || linebuf[i] == '\n') { in cpufreq_get_available_frequencies()
402 linebuf, sizeof(linebuf)); in cpufreq_get_boost_frequencies()
408 if (linebuf[i] == ' ' || linebuf[i] == '\n') { in cpufreq_get_boost_frequencies()
483 if (i == len || linebuf[i] == ' ' || linebuf[i] == '\n') { in sysfs_get_cpu_list()
709 linebuf, sizeof(linebuf)); in cpufreq_get_stats()
[all …]
A Dcpuidle.c139 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()
A Dcpupower.c73 char linebuf[MAX_LINE_LEN]; in cpupower_is_cpu_online() local
94 numread = read(fd, linebuf, MAX_LINE_LEN - 1); in cpupower_is_cpu_online()
99 linebuf[numread] = '\0'; in cpupower_is_cpu_online()
102 value = strtoull(linebuf, &endp, 0); in cpupower_is_cpu_online()
112 char linebuf[MAX_LINE_LEN]; in sysfs_topology_read_file() local
118 if (cpupower_read_sysfs(path, linebuf, MAX_LINE_LEN) == 0) in sysfs_topology_read_file()
120 *result = strtol(linebuf, &endp, 0); in sysfs_topology_read_file()
121 if (endp == linebuf || errno == ERANGE) in sysfs_topology_read_file()
/linux/lib/
A Dhexdump.c139 ret = snprintf(linebuf + lx, linebuflen - lx, in hex_dump_to_buffer()
150 ret = snprintf(linebuf + lx, linebuflen - lx, in hex_dump_to_buffer()
161 ret = snprintf(linebuf + lx, linebuflen - lx, in hex_dump_to_buffer()
173 linebuf[lx++] = hex_asc_hi(ch); in hex_dump_to_buffer()
176 linebuf[lx++] = hex_asc_lo(ch); in hex_dump_to_buffer()
179 linebuf[lx++] = ' '; in hex_dump_to_buffer()
190 linebuf[lx++] = ' '; in hex_dump_to_buffer()
199 linebuf[lx] = '\0'; in hex_dump_to_buffer()
202 linebuf[lx++] = '\0'; in hex_dump_to_buffer()
246 unsigned char linebuf[32 * 3 + 2 + 32 + 1]; in print_hex_dump() local
[all …]
A Dseq_buf.c367 unsigned char linebuf[32 * 3 + 2 + 32 + 1]; local
378 linebuf, sizeof(linebuf), ascii);
383 prefix_str, ptr + i, linebuf);
387 prefix_str, i, linebuf);
390 ret = seq_buf_printf(s, "%s%s\n", prefix_str, linebuf);
/linux/tools/power/cpupower/utils/helpers/
A Dsysfs.c53 char linebuf[MAX_LINE_LEN]; in sysfs_is_cpu_online() local
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()
247 char linebuf[MAX_LINE_LEN]; in sysfs_idlestate_get_one_string() local
256 linebuf, sizeof(linebuf)); in sysfs_idlestate_get_one_string()
260 result = strdup(linebuf); in sysfs_idlestate_get_one_string()
414 char linebuf[MAX_LINE_LEN]; in sysfs_cpuidle_get_one_string() local
422 linebuf, sizeof(linebuf)); in sysfs_cpuidle_get_one_string()
[all …]
A Dmisc.c49 char linebuf[MAX_LINE_LEN]; in cpupower_intel_get_perf_bias() local
59 if (cpupower_read_sysfs(path, linebuf, MAX_LINE_LEN) == 0) in cpupower_intel_get_perf_bias()
62 val = strtol(linebuf, &endp, 0); in cpupower_intel_get_perf_bias()
63 if (endp == linebuf || errno == ERANGE) in cpupower_intel_get_perf_bias()
72 char linebuf[3] = {}; in cpupower_intel_set_perf_bias() local
78 snprintf(linebuf, sizeof(linebuf), "%d", val); in cpupower_intel_set_perf_bias()
80 if (cpupower_write_sysfs(path, linebuf, 3) <= 0) in cpupower_intel_set_perf_bias()
/linux/drivers/net/wireless/ath/ath11k/
A Ddebug.c82 char linebuf[256]; in ath11k_dbg_dump() local
92 linebuflen += scnprintf(linebuf + linebuflen, in ath11k_dbg_dump()
93 sizeof(linebuf) - linebuflen, in ath11k_dbg_dump()
98 linebuf + linebuflen, in ath11k_dbg_dump()
99 sizeof(linebuf) - linebuflen, true); in ath11k_dbg_dump()
100 dev_printk(KERN_DEBUG, ab->dev, "%s\n", linebuf); in ath11k_dbg_dump()
/linux/drivers/media/test-drivers/vivid/
A Dvivid-vbi-gen.c118 u8 *linebuf = buf; in vivid_vbi_gen_raw() local
126 linebuf += (line * 2 + data->field) * in vivid_vbi_gen_raw()
129 linebuf += (line + data->field * vbi_fmt->count[0]) * in vivid_vbi_gen_raw()
132 vivid_vbi_gen_cc_raw(data, linebuf, vbi_fmt->sampling_rate); in vivid_vbi_gen_raw()
134 vivid_vbi_gen_wss_raw(data, linebuf, vbi_fmt->sampling_rate); in vivid_vbi_gen_raw()
136 vivid_vbi_gen_teletext_raw(data, linebuf, vbi_fmt->sampling_rate); in vivid_vbi_gen_raw()
/linux/tools/power/x86/x86_energy_perf_policy/
A Dx86_energy_perf_policy.c849 char linebuf[3]; in get_epb() local
858 if (!read_sysfs(path, linebuf, 3)) in get_epb()
861 val = strtol(linebuf, &endp, 0); in get_epb()
862 if (endp == linebuf || errno == ERANGE) in get_epb()
871 char linebuf[3]; in set_epb() local
879 snprintf(linebuf, sizeof(linebuf), "%d", val); in set_epb()
881 ret = write_sysfs(path, linebuf, 3); in set_epb()
885 val = strtol(linebuf, &endp, 0); in set_epb()
886 if (endp == linebuf || errno == ERANGE) in set_epb()
/linux/drivers/net/wireless/ath/ath10k/
A Ddebug.c2697 char linebuf[256]; in ath10k_dbg_dump() local
2707 linebuflen += scnprintf(linebuf + linebuflen, in ath10k_dbg_dump()
2708 sizeof(linebuf) - linebuflen, in ath10k_dbg_dump()
2713 linebuf + linebuflen, in ath10k_dbg_dump()
2714 sizeof(linebuf) - linebuflen, true); in ath10k_dbg_dump()
2715 dev_printk(KERN_DEBUG, ar->dev, "%s\n", linebuf); in ath10k_dbg_dump()
/linux/include/linux/
A Dprintk.h705 int groupsize, char *linebuf, size_t linebuflen,

Completed in 19 milliseconds