Home
last modified time | relevance | path

Searched refs:endp (Results 1 – 25 of 49) 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/arch/x86/boot/
H A Dstring.c112 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 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/arch/powerpc/platforms/pseries/
H A Dlparcfg.c714 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 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/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/arch/riscv/include/asm/
H A Dset_memory.h19 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 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/tools/power/x86/x86_energy_perf_policy/
H A Dx86_energy_perf_policy.c381 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/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/tools/sched_ext/
H A Dscx_flatcg.c77 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 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/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.c76 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()
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/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/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/fs/lockd/
H A Dsvc.c484 char *endp; \
485 __typeof__(type) num = which_strtol(val, &endp, 0); \
486 if (endp == val || *endp || num < (min) || num > (max)) \

12