| /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/tools/power/cpupower/utils/helpers/ |
| H A D | misc.c | 55 char *endp; in cpupower_intel_get_perf_bias() local 65 val = strtol(linebuf, &endp, 0); in cpupower_intel_get_perf_bias() 66 if (endp == linebuf || errno == ERANGE) in cpupower_intel_get_perf_bias() 149 char *endp; in cpufreq_has_generic_boost_support() local 159 val = strtoul(linebuf, &endp, 0); in cpufreq_has_generic_boost_support() 160 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/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()
|
| /linux/arch/x86/boot/ |
| H A D | string.c | 112 unsigned long long simple_strtoull(const char *cp, char **endp, unsigned int base) in simple_strtoull() argument 131 if (endp) in simple_strtoull() 132 *endp = (char *)cp; in simple_strtoull() 137 long simple_strtol(const char *cp, char **endp, unsigned int base) in simple_strtol() argument 140 return -simple_strtoull(cp + 1, endp, base); in simple_strtol() 142 return simple_strtoull(cp, endp, base); in simple_strtol()
|
| /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/powerpc/platforms/pseries/ |
| H A D | lparcfg.c | 714 char *endp; in lparcfg_write() local 715 *new_entitled_ptr = (u64) simple_strtoul(tmp, &endp, 10); in lparcfg_write() 716 if (endp == tmp) in lparcfg_write() 731 char *endp; in lparcfg_write() local 732 *new_weight_ptr = (u8) simple_strtoul(tmp, &endp, 10); in lparcfg_write() 733 if (endp == tmp) in lparcfg_write() 738 char *endp; in lparcfg_write() local 739 *new_entitled_ptr = (u64) simple_strtoul(tmp, &endp, 10); in lparcfg_write() 740 if (endp == tmp) in lparcfg_write() 745 char *endp; in lparcfg_write() local [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()
|
| H A D | cpuidle.c | 142 char *endp; in cpuidle_state_get_one_value() local 154 value = strtoull(linebuf, &endp, 0); in cpuidle_state_get_one_value() 156 if (endp == linebuf || errno == ERANGE) in cpuidle_state_get_one_value()
|
| /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/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/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/tools/power/x86/x86_energy_perf_policy/ |
| H A D | x86_energy_perf_policy.c | 381 char *startp, *endp; in parse_cmdline_cpu() local 404 end_cpu = strtol(startp, &endp, 10); in parse_cmdline_cpu() 405 if (startp == endp) in parse_cmdline_cpu() 414 startp = endp; in parse_cmdline_cpu() 449 cpu = strtol(startp, &endp, 10); in parse_cmdline_cpu() 450 if (startp == endp) in parse_cmdline_cpu() 455 startp = endp; in parse_cmdline_cpu() 464 char *startp, *endp; in parse_cmdline_pkg() local 484 end_pkg = strtol(startp, &endp, 10); in parse_cmdline_pkg() 485 if (startp == endp) in parse_cmdline_pkg() [all …]
|
| /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/lib/ |
| H A D | parser.c | 140 char *endp; in match_number() local 148 val = simple_strtol(buf, &endp, base); in match_number() 149 if (endp == buf) in match_number()
|
| 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/drivers/video/fbdev/ |
| H A D | sh_mobile_lcdcfb.c | 1201 char *endp; in overlay_alpha_store() local 1203 alpha = simple_strtoul(buf, &endp, 10); in overlay_alpha_store() 1204 if (isspace(*endp)) in overlay_alpha_store() 1205 endp++; in overlay_alpha_store() 1207 if (endp - buf != count) in overlay_alpha_store() 1239 char *endp; in overlay_mode_store() local 1241 mode = simple_strtoul(buf, &endp, 10); in overlay_mode_store() 1242 if (isspace(*endp)) in overlay_mode_store() 1243 endp++; in overlay_mode_store() 1245 if (endp - buf != count) in overlay_mode_store() [all …]
|
| /linux/arch/x86/lib/ |
| H A D | atomic64_386_32.S | 22 .macro endp; \ 24 .purgem endp; \ 29 #define ENDP endp
|
| /linux/drivers/net/usb/ |
| H A D | ipheth.c | 577 struct usb_endpoint_descriptor *endp; in ipheth_probe() local 607 endp = &hintf->endpoint[i].desc; in ipheth_probe() 608 if (usb_endpoint_is_bulk_in(endp)) in ipheth_probe() 609 dev->bulk_in = endp->bEndpointAddress; in ipheth_probe() 610 else if (usb_endpoint_is_bulk_out(endp)) in ipheth_probe() 611 dev->bulk_out = endp->bEndpointAddress; in ipheth_probe()
|