| /linux/tools/power/cpupower/utils/helpers/ |
| H A D | misc.c | 52 char linebuf[MAX_LINE_LEN]; in cpupower_intel_get_perf_bias() local 62 if (cpupower_read_sysfs(path, linebuf, MAX_LINE_LEN) == 0) in cpupower_intel_get_perf_bias() 65 val = strtol(linebuf, &endp, 0); in cpupower_intel_get_perf_bias() 66 if (endp == linebuf || errno == ERANGE) in cpupower_intel_get_perf_bias() 75 char linebuf[3] = {}; in cpupower_intel_set_perf_bias() local 81 snprintf(linebuf, sizeof(linebuf), "%d", val); in cpupower_intel_set_perf_bias() 83 if (cpupower_write_sysfs(path, linebuf, 3) <= 0) in cpupower_intel_set_perf_bias() 92 char linebuf[30] = {}; in cpupower_set_epp() local 100 snprintf(linebuf, sizeof(linebuf), "%s", epp); in cpupower_set_epp() 102 if (cpupower_write_sysfs(path, linebuf, 30) <= 0) in cpupower_set_epp() [all …]
|
| H A 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 …]
|
| /linux/lib/ |
| H A 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 …]
|
| H A D | seq_buf.c | 408 unsigned char linebuf[32 * 3 + 2 + 32 + 1]; local 419 linebuf, sizeof(linebuf), ascii); 424 prefix_str, ptr + i, linebuf); 428 prefix_str, i, linebuf); 431 ret = seq_buf_printf(s, "%s%s\n", prefix_str, linebuf);
|
| /linux/tools/power/cpupower/lib/ |
| H A D | cpuidle.c | 141 char linebuf[MAX_LINE_LEN]; in cpuidle_state_get_one_value() local 149 linebuf, sizeof(linebuf)); in cpuidle_state_get_one_value() 153 value = strtoull(linebuf, &endp, 0); in cpuidle_state_get_one_value() 155 if (endp == linebuf || errno == ERANGE) in cpuidle_state_get_one_value() 179 char linebuf[MAX_LINE_LEN]; in cpuidle_state_get_one_string() local 188 linebuf, sizeof(linebuf)); in cpuidle_state_get_one_string() 192 result = strdup(linebuf); in cpuidle_state_get_one_string() 353 char linebuf[MAX_LINE_LE in sysfs_cpuidle_get_one_string() 352 char linebuf[MAX_LINE_LEN]; sysfs_cpuidle_get_one_string() local [all...] |
| H A D | acpi_cppc.c | 42 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()
|
| /linux/drivers/net/wireless/ath/ath12k/ |
| H A D | debug.c | 81 char linebuf[256]; in ath12k_dbg_dump() local 91 linebuflen += scnprintf(linebuf + linebuflen, in ath12k_dbg_dump() 92 sizeof(linebuf) - linebuflen, in ath12k_dbg_dump() 97 linebuf + linebuflen, in ath12k_dbg_dump() 98 sizeof(linebuf) - linebuflen, true); in ath12k_dbg_dump() 99 dev_dbg(ab->dev, "%s\n", linebuf); in ath12k_dbg_dump()
|
| /linux/drivers/net/wireless/ath/ath11k/ |
| H A D | debug.c | 85 char linebuf[256]; in ath11k_dbg_dump() local 95 linebuflen += scnprintf(linebuf + linebuflen, in ath11k_dbg_dump() 96 sizeof(linebuf) - linebuflen, in ath11k_dbg_dump() 101 linebuf + linebuflen, in ath11k_dbg_dump() 102 sizeof(linebuf) - linebuflen, true); in ath11k_dbg_dump() 103 dev_printk(KERN_DEBUG, ab->dev, "%s\n", linebuf); in ath11k_dbg_dump()
|
| /linux/tools/power/x86/x86_energy_perf_policy/ |
| H A D | x86_energy_perf_policy.c | 860 char linebuf[3]; in get_epb_sysfs() local 869 if (!read_sysfs(path, linebuf, 3)) in get_epb_sysfs() 872 val = strtol(linebuf, &endp, 0); in get_epb_sysfs() 873 if (endp == linebuf || errno == ERANGE) in get_epb_sysfs() 882 char linebuf[3]; in set_epb_sysfs() local 890 snprintf(linebuf, sizeof(linebuf), "%d", val); in set_epb_sysfs() 892 ret = write_sysfs(path, linebuf, 3); in set_epb_sysfs() 896 val = strtol(linebuf, &endp, 0); in set_epb_sysfs() 897 if (endp == linebuf || errno == ERANGE) in set_epb_sysfs()
|
| /linux/tools/perf/ |
| H A D | builtin-ftrace.c | 853 char *buf, size_t len, char *linebuf) in make_histogram() argument 870 strcat(linebuf, p); in make_histogram() 884 if (linebuf[0] == '#') in make_histogram() 888 p = strchr(linebuf, ')'); in make_histogram() 890 p = linebuf; in make_histogram() 934 linebuf[0] = '\0'; in make_histogram() 938 strcat(linebuf, p); in make_histogram()
|
| /linux/drivers/net/wireless/ath/ath10k/ |
| H A D | debug.c | 2682 char linebuf[256]; in ath10k_dbg_dump() local 2692 linebuflen += scnprintf(linebuf + linebuflen, in ath10k_dbg_dump() 2693 sizeof(linebuf) - linebuflen, in ath10k_dbg_dump() 2698 linebuf + linebuflen, in ath10k_dbg_dump() 2699 sizeof(linebuf) - linebuflen, true); in ath10k_dbg_dump() 2700 dev_printk(KERN_DEBUG, ar->dev, "%s\n", linebuf); in ath10k_dbg_dump()
|
| /linux/drivers/ata/ |
| H A D | sata_mv.c | 1223 unsigned char linebuf[38]; in mv_dump_mem() local 1227 o += scnprintf(linebuf + o, sizeof(linebuf) - o, in mv_dump_mem() 1232 __func__, start + b, linebuf); in mv_dump_mem() 1240 unsigned char linebuf[38]; in mv_dump_pci_cfg() local 1245 o += snprintf(linebuf + o, sizeof(linebuf) - o, in mv_dump_pci_cfg() 1250 __func__, b, linebuf); in mv_dump_pci_cfg()
|
| /linux/include/linux/ |
| H A D | printk.h | 767 int groupsize, char *linebuf, size_t linebuflen,
|