| /kernel/linux/linux-5.10/sound/soc/sof/ |
| D | ipc.c | 54 u8 *str2 = NULL; in ipc_log_header() local 71 str2 = "COMP_NEW"; break; in ipc_log_header() 73 str2 = "COMP_FREE"; break; in ipc_log_header() 75 str2 = "COMP_CONNECT"; break; in ipc_log_header() 77 str2 = "PIPE_NEW"; break; in ipc_log_header() 79 str2 = "PIPE_FREE"; break; in ipc_log_header() 81 str2 = "PIPE_CONNECT"; break; in ipc_log_header() 83 str2 = "PIPE_COMPLETE"; break; in ipc_log_header() 85 str2 = "BUFFER_NEW"; break; in ipc_log_header() 87 str2 = "BUFFER_FREE"; break; in ipc_log_header() [all …]
|
| /kernel/liteos_a/testsuites/unittest/common/include/ |
| D | iCunit.h | 221 #define ICUNIT_ASSERT_SIZE_STRING_EQUAL(str1, str2, strsize, retcode) \ argument 223 if (strncmp((str1), (str2), (strsize)) != 0) { \ 246 #define ICUNIT_ASSERT_SIZE_STRING_EQUAL_VOID(str1, str2, size, retcode) \ argument 248 if (strncmp(str1, str2, size) != 0) { \ 257 #define ICUNIT_ASSERT_SIZE_STRING_NOT_EQUAL(str1, str2, size, retcode) \ argument 259 if (strncmp(str1, str2, size) == 0) { \ 269 #define ICUNIT_ASSERT_STRING_EQUAL(str1, str2, retcode) \ argument 271 if (strcmp(str1, str2) != 0) { \ 280 #define ICUNIT_ASSERT_STRING_EQUAL_VOID(str1, str2, retcode) \ argument 282 if (strcmp(str1, str2) != 0) { \ [all …]
|
| /kernel/liteos_m/testsuites/include/ |
| D | iCunit.h | 284 #define ICUNIT_ASSERT_SIZE_STRING_EQUAL(str1, str2, strsize, retcode) \ argument 286 if (strncmp((str1), (str2), (strsize)) != 0) { \ 292 #define ICUNIT_ASSERT_STRING_EQUAL(str1, str2, retcode) \ argument 294 if (strcmp(str1, str2) != 0) { \ 300 #define ICUNIT_ASSERT_STRING_EQUAL_VOID(str1, str2, retcode) \ argument 302 if (strcmp((const char *)str1, (const char *)str2) != 0) { \ 308 #define ICUNIT_ASSERT_STRING_NOT_EQUAL(str1, str2, retcode) \ argument 310 if (strcmp(str1, str2) == 0) { \ 332 #define ICUNIT_GOTO_STRING_EQUAL(str1, str2, retcode, label) \ argument 334 if (strcmp(str1, str2) != 0) { \ [all …]
|
| /kernel/liteos_a/testsuites/kernel/include/ |
| D | iCunit.h | 327 #define ICUNIT_ASSERT_SIZE_STRING_EQUAL(str1, str2, strsize, retcode) \ argument 329 if (strncmp((str1), (str2), (strsize)) != 0) { \ 343 #define ICUNIT_ASSERT_STRING_EQUAL(str1, str2, retcode) \ argument 345 if (strcmp(str1, str2) != 0) { \ 351 #define ICUNIT_ASSERT_STRING_EQUAL_VOID(str1, str2, retcode) \ argument 353 if (strcmp(str1, str2) != 0) { \ 359 #define ICUNIT_ASSERT_STRING_NOT_EQUAL(str1, str2, retcode) \ argument 361 if (strcmp(str1, str2) == 0) { \ 399 #define ICUNIT_GOTO_STRING_EQUAL(str1, str2, retcode, label) \ argument 401 if (strcmp(str1, str2) != 0) { \ [all …]
|
| /kernel/liteos_a/testsuites/unittest/net/resolv/smoke/ |
| D | net_resolv_test_006.cpp | 47 char str1[buffer_size], str2[buffer_size]; in EtherNtoaTest() local 51 …(void)sprintf_s(str2, sizeof(str2), "%.2x:%.2x:%.2x:%.2x:%.2x:%.2x", r[0], r[1], r[2], r[3], r[4],… in EtherNtoaTest() 54 … ICUNIT_ASSERT_EQUAL((stricmp(str1, buf) == 0 || stricmp(str2, buf) == 0), 1, printf("%s\n", buf)); in EtherNtoaTest()
|
| D | net_resolv_test_007.cpp | 47 char str1[buffer_size], str2[buffer_size]; in EtherNtoarTest() local 51 …(void)sprintf_s(str2, sizeof(str2), "%.2x:%.2x:%.2x:%.2x:%.2x:%.2x", r[0], r[1], r[2], r[3], r[4],… in EtherNtoarTest() 54 ICUNIT_ASSERT_EQUAL((stricmp(str1, buf) == 0 || stricmp(str2, buf) == 0), 1, printf("%s\n", p)); in EtherNtoarTest()
|
| /kernel/liteos_m/testsuites/unittest/fuzz/src/regex/ |
| D | it_test_regex_fuzz.c | 63 char str2[MAX_STR_BUF_LEN] = {0}; in RegexFuzz() local 77 (void)strncpy_s(str2, MAX_STR_BUF_LEN, string2, maxStrLen); in RegexFuzz() 78 str2[MAX_STR_BUF_LEN - 1] = '\0'; in RegexFuzz() 90 regexec(&preg, str2, nmatch, pmatch, num1); in RegexFuzz()
|
| /kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
| D | test_global_data.c | 49 static char str2[32]; variable 89 test_reloc(string, 2, str2); in load_static_data() 92 __builtin_memcpy(&str2[2], "hello", sizeof("hello")); in load_static_data() 93 test_reloc(string, 4, str2); in load_static_data()
|
| /kernel/liteos_a/testsuites/unittest/libc/sys/full/ |
| D | sys_test_027.cpp | 44 char *str2 = "/etc/2.txt"; in TestCase() local 50 fd = open(str2, O_CREAT); in TestCase() 61 ret2 = ftok(str2, id1); in TestCase()
|
| /kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/ |
| D | probe_read_user_str.c | 6 static const char str2[] = "mestringalittlebigger"; variable 64 if (test_one_str(skel, str2, sizeof(str2))) in test_probe_read_user_str()
|
| D | varlen.c | 19 const char str2[] = "World!"; in test_varlen() local 22 const int size2 = sizeof(str2); in test_varlen() 38 memcpy(bss->buf_in2, str2, size2); in test_varlen()
|
| /kernel/liteos_m/testsuites/sample/kernel/lms/ |
| D | It_los_lms_013.c | 38 char str2[INDEX_MAX + 1] = "1234567890abcdefghij"; in TestCase() local 40 memcpy(str, str2, INDEX_MAX + 1); in TestCase()
|
| /kernel/liteos_a/testsuites/unittest/libc/sys/smoke/ |
| D | sys_test_029.cpp | 40 char str2[] = { 0 }; in TestCase() local 48 ret1 = ftok(str2, id); in TestCase()
|
| /kernel/liteos_a/testsuites/unittest/libc/io/smoke/ |
| D | IO_test_005.cpp | 37 wchar_t str2[] = L"abcdefg"; in Testcase() local 48 if (c[i] != str2[i]) { in Testcase()
|
| /kernel/liteos_a/lib/libc/musl/src/ |
| D | memcmp.c | 37 int memcmp(const void *str1, const void *str2, size_t n) in memcmp() argument 41 const unsigned char *s2 = str2; in memcmp()
|
| /kernel/linux/linux-5.10/arch/powerpc/platforms/cell/ |
| D | cbe_thermal.c | 301 u64 str2; in init_default_values() local 326 str2 = 0x10; in init_default_values() 354 out_be64(&pmd_regs->tm_str2, str2); in init_default_values()
|
| /kernel/linux/linux-5.10/arch/x86/boot/ |
| D | string.c | 48 int strcmp(const char *str1, const char *str2) in strcmp() argument 51 const unsigned char *s2 = (const unsigned char *)str2; in strcmp()
|
| D | string.h | 19 extern int strcmp(const char *str1, const char *str2);
|
| /kernel/liteos_a/lib/libc/musl/src/arch/arm/ |
| D | memcmp.S | 40 @ r1 = str2 56 ldrb r4, [r1] @ r4 = *str2
|
| /kernel/linux/linux-5.10/drivers/target/iscsi/ |
| D | iscsi_target_configfs.c | 161 char *str, *str2, *ip_str, *port_str; in lio_target_call_addnptotpg() local 176 str2 = strstr(str, "]"); in lio_target_call_addnptotpg() 177 if (!str2) { in lio_target_call_addnptotpg() 184 *str2 = '\0'; /* Terminate the unbracketed IPv6 address */ in lio_target_call_addnptotpg() 185 str2++; /* Skip over the \0 */ in lio_target_call_addnptotpg() 187 port_str = strstr(str2, ":"); in lio_target_call_addnptotpg()
|
| /kernel/linux/linux-5.10/tools/perf/util/ |
| D | annotate.c | 3153 static unsigned int parse_percent_type(char *str1, char *str2) in parse_percent_type() argument 3158 if (!strcmp("local", str2)) in parse_percent_type() 3160 else if (!strcmp("global", str2)) in parse_percent_type() 3165 if (!strcmp("local", str2)) in parse_percent_type() 3167 else if (!strcmp("global", str2)) in parse_percent_type() 3179 char *str1, *str2; in annotate_parse_percent_type() local 3186 str2 = strchr(str1, '-'); in annotate_parse_percent_type() 3187 if (!str2) in annotate_parse_percent_type() 3190 *str2++ = 0; in annotate_parse_percent_type() 3192 type = parse_percent_type(str1, str2); in annotate_parse_percent_type() [all …]
|
| /kernel/linux/linux-5.10/tools/lib/traceevent/ |
| D | parse-filter.c | 2238 char *str1, *str2; in tep_filter_compare() local 2261 str2 = arg_to_str(filter2, filter_type2->filter); in tep_filter_compare() 2262 if (str1 && str2) in tep_filter_compare() 2263 result = strcmp(str1, str2) != 0; in tep_filter_compare() 2269 free(str2); in tep_filter_compare()
|
| /kernel/linux/linux-5.10/drivers/staging/rtl8723bs/include/ |
| D | hal_com.h | 249 bool eqNByte(u8 *str1, u8 *str2, u32 num);
|
| /kernel/linux/linux-5.10/drivers/ata/ |
| D | ahci_imx.c | 333 u32 str1, str2, str3, str4; in sata_ahci_read_temperature() local 367 str2 = (rtune_ctl_reg) & 0x3; in sata_ahci_read_temperature() 397 rtune_ctl_reg = (rtune_ctl_reg & 0xFFC) | (str2); in sata_ahci_read_temperature()
|
| /kernel/linux/linux-5.10/scripts/kconfig/ |
| D | expr.c | 1033 const char *str1, *str2; in expr_calc_value() local 1071 str2 = sym_get_string_value(e->right.sym); in expr_calc_value() 1075 k2 = expr_parse_string(str2, e->right.sym->type, &rval); in expr_calc_value() 1079 res = strcmp(str1, str2); in expr_calc_value()
|