/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/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/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 153 value = strtoull(linebuf, &endp, 0); in cpuidle_state_get_one_value() 155 if (endp == linebuf || errno == ERANGE) in cpuidle_state_get_one_value()
|
/linux/tools/power/x86/x86_energy_perf_policy/ |
H A D | x86_energy_perf_policy.c | 378 char *startp, *endp; in parse_cmdline_cpu() local 401 end_cpu = strtol(startp, &endp, 10); in parse_cmdline_cpu() 402 if (startp == endp) in parse_cmdline_cpu() 411 startp = endp; in parse_cmdline_cpu() 446 cpu = strtol(startp, &endp, 10); in parse_cmdline_cpu() 447 if (startp == endp) in parse_cmdline_cpu() 452 startp = endp; in parse_cmdline_cpu() 461 char *startp, *endp; in parse_cmdline_pkg() local 481 end_pkg = strtol(startp, &endp, 10); in parse_cmdline_pkg() 482 if (startp == endp) in parse_cmdline_pkg() [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/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/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/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 | 80 const uint8_t *endp; in digsig_verify_rsa() local 108 endp = ukp->data + ukp->datalen; in digsig_verify_rsa() 111 unsigned int remaining = endp - datap; in digsig_verify_rsa()
|
H A D | vsprintf.c | 78 static unsigned long long simple_strntoull(const char *startp, char **endp, unsigned int base, size… in simple_strntoull() argument 96 if (endp) in simple_strntoull() 97 *endp = (char *)cp; in simple_strntoull() 111 unsigned long long simple_strtoull(const char *cp, char **endp, unsigned int base) in simple_strtoull() argument 113 return simple_strntoull(cp, endp, base, INT_MAX); in simple_strtoull() 125 unsigned long simple_strtoul(const char *cp, char **endp, unsigned int base) in simple_strtoul() argument 127 return simple_strtoull(cp, endp, base); in simple_strtoul() 131 unsigned long simple_strntoul(const char *cp, char **endp, unsigned int base, in simple_strntoul() argument 134 return simple_strntoull(cp, endp, base, max_chars); in simple_strntoul() 146 long simple_strtol(const char *cp, char **endp, unsigned int base) in simple_strtol() argument [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()
|
/linux/drivers/spi/ |
H A D | spi-tle62x0.c | 154 char *endp; in tle62x0_gpio_store() local 156 val = simple_strtoul(buf, &endp, 0); in tle62x0_gpio_store() 157 if (buf == endp) in tle62x0_gpio_store()
|
/linux/drivers/mtd/ubi/ |
H A D | build.c | 1214 char *endp; in open_mtd_device() local 1216 mtd_num = simple_strtoul(mtd_dev, &endp, 0); in open_mtd_device() 1217 if (*endp != '\0' || mtd_dev == endp) { in open_mtd_device() 1434 char *endp; in bytes_str_to_int() local 1437 result = simple_strtoul(str, &endp, 0); in bytes_str_to_int() 1438 if (str == endp || result >= INT_MAX) { in bytes_str_to_int() 1443 switch (*endp) { in bytes_str_to_int()
|
/linux/drivers/of/ |
H A D | fdt.c | 852 const __be32 *prop, *endp; in early_init_dt_check_for_usable_mem_range() local 865 endp = prop + (len / sizeof(__be32)); in early_init_dt_check_for_usable_mem_range() 866 for (i = 0; i < MAX_USABLE_RANGES && prop < endp; i++) { in early_init_dt_check_for_usable_mem_range() 1005 const __be32 *reg, *endp; in early_init_dt_scan_memory() local 1022 endp = reg + (l / sizeof(__be32)); in early_init_dt_scan_memory() 1028 while ((endp - reg) >= (dt_root_addr_cells + dt_root_size_cells)) { in early_init_dt_scan_memory()
|
/linux/net/bridge/ |
H A D | br_sysfs_if.c | 321 char *endp; in brport_store() local 342 val = simple_strtoul(buf, &endp, 0); in brport_store() 343 if (endp == buf) in brport_store()
|
/linux/drivers/mtd/ |
H A D | mtdoops.c | 408 char *endp; in mtdoops_init() local 425 mtd_index = simple_strtoul(mtddev, &endp, 0); in mtdoops_init() 426 if (*endp == '\0') in mtdoops_init()
|
/linux/mm/ |
H A D | memcontrol-v1.c | 1063 char *endp; in memcg_write_event_control() local 1071 efd = simple_strtoul(buf, &endp, 10); in memcg_write_event_control() 1072 if (*endp != ' ') in memcg_write_event_control() 1074 buf = endp + 1; in memcg_write_event_control() 1076 cfd = simple_strtoul(buf, &endp, 10); in memcg_write_event_control() 1077 if (*endp == '\0') in memcg_write_event_control() 1078 buf = endp; in memcg_write_event_control() 1079 else if (*endp == ' ') in memcg_write_event_control() 1080 buf = endp + 1; in memcg_write_event_control()
|