/kernel/linux/linux-5.10/lib/ |
D | hexdump.c | 128 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 …]
|
D | seq_buf.c | 367 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);
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath11k/ |
D | debug.c | 82 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()
|
/kernel/linux/linux-5.10/drivers/media/test-drivers/vivid/ |
D | vivid-vbi-gen.c | 118 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()
|
/kernel/linux/linux-5.10/drivers/tty/ |
D | n_r3964.c | 167 char linebuf[16 * 3 + 1]; in dump_block() local 171 sprintf(linebuf + 3 * j, "%02x ", block[i + j]); in dump_block() 173 linebuf[3 * j] = '\0'; in dump_block() 174 TRACE_PS("%s", linebuf); in dump_block()
|
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath10k/ |
D | debug.c | 2697 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()
|
/kernel/linux/linux-5.10/include/linux/ |
D | printk.h | 573 int groupsize, char *linebuf, size_t linebuflen,
|