| /linux/arch/s390/boot/ |
| H A D | alternative.c | 49 char *endp; in alt_debug_parse() local 67 val = simple_strtoull(str, &endp, 0); in alt_debug_parse() 68 if (str == endp) in alt_debug_parse() 70 str = endp; in alt_debug_parse() 73 endval = simple_strtoull(str, &endp, 0); in alt_debug_parse() 74 if (str == endp) in alt_debug_parse() 76 str = endp; in alt_debug_parse() 112 char *endp; in alt_debug_setup() local 122 type = simple_strtoull(str, &endp, 0); in alt_debug_setup() 123 if (str == endp) in alt_debug_setup() [all …]
|
| H A D | ipl_parm.c | 214 char *endp; in modify_fac_list() local 223 val = simple_strtoull(str, &endp, 0); in modify_fac_list() 224 if (str == endp) in modify_fac_list() 226 str = endp; in modify_fac_list() 229 endval = simple_strtoull(str, &endp, 0); in modify_fac_list() 230 if (str == endp) in modify_fac_list() 232 str = endp; in modify_fac_list()
|
| /linux/tools/power/cpupower/utils/helpers/ |
| H A D | misc.c | 24 char *endp; in cpufreq_has_x86_boost_support() local 59 val = strtol(linebuf, &endp, 0); in cpufreq_has_x86_boost_support() 60 if (endp == linebuf || errno == ERANGE) in cpufreq_has_x86_boost_support() 92 char *endp; in cpupower_intel_get_perf_bias() local 102 val = strtol(linebuf, &endp, 0); in cpupower_intel_get_perf_bias() 103 if (endp == linebuf || errno == ERANGE) in cpupower_intel_get_perf_bias() 186 char *endp; in cpufreq_has_generic_boost_support() local 196 val = strtoul(linebuf, &endp, 0); in cpufreq_has_generic_boost_support() 197 if (endp == linebuf || errno == ERANGE) in cpufreq_has_generic_boost_support()
|
| H A D | sysfs.c | 54 char *endp; in sysfs_is_cpu_online() local 82 value = strtoull(linebuf, &endp, 0); in sysfs_is_cpu_online() 210 char *endp; in sysfs_idlestate_get_one_value() local 221 value = strtoull(linebuf, &endp, 0); in sysfs_idlestate_get_one_value() 223 if (endp == linebuf || errno == ERANGE) in sysfs_idlestate_get_one_value()
|
| /linux/drivers/firmware/efi/libstub/ |
| H A D | string.c | 133 unsigned long long simple_strtoull(const char *cp, char **endp, unsigned int base) in simple_strtoull() argument 152 if (endp) in simple_strtoull() 153 *endp = (char *)cp; in simple_strtoull() 158 long simple_strtol(const char *cp, char **endp, unsigned int base) in simple_strtol() argument 161 return -simple_strtoull(cp + 1, endp, base); in simple_strtol() 163 return simple_strtoull(cp, endp, base); in simple_strtol()
|
| /linux/drivers/mtd/devices/ |
| H A D | block2mtd.c | 353 static int ustrtoul(const char *cp, char **endp, unsigned int base) in ustrtoul() argument 355 unsigned long result = simple_strtoul(cp, endp, base); in ustrtoul() 356 switch (**endp) { in ustrtoul() 367 if ((*endp)[1] == 'i') { in ustrtoul() 368 if ((*endp)[2] == 'B') in ustrtoul() 369 (*endp) += 3; in ustrtoul() 371 (*endp) += 2; in ustrtoul() 380 char *endp; in parse_num() local 383 n = (size_t) ustrtoul(token, &endp, 0); in parse_num() 384 if (*endp) in parse_num() [all...] |
| /linux/tools/testing/selftests/gpio/ |
| H A D | gpio-line-name.c | 26 char *endp; in main() local 40 info.offset = strtoul(argv[2], &endp, 10); in main() 41 if (*endp != '\0') { in main()
|
| /linux/arch/x86/boot/ |
| H A D | string.c | 119 unsigned long long simple_strtoull(const char *cp, char **endp, unsigned int base) in simple_strtoull() argument 138 if (endp) in simple_strtoull() 139 *endp = (char *)cp; in simple_strtoull() 144 long simple_strtol(const char *cp, char **endp, unsigned int base) in simple_strtol() argument 147 return -simple_strtoull(cp + 1, endp, base); in simple_strtol() 149 return simple_strtoull(cp, endp, base); in simple_strtol()
|
| /linux/tools/power/x86/x86_energy_perf_policy/ |
| H A D | x86_energy_perf_policy.c | 402 char *startp, *endp; in parse_cmdline_cpu() local 425 end_cpu = strtol(startp, &endp, 10); in parse_cmdline_cpu() 426 if (startp == endp) in parse_cmdline_cpu() 435 startp = endp; in parse_cmdline_cpu() 470 cpu = strtol(startp, &endp, 10); in parse_cmdline_cpu() 471 if (startp == endp) in parse_cmdline_cpu() 476 startp = endp; in parse_cmdline_cpu() 485 char *startp, *endp; in parse_cmdline_pkg() local 505 end_pkg = strtol(startp, &endp, 10); in parse_cmdline_pkg() 506 if (startp == endp) in parse_cmdline_pkg() [all …]
|
| /linux/tools/power/cpupower/lib/ |
| H A D | acpi_cppc.c | 43 char *endp; in acpi_cppc_get_data() local 53 value = strtoull(linebuf, &endp, 0); in acpi_cppc_get_data() 55 if (endp == linebuf || errno == ERANGE) in acpi_cppc_get_data()
|
| /linux/arch/powerpc/platforms/pseries/ |
| H A D | lparcfg.c | 716 char *endp; in lparcfg_write() local 717 *new_entitled_ptr = (u64) simple_strtoul(tmp, &endp, 10); in lparcfg_write() 718 if (endp == tmp) in lparcfg_write() 733 char *endp; in lparcfg_write() local 734 *new_weight_ptr = (u8) simple_strtoul(tmp, &endp, 10); in lparcfg_write() 735 if (endp == tmp) in lparcfg_write() 740 char *endp; in lparcfg_write() local 741 *new_entitled_ptr = (u64) simple_strtoul(tmp, &endp, 10); in lparcfg_write() 742 if (endp == tmp) in lparcfg_write() 747 char *endp; in lparcfg_write() local [all …]
|
| /linux/samples/hid/ |
| H A D | hid_surface_dial.c | 127 char *endp = NULL; in main() local 131 l = strtol(optarg, &endp, 10); in main() 132 if (endp && *endp) in main()
|
| /linux/arch/riscv/include/asm/ |
| H A D | set_memory.h | 19 static __always_inline int set_kernel_memory(char *startp, char *endp, in set_kernel_memory() argument 24 unsigned long end = (unsigned long)endp; in set_kernel_memory() 35 static inline int set_kernel_memory(char *startp, char *endp, in set_kernel_memory() argument
|
| /linux/drivers/macintosh/ |
| H A D | windfarm_core.c | 194 char *endp; in wf_store_control() local 196 val = simple_strtoul(buf, &endp, 0); in wf_store_control() 197 while (endp < buf + count && (*endp == ' ' || *endp == '\n')) in wf_store_control() 198 ++endp; in wf_store_control() 199 if (endp - buf < count) in wf_store_control()
|
| /linux/drivers/s390/char/ |
| H A D | sclp_cpi_sys.c | 332 char *endp; in system_level_store() local 334 level = simple_strtoull(buf, &endp, 16); in system_level_store() 336 if (endp == buf) in system_level_store() 338 if (*endp == '\n') in system_level_store() 339 endp++; in system_level_store() 340 if (*endp) in system_level_store()
|
| /linux/drivers/gpio/ |
| H A D | gpiolib-acpi-quirks.c | 78 char *endp; in acpi_gpio_in_ignore_list() local 101 pin = simple_strtoul(pin_str + 1, &endp, 10); in acpi_gpio_in_ignore_list() 102 if (*endp != 0 && *endp != ',') in acpi_gpio_in_ignore_list()
|
| /linux/scripts/kconfig/ |
| H A D | conf.c | 95 char *endp; in set_randconfig_seed() local 97 seed = strtol(env, &endp, 0); in set_randconfig_seed() 98 if (*endp == '\0') in set_randconfig_seed() 193 char *endp; in conf_set_all_new_symbols() local 194 int tmp = strtol(env, &endp, 10); in conf_set_all_new_symbols() 203 env = (*endp == ':') ? endp + 1 : endp; in conf_set_all_new_symbols()
|
| /linux/tools/sched_ext/ |
| H A D | scx_flatcg.c | 77 char *endp = NULL; in read_cpu_util() local 84 v = strtoull(tok, &endp, 0); in read_cpu_util() 85 if (!endp || *endp != '\0') { in read_cpu_util()
|
| /linux/arch/arm/boot/compressed/ |
| H A D | fdt_check_mem_start.c | 68 const fdt32_t *usable, *reg, *endp; in fdt_check_mem_start() local 119 for (endp = reg + (len / sizeof(fdt32_t)); in fdt_check_mem_start() 120 endp - reg >= addr_cells + size_cells; in fdt_check_mem_start()
|
| /linux/arch/arm/mach-mvebu/ |
| H A D | board-v7.c | 70 const __be32 *reg, *endp; in mvebu_scan_mem() local 82 endp = reg + (l / sizeof(__be32)); in mvebu_scan_mem() 83 while ((endp - reg) >= (dt_root_addr_cells + dt_root_size_cells)) { in mvebu_scan_mem()
|
| /linux/drivers/media/tuners/ |
| H A D | xc2028.c | 305 const unsigned char *p, *endp; in load_all_firmwares() local 313 endp = p + fw->size; in load_all_firmwares() 344 while (p < endp) { in load_all_firmwares() 356 if (endp - p < sizeof(type) + sizeof(id) + sizeof(size)) in load_all_firmwares() 368 if (endp - p < sizeof(size)) in load_all_firmwares() 375 if (!size || size > endp - p) { in load_all_firmwares() 380 type, (unsigned long long)id, (endp - p), size); in load_all_firmwares() 547 unsigned char *p, *endp, buf[MAX_XFER_SIZE]; in load_firmware() local 564 endp = p + priv->firm[pos].size; in load_firmware() 566 while (p < endp) { in load_firmware() [all …]
|
| /linux/arch/loongarch/kernel/ |
| H A D | relocate.c | 229 char *p, *endp, *key = "initrd="; in determine_initrd_address() local 242 start = memparse(p, &endp); in determine_initrd_address() 243 if (*endp == ',') in determine_initrd_address() 244 *size = memparse(endp + 1, NULL); in determine_initrd_address()
|
| /linux/arch/x86/lib/ |
| H A D | atomic64_386_32.S | 22 .macro endp; \ 24 .purgem endp; \ 29 #define ENDP endp
|
| /linux/lib/ |
| H A D | digsig.c | 76 const uint8_t *endp; in digsig_verify_rsa() local 104 endp = ukp->data + ukp->datalen; in digsig_verify_rsa() 107 unsigned int remaining = endp - datap; in digsig_verify_rsa()
|
| /linux/net/netfilter/ |
| H A D | nf_conntrack_sip.c | 138 const char **endp, union nf_inet_addr *addr, in sip_parse_addr() argument 173 if (endp) in sip_parse_addr() 174 *endp = end; in sip_parse_addr() 183 static bool sip_parse_port(const char *dptr, const char **endp, in sip_parse_port() argument 195 if (endp) in sip_parse_port() 196 *endp = dptr; in sip_parse_port() 223 if (endp) in sip_parse_port() 224 *endp = dptr; in sip_parse_port() 282 static unsigned int sip_strtouint(const char *cp, unsigned int len, char **endp) in sip_strtouint() argument 308 if (endp) in sip_strtouint() [all …]
|