Home
last modified time | relevance | path

Searched refs:str2 (Results 1 – 25 of 33) sorted by relevance

12

/kernel/linux/linux-5.10/sound/soc/sof/
Dipc.c54 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/
DiCunit.h221 #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/
DiCunit.h284 #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/
DiCunit.h327 #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/
Dnet_resolv_test_006.cpp47 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()
Dnet_resolv_test_007.cpp47 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/
Dit_test_regex_fuzz.c63 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/
Dtest_global_data.c49 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/
Dsys_test_027.cpp44 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/
Dprobe_read_user_str.c6 static const char str2[] = "mestringalittlebigger"; variable
64 if (test_one_str(skel, str2, sizeof(str2))) in test_probe_read_user_str()
Dvarlen.c19 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/
DIt_los_lms_013.c38 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/
Dsys_test_029.cpp40 char str2[] = { 0 }; in TestCase() local
48 ret1 = ftok(str2, id); in TestCase()
/kernel/liteos_a/testsuites/unittest/libc/io/smoke/
DIO_test_005.cpp37 wchar_t str2[] = L"abcdefg"; in Testcase() local
48 if (c[i] != str2[i]) { in Testcase()
/kernel/liteos_a/lib/libc/musl/src/
Dmemcmp.c37 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/
Dcbe_thermal.c301 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/
Dstring.c48 int strcmp(const char *str1, const char *str2) in strcmp() argument
51 const unsigned char *s2 = (const unsigned char *)str2; in strcmp()
Dstring.h19 extern int strcmp(const char *str1, const char *str2);
/kernel/liteos_a/lib/libc/musl/src/arch/arm/
Dmemcmp.S40 @ r1 = str2
56 ldrb r4, [r1] @ r4 = *str2
/kernel/linux/linux-5.10/drivers/target/iscsi/
Discsi_target_configfs.c161 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/
Dannotate.c3153 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/
Dparse-filter.c2238 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/
Dhal_com.h249 bool eqNByte(u8 *str1, u8 *str2, u32 num);
/kernel/linux/linux-5.10/drivers/ata/
Dahci_imx.c333 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/
Dexpr.c1033 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()

12