Home
last modified time | relevance | path

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

12

/openbmc/u-boot/lib/
H A Dstrto.c33 unsigned long simple_strtoul(const char *cp, char **endp, in simple_strtoul() argument
47 if (endp) in simple_strtoul()
48 *endp = (char *)cp; in simple_strtoul()
77 long simple_strtol(const char *cp, char **endp, unsigned int base) in simple_strtol() argument
80 return -simple_strtoul(cp + 1, endp, base); in simple_strtol()
82 return simple_strtoul(cp, endp, base); in simple_strtol()
85 unsigned long ustrtoul(const char *cp, char **endp, unsigned int base) in ustrtoul() argument
87 unsigned long result = simple_strtoul(cp, endp, base); in ustrtoul()
88 switch (tolower(**endp)) { in ustrtoul()
97 (*endp)++; in ustrtoul()
[all …]
/openbmc/u-boot/cmd/
H A Dmmc_spi.c38 char *endp; in do_mmc_spi() local
44 cs = simple_strtoul(argv[1], &endp, 0); in do_mmc_spi()
45 if (*argv[1] == 0 || (*endp != 0 && *endp != ':')) in do_mmc_spi()
47 if (*endp == ':') { in do_mmc_spi()
48 if (endp[1] == 0) in do_mmc_spi()
51 cs = simple_strtoul(endp + 1, &endp, 0); in do_mmc_spi()
52 if (*endp != 0) in do_mmc_spi()
56 speed = simple_strtoul(argv[2], &endp, 0); in do_mmc_spi()
57 if (*argv[2] == 0 || *endp != 0) in do_mmc_spi()
61 mode = simple_strtoul(argv[3], &endp, 16); in do_mmc_spi()
[all …]
H A Dsf.c86 char *endp; in do_spi_flash_probe() local
97 cs = simple_strtoul(argv[1], &endp, 0); in do_spi_flash_probe()
98 if (*argv[1] == 0 || (*endp != 0 && *endp != ':')) in do_spi_flash_probe()
100 if (*endp == ':') { in do_spi_flash_probe()
101 if (endp[1] == 0) in do_spi_flash_probe()
105 cs = simple_strtoul(endp + 1, &endp, 0); in do_spi_flash_probe()
106 if (*endp != 0) in do_spi_flash_probe()
112 speed = simple_strtoul(argv[2], &endp, 0); in do_spi_flash_probe()
113 if (*argv[2] == 0 || *endp != 0) in do_spi_flash_probe()
117 mode = simple_strtoul(argv[3], &endp, 16); in do_spi_flash_probe()
[all …]
H A Ddtimg.c18 char *endp; in do_dtimg_dump() local
24 hdr_addr = simple_strtoul(argv[1], &endp, 16); in do_dtimg_dump()
25 if (*endp != '\0') { in do_dtimg_dump()
44 char *endp; in dtimg_get_fdt() local
52 hdr_addr = simple_strtoul(argv[1], &endp, 16); in dtimg_get_fdt()
53 if (*endp != '\0') { in dtimg_get_fdt()
63 index = simple_strtoul(argv[2], &endp, 0); in dtimg_get_fdt()
64 if (*endp != '\0') { in dtimg_get_fdt()
H A Dbootstage.c19 char *endp; in get_base_size() local
25 *basep = simple_strtoul(argv[1], &endp, 16); in get_base_size()
26 if (*argv[1] == 0 || *endp != 0) in get_base_size()
30 *sizep = simple_strtoul(argv[2], &endp, 16); in get_base_size()
31 if (*argv[2] == 0 || *endp != 0) in get_base_size()
H A Dubifs.c110 char *endp; in do_ubifs_load() local
123 addr = simple_strtoul(argv[1], &endp, 16); in do_ubifs_load()
124 if (endp == argv[1]) in do_ubifs_load()
130 size = simple_strtoul(argv[3], &endp, 16); in do_ubifs_load()
131 if (endp == argv[3]) in do_ubifs_load()
H A Dcros_ec.c57 char *endp; in do_read_write() local
66 addr = simple_strtoul(argv[3], &endp, 16); in do_read_write()
67 if (*argv[3] == 0 || *endp != 0) in do_read_write()
70 size = simple_strtoul(argv[4], &endp, 16); in do_read_write()
71 if (*argv[4] == 0 || *endp != 0) in do_read_write()
327 char *endp; in do_cros_ec() local
331 index = simple_strtoul(argv[2], &endp, 10); in do_cros_ec()
332 if (*argv[2] == 0 || *endp != 0) in do_cros_ec()
335 state = simple_strtoul(argv[3], &endp, 10); in do_cros_ec()
336 if (*argv[3] == 0 || *endp != 0) in do_cros_ec()
H A Dfastboot.c42 char *endp; in do_fastboot_usb() local
49 controller_index = simple_strtoul(usb_controller, &endp, 0); in do_fastboot_usb()
50 if (*endp != '\0') { in do_fastboot_usb()
H A Defidebug.c477 char *endp; in do_efi_boot_add() local
492 id = (int)simple_strtoul(argv[1], &endp, 16); in do_efi_boot_add()
493 if (*endp != '\0' || id > 0xffff) in do_efi_boot_add()
568 char *endp; in do_efi_boot_rm() local
578 id = (int)simple_strtoul(argv[1], &endp, 16); in do_efi_boot_rm()
579 if (*endp != '\0' || id > 0xffff) in do_efi_boot_rm()
837 char *endp; in do_efi_boot_next() local
844 bootnext = (u16)simple_strtoul(argv[1], &endp, 16); in do_efi_boot_next()
845 if (*endp != '\0' || bootnext > 0xffff) { in do_efi_boot_next()
881 char *endp; in do_efi_boot_order() local
[all …]
H A Dpart.c120 char *endp; in do_part_info() local
134 part = simple_strtoul(argv[2], &endp, 0); in do_part_info()
135 if (*endp == '\0') { in do_part_info()
H A Dbootm.c110 char *endp; in do_bootm() local
112 simple_strtoul(argv[0], &endp, 16); in do_bootm()
121 if ((*endp != 0) && (*endp != ':') && (*endp != '#')) in do_bootm()
/openbmc/u-boot/drivers/spi/
H A Dsandbox_spi.c32 char *endp; in sandbox_spi_parse_spec() local
34 *bus = simple_strtoul(arg, &endp, 0); in sandbox_spi_parse_spec()
35 if (*endp != ':' || *bus >= CONFIG_SANDBOX_SPI_MAX_BUS) in sandbox_spi_parse_spec()
38 *cs = simple_strtoul(endp + 1, &endp, 0); in sandbox_spi_parse_spec()
39 if (*endp != ':' || *cs >= CONFIG_SANDBOX_SPI_MAX_CS) in sandbox_spi_parse_spec()
42 return endp + 1; in sandbox_spi_parse_spec()
/openbmc/u-boot/drivers/dfu/
H A Ddfu_sf.c74 char *s, *endp; in parse_dev() local
78 if (!s || !*s || (bus = simple_strtoul(s, &endp, 0), *endp)) { in parse_dev()
84 if (!s || !*s || (cs = simple_strtoul(s, &endp, 0), *endp)) { in parse_dev()
91 speed = simple_strtoul(s, &endp, 0); in parse_dev()
92 if (*endp || !speed) { in parse_dev()
100 mode = simple_strtoul(s, &endp, 0); in parse_dev()
101 if (*endp || mode > 3) { in parse_dev()
/openbmc/qemu/tests/qtest/
H A Dtest-hmp.c97 char *resp, *info, *info_buf, *endp; in test_info_commands() local
104 endp = strchr(&info[5], ' '); in test_info_commands()
105 g_assert(endp != NULL); in test_info_commands()
106 *endp = '\0'; in test_info_commands()
114 info = strchr(endp + 1, '\n'); in test_info_commands()
/openbmc/u-boot/include/
H A Dexports.h27 unsigned long simple_strtoul(const char *cp, char **endp, unsigned int base);
31 long simple_strtol(const char *cp, char **endp, unsigned int base);
33 unsigned long ustrtoul(const char *cp, char **endp, unsigned int base);
34 unsigned long long ustrtoull(const char *cp, char **endp, unsigned int base);
H A Dvsprintf.h13 ulong simple_strtoul(const char *cp, char **endp, unsigned int base);
41 unsigned long long simple_strtoull(const char *cp, char **endp,
43 long simple_strtol(const char *cp, char **endp, unsigned int base);
/openbmc/u-boot/board/xilinx/zynq/
H A Dcmds.c415 char *endp; in do_zynq_rsa() local
417 src_ptr = simple_strtoul(argv[2], &endp, 16); in do_zynq_rsa()
418 if (*argv[2] == 0 || *endp != 0) in do_zynq_rsa()
431 char *endp; in zynq_decrypt_image() local
435 srcaddr = simple_strtoul(argv[2], &endp, 16); in zynq_decrypt_image()
436 if (*argv[2] == 0 || *endp != 0) in zynq_decrypt_image()
438 srclen = simple_strtoul(argv[3], &endp, 16); in zynq_decrypt_image()
439 if (*argv[3] == 0 || *endp != 0) in zynq_decrypt_image()
441 dstaddr = simple_strtoul(argv[4], &endp, 16); in zynq_decrypt_image()
442 if (*argv[4] == 0 || *endp != 0) in zynq_decrypt_image()
[all …]
/openbmc/u-boot/examples/standalone/
H A Dsmc911x_eeprom.c144 char *endp; in write_stuff() local
166 reg = simple_strtoul(line, &endp, 16); in write_stuff()
167 if (line == endp) in write_stuff()
171 line = skip_space(endp); in write_stuff()
172 value = simple_strtoul(line, &endp, 16); in write_stuff()
173 if (line == endp) in write_stuff()
177 line = skip_space(endp); in write_stuff()
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-daemons/ippool/ippool/
H A D0003-cli-Mark-return-of-strtol-as-long-int.patch9 if ((*endp == '\0') && (labs(tmp) < 32768)) {
28 char *endp;
37 char *endp;
46 char *endp;
55 char *endp;
/openbmc/u-boot/board/keymile/common/
H A Dcommon.c260 char *endp; in do_checkboardidhwk() local
279 bid = simple_strtoul(rest, &endp, 16); in do_checkboardidhwk()
281 if (*endp == '_') { in do_checkboardidhwk()
282 rest = endp + 1; in do_checkboardidhwk()
287 hwkey = simple_strtoul(rest, &endp, 16); in do_checkboardidhwk()
288 rest = endp; in do_checkboardidhwk()
/openbmc/u-boot/include/linux/
H A Dlibfdt_env.h28 #define strtoul(cp, endp, base) simple_strtoul(cp, endp, base) argument
H A Dstring.h123 unsigned long ustrtoul(const char *cp, char **endp, unsigned int base);
124 unsigned long long ustrtoull(const char *cp, char **endp, unsigned int base);
/openbmc/u-boot/board/ti/ks2_evm/
H A Dboard.c109 char *endp; in ft_board_setup() local
144 start[0] += ustrtoul(env, &endp, 0); in ft_board_setup()
145 size[0] -= ustrtoul(env, &endp, 0); in ft_board_setup()
150 size[0] -= ustrtoul(env, &endp, 0); in ft_board_setup()
/openbmc/u-boot/board/synopsys/hsdk/
H A Denv-lib.c250 char *endp = argv[1]; in arg_read_set() local
253 map[i].val->val = simple_strtoul(argv[1], &endp, 16); in arg_read_set()
255 map[i].val->val = simple_strtoul(argv[1], &endp, 10); in arg_read_set()
259 if (*endp == '\0') in arg_read_set()
/openbmc/u-boot/drivers/mtd/ubi/
H A Dbuild.c1220 char *endp; in open_mtd_device() local
1222 mtd_num = simple_strtoul(mtd_dev, &endp, 0); in open_mtd_device()
1223 if (*endp != '\0' || mtd_dev == endp) { in open_mtd_device()
1397 char *endp; in bytes_str_to_int() local
1400 result = simple_strtoul(str, &endp, 0); in bytes_str_to_int()
1401 if (str == endp || result >= INT_MAX) { in bytes_str_to_int()
1406 switch (*endp) { in bytes_str_to_int()
1413 if (endp[1] == 'i' && endp[2] == 'B') in bytes_str_to_int()
1414 endp += 2; in bytes_str_to_int()

12