Home
last modified time | relevance | path

Searched refs:g_event (Results 1 – 25 of 82) sorted by relevance

1234

/kernel/liteos_a/testsuites/kernel/sample/kernel_base/ipc/event/full/
DIt_los_event_043.c46 g_event.uwEventID = 0; in TaskF01()
47 LOS_EventInit(&g_event); in TaskF01()
49 LOS_EventWrite(&g_event, 0x1); in TaskF01()
51 ret = LOS_EventRead(&g_event, 0x1, LOS_WAITMODE_OR, 0); in TaskF01()
52 ICUNIT_GOTO_EQUAL(ret, g_event.uwEventID, ret, EXIT); in TaskF01()
53 ICUNIT_GOTO_EQUAL(g_event.uwEventID, 0x1, g_event.uwEventID, EXIT); in TaskF01()
58 LOS_EventWrite(&g_event, 0x10); in TaskF01()
59 ICUNIT_GOTO_EQUAL(g_event.uwEventID, 0x11, g_event.uwEventID, EXIT); in TaskF01()
61 ret = LOS_EventRead(&g_event, 0x11, LOS_WAITMODE_AND, 0); in TaskF01()
62 ICUNIT_GOTO_EQUAL(ret, g_event.uwEventID, ret, EXIT); in TaskF01()
[all …]
DIt_los_event_005.c47 g_event.uwEventID = 0; in Testcase()
48 LOS_EventInit(&g_event); in Testcase()
50 LOS_EventWrite(&g_event, 0x1); in Testcase()
51 ICUNIT_GOTO_EQUAL(g_event.uwEventID, 1, g_event.uwEventID, EXIT); in Testcase()
53 LOS_EventWrite(&g_event, 0); in Testcase()
54 ICUNIT_GOTO_EQUAL(g_event.uwEventID, 1, g_event.uwEventID, EXIT); in Testcase()
56 LOS_EventWrite(&g_event, 0x10); in Testcase()
57 ICUNIT_GOTO_EQUAL(g_event.uwEventID, 0x11, g_event.uwEventID, EXIT); in Testcase()
59 ret = LOS_EventWrite(&g_event, 0xFFFFFFFF); in Testcase()
61 ICUNIT_GOTO_EQUAL(g_event.uwEventID, 0x11, g_event.uwEventID, EXIT); in Testcase()
[all …]
DIt_los_event_007.c47 g_event.uwEventID = 0; in TaskF01()
48 LOS_EventInit(&g_event); in TaskF01()
50 LOS_EventWrite(&g_event, 0x10); in TaskF01()
52 ret = LOS_EventRead(&g_event, 0x00000110, LOS_WAITMODE_OR, LOS_WAIT_FOREVER); in TaskF01()
53 ICUNIT_GOTO_EQUAL(ret, g_event.uwEventID, ret, EXIT); in TaskF01()
54 ICUNIT_GOTO_EQUAL(g_event.uwEventID, 0x10, g_event.uwEventID, EXIT); in TaskF01()
59 LOS_EventWrite(&g_event, 0x110); in TaskF01()
60 ICUNIT_GOTO_EQUAL(g_event.uwEventID, 0x110, g_event.uwEventID, EXIT); in TaskF01()
62 ret = LOS_EventRead(&g_event, 0x00000110, LOS_WAITMODE_AND, 0); in TaskF01()
63 ICUNIT_GOTO_EQUAL(ret, g_event.uwEventID, ret, EXIT); in TaskF01()
[all …]
DIt_los_event_013.c46 ret = LOS_EventRead(&g_event, 0x11, LOS_WAITMODE_OR, LOS_WAIT_FOREVER); in TaskF01()
47 ICUNIT_GOTO_NOT_EQUAL(ret, g_event.uwEventID, ret, EXIT); in TaskF01()
52 ret = LOS_EventRead(&g_event, 0x1100, LOS_WAITMODE_AND, 0); in TaskF01()
53 ICUNIT_GOTO_NOT_EQUAL(ret, g_event.uwEventID, ret, EXIT); in TaskF01()
55 ICUNIT_GOTO_EQUAL(g_event.uwEventID, 0x11111111, g_event.uwEventID, EXIT); in TaskF01()
59 ret = LOS_EventRead(&g_event, 0x110000, LOS_WAITMODE_AND | LOS_WAITMODE_CLR, LOS_WAIT_FOREVER); in TaskF01()
61 ICUNIT_GOTO_EQUAL(g_event.uwEventID, 0x11001111, g_event.uwEventID, EXIT); in TaskF01()
65 ret = LOS_EventRead(&g_event, 0x11000000, LOS_WAITMODE_OR | LOS_WAITMODE_CLR, LOS_WAIT_FOREVER); in TaskF01()
67 ICUNIT_GOTO_EQUAL(g_event.uwEventID, 0x00001111, g_event.uwEventID, EXIT); in TaskF01()
87 LOS_EventInit(&g_event); in Testcase()
[all …]
DIt_los_event_012.c46 ret = LOS_EventRead(&g_event, 0x110, LOS_WAITMODE_OR, LOS_WAIT_FOREVER); in TaskF01()
48 ICUNIT_GOTO_EQUAL(g_event.uwEventID, 0x11010, g_event.uwEventID, EXIT); in TaskF01()
52 ret = LOS_EventRead(&g_event, 0x1001, LOS_WAITMODE_OR, 0); in TaskF01()
54 ICUNIT_GOTO_EQUAL(g_event.uwEventID, 0x11010, g_event.uwEventID, EXIT); in TaskF01()
58 …ret = LOS_EventRead(&g_event, 0x11, LOS_WAITMODE_AND, 2); // 2, The timeout period for reading eve… in TaskF01()
60 ICUNIT_GOTO_EQUAL(g_event.uwEventID, 0x11011, g_event.uwEventID, EXIT); in TaskF01()
64 ret = LOS_EventRead(&g_event, 0x1100, LOS_WAITMODE_AND, 0); in TaskF01()
86 LOS_EventInit(&g_event); in Testcase()
96 ret = LOS_EventWrite(&g_event, 0x11010); in Testcase()
104 ret = LOS_EventWrite(&g_event, 0x1001); in Testcase()
[all …]
DIt_los_event_006.c46 ret = LOS_EventRead(&g_event, 0x00000110, LOS_WAITMODE_OR, LOS_WAIT_FOREVER); in TaskF01()
47 ICUNIT_GOTO_EQUAL(ret, g_event.uwEventID, ret, EXIT); in TaskF01()
48 ICUNIT_GOTO_EQUAL(g_event.uwEventID, 0x10, g_event.uwEventID, EXIT); in TaskF01()
52 …ret = LOS_EventRead(&g_event, 0x00000110, LOS_WAITMODE_AND, 4); // 4, The timeout period for readi… in TaskF01()
53 ICUNIT_GOTO_EQUAL(ret, g_event.uwEventID, ret, EXIT); in TaskF01()
54 ICUNIT_GOTO_EQUAL(g_event.uwEventID, 0x110, g_event.uwEventID, EXIT); in TaskF01()
75 g_event.uwEventID = 0; in Testcase()
76 LOS_EventInit(&g_event); in Testcase()
86 LOS_EventWrite(&g_event, 0x10); in Testcase()
93 LOS_EventWrite(&g_event, 0x110); in Testcase()
[all …]
DIt_los_event_010.c46 ret = LOS_EventRead(&g_event, 0x1, LOS_WAITMODE_AND, LOS_WAIT_FOREVER); in TaskF01()
52 ret = LOS_EventRead(&g_event, 0x11, LOS_WAITMODE_AND, LOS_WAIT_FOREVER); in TaskF01()
53 ICUNIT_GOTO_EQUAL(ret, g_event.uwEventID, ret, EXIT); in TaskF01()
54 ICUNIT_GOTO_EQUAL(g_event.uwEventID, 0x11, g_event.uwEventID, EXIT); in TaskF01()
74 LOS_EventInit(&g_event); in Testcase()
76 ret = LOS_EventRead(&g_event, 0x1, LOS_WAITMODE_AND, 1); in Testcase()
79 ret = LOS_EventRead(&g_event, 0x1, LOS_WAITMODE_AND, 1); in Testcase()
82 …ret = LOS_EventRead(&g_event, 0x1, LOS_WAITMODE_AND, 2); // 2, The timeout period for reading even… in Testcase()
93 ret = LOS_EventWrite(&g_event, 0x10); in Testcase()
99 ret = LOS_EventWrite(&g_event, 0x1); in Testcase()
[all …]
DIt_los_event_033.c45 ret = LOS_EventRead(&g_event, 0xF, LOS_WAITMODE_AND | LOS_WAITMODE_CLR, LOS_WAIT_FOREVER); in TaskF01()
47 ICUNIT_GOTO_EQUAL(g_event.uwEventID, 0, g_event.uwEventID, EXIT); in TaskF01()
51 ret = LOS_EventWrite(&g_event, 0xF); in TaskF01()
65 ret = LOS_EventRead(&g_event, 0xF, LOS_WAITMODE_AND | LOS_WAITMODE_CLR, LOS_WAIT_FOREVER); in TaskF02()
67 ICUNIT_GOTO_EQUAL(g_event.uwEventID, 0, g_event.uwEventID, EXIT); in TaskF02()
71 ret = LOS_EventWrite(&g_event, 0xF); in TaskF02()
86 ret = LOS_EventRead(&g_event, 0xF, LOS_WAITMODE_AND | LOS_WAITMODE_CLR, LOS_WAIT_FOREVER); in TaskF03()
88 ICUNIT_GOTO_EQUAL(g_event.uwEventID, 0, g_event.uwEventID, EXIT); in TaskF03()
102 LOS_EventInit(&g_event); in Testcase()
135 ret = LOS_EventWrite(&g_event, 0xF); in Testcase()
[all …]
DIt_los_event_015.c50 ret = LOS_EventRead(&g_event, 0x11, LOS_WAITMODE_AND, 0); in TaskF01()
52 ICUNIT_GOTO_EQUAL(g_event.uwEventID, 0x1111, g_event.uwEventID, EXIT); in TaskF01()
55 …ret = LOS_EventRead(&g_event, 0x1100, LOS_WAITMODE_AND, 2); // 2, The timeout period for reading e… in TaskF01()
57 ICUNIT_GOTO_EQUAL(g_event.uwEventID, 0x1111, g_event.uwEventID, EXIT); in TaskF01()
77 LOS_EventInit(&g_event); in Testcase()
86 LOS_EventWrite(&g_event, 0x1111); in Testcase()
93 ret = LOS_EventClear(&g_event, 0); in Testcase()
96 ret = LOS_EventDestroy(&g_event); in Testcase()
101 LOS_EventDestroy(&g_event); in Testcase()
DIt_los_event_011.c46 …ret = LOS_EventRead(&g_event, 0x11, LOS_WAITMODE_AND, 5); // 5, The timeout period for reading eve… in TaskF01()
51 ret = LOS_EventRead(&g_event, 0x11, LOS_WAITMODE_AND, 0); in TaskF01()
54 ret = LOS_EventRead(&g_event, 0x11, LOS_WAITMODE_AND, 0); in TaskF01()
59 ret = LOS_EventRead(&g_event, 0x11, LOS_WAITMODE_AND, LOS_WAIT_FOREVER); in TaskF01()
60 ICUNIT_GOTO_NOT_EQUAL(ret, g_event.uwEventID, ret, EXIT); in TaskF01()
82 LOS_EventInit(&g_event); in Testcase()
92 LOS_EventWrite(&g_event, 0x100); in Testcase()
97 LOS_EventWrite(&g_event, 0x1000); in Testcase()
102 LOS_EventWrite(&g_event, 0x10000); in Testcase()
111 ret = LOS_EventWrite(&g_event, 0x11); in Testcase()
[all …]
DIt_los_event_014.c51 ret = LOS_EventRead(&g_event, 0x01, LOS_WAITMODE_OR, 0); in TaskF01()
53 ICUNIT_GOTO_EQUAL(g_event.uwEventID, 0x11, g_event.uwEventID, EXIT); in TaskF01()
57 ret = LOS_EventRead(&g_event, 0x01, LOS_WAITMODE_OR, 0); in TaskF01()
59 ICUNIT_GOTO_EQUAL(g_event.uwEventID, 0x11, g_event.uwEventID, EXIT); in TaskF01()
79 LOS_EventInit(&g_event); in Testcase()
89 ret = LOS_EventWrite(&g_event, 0x11); in Testcase()
92 ret = LOS_EventWrite(&g_event, 0x11); in Testcase()
101 ret = LOS_EventClear(&g_event, 0); in Testcase()
104 ret = LOS_EventDestroy(&g_event); in Testcase()
DIt_los_event_001.c45 ret = LOS_EventRead(&g_event, 0x11, LOS_WAITMODE_AND, LOS_WAIT_FOREVER); in TaskF01()
46 ICUNIT_ASSERT_EQUAL_VOID(ret, g_event.uwEventID, ret); in TaskF01()
47 ICUNIT_ASSERT_EQUAL_VOID(g_event.uwEventID, 0x11, g_event.uwEventID); in TaskF01()
69 g_event.uwEventID = 0; in Testcase()
70 LOS_EventInit(&g_event); in Testcase()
76 ret = LOS_EventWrite(&g_event, 0x10); in Testcase()
82 ret = LOS_EventWrite(&g_event, 0x1); in Testcase()
92 LOS_EventDestroy(&g_event); in Testcase()
DIt_los_event_008.c46 ret = LOS_EventRead(&g_event, 0, LOS_WAITMODE_OR, LOS_WAIT_FOREVER); in TaskF01()
51 ret = LOS_EventRead(&g_event, 0x0FFFFFFF, LOS_WAITMODE_OR, LOS_WAIT_FOREVER); in TaskF01()
75 g_event.uwEventID = 0; in Testcase()
76 LOS_EventInit(&g_event); in Testcase()
86 LOS_EventWrite(&g_event, 0x10011); in Testcase()
87 ICUNIT_GOTO_EQUAL(g_event.uwEventID, 0x10011, g_event.uwEventID, EXIT1); in Testcase()
92 ret = LOS_EventClear(&g_event, 0); in Testcase()
95 ret = LOS_EventDestroy(&g_event); in Testcase()
DIt_los_event_040.c45 …ret = LOS_EventRead(&g_event, 0x11, LOS_WAITMODE_AND, 10); // 10, The timeout period for reading e… in TaskF01()
47 ICUNIT_ASSERT_EQUAL_VOID(g_event.uwEventID, 0x111, g_event.uwEventID); in TaskF01()
67 g_event.uwEventID = 0; in Testcase()
68 LOS_EventInit(&g_event); in Testcase()
73 LOS_EventWrite(&g_event, 0x100); in Testcase()
75 LOS_EventWrite(&g_event, 0x1); in Testcase()
79 LOS_EventWrite(&g_event, 0x10); in Testcase()
/kernel/liteos_a/testsuites/kernel/sample/kernel_base/ipc/event/smp/
DIt_smp_los_event_027.c45 ret = LOS_EventRead(&g_event, 0x11, LOS_WAITMODE_AND, LOS_WAIT_FOREVER); // just read not clear in TaskF01()
47 ICUNIT_ASSERT_EQUAL_VOID(g_event.uwEventID, 0x11, g_event.uwEventID); in TaskF01()
59 ret = LOS_EventRead(&g_event, 0x11, LOS_WAITMODE_AND, LOS_WAIT_FOREVER); // just read not clear in TaskF02()
61 ICUNIT_ASSERT_EQUAL_VOID(g_event.uwEventID, 0x11, g_event.uwEventID); in TaskF02()
74 g_event.uwEventID = 0; in Testcase()
76 ret = LOS_EventInit(&g_event); in Testcase()
94 ret = LOS_EventWrite(&g_event, 0x11); in Testcase()
101 ret = LOS_EventDestroy(&g_event); in Testcase()
107 ret = LOS_EventDestroy(&g_event); in Testcase()
DIt_smp_los_event_026.c48 …ret = LOS_EventRead(&g_event, 0x11, LOS_WAITMODE_AND | LOS_WAITMODE_CLR, LOS_WAIT_FOREVER); // rea… in TaskF01()
50 ICUNIT_ASSERT_EQUAL_VOID(g_event.uwEventID, 0, g_event.uwEventID); in TaskF01()
62 …ret = LOS_EventRead(&g_event, 0x11, LOS_WAITMODE_AND | LOS_WAITMODE_CLR, LOS_WAIT_FOREVER); // rea… in TaskF02()
64 ICUNIT_ASSERT_EQUAL_VOID(g_event.uwEventID, 0, g_event.uwEventID); in TaskF02()
77 g_event.uwEventID = 0; in Testcase()
79 ret = LOS_EventInit(&g_event); in Testcase()
96 ret = LOS_EventWrite(&g_event, 0x11); in Testcase()
107 ret = LOS_EventDestroy(&g_event); in Testcase()
113 ret = LOS_EventDestroy(&g_event); in Testcase()
DIt_smp_los_event_021.c46 ret = LOS_EventRead(&g_event, 0x11, LOS_WAITMODE_AND, LOS_WAIT_FOREVER); in TaskF01()
47 ICUNIT_ASSERT_EQUAL_VOID(ret, g_event.uwEventID, ret); in TaskF01()
48 ICUNIT_ASSERT_EQUAL_VOID(g_event.uwEventID, 0x11, g_event.uwEventID); in TaskF01()
61 g_event.uwEventID = 0; in Testcase()
63 ret = LOS_EventInit(&g_event); in Testcase()
68 ret = LOS_EventWrite(&g_event, 0x11); in Testcase()
80 ret = LOS_EventDestroy(&g_event); in Testcase()
85 ret = LOS_EventDestroy(&g_event); in Testcase()
DIt_smp_los_event_024.c46 ret = LOS_EventRead(&g_event, 0x11, LOS_WAITMODE_AND, LOS_WAIT_FOREVER); in TaskF02()
47 ICUNIT_ASSERT_EQUAL_VOID(ret, g_event.uwEventID, ret); in TaskF02()
48 ICUNIT_ASSERT_EQUAL_VOID(g_event.uwEventID, 0x11, g_event.uwEventID); in TaskF02()
50 ret = LOS_EventDestroy(&g_event); in TaskF02()
63 ret = LOS_EventWrite(&g_event, 0x11); in TaskF01()
75 g_event.uwEventID = 0; in Testcase()
77 ret = LOS_EventInit(&g_event); in Testcase()
98 ret = LOS_EventDestroy(&g_event); in Testcase()
DIt_smp_los_event_014.c46 ret = LOS_EventWrite(&g_event, 0x11); in TaskF02()
53 ret = LOS_EventDestroy(&g_event); in TaskF02()
64 ret = LOS_EventRead(&g_event, 0x11, LOS_WAITMODE_AND, LOS_WAIT_FOREVER); in TaskF01()
65 ICUNIT_ASSERT_EQUAL_VOID(ret, g_event.uwEventID, ret); in TaskF01()
66 ICUNIT_ASSERT_EQUAL_VOID(g_event.uwEventID, 0x11, g_event.uwEventID); in TaskF01()
77 g_event.uwEventID = 0; in Testcase()
79 ret = LOS_EventInit(&g_event); in Testcase()
100 ret = LOS_EventDestroy(&g_event); in Testcase()
DIt_smp_los_event_010.c46 ret = LOS_EventRead(&g_event, 0x11, LOS_WAITMODE_AND, LOS_WAIT_FOREVER); in TaskF01()
47 ICUNIT_ASSERT_EQUAL_VOID(ret, g_event.uwEventID, ret); in TaskF01()
48 ICUNIT_ASSERT_EQUAL_VOID(g_event.uwEventID, 0x11, g_event.uwEventID); in TaskF01()
61 ret = LOS_EventWrite(&g_event, 0x11); in TaskF02()
75 g_event.uwEventID = 0; in Testcase()
77 ret = LOS_EventInit(&g_event); in Testcase()
90 ret = LOS_EventDestroy(&g_event); in Testcase()
98 ret = LOS_EventDestroy(&g_event); in Testcase()
DIt_smp_los_event_023.c46 ret = LOS_EventRead(&g_event, 0x11, LOS_WAITMODE_AND, LOS_WAIT_FOREVER); in TaskF01()
47 ICUNIT_ASSERT_EQUAL_VOID(ret, g_event.uwEventID, ret); in TaskF01()
48 ICUNIT_ASSERT_EQUAL_VOID(g_event.uwEventID, 0x11, g_event.uwEventID); in TaskF01()
57 ret = LOS_EventDestroy(&g_event); in TaskF02()
70 g_event.uwEventID = 0; in Testcase()
72 ret = LOS_EventInit(&g_event); in Testcase()
75 ret = LOS_EventWrite(&g_event, 0x11); in Testcase()
98 ret = LOS_EventDestroy(&g_event); in Testcase()
DIt_smp_los_event_013.c46 ret = LOS_EventRead(&g_event, 0x11, LOS_WAITMODE_AND, LOS_WAIT_FOREVER); in TaskF01()
47 ICUNIT_ASSERT_EQUAL_VOID(ret, g_event.uwEventID, ret); in TaskF01()
48 ICUNIT_ASSERT_EQUAL_VOID(g_event.uwEventID, 0x11, g_event.uwEventID); in TaskF01()
63 ret = LOS_EventDestroy(&g_event); in TaskF02()
77 g_event.uwEventID = 0; in Testcase()
79 ret = LOS_EventInit(&g_event); in Testcase()
94 ret = LOS_EventWrite(&g_event, 0x11); in Testcase()
104 ret = LOS_EventDestroy(&g_event); in Testcase()
DIt_smp_los_event_011.c46 ret = LOS_EventWrite(&g_event, 0x11); in TaskF02()
60 ret = LOS_EventRead(&g_event, 0x11, LOS_WAITMODE_AND, LOS_WAIT_FOREVER); in TaskF01()
61 ICUNIT_ASSERT_EQUAL_VOID(ret, g_event.uwEventID, ret); in TaskF01()
62 ICUNIT_ASSERT_EQUAL_VOID(g_event.uwEventID, 0x11, g_event.uwEventID); in TaskF01()
75 g_event.uwEventID = 0; in Testcase()
77 ret = LOS_EventInit(&g_event); in Testcase()
94 ret = LOS_EventDestroy(&g_event); in Testcase()
100 ret = LOS_EventDestroy(&g_event); in Testcase()
DIt_smp_los_event_004.c47 ret = LOS_EventRead(&g_event, 0x11, LOS_WAITMODE_AND, LOS_WAIT_FOREVER); in TaskF01()
48 ICUNIT_ASSERT_EQUAL_VOID(ret, g_event.uwEventID, ret); in TaskF01()
49 ICUNIT_ASSERT_EQUAL_VOID(g_event.uwEventID, 0x11, g_event.uwEventID); in TaskF01()
62 g_event.uwEventID = 0; in Testcase()
64 ret = LOS_EventInit(&g_event); in Testcase()
72 ret = LOS_EventDestroy(&g_event); in Testcase()
80 ret = LOS_EventDestroy(&g_event); in Testcase()
/kernel/liteos_a/testsuites/kernel/sample/kernel_base/ipc/event/smoke/
DIt_los_event_041.c45 …ret = LOS_EventRead(&g_event, 0x11, LOS_WAITMODE_AND, 3); // 3, The timeout period for reading eve… in TaskF01()
46 ICUNIT_GOTO_EQUAL(ret, g_event.uwEventID, ret, EXIT); in TaskF01()
47 ICUNIT_GOTO_EQUAL(g_event.uwEventID, 0x11, g_event.uwEventID, EXIT); in TaskF01()
69 g_event.uwEventID = 0; in Testcase()
70 LOS_EventInit(&g_event); in Testcase()
78 LOS_EventWrite(&g_event, 0x11); in Testcase()
84 LOS_EventDestroy(&g_event); in Testcase()

1234