Home
last modified time | relevance | path

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

/linux-6.6.21/tools/power/cpupower/utils/helpers/
Dmisc.c53 char linebuf[MAX_LINE_LEN]; in cpupower_intel_get_perf_bias() local
63 if (cpupower_read_sysfs(path, linebuf, MAX_LINE_LEN) == 0) in cpupower_intel_get_perf_bias()
66 val = strtol(linebuf, &endp, 0); in cpupower_intel_get_perf_bias()
67 if (endp == linebuf || errno == ERANGE) in cpupower_intel_get_perf_bias()
76 char linebuf[3] = {}; in cpupower_intel_set_perf_bias() local
82 snprintf(linebuf, sizeof(linebuf), "%d", val); in cpupower_intel_set_perf_bias()
84 if (cpupower_write_sysfs(path, linebuf, 3) <= 0) in cpupower_intel_set_perf_bias()
93 char linebuf[30] = {}; in cpupower_set_epp() local
101 snprintf(linebuf, sizeof(linebuf), "%s", epp); in cpupower_set_epp()
103 if (cpupower_write_sysfs(path, linebuf, 30) <= 0) in cpupower_set_epp()
[all …]
Dsysfs.c53 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 …]
/linux-6.6.21/lib/
Dhexdump.c128 char *linebuf, size_t linebuflen, bool ascii) in hex_dump_to_buffer() argument
160 ret = snprintf(linebuf + lx, linebuflen - lx, in hex_dump_to_buffer()
171 ret = snprintf(linebuf + lx, linebuflen - lx, in hex_dump_to_buffer()
182 ret = snprintf(linebuf + lx, linebuflen - lx, in hex_dump_to_buffer()
194 linebuf[lx++] = hex_asc_hi(ch); in hex_dump_to_buffer()
197 linebuf[lx++] = hex_asc_lo(ch); in hex_dump_to_buffer()
200 linebuf[lx++] = ' '; in hex_dump_to_buffer()
211 linebuf[lx++] = ' '; in hex_dump_to_buffer()
217 linebuf[lx++] = (isascii(ch) && isprint(ch)) ? ch : '.'; in hex_dump_to_buffer()
220 linebuf[lx] = '\0'; in hex_dump_to_buffer()
[all …]
Dseq_buf.c399 unsigned char linebuf[32 * 3 + 2 + 32 + 1]; local
410 linebuf, sizeof(linebuf), ascii);
415 prefix_str, ptr + i, linebuf);
419 prefix_str, i, linebuf);
422 ret = seq_buf_printf(s, "%s%s\n", prefix_str, linebuf);
/linux-6.6.21/tools/power/cpupower/lib/
Dcpufreq.c93 char linebuf[MAX_LINE_LEN]; in cpufreq_get_sysfs_value_from_table() local
99 len = sysfs_cpufreq_read_file(cpu, table[index], linebuf, in cpufreq_get_sysfs_value_from_table()
100 sizeof(linebuf)); in cpufreq_get_sysfs_value_from_table()
105 value = strtoul(linebuf, &endp, 0); in cpufreq_get_sysfs_value_from_table()
107 if (endp == linebuf || errno == ERANGE) in cpufreq_get_sysfs_value_from_table()
138 char linebuf[MAX_LINE_LEN]; in sysfs_cpufreq_get_one_string() local
146 linebuf, sizeof(linebuf)); in sysfs_cpufreq_get_one_string()
150 result = strdup(linebuf); in sysfs_cpufreq_get_one_string()
275 char linebuf[MAX_LINE_LEN]; in cpufreq_get_available_governors() local
280 linebuf, sizeof(linebuf)); in cpufreq_get_available_governors()
[all …]
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()
Dacpi_cppc.c42 char linebuf[MAX_LINE_LEN]; in acpi_cppc_get_data() local
49 linebuf, sizeof(linebuf)); in acpi_cppc_get_data()
53 value = strtoull(linebuf, &endp, 0); in acpi_cppc_get_data()
55 if (endp == linebuf || errno == ERANGE) in acpi_cppc_get_data()
Dcpupower.c80 char linebuf[MAX_LINE_LEN]; in cpupower_is_cpu_online() local
101 numread = read(fd, linebuf, MAX_LINE_LEN - 1); in cpupower_is_cpu_online()
106 linebuf[numread] = '\0'; in cpupower_is_cpu_online()
109 value = strtoull(linebuf, &endp, 0); in cpupower_is_cpu_online()
119 char linebuf[MAX_LINE_LEN]; in sysfs_topology_read_file() local
125 if (cpupower_read_sysfs(path, linebuf, MAX_LINE_LEN) == 0) in sysfs_topology_read_file()
127 *result = strtol(linebuf, &endp, 0); in sysfs_topology_read_file()
128 if (endp == linebuf || errno == ERANGE) in sysfs_topology_read_file()
/linux-6.6.21/drivers/net/wireless/ath/ath12k/
Ddebug.c79 char linebuf[256]; in ath12k_dbg_dump() local
89 linebuflen += scnprintf(linebuf + linebuflen, in ath12k_dbg_dump()
90 sizeof(linebuf) - linebuflen, in ath12k_dbg_dump()
95 linebuf + linebuflen, in ath12k_dbg_dump()
96 sizeof(linebuf) - linebuflen, true); in ath12k_dbg_dump()
97 dev_dbg(ab->dev, "%s\n", linebuf); in ath12k_dbg_dump()
/linux-6.6.21/drivers/net/wireless/ath/ath11k/
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-6.6.21/drivers/media/test-drivers/vivid/
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-6.6.21/tools/power/x86/x86_energy_perf_policy/
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-6.6.21/tools/perf/
Dbuiltin-ftrace.c685 static void make_histogram(int buckets[], char *buf, size_t len, char *linebuf, in make_histogram() argument
700 strcat(linebuf, p); in make_histogram()
714 if (linebuf[0] == '#') in make_histogram()
718 p = strchr(linebuf, ')'); in make_histogram()
720 p = linebuf; in make_histogram()
746 linebuf[0] = '\0'; in make_histogram()
750 strcat(linebuf, p); in make_histogram()
/linux-6.6.21/drivers/ata/
Dsata_mv.c1254 unsigned char linebuf[38]; in mv_dump_mem() local
1258 o += scnprintf(linebuf + o, sizeof(linebuf) - o, in mv_dump_mem()
1263 __func__, start + b, linebuf); in mv_dump_mem()
1271 unsigned char linebuf[38]; in mv_dump_pci_cfg() local
1276 o += snprintf(linebuf + o, sizeof(linebuf) - o, in mv_dump_pci_cfg()
1281 __func__, b, linebuf); in mv_dump_pci_cfg()
/linux-6.6.21/drivers/net/wireless/ath/ath10k/
Ddebug.c2698 char linebuf[256]; in ath10k_dbg_dump() local
2708 linebuflen += scnprintf(linebuf + linebuflen, in ath10k_dbg_dump()
2709 sizeof(linebuf) - linebuflen, in ath10k_dbg_dump()
2714 linebuf + linebuflen, in ath10k_dbg_dump()
2715 sizeof(linebuf) - linebuflen, true); in ath10k_dbg_dump()
2716 dev_printk(KERN_DEBUG, ar->dev, "%s\n", linebuf); in ath10k_dbg_dump()
/linux-6.6.21/include/linux/
Dprintk.h710 int groupsize, char *linebuf, size_t linebuflen,