/lib/ |
D | string.c | 143 size_t ret = strlen(src); in strlcpy() 356 size_t dsize = strlen(dest); in strlcat() 357 size_t len = strlen(src); in strlcat() 544 size = strlen(s); in strim() 562 size_t strlen(const char *s) in strlen() function 570 EXPORT_SYMBOL(strlen); 1016 l2 = strlen(s2); in strstr() 1019 l1 = strlen(s1); in strstr() 1042 l2 = strlen(s2); in strnstr()
|
D | globtest.c | 147 p += strlen(p) + 1; in glob_init() 149 p += strlen(p) + 1; in glob_init()
|
D | cmdline_kunit.c | 81 offset = strlen(in) - strlen(str) + !!(rc == 2); in cmdline_test_lead_int() 102 offset = rc ? strlen(in) : !!(*str == '-'); in cmdline_test_tail_int()
|
D | test-string_helpers.c | 77 int len = strlen(strings[i].in); in test_string_unescape() 86 len = strlen(strings[i].out); in test_string_unescape() 453 len = strlen(s2->in); in test_string_escape() 458 len = strlen(out); in test_string_escape() 492 if (!memcmp(res, exp, strlen(exp) + 1)) in test_string_get_size_check() 547 int len = strlen(strings_upper[i].in) + 1; in test_string_upper_lower() 565 int len = strlen(strings_lower[i].in) + 1; in test_string_upper_lower()
|
D | test_string.c | 122 for (i = 0; i < strlen(test_string) + 1; i++) { in strchr_selftest() 150 for (i = 0; i < strlen(test_string) + 1; i++) { in strnchr_selftest() 151 for (j = 0; j < strlen(test_string) + 2; j++) { in strnchr_selftest()
|
D | test_printf.c | 137 __test(expect, strlen(expect), fmt, ##__VA_ARGS__) 238 if (strncmp(buf, ZEROS, strlen(ZEROS)) != 0) in plain_format() 621 size = strlen(cmp_buf); in page_flags_test() 626 size = strlen(cmp_buf); in page_flags_test() 640 size = strlen(cmp_buf); in page_flags_test() 645 size = strlen(cmp_buf); in page_flags_test() 648 size = strlen(cmp_buf); in page_flags_test()
|
D | cmdline.c | 206 if (!strncmp(str, option, strlen(option))) { in parse_option_str() 207 str += strlen(option); in parse_option_str()
|
D | net_utils.c | 12 if (strlen(s) < 3 * ETH_ALEN - 1) in mac_pton()
|
D | bootconfig.c | 129 int len = strlen(p); in xbc_node_match_prefix() 452 ret = p + strlen(p); in skip_comment() 752 wlen = strlen(xbc_node_get_data(n)) + 1; in xbc_verify_tree() 773 len -= strlen(xbc_node_get_data(n)) + 1; in xbc_verify_tree() 828 ret = strlen(buf); in xbc_init()
|
D | test_bitmap.c | 498 size_t len = test.flags & NO_LEN ? UINT_MAX : strlen(test.in); in test_bitmap_parse() 794 expect_eq_uint(strlen(t->mask) + 1, n); in test_bitmap_print_buf() 799 expect_eq_uint(strlen(t->list) + 1, n); in test_bitmap_print_buf() 803 if (strlen(t->list) > PAGE_SIZE) { in test_bitmap_print_buf() 806 expect_eq_uint(strlen(t->list) + 1 - PAGE_SIZE, n); in test_bitmap_print_buf()
|
D | test_kmod.c | 744 strlen(test_str)); in trigger_config_run_type() 750 strlen(test_str)); in trigger_config_run_type() 761 if (copied <= 0 || copied != strlen(test_str)) { in trigger_config_run_type() 815 strlen(TEST_START_DRIVER)); in __kmod_config_init() 816 if (copied != strlen(TEST_START_DRIVER)) in __kmod_config_init() 820 strlen(TEST_START_TEST_FS)); in __kmod_config_init() 821 if (copied != strlen(TEST_START_TEST_FS)) in __kmod_config_init()
|
D | earlycpio.c | 67 size_t mypathsize = strlen(path); in find_cpio_data()
|
D | kobject.c | 141 length += strlen(kobject_name(parent)) + 1; in get_kobj_path_length() 153 int cur = strlen(kobject_name(parent)); in fill_kobj_path() 519 devpath_string = kmalloc(strlen(devpath) + 15, GFP_KERNEL); in kobject_rename() 585 devpath_string = kmalloc(strlen(devpath) + 15, GFP_KERNEL); in kobject_move()
|
D | dynamic_debug.c | 78 int skip = strlen(__FILE__) - strlen("lib/dynamic_debug.c"); in trim_prefix() 128 fmtlen = strlen(query->format); in vpr_info_dq() 729 if (strlen(str) >= DDEBUG_STRING_SIZE) { in ddebug_setup_query()
|
D | kobject_uevent.c | 289 len = strlen(action_string) + strlen(devpath) + 2; in alloc_uevent_skb() 432 len = strlen(env->envp[i]) + 1; in zap_modalias_env()
|
D | parser.c | 60 size_t str_len = strlen(s); in match_one()
|
D | test_hexdump.c | 100 size_t amount = strlen(q); in test_hexdump_prepare_test()
|
D | seq_buf.c | 144 size_t len = strlen(str); in seq_buf_puts()
|
D | string_helpers.c | 602 slen = strlen(src); in kstrdup_quotable()
|
D | vsprintf.c | 990 if (isdigit(hd->disk_name[strlen(hd->disk_name)-1])) { in bdev_name() 1812 p += strlen(p); in fourcc_string() 3110 len = strlen(save_str) + 1; in vbin_printf() 3286 args += strlen(str_arg) + 1; in bstr_printf() 3310 len = copy = strlen(args); in bstr_printf()
|
D | nlattr.c | 829 int len = strlen(str); in nla_strcmp()
|
D | bitmap.c | 507 size = memory_read_from_buffer(buf, count, &off, data, strlen(data) + 1); in bitmap_print_to_buf()
|
/lib/kunit/ |
D | assert.c | 100 if (strlen(text) != len) in is_literal() 173 len = strlen(text); in is_str_literal()
|
D | test.c | 113 len_left = KUNIT_LOG_SIZE - strlen(log) - 1; in kunit_log_append()
|
/lib/mpi/ |
D | mpicoder.c | 133 nbits = strlen(str); in mpi_fromstr()
|