Home
last modified time | relevance | path

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

12345678910>>...49

/linux-3.4.99/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()
184 if (strncmp("sleep", opt, strlen(opt)) == 0) in prepare_config()
187 else if (strncmp("load", opt, strlen(opt)) == 0) in prepare_config()
190 else if (strncmp("load_step", opt, strlen(opt)) == 0) in prepare_config()
193 else if (strncmp("sleep_step", opt, strlen(opt)) == 0) in prepare_config()
196 else if (strncmp("cycles", opt, strlen(opt)) == 0) in prepare_config()
[all …]
/linux-3.4.99/drivers/staging/tidspbridge/rmgr/
Ddbdcd.c206 dw_key_len = strlen(DCD_REGKEY) + 1 + sizeof(sz_obj_type) + 1; in dcd_enumerate_object()
210 strncpy(sz_reg_key, DCD_REGKEY, strlen(DCD_REGKEY) + 1); in dcd_enumerate_object()
211 if ((strlen(sz_reg_key) + strlen("_\0")) < in dcd_enumerate_object()
227 if ((strlen(sz_reg_key) + strlen(sz_obj_type)) < in dcd_enumerate_object()
230 strlen(sz_obj_type) + 1); in dcd_enumerate_object()
237 len = strlen(sz_reg_key); in dcd_enumerate_object()
243 strlen(&dcd_key->name[len]) + 1); in dcd_enumerate_object()
373 dw_key_len = strlen(DCD_REGKEY) + 1 + sizeof(sz_obj_type) + 1; in dcd_get_object_def()
376 strncpy(sz_reg_key, DCD_REGKEY, strlen(DCD_REGKEY) + 1); in dcd_get_object_def()
378 if ((strlen(sz_reg_key) + strlen("_\0")) < DCD_MAXPATHLENGTH) in dcd_get_object_def()
[all …]
/linux-3.4.99/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 …]
Dmem.c45 tempdir = malloc(strlen(dir) + 2); in find_tempdir()
78 len = strlen(ptr); in next()
130 if (!strncmp(buf, "/dev/shm", strlen("/dev/shm"))) in which_tmpdir()
154 if (strncmp(buf, "tmpfs", strlen("tmpfs"))) { in which_tmpdir()
176 if ((tempdir == NULL) || (strlen(tempdir) >= MAXPATHLEN)) in make_tempfile()
183 strncat(tempname, template, MAXPATHLEN-1-strlen(tempname)); in make_tempfile()
/linux-3.4.99/arch/sh/lib64/
Dstrlen.S8 .globl strlen
9 .type strlen,@function
12 strlen: label
33 .size strlen,.-strlen
/linux-3.4.99/arch/mips/pmc-sierra/yosemite/
Dprom.c104 if (strlen(arcs_cmdline) + strlen(arg[i]) + 1 >= in prom_init()
118 if (strncmp("ocd_base", *env, strlen("ocd_base")) == 0) in prom_init()
120 simple_strtol(*env + strlen("ocd_base="), NULL, in prom_init()
123 if (strncmp("cpuclock", *env, strlen("cpuclock")) == 0) in prom_init()
125 simple_strtol(*env + strlen("cpuclock="), NULL, in prom_init()
/linux-3.4.99/fs/cifs/
Dcifs_spnego.c111 HOST_KEY_LEN + strlen(hostname) + in cifs_get_spnego_key()
119 desc_len += USER_KEY_LEN + strlen(sesInfo->user_name); in cifs_get_spnego_key()
131 dp = description + strlen(description); in cifs_get_spnego_key()
141 dp = description + strlen(description); in cifs_get_spnego_key()
151 dp = description + strlen(description); in cifs_get_spnego_key()
154 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()
/linux-3.4.99/drivers/staging/iio/Documentation/
Diio_utils.h302 if (strcmp(ent->d_name + strlen(ent->d_name) - strlen("_en"), in build_channel_array()
330 if (strcmp(ent->d_name + strlen(ent->d_name) - strlen("_en"), in build_channel_array()
359 strlen(ent->d_name) - in build_channel_array()
360 strlen("_en")); in build_channel_array()
457 strlen(ent->d_name) > strlen(type) && in find_type_by_name()
458 strncmp(ent->d_name, type, strlen(type)) == 0) { in find_type_by_name()
459 numstrlen = sscanf(ent->d_name + strlen(type), in find_type_by_name()
463 if (strncmp(ent->d_name + strlen(type) + numstrlen, in find_type_by_name()
466 filename = malloc(strlen(iio_dir) in find_type_by_name()
467 + strlen(type) in find_type_by_name()
[all …]
/linux-3.4.99/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 …]
/linux-3.4.99/arch/mips/rb532/
Dprom.c59 return strncmp(arg, tag, strlen(tag)) == 0; in match_tag()
66 num = arg + strlen(tag); in tag2ul()
99 board = prom_argv[i] + strlen(BOARD_TAG); in prom_setup_cmdline()
108 cp += strlen(prom_argv[i]); in prom_setup_cmdline()
112 i = strlen(arcs_cmdline); in prom_setup_cmdline()
116 cp += strlen(arcs_cmdline); in prom_setup_cmdline()
/linux-3.4.99/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()
396 PATH_MAX - strlen(expanded)); in cpio_replace_env()
398 PATH_MAX - strlen(expanded)); in cpio_replace_env()
[all …]
/linux-3.4.99/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-3.4.99/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-3.4.99/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-3.4.99/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-3.4.99/tools/perf/util/
Dtrace-event-info.c106 tracing = malloc_or_die(strlen(debugfs) + 9); in find_tracing_dir()
123 file = malloc_or_die(strlen(tracing) + strlen(name) + 2); in get_tracing_file()
247 format = malloc_or_die(strlen(sys) + strlen(dent->d_name) + 10); in copy_event_system()
265 format = malloc_or_die(strlen(sys) + strlen(dent->d_name) + 10); in copy_event_system()
335 sys = malloc_or_die(strlen(path) + strlen(dent->d_name) + 2); in read_event_files()
339 write_or_die(dent->d_name, strlen(dent->d_name) + 1); in read_event_files()
443 write_or_die(VERSION, strlen(VERSION) + 1); in tracing_data_header()
Dpath.c28 size_t ret = strlen(src); in strlcpy()
63 len = strlen(perf_dir); in perf_vsnpath()
109 len = strlen(perf_dir); in perf_path()
138 int path_len = strlen(path), suffix_len = strlen(suffix); in strip_path_suffix()
/linux-3.4.99/security/integrity/evm/
Devm_posix_acl.c17 int xattr_len = strlen(xattr); in posix_xattr_acl()
19 if ((strlen(XATTR_NAME_POSIX_ACL_ACCESS) == xattr_len) in posix_xattr_acl()
22 if ((strlen(XATTR_NAME_POSIX_ACL_DEFAULT) == xattr_len) in posix_xattr_acl()
/linux-3.4.99/arch/tile/lib/
Dstrlen_32.c19 #undef strlen
21 size_t strlen(const char *s) in strlen() function
38 EXPORT_SYMBOL(strlen);
Dstrlen_64.c19 #undef strlen
21 size_t strlen(const char *s) in strlen() function
38 EXPORT_SYMBOL(strlen);
/linux-3.4.99/arch/powerpc/boot/
Daddnote.c108 nnote = 12 + ROUNDUP(strlen(arch) + 1) + sizeof(descr); in main()
109 nnote2 = 12 + ROUNDUP(strlen(rpaname) + 1) + sizeof(rpanote); in main()
157 PUT_32BE(ns, strlen(arch) + 1); in main()
161 ns += 12 + strlen(arch) + 1; in main()
172 PUT_32BE(ns, strlen(rpaname) + 1); in main()
176 ns += 12 + ROUNDUP(strlen(rpaname) + 1); in main()
/linux-3.4.99/scripts/dtc/
Dutil.c29 int len = strlen(s) + 1; in xstrdup()
39 int lenp = strlen(path); in join_path()
40 int lenn = strlen(name); in join_path()
/linux-3.4.99/scripts/mod/
Dfile2alias.c101 sprintf(str + strlen(str), \
107 sprintf(str + strlen(str), "*"); \
113 int len = strlen(str); in add_wildcard()
174 sprintf(alias + strlen(alias), "%0*X", in do_usb_entry()
177 sprintf(alias + strlen(alias), "%X", range_lo); in do_usb_entry()
180 sprintf(alias + strlen(alias), in do_usb_entry()
185 sprintf(alias + strlen(alias), in do_usb_entry()
188 sprintf(alias + strlen(alias), in do_usb_entry()
663 sprintf(alias + strlen(alias), "%X,*", i); in do_input()
677 sprintf(alias + strlen(alias), "-e*"); in do_input_entry()
[all …]
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 …]

12345678910>>...49