Home
last modified time | relevance | path

Searched refs:g_semID (Results 1 – 25 of 75) sorted by relevance

123

/kernel/liteos_a/testsuites/kernel/sample/kernel_base/ipc/sem/smoke/
DIt_los_sem_003.c46 ret = LOS_SemCreate(0, &g_semID); in Testcase()
49 ret = LOS_SemPend(g_semID, 2); // 2, set timeout in Testcase()
52 ret = LOS_SemDelete(g_semID); in Testcase()
55 ret = LOS_SemCreate(1, &g_semID); in Testcase()
58 ret = LOS_SemPend(g_semID, LOS_WAIT_FOREVER); in Testcase()
61 ret = LOS_SemDelete(g_semID); in Testcase()
64 ret = LOS_SemCreate(IT_SEM_COUNT_MAX, &g_semID); in Testcase()
67 ret = LOS_SemPend(g_semID, LOS_WAIT_FOREVER); in Testcase()
70 ret = LOS_SemDelete(g_semID); in Testcase()
DIt_los_sem_001.c46 ret = LOS_SemCreate(0, &g_semID); in Testcase()
49 ret = LOS_SemDelete(g_semID); in Testcase()
52 ret = LOS_SemCreate(1, &g_semID); in Testcase()
55 ret = LOS_SemDelete(g_semID); in Testcase()
58 ret = LOS_SemCreate(IT_SEM_COUNT_MAX, &g_semID); in Testcase()
61 ret = LOS_SemDelete(g_semID); in Testcase()
64 ret = LOS_SemCreate(IT_SEM_COUNT_MAX + 1, &g_semID); in Testcase()
DIt_los_sem_006.c46 ret = LOS_SemCreate(0, &g_semID); in Testcase()
49 ret = LOS_SemPost(g_semID); in Testcase()
52 ret = LOS_SemDelete(g_semID); in Testcase()
55 ret = LOS_SemCreate(IT_SEM_COUNT_MAX, &g_semID); in Testcase()
58 ret = LOS_SemPost(g_semID); in Testcase()
61 ret = LOS_SemDelete(g_semID); in Testcase()
/kernel/liteos_a/testsuites/kernel/sample/kernel_base/ipc/sem/full/
DIt_los_sem_026.c45 ret = LOS_SemPend(g_semID, LOS_WAIT_FOREVER); in TaskF02()
59 ret = LOS_SemPend(g_semID, LOS_WAIT_FOREVER); in TaskF01()
62 ret = LOS_SemPend(g_semID, LOS_WAIT_FOREVER); in TaskF01()
82 ret = LOS_SemCreate(0, &g_semID); in Testcase()
99 ret = LOS_SemPost(g_semID); in Testcase()
104 ret = LOS_SemPost(g_semID); in Testcase()
107 ret = LOS_SemPost(g_semID); in Testcase()
116 ret = LOS_SemDelete(g_semID); in Testcase()
126 ret = LOS_SemDelete(g_semID); in Testcase()
DIt_los_sem_005.c44 ret = LOS_SemCreate(2, &g_semID); // 2, Number of semaphore available in Testcase()
47 ret = LOS_SemPend(g_semID, LOS_NO_WAIT); in Testcase()
50 ret = LOS_SemPend(g_semID, 0xF); in Testcase()
52 ret = LOS_SemPend(g_semID, LOS_NO_WAIT); in Testcase()
55 ret = LOS_SemPend(g_semID, 0xF); in Testcase()
59 ret = LOS_SemDelete(g_semID); in Testcase()
DIt_los_sem_012.c47 ret = LOS_SemPend(g_semID, LOS_WAIT_FOREVER); in TaskF01()
60 ret = LOS_SemPend(g_semID, LOS_WAIT_FOREVER); in TaskF02()
83 ret = LOS_SemCreate(0, &g_semID); in Testcase()
104 ret = LOS_SemPost(g_semID); in Testcase()
110 ret = LOS_SemPost(g_semID); in Testcase()
120 ret = LOS_SemDelete(g_semID); in Testcase()
130 ret = LOS_SemDelete(g_semID); in Testcase()
136 ret = LOS_SemDelete(g_semID); in Testcase()
DIt_los_sem_017.c46 ret = LOS_SemCreate(0, &g_semID); in TaskF01()
49 ret = LOS_SemPost(g_semID); in TaskF01()
52 ret = LOS_SemPend(g_semID, LOS_WAIT_FOREVER); in TaskF01()
55 ret = LOS_SemPend(g_semID, LOS_WAIT_FOREVER); in TaskF01()
87 ret = LOS_SemDelete(g_semID); in Testcase()
DIt_los_sem_020.c45 ret = LOS_SemPend(g_semID, LOS_WAIT_FOREVER); in TaskF01()
67 ret = LOS_SemCreate(0, &g_semID); in Testcase()
75 ret = LOS_SemPost(g_semID); in Testcase()
83 ret = LOS_SemDelete(g_semID); in Testcase()
90 ret = LOS_SemDelete(g_semID); in Testcase()
DIt_los_sem_029.c48 ret = LOS_SemCreate(0xFFFF - IT_SEMLOOP, &g_semID); in Testcase()
52 ret = LOS_SemPost(g_semID); in Testcase()
56 ret = LOS_SemPost(g_semID); in Testcase()
60 ret = LOS_SemDelete(g_semID); in Testcase()
/kernel/liteos_a/testsuites/kernel/sample/kernel_base/ipc/sem/smp/
DIt_smp_los_sem_033.c46 ret = LOS_SemPend(g_semID, LOS_WAIT_FOREVER); in TaskF01()
60 ret = LOS_SemPend(g_semID, LOS_WAIT_FOREVER); in TaskF02()
77 ret = LOS_SemCreate(0, &g_semID); in Testcase()
103 ret = LOS_SemPost(g_semID); in Testcase()
109 ret = LOS_SemPost(g_semID); in Testcase()
123 ret = LOS_SemDelete(g_semID); in Testcase()
130 ret = LOS_SemDelete(g_semID); in Testcase()
DIt_smp_los_sem_025.c46 ret = LOS_SemPost(g_semID); in TaskF01()
58 ret = LOS_SemPend(g_semID, LOS_WAIT_FOREVER); in HwiF01()
61 ret = LOS_SemDelete(g_semID); in HwiF01()
68 LOS_SemDelete(g_semID); in HwiF01()
80 ret = LOS_SemCreate(0, &g_semID); in testcase()
106 LOS_SemDelete(g_semID); in testcase()
DIt_smp_los_sem_020.c49 ret = LOS_SemPost(g_semID); in TaskF01()
64 ret = LOS_SemCreate(0, &g_semID); in Testcase()
74 ret = LOS_SemPend(g_semID, LOS_WAIT_FOREVER); in Testcase()
77 ret = LOS_SemDelete(g_semID); in Testcase()
82 LOS_SemDelete(g_semID); in Testcase()
DIt_smp_los_sem_021.c47 ret = LOS_SemPend(g_semID, LOS_WAIT_FOREVER); in TaskF01()
62 ret = LOS_SemCreate(0, &g_semID); in Testcase()
67 ret = LOS_SemPost(g_semID); in Testcase()
79 ret = LOS_SemDelete(g_semID); in Testcase()
84 LOS_SemDelete(g_semID); in Testcase()
DIt_smp_los_sem_027.c48 ret = LOS_SemPost(g_semID); // sem post in hwi in HwiF01()
61 ret = LOS_SemPend(g_semID, LOS_WAIT_FOREVER); in TaskF01()
94 ret = LOS_SemCreate(0, &g_semID); in Testcase()
114 ret = LOS_SemPost(g_semID); // sem post in task in Testcase()
120 ret = LOS_SemDelete(g_semID); in Testcase()
127 LOS_SemDelete(g_semID); in Testcase()
DIt_smp_los_sem_030.c52 g_ret1 = LOS_SemPend(g_semID, LOS_WAIT_FOREVER); in TaskF01()
58 g_ret2 = LOS_SemPost(g_semID); in TaskF01()
64 g_ret3 = LOS_SemDelete(g_semID); in TaskF01()
87 ret = LOS_SemCreate(0, &g_semID); in Testcase()
112 LOS_SemDelete(g_semID); in Testcase()
119 LOS_SemDelete(g_semID); in Testcase()
DIt_smp_los_sem_029.c46 ret = LOS_SemPend(g_semID, LOS_WAIT_FOREVER); in TaskF01()
62 ret = LOS_SemDelete(g_semID); // delete event in other cpu in TaskF02()
81 ret = LOS_SemCreate(0, &g_semID); in Testcase()
101 ret = LOS_SemPost(g_semID); // post sem in other cpu in Testcase()
112 ret = LOS_SemDelete(g_semID); in Testcase()
128 LOS_SemDelete(g_semID); in Testcase()
DIt_smp_los_sem_024.c47 ret = LOS_SemPend(g_semID, LOS_WAIT_FOREVER); in TaskF02()
50 ret = LOS_SemDelete(g_semID); in TaskF02()
61 ret = LOS_SemPost(g_semID); in TaskF01()
73 ret = LOS_SemCreate(0, &g_semID); in Testcase()
94 LOS_SemDelete(g_semID); in Testcase()
DIt_smp_los_sem_010.c47 ret = LOS_SemPend(g_semID, LOS_WAIT_FOREVER); in TaskF01()
62 ret = LOS_SemPost(g_semID); in TaskF02()
77 ret = LOS_SemCreate(0, &g_semID); in Testcase()
90 ret = LOS_SemDelete(g_semID); in Testcase()
98 LOS_SemDelete(g_semID); in Testcase()
DIt_smp_los_sem_023.c47 ret = LOS_SemPend(g_semID, LOS_WAIT_FOREVER); in TaskF01()
58 ret = LOS_SemDelete(g_semID); in TaskF02()
73 ret = LOS_SemCreate(0, &g_semID); in Testcase()
76 ret = LOS_SemPost(g_semID); in Testcase()
99 LOS_SemDelete(g_semID); in Testcase()
DIt_smp_los_sem_013.c47 ret = LOS_SemPend(g_semID, LOS_WAIT_FOREVER); in TaskF01()
64 ret = LOS_SemDelete(g_semID); in TaskF02()
79 ret = LOS_SemCreate(0, &g_semID); in Testcase()
94 ret = LOS_SemPost(g_semID); in Testcase()
103 LOS_SemDelete(g_semID); in Testcase()
DIt_smp_los_sem_014.c47 ret = LOS_SemPost(g_semID); in TaskF02()
54 ret = LOS_SemDelete(g_semID); in TaskF02()
65 ret = LOS_SemPend(g_semID, LOS_WAIT_FOREVER); in TaskF01()
78 ret = LOS_SemCreate(0, &g_semID); in Testcase()
99 LOS_SemDelete(g_semID); in Testcase()
DIt_smp_los_sem_011.c46 ret = LOS_SemPost(g_semID); in TaskF02()
60 ret = LOS_SemPend(g_semID, LOS_WAIT_FOREVER); in TaskF01()
76 ret = LOS_SemCreate(0, &g_semID); in Testcase()
94 ret = LOS_SemDelete(g_semID); in Testcase()
100 LOS_SemDelete(g_semID); in Testcase()
DIt_smp_los_sem_035.c50 ret = LOS_SemPend(g_semID, LOS_WAIT_FOREVER); in TaskF01()
72 ret = LOS_SemCreate(0, &g_semID); in Testcase()
94 ret = LOS_SemPost(g_semID); // try to wake task f01 in Testcase()
102 ret = LOS_SemDelete(g_semID); in Testcase()
109 LOS_SemDelete(g_semID); in Testcase()
DIt_smp_los_sem_012.c48 ret = LOS_SemPend(g_semID, LOS_WAIT_FOREVER); in TaskF01()
60 ret = LOS_SemPost(g_semID); in HwiF01()
73 ret = LOS_SemCreate(0, &g_semID); in Testcase()
95 ret = LOS_SemDelete(g_semID); in Testcase()
102 LOS_SemDelete(g_semID); in Testcase()
DIt_smp_los_sem_032.c48 ret = LOS_SemPend(g_semID, 100); // 100 ticks timeout in TaskF01()
53 ret = LOS_SemPost(g_semID); in TaskF01()
67 ret = LOS_SemCreate(0, &g_semID); in Testcase()
83 ret = LOS_SemPost(g_semID); // post sem before 10 ticks timeout in Testcase()
93 ret = LOS_SemDelete(g_semID); in Testcase()

123