Home
last modified time | relevance | path

Searched refs:endp (Results 1 – 25 of 50) sorted by relevance

12

/linux/drivers/firmware/efi/libstub/
H A Dstring.c133 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 Dmisc.c55 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 Dsysfs.c54 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 Dgpio-line-name.c26 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 Dacpi_cppc.c43 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 Dcpuidle.c142 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 Dx86_energy_perf_policy.c378 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 Dhid_surface_dial.c127 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 Dwindfarm_core.c194 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 Dgpiolib-acpi-quirks.c78 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 Dconf.c95 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 Dfdt_check_mem_start.c68 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 Dboard-v7.c70 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 Dxc2028.c305 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 Dparser.c140 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 Ddigsig.c80 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 Dvsprintf.c78 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 Datomic64_386_32.S22 .macro endp; \
24 .purgem endp; \
29 #define ENDP endp
/linux/drivers/net/usb/
H A Dipheth.c577 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 Dspi-tle62x0.c154 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 Dbuild.c1214 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 Dfdt.c852 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 Dbr_sysfs_if.c321 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 Dmtdoops.c408 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 Dmemcontrol-v1.c1063 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()

12