| /linux/fs/btrfs/tests/ |
| A D | extent-buffer-tests.c | 26 u32 value_len = strlen(value); in test_btrfs_split_item() 101 strlen(split1)); in test_btrfs_split_item() 102 if (memcmp(buf, split1, strlen(split1))) { in test_btrfs_split_item() 105 (int)strlen(split1), buf, split1); in test_btrfs_split_item() 126 strlen(split2)); in test_btrfs_split_item() 127 if (memcmp(buf, split2, strlen(split2))) { in test_btrfs_split_item() 158 strlen(split3)); in test_btrfs_split_item() 159 if (memcmp(buf, split3, strlen(split3))) { in test_btrfs_split_item() 182 strlen(split4)); in test_btrfs_split_item() 183 if (memcmp(buf, split4, strlen(split4))) { in test_btrfs_split_item() [all …]
|
| /linux/tools/testing/selftests/proc/ |
| A D | proc-pid-vm.c | 315 const size_t len = strlen(buf0) + (g_vsyscall ? strlen(str_vsyscall) : 0); in main() 327 assert(memcmp(buf, buf0, strlen(buf0)) == 0); in main() 329 assert(memcmp(buf + strlen(buf0), str_vsyscall, strlen(str_vsyscall)) == 0); in main() 347 assert(rv >= strlen(buf0)); in main() 348 assert(memcmp(buf, buf0, strlen(buf0)) == 0); in main() 354 assert(memmem(buf, rv, RSS1, strlen(RSS1)) || in main() 355 memmem(buf, rv, RSS2, strlen(RSS2))); in main() 357 memmem(buf, rv, PSS2, strlen(PSS2))); in main() 403 assert(rv >= strlen(bufr)); in main() 407 memmem(buf, rv, RSS2, strlen(RSS2))); in main() [all …]
|
| /linux/tools/iio/ |
| A D | lsiio.c | 30 return strlen(str) > strlen(prefix) && in check_prefix() 31 strncmp(str, prefix, strlen(prefix)) == 0; in check_prefix() 36 return strlen(str) > strlen(postfix) && in check_postfix() 37 strcmp(str + strlen(str) - strlen(postfix), postfix) == 0; in check_postfix() 64 ret = sscanf(dev_dir_name + strlen(iio_dir) + strlen(type_device), "%i", in dump_one_device() 87 ret = sscanf(dev_dir_name + strlen(iio_dir) + strlen(type_trigger), in dump_one_trigger()
|
| A D | iio_utils.c | 338 if (strcmp(ent->d_name + strlen(ent->d_name) - strlen("_en"), in build_channel_array() 383 if (strcmp(ent->d_name + strlen(ent->d_name) - strlen("_en"), in build_channel_array() 429 strlen(ent->d_name) - in build_channel_array() 430 strlen("_en")); in build_channel_array() 586 strlen(ent->d_name) > strlen(type) && in find_type_by_name() 606 filename = malloc(strlen(iio_dir) + strlen(type) in find_type_by_name() 665 char *temp = malloc(strlen(basedir) + strlen(filename) + 2); in _write_sysfs_int() 761 char *temp = malloc(strlen(basedir) + strlen(filename) + 2); in _write_sysfs_string() 868 char *temp = malloc(strlen(basedir) + strlen(filename) + 2); in read_sysfs_posint() 915 char *temp = malloc(strlen(basedir) + strlen(filename) + 2); in read_sysfs_float() [all …]
|
| A D | iio_utils.h | 55 return strlen(str) >= strlen(suffix) && in iioutils_check_suffix() 56 strncmp(str+strlen(str)-strlen(suffix), in iioutils_check_suffix() 57 suffix, strlen(suffix)) == 0; in iioutils_check_suffix()
|
| /linux/tools/perf/arch/s390/util/ |
| A D | header.c | 61 if (!strncmp(line, SYSINFO_MANU, strlen(SYSINFO_MANU))) { in get_cpuid() 62 line2 = line + strlen(SYSINFO_MANU); in get_cpuid() 70 if (!strncmp(line, SYSINFO_TYPE, strlen(SYSINFO_TYPE))) { in get_cpuid() 71 line2 = line + strlen(SYSINFO_TYPE); in get_cpuid() 79 if (!strncmp(line, SYSINFO_MODEL, strlen(SYSINFO_MODEL))) { in get_cpuid() 80 line2 = line + strlen(SYSINFO_MODEL); in get_cpuid() 104 if (strncmp(line, SRVLVL_CPUMF, strlen(SRVLVL_CPUMF))) in get_cpuid() 107 line2 = line + strlen(SRVLVL_CPUMF); in get_cpuid() 110 strlen(SRVLVL_VERSION))) { in get_cpuid() 117 strlen(SRVLVL_AUTHORIZATION))) { in get_cpuid()
|
| /linux/arch/um/os-Linux/ |
| A D | umid.c | 47 len = strlen(dir); in make_uml_dir() 52 uml_dir = malloc(strlen(dir) + 1); in make_uml_dir() 100 len = strlen(dir) + strlen("/") + strlen(ent->d_name) + 1; in remove_files_and_dir() 216 n = strlen(uml_dir) + UMID_LEN + sizeof("/pid"); in create_pid_file() 232 n = write(fd, pid, strlen(pid)); in create_pid_file() 233 if (n != strlen(pid)) in create_pid_file() 244 if (strlen(name) > UMID_LEN - 1) in set_umid() 278 set_umid(&tmp[strlen(uml_dir)]); in make_umid() 367 if (name[strlen(name) - 1] == '/') { in set_uml_dir() 372 uml_dir = malloc(strlen(name) + 2); in set_uml_dir() [all …]
|
| /linux/security/apparmor/ |
| A D | policy_unpack_test.c | 14 (3 + strlen(TEST_STRING_NAME) + 1) 68 *(buf + 1) = strlen(TEST_STRING_NAME) + 1; in build_aa_ext_struct() 73 *(buf + 1) = strlen(TEST_STRING_DATA) + 1; in build_aa_ext_struct() 78 *(buf + 1) = strlen(TEST_U32_NAME) + 1; in build_aa_ext_struct() 80 *(buf + 3 + strlen(TEST_U32_NAME) + 1) = AA_U32; in build_aa_ext_struct() 85 *(buf + 1) = strlen(TEST_U64_NAME) + 1; in build_aa_ext_struct() 92 *(buf + 1) = strlen(TEST_BLOB_NAME) + 1; in build_aa_ext_struct() 96 memcpy(buf + 3 + strlen(TEST_BLOB_NAME) + 6, in build_aa_ext_struct() 101 *(buf + 1) = strlen(TEST_ARRAY_NAME) + 1; in build_aa_ext_struct() 264 + strlen(TEST_STRING_DATA) - 1; in policy_unpack_test_unpack_str_out_of_bounds() [all …]
|
| /linux/net/ceph/ |
| A D | cls_lock_client.c | 32 int name_len = strlen(lock_name); in ceph_cls_lock() 33 int cookie_len = strlen(cookie); in ceph_cls_lock() 34 int tag_len = strlen(tag); in ceph_cls_lock() 35 int desc_len = strlen(desc); in ceph_cls_lock() 99 int name_len = strlen(lock_name); in ceph_cls_unlock() 100 int cookie_len = strlen(cookie); in ceph_cls_unlock() 151 int name_len = strlen(lock_name); in ceph_cls_break_lock() 152 int cookie_len = strlen(cookie); in ceph_cls_break_lock() 197 int name_len = strlen(lock_name); in ceph_cls_set_cookie() 199 int tag_len = strlen(tag); in ceph_cls_set_cookie() [all …]
|
| /linux/kernel/debug/kdb/ |
| A D | kdb_io.c | 41 int slen = strlen(buffer); in kgdb_transition_check() 205 int len = strlen(buffer); in kdb_read() 328 len = strlen(p_tmp); in kdb_read() 357 len_tmp = strlen(p_tmp); in kdb_read() 359 len_tmp = strlen(p_tmp); in kdb_read() 521 len1 = strlen(searched)-1; in kdb_search_string() 522 len2 = strlen(searchfor); in kdb_search_string() 674 len = strlen(kdb_buffer); in vkdb_printf() 704 len = strlen(kdb_buffer); in vkdb_printf() 729 retlen = strlen(kdb_buffer); in vkdb_printf() [all …]
|
| /linux/arch/um/drivers/ |
| A D | vector_user.h | 14 #define TRANS_RAW_LEN strlen(TRANS_RAW) 17 #define TRANS_TAP_LEN strlen(TRANS_TAP) 20 #define TRANS_GRE_LEN strlen(TRANS_GRE) 23 #define TRANS_L2TPV3_LEN strlen(TRANS_L2TPV3) 26 #define TRANS_HYBRID_LEN strlen(TRANS_HYBRID) 29 #define TRANS_BESS_LEN strlen(TRANS_BESS)
|
| /linux/drivers/s390/net/ |
| A D | smsgiucv_app.c | 33 #define ENV_SENDER_LEN (strlen(ENV_SENDER_STR) + 8 + 1) 35 #define ENV_PREFIX_LEN (strlen(ENV_PREFIX_STR) + \ 36 strlen(SMSG_PREFIX) + 1) 38 #define ENV_TEXT_LEN(msg) (strlen(ENV_TEXT_STR) + strlen((msg)) + 1) 127 if (sender && strlen(sender) > 0 && strcmp(from, sender) != 0) in smsg_app_callback() 131 msg += strlen(SMSG_PREFIX); in smsg_app_callback() 186 int len = strlen(sender); in smsgiucv_app_init()
|
| /linux/arch/alpha/lib/ |
| A D | ev67-strlen.S | 25 .globl strlen 26 .ent strlen 28 strlen: label 50 .end strlen 51 EXPORT_SYMBOL(strlen)
|
| A D | strlen.S | 21 .globl strlen 22 .ent strlen 24 strlen: label 58 .end strlen 59 EXPORT_SYMBOL(strlen)
|
| /linux/arch/mips/rb532/ |
| A D | prom.c | 38 return strncmp(arg, tag, strlen(tag)) == 0; in match_tag() 45 num = arg + strlen(tag); in tag2ul() 77 board = prom_argv[i] + strlen(BOARD_TAG); in prom_setup_cmdline() 86 cp += strlen(prom_argv[i]); in prom_setup_cmdline() 90 i = strlen(arcs_cmdline); in prom_setup_cmdline() 94 cp += strlen(arcs_cmdline); in prom_setup_cmdline()
|
| /linux/fs/cifs/ |
| A D | cifs_spnego.c | 101 HOST_KEY_LEN + strlen(hostname) + in cifs_get_spnego_key() 109 desc_len += USER_KEY_LEN + strlen(sesInfo->user_name); in cifs_get_spnego_key() 121 dp = description + strlen(description); in cifs_get_spnego_key() 131 dp = description + strlen(description); in cifs_get_spnego_key() 143 dp = description + strlen(description); in cifs_get_spnego_key() 147 dp = description + strlen(description); in cifs_get_spnego_key() 152 dp = description + strlen(description); in cifs_get_spnego_key() 156 dp = description + strlen(description); in cifs_get_spnego_key()
|
| /linux/mm/damon/ |
| A D | dbgfs-test.h | 23 answers = str_to_target_ids(question, strlen(question), in damon_dbgfs_test_str_to_target_ids() 30 answers = str_to_target_ids(question, strlen(question), in damon_dbgfs_test_str_to_target_ids() 37 answers = str_to_target_ids(question, strlen(question), in damon_dbgfs_test_str_to_target_ids() 43 answers = str_to_target_ids(question, strlen(question), in damon_dbgfs_test_str_to_target_ids() 51 answers = str_to_target_ids(question, strlen(question), in damon_dbgfs_test_str_to_target_ids() 59 answers = str_to_target_ids(question, strlen(question), in damon_dbgfs_test_str_to_target_ids() 67 answers = str_to_target_ids(question, strlen(question), in damon_dbgfs_test_str_to_target_ids() 73 answers = str_to_target_ids(question, strlen(question), in damon_dbgfs_test_str_to_target_ids()
|
| /linux/drivers/md/ |
| A D | dm-ima.c | 29 int l = strlen(*buf); in fix_separator_chars() 233 device_data_buf_len = strlen(device_data_buf); in dm_ima_measure_on_table_load() 262 target_data_buf_len = strlen(target_data_buf); in dm_ima_measure_on_table_load() 458 l += strlen(device_table_data); in dm_ima_measure_on_device_resume() 462 capacity_len = strlen(capacity_str); in dm_ima_measure_on_device_resume() 490 unsigned int remove_all_len = strlen(remove_all_str); in dm_ima_measure_on_device_remove() 571 l += strlen(device_table_data); in dm_ima_measure_on_device_remove() 579 capacity_len = strlen(capacity_str); in dm_ima_measure_on_device_remove() 614 unsigned int inactive_len = strlen(inactive_str); in dm_ima_measure_on_table_clear() 657 l += strlen(device_table_data); in dm_ima_measure_on_table_clear() [all …]
|
| /linux/usr/ |
| A D | gen_init_cpio.c | 35 unsigned int name_len = strlen(name) + 1; in push_string() 52 unsigned int name_len = strlen(name) + 1; in push_rest() 92 (unsigned)strlen(name)+1, /* namesize */ in cpio_trailer() 119 (unsigned)strlen(target)+1, /* filesize */ in cpio_mkslink() 124 (unsigned)strlen(name) + 1,/* namesize */ in cpio_mkslink() 348 namesize = strlen(name) + 1; in cpio_mkfile() 428 dname = malloc(strlen(line)); in cpio_mkfile_line() 434 dname_len = strlen(name) + 1; in cpio_mkfile_line() 442 len = strlen(name) + 1; in cpio_mkfile_line() 586 size_t slen = strlen(line); in main() [all …]
|
| /linux/tools/bpf/bpftool/ |
| A D | main.c | 147 if (strlen(str) < strlen(pfx)) in is_prefix() 150 return !memcmp(str, pfx, strlen(pfx)); in is_prefix() 168 strncat(msg, "' or '", sizeof(msg) - strlen(msg) - 1); in detect_common_prefix() 169 strncat(msg, ref, sizeof(msg) - strlen(msg) - 1); in detect_common_prefix() 172 strncat(msg, "'", sizeof(msg) - strlen(msg) - 1); in detect_common_prefix() 310 if (strlen(buf) == sizeof(buf) - 1) { in do_batch() 320 strlen(contline) == 0) { in do_batch() 331 if (strlen(buf) + strlen(contline) + 1 > sizeof(buf)) { in do_batch() 336 buf[strlen(buf) - 2] = '\0'; in do_batch()
|
| /linux/arch/mips/fw/arc/ |
| A D | cmdline.c | 50 int len = strlen(used_arc[i][0]); in move_firmware_args() 55 cp += strlen(used_arc[i][1]); in move_firmware_args() 61 cp += strlen(s); in move_firmware_args() 89 int len = strlen(ignored[i]); in prom_init_cmdline() 96 cp += strlen(prom_argv(actr)); in prom_init_cmdline()
|
| /linux/drivers/acpi/acpica/ |
| A D | utnonansi.c | 131 if (strlen(source) >= dest_size) { in acpi_ut_safe_strcpy() 142 if ((strlen(dest) + strlen(source)) >= dest_size) { in acpi_ut_safe_strcat() 157 actual_transfer_length = ACPI_MIN(max_transfer_length, strlen(source)); in acpi_ut_safe_strncat() 159 if ((strlen(dest) + actual_transfer_length) >= dest_size) { in acpi_ut_safe_strncat()
|
| /linux/drivers/zorro/ |
| A D | gen-devlist.c | 54 if (strlen(line) > 5 && line[5] == ' ') { in main() 58 if (manuf_len + strlen(c) + 1 > MAX_NAME_SIZE) { in main() 63 if (manuf_len + strlen(c) + 1 > MAX_NAME_SIZE) { in main() 76 } else if (strlen(line) > 4 && line[4] == ' ') { in main() 84 manuf_len = strlen(c); in main()
|
| /linux/scripts/mod/ |
| A D | file2alias.c | 101 int len = strlen(str); in add_wildcard() 109 int len = strlen(str); in add_uuid() 120 int len = strlen(str); in add_guid() 194 sprintf(alias + strlen(alias), "%0*X", in do_usb_entry() 200 sprintf(alias + strlen(alias), in do_usb_entry() 205 sprintf(alias + strlen(alias), in do_usb_entry() 208 sprintf(alias + strlen(alias), in do_usb_entry() 572 if (id && strlen((const char *)*id)) in do_acpi_entry() 1451 if (namelen != strlen(symbol)) in sym_is() 1550 name = symname + strlen("__mod_"); in handle_moddevtable() [all …]
|
| /linux/tools/testing/selftests/powerpc/stringloops/ |
| A D | Makefile | 9 TEST_GEN_PROGS := memcmp_64 strlen 21 $(OUTPUT)/strlen: strlen.c string.c 24 $(OUTPUT)/strlen_32: strlen.c
|