Home
last modified time | relevance | path

Searched refs:strlen (Results 1 – 200 of 1455) sorted by relevance

12345678

/linux-4.4.14/fs/btrfs/tests/
Dextent-buffer-tests.c38 u32 value_len = strlen(value); in test_btrfs_split_item()
100 if (btrfs_item_size(eb, item) != strlen(split1)) { in test_btrfs_split_item()
107 strlen(split1)); in test_btrfs_split_item()
108 if (memcmp(buf, split1, strlen(split1))) { in test_btrfs_split_item()
111 (int)strlen(split1), buf, split1); in test_btrfs_split_item()
125 if (btrfs_item_size(eb, item) != strlen(split2)) { in test_btrfs_split_item()
132 strlen(split2)); in test_btrfs_split_item()
133 if (memcmp(buf, split2, strlen(split2))) { in test_btrfs_split_item()
157 if (btrfs_item_size(eb, item) != strlen(split3)) { in test_btrfs_split_item()
164 strlen(split3)); in test_btrfs_split_item()
[all …]
/linux-4.4.14/tools/iio/
Dlsiio.c33 return strlen(str) > strlen(prefix) && in check_prefix()
34 strncmp(str, prefix, strlen(prefix)) == 0; in check_prefix()
39 return strlen(str) > strlen(postfix) && in check_postfix()
40 strcmp(str + strlen(str) - strlen(postfix), postfix) == 0; in check_postfix()
66 ret = sscanf(dev_dir_name + strlen(iio_dir) + strlen(type_device), "%i", in dump_one_device()
89 ret = sscanf(dev_dir_name + strlen(iio_dir) + strlen(type_trigger), in dump_one_trigger()
Diio_utils.c41 strlen(iio_direction[i]))) { in iioutils_break_up_name()
46 current = strdup(full_name + strlen(prefix) + 1); in iioutils_break_up_name()
335 if (strcmp(ent->d_name + strlen(ent->d_name) - strlen("_en"), in build_channel_array()
380 if (strcmp(ent->d_name + strlen(ent->d_name) - strlen("_en"), in build_channel_array()
426 strlen(ent->d_name) - in build_channel_array()
427 strlen("_en")); in build_channel_array()
582 strlen(ent->d_name) > strlen(type) && in find_type_by_name()
583 strncmp(ent->d_name, type, strlen(type)) == 0) { in find_type_by_name()
585 ret = sscanf(ent->d_name + strlen(type), "%d", &number); in find_type_by_name()
600 if (strncmp(ent->d_name + strlen(type) + numstrlen, in find_type_by_name()
[all …]
/linux-4.4.14/arch/um/os-Linux/
Dumid.c46 len = strlen(dir); in make_uml_dir()
51 uml_dir = malloc(strlen(dir) + 1); in make_uml_dir()
97 len = strlen(dir) + sizeof("/") + strlen(ent->d_name) + 1; in remove_files_and_dir()
135 char file[strlen(uml_dir) + UMID_LEN + sizeof("/pid\0")]; in is_umdir_used()
210 char file[strlen(uml_dir) + UMID_LEN + sizeof("/pid\0")]; in create_pid_file()
225 n = write(fd, pid, strlen(pid)); in create_pid_file()
226 if (n != strlen(pid)) in create_pid_file()
235 if (strlen(name) > UMID_LEN - 1) in set_umid()
269 set_umid(&tmp[strlen(uml_dir)]); in make_umid()
358 if (name[strlen(name) - 1] == '/') { in set_uml_dir()
[all …]
Duser_syms.c11 #undef strlen
16 extern size_t strlen(const char *);
118 extern int __sprintf_chk(char *str, int flag, size_t strlen, const char *format);
Dexecvp.c56 len = strlen(file) + 1; in execvp_noalloc()
57 pathlen = strlen(path); in execvp_noalloc()
Dmem.c109 tempname = malloc(strlen(tempdir) + strlen(template) + 1); in make_tempfile()
Dmain.c96 if (!old_path || (path_len = strlen(old_path)) == 0) { in setup_env_path()
103 path_len += strlen("PATH=" UML_LIB_PATH) + 1; in setup_env_path()
/linux-4.4.14/arch/sh/lib64/
Dstrlen.S8 .globl strlen
9 .type strlen,@function
12 strlen: label
33 .size strlen,.-strlen
DMakefile14 copy_user_memcpy.o copy_page.o strcpy.o strlen.o
/linux-4.4.14/fs/cifs/
Dcifs_spnego.c109 HOST_KEY_LEN + strlen(hostname) + in cifs_get_spnego_key()
117 desc_len += USER_KEY_LEN + strlen(sesInfo->user_name); in cifs_get_spnego_key()
129 dp = description + strlen(description); in cifs_get_spnego_key()
139 dp = description + strlen(description); in cifs_get_spnego_key()
149 dp = description + strlen(description); in cifs_get_spnego_key()
153 dp = description + strlen(description); in cifs_get_spnego_key()
158 dp = description + strlen(description); in cifs_get_spnego_key()
162 dp = description + strlen(description); in cifs_get_spnego_key()
Dcifs_dfs_ref.c78 unclen = strlen(nodename); in cifs_build_devname()
92 pplen = prepath ? strlen(prepath) : 0; in cifs_build_devname()
154 if (strlen(fullpath) - ref->path_consumed) in cifs_compose_mount_options()
177 md_len = strlen(sb_mountdata) + INET6_ADDRSTRLEN; in cifs_compose_mount_options()
195 noff = strlen(sb_mountdata + off); in cifs_compose_mount_options()
218 if (mountdata[strlen(mountdata) - 1] != sep) in cifs_compose_mount_options()
326 len = strlen(referrals[i].node_name); in cifs_dfs_do_automount()
Dxattr.c170 strlen(CIFS_XATTR_CIFS_ACL)) == 0) { in cifs_setxattr()
194 strlen(POSIX_ACL_XATTR_ACCESS)); in cifs_setxattr()
207 strlen(POSIX_ACL_XATTR_DEFAULT)) == 0) { in cifs_setxattr()
296 strlen(POSIX_ACL_XATTR_ACCESS)) == 0) { in cifs_getxattr()
307 strlen(POSIX_ACL_XATTR_DEFAULT)) == 0) { in cifs_getxattr()
318 strlen(CIFS_XATTR_CIFS_ACL)) == 0) { in cifs_getxattr()
/linux-4.4.14/arch/mips/rb532/
Dprom.c59 return strncmp(arg, tag, strlen(tag)) == 0; in match_tag()
66 num = arg + strlen(tag); in tag2ul()
98 board = prom_argv[i] + strlen(BOARD_TAG); in prom_setup_cmdline()
107 cp += strlen(prom_argv[i]); in prom_setup_cmdline()
111 i = strlen(arcs_cmdline); in prom_setup_cmdline()
115 cp += strlen(arcs_cmdline); in prom_setup_cmdline()
/linux-4.4.14/drivers/s390/net/
Dsmsgiucv_app.c32 #define ENV_SENDER_LEN (strlen(ENV_SENDER_STR) + 8 + 1)
34 #define ENV_PREFIX_LEN (strlen(ENV_PREFIX_STR) + \
35 strlen(SMSG_PREFIX) + 1)
37 #define ENV_TEXT_LEN(msg) (strlen(ENV_TEXT_STR) + strlen((msg)) + 1)
126 if (sender && strlen(sender) > 0 && strcmp(from, sender) != 0) in smsg_app_callback()
130 msg += strlen(SMSG_PREFIX); in smsg_app_callback()
185 int len = strlen(sender); in smsgiucv_app_init()
/linux-4.4.14/kernel/debug/kdb/
Dkdb_io.c40 int slen = strlen(buffer); in kgdb_transition_check()
212 int len = strlen(buffer); in kdb_read()
300 strlen(kdb_prompt_str) + (lastchar-buffer)); in kdb_read()
301 *(tmpbuffer+strlen(kdb_prompt_str) + in kdb_read()
315 strlen(kdb_prompt_str) + (lastchar-buffer)); in kdb_read()
316 *(tmpbuffer+strlen(kdb_prompt_str) + in kdb_read()
337 len = strlen(p_tmp); in kdb_read()
363 len_tmp = strlen(p_tmp); in kdb_read()
365 len_tmp = strlen(p_tmp); in kdb_read()
527 len1 = strlen(searched)-1; in kdb_search_string()
[all …]
Dkdb_main.c230 int matchlen = strlen(match); in kdbgetenv()
296 if (strlen(ep) == 0) in kdbgetulenv()
424 varlen = strlen(argv[1]); in kdb_set()
425 vallen = strlen(argv[2]); in kdb_set()
750 s->usage[strlen(s->usage)-1] = '\0'; in kdb_defcmd()
754 s->help[strlen(s->help)-1] = '\0'; in kdb_defcmd()
841 len = strlen(cp); in parse_grep()
863 len = strlen(cp); in parse_grep()
869 len = strlen(cp); in parse_grep()
1015 && (strlen(argv[0]) <= tp->cmd_minlen)) { in kdb_parse()
[all …]
/linux-4.4.14/arch/mips/fw/arc/
Dcmdline.c44 int len = strlen(used_arc[i][0]); in move_firmware_args()
49 cp += strlen(used_arc[i][1]); in move_firmware_args()
55 cp += strlen(s); in move_firmware_args()
83 int len = strlen(ignored[i]); in prom_init_cmdline()
90 cp += strlen(prom_argv(actr)); in prom_init_cmdline()
/linux-4.4.14/drivers/zorro/
Dgen-devlist.c53 if (strlen(line) > 5 && line[5] == ' ') { in main()
57 if (manuf_len + strlen(c) + 1 > MAX_NAME_SIZE) { in main()
62 if (manuf_len + strlen(c) + 1 > MAX_NAME_SIZE) { in main()
75 } else if (strlen(line) > 4 && line[4] == ' ') { in main()
83 manuf_len = strlen(c); in main()
/linux-4.4.14/arch/alpha/lib/
Dev67-strlen.S24 .globl strlen
25 .ent strlen
27 strlen: label
49 .end strlen
Dstrlen.S20 .globl strlen
21 .ent strlen
23 strlen: label
57 .end strlen
/linux-4.4.14/usr/
Dgen_init_cpio.c34 unsigned int name_len = strlen(name) + 1; in push_string()
51 unsigned int name_len = strlen(name) + 1; in push_rest()
91 (unsigned)strlen(name)+1, /* namesize */ in cpio_trailer()
118 (unsigned)strlen(target)+1, /* filesize */ in cpio_mkslink()
123 (unsigned)strlen(name) + 1,/* namesize */ in cpio_mkslink()
172 (unsigned)strlen(name) + 1,/* namesize */ in cpio_mkgeneric()
266 (unsigned)strlen(name) + 1,/* namesize */ in cpio_mknod()
341 namesize = strlen(name) + 1; in cpio_mkfile()
421 dname = malloc(strlen(line)); in cpio_mkfile_line()
427 dname_len = strlen(name) + 1; in cpio_mkfile_line()
[all …]
/linux-4.4.14/security/integrity/evm/
Devm_posix_acl.c18 int xattr_len = strlen(xattr); in posix_xattr_acl()
20 if ((strlen(XATTR_NAME_POSIX_ACL_ACCESS) == xattr_len) in posix_xattr_acl()
23 if ((strlen(XATTR_NAME_POSIX_ACL_DEFAULT) == xattr_len) in posix_xattr_acl()
/linux-4.4.14/tools/power/cpupower/bench/
Dparse.c45 if (strncasecmp("high", str, strlen(str)) == 0) in string_to_prio()
47 else if (strncasecmp("default", str, strlen(str)) == 0) in string_to_prio()
49 else if (strncasecmp("low", str, strlen(str)) == 0) in string_to_prio()
82 len = strlen(dirname) + 30; in prepare_output()
86 len += strlen(sysdata.nodename) + strlen(sysdata.release); in prepare_output()
/linux-4.4.14/drivers/acpi/acpica/
Dutnonansi.c345 if (strlen(source) >= dest_size) { in acpi_ut_safe_strcpy()
356 if ((strlen(dest) + strlen(source)) >= dest_size) { in acpi_ut_safe_strcat()
371 actual_transfer_length = ACPI_MIN(max_transfer_length, strlen(source)); in acpi_ut_safe_strncat()
373 if ((strlen(dest) + actual_transfer_length) >= dest_size) { in acpi_ut_safe_strncat()
Dtbfind.c85 if ((strlen(oem_id) > ACPI_OEM_ID_SIZE) || in acpi_tb_find_table()
86 (strlen(oem_table_id) > ACPI_OEM_TABLE_ID_SIZE)) { in acpi_tb_find_table()
Ddbhistry.c85 cmd_len = (u16)strlen(command_line); in acpi_db_add_to_history()
94 strlen(acpi_gbl_history_buffer[acpi_gbl_next_history_index]. in acpi_db_add_to_history()
/linux-4.4.14/tools/perf/util/
Dpath.c31 size_t ret = strlen(src); in strlcpy()
67 len = strlen(perf_dir); in perf_vsnpath()
113 len = strlen(perf_dir); in perf_path()
142 int path_len = strlen(path), suffix_len = strlen(suffix); in strip_path_suffix()
Dhelp.c131 prefix_len = strlen(prefix); in list_commands_in_dir()
147 entlen = strlen(de->d_name) - prefix_len; in list_commands_in_dir()
209 mput_char('-', strlen(title) + strlen(exec_path)); in list_commands()
218 mput_char('-', strlen(title)); in list_commands()
244 add_cmdname(&aliases, var + 6, strlen(var + 6)); in perf_unknown_cmd_config()
Dstring.c277 int i1 = strlen(s1); in strtailcmp()
278 int i2 = strlen(s2); in strtailcmp()
312 int len = strlen(s); in ltrim()
331 size_t size = strlen(s); in rtrim()
Dlevenshtein.c44 int len1 = strlen(string1), len2 = strlen(string2); in levenshtein()
Dcallchain.c35 if (!strncmp(value, "graph", strlen(value))) { in parse_callchain_mode()
39 if (!strncmp(value, "flat", strlen(value))) { in parse_callchain_mode()
43 if (!strncmp(value, "fractal", strlen(value))) { in parse_callchain_mode()
52 if (!strncmp(value, "caller", strlen(value))) { in parse_callchain_order()
57 if (!strncmp(value, "callee", strlen(value))) { in parse_callchain_order()
67 if (!strncmp(value, "function", strlen(value))) { in parse_callchain_sort_key()
71 if (!strncmp(value, "address", strlen(value))) { in parse_callchain_sort_key()
75 if (!strncmp(value, "branch", strlen(value))) { in parse_callchain_sort_key()
97 if (!strncmp(tok, "none", strlen(tok))) { in __parse_callchain_report_opt()
Dcgroup.c50 if (strlen(mountpoint) < maxlen) { in cgroupfs_find_mountpoint()
141 const char *p, *e, *eos = str + strlen(str); in parse_cgroups()
Dprobe-file.c152 idx = strlen(p) - 1; in probe_file__get_rawlist()
223 ret = write(fd, buf, strlen(buf)); in probe_file__add_event()
256 ret = write(fd, buf, strlen(buf)); in __del_trace_probe_event()
Dutil.c190 ptr = memmove(ptr + 1, ptr, strlen(ptr) - 1); in copyfile_mode()
404 if (strlen(++end) > 9) in parse_nsec_time()
411 for (i = strlen(nsec_buf); i < 9; i++) in parse_nsec_time()
484 buf = malloc(strlen(arg) + 1); in parse_callchain_record()
636 size_t len = strlen(name); in find_process()
Dsort.c807 l += strlen(tlb_access[i]); in hist_entry__tlb_snprintf()
884 l += strlen(mem_lvl[i]); in hist_entry__lvl_snprintf()
945 l += strlen(snoop_access[i]); in hist_entry__snoop_snprintf()
1231 return p + strlen(str); in add_str()
1257 len += strlen(txbits[i].name); in hist_entry__transaction_len()
1281 p += strlen(p); in hist_entry__transaction_snprintf()
1397 hists__new_col_len(hists, hse->se->se_width_idx, strlen(fmt->name)); in perf_hpp__reset_sort_width()
1593 if (strncasecmp(tok, sd->name, strlen(tok))) in sort_dimension__add()
1629 if (strncasecmp(tok, hd->name, strlen(tok))) in sort_dimension__add()
1638 if (strncasecmp(tok, sd->name, strlen(tok))) in sort_dimension__add()
[all …]
/linux-4.4.14/scripts/mod/
Dsumversion.c296 int len = strlen(objfile); in is_static_library()
312 cmd = NOFAIL(malloc(strlen(objfile) + sizeof("..cmd"))); in parse_source_files()
366 if ( *(p + strlen(p)-1) != '\\') in parse_source_files()
378 if ((strstr(line, dir)+strlen(dir)-1) == strrchr(line, '/')) { in parse_source_files()
420 (int) strlen(basename) - 2, basename); in get_src_version()
473 if (write(fd, sum, strlen(sum)+1) != strlen(sum)+1) { in write_version()
486 if (strncmp(version, "$Revision", strlen("$Revision")) != 0) in strip_rcs_crap()
490 full_len = strlen(version) + strlen(version + strlen(version) + 1) + 2; in strip_rcs_crap()
494 len = strlen("$Revision"); in strip_rcs_crap()
506 memmove(version + len, version + strlen(version), in strip_rcs_crap()
[all …]
Dfile2alias.c119 sprintf(str + strlen(str), \
125 sprintf(str + strlen(str), "*"); \
131 int len = strlen(str); in add_wildcard()
139 int len = strlen(str); in add_uuid()
213 sprintf(alias + strlen(alias), "%0*X", in do_usb_entry()
216 sprintf(alias + strlen(alias), "%X", range_lo); in do_usb_entry()
219 sprintf(alias + strlen(alias), in do_usb_entry()
224 sprintf(alias + strlen(alias), in do_usb_entry()
227 sprintf(alias + strlen(alias), in do_usb_entry()
542 if (id && strlen((const char *)*id)) in do_acpi_entry()
[all …]
Dmodpost.c89 if (strlen(str) < strlen(postfix)) in strends()
92 return strcmp(str + strlen(str) - strlen(postfix), postfix) == 0; in strends()
141 p[strlen(p) - 2] = '\0'; in new_module()
182 for (value = 0x238F13AF * strlen(name), i = 0; name[i]; i++) in tdb_hash()
195 struct symbol *s = NOFAIL(malloc(sizeof(*s) + strlen(name) + 1)); in alloc_symbol()
266 #define strstarts(str, prefix) (strncmp(str, prefix, strlen(prefix)) == 0)
619 if (strncmp(symname, CRC_PFX, strlen(CRC_PFX)) == 0) { in handle_modversions()
621 sym_update_crc(symname + strlen(CRC_PFX), mod, crc, in handle_modversions()
671 if (strncmp(symname, KSYMTAB_PFX, strlen(KSYMTAB_PFX)) == 0) { in handle_modversions()
672 sym_add_exported(symname + strlen(KSYMTAB_PFX), mod, in handle_modversions()
[all …]
/linux-4.4.14/tools/lib/traceevent/
Devent-plugin.c124 name = malloc(strlen(op->name) + strlen(alias) + 2); in traceevent_plugin_list_options()
294 plugin = malloc(strlen(path) + strlen(file) + 2); in load_plugin()
374 if (strcmp(name + (strlen(name) - strlen(suffix)), suffix) != 0) in load_plugins_dir()
424 path = malloc(strlen(home) + strlen(LOCAL_PLUGIN_DIR) + 2); in load_plugins()
/linux-4.4.14/tools/power/cpupower/lib/
Dsysfs.c172 if (result[strlen(result) - 1] == '\n') in sysfs_cpufreq_get_one_string()
173 result[strlen(result) - 1] = '\0'; in sysfs_cpufreq_get_one_string()
465 if (i == strlen(linebuf) || linebuf[i] == '\n') { in sysfs_get_freq_stats()
516 if (!passed_gov || (strlen(passed_gov) > 19)) in verify_gov()
558 new_gov, strlen(new_gov)); in sysfs_modify_freq_policy_governor()
568 value, strlen(value)); in sysfs_modify_freq_policy_max()
579 value, strlen(value)); in sysfs_modify_freq_policy_min()
609 max, strlen(max)); in sysfs_set_freq_policy()
615 strlen(min)); in sysfs_set_freq_policy()
621 max, strlen(max)); in sysfs_set_freq_policy()
[all …]
/linux-4.4.14/security/apparmor/
Dprocattr.c50 ns_len = strlen(ns_name); in aa_getprocattr()
58 mode_len = strlen(mode_str) + 3; /* + 3 for _() */ in aa_getprocattr()
60 name_len = strlen(profile->base.hname); in aa_getprocattr()
139 char *next = hat + strlen(hat) + 1; in aa_setprocattr_changehat()
/linux-4.4.14/drivers/video/fbdev/omap2/dss/
Domapdss-boot-init.c50 l = strlen(p) + 1; in omapdss_count_strings()
77 size_t l = strlen(src) + 1; in omapdss_prefix_strcpy()
80 dst += strlen(prefix); in omapdss_prefix_strcpy()
107 if (strncmp(prefix, prop->value, strlen(prefix)) == 0) in omapdss_omapify_node()
112 new_len = prop->length + strlen(prefix) * num_strs; in omapdss_omapify_node()
/linux-4.4.14/tools/usb/usbip/src/
Dusbip_bind.c60 rc = write_sysfs_attribute(bind_attr_path, busid, strlen(busid)); in bind_usbip()
101 if (!strncmp(bDevClass, "09", strlen(bDevClass))) { in unbind_other()
114 strlen(USBIP_HOST_DRV_NAME))) { in unbind_other()
125 rc = write_sysfs_attribute(unbind_attr_path, busid, strlen(busid)); in unbind_other()
Dusbip_unbind.c78 rc = write_sysfs_attribute(unbind_attr_path, busid, strlen(busid)); in unbind_device()
96 rc = write_sysfs_attribute(rebind_attr_path, busid, strlen(busid)); in unbind_device()
Dusbip_attach.c78 ret = write(fd, buff, strlen(buff)); in record_connection()
79 if (ret != (ssize_t) strlen(buff)) { in record_connection()
/linux-4.4.14/scripts/dtc/
Dutil.c41 int len = strlen(s) + 1; in xstrdup()
51 int lenp = strlen(path); in join_path()
52 int lenn = strlen(name); in join_path()
365 s += strlen(s) + 1; in utilfdt_print_data()
398 size_t a_arg_len = strlen(a_arg) + 1; in util_usage()
411 int l = strlen(long_opts[i].name) + 1; in util_usage()
433 (int)(optlen - strlen(long_opts[i].name) - a_arg_len), ""); in util_usage()
Dfdtput.c56 namelen = strlen(name); in report_error()
92 len = strlen(*arg) + 1; in encode_value()
178 sep = path + strlen(path); in create_paths()
/linux-4.4.14/arch/um/drivers/
Dmconsole_kern.c117 ptr += strlen("log "); in mconsole_log()
133 ptr += strlen("proc"); in mconsole_proc()
268 if (!strncmp(name, dev->name, strlen(dev->name))) in mconsole_find_dev()
476 ptr += strlen("config"); in mconsole_config()
484 name = &ptr[strlen(dev->name)]; in mconsole_config()
503 ptr += strlen("remove"); in mconsole_remove()
511 ptr = &ptr[strlen(dev->name)]; in mconsole_remove()
627 ptr += strlen("sysrq"); in mconsole_sysrq()
671 ptr += strlen("stack"); in mconsole_stack()
730 strlen(mconsole_socket_name) + 1); in mconsole_init()
[all …]
Dmconsole_kern.h29 current += strlen(chunk); \
34 str += strlen(chunk); \
Dmconsole_user.c46 iov.iov_len = strlen(reply); in mconsole_reply_v0()
67 strlen(cmd->command))) { in mconsole_parse()
94 strlen((char *) &req->request)); in mconsole_get_request()
167 return mconsole_reply_len(req, str, strlen(str), err, more); in mconsole_reply()
Dpty.c84 pty = &line[strlen("/dev/ptyp")]; in getmaster()
86 line[strlen("/dev/pty")] = *bank; in getmaster()
96 char *tp = &line[strlen("/dev/")]; in getmaster()
Dcow_user.c170 remaining = size - strlen(to); in absolutize()
171 if (strlen(slash) + 1 > remaining) { in absolutize()
179 if (strlen(save_cwd) + 1 + strlen(from) + 1 > size) { in absolutize()
220 if (strlen(backing_file) > sizeof(header->backing_file) - 1) { in write_cow_header()
/linux-4.4.14/security/keys/encrypted-keys/
Dencrypted.c113 if (strlen(ecryptfs_desc) != KEY_ECRYPTFS_DESC_LEN) { in valid_ecryptfs_desc()
145 if (strlen(new_desc) == KEY_TRUSTED_PREFIX_LEN) in valid_master_desc()
151 if (strlen(new_desc) == KEY_USER_PREFIX_LEN) in valid_master_desc()
383 derived_buf_len = strlen("AUTH_KEY") + 1 + master_keylen; in get_derived_key()
397 memcpy(derived_buf + strlen(derived_buf) + 1, master_key, in get_derived_key()
542 len -= strlen(epayload->format) + 1; in datablob_hmac_verify()
616 format_len = (!format) ? strlen(key_format_default) : strlen(format); in encrypted_key_alloc()
632 datablob_len = format_len + 1 + strlen(master_desc) + 1 in encrypted_key_alloc()
633 + strlen(datalen) + 1 + ivsize + 1 + encrypted_datalen; in encrypted_key_alloc()
666 if (strlen(hex_encoded_iv) != asciilen) in encrypted_key_decrypt()
[all …]
/linux-4.4.14/drivers/md/
Ddm-sysfs.c73 return strlen(buf); in dm_attr_name_show()
82 return strlen(buf); in dm_attr_uuid_show()
89 return strlen(buf); in dm_attr_suspended_show()
96 return strlen(buf); in dm_attr_use_blk_mq_show()
/linux-4.4.14/include/net/irda/
Dirlan_common.h107 #define IRLAN_STRING_PARAMETER_LEN(name, value) (1 + strlen((name)) + 2 \
108 + strlen ((value)))
109 #define IRLAN_BYTE_PARAMETER_LEN(name) (1 + strlen((name)) + 2 + 1)
110 #define IRLAN_SHORT_PARAMETER_LEN(name) (1 + strlen((name)) + 2 + 2)
/linux-4.4.14/arch/mips/pmcs-msp71xx/
Dmsp_prom.c294 int i = strlen(env_name); in prom_getenv()
298 return *var + strlen(env_name) + 1; in prom_getenv()
317 cp += strlen(prom_argv[actr]); in prom_init_cmdline()
374 len += strlen(prom_argv[argc]) + 1; /* length of string */ in prom_free_prom_memory()
384 ptr += strlen(prom_argv[argc]) + 1; in prom_free_prom_memory()
395 len += strlen(*envp) + 1; /* length of string */ in prom_free_prom_memory()
405 ptr += strlen(prom_envp[argc]) + 1; in prom_free_prom_memory()
/linux-4.4.14/arch/powerpc/boot/
Dplanetcore.c43 int keylen = strlen(key); in planetcore_get_key()
49 table += strlen(table) + 1; in planetcore_get_key()
50 } while (strlen(table) != 0); in planetcore_get_key()
Daddnote.c135 nnote = 12 + ROUNDUP(strlen(arch) + 1) + sizeof(descr); in main()
136 nnote2 = 12 + ROUNDUP(strlen(rpaname) + 1) + sizeof(rpanote); in main()
192 PUT_32(ns, strlen(arch) + 1); in main()
196 ns += 12 + strlen(arch) + 1; in main()
214 PUT_32(ns, strlen(rpaname) + 1); in main()
218 ns += 12 + ROUNDUP(strlen(rpaname) + 1); in main()
/linux-4.4.14/scripts/dtc/libfdt/
Dfdt_ro.c88 return (strlen(p) == len) && (memcmp(p, s, len) == 0); in _fdt_string_eq()
154 return fdt_subnode_offset_namelen(fdt, parentoffset, name, strlen(name)); in fdt_subnode_offset()
204 return fdt_path_offset_namelen(fdt, path, strlen(path)); in fdt_path_offset()
217 *len = strlen(nh->name); in fdt_get_name()
295 strlen(name), lenp); in fdt_get_property()
326 return fdt_getprop_namelen(fdt, nodeoffset, name, strlen(name), lenp); in fdt_getprop()
360 return fdt_get_alias_namelen(fdt, name, strlen(name)); in fdt_get_alias()
526 int len = strlen(str); in fdt_stringlist_contains()
/linux-4.4.14/drivers/isdn/isdnloop/
Disdnloop.c131 if (!strlen(t)) in isdnloop_parse_setup()
137 if (!strlen(t)) in isdnloop_parse_setup()
192 if (!strncmp(status, s->statstr, strlen(s->statstr))) { in isdnloop_parse_status()
240 if (strlen(status) == 4) in isdnloop_parse_status()
474 int len = strlen(s) + ((ch >= 0) ? 3 : 0); in isdnloop_fake()
482 memcpy(skb_put(skb, strlen(s)), s, strlen(s)); in isdnloop_fake()
763 return &phone[strlen(phone) - 1]; in isdnloop_vstphone()
798 if (!strncmp(p, s->statstr, strlen(s->statstr))) { in isdnloop_parse_cmd()
902 if (strlen(p) >= sizeof(card->eazlist[0])) in isdnloop_parse_cmd()
1164 i = isdnloop_writecmd(cbuf, strlen(cbuf), 0, card); in isdnloop_command()
[all …]
/linux-4.4.14/drivers/staging/lustre/lnet/lnet/
Dconfig.c63 (int)strlen(name), dots, offset, dots, in lnet_syntax()
181 int tokensize = strlen(networks) + 1; in lnet_parse_networks()
189 if (strlen(networks) > LNET_SINGLE_TEXTBUF_NOB) { in lnet_parse_networks()
350 lnet_syntax("networks", networks, (int)(tmp - tokens), strlen(tmp)); in lnet_parse_networks()
481 int len2 = strlen(sep2 + 1); in lnet_expand1tb()
566 nob = strlen(num); in lnet_str2tbs_expand()
587 int len = strlen(str); in lnet_parse_hops()
609 len = strlen(sep + 1); in lnet_parse_priority()
686 ltb = lnet_new_text_buf(strlen(token)); in lnet_parse_route()
765 lnet_syntax("routes", cmd, (int)(token - str), strlen(token)); in lnet_parse_route()
[all …]
Dnidstrings.c208 endlen = src->ls_len - strlen(nf->nf_name); in add_nidrange()
216 if (!cfs_str2num_check(src->ls_str + strlen(nf->nf_name), in add_nidrange()
1042 if (!strncmp(name, nf->nf_name, strlen(nf->nf_name))) in libcfs_namenum2netstrfns()
1144 addr_len = strlen(buf); in libcfs_nid2str_r()
1167 if (!strncmp(str, nf->nf_name, strlen(nf->nf_name))) in libcfs_str2net_internal()
1174 nob = strlen(nf->nf_name); in libcfs_str2net_internal()
1176 if (strlen(str) == (unsigned int)nob) { in libcfs_str2net_internal()
1183 i = strlen(str); in libcfs_str2net_internal()
1185 i != (int)strlen(str)) in libcfs_str2net_internal()
1218 sep = str + strlen(str); in libcfs_str2nid()
/linux-4.4.14/lib/
Dstring.c141 size_t ret = strlen(src); in strlcpy()
296 size_t dsize = strlen(dest); in strlcat()
297 size_t len = strlen(src); in strlcat()
459 size = strlen(s); in strim()
477 size_t strlen(const char *s) in strlen() function
485 EXPORT_SYMBOL(strlen);
813 l2 = strlen(s2); in strstr()
816 l1 = strlen(s1); in strstr()
839 l2 = strlen(s2); in strnstr()
Dtest-string_helpers.c77 int len = strlen(strings[i].in); in test_string_unescape()
86 len = strlen(strings[i].out); in test_string_unescape()
306 len = strlen(s2->in); in test_string_escape()
311 len = strlen(out); in test_string_escape()
345 if (!memcmp(res, exp, strlen(exp) + 1)) in test_string_get_size_check()
Dcmdline.c177 if (!strncmp(str, option, strlen(option))) { in parse_option_str()
178 str += strlen(option); in parse_option_str()
Dglob.c268 p += strlen(p) + 1; in glob_init()
270 p += strlen(p) + 1; in glob_init()
Ddynamic_debug.c71 int skip = strlen(__FILE__) - strlen("lib/dynamic_debug.c"); in trim_prefix()
118 fmtlen = strlen(query->format); in vpr_info_dq()
633 if (strlen(str) >= DDEBUG_STRING_SIZE) { in ddebug_setup_query()
988 verbose_bytes += strlen(iter->modname) + strlen(iter->function) in dynamic_debug_init()
989 + strlen(iter->filename) + strlen(iter->format); in dynamic_debug_init()
Dtest-hexdump.c82 size_t amount = strlen(q); in test_hexdump()
151 pr_err("Len: %zu rc: %u strlen: %zu\n", l, r, strlen(buf)); in test_hexdump_overflow()
/linux-4.4.14/kernel/
Dprofile.c60 if (!strncmp(str, sleepstr, strlen(sleepstr))) { in profile_setup()
63 if (str[strlen(sleepstr)] == ',') in profile_setup()
64 str += strlen(sleepstr) + 1; in profile_setup()
72 } else if (!strncmp(str, schedstr, strlen(schedstr))) { in profile_setup()
74 if (str[strlen(schedstr)] == ',') in profile_setup()
75 str += strlen(schedstr) + 1; in profile_setup()
80 } else if (!strncmp(str, kvmstr, strlen(kvmstr))) { in profile_setup()
82 if (str[strlen(kvmstr)] == ',') in profile_setup()
83 str += strlen(kvmstr) + 1; in profile_setup()
Dkexec_core.c955 note.n_namesz = strlen(name) + 1; in append_elf_note()
1188 if (strncmp(cur, suffix, strlen(suffix))) { in parse_crashkernel_suffix()
1192 cur += strlen(suffix); in parse_crashkernel_suffix()
1214 end_p = p + strlen(p); in get_last_crashkernel()
1221 q = end_p - strlen(suffix_tbl[i]); in get_last_crashkernel()
1223 strlen(suffix_tbl[i]))) in get_last_crashkernel()
1228 q = end_p - strlen(suffix); in get_last_crashkernel()
1229 if (!strncmp(q, suffix, strlen(suffix))) in get_last_crashkernel()
1261 ck_cmdline += strlen(name); in __parse_crashkernel()
/linux-4.4.14/scripts/selinux/genheaders/
Dgenheaders.c78 for (j = 0; j < max(1, 40 - strlen(map->name)); j++) in main()
88 for (j = 0; j < max(1, 40 - strlen(s)); j++) in main()
129 for (k = 0; k < max(1, 40 - strlen(map->name) - strlen(map->perms[j])); k++) in main()
/linux-4.4.14/arch/tile/lib/
Dstrlen_32.c19 size_t strlen(const char *s) in strlen() function
36 EXPORT_SYMBOL(strlen);
Dstrlen_64.c20 size_t strlen(const char *s) in strlen() function
35 EXPORT_SYMBOL(strlen);
/linux-4.4.14/arch/mips/loongson64/common/
Dcmdline.c40 if (strlen(arcs_cmdline) + strlen(((char *)l) + 1) in prom_init_cmdline()
/linux-4.4.14/drivers/target/iscsi/
Discsi_target_auth.c226 compare_len = strlen(auth->userid) + 1; in chap_server_compute_md5()
246 chap_string_to_hex(client_digest, chap_r, strlen(chap_r)); in chap_server_compute_md5()
271 sg_init_one(&sg, &auth->password, strlen(auth->password)); in chap_server_compute_md5()
272 ret = crypto_hash_update(&desc, &sg, strlen(auth->password)); in chap_server_compute_md5()
353 strlen(challenge)); in chap_server_compute_md5()
401 strlen(auth->password_mutual)); in chap_server_compute_md5()
402 ret = crypto_hash_update(&desc, &sg, strlen(auth->password_mutual)); in chap_server_compute_md5()
/linux-4.4.14/arch/x86/boot/
Dstring.c128 size_t strlen(const char *s) in strlen() function
146 l2 = strlen(s2); in strstr()
149 l1 = strlen(s1); in strstr()
/linux-4.4.14/net/rose/
Drose_subr.c498 *p++ = strlen(callsign) + 10; in rose_create_facilities()
499 *p++ = (strlen(callsign) + 9) * 2; /* ??? */ in rose_create_facilities()
506 memcpy(p, callsign, strlen(callsign)); in rose_create_facilities()
507 p += strlen(callsign); in rose_create_facilities()
513 *p++ = strlen(callsign) + 10; in rose_create_facilities()
514 *p++ = (strlen(callsign) + 9) * 2; /* ??? */ in rose_create_facilities()
521 memcpy(p, callsign, strlen(callsign)); in rose_create_facilities()
522 p += strlen(callsign); in rose_create_facilities()
/linux-4.4.14/tools/laptop/freefall/
Dfreefall.c32 if (strlen(device) <= 5 || strncmp(device, "/dev/", 5) != 0) in set_unload_heads_path()
66 if (write(fd, buf, strlen(buf)) != strlen(buf)) { in write_int()
/linux-4.4.14/samples/seccomp/
Dbpf-fancy.c96 syscall(__NR_write, STDOUT_FILENO, msg1, strlen(msg1)); in main()
99 syscall(__NR_write, STDERR_FILENO, msg2, strlen(msg2)); in main()
102 syscall(__NR_write, STDERR_FILENO, msg2, strlen(msg2)+2); in main()
/linux-4.4.14/fs/ntfs/
Ddebug.c55 flen = strlen(function); in __ntfs_warning()
98 flen = strlen(function); in __ntfs_error()
125 flen = strlen(function); in __ntfs_debug()
/linux-4.4.14/security/selinux/ss/
Dmls.c48 len += strlen(sym_name(&policydb, SYM_LEVELS, index_sens - 1)); in mls_compute_context_len()
59 len += strlen(nm) + 1; in mls_compute_context_len()
62 len += strlen(nm) + 1; in mls_compute_context_len()
69 len += strlen(nm) + 1; in mls_compute_context_len()
107 scontextp += strlen(scontextp); in mls_sid_to_context()
123 scontextp += strlen(nm); in mls_sid_to_context()
131 scontextp += strlen(nm); in mls_sid_to_context()
144 scontextp += strlen(nm); in mls_sid_to_context()
250 *scontext += strlen(*scontext) + 1; in mls_context_to_sid()
/linux-4.4.14/drivers/staging/lustre/lustre/obdclass/
Dobd_mount.c252 strlen(KEY_MGSSEC), KEY_MGSSEC, in lustre_start_mgc()
253 strlen(mgssec), mgssec, NULL); in lustre_start_mgc()
267 strlen(KEY_CONN_DATA), KEY_CONN_DATA, in lustre_start_mgc()
372 strlen(KEY_MGSSEC), KEY_MGSSEC, in lustre_start_mgc()
373 strlen(mgssec), mgssec, NULL); in lustre_start_mgc()
456 len = strlen(obd->obd_name) + 6; in lustre_stop_mgc()
460 ptr = niduuid + strlen(niduuid); in lustre_stop_mgc()
736 devmax = strlen(ptr) / 8 + 1; in lmd_make_exclusion()
792 length = strlen(ptr); in lmd_parse_mgssec()
818 length = strlen(ptr); in lmd_parse_string()
[all …]
Dobd_config.c67 *valp = ptr + strlen(key); in class_find_param()
80 if (memcmp(buf, key, strlen(key)) != 0) in class_match_param()
84 *valp = buf + strlen(key); in class_match_param()
137 endp = buf + strlen(buf); in class_parse_value()
218 LASSERTF(strncmp(obd->obd_name, name, strlen(name)) == 0, in class_attach()
245 len = strlen(uuid); in class_attach()
636 LASSERT(proflen == (strlen(prof) + 1)); in class_add_profile()
643 LASSERT(osclen == (strlen(osc) + 1)); in class_add_profile()
651 LASSERT(mdclen == (strlen(mdc) + 1)); in class_add_profile()
1005 vallen = strlen(sval); in class_process_proc_param()
[all …]
/linux-4.4.14/arch/mips/emma/common/
Dprom.c53 if (strlen(arcs_cmdline) + strlen(arg[i]) + 1 in prom_init()
/linux-4.4.14/net/batman-adv/
Dgateway_common.c55 if (strlen(buff) > 4) { in batadv_parse_gw_bandwidth()
56 tmp_ptr = buff + strlen(buff) - 4; in batadv_parse_gw_bandwidth()
105 if (strlen(slash_ptr + 1) > 4) { in batadv_parse_gw_bandwidth()
106 tmp_ptr = slash_ptr + 1 - 4 + strlen(slash_ptr + 1); in batadv_parse_gw_bandwidth()
/linux-4.4.14/drivers/net/ethernet/intel/ixgbe/
Dixgbe_debugfs.c61 if (count < strlen(buf)) { in ixgbe_dbg_reg_ops_read()
66 len = simple_read_from_buffer(buffer, count, ppos, buf, strlen(buf)); in ixgbe_dbg_reg_ops_read()
166 if (count < strlen(buf)) { in ixgbe_dbg_netdev_ops_read()
171 len = simple_read_from_buffer(buffer, count, ppos, buf, strlen(buf)); in ixgbe_dbg_netdev_ops_read()
/linux-4.4.14/drivers/firmware/efi/libstub/
Dstring.c21 l2 = strlen(s2); in strstr()
24 l1 = strlen(s1); in strstr()
/linux-4.4.14/arch/mips/pnx833x/common/
Dprom.c38 c += strlen(argv[i]); in prom_init_cmdline()
51 i = strlen(envname); in prom_getenv()
/linux-4.4.14/arch/avr32/boards/merisc/
Dmerisc_sysfs.c26 ret = strlen(buf) + 1; in merisc_model_show()
36 ret = strlen(buf) + 1; in merisc_revision_show()
/linux-4.4.14/fs/reiserfs/
Dxattr_security.c15 if (strlen(name) < sizeof(XATTR_SECURITY_PREFIX)) in security_get()
28 if (strlen(name) < sizeof(XATTR_SECURITY_PREFIX)) in security_set()
97 if (strlen(sec->name) < sizeof(XATTR_SECURITY_PREFIX)) in reiserfs_security_write()
Ddir.c164 d_reclen = strlen(d_name); in reiserfs_readdir_inode()
296 put_deh_location(dot, EMPTY_DIR_SIZE_V1 - strlen(".")); in make_empty_dir_item_v1()
306 put_deh_location(dotdot, deh_location(dot) - strlen("..")); in make_empty_dir_item_v1()
330 put_deh_location(dot, EMPTY_DIR_SIZE - ROUND_UP(strlen("."))); in make_empty_dir_item()
340 put_deh_location(dotdot, deh_location(dot) - ROUND_UP(strlen(".."))); in make_empty_dir_item()
Dprints.c117 sprintf_le_key(buf + strlen(buf), &(ih->ih_key)); in sprintf_item_head()
118 sprintf(buf + strlen(buf), ", item_len %d, item_location %d, " in sprintf_item_head()
239 p += strlen(p); in prepare_error_buf()
651 sprintf(print_tb_buf + strlen(print_tb_buf), in store_print_tb()
671 sprintf(print_tb_buf + strlen(print_tb_buf), in store_print_tb()
684 sprintf(print_tb_buf + strlen(print_tb_buf), in store_print_tb()
690 sprintf(print_tb_buf + strlen(print_tb_buf), in store_print_tb()
697 sprintf(print_tb_buf + strlen(print_tb_buf), in store_print_tb()
704 sprintf(print_tb_buf + strlen(print_tb_buf), in store_print_tb()
Dxattr_user.c14 if (strlen(name) < sizeof(XATTR_USER_PREFIX)) in user_get()
25 if (strlen(name) < sizeof(XATTR_USER_PREFIX)) in user_set()
Dxattr_trusted.c14 if (strlen(name) < sizeof(XATTR_TRUSTED_PREFIX)) in trusted_get()
27 if (strlen(name) < sizeof(XATTR_TRUSTED_PREFIX)) in trusted_set()
/linux-4.4.14/scripts/coccinelle/api/
Dkstrdup.cocci22 - to = kmalloc(strlen(from) + 1,flag);
35 - x = strlen(from) + 1;
53 * to = kmalloc@p1(strlen(from) + 1,flag);
66 * x = strlen(from) + 1;
Dmemdup.cocci22 to = \(kmalloc@p\|kzalloc@p\)(strlen(from) + 1,flag);
30 x = strlen(from) + 1;
/linux-4.4.14/Documentation/ia64/
Daliasing-test.c86 path2 = malloc(strlen(path) + strlen(name) + 3); in scan_tree()
171 path2 = malloc(strlen(path) + strlen(name) + 3); in scan_rom()
/linux-4.4.14/init/
Dmain.c174 int n = strlen(p->str); in obsolete_checksetup()
243 if (val == param+strlen(param)+1) in repair_env_string()
245 else if (val == param+strlen(param)+2) { in repair_env_string()
247 memmove(val-1, val, strlen(val)+1); in repair_env_string()
367 memblock_virt_alloc(strlen(boot_command_line) + 1, 0); in setup_command_line()
369 memblock_virt_alloc(strlen(boot_command_line) + 1, 0); in setup_command_line()
370 static_command_line = memblock_virt_alloc(strlen(command_line) + 1, 0); in setup_command_line()
719 entry->buf = alloc_bootmem(strlen(str_entry) + 1); in initcall_blacklist()
Ddo_mounts.c141 cmp.len = strlen(uuid_str); in devt_from_partuuid()
252 if (strlen(name) > 31) in name_to_dev_t()
395 for (p = fs_names; *p; p += strlen(p)+1) { in mount_block_root()
431 for (p = fs_names; *p; p += strlen(p)+1) in mount_block_root()
/linux-4.4.14/net/netfilter/
Dnf_conntrack_sip.c247 for (; dptr < limit - strlen("sip:"); dptr++) { in ct_sip_parse_request()
250 if (strncasecmp(dptr, "sip:", strlen("sip:")) == 0) { in ct_sip_parse_request()
251 dptr += strlen("sip:"); in ct_sip_parse_request()
438 dptr = ct_sip_header_search(dptr, limit, ",", strlen(",")); in ct_sip_next_header()
539 limit = ct_sip_header_search(dptr + dataoff, limit, ",", strlen(",")); in ct_sip_parse_param()
543 start = ct_sip_header_search(dptr + dataoff, limit, name, strlen(name)); in ct_sip_parse_param()
546 start += strlen(name); in ct_sip_parse_param()
548 end = ct_sip_header_search(start, limit, ";", strlen(";")); in ct_sip_parse_param()
567 limit = ct_sip_header_search(dptr + dataoff, limit, ",", strlen(",")); in ct_sip_parse_address_param()
571 start = ct_sip_header_search(dptr + dataoff, limit, name, strlen(name)); in ct_sip_parse_address_param()
[all …]
/linux-4.4.14/arch/mips/netlogic/xlr/
Dsetup.c111 len = strlen(arg); in build_arcs_cmdline()
122 len = strlen(arg); in build_arcs_cmdline()
131 len = strlen(arg); in build_arcs_cmdline()
/linux-4.4.14/tools/perf/
Dbuiltin-help.c89 strbuf_remove(&buffer, 0, strlen("emacsclient")); in check_emacsclient_version()
177 size_t len = strlen(name); in add_man_viewer()
286 if (longest < strlen(common_cmds[i].name)) in list_common_cmds_help()
287 longest = strlen(common_cmds[i].name); in list_common_cmds_help()
305 size_t pre_len = strlen(prefix); in prepend()
306 size_t cmd_len = strlen(cmd); in prepend()
Dperf.c183 cmd += strlen(CMD_EXEC_PATH); in handle_options()
211 setenv(PERF_DIR_ENVIRONMENT, cmd + strlen(CMD_PERF_DIR), 1); in handle_options()
225 setenv(PERF_WORK_TREE_ENVIRONMENT, cmd + strlen(CMD_WORK_TREE), 1); in handle_options()
249 tracing_path_set(cmd + strlen(CMD_DEBUGFS_DIR)); in handle_options()
429 i = strlen(argv[0]) - strlen(ext); in handle_internal_command()
Dbuiltin-script.c575 const int n = strlen(PERF_IP_FLAG_CHARS); in print_sample_flags()
1004 struct script_spec *s = malloc(sizeof(*s) + strlen(spec) + 1); in script_spec__new()
1175 if (strlen(str) == 0) { in parse_output_fields()
1340 size_t suffix_len = strlen(suffix); in ends_with()
1343 if (strlen(str) > suffix_len) { in ends_with()
1344 p = str + strlen(str) - suffix_len; in ends_with()
1363 if (strlen(p) == 0) in read_script_info()
1368 if (strlen(p) && *p == '!') in read_script_info()
1372 if (strlen(p) && p[strlen(p) - 1] == '\n') in read_script_info()
1373 p[strlen(p) - 1] = '\0'; in read_script_info()
[all …]
/linux-4.4.14/tools/testing/selftests/exec/
Dexecveat.c70 int pathlen = path ? strlen(path) : 0; in check_execveat_invoked_rc()
118 char *result = malloc(strlen(left) + strlen(right) + 1); in concat()
184 src, strlen(longpath)); in check_execveat_pathmax()
188 strlen(longpath), errno, strerror(errno)); in check_execveat_pathmax()
373 write(fd, script, strlen(script)); in prerequisites()
/linux-4.4.14/arch/xtensa/lib/
Dstrncpy_user.S103 sub a2, a11, a2 # compute strlen
158 sub a2, a11, a2 # compute strlen
165 sub a2, a11, a2 # compute strlen
173 sub a2, a11, a2 # compute strlen
183 sub a2, a11, a2 # compute strlen
209 sub a2, a11, a2 # compute strlen
/linux-4.4.14/drivers/power/
Dtest_power.c345 return strlen(buffer); in param_get_ac_online()
358 return strlen(buffer); in param_get_usb_online()
372 return strlen(buffer); in param_get_battery_status()
386 return strlen(buffer); in param_get_battery_health()
401 return strlen(buffer); in param_get_battery_present()
418 return strlen(buffer); in param_get_battery_technology()
/linux-4.4.14/arch/ia64/sn/kernel/
Dklconflib.c94 strcpy(buffer, "rack" "/"); buffer += strlen(buffer); in format_module_id()
100 strcpy(buffer, "/" "bay" "/"); buffer += strlen(buffer); in format_module_id()
/linux-4.4.14/fs/
Dfilesystems.c50 if (strlen((*p)->name) == len && in find_filesystem()
78 p = find_filesystem(fs->name, strlen(fs->name)); in register_filesystem()
163 len = strlen(tmp->name) + 1; in fs_name()
275 int len = dot ? dot - name : strlen(name); in get_fs_type()
/linux-4.4.14/arch/um/kernel/
Dum_arch.c34 if (strlen(command_line) + strlen(arg) + 1 > COMMAND_LINE_SIZE) { in add_arg()
38 if (strlen(command_line) > 0) in add_arg()
193 n = strlen(p->str); in uml_checksetup()
/linux-4.4.14/scripts/kconfig/lxdialog/
Dutil.c273 len += strlen(pos->text) + 3; in dialog_clear()
280 skip = len - (columns - 2 - strlen(ellipsis)); in dialog_clear()
294 if (skip < strlen(pos->text)) { in dialog_clear()
298 skip -= strlen(pos->text); in dialog_clear()
368 int tlen = MIN(width - 2, strlen(title)); in print_title()
390 prompt_len = strlen(tempstr); in print_autowrap()
412 wlen = strlen(word); in print_autowrap()
415 && wlen + 1 + strlen(sp) > room in print_autowrap()
536 for (i = 0; i < strlen(string); i++) { in first_alpha()
628 avail = sizeof(item_cur->node.str) - strlen(item_cur->node.str); in item_add_str()
[all …]
Dtextbox.c167 page = buf + strlen(buf); in dialog_textbox()
346 line += MIN(strlen(line), hscroll); /* Scroll horizontally */ in print_line()
349 waddnstr(win, line, MIN(strlen(line), width - 2)); in print_line()
405 percent = (page - buf) * 100 / strlen(buf); in print_position()
/linux-4.4.14/tools/perf/arch/powerpc/util/
Dsym-handling.c41 if (strlen(sym) >= 3 && !strncmp(sym, "SyS", 3)) in arch__choose_best_symbol()
43 if (strlen(sym) >= 10 && !strncmp(sym, "compat_SyS", 10)) in arch__choose_best_symbol()
/linux-4.4.14/arch/mips/loongson32/common/
Dprom.c27 i = strlen(envname); in prom_getenv()
51 c += strlen(prom_argv[i]); in prom_init_cmdline()
/linux-4.4.14/drivers/of/
Dpdt.c44 plen = strlen(dp->parent->full_name); in of_pdt_build_full_name()
45 ourlen = strlen(dp->path_component_name); in of_pdt_build_full_name()
79 buf = prom_early_alloc(strlen(dp->parent->full_name) + in of_pdt_build_full_name()
80 strlen(dp->name) + 16); in of_pdt_build_full_name()
Dfdt.c102 if (of_compat_cmp(cp, compat, strlen(compat)) == 0) in of_fdt_is_compatible()
104 l = strlen(cp) + 1; in of_fdt_is_compatible()
237 if ((strlen(fn) + l + 1) != allocl) { in unflatten_dt_node()
239 pathp, (int)strlen(fn), in unflatten_dt_node()
243 fn += strlen(fn); in unflatten_dt_node()
749 size -= strlen(prop) + 1; in of_flat_dt_match_machine()
750 prop += strlen(prop) + 1; in of_flat_dt_match_machine()
/linux-4.4.14/fs/udf/
Dunicode.c34 static int udf_char_to_ustr(struct ustr *dest, const uint8_t *src, int strlen) in udf_char_to_ustr() argument
36 if ((!dest) || (!src) || (!strlen) || (strlen > UDF_NAME_LEN - 2)) in udf_char_to_ustr()
40 memcpy(dest->u_name, src, strlen); in udf_char_to_ustr()
42 dest->u_len = strlen; in udf_char_to_ustr()
44 return strlen; in udf_char_to_ustr()
/linux-4.4.14/security/tomoyo/
Daudit.c255 len += strlen(domainname) + strlen(header) + 10; in tomoyo_init_log()
263 len += strlen(realpath) + 80 + strlen(bprm_info); in tomoyo_init_log()
267 len += 18 + strlen(symlink); in tomoyo_init_log()
376 len = tomoyo_round2(strlen(buf) + 1); in tomoyo_write_log2()
Dutil.c156 del = pos + strlen(pos); in tomoyo_read_token()
394 const int len = strlen(find); in tomoyo_str_starts()
522 return tomoyo_correct_word2(string, strlen(string)); in tomoyo_correct_word()
579 len = strlen(buffer); in tomoyo_domain_def()
664 const int len = strlen(name); in tomoyo_fill_path_info()
845 f_delimiter = f + strlen(f); in tomoyo_path_matches_pattern2()
848 p_delimiter = p + strlen(p); in tomoyo_path_matches_pattern2()
Drealpath.c78 return str ? tomoyo_encode2(str, strlen(str)) : NULL; in tomoyo_encode()
187 name_len = strlen(name); in tomoyo_get_local_path()
198 const int name_len = strlen(name); in tomoyo_get_local_path()
/linux-4.4.14/arch/mips/alchemy/common/
Dprom.c65 int i = strlen(envname); in prom_getenv()
119 ethaddr_str += strlen("ethaddr="); in prom_get_ethernet_addr()
/linux-4.4.14/drivers/net/wan/lmc/
Dlmc_debug.c18 pstr = str+strlen(str); in lmcConsoleLog()
38 pstr=str+strlen(str); in lmcConsoleLog()
/linux-4.4.14/security/integrity/ima/
Dima_template.c52 int template_len = strlen(str); in ima_template_setup()
128 int template_fmt_len = strlen(template_fmt); in template_fmt_size()
205 (strlen(template->name) ? in ima_init_template()
Dima_template_lib.c105 strlen(field_data->data) : field_data->len; in ima_show_template_data_binary()
274 cur_filename_len = strlen(event_data->filename); in ima_eventname_init_common()
282 cur_filename_len = strlen(cur_filename); in ima_eventname_init_common()
/linux-4.4.14/drivers/xen/xenbus/
Dxenbus_xs.c331 iovec.iov_len = strlen(string) + 1; in xs_single()
349 for (p = strings, num = 0; p < strings + len; p += strlen(p) + 1) in count_strings()
360 if (strlen(name) == 0) in join()
384 for (p = strings, *num = 0; p < strings + len; p += strlen(p) + 1) in split()
459 iovec[0].iov_len = strlen(path) + 1; in xenbus_write()
461 iovec[1].iov_len = strlen(string); in xenbus_write()
625 iov[0].iov_len = strlen(path) + 1; in xs_watch()
627 iov[1].iov_len = strlen(token) + 1; in xs_watch()
638 iov[0].iov_len = strlen(path) + 1; in xs_unwatch()
640 iov[1].iov_len = strlen(token) + 1; in xs_unwatch()
Dxenbus_probe.c158 if (strlen(xendev->otherend) == 0 || in xenbus_read_otherend_details()
185 strlen(dev->otherend))) { in xenbus_otherend_changed()
350 int len = strlen(info->nodename); in cleanup_dev()
359 if ((strlen(xendev->nodename) > len) && (xendev->nodename[len] != '/')) in cleanup_dev()
444 stringlen = strlen(nodename) + 1 + strlen(type) + 1; in xenbus_probe_node()
457 tmpstring += strlen(tmpstring) + 1; in xenbus_probe_node()
/linux-4.4.14/drivers/isdn/hisax/
Delsa_ser.c481 modem_write_cmd(cs, MInit_1, strlen(MInit_1)); in modem_set_init()
487 modem_write_cmd(cs, MInit_2, strlen(MInit_2)); in modem_set_init()
493 modem_write_cmd(cs, MInit_3, strlen(MInit_3)); in modem_set_init()
499 modem_write_cmd(cs, MInit_4, strlen(MInit_4)); in modem_set_init()
505 modem_write_cmd(cs, MInit_5, strlen(MInit_5)); in modem_set_init()
511 modem_write_cmd(cs, MInit_6, strlen(MInit_6)); in modem_set_init()
517 modem_write_cmd(cs, MInit_7, strlen(MInit_7)); in modem_set_init()
530 modem_write_cmd(cs, MInit_speed28800, strlen(MInit_speed28800)); in modem_set_dial()
537 modem_write_cmd(cs, MInit_dialout, strlen(MInit_dialout)); in modem_set_dial()
539 modem_write_cmd(cs, MInit_dialin, strlen(MInit_dialin)); in modem_set_dial()
/linux-4.4.14/drivers/hv/
Dhv_kvp.c242 strlen((char *)in->body.kvp_ip_val.ip_addr), in process_ob_ipinfo()
250 strlen((char *)in->body.kvp_ip_val.sub_net), in process_ob_ipinfo()
258 strlen((char *)in->body.kvp_ip_val.gate_way), in process_ob_ipinfo()
266 strlen((char *)in->body.kvp_ip_val.dns_addr), in process_ob_ipinfo()
274 strlen((char *)in->body.kvp_ip_val.adapter_id), in process_ob_ipinfo()
548 keylen = utf8s_to_utf16s(key_name, strlen(key_name), UTF16_HOST_ENDIAN, in kvp_respond_to_host()
555 valuelen = utf8s_to_utf16s(value, strlen(value), UTF16_HOST_ENDIAN, in kvp_respond_to_host()
/linux-4.4.14/drivers/scsi/lpfc/
Dlpfc_attr.c587 return strlen(buf); in lpfc_link_state_store()
831 return strlen(buf); in lpfc_issue_reset()
1116 return strlen(buf); in lpfc_board_mode_store()
1534 return strlen(buf); in lpfc_poll_store()
1783 return strlen(buf);\
1936 return strlen(buf);\
2161 if ((cnt != strlen(lpfc_soft_wwn_key)) || in lpfc_soft_wwn_enable_store()
2162 (strncmp(buf, lpfc_soft_wwn_key, strlen(lpfc_soft_wwn_key)) != 0)) in lpfc_soft_wwn_enable_store()
2528 return strlen(buf); in lpfc_oas_lun_state_store()
3267 if (!strncmp(buf, "nolip ", strlen("nolip "))) { in lpfc_topology_store()
[all …]
/linux-4.4.14/drivers/macintosh/
Dvia-pmu-led.c99 if (strncmp(model, "PowerBook", strlen("PowerBook")) != 0 && in via_pmu_led_init()
100 strncmp(model, "iBook", strlen("iBook")) != 0 && in via_pmu_led_init()
/linux-4.4.14/samples/rpmsg/
Drpmsg_client_sample.c45 ret = rpmsg_send(rpdev, MSG, strlen(MSG)); in rpmsg_sample_cb()
58 ret = rpmsg_send(rpdev, MSG, strlen(MSG)); in rpmsg_sample_probe()
/linux-4.4.14/drivers/isdn/i4l/
Disdn_common.c1001 p = istatbuf + strlen(istatbuf); in isdn_statstr()
1004 p = istatbuf + strlen(istatbuf); in isdn_statstr()
1007 p = istatbuf + strlen(istatbuf); in isdn_statstr()
1010 p = istatbuf + strlen(istatbuf); in isdn_statstr()
1013 p = istatbuf + strlen(istatbuf); in isdn_statstr()
1016 p = istatbuf + strlen(istatbuf); in isdn_statstr()
1019 p = istatbuf + strlen(istatbuf); in isdn_statstr()
1022 p = istatbuf + strlen(istatbuf); in isdn_statstr()
1025 p = istatbuf + strlen(istatbuf); in isdn_statstr()
1029 p = istatbuf + strlen(istatbuf); in isdn_statstr()
[all …]
/linux-4.4.14/tools/testing/selftests/memfd/
Dfuse_mnt.c36 st->st_size = strlen(memfd_content); in memfd_getattr()
87 len = strlen(memfd_content); in memfd_read()
/linux-4.4.14/arch/powerpc/platforms/pseries/
Dfirmware.c79 for (s = hypertas; s < hypertas + len; s += strlen(s) + 1) { in fw_hypertas_feature_init()
88 size = strlen(name); in fw_hypertas_feature_init()
Ddlpar.c567 arg += strlen("memory "); in dlpar_store()
576 arg += strlen("add "); in dlpar_store()
579 arg += strlen("remove "); in dlpar_store()
590 arg += strlen("index "); in dlpar_store()
602 arg += strlen("count "); in dlpar_store()
/linux-4.4.14/Documentation/mic/mpssd/
Dsysfs.c58 string = malloc(strlen(value) + 1); in readsysfs()
91 if (write(fd, value, strlen(value)) < 0) { in setsysfs()
/linux-4.4.14/drivers/gpu/drm/nouveau/
Dnouveau_sysfs.c43 r -= strlen(p); \
44 p += strlen(p); \
113 return strlen(b); in nouveau_sysfs_pstate_get()
/linux-4.4.14/drivers/staging/rtl8188eu/os_dep/
Drtw_android.c83 strlen(android_wifi_cmd_str[cmd_num]))) in rtw_android_cmdstr_to_num()
127 char *country_code = command + strlen(android_wifi_cmd_str[ANDROID_WIFI_CMD_COUNTRY]) + 1; in android_set_cntry()
243 bytes_written = strlen("OK"); in rtw_android_priv_cmd()
/linux-4.4.14/arch/m68k/kernel/
Dsetup_no.c174 command_line[strlen(CONFIG_BOOTPARAM_STRING)] = ' '; in setup_arch()
177 &command_line[(strlen(CONFIG_BOOTPARAM_STRING)+1)], in setup_arch()
179 (strlen(CONFIG_BOOTPARAM_STRING)+1))); in setup_arch()
/linux-4.4.14/tools/power/cpupower/utils/helpers/
Dsysfs.c265 if (result[strlen(result) - 1] == '\n') in sysfs_idlestate_get_one_string()
266 result[strlen(result) - 1] = '\0'; in sysfs_idlestate_get_one_string()
431 if (result[strlen(result) - 1] == '\n') in sysfs_cpuidle_get_one_string()
432 result[strlen(result) - 1] = '\0'; in sysfs_cpuidle_get_one_string()
/linux-4.4.14/drivers/isdn/hardware/eicon/
Ddivasproc.c69 if (copy_to_user(buf + len, &tmpbuf, strlen(tmpbuf))) in divas_read()
71 len += strlen(tmpbuf); in divas_read()
83 if ((strlen(tmpbuf) + len) > count) in divas_read()
87 strlen(tmpbuf))) return -EFAULT; in divas_read()
88 len += strlen(tmpbuf); in divas_read()
Ddebuglib.c92 len = strlen(drvName); in DBG_FUNC()
96 len = strlen(drvTag); in DBG_FUNC()
/linux-4.4.14/drivers/staging/lustre/lustre/libcfs/
Dtracefile.c298 known_size = strlen(file) + 1 + depth; in libcfs_debug_vmsg2()
300 known_size += strlen(msgdata->msg_fn) + 1; in libcfs_debug_vmsg2()
376 tage->used += strlen(file) + 1; in libcfs_debug_vmsg2()
377 debug_buf += strlen(file) + 1; in libcfs_debug_vmsg2()
381 tage->used += strlen(msgdata->msg_fn) + 1; in libcfs_debug_vmsg2()
382 debug_buf += strlen(msgdata->msg_fn) + 1; in libcfs_debug_vmsg2()
488 cfs_print_to_console(&hdr, D_EMERG, str, strlen(str), in cfs_trace_assertion_failed()
658 p += strlen(file) + 1; in cfs_trace_debug_print()
660 p += strlen(fn) + 1; in cfs_trace_debug_print()
789 int nob = strlen(knl_buffer); in cfs_trace_copyout_string()
[all …]
/linux-4.4.14/tools/power/acpi/os_specific/service_layers/
Dosunixdir.c140 str_len = strlen(dir_entry->d_name) + in acpi_os_get_next_filename()
141 strlen(external_info->dir_pathname) + 2; in acpi_os_get_next_filename()
/linux-4.4.14/drivers/isdn/mISDN/
Ddsp_hwec.c66 len = strlen(arg); in dsp_hwec_enable()
79 if (!strlen(tok)) in dsp_hwec_enable()
Ddsp_dtmf.c298 if ((strlen(dsp->dtmf.digits) + 1) in dsp_dtmf_goertzel_decode()
300 dsp->dtmf.digits[strlen( in dsp_dtmf_goertzel_decode()
302 dsp->dtmf.digits[strlen( in dsp_dtmf_goertzel_decode()
/linux-4.4.14/drivers/staging/sm750fb/
Dsm750.c955 if (!strncmp(opt, "swap", strlen("swap"))) in sm750fb_setup()
957 else if (!strncmp(opt, "nocrt", strlen("nocrt"))) in sm750fb_setup()
959 else if (!strncmp(opt, "36bit", strlen("36bit"))) in sm750fb_setup()
961 else if (!strncmp(opt, "18bit", strlen("18bit"))) in sm750fb_setup()
963 else if (!strncmp(opt, "24bit", strlen("24bit"))) in sm750fb_setup()
965 else if (!strncmp(opt, "nohwc0", strlen("nohwc0"))) in sm750fb_setup()
967 else if (!strncmp(opt, "nohwc1", strlen("nohwc1"))) in sm750fb_setup()
969 else if (!strncmp(opt, "nohwc", strlen("nohwc"))) in sm750fb_setup()
1182 len = strlen(options) + 1; in lynxfb_setup()
1200 if (!strncmp(opt, "noaccel", strlen("noaccel"))) in lynxfb_setup()
[all …]
/linux-4.4.14/scripts/
Dkallsyms.c124 if (strlen(str) > KSYM_NAME_LEN) { in read_symbol()
127 str, strlen(str), KSYM_NAME_LEN); in read_symbol()
164 s->len = strlen(str) + 1; in read_symbol()
259 int l = strlen(sym_name) - strlen(special_suffixes[i]); in symbol_valid()
412 off += strlen(buf) + 1; in write_src()
/linux-4.4.14/drivers/pci/hotplug/
Drpaphp_core.c239 name_tmp += (strlen(name_tmp) + 1); in rpaphp_get_drc_props()
240 type_tmp += (strlen(type_tmp) + 1); in rpaphp_get_drc_props()
347 name += strlen(name) + 1; in rpaphp_add_slot()
348 type += strlen(type) + 1; in rpaphp_add_slot()
/linux-4.4.14/scripts/kconfig/
Dnconf.gui.c167 length = strlen(string); in print_in_middle()
263 btns_width += strlen(btn)+1; in btn_dialog()
369 int cursor_position = strlen(init); in dialog_inputbox()
373 if (strlen(init)+1 > *result_len) { in dialog_inputbox()
374 *result_len = strlen(init)+1; in dialog_inputbox()
387 prompt_width = max(prompt_width, strlen(title)); in dialog_inputbox()
427 int len = strlen(result); in dialog_inputbox()
Dconfdata.c169 memmove(p2, p2 + 1, strlen(p2)); in conf_set_sym_val()
318 if (memcmp(line + 2, CONFIG_, strlen(CONFIG_))) in conf_read_simple()
320 p = strchr(line + 2 + strlen(CONFIG_), ' '); in conf_read_simple()
327 sym = sym_find(line + 2 + strlen(CONFIG_)); in conf_read_simple()
333 sym = sym_lookup(line + 2 + strlen(CONFIG_), 0); in conf_read_simple()
349 } else if (memcmp(line, CONFIG_, strlen(CONFIG_)) == 0) { in conf_read_simple()
350 p = strchr(line + strlen(CONFIG_), '='); in conf_read_simple()
361 sym = sym_find(line + strlen(CONFIG_)); in conf_read_simple()
367 sym = sym_lookup(line + strlen(CONFIG_), 0); in conf_read_simple()
Dutil.c105 l = strlen(gs->s) + strlen(s) + 1; in str_append()
/linux-4.4.14/arch/mips/lasat/
Dpicvue.c126 int len = strlen(str); in pvc_write_string_centered()
132 addr = (PVC_VISIBLE_CHARS - strlen(str))/2; in pvc_write_string_centered()
139 int len = strlen(str); in pvc_dump_string()
/linux-4.4.14/drivers/tty/serial/
Dkgdboc.c136 if (strlen(opt) >= MAX_CONFIG_LEN) { in kgdboc_option_setup()
165 if (err || !strlen(config) || isspace(config[0])) in configure_kgdboc()
250 int len = strlen(kmessage); in param_set_kgdboc_var()
/linux-4.4.14/fs/openpromfs/
Dinode.c76 int n = strlen(pval); in property_show()
202 int n = strlen(child->path_component_name); in openpromfs_lookup()
216 int n = strlen(prop->name); in openpromfs_lookup()
298 strlen(child->path_component_name), in openpromfs_readdir()
313 if (!dir_emit(ctx, prop->name, strlen(prop->name), in openpromfs_readdir()
/linux-4.4.14/arch/s390/include/asm/
Dstring.h109 static inline size_t strlen(const char *s) in strlen() function
138 size_t strlen(const char *s);
/linux-4.4.14/drivers/scsi/esas2r/
Desas2r_log.c157 buffer += strlen(event_buffer); in esas2r_log_master()
158 buflen -= strlen(event_buffer); in esas2r_log_master()
/linux-4.4.14/fs/hpfs/
Dea.c253 …offs) + le16_to_cpu(fnode->acl_size_s) + le16_to_cpu(fnode->ea_size_s) + strlen(key) + size + 5 <=… in hpfs_set_ea()
256 ea->namelen = strlen(key); in hpfs_set_ea()
261 fnode->ea_size_s = cpu_to_le16(le16_to_cpu(fnode->ea_size_s) + strlen(key) + size + 5); in hpfs_set_ea()
283 pos = le32_to_cpu(fnode->ea_size_l) + 5 + strlen(key) + size; in hpfs_set_ea()
351 h[1] = strlen(key); in hpfs_set_ea()
359 hpfs_i(inode)->i_ea_size += 5 + strlen(key) + size; in hpfs_set_ea()
/linux-4.4.14/arch/powerpc/platforms/powermac/
Dbootx_init.c128 s += strlen(s) + 1; in bootx_dt_find_string()
170 bootx_dt_add_prop("bootargs", args, strlen(args) + 1, mem_end); in bootx_add_chosen_props()
178 if (strlen(bootx_disp_path)) in bootx_add_chosen_props()
180 strlen(bootx_disp_path) + 1, mem_end); in bootx_add_chosen_props()
214 unsigned int l = strlen(s) + 1; in bootx_dt_add_string()
292 l = strlen(namep); in bootx_scan_dt_build_struct()
/linux-4.4.14/tools/hv/
Dhv_kvp_daemon.c613 q = dev_id + strlen(kvp_net_dir); in kvp_get_if_name()
675 for (i = 0; i < strlen(p); i++) in kvp_if_name_to_mac()
706 q = dev_id + strlen(kvp_net_dir); in kvp_mac_to_if_name()
727 for (i = 0; i < strlen(p); i++) in kvp_mac_to_if_name()
767 if (len < strlen(config_buf) + element_size + 1) in kvp_process_ipconfig_file()
908 *offset += strlen(str) + 1; in kvp_process_ip_address()
956 (strncmp(curp->ifa_name, if_name, strlen(if_name)))) { in kvp_get_ip_info()
1018 if (length < sn_offset + strlen(cidr_mask) + 1) in kvp_get_ip_info()
1027 sn_offset += strlen(sn_str) + 1; in kvp_get_ip_info()
1111 x = start + strlen(start); in parse_ip_val_buffer()
[all …]
/linux-4.4.14/arch/arm/xen/
Denlighten.c174 if (strlen(xen_prefix) + 3 < len && in xen_early_init()
175 !strncmp(xen_prefix, s, strlen(xen_prefix))) in xen_early_init()
176 version = s + strlen(xen_prefix); in xen_early_init()
/linux-4.4.14/arch/powerpc/xmon/
Dnonstdio.c61 udbg_write(msg, strlen(msg)); in xmon_write()
191 xmon_write(str, strlen(str)); in xmon_puts()
/linux-4.4.14/arch/x86/lib/
Dstring_32.c164 size_t strlen(const char *s) in strlen() function
175 EXPORT_SYMBOL(strlen);
/linux-4.4.14/arch/sparc/lib/
Dstrlen.S15 ENTRY(strlen)
80 ENDPROC(strlen)
/linux-4.4.14/arch/sparc/kernel/
Dprom_common.c111 l = strlen(list) + 1; in of_find_in_proplist()
127 if (!name || strlen(name) == 0) in handle_nextprop_quirks()
/linux-4.4.14/drivers/media/radio/wl128x/
Dfmdrv_tx.c55 strlen(rds_text), NULL, NULL); in set_rds_text()
119 set_rds_len(fmdev, 0, strlen(rds_text)); in fm_tx_set_rds_mode()
141 set_rds_len(fmdev, 0, strlen(rds_text)); in fm_tx_set_rds_mode()
162 set_rds_len(fmdev, rds_type, strlen(rds_text)); in fm_tx_set_radio_text()
/linux-4.4.14/tools/usb/usbip/libsrc/
Dnames.c215 v = my_malloc(sizeof(struct vendor) + strlen(name)); in new_vendor()
235 p = my_malloc(sizeof(struct product) + strlen(name)); in new_product()
255 c = my_malloc(sizeof(struct class) + strlen(name)); in new_class()
274 s = my_malloc(sizeof(struct subclass) + strlen(name)); in new_subclass()
297 p = my_malloc(sizeof(struct protocol) + strlen(name)); in new_protocol()
/linux-4.4.14/drivers/isdn/icn/
Dicn.c456 if (!strncmp(status, s->statstr, strlen(s->statstr))) { in icn_parse_status()
516 if (!strlen(t)) in icn_parse_status()
523 if (!strlen(t)) in icn_parse_status()
551 if (strlen(status) == 4) in icn_parse_status()
1277 i = icn_writecmd(cbuf, strlen(cbuf), 0, card); in icn_command()
1290 i = icn_writecmd(cbuf, strlen(cbuf), 0, card); in icn_command()
1327 i = icn_writecmd(cbuf, strlen(cbuf), 0, card); in icn_command()
1344 i = icn_writecmd(cbuf, strlen(cbuf), 0, card); in icn_command()
1347 i = icn_writecmd(cbuf, strlen(cbuf), 0, card); in icn_command()
1365 i = icn_writecmd(cbuf, strlen(cbuf), 0, card); in icn_command()
[all …]
/linux-4.4.14/drivers/hid/
Dhid-sensor-custom.c306 if (!strncmp(name, "value", strlen("value"))) { in show_value()
362 } else if (!strncmp(name, "units", strlen("units"))) in show_value()
364 else if (!strncmp(name, "unit-expo", strlen("unit-expo"))) in show_value()
366 else if (!strncmp(name, "size", strlen("size"))) in show_value()
368 else if (!strncmp(name, "minimum", strlen("minimum"))) in show_value()
371 else if (!strncmp(name, "maximum", strlen("maximum"))) in show_value()
374 else if (!strncmp(name, "name", strlen("name"))) { in show_value()
407 if (!strncmp(name, "value", strlen("value"))) { in store_value()
/linux-4.4.14/drivers/net/wireless/mwifiex/
Dmain.c1093 dump_len = (strlen("========Start dump driverinfo========\n") + in mwifiex_upload_device_dump()
1095 strlen("\n========End dump========\n")); in mwifiex_upload_device_dump()
1102 dump_len += (strlen("========Start dump ") + in mwifiex_upload_device_dump()
1103 strlen(entry->mem_name) + in mwifiex_upload_device_dump()
1104 strlen("========\n") + in mwifiex_upload_device_dump()
1106 strlen("\n========End dump========\n")); in mwifiex_upload_device_dump()
1123 fw_dump_ptr += strlen("========Start dump driverinfo========\n"); in mwifiex_upload_device_dump()
1127 fw_dump_ptr += strlen("\n========End dump========\n"); in mwifiex_upload_device_dump()
1135 fw_dump_ptr += strlen("========Start dump "); in mwifiex_upload_device_dump()
1138 fw_dump_ptr += strlen(entry->mem_name); in mwifiex_upload_device_dump()
[all …]
/linux-4.4.14/fs/kernfs/
Dsymlink.c74 len += strlen(kn->name) + 1; in kernfs_get_target_path()
88 int slen = strlen(kn->name); in kernfs_get_target_path()
/linux-4.4.14/tools/perf/arch/x86/tests/
Dinsn-x86.c53 if (!op_str || !strlen(op_str)) in get_op()
80 if (!branch_str || !strlen(branch_str)) in get_branch()
/linux-4.4.14/arch/arm64/lib/
Dstrlen.S59 ENTRY(strlen)
126 ENDPIPROC(strlen)
/linux-4.4.14/drivers/target/
Dtarget_core_fabric_lib.c124 len = strlen(p); in srp_get_pr_transport_id()
238 len = strlen(se_nacl->initiatorname); in iscsi_get_pr_transport_id_len()
311 tid_len = strlen(&buf[4]); in iscsi_parse_pr_out_transport_id()
/linux-4.4.14/drivers/pci/
Dpci-label.c68 return strlen(dmi->name); in find_smbios_instance_string()
199 len = strlen(buf) > 0 ? strlen(buf) : -1; in dsm_get_label()
/linux-4.4.14/drivers/mtd/devices/
Dphram.c150 len = strlen(token); in parse_num64()
180 len = strlen(token) + 1; in parse_name()
293 if (strlen(val) >= sizeof(phram_paramline)) in phram_param_call()
Dblock2mtd.c313 dev->mtd.name + strlen("block2mtd: "), in add_device()
415 if (strlen(name) + 1 > 80) { in block2mtd_setup2()
469 if (strlen(block2mtd_paramline)) in block2mtd_init()
490 dev->mtd.name + strlen("block2mtd: ")); in block2mtd_exit()
/linux-4.4.14/drivers/net/wireless/libertas/
Dmesh.c195 return strlen(buf); in lbs_anycast_set()
254 return strlen(buf); in lbs_prb_rsp_limit_set()
396 return strlen(buf); in bootflag_set()
455 return strlen(buf); in boottime_set()
505 return strlen(buf); in channel_set()
580 return strlen(buf); in mesh_id_set()
641 return strlen(buf); in protocol_id_set()
702 return strlen(buf); in metric_id_set()
763 return strlen(buf); in capability_set()
/linux-4.4.14/drivers/scsi/qla2xxx/
Dqla_gs.c680 (uint8_t)strlen(ct_req->req.rsnn_nn.sym_node_name); in qla2x00_rsnn_nn()
1306 alen = strlen(QLA2XXX_MANUFACTURER); in qla2x00_fdmi_rhba()
1328 alen = strlen(eiter->a.serial_num); in qla2x00_fdmi_rhba()
1341 alen = strlen(eiter->a.model); in qla2x00_fdmi_rhba()
1354 alen = strlen(eiter->a.model_desc); in qla2x00_fdmi_rhba()
1378 alen = strlen(eiter->a.hw_version); in qla2x00_fdmi_rhba()
1391 alen = strlen(eiter->a.driver_version); in qla2x00_fdmi_rhba()
1404 alen = strlen(eiter->a.orom_version); in qla2x00_fdmi_rhba()
1417 alen = strlen(eiter->a.fw_version); in qla2x00_fdmi_rhba()
1615 alen = strlen(eiter->a.os_dev_name); in qla2x00_fdmi_rpa()
[all …]
/linux-4.4.14/arch/mips/fw/cfe/
Dcfe_api.c205 xiocb.plist.xiocb_buffer.buf_length = strlen(name); in cfe_getdevinfo()
227 xiocb.plist.xiocb_envbuf.name_length = strlen(name); in cfe_getenv()
355 xiocb.plist.xiocb_buffer.buf_length = strlen(name); in cfe_open()
400 xiocb.plist.xiocb_envbuf.name_length = strlen(name); in cfe_setenv()
402 xiocb.plist.xiocb_envbuf.val_length = strlen(val); in cfe_setenv()
/linux-4.4.14/sound/soc/samsung/
Dsmdk_wm8580.c214 str[strlen(str) - 1] = '2'; in smdk_audio_init()
216 str[strlen(str) - 1] = '2'; in smdk_audio_init()
/linux-4.4.14/arch/arm/kernel/
Ddevtree.c238 size -= strlen(prop) + 1; in setup_machine_fdt()
239 prop += strlen(prop) + 1; in setup_machine_fdt()
/linux-4.4.14/include/linux/
Dstring.h80 extern __kernel_size_t strlen(const char *);
148 return strncmp(str, prefix, strlen(prefix)) == 0; in strstarts()
/linux-4.4.14/security/smack/
Dsmack_access.c416 hash = full_name_hash(skp->smk_known, strlen(skp->smk_known)); in smk_insert_entry()
436 hash = full_name_hash(string, strlen(string)); in smk_find_entry()
459 len = strlen(string) + 1; in smk_parse_smack()
563 slen = strlen(smack); in smk_import_entry()
/linux-4.4.14/fs/btrfs/
Dprops.c62 u64 h = btrfs_name_hash(p->xattr_name, strlen(p->xattr_name)); in btrfs_props_init()
86 u64 hash = btrfs_name_hash(name, strlen(name)); in find_prop_handler()
110 if (strlen(name) <= XATTR_BTRFS_PREFIX_LEN) in __btrfs_set_prop()
328 value, strlen(value), 0); in inherit_props()
/linux-4.4.14/drivers/isdn/divert/
Disdn_divert.c137 fwd_len = strlen(fwd_nr); in cf_command()
146 msnlen = strlen(msn); in cf_command()
580 st += strlen(st); in put_address()
645 stp += strlen(stp); in interrogate_success()
654 stp += strlen(stp); in interrogate_success()
660 stp += strlen(stp); in interrogate_success()
663 stp += strlen(stp); in interrogate_success()
670 stp += strlen(stp); in interrogate_success()
/linux-4.4.14/tools/net/
Dbpf_dbg.c187 int len = strlen(cmd); in matches()
189 if (len > strlen(pattern)) in matches()
1099 if (steps == 0 || strlen(num) == 0) in cmd_step()
1129 if (!pcap_loaded() || strlen(num) == 0) in cmd_select()
1156 if (strlen(subcmd) == 0) in cmd_breakpoint()
1183 if (pkts == 0 || strlen(num) == 0) in cmd_run()
1216 if (strlen(line_string) > 0 && in cmd_disassemble()
1261 len = strlen(cmd); in execf()
1263 if (len != strlen(cmds[i].name)) in execf()
1281 len = strlen(buf); in shell_comp_gen()
[all …]
/linux-4.4.14/arch/arc/lib/
Dstrlen.S11 ENTRY(strlen)
83 END(strlen)
/linux-4.4.14/fs/nfs/
Dnfsroot.c137 size_t n = strlen(line) + sizeof(NFS_ROOT) - 1; in nfs_root_setup()
168 size_t len = strlen(dest); in root_nfs_cat()
/linux-4.4.14/drivers/isdn/hysdn/
Dhysdn_sched.c156 hysdn_addlog(card, "async tx-cfg chan=%d len=%d", chan, strlen(line) + 1); in hysdn_tx_cfgline()
170 card->async_len = strlen(line) + 1; in hysdn_tx_cfgline()
/linux-4.4.14/arch/ia64/include/asm/
Dstring.h17 extern __kernel_size_t strlen (const char *);
/linux-4.4.14/tools/perf/arch/s390/util/
Dheader.c23 if (strlen(cpuid) + 1 > sz) in get_cpuid()
/linux-4.4.14/fs/proc/
Dproc_sysctl.c120 cmp = namecmp(name, namelen, procname, strlen(procname)); in find_entry()
139 int namelen = strlen(name); in insert_entry()
154 cmp = namecmp(name, namelen, parent_name, strlen(parent_name)); in insert_entry()
625 qname.len = strlen(table->procname); in proc_sys_fill_cache()
974 return find_subdir(parent, procname, strlen(procname)); in xlate_dir()
997 entry = find_entry(&head, dir, procname, strlen(procname)); in sysctl_follow_link()
1070 name_bytes += strlen(entry->procname) + 1; in new_links()
1087 int len = strlen(entry->procname) + 1; in new_links()
1109 link = find_entry(&head, dir, procname, strlen(procname)); in get_links()
1122 link = find_entry(&head, dir, procname, strlen(procname)); in get_links()
[all …]
/linux-4.4.14/arch/ia64/lib/
Dstrlen.S81 GLOBAL_ENTRY(strlen)
192 END(strlen)
/linux-4.4.14/arch/m32r/lib/
DMakefile6 delay.o strlen.o usercopy.o csum_partial_copy.o
/linux-4.4.14/drivers/isdn/pcbit/
Dcapi.c74 len = 18 + strlen(calledPN); in capi_conn_req()
117 *(skb_put(*skb, 1)) = strlen(calledPN) + 1; in capi_conn_req()
119 memcpy(skb_put(*skb, strlen(calledPN)), calledPN, strlen(calledPN)); in capi_conn_req()
/linux-4.4.14/arch/m32r/include/asm/
Dstring.h5 extern size_t strlen(const char * s);
/linux-4.4.14/fs/hostfs/
Dhostfs_kern.c91 len = strlen(root); in __dentry_name()
101 BUG_ON(p + strlen(p) + 1 != name + PATH_MAX); in __dentry_name()
167 len = strlen(link) + strlen(name) + 1; in follow_link()
260 size_t offset = strlen(root_ino) + 1; in hostfs_show_options()
262 if (strlen(root_path) > offset) in hostfs_show_options()
946 kmalloc(strlen(root_ino) + strlen(req_root) + 2, GFP_KERNEL); in hostfs_fill_sb_common()
/linux-4.4.14/arch/sh/include/asm/
Dstring_64.h13 extern size_t strlen(const char *);

12345678