/linux-6.1.9/fs/btrfs/tests/ |
D | extent-buffer-tests.c | 25 u32 value_len = strlen(value); in test_btrfs_split_item() 92 if (btrfs_item_size(eb, 0) != strlen(split1)) { in test_btrfs_split_item() 99 strlen(split1)); in test_btrfs_split_item() 100 if (memcmp(buf, split1, strlen(split1))) { in test_btrfs_split_item() 103 (int)strlen(split1), buf, split1); in test_btrfs_split_item() 116 if (btrfs_item_size(eb, 1) != strlen(split2)) { in test_btrfs_split_item() 123 strlen(split2)); in test_btrfs_split_item() 124 if (memcmp(buf, split2, strlen(split2))) { in test_btrfs_split_item() 147 if (btrfs_item_size(eb, 0) != strlen(split3)) { in test_btrfs_split_item() 154 strlen(split3)); in test_btrfs_split_item() [all …]
|
/linux-6.1.9/tools/iio/ |
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()
|
D | iio_utils.c | 38 strlen(iio_direction[i]))) { in iioutils_break_up_name() 43 current = strdup(full_name + strlen(prefix) + 1); in iioutils_break_up_name() 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() 590 strlen(ent->d_name) > strlen(type) && in find_type_by_name() 591 strncmp(ent->d_name, type, strlen(type)) == 0) { in find_type_by_name() 593 ret = sscanf(ent->d_name + strlen(type), "%d", &number); in find_type_by_name() 608 if (strncmp(ent->d_name + strlen(type) + numstrlen, in find_type_by_name() [all …]
|
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.1.9/tools/perf/arch/s390/util/ |
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.1.9/tools/testing/selftests/proc/ |
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() 396 assert(memmem(buf, rv, PSS1, strlen(PSS1)) || in main() 397 memmem(buf, rv, PSS2, strlen(PSS2))); in main() 412 assert(memmem(buf, rv, S[i], strlen(S[i]))); in main() [all …]
|
D | setns-sysvipc.c | 123 if (rv == strlen(S32)) { in main() 124 assert(memcmp(buf, S32, strlen(S32)) == 0); in main() 125 } else if (rv == strlen(S64)) { in main() 126 assert(memcmp(buf, S64, strlen(S64)) == 0); in main()
|
/linux-6.1.9/arch/um/os-Linux/ |
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() 140 size_t filelen = strlen(dir) + sizeof("/pid") + 1; in is_umdir_used() 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() [all …]
|
/linux-6.1.9/arch/um/drivers/ |
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.1.9/security/apparmor/ |
D | policy_unpack_test.c | 14 (3 + strlen(TEST_STRING_NAME) + 1) 19 (TEST_STRING_BUF_OFFSET + 3 + strlen(TEST_STRING_DATA) + 1) 21 (TEST_NAMED_U32_BUF_OFFSET + 3 + strlen(TEST_U32_NAME) + 1) 30 (TEST_NAMED_U64_BUF_OFFSET + 3 + strlen(TEST_U64_NAME) + 1) 37 (TEST_NAMED_BLOB_BUF_OFFSET + 3 + strlen(TEST_BLOB_NAME) + 1) 44 (TEST_NAMED_ARRAY_BUF_OFFSET + 3 + strlen(TEST_ARRAY_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() [all …]
|
/linux-6.1.9/arch/alpha/lib/ |
D | ev67-strlen.S | 25 .globl strlen 26 .ent strlen 28 strlen: label 50 .end strlen 51 EXPORT_SYMBOL(strlen)
|
D | strlen.S | 21 .globl strlen 22 .ent strlen 24 strlen: label 58 .end strlen 59 EXPORT_SYMBOL(strlen)
|
/linux-6.1.9/net/ceph/ |
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() 198 int old_cookie_len = strlen(old_cookie); in ceph_cls_set_cookie() [all …]
|
/linux-6.1.9/kernel/debug/kdb/ |
D | kdb_io.c | 40 int slen = strlen(buffer); in kgdb_transition_check() 204 int len = strlen(buffer); in kdb_read() 290 strlen(kdb_prompt_str) + (lastchar-buffer)); in kdb_read() 291 *(tmpbuffer+strlen(kdb_prompt_str) + in kdb_read() 305 strlen(kdb_prompt_str) + (lastchar-buffer)); in kdb_read() 306 *(tmpbuffer+strlen(kdb_prompt_str) + 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() [all …]
|
/linux-6.1.9/arch/mips/rb532/ |
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.1.9/drivers/s390/net/ |
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.1.9/fs/cifs/ |
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.1.9/mm/damon/ |
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.1.9/arch/mips/fw/arc/ |
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.1.9/drivers/acpi/acpica/ |
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.1.9/drivers/zorro/ |
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.1.9/tools/bpf/bpftool/ |
D | main.c | 178 if (strlen(str) < strlen(pfx)) in is_prefix() 181 return !memcmp(str, pfx, strlen(pfx)); in is_prefix() 199 strncat(msg, "' or '", sizeof(msg) - strlen(msg) - 1); in detect_common_prefix() 200 strncat(msg, ref, sizeof(msg) - strlen(msg) - 1); in detect_common_prefix() 203 strncat(msg, "'", sizeof(msg) - strlen(msg) - 1); in detect_common_prefix() 341 if (strlen(buf) == sizeof(buf) - 1) { in do_batch() 351 strlen(contline) == 0) { in do_batch() 362 if (strlen(buf) + strlen(contline) + 1 > sizeof(buf)) { in do_batch() 367 buf[strlen(buf) - 2] = '\0'; in do_batch()
|
/linux-6.1.9/drivers/md/ |
D | dm-ima.c | 29 int l = strlen(*buf); in fix_separator_chars() 173 md->ima.dm_version_str_len = strlen(DM_IMA_VERSION_STR); in dm_ima_reset_data() 196 const size_t hash_alg_prefix_len = strlen(DM_IMA_TABLE_HASH_ALG) + 1; in dm_ima_measure_on_table_load() 233 device_data_buf_len = strlen(device_data_buf); in dm_ima_measure_on_table_load() 248 target_metadata_buf_len = strlen(target_metadata_buf); in dm_ima_measure_on_table_load() 259 target_data_buf_len = strlen(target_data_buf); in dm_ima_measure_on_table_load() 344 table->md->ima.inactive_table.hash_len = strlen(digest_buf); in dm_ima_measure_on_table_load() 374 unsigned int active_len = strlen(active), capacity_len = 0; in dm_ima_measure_on_device_resume() 455 l = strlen(device_table_data); in dm_ima_measure_on_device_resume() 459 capacity_len = strlen(capacity_str); in dm_ima_measure_on_device_resume() [all …]
|
/linux-6.1.9/tools/testing/selftests/powerpc/stringloops/ |
D | Makefile | 9 TEST_GEN_PROGS := memcmp_64 strlen 21 $(OUTPUT)/strlen: strlen.c string.c 24 $(OUTPUT)/strlen_32: strlen.c
|
/linux-6.1.9/usr/ |
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() 123 (unsigned)strlen(target)+1, /* filesize */ in cpio_mkslink() 128 (unsigned)strlen(name) + 1,/* namesize */ in cpio_mkslink() 177 (unsigned)strlen(name) + 1,/* namesize */ in cpio_mkgeneric() 271 (unsigned)strlen(name) + 1,/* namesize */ in cpio_mknod() 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() [all …]
|