/openbmc/u-boot/lib/ |
H A D | strto.c | 33 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 D | mmc_spi.c | 38 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 D | sf.c | 86 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 D | dtimg.c | 18 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 D | bootstage.c | 19 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 D | cros_ec.c | 57 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 D | ubifs.c | 110 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()
|
/openbmc/linux/drivers/media/i2c/ccs/ |
H A D | ccs-data.c | 55 #define is_contained(var, endp) \ argument 56 (sizeof(*var) <= (endp) - (void *)(var)) 57 #define has_headroom(ptr, headroom, endp) \ argument 58 ((headroom) <= (endp) - (void *)(ptr)) 59 #define is_contained_with_headroom(var, headroom, endp) \ argument 60 (sizeof(*var) + (headroom) <= (endp) - (void *)(var)) 65 const void *endp) in ccs_data_parse_length_specifier() argument 69 if (!is_contained(__len, endp)) in ccs_data_parse_length_specifier() 81 if (!is_contained(__len2, endp)) in ccs_data_parse_length_specifier() 94 if (!is_contained(__len3, endp)) in ccs_data_parse_length_specifier() [all …]
|
/openbmc/u-boot/drivers/dfu/ |
H A D | dfu_sf.c | 74 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/u-boot/drivers/spi/ |
H A D | sandbox_spi.c | 32 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/linux/arch/s390/boot/ |
H A D | string.c | 71 unsigned long long simple_strtoull(const char *cp, char **endp, in simple_strtoull() argument 91 if (endp) in simple_strtoull() 92 *endp = (char *)cp; in simple_strtoull() 97 long simple_strtol(const char *cp, char **endp, unsigned int base) in simple_strtol() argument 100 return -simple_strtoull(cp + 1, endp, base); in simple_strtol() 102 return simple_strtoull(cp, endp, base); in simple_strtol()
|
H A D | ipl_parm.c | 225 char *endp; in modify_fac_list() local 234 val = simple_strtoull(str, &endp, 0); in modify_fac_list() 235 if (str == endp) in modify_fac_list() 237 str = endp; in modify_fac_list() 240 endval = simple_strtoull(str, &endp, 0); in modify_fac_list() 241 if (str == endp) in modify_fac_list() 243 str = endp; in modify_fac_list()
|
/openbmc/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()
|
/openbmc/u-boot/board/xilinx/zynq/ |
H A D | cmds.c | 415 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/qemu/tests/qtest/ |
H A D | test-hmp.c | 97 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 D | exports.h | 27 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);
|
/openbmc/u-boot/examples/standalone/ |
H A D | smc911x_eeprom.c | 144 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/linux/drivers/mtd/devices/ |
H A D | block2mtd.c | 348 static int ustrtoul(const char *cp, char **endp, unsigned int base) in ustrtoul() argument 350 unsigned long result = simple_strtoul(cp, endp, base); in ustrtoul() 351 switch (**endp) { in ustrtoul() 362 if ((*endp)[1] == 'i') { in ustrtoul() 363 if ((*endp)[2] == 'B') in ustrtoul() 364 (*endp) += 3; in ustrtoul() 366 (*endp) += 2; in ustrtoul() 375 char *endp; in parse_num() local 378 n = (size_t) ustrtoul(token, &endp, 0); in parse_num() 379 if (*endp) in parse_num()
|
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-daemons/ippool/ippool/ |
H A D | 0003-cli-Mark-return-of-strtol-as-long-int.patch | 9 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 D | common.c | 260 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/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()
|
/openbmc/linux/arch/powerpc/platforms/pseries/ |
H A D | lparcfg.c | 690 char *endp; in lparcfg_write() local 691 *new_entitled_ptr = (u64) simple_strtoul(tmp, &endp, 10); in lparcfg_write() 692 if (endp == tmp) in lparcfg_write() 707 char *endp; in lparcfg_write() local 708 *new_weight_ptr = (u8) simple_strtoul(tmp, &endp, 10); in lparcfg_write() 709 if (endp == tmp) in lparcfg_write() 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() 721 char *endp; in lparcfg_write() local [all …]
|
/openbmc/linux/arch/x86/boot/ |
H A D | string.c | 120 unsigned long long simple_strtoull(const char *cp, char **endp, unsigned int base) in simple_strtoull() argument 139 if (endp) in simple_strtoull() 140 *endp = (char *)cp; in simple_strtoull() 145 long simple_strtol(const char *cp, char **endp, unsigned int base) in simple_strtol() argument 148 return -simple_strtoull(cp + 1, endp, base); in simple_strtol() 150 return simple_strtoull(cp, endp, base); in simple_strtol()
|
/openbmc/linux/init/ |
H A D | do_mounts_initrd.c | 55 char *endp; in early_initrdmem() local 57 start = memparse(p, &endp); in early_initrdmem() 58 if (*endp == ',') { in early_initrdmem() 59 size = memparse(endp + 1, NULL); in early_initrdmem()
|
/openbmc/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()
|