/openbmc/linux/fs/btrfs/tests/ |
H A D | extent-buffer-tests.c | 26 u32 value_len = strlen(value); in test_btrfs_split_item() 97 if (btrfs_item_size(eb, 0) != strlen(split1)) { in test_btrfs_split_item() 104 strlen(split1)); in test_btrfs_split_item() 105 if (memcmp(buf, split1, strlen(split1))) { in test_btrfs_split_item() 108 (int)strlen(split1), buf, split1); in test_btrfs_split_item() 121 if (btrfs_item_size(eb, 1) != strlen(split2)) { in test_btrfs_split_item() 128 strlen(split2)); in test_btrfs_split_item() 129 if (memcmp(buf, split2, strlen(split2))) { in test_btrfs_split_item() 152 if (btrfs_item_size(eb, 0) != strlen(split3)) { in test_btrfs_split_item() 159 strlen(split3)); in test_btrfs_split_item() [all …]
|
/openbmc/linux/tools/iio/ |
H 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()
|
H A 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() 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() 580 strncmp(ent->d_name, type, strlen(type)) == 0) { in find_type_by_name() 582 ret = sscanf(ent->d_name + strlen(type), "%d", &number); in find_type_by_name() 597 if (strncmp(ent->d_name + strlen(type) + numstrlen, in find_type_by_name() [all …]
|
H 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()
|
/openbmc/linux/tools/testing/selftests/proc/ |
H 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() 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 …]
|
/openbmc/linux/tools/perf/arch/s390/util/ |
H 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()
|
/openbmc/qemu/tests/unit/ |
H A D | test-cutils.c | 116 g_assert_true(endptr == str + strlen(str)); in test_parse_uint_correct() 130 g_assert_true(endptr == str + strlen(str)); in test_parse_uint_octal() 144 g_assert_true(endptr == str + strlen(str)); in test_parse_uint_decimal() 158 g_assert_true(endptr == str + strlen(str)); in test_parse_uint_llong_max() 174 g_assert_true(endptr == str + strlen(str)); in test_parse_uint_max() 192 g_assert_true(endptr == str + strlen(str)); in test_parse_uint_overflow() 200 g_assert_true(endptr == str + strlen(str)); in test_parse_uint_overflow() 208 g_assert_true(endptr == str + strlen(str)); in test_parse_uint_overflow() 224 g_assert_true(endptr == str + strlen(str)); in test_parse_uint_negative() 232 g_assert_true(endptr == str + strlen(str)); in test_parse_uint_negative() [all …]
|
H A D | test-crypto-hmac.c | 111 strlen(KEY), &error_fatal); in test_hmac_alloc() 115 strlen(INPUT_TEXT), &result, in test_hmac_alloc() 149 resultlen = strlen(exp_output) / 2; in test_hmac_prealloc() 153 strlen(KEY), &error_fatal); in test_hmac_prealloc() 157 strlen(INPUT_TEXT), &result, in test_hmac_prealloc() 188 { .iov_base = (char *)INPUT_TEXT1, .iov_len = strlen(INPUT_TEXT1) }, in test_hmac_iov() 189 { .iov_base = (char *)INPUT_TEXT2, .iov_len = strlen(INPUT_TEXT2) }, in test_hmac_iov() 190 { .iov_base = (char *)INPUT_TEXT3, .iov_len = strlen(INPUT_TEXT3) }, in test_hmac_iov() 200 strlen(KEY), &error_fatal); in test_hmac_iov() 236 strlen(KEY), &error_fatal); in test_hmac_digest() [all …]
|
H A D | test-crypto-hash.c | 121 strlen(INPUT_TEXT), in test_hash_alloc() 156 strlen(INPUT_TEXT), in test_hash_prealloc() 180 { .iov_base = (char *)INPUT_TEXT1, .iov_len = strlen(INPUT_TEXT1) }, in test_hash_iov() 181 { .iov_base = (char *)INPUT_TEXT2, .iov_len = strlen(INPUT_TEXT2) }, in test_hash_iov() 182 { .iov_base = (char *)INPUT_TEXT3, .iov_len = strlen(INPUT_TEXT3) }, in test_hash_iov() 225 g_assert_cmpint(digestsize * 2, ==, strlen(expected_outputs[i])); in test_hash_digest() 229 strlen(INPUT_TEXT), in test_hash_digest() 253 strlen(INPUT_TEXT), in test_hash_base64() 269 { .iov_base = (char *)INPUT_TEXT1, .iov_len = strlen(INPUT_TEXT1) }, in test_hash_accumulate() 270 { .iov_base = (char *)INPUT_TEXT2, .iov_len = strlen(INPUT_TEXT2) }, in test_hash_accumulate() [all …]
|
/openbmc/linux/arch/um/os-Linux/ |
H 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() 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 …]
|
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-connectivity/ez-ipupdate/files/ |
H A D | 0001-ez-ipupdate-Include-time.h-for-time-API-prototype.patch | 28 p += strlen(p); 29 limit = BUFFER_SIZE - 1 - strlen(buf); 31 - snprintf(buf, BUFFER_SIZE, "Content-length: %d\015\012", strlen(putbuf)); 32 + snprintf(buf, BUFFER_SIZE, "Content-length: %lu\015\012", strlen(putbuf)); 37 p += strlen(p); 38 limit = BUFFER_SIZE - 1 - strlen(buf); 40 - snprintf(buf, BUFFER_SIZE, "Content-length: %d\015\012", strlen(putbuf)); 41 + snprintf(buf, BUFFER_SIZE, "Content-length: %lu\015\012", strlen(putbuf));
|
/openbmc/linux/tools/net/ynl/generated/ |
H A D | devlink-user.h | 95 req->_present.bus_name_len = strlen(bus_name); in devlink_get_req_set_bus_name() 104 req->_present.dev_name_len = strlen(dev_name); in devlink_get_req_set_dev_name() 169 req->_present.bus_name_len = strlen(bus_name); in devlink_port_get_req_set_bus_name() 179 req->_present.dev_name_len = strlen(dev_name); in devlink_port_get_req_set_dev_name() 235 req->_present.bus_name_len = strlen(bus_name); in devlink_port_get_req_dump_set_bus_name() 245 req->_present.dev_name_len = strlen(dev_name); in devlink_port_get_req_dump_set_dev_name() 299 req->_present.bus_name_len = strlen(bus_name); in devlink_sb_get_req_set_bus_name() 309 req->_present.dev_name_len = strlen(dev_name); in devlink_sb_get_req_set_dev_name() 364 req->_present.bus_name_len = strlen(bus_name); in devlink_sb_get_req_dump_set_bus_name() 374 req->_present.dev_name_len = strlen(dev_name); in devlink_sb_get_req_dump_set_dev_name() [all …]
|
/openbmc/u-boot/env/ |
H A D | attr.c | 46 int entry_len = strlen(entry); in env_attr_walk() 94 if (strlen(name) != 0) { in env_attr_walk() 124 char regex[strlen(name) + 3]; in regex_callback() 132 strlen(cbp->searched_for), caps)) { in regex_callback() 138 cbp->regex = malloc(strlen(regex) + 1); in regex_callback() 147 cbp->attributes = malloc(strlen(attributes) + 1); in regex_callback() 214 return strlen(searched); in reverse_name_search() 227 nextch = match + strlen(search_for); in reverse_name_search() 249 result_size = strlen(search_for); in reverse_name_search() 295 len = strlen(entry); in env_attr_lookup()
|
/openbmc/linux/tools/tracing/rtla/src/ |
H A D | utils.c | 301 retval = strncmp(comm_prefix, buffer, strlen(comm_prefix)); in procfs_is_workload_pid() 325 if (strlen(comm_prefix) >= MAX_PATH) { in set_comm_sched_attr() 420 if (strlen(arg) < 4) in parse_prio() 605 if (strlen(start) >= sizeof_self_cg) in get_self_cgroup() 635 char cgroup_path[MAX_PATH - strlen("/cgroup.procs")]; in set_pid_cgroup() 648 retval = get_self_cgroup(&cgroup_path[strlen(cgroup_path)], in set_pid_cgroup() 649 sizeof(cgroup_path) - strlen(cgroup_path)); in set_pid_cgroup() 655 snprintf(&cgroup_path[strlen(cgroup_path)], in set_pid_cgroup() 656 sizeof(cgroup_path) - strlen(cgroup_path), "%s/", cgroup); in set_pid_cgroup() 669 retval = write(cg_fd, pid_str, strlen(pid_str)); in set_pid_cgroup() [all …]
|
/openbmc/linux/security/apparmor/ |
H A D | policy_unpack_test.c | 15 (3 + strlen(TEST_STRING_NAME) + 1) 20 (TEST_STRING_BUF_OFFSET + 3 + strlen(TEST_STRING_DATA) + 1) 22 (TEST_NAMED_U32_BUF_OFFSET + 3 + strlen(TEST_U32_NAME) + 1) 31 (TEST_NAMED_U64_BUF_OFFSET + 3 + strlen(TEST_U64_NAME) + 1) 38 (TEST_NAMED_BLOB_BUF_OFFSET + 3 + strlen(TEST_BLOB_NAME) + 1) 45 (TEST_NAMED_ARRAY_BUF_OFFSET + 3 + strlen(TEST_ARRAY_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() 80 *(buf + 1) = strlen(TEST_U32_NAME) + 1; in build_aa_ext_struct() 82 *(buf + 3 + strlen(TEST_U32_NAME) + 1) = AA_U32; in build_aa_ext_struct() [all …]
|
/openbmc/linux/arch/um/drivers/ |
H 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)
|
/openbmc/linux/arch/alpha/lib/ |
H A D | ev67-strlen.S | 25 .globl strlen 26 .ent strlen 28 strlen: label 50 .end strlen 51 EXPORT_SYMBOL(strlen)
|
H A D | strlen.S | 21 .globl strlen 22 .ent strlen 24 strlen: label 58 .end strlen 59 EXPORT_SYMBOL(strlen)
|
/openbmc/linux/net/ceph/ |
H 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() 198 int old_cookie_len = strlen(old_cookie); in ceph_cls_set_cookie() [all …]
|
/openbmc/linux/arch/mips/rb532/ |
H 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()
|
/openbmc/linux/drivers/s390/net/ |
H 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()
|
/openbmc/linux/mm/damon/ |
H 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()
|
/openbmc/linux/fs/smb/client/ |
H 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()
|
/openbmc/linux/arch/mips/fw/arc/ |
H 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()
|
/openbmc/linux/drivers/md/ |
H A D | dm-ima.c | 28 int l = strlen(*buf); in fix_separator_chars() 172 md->ima.dm_version_str_len = strlen(DM_IMA_VERSION_STR); in dm_ima_reset_data() 195 const size_t hash_alg_prefix_len = strlen(DM_IMA_TABLE_HASH_ALG) + 1; in dm_ima_measure_on_table_load() 232 device_data_buf_len = strlen(device_data_buf); in dm_ima_measure_on_table_load() 247 target_metadata_buf_len = strlen(target_metadata_buf); in dm_ima_measure_on_table_load() 258 target_data_buf_len = strlen(target_data_buf); in dm_ima_measure_on_table_load() 343 table->md->ima.inactive_table.hash_len = strlen(digest_buf); in dm_ima_measure_on_table_load() 373 unsigned int active_len = strlen(active), capacity_len = 0; in dm_ima_measure_on_device_resume() 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() [all …]
|