/lib/kunit/ |
A D | attributes.c | 92 if (!strncmp(op, "<=", 2)) in int_filter() 94 else if (!strncmp(op, ">=", 2)) in int_filter() 96 else if (!strncmp(op, "!=", 2)) in int_filter() 98 else if (!strncmp(op, ">", 1)) in int_filter() 100 else if (!strncmp(op, "<", 1)) in int_filter() 102 else if (!strncmp(op, "=", 1)) in int_filter() 161 if (!strncmp(input, "<", 1)) { in attr_string_filter() 165 } else if (!strncmp(input, ">", 1)) { in attr_string_filter() 169 } else if (!strncmp(input, "!=", 2)) { in attr_string_filter() 171 } else if (!strncmp(input, "=", 1)) { in attr_string_filter()
|
A D | assert.c | 109 ret = strncmp(buffer, text, len) == 0; in is_literal() 181 return strncmp(text + 1, value, len - 2) == 0; in is_str_literal()
|
/lib/tests/ |
A D | string_kunit.c | 232 STRCMP_TEST_EXPECT_EQUAL(test, strncmp, "Hello, KUnit!", "Hello, KUnit!", 13); in string_test_strncmp() 234 STRCMP_TEST_EXPECT_LOWER(test, strncmp, "Hello, KUnit!", "Hello, Kernel!", 13); in string_test_strncmp() 236 STRCMP_TEST_EXPECT_EQUAL(test, strncmp, "Hello, Kernel!", "Hello, KUnit!", 0); in string_test_strncmp() 238 STRCMP_TEST_EXPECT_EQUAL(test, strncmp, "Abacaba", "Abadaba", 3); in string_test_strncmp() 240 STRCMP_TEST_EXPECT_LOWER(test, strncmp, "Abacaba", "Abadaba", 4); in string_test_strncmp() 255 STRCMP_TEST_EXPECT_EQUAL(test, strncmp, strcmp_buffer1, in string_test_strncmp_long_strings() 259 STRCMP_TEST_EXPECT_LOWER(test, strncmp, strcmp_buffer1, in string_test_strncmp_long_strings() 263 STRCMP_TEST_EXPECT_GREATER(test, strncmp, strcmp_buffer1, in string_test_strncmp_long_strings() 266 STRCMP_TEST_EXPECT_EQUAL(test, strncmp, strcmp_buffer1, in string_test_strncmp_long_strings() 268 STRCMP_TEST_EXPECT_GREATER(test, strncmp, strcmp_buffer1, in string_test_strncmp_long_strings() [all …]
|
A D | printf_kunit.c | 241 if (strncmp(buf, PTR_VAL_NO_CRNG, PTR_WIDTH) == 0) { in plain_hash_to_buffer()
|
/lib/ |
A D | fw_table.c | 90 if (strncmp(id, ACPI_SIG_HMAT, 4) == 0) in acpi_get_subtable_type() 92 if (strncmp(id, ACPI_SIG_PRMT, 4) == 0) in acpi_get_subtable_type() 94 if (strncmp(id, ACPI_SIG_CEDT, 4) == 0) in acpi_get_subtable_type() 96 if (strncmp(id, ACPI_SIG_CDAT, 4) == 0) in acpi_get_subtable_type()
|
A D | test_firmware.c | 144 if (strncmp(name, tst->name, strlen(tst->name)) == 0) in upload_lookup_name() 1144 if (strncmp(p, fw_upload_err_str[err], in upload_err_inject_error() 1162 if (strncmp(p, progs[i], strlen(progs[i])) == 0) { in upload_err_inject_prog() 1198 if (strncmp(data, "inject:", strlen("inject:")) == 0) in test_fw_upload_prepare() 1205 strncmp(tst->inject.prog, progress, strlen(progress)) != 0) in test_fw_upload_prepare() 1241 strncmp(tst->inject.prog, progress, strlen(progress)) != 0) in test_fw_upload_write() 1259 strncmp(tst->inject.prog, progress, strlen(progress)) != 0) in test_fw_upload_complete()
|
A D | cmdline.c | 206 if (!strncmp(str, option, strlen(option))) { in parse_option_str()
|
A D | parser.c | 48 if (strncmp(p, s, meta-p)) in match_one()
|
A D | string.c | 302 int strncmp(const char *cs, const char *ct, size_t count) in strncmp() function 317 EXPORT_SYMBOL(strncmp);
|
A D | kobject_uevent.c | 84 if (strncmp(kobject_actions[action], buf, count_first) != 0) in kobject_action_type() 427 if (strncmp(env->envp[i], modalias_prefix, in zap_modalias_env()
|
A D | codetag.c | 241 if (strncmp(name, CODETAG_SECTION_PREFIX, strlen(CODETAG_SECTION_PREFIX))) in codetag_needs_module_section()
|
A D | test_bitmap.c | 140 eq = strncmp(exp_str, str, len) == 0; in __check_eq_str() 556 if (strncmp(buf, expected, slen)) { in test_bitmap_printlist()
|
A D | alloc_tag.c | 710 if (!strncmp(str, "never", 5)) { in setup_early_mem_profiling()
|
A D | bootconfig.c | 197 if (strncmp(*prefix, p, len)) in xbc_node_match_prefix()
|
A D | vsprintf.c | 2345 } else if (strncmp(str, "auto", 4) == 0) { in hash_pointers_mode_parse() 2348 } else if (strncmp(str, "never", 5) == 0) { in hash_pointers_mode_parse() 2351 } else if (strncmp(str, "always", 6) == 0) { in hash_pointers_mode_parse()
|
A D | dynamic_debug.c | 85 if (strncmp(path, __FILE__, skip)) in trim_prefix()
|