Home
last modified time | relevance | path

Searched refs:strlen (Results 1 – 25 of 289) sorted by relevance

12345678910>>...12

/rk3399_rockchip-uboot/env/
H A Dattr.c47 int entry_len = strlen(entry); in env_attr_walk()
95 if (strlen(name) != 0) { in env_attr_walk()
125 char regex[strlen(name) + 3]; in regex_callback()
133 strlen(cbp->searched_for), caps)) { in regex_callback()
139 cbp->regex = malloc(strlen(regex) + 1); in regex_callback()
148 cbp->attributes = malloc(strlen(attributes) + 1); in regex_callback()
215 return strlen(searched); in reverse_name_search()
228 nextch = match + strlen(search_for); in reverse_name_search()
250 result_size = strlen(search_for); in reverse_name_search()
296 len = strlen(entry); in env_attr_lookup()
H A Dflags.c113 if (strlen(flags) <= ENV_FLAGS_VARTYPE_LOC) in env_flags_parse_vartype()
135 if (strlen(flags) <= ENV_FLAGS_VARACCESS_LOC) in env_flags_parse_varaccess()
317 if (strlen(flags) <= ENV_FLAGS_VARTYPE_LOC) in env_flags_get_type()
334 if (strlen(flags) <= ENV_FLAGS_VARACCESS_LOC) in env_flags_get_varaccess()
436 if (!ret && strlen(flags)) in env_flags_init()
466 if (value == NULL || strlen(value) == 0) in set_flags()
/rk3399_rockchip-uboot/common/
H A Dhwconfig.c33 size_t optlen = strlen(opt); in hwconfig_parse()
57 *arglen = min(maxlen, strlen(str)) - optlen - 1; in hwconfig_parse()
88 ret = hwconfig_parse(env_hwconfig, strlen(env_hwconfig), in __hwconfig()
94 ret = hwconfig_parse(board_hwconfig, strlen(board_hwconfig), in __hwconfig()
99 return hwconfig_parse(cpu_hwconfig, strlen(cpu_hwconfig), in __hwconfig()
166 if (!argstr || arglen != strlen(arg)) in hwconfig_arg_cmp_f()
234 if (!argstr || arglen != strlen(subarg)) in hwconfig_subarg_cmp_f()
H A Dcommand.c100 len = ((p = strchr(cmd, '.')) == NULL) ? strlen (cmd) : (p - cmd); in find_cmd_tbl()
104 if (len == strlen(cmdtp->name)) in find_cmd_tbl()
210 len = strlen(cmd); in complete_cmdv()
217 clen = strlen(cmdtp->name); in complete_cmdv()
272 int ll = leader != NULL ? strlen(leader) : 0; in print_argv()
273 int sl = sep != NULL ? strlen(sep) : 0; in print_argv()
283 len = strlen(*argv) + sl; in print_argv()
307 len = strlen(anchor); in find_common_prefix()
335 cnt = strlen(buf); in cmd_auto_complete()
364 k = strlen(argv[argc - 1]); in cmd_auto_complete()
[all …]
H A Dfb_common.c17 strncat(response, reason, FASTBOOT_RESPONSE_LEN - strlen(fail_str) - 1); in fastboot_fail()
24 strncat(response, reason, FASTBOOT_RESPONSE_LEN - strlen(okay_str) - 1); in fastboot_okay()
H A Did_attestation.c40 TEEC_Result ret = read_from_keymaster((u8 *)ids_digest_file, strlen(ids_digest_file), in read_id_attestation_digest()
52 TEEC_Result ret = write_to_keymaster((u8 *)ids_file, strlen(ids_file), in write_id_attestation()
78 strlen(ids_file), in write_id_attestation_to_secure_storage()
H A Dandroid_bootloader.c132 if (strlen(cmd) >= 32) in android_bcb_write()
362 joined_len += strlen(*p) + 1; in strjoin()
377 len = strlen(*p); in strjoin()
411 allocated_suffix = malloc(strlen(ANDROID_ARG_SLOT_SUFFIX) + in android_assemble_cmdline()
412 strlen(slot_suffix) + 1); in android_assemble_cmdline()
413 memset(allocated_suffix, 0, strlen(ANDROID_ARG_SLOT_SUFFIX) in android_assemble_cmdline()
414 + strlen(slot_suffix) + 1); in android_assemble_cmdline()
422 allocated_serialno = malloc(strlen(ANDROID_ARG_SERIALNO) + in android_assemble_cmdline()
423 strlen(serialno) + 1); in android_assemble_cmdline()
424 memset(allocated_serialno, 0, strlen(ANDROID_ARG_SERIALNO) + in android_assemble_cmdline()
[all …]
H A Dcli_simple.c65 int inputcnt = strlen(input); in cli_simple_process_macros()
74 debug_parser("[PROCESS_MACROS] INPUT len %zd: \"%s\"\n", strlen(input), in cli_simple_process_macros()
164 strlen(output_start), output_start); in cli_simple_process_macros()
198 if (strlen(cmd) >= CONFIG_SYS_CBSIZE) { in cli_simple_run_command()
/rk3399_rockchip-uboot/cmd/
H A Dini.c42 char *p = s + strlen(s); in rstrip()
182 value[strlen(value)-1] == '"') { in ini_parse()
183 value[strlen(value)-1] = '\0'; in ini_parse()
209 for (i = 0; i < strlen(requested_section); i++) in ini_handler()
211 for (i = 0; i < strlen(section); i++) in ini_handler()
217 for (i = 0; i < strlen(name); i++) in ini_handler()
219 for (i = 0; i < strlen(value); i++) in ini_handler()
H A Dpxe.c205 path_len = strlen(file_path); in get_relfile()
206 path_len += strlen(relfile); in get_relfile()
278 size_t base_len = strlen(PXELINUX_DIR); in get_pxelinux_path()
281 if (base_len + strlen(file) > MAX_TFTP_PATH_LEN) { in get_pxelinux_path()
598 return run_command_list(localcmd, strlen(localcmd), 0); in label_localboot()
682 if (strlen(label->append ?: "") + in label_boot()
683 strlen(ip_str) + strlen(mac_str) + 1 > sizeof(bootargs)) { in label_boot()
685 strlen(label->append ?: ""), in label_boot()
686 strlen(ip_str), strlen(mac_str), in label_boot()
748 len = strlen(label->fdtdir); in label_boot()
[all …]
H A Dgpt.c45 if (!str || strlen(str) < 4) in extract_env()
48 if (!((strncmp(str, "${", 2) == 0) && (str[strlen(str) - 1] == '}'))) in extract_env()
55 memset(s + strlen(s) - 1, '\0', 1); in extract_env()
56 memmove(s, s + 2, strlen(s) - 1); in extract_env()
161 int partlistlen = UUID_STR_LEN + 1 + strlen("uuid_disk="); in calc_parts_list_len()
166 partlistlen += numparts * (strlen("name=,") + PART_NAME_LEN + 1); in calc_parts_list_len()
168 partlistlen += numparts * (strlen("start=MiB,") + sizeof(lbaint_t) + 1); in calc_parts_list_len()
169 partlistlen += numparts * (strlen("size=MiB,") + sizeof(lbaint_t) + 1); in calc_parts_list_len()
170 partlistlen += numparts * (strlen("uuid=;") + UUID_STR_LEN + 1); in calc_parts_list_len()
694 (unsigned)strlen(partitions_list)); in do_rename_gpt_parts()
[all …]
H A Delf.c275 max(strlen(bootline), (size_t)255)); in do_bootvx()
276 flush_cache(bootaddr, max(strlen(bootline), in do_bootvx()
282 ptr = strlen(tmp); in do_bootvx()
326 ptr += strlen(tmp); in do_bootvx()
330 max(strlen(build_buf), (size_t)255)); in do_bootvx()
331 flush_cache(bootaddr, max(strlen(build_buf), in do_bootvx()
/rk3399_rockchip-uboot/drivers/usb/dwc3/
H A Dlinux-compat.h20 return strlen(dest) + strlen(src); in strlcat()
/rk3399_rockchip-uboot/scripts/dtc/
H A Dutil.c41 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()
/rk3399_rockchip-uboot/test/
H A Dprint_ut.c57 big_str_len = strlen(version_string) - 5; in do_ut_print()
65 big_str_len = strlen(version_string) + 9 + 20; in do_ut_print()
69 len = strlen(version_string); in do_ut_print()
H A Dcompression.c159 assert(in_size == strlen(plain)); in compress_using_bzip2()
192 assert(in_size == strlen(plain)); in compress_using_lzma()
224 assert(in_size == strlen(plain)); in compress_using_lzo()
257 assert(in_size == strlen(plain)); in compress_using_lz4()
303 orig_size = strlen(orig_buf); /* Trailing NULL not included. */ in run_test()
420 unc_len = strlen(plain); in run_bootm_test()
/rk3399_rockchip-uboot/drivers/video/
H A Dvideomodes.c133 len = strlen (param); in video_search_param()
134 totallen = len + strlen (start); in video_search_param()
153 if(strncmp(p,name,strlen(name))==0) { \
154 val_s=p+strlen(name); \
179 s += strlen ("video=ctfb:"); in video_get_params()
336 const int name_len = strlen(name); in video_get_option_string()
366 const int name_len = strlen(name); in video_get_option_int()
/rk3399_rockchip-uboot/net/
H A Dfastboot.c93 memcpy(packet, response, strlen(response)); in fastboot_send_info()
94 packet += strlen(response); in fastboot_send_info()
158 memcpy(packet, error_msg, strlen(error_msg)); in fastboot_send()
159 packet += strlen(error_msg); in fastboot_send()
197 memcpy(packet, response, strlen(response)); in fastboot_send()
198 packet += strlen(response); in fastboot_send()
443 strncpy(response, tag, strlen(tag)); in write_fb_response()
444 strncat(response, reason, FASTBOOT_RESPONSE_LEN - strlen(tag) - 1); in write_fb_response()
/rk3399_rockchip-uboot/arch/mips/lib/
H A Dbootm.c106 next = bootargs + strlen(bootargs); in linux_cmdline_legacy()
125 linux_cmdline_set(buf, strlen(buf)); in linux_cmdline_append()
133 linux_cmdline_set(buf, strlen(buf)); in linux_cmdline_append()
135 linux_cmdline_set(buf, strlen(buf)); in linux_cmdline_append()
153 linux_env_p += strlen(env_name); in linux_env_set()
163 linux_env_p += strlen(env_val); in linux_env_set()
/rk3399_rockchip-uboot/tools/
H A Dgen_ethaddr_crc.c64 if (!((strlen(argv[1]) == ARP_HLEN_ASCII) || (strlen(argv[1]) == ARP_HLEN_LAZY))) { in main()
/rk3399_rockchip-uboot/board/freescale/mpc8569mds/
H A Dmpc8569mds.c321 err = fdt_setprop(blob, off, "status", status, strlen(status) + 1); in fdt_board_disable_serial()
389 fdt_setprop(blob, off, "device_type", devtype, strlen(devtype) + 1); in fdt_board_fixup_qe_uart()
390 fdt_setprop(blob, off, "compatible", compat, strlen(compat) + 1); in fdt_board_fixup_qe_uart()
391 fdt_setprop(blob, off, "tx-clock-name", clk, strlen(clk) + 1); in fdt_board_fixup_qe_uart()
392 fdt_setprop(blob, off, "rx-clock-name", clk, strlen(clk) + 1); in fdt_board_fixup_qe_uart()
466 strlen(status) + 1); in fdt_board_fixup_esdhc()
/rk3399_rockchip-uboot/scripts/dtc/libfdt/
H A Dfdt_ro.c88 return (strlen(p) == len) && (memcmp(p, s, len) == 0); in _fdt_string_eq()
180 return fdt_subnode_offset_namelen(fdt, parentoffset, name, strlen(name)); in fdt_subnode_offset()
230 return fdt_path_offset_namelen(fdt, path, strlen(path)); in fdt_path_offset()
243 *len = strlen(nh->name); in fdt_get_name()
321 strlen(name), lenp); in fdt_get_property()
352 return fdt_getprop_namelen(fdt, nodeoffset, name, strlen(name), lenp); in fdt_getprop()
386 return fdt_get_alias_namelen(fdt, name, strlen(name)); in fdt_get_alias()
552 int len = strlen(str); in fdt_stringlist_contains()
602 len = strlen(string) + 1; in fdt_stringlist_search()
/rk3399_rockchip-uboot/board/corscience/tricorder/
H A Dtricorder-eeprom.c145 length = min(sizeof(eeprom.board_name), strlen(name)); in tricorder_eeprom_write()
148 length = min(sizeof(eeprom.board_version), strlen(version)); in tricorder_eeprom_write()
151 length = min(sizeof(eeprom.board_serial), strlen(serial)); in tricorder_eeprom_write()
156 strlen(interface)); in tricorder_eeprom_write()
/rk3399_rockchip-uboot/lib/
H A Dstring.c119 size_t ret = strlen(src); in strlcpy()
249 const char *p = s + strlen(s); in strrchr()
263 size_t strlen(const char * s) in strlen() function
319 ((new = malloc (strlen(s) + 1)) == NULL) ) { in strdup()
625 l2 = strlen(s2); in strstr()
628 l1 = strlen(s1); in strstr()
/rk3399_rockchip-uboot/tools/rockchip/
H A Dresource_tool.c965 level_conf->max_level = atoi(buf + strlen(OPT_CHARGE_ANIM_LEVEL_CONF)); in parse_level_conf()
972 level_conf->num = atoi(buf + strlen(OPT_CHARGE_ANIM_LEVEL_NUM)); in parse_level_conf()
982 level_conf->delay = atoi(buf + strlen(OPT_CHARGE_ANIM_DELAY)); in parse_level_conf()
987 buf + strlen(OPT_CHARGE_ANIM_LEVEL_PFX)); in parse_level_conf()
1025 char *line = (char *)memchr(buf + pos, '\n', strlen(buf + pos)); in test_charge()
1030 pos += (strlen(buf + pos) + 1); in test_charge()
1043 buf += (strlen(buf) + 1); in test_charge()
1047 strlen(OPT_CHARGE_ANIM_LEVEL_CONF))) { in test_charge()
1062 strlen(OPT_CHARGE_ANIM_DELAY))) { in test_charge()
1063 delay = atoi(arg + strlen(OPT_CHARGE_ANIM_DELAY)); in test_charge()
[all …]

12345678910>>...12