Home
last modified time | relevance | path

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

/linux-6.1.9/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.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-6.1.9/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.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-6.1.9/tools/power/cpupower/utils/helpers/
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 …]
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()
/linux-6.1.9/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.1.9/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.1.9/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.1.9/tools/perf/
Dbuiltin-ftrace.c683 static void make_histogram(int buckets[], char *buf, size_t len, char *linebuf, in make_histogram() argument
698 strcat(linebuf, p); in make_histogram()
712 if (linebuf[0] == '#') in make_histogram()
716 p = strchr(linebuf, ')'); in make_histogram()
718 p = linebuf; in make_histogram()
744 linebuf[0] = '\0'; in make_histogram()
748 strcat(linebuf, p); in make_histogram()
/linux-6.1.9/drivers/ata/
Dsata_mv.c1254 unsigned char linebuf[38]; in mv_dump_mem() local
1258 o += snprintf(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.1.9/drivers/net/wireless/ath/ath10k/
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-6.1.9/include/linux/
Dprintk.h712 int groupsize, char *linebuf, size_t linebuflen,