/u-boot/env/ |
A D | attr.c | 46 int entry_len = strlen(entry); in env_attr_walk() 94 if (strlen(name) != 0) { in env_attr_walk() 124 char regex[strlen(name) + 3]; in regex_callback() 132 strlen(cbp->searched_for), caps)) { in regex_callback() 138 cbp->regex = malloc(strlen(regex) + 1); in regex_callback() 147 cbp->attributes = malloc(strlen(attributes) + 1); in regex_callback() 214 return strlen(searched); in reverse_name_search() 227 nextch = match + strlen(search_for); in reverse_name_search() 249 result_size = strlen(search_for); in reverse_name_search() 295 len = strlen(entry); in env_attr_lookup()
|
/u-boot/common/ |
A D | hwconfig.c | 35 size_t optlen = strlen(opt); in hwconfig_parse() 59 *arglen = min(maxlen, strlen(str)) - optlen - 1; in hwconfig_parse() 90 ret = hwconfig_parse(env_hwconfig, strlen(env_hwconfig), in __hwconfig() 96 ret = hwconfig_parse(board_hwconfig, strlen(board_hwconfig), in __hwconfig() 101 return hwconfig_parse(cpu_hwconfig, strlen(cpu_hwconfig), in __hwconfig() 168 if (!argstr || arglen != strlen(arg)) in hwconfig_arg_cmp_f() 236 if (!argstr || arglen != strlen(subarg)) in hwconfig_subarg_cmp_f()
|
A D | command.c | 111 if (len == strlen(cmdtp->name)) in find_cmd_tbl() 234 len = strlen(cmd); in complete_subcmdv() 241 clen = strlen(cmdtp->name); in complete_subcmdv() 310 int sl = sep != NULL ? strlen(sep) : 0; in print_argv() 320 len = strlen(*argv) + sl; in print_argv() 344 len = strlen(anchor); in find_common_prefix() 377 cnt = strlen(buf); in cmd_auto_complete() 412 k = strlen(argv[argc - 1]); in cmd_auto_complete() 417 len = strlen(s); in cmd_auto_complete() 422 k = strlen(argv[argc - 1]); in cmd_auto_complete() [all …]
|
A D | cli_simple.c | 67 int inputcnt = strlen(input); in cli_simple_process_macros() 77 debug_parser("[PROCESS_MACROS] INPUT len %zd: \"%s\"\n", strlen(input), in cli_simple_process_macros() 170 strlen(output_start), output_start); in cli_simple_process_macros() 206 if (strlen(cmd) >= CONFIG_SYS_CBSIZE) { in cli_simple_run_command()
|
/u-boot/cmd/ |
A D | ini.c | 41 char *p = s + strlen(s); in rstrip() 181 value[strlen(value)-1] == '"') { in ini_parse() 182 value[strlen(value)-1] = '\0'; in ini_parse() 208 for (i = 0; i < strlen(requested_section); i++) in ini_handler() 210 for (i = 0; i < strlen(section); i++) in ini_handler() 216 for (i = 0; i < strlen(name); i++) in ini_handler() 218 for (i = 0; i < strlen(value); i++) in ini_handler()
|
A D | pxe_utils.c | 131 path_len = strlen(file_path); in get_relfile() 132 path_len += strlen(relfile); in get_relfile() 390 if (!strlen(overlayfile)) in label_boot_fdtoverlay() 510 if (strlen(label->append ?: "") + in label_boot() 511 strlen(ip_str) + strlen(mac_str) + 1 > sizeof(bootargs)) { in label_boot() 514 strlen(ip_str), strlen(mac_str), in label_boot() 534 int len = strlen(bootm_argv[1]) + strlen(label->config) + 1; in label_boot() 592 len = strlen(label->fdtdir); in label_boot() 600 len = strlen(label->fdtdir) + strlen(slash) + in label_boot() 601 strlen(f1) + strlen(f2) + strlen(f3) + in label_boot() [all …]
|
A D | tpm-v2.c | 71 const ssize_t pw_sz = pw ? strlen(pw) : 0; in do_tpm2_clear() 212 const ssize_t pw_sz = pw ? strlen(pw) : 0; in do_tpm_dam_reset() 233 const ssize_t pw_sz = pw ? strlen(pw) : 0; in do_tpm_dam_parameters() 279 const ssize_t newpw_sz = strlen(newpw); in do_tpm_change_auth() 280 const ssize_t oldpw_sz = oldpw ? strlen(oldpw) : 0; in do_tpm_change_auth() 315 const ssize_t pw_sz = pw ? strlen(pw) : 0; in do_tpm_pcr_setauthpolicy() 323 if (strlen(key) != TPM2_DIGEST_LEN) in do_tpm_pcr_setauthpolicy() 338 const ssize_t key_sz = strlen(key); in do_tpm_pcr_setauthvalue() 340 const ssize_t pw_sz = pw ? strlen(pw) : 0; in do_tpm_pcr_setauthvalue() 348 if (strlen(key) != TPM2_DIGEST_LEN) in do_tpm_pcr_setauthvalue()
|
A D | gpt.c | 51 if (!str || strlen(str) < 4) in extract_env() 61 memset(s + strlen(s) - 1, '\0', 1); in extract_env() 62 memmove(s, s + 2, strlen(s) - 1); in extract_env() 167 int partlistlen = UUID_STR_LEN + 1 + strlen("uuid_disk="); in calc_parts_list_len() 176 partlistlen += numparts * (strlen("uuid=;") + UUID_STR_LEN + 1); in calc_parts_list_len() 664 tmp_len = strlen((const char *)pinfo.name); in gpt_enumerate() 678 part_list[strlen(part_list) - 1] = 0; in gpt_enumerate() 833 (unsigned)strlen(partitions_list)); in do_rename_gpt_parts() 842 if ((strlen(name1) > PART_NAME_LEN) || (strlen(name2) > PART_NAME_LEN)) { in do_rename_gpt_parts() 863 if (strlen(name2) > PART_NAME_LEN) { in do_rename_gpt_parts() [all …]
|
/u-boot/tools/ |
A D | update_octeon_header.c | 83 if (!strncasecmp("generic", board_name, strlen("generic"))) in lookup_board_type() 91 if (substr && (substr[strlen("_emmc_stage2")] == '\0')) { in lookup_board_type() 104 if (substr && (substr[strlen("_nand_stage2")] == '\0')) { in lookup_board_type() 117 if (substr && (substr[strlen("_spi_stage2")] == '\0')) { in lookup_board_type() 130 strlen(cvmx_board_type_to_string(i)))) in lookup_board_type() 136 strlen(cvmx_board_type_to_string(i)))) in lookup_board_type() 205 if (strlen(optarg) >= NAME_LEN) { in main() 255 if (strlen(argv[optind]) >= NAME_LEN) { in main() 262 if (strlen(argv[optind + 1]) >= NAME_LEN) { in main() 269 if (strlen(board_name) >= NAME_LEN) { in main() [all …]
|
A D | gen_ethaddr_crc.c | 63 if (!((strlen(argv[1]) == ARP_HLEN_ASCII) || (strlen(argv[1]) == ARP_HLEN_LAZY))) { in main()
|
/u-boot/board/solidrun/common/ |
A D | tlv_data.c | 19 if (strlen(td->tlv_product_name[0]) == 0) in store_product_name() 21 else if (strlen(td->tlv_product_name[1]) == 0) in store_product_name() 97 if (strncmp(td->tlv_product_name[0], product, strlen(product)) == 0) in sr_product_is() 99 if (strncmp(td->tlv_product_name[1], product, strlen(product)) == 0) in sr_product_is()
|
/u-boot/drivers/usb/dwc3/ |
A D | linux-compat.h | 19 return strlen(dest) + strlen(src); in strlcat()
|
/u-boot/drivers/xen/ |
A D | xenbus.c | 283 size_t len = strlen(msg) + 1; in errmsg() 303 struct write_req req[] = { { pre, strlen(pre) + 1 } }; in xenbus_ls() 318 int l = strlen((char *)reply + x); in xenbus_ls() 332 struct write_req req[] = { {path, strlen(path) + 1} }; in xenbus_read() 354 {path, strlen(path) + 1}, in xenbus_write() 355 {value, strlen(value)}, in xenbus_write() 370 struct write_req req[] = { {path, strlen(path) + 1} }; in xenbus_rm() 384 struct write_req req[] = { {path, strlen(path) + 1} }; in xenbus_get_perms() 408 {path, strlen(path) + 1}, in xenbus_set_perms() 415 req[1].len = strlen(value) + 1; in xenbus_set_perms() [all …]
|
/u-boot/net/ |
A D | fastboot.c | 75 memcpy(packet, response, strlen(response)); in fastboot_udp_send_info() 76 packet += strlen(response); in fastboot_udp_send_info() 169 memcpy(packet, error_msg, strlen(error_msg)); in fastboot_send() 170 packet += strlen(error_msg); in fastboot_send() 200 memcpy(packet, response, strlen(response)); in fastboot_send() 201 packet += strlen(response); in fastboot_send()
|
/u-boot/scripts/dtc/ |
A D | util.c | 41 int len = strlen(s) + 1; in xstrdup() 76 return strlen(p); in xasprintf() 81 int lenp = strlen(path); in join_path() 82 int lenn = strlen(name); in join_path() 393 s += strlen(s) + 1; in utilfdt_print_data() 428 size_t a_arg_len = strlen(a_arg) + 1; in util_usage() 441 int l = strlen(long_opts[i].name) + 1; in util_usage() 463 (int)(optlen - strlen(long_opts[i].name) - a_arg_len), ""); in util_usage()
|
/u-boot/drivers/w1-eeprom/ |
A D | eep_sandbox.c | 21 if (offset + count < strlen(EEP_SANDBOX_SAMPLE_MEM)) { in eep_sandbox_read_buf() 23 count = strlen(EEP_SANDBOX_SAMPLE_MEM); in eep_sandbox_read_buf()
|
/u-boot/arch/arm/mach-uniphier/ |
A D | base-address.c | 41 str + len - strlen(compat_tail), in uniphier_base_address_get() 42 strlen(compat_tail))) in uniphier_base_address_get()
|
/u-boot/arch/mips/lib/ |
A D | bootm.c | 110 next = bootargs + strlen(bootargs); in linux_cmdline_legacy() 129 linux_cmdline_set(buf, strlen(buf)); in linux_cmdline_append() 137 linux_cmdline_set(buf, strlen(buf)); in linux_cmdline_append() 139 linux_cmdline_set(buf, strlen(buf)); in linux_cmdline_append() 157 linux_env_p += strlen(env_name); in linux_env_set() 167 linux_env_p += strlen(env_val); in linux_env_set()
|
/u-boot/board/xilinx/zynq/ |
A D | board.c | 82 env_targets_len = strlen(env_targets); in board_late_init() 84 new_targets = calloc(1, strlen(mode) + env_targets_len + 2); in board_late_init()
|
/u-boot/board/ti/j721e/ |
A D | evm.c | 266 if (strlen(ext_cards[i].dtbo_name)) in board_fit_get_additionnal_images() 361 if (!strlen(ext_cards[i].dtbo_name)) in probe_daughtercards() 369 if (strlen(name_overlays) + strlen(ext_cards[i].dtbo_name) + 2 > in probe_daughtercards() 379 if (strlen(name_overlays)) in probe_daughtercards()
|
/u-boot/drivers/video/ |
A D | videomodes.c | 134 len = strlen (param); in video_search_param() 135 totallen = len + strlen (start); in video_search_param() 154 if(strncmp(p,name,strlen(name))==0) { \ 155 val_s=p+strlen(name); \ 180 s += strlen ("video=ctfb:"); in video_get_params() 337 const int name_len = strlen(name); in video_get_option_string() 367 const int name_len = strlen(name); in video_get_option_int()
|
/u-boot/board/ti/am65x/ |
A D | evm.c | 333 if (!strlen(cards[i].dtbo_name)) in probe_daughtercards() 341 if (strlen(name_overlays) + strlen(cards[i].dtbo_name) + 2 > in probe_daughtercards() 351 if (strlen(name_overlays)) in probe_daughtercards()
|
/u-boot/lib/ |
A D | string.c | 120 size_t ret = strlen(src); in strlcpy() 250 const char *p = s + strlen(s); in strrchr() 264 size_t strlen(const char * s) in strlen() function 320 ((new = malloc (strlen(s) + 1)) == NULL) ) { in strdup() 336 len = strlen(s); in strndup() 648 l2 = strlen(s2); in strstr() 651 l1 = strlen(s1); in strstr()
|
/u-boot/drivers/pci/ |
A D | pcie_layerscape_fixup_common.c | 51 strlen("fsl,ls2088a-pcie") + 1); in lx2_board_fix_fdt() 62 old_str_len = strlen(old_str); in lx2_board_fix_fdt() 63 new_str_len = strlen(new_str); in lx2_board_fix_fdt()
|
/u-boot/drivers/fastboot/ |
A D | fb_common.c | 50 vsnprintf(response + strlen(response), in fastboot_response() 51 FASTBOOT_RESPONSE_LEN - strlen(response) - 1, in fastboot_response()
|