Home
last modified time | relevance | path

Searched refs:strncmp (Results 1 – 12 of 12) sorted by relevance

/lib/kunit/
Dattributes.c82 if (!strncmp(op, "<=", 2)) in int_filter()
84 else if (!strncmp(op, ">=", 2)) in int_filter()
86 else if (!strncmp(op, "!=", 2)) in int_filter()
88 else if (!strncmp(op, ">", 1)) in int_filter()
90 else if (!strncmp(op, "<", 1)) in int_filter()
92 else if (!strncmp(op, "=", 1)) in int_filter()
151 if (!strncmp(input, "<", 1)) { in attr_string_filter()
155 } else if (!strncmp(input, ">", 1)) { in attr_string_filter()
159 } else if (!strncmp(input, "!=", 2)) { in attr_string_filter()
161 } else if (!strncmp(input, "=", 1)) { in attr_string_filter()
Dassert.c108 ret = strncmp(buffer, text, len) == 0; in is_literal()
181 return strncmp(text + 1, value, len - 2) == 0; in is_str_literal()
/lib/
Dtest_printf.c232 if (strncmp(buf, PTR_VAL_NO_CRNG, PTR_WIDTH) == 0) { in plain_format()
238 if (strncmp(buf, ZEROS, strlen(ZEROS)) != 0) in plain_format()
272 if (strncmp(buf, PTR_VAL_NO_CRNG, PTR_WIDTH) == 0) { in plain_hash_to_buffer()
291 if (strncmp(buf, PTR_STR, PTR_WIDTH) == 0) in plain_hash()
Dtest_firmware.c144 if (strncmp(name, tst->name, strlen(tst->name)) == 0) in upload_lookup_name()
1143 if (strncmp(p, fw_upload_err_str[err], in upload_err_inject_error()
1161 if (strncmp(p, progs[i], strlen(progs[i])) == 0) { in upload_err_inject_prog()
1197 if (strncmp(data, "inject:", strlen("inject:")) == 0) in test_fw_upload_prepare()
1204 strncmp(tst->inject.prog, progress, strlen(progress)) != 0) in test_fw_upload_prepare()
1240 strncmp(tst->inject.prog, progress, strlen(progress)) != 0) in test_fw_upload_write()
1258 strncmp(tst->inject.prog, progress, strlen(progress)) != 0) in test_fw_upload_complete()
Dcmdline.c206 if (!strncmp(str, option, strlen(option))) { in parse_option_str()
Dstrscpy_kunit.c54 KUNIT_ASSERT_EQ_MSG(test, 0, strncmp(buf, src, count - 1), in tc()
Dparser.c48 if (strncmp(p, s, meta-p)) in match_one()
Dstring.c300 int strncmp(const char *cs, const char *ct, size_t count) in strncmp() function
315 EXPORT_SYMBOL(strncmp);
Dkobject_uevent.c85 if (strncmp(kobject_actions[action], buf, count_first) != 0) in kobject_action_type()
426 if (strncmp(env->envp[i], modalias_prefix, in zap_modalias_env()
Dtest_bitmap.c169 eq = strncmp(exp_str, str, len) == 0; in __check_eq_str()
520 if (strncmp(buf, expected, slen)) { in test_bitmap_printlist()
Dbootconfig.c199 if (strncmp(*prefix, p, len)) in xbc_node_match_prefix()
Ddynamic_debug.c85 if (strncmp(path, __FILE__, skip)) in trim_prefix()