/linux-6.3-rc2/fs/btrfs/tests/ |
A D | extent-buffer-tests.c | 26 u32 value_len = strlen(value); in test_btrfs_split_item() 100 strlen(split1)); in test_btrfs_split_item() 101 if (memcmp(buf, split1, strlen(split1))) { in test_btrfs_split_item() 104 (int)strlen(split1), buf, split1); in test_btrfs_split_item() 124 strlen(split2)); in test_btrfs_split_item() 125 if (memcmp(buf, split2, strlen(split2))) { in test_btrfs_split_item() 155 strlen(split3)); in test_btrfs_split_item() 156 if (memcmp(buf, split3, strlen(split3))) { in test_btrfs_split_item() 178 strlen(split4)); in test_btrfs_split_item() 179 if (memcmp(buf, split4, strlen(split4))) { in test_btrfs_split_item() [all …]
|
/linux-6.3-rc2/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 | 339 if (strcmp(ent->d_name + strlen(ent->d_name) - strlen("_en"), in build_channel_array() 381 if (strcmp(ent->d_name + strlen(ent->d_name) - strlen("_en"), in build_channel_array() 424 strlen(ent->d_name) - in build_channel_array() 425 strlen("_en")); in build_channel_array() 579 strlen(ent->d_name) > strlen(type) && in find_type_by_name() 599 filename = malloc(strlen(iio_dir) + strlen(type) in find_type_by_name() 658 char *temp = malloc(strlen(basedir) + strlen(filename) + 2); in _write_sysfs_int() 754 char *temp = malloc(strlen(basedir) + strlen(filename) + 2); in _write_sysfs_string() 861 char *temp = malloc(strlen(basedir) + strlen(filename) + 2); in read_sysfs_posint() 908 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-6.3-rc2/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-6.3-rc2/tools/testing/selftests/proc/ |
A D | proc-pid-vm.c | 355 const size_t len = strlen(buf0) + strlen(str_vsyscall); in main() 367 assert(memcmp(buf, buf0, strlen(buf0)) == 0); in main() 369 assert(memcmp(buf + strlen(buf0), str_vsyscall, strlen(str_vsyscall)) == 0); in main() 387 assert(rv >= strlen(buf0)); in main() 388 assert(memcmp(buf, buf0, strlen(buf0)) == 0); in main() 394 assert(memmem(buf, rv, RSS1, strlen(RSS1)) || in main() 395 memmem(buf, rv, RSS2, strlen(RSS2))); in main() 397 memmem(buf, rv, PSS2, strlen(PSS2))); in main() 443 assert(rv >= strlen(bufr)); in main() 447 memmem(buf, rv, RSS2, strlen(RSS2))); in main() [all …]
|
/linux-6.3-rc2/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() 215 n = strlen(uml_dir) + UMID_LEN + sizeof("/pid"); in create_pid_file() 231 n = write(fd, pid, strlen(pid)); in create_pid_file() 232 if (n != strlen(pid)) in create_pid_file() 243 if (strlen(name) > UMID_LEN - 1) in set_umid() 277 set_umid(&tmp[strlen(uml_dir)]); in make_umid() 366 if (name[strlen(name) - 1] == '/') { in set_uml_dir() 371 uml_dir = malloc(strlen(name) + 2); in set_uml_dir() [all …]
|
/linux-6.3-rc2/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-6.3-rc2/security/apparmor/ |
A D | policy_unpack_test.c | 15 (3 + strlen(TEST_STRING_NAME) + 1) 71 *(buf + 1) = strlen(TEST_STRING_NAME) + 1; in build_aa_ext_struct() 76 *(buf + 1) = strlen(TEST_STRING_DATA) + 1; in build_aa_ext_struct() 81 *(buf + 1) = strlen(TEST_U32_NAME) + 1; in build_aa_ext_struct() 83 *(buf + 3 + strlen(TEST_U32_NAME) + 1) = AA_U32; in build_aa_ext_struct() 88 *(buf + 1) = strlen(TEST_U64_NAME) + 1; in build_aa_ext_struct() 95 *(buf + 1) = strlen(TEST_BLOB_NAME) + 1; in build_aa_ext_struct() 99 memcpy(buf + 3 + strlen(TEST_BLOB_NAME) + 6, in build_aa_ext_struct() 104 *(buf + 1) = strlen(TEST_ARRAY_NAME) + 1; in build_aa_ext_struct() 263 + strlen(TEST_STRING_DATA) - 1; in policy_unpack_test_unpack_str_out_of_bounds() [all …]
|
/linux-6.3-rc2/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-6.3-rc2/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-6.3-rc2/kernel/debug/kdb/ |
A D | kdb_io.c | 40 int slen = strlen(buffer); in kgdb_transition_check() 204 int len = strlen(buffer); in kdb_read() 327 len = strlen(p_tmp); in kdb_read() 356 len_tmp = strlen(p_tmp); in kdb_read() 358 len_tmp = strlen(p_tmp); in kdb_read() 520 len1 = strlen(searched)-1; in kdb_search_string() 521 len2 = strlen(searchfor); in kdb_search_string() 687 len = strlen(kdb_buffer); in vkdb_printf() 717 len = strlen(kdb_buffer); in vkdb_printf() 742 retlen = strlen(kdb_buffer); in vkdb_printf() [all …]
|
/linux-6.3-rc2/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-6.3-rc2/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-6.3-rc2/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-6.3-rc2/mm/damon/ |
A D | dbgfs-test.h | 23 answers = str_to_ints(question, strlen(question), &nr_integers); in damon_dbgfs_test_str_to_ints() 29 answers = str_to_ints(question, strlen(question), &nr_integers); in damon_dbgfs_test_str_to_ints() 35 answers = str_to_ints(question, strlen(question), &nr_integers); in damon_dbgfs_test_str_to_ints() 40 answers = str_to_ints(question, strlen(question), &nr_integers); in damon_dbgfs_test_str_to_ints() 47 answers = str_to_ints(question, strlen(question), &nr_integers); in damon_dbgfs_test_str_to_ints() 54 answers = str_to_ints(question, strlen(question), &nr_integers); in damon_dbgfs_test_str_to_ints() 61 answers = str_to_ints(question, strlen(question), &nr_integers); in damon_dbgfs_test_str_to_ints() 66 answers = str_to_ints(question, strlen(question), &nr_integers); in damon_dbgfs_test_str_to_ints()
|
/linux-6.3-rc2/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-6.3-rc2/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-6.3-rc2/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-6.3-rc2/drivers/md/ |
A D | dm-ima.c | 28 int l = strlen(*buf); in fix_separator_chars() 232 device_data_buf_len = strlen(device_data_buf); in dm_ima_measure_on_table_load() 258 target_data_buf_len = strlen(target_data_buf); in dm_ima_measure_on_table_load() 454 l = strlen(device_table_data); in dm_ima_measure_on_device_resume() 458 capacity_len = strlen(capacity_str); in dm_ima_measure_on_device_resume() 486 unsigned int remove_all_len = strlen(remove_all_str); in dm_ima_measure_on_device_remove() 567 l = strlen(device_table_data); in dm_ima_measure_on_device_remove() 575 capacity_len = strlen(capacity_str); in dm_ima_measure_on_device_remove() 610 unsigned int inactive_len = strlen(inactive_str); in dm_ima_measure_on_table_clear() 653 l = strlen(device_table_data); in dm_ima_measure_on_table_clear() [all …]
|
/linux-6.3-rc2/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
|
/linux-6.3-rc2/usr/ |
A D | gen_init_cpio.c | 39 unsigned int name_len = strlen(name) + 1; in push_string() 56 unsigned int name_len = strlen(name) + 1; in push_rest() 96 (unsigned)strlen(name)+1, /* namesize */ in cpio_trailer() 128 (unsigned)strlen(name) + 1,/* namesize */ in cpio_mkslink() 177 (unsigned)strlen(name) + 1,/* namesize */ in cpio_mkgeneric() 375 namesize = strlen(name) + 1; in cpio_mkfile() 466 dname = malloc(strlen(line)); in cpio_mkfile_line() 472 dname_len = strlen(name) + 1; in cpio_mkfile_line() 480 len = strlen(name) + 1; in cpio_mkfile_line() 628 size_t slen = strlen(line); in main() [all …]
|
/linux-6.3-rc2/tools/bpf/bpftool/ |
A D | main.c | 219 if (strlen(str) < strlen(pfx)) in is_prefix() 222 return !memcmp(str, pfx, strlen(pfx)); in is_prefix() 240 strncat(msg, "' or '", sizeof(msg) - strlen(msg) - 1); in detect_common_prefix() 241 strncat(msg, ref, sizeof(msg) - strlen(msg) - 1); in detect_common_prefix() 244 strncat(msg, "'", sizeof(msg) - strlen(msg) - 1); in detect_common_prefix() 362 if (strlen(buf) == sizeof(buf) - 1) { in do_batch() 372 strlen(contline) == 0) { in do_batch() 383 if (strlen(buf) + strlen(contline) + 1 > sizeof(buf)) { in do_batch() 388 buf[strlen(buf) - 2] = '\0'; in do_batch()
|
/linux-6.3-rc2/tools/perf/util/ |
A D | topdown.c | 19 len += strlen(attr[i]) + strlen(pmu_name) + 3; in topdown_filter_events() 21 len += strlen(attr[i]) + 1; in topdown_filter_events() 43 s += strlen(s); in topdown_filter_events()
|