/linux-4.4.14/fs/btrfs/tests/ |
D | extent-buffer-tests.c | 38 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/ |
D | lsiio.c | 33 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()
|
D | iio_utils.c | 41 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/ |
D | umid.c | 46 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 …]
|
D | user_syms.c | 11 #undef strlen 16 extern size_t strlen(const char *); 118 extern int __sprintf_chk(char *str, int flag, size_t strlen, const char *format);
|
D | execvp.c | 56 len = strlen(file) + 1; in execvp_noalloc() 57 pathlen = strlen(path); in execvp_noalloc()
|
D | mem.c | 109 tempname = malloc(strlen(tempdir) + strlen(template) + 1); in make_tempfile()
|
D | main.c | 96 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/ |
D | strlen.S | 8 .globl strlen 9 .type strlen,@function 12 strlen: label 33 .size strlen,.-strlen
|
D | Makefile | 14 copy_user_memcpy.o copy_page.o strcpy.o strlen.o
|
/linux-4.4.14/fs/cifs/ |
D | cifs_spnego.c | 109 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()
|
D | cifs_dfs_ref.c | 78 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()
|
D | xattr.c | 170 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/ |
D | prom.c | 59 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/ |
D | smsgiucv_app.c | 32 #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/ |
D | kdb_io.c | 40 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 …]
|
D | kdb_main.c | 230 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/ |
D | cmdline.c | 44 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/ |
D | gen-devlist.c | 53 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/ |
D | ev67-strlen.S | 24 .globl strlen 25 .ent strlen 27 strlen: label 49 .end strlen
|
D | strlen.S | 20 .globl strlen 21 .ent strlen 23 strlen: label 57 .end strlen
|
/linux-4.4.14/usr/ |
D | gen_init_cpio.c | 34 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/ |
D | evm_posix_acl.c | 18 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/ |
D | parse.c | 45 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/ |
D | utnonansi.c | 345 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()
|
D | tbfind.c | 85 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()
|
D | dbhistry.c | 85 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/ |
D | path.c | 31 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()
|
D | help.c | 131 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()
|
D | string.c | 277 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()
|
D | levenshtein.c | 44 int len1 = strlen(string1), len2 = strlen(string2); in levenshtein()
|
D | callchain.c | 35 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()
|
D | cgroup.c | 50 if (strlen(mountpoint) < maxlen) { in cgroupfs_find_mountpoint() 141 const char *p, *e, *eos = str + strlen(str); in parse_cgroups()
|
D | probe-file.c | 152 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()
|
D | util.c | 190 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()
|
D | sort.c | 807 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/ |
D | sumversion.c | 296 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 …]
|
D | file2alias.c | 119 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 …]
|
D | modpost.c | 89 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/ |
D | event-plugin.c | 124 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/ |
D | sysfs.c | 172 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/ |
D | procattr.c | 50 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/ |
D | omapdss-boot-init.c | 50 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/ |
D | usbip_bind.c | 60 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()
|
D | usbip_unbind.c | 78 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()
|
D | usbip_attach.c | 78 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/ |
D | util.c | 41 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()
|
D | fdtput.c | 56 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/ |
D | mconsole_kern.c | 117 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 …]
|
D | mconsole_kern.h | 29 current += strlen(chunk); \ 34 str += strlen(chunk); \
|
D | mconsole_user.c | 46 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()
|
D | pty.c | 84 pty = &line[strlen("/dev/ptyp")]; in getmaster() 86 line[strlen("/dev/pty")] = *bank; in getmaster() 96 char *tp = &line[strlen("/dev/")]; in getmaster()
|
D | cow_user.c | 170 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/ |
D | encrypted.c | 113 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/ |
D | dm-sysfs.c | 73 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/ |
D | irlan_common.h | 107 #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/ |
D | msp_prom.c | 294 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/ |
D | planetcore.c | 43 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()
|
D | addnote.c | 135 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/ |
D | fdt_ro.c | 88 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/ |
D | isdnloop.c | 131 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/ |
D | config.c | 63 (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 …]
|
D | nidstrings.c | 208 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/ |
D | string.c | 141 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()
|
D | test-string_helpers.c | 77 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()
|
D | cmdline.c | 177 if (!strncmp(str, option, strlen(option))) { in parse_option_str() 178 str += strlen(option); in parse_option_str()
|
D | glob.c | 268 p += strlen(p) + 1; in glob_init() 270 p += strlen(p) + 1; in glob_init()
|
D | dynamic_debug.c | 71 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()
|
D | test-hexdump.c | 82 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/ |
D | profile.c | 60 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()
|
D | kexec_core.c | 955 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/ |
D | genheaders.c | 78 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/ |
D | strlen_32.c | 19 size_t strlen(const char *s) in strlen() function 36 EXPORT_SYMBOL(strlen);
|
D | strlen_64.c | 20 size_t strlen(const char *s) in strlen() function 35 EXPORT_SYMBOL(strlen);
|
/linux-4.4.14/arch/mips/loongson64/common/ |
D | cmdline.c | 40 if (strlen(arcs_cmdline) + strlen(((char *)l) + 1) in prom_init_cmdline()
|
/linux-4.4.14/drivers/target/iscsi/ |
D | iscsi_target_auth.c | 226 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/ |
D | string.c | 128 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/ |
D | rose_subr.c | 498 *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/ |
D | freefall.c | 32 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/ |
D | bpf-fancy.c | 96 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/ |
D | debug.c | 55 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/ |
D | mls.c | 48 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/ |
D | obd_mount.c | 252 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 …]
|
D | obd_config.c | 67 *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/ |
D | prom.c | 53 if (strlen(arcs_cmdline) + strlen(arg[i]) + 1 in prom_init()
|
/linux-4.4.14/net/batman-adv/ |
D | gateway_common.c | 55 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/ |
D | ixgbe_debugfs.c | 61 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/ |
D | string.c | 21 l2 = strlen(s2); in strstr() 24 l1 = strlen(s1); in strstr()
|
/linux-4.4.14/arch/mips/pnx833x/common/ |
D | prom.c | 38 c += strlen(argv[i]); in prom_init_cmdline() 51 i = strlen(envname); in prom_getenv()
|
/linux-4.4.14/arch/avr32/boards/merisc/ |
D | merisc_sysfs.c | 26 ret = strlen(buf) + 1; in merisc_model_show() 36 ret = strlen(buf) + 1; in merisc_revision_show()
|
/linux-4.4.14/fs/reiserfs/ |
D | xattr_security.c | 15 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()
|
D | dir.c | 164 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()
|
D | prints.c | 117 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()
|
D | xattr_user.c | 14 if (strlen(name) < sizeof(XATTR_USER_PREFIX)) in user_get() 25 if (strlen(name) < sizeof(XATTR_USER_PREFIX)) in user_set()
|
D | xattr_trusted.c | 14 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/ |
D | kstrdup.cocci | 22 - to = kmalloc(strlen(from) + 1,flag); 35 - x = strlen(from) + 1; 53 * to = kmalloc@p1(strlen(from) + 1,flag); 66 * x = strlen(from) + 1;
|
D | memdup.cocci | 22 to = \(kmalloc@p\|kzalloc@p\)(strlen(from) + 1,flag); 30 x = strlen(from) + 1;
|
/linux-4.4.14/Documentation/ia64/ |
D | aliasing-test.c | 86 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/ |
D | main.c | 174 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()
|
D | do_mounts.c | 141 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/ |
D | nf_conntrack_sip.c | 247 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/ |
D | setup.c | 111 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/ |
D | builtin-help.c | 89 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()
|
D | perf.c | 183 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()
|
D | builtin-script.c | 575 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/ |
D | execveat.c | 70 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/ |
D | strncpy_user.S | 103 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/ |
D | test_power.c | 345 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/ |
D | klconflib.c | 94 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/ |
D | filesystems.c | 50 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/ |
D | um_arch.c | 34 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/ |
D | util.c | 273 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 …]
|
D | textbox.c | 167 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/ |
D | sym-handling.c | 41 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/ |
D | prom.c | 27 i = strlen(envname); in prom_getenv() 51 c += strlen(prom_argv[i]); in prom_init_cmdline()
|
/linux-4.4.14/drivers/of/ |
D | pdt.c | 44 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()
|
D | fdt.c | 102 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/ |
D | unicode.c | 34 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/ |
D | audit.c | 255 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()
|
D | util.c | 156 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()
|
D | realpath.c | 78 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/ |
D | prom.c | 65 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/ |
D | lmc_debug.c | 18 pstr = str+strlen(str); in lmcConsoleLog() 38 pstr=str+strlen(str); in lmcConsoleLog()
|
/linux-4.4.14/security/integrity/ima/ |
D | ima_template.c | 52 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()
|
D | ima_template_lib.c | 105 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/ |
D | xenbus_xs.c | 331 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()
|
D | xenbus_probe.c | 158 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/ |
D | elsa_ser.c | 481 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/ |
D | hv_kvp.c | 242 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/ |
D | lpfc_attr.c | 587 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/ |
D | via-pmu-led.c | 99 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/ |
D | rpmsg_client_sample.c | 45 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/ |
D | isdn_common.c | 1001 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/ |
D | fuse_mnt.c | 36 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/ |
D | firmware.c | 79 for (s = hypertas; s < hypertas + len; s += strlen(s) + 1) { in fw_hypertas_feature_init() 88 size = strlen(name); in fw_hypertas_feature_init()
|
D | dlpar.c | 567 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/ |
D | sysfs.c | 58 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/ |
D | nouveau_sysfs.c | 43 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/ |
D | rtw_android.c | 83 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/ |
D | setup_no.c | 174 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/ |
D | sysfs.c | 265 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/ |
D | divasproc.c | 69 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()
|
D | debuglib.c | 92 len = strlen(drvName); in DBG_FUNC() 96 len = strlen(drvTag); in DBG_FUNC()
|
/linux-4.4.14/drivers/staging/lustre/lustre/libcfs/ |
D | tracefile.c | 298 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/ |
D | osunixdir.c | 140 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/ |
D | dsp_hwec.c | 66 len = strlen(arg); in dsp_hwec_enable() 79 if (!strlen(tok)) in dsp_hwec_enable()
|
D | dsp_dtmf.c | 298 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/ |
D | sm750.c | 955 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/ |
D | kallsyms.c | 124 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/ |
D | rpaphp_core.c | 239 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/ |
D | nconf.gui.c | 167 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()
|
D | confdata.c | 169 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()
|
D | util.c | 105 l = strlen(gs->s) + strlen(s) + 1; in str_append()
|
/linux-4.4.14/arch/mips/lasat/ |
D | picvue.c | 126 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/ |
D | kgdboc.c | 136 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/ |
D | inode.c | 76 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/ |
D | string.h | 109 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/ |
D | esas2r_log.c | 157 buffer += strlen(event_buffer); in esas2r_log_master() 158 buflen -= strlen(event_buffer); in esas2r_log_master()
|
/linux-4.4.14/fs/hpfs/ |
D | ea.c | 253 …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/ |
D | bootx_init.c | 128 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/ |
D | hv_kvp_daemon.c | 613 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/ |
D | enlighten.c | 174 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/ |
D | nonstdio.c | 61 udbg_write(msg, strlen(msg)); in xmon_write() 191 xmon_write(str, strlen(str)); in xmon_puts()
|
/linux-4.4.14/arch/x86/lib/ |
D | string_32.c | 164 size_t strlen(const char *s) in strlen() function 175 EXPORT_SYMBOL(strlen);
|
/linux-4.4.14/arch/sparc/lib/ |
D | strlen.S | 15 ENTRY(strlen) 80 ENDPROC(strlen)
|
/linux-4.4.14/arch/sparc/kernel/ |
D | prom_common.c | 111 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/ |
D | fmdrv_tx.c | 55 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/ |
D | names.c | 215 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/ |
D | icn.c | 456 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/ |
D | hid-sensor-custom.c | 306 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/ |
D | main.c | 1093 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/ |
D | symlink.c | 74 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/ |
D | insn-x86.c | 53 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/ |
D | strlen.S | 59 ENTRY(strlen) 126 ENDPIPROC(strlen)
|
/linux-4.4.14/drivers/target/ |
D | target_core_fabric_lib.c | 124 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/ |
D | pci-label.c | 68 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/ |
D | phram.c | 150 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()
|
D | block2mtd.c | 313 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/ |
D | mesh.c | 195 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/ |
D | qla_gs.c | 680 (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/ |
D | cfe_api.c | 205 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/ |
D | smdk_wm8580.c | 214 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/ |
D | devtree.c | 238 size -= strlen(prop) + 1; in setup_machine_fdt() 239 prop += strlen(prop) + 1; in setup_machine_fdt()
|
/linux-4.4.14/include/linux/ |
D | string.h | 80 extern __kernel_size_t strlen(const char *); 148 return strncmp(str, prefix, strlen(prefix)) == 0; in strstarts()
|
/linux-4.4.14/security/smack/ |
D | smack_access.c | 416 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/ |
D | props.c | 62 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/ |
D | isdn_divert.c | 137 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/ |
D | bpf_dbg.c | 187 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/ |
D | strlen.S | 11 ENTRY(strlen) 83 END(strlen)
|
/linux-4.4.14/fs/nfs/ |
D | nfsroot.c | 137 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/ |
D | hysdn_sched.c | 156 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/ |
D | string.h | 17 extern __kernel_size_t strlen (const char *);
|
/linux-4.4.14/tools/perf/arch/s390/util/ |
D | header.c | 23 if (strlen(cpuid) + 1 > sz) in get_cpuid()
|
/linux-4.4.14/fs/proc/ |
D | proc_sysctl.c | 120 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/ |
D | strlen.S | 81 GLOBAL_ENTRY(strlen) 192 END(strlen)
|
/linux-4.4.14/arch/m32r/lib/ |
D | Makefile | 6 delay.o strlen.o usercopy.o csum_partial_copy.o
|
/linux-4.4.14/drivers/isdn/pcbit/ |
D | capi.c | 74 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/ |
D | string.h | 5 extern size_t strlen(const char * s);
|
/linux-4.4.14/fs/hostfs/ |
D | hostfs_kern.c | 91 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/ |
D | string_64.h | 13 extern size_t strlen(const char *);
|