/kernel/liteos_a/testsuites/unittest/libc/posix/mqueue/full/ |
D | It_posix_queue_076.cpp | 57 pthread_attr_t attr1; in PthreadF02() local 72 ret = pthread_attr_init(&attr1); in PthreadF02() 76 ret = pthread_attr_setschedparam(&attr1, &schedparam); in PthreadF02() 79 ret = pthread_create(&thread1, &attr1, PthreadF01, NULL); in PthreadF02() 92 ret = pthread_attr_destroy(&attr1); in PthreadF02() 106 PosixPthreadDestroy(&attr1, thread1); in PthreadF02() 116 pthread_attr_t attr1; in Testcase() local 121 ret = pthread_attr_init(&attr1); in Testcase() 125 ret = pthread_attr_setschedparam(&attr1, &schedparam); in Testcase() 128 ret = pthread_create(&pthread1, &attr1, PthreadF02, NULL); in Testcase() [all …]
|
D | It_posix_queue_041.cpp | 91 pthread_attr_t attr1; in Testcase() local 105 ret = PosixPthreadInit(&attr1, MQUEUE_PTHREAD_PRIORITY_TEST1); in Testcase() 108 ret = pthread_create(&newTh1, &attr1, PthreadF01, NULL); in Testcase() 114 ret = PosixPthreadInit(&attr1, MQUEUE_PTHREAD_PRIORITY_TEST2); in Testcase() 117 ret = pthread_create(&newTh2, &attr1, PthreadF02, NULL); in Testcase() 125 ret = PosixPthreadDestroy(&attr1, newTh2); in Testcase() 128 ret = PosixPthreadDestroy(&attr1, newTh1); in Testcase() 134 PosixPthreadDestroy(&attr1, newTh2); in Testcase() 136 PosixPthreadDestroy(&attr1, newTh1); in Testcase()
|
D | It_posix_queue_040.cpp | 89 pthread_attr_t attr1; in Testcase() local 103 ret = PosixPthreadInit(&attr1, MQUEUE_PTHREAD_PRIORITY_TEST1); in Testcase() 106 ret = pthread_create(&newTh1, &attr1, PthreadF01, NULL); in Testcase() 112 ret = PosixPthreadInit(&attr1, MQUEUE_PTHREAD_PRIORITY_TEST2); in Testcase() 115 ret = pthread_create(&newTh2, &attr1, PthreadF02, NULL); in Testcase() 123 ret = PosixPthreadDestroy(&attr1, newTh2); in Testcase() 126 ret = PosixPthreadDestroy(&attr1, newTh1); in Testcase() 132 PosixPthreadDestroy(&attr1, newTh2); in Testcase() 134 PosixPthreadDestroy(&attr1, newTh1); in Testcase()
|
D | It_posix_queue_097.cpp | 92 pthread_attr_t attr1; in Testcase() local 106 ret = PosixPthreadInit(&attr1, MQUEUE_PTHREAD_PRIORITY_TEST1); in Testcase() 109 ret = pthread_create(&newTh, &attr1, PthreadF01, NULL); in Testcase() 112 ret = PosixPthreadInit(&attr1, MQUEUE_PTHREAD_PRIORITY_TEST2); in Testcase() 115 ret = pthread_create(&newTh2, &attr1, PthreadF02, NULL); in Testcase() 123 ret = PosixPthreadDestroy(&attr1, newTh2); in Testcase() 126 ret = PosixPthreadDestroy(&attr1, newTh); in Testcase() 132 PosixPthreadDestroy(&attr1, newTh2); in Testcase() 134 PosixPthreadDestroy(&attr1, newTh); in Testcase()
|
D | It_posix_queue_144.cpp | 92 pthread_attr_t attr1; in Testcase() local 110 ret = PosixPthreadInit(&attr1, MQUEUE_PTHREAD_PRIORITY_TEST1); in Testcase() 113 ret = pthread_create(&newTh, &attr1, PthreadF01, NULL); in Testcase() 119 ret = PosixPthreadInit(&attr1, MQUEUE_PTHREAD_PRIORITY_TEST2); in Testcase() 122 ret = pthread_create(&newTh2, &attr1, PthreadF02, NULL); in Testcase() 130 ret = PosixPthreadDestroy(&attr1, newTh2); in Testcase() 133 ret = PosixPthreadDestroy(&attr1, newTh); in Testcase() 144 PosixPthreadDestroy(&attr1, newTh2); in Testcase() 146 PosixPthreadDestroy(&attr1, newTh); in Testcase()
|
D | It_posix_queue_077.cpp | 58 pthread_attr_t attr1; in Testcase() local 76 ret = pthread_attr_init(&attr1); in Testcase() 79 pthread_attr_setinheritsched(&attr1, PTHREAD_EXPLICIT_SCHED); in Testcase() 82 ret = pthread_attr_setschedparam(&attr1, &schedparam); in Testcase() 85 ret = pthread_create(&pthread1, &attr1, PthreadF01, NULL); in Testcase() 91 ret = pthread_attr_destroy(&attr1); in Testcase() 104 PosixPthreadDestroy(&attr1, pthread1); in Testcase()
|
D | It_posix_queue_160.cpp | 120 pthread_attr_t attr1; in Testcase() local 125 ret = pthread_attr_init(&attr1); in Testcase() 129 ret = pthread_attr_setschedparam(&attr1, &schedparam); in Testcase() 132 ret = pthread_attr_init(&attr1); in Testcase() 136 ret = pthread_create(&pthread1, &attr1, PthreadF01, NULL); in Testcase() 142 ret = pthread_create(&pthread2, &attr1, PthreadF02, NULL); in Testcase() 148 ret = pthread_create(&pthread3, &attr1, PthreadF03, NULL); in Testcase() 155 ret = pthread_attr_destroy(&attr1); in Testcase() 166 pthread_attr_destroy(&attr1); in Testcase()
|
D | It_posix_queue_075.cpp | 59 pthread_attr_t attr1; in Testcase() local 73 ret = pthread_attr_init(&attr1); in Testcase() 76 pthread_attr_setinheritsched(&attr1, PTHREAD_EXPLICIT_SCHED); in Testcase() 79 ret = pthread_attr_setschedparam(&attr1, &schedparam); in Testcase() 82 ret = pthread_create(&pthread1, &attr1, PthreadF01, NULL); in Testcase() 105 ret = pthread_attr_destroy(&attr1); in Testcase() 113 PosixPthreadDestroy(&attr1, pthread1); in Testcase()
|
D | It_posix_queue_116.cpp | 80 pthread_attr_t attr1; in Testcase() local 87 ret = pthread_attr_init(&attr1); in Testcase() 91 ret = pthread_attr_setschedparam(&attr1, &schedparam); in Testcase() 94 ret = pthread_create(&pthread1, &attr1, PthreadF01, NULL); in Testcase() 102 ret = pthread_attr_destroy(&attr1); in Testcase() 112 pthread_attr_destroy(&attr1); in Testcase()
|
D | It_posix_queue_114.cpp | 58 pthread_attr_t attr1; in Testcase() local 75 ret = pthread_attr_init(&attr1); in Testcase() 79 ret = pthread_attr_setschedparam(&attr1, &schedparam); in Testcase() 82 ret = pthread_create(&pthread1, &attr1, PthreadF01, NULL); in Testcase() 108 ret = pthread_attr_destroy(&attr1); in Testcase() 118 pthread_attr_destroy(&attr1); in Testcase()
|
D | It_posix_queue_078.cpp | 55 pthread_attr_t attr1; in Testcase() local 88 ret = pthread_attr_init(&attr1); in Testcase() 92 ret = pthread_attr_setschedparam(&attr1, &schedparam); in Testcase() 95 ret = pthread_create(&thread1, &attr1, PthreadF01, NULL); in Testcase() 101 ret = pthread_attr_destroy(&attr1); in Testcase() 108 pthread_attr_destroy(&attr1); in Testcase()
|
D | It_posix_queue_115.cpp | 59 pthread_attr_t attr1; in Testcase() local 77 ret = pthread_attr_init(&attr1); in Testcase() 81 ret = pthread_attr_setschedparam(&attr1, &schedparam); in Testcase() 84 ret = pthread_create(&pthread1, &attr1, PthreadF01, NULL); in Testcase() 107 ret = pthread_attr_destroy(&attr1); in Testcase() 117 pthread_attr_destroy(&attr1); in Testcase()
|
D | It_posix_queue_113.cpp | 60 pthread_attr_t attr1; in Testcase() local 78 ret = pthread_attr_init(&attr1); in Testcase() 82 ret = pthread_attr_setschedparam(&attr1, &schedparam); in Testcase() 85 ret = pthread_create(&pthread1, &attr1, PthreadF01, NULL); in Testcase() 108 ret = pthread_attr_destroy(&attr1); in Testcase() 119 pthread_attr_destroy(&attr1); in Testcase()
|
D | It_posix_queue_126.cpp | 98 pthread_attr_t attr1; in Testcase() local 119 ret = pthread_attr_init(&attr1); in Testcase() 123 ret = pthread_attr_setschedparam(&attr1, &schedparam); in Testcase() 126 ret = pthread_create(&pthread1, &attr1, PthreadF01, NULL); in Testcase() 135 ret = pthread_attr_destroy(&attr1); in Testcase() 144 pthread_attr_destroy(&attr1); in Testcase()
|
D | It_posix_queue_111.cpp | 108 pthread_attr_t attr1; in Testcase() local 113 ret = pthread_attr_init(&attr1); in Testcase() 117 ret = pthread_attr_setschedparam(&attr1, &schedparam); in Testcase() 120 ret = pthread_create(&pthread1, &attr1, PthreadF02, NULL); in Testcase() 131 ret = pthread_attr_destroy(&attr1); in Testcase() 138 pthread_attr_destroy(&attr1); in Testcase()
|
D | It_posix_queue_079.cpp | 91 pthread_attr_t attr1; in Testcase() local 109 ret = pthread_attr_init(&attr1); in Testcase() 113 ret = pthread_attr_setschedparam(&attr1, &schedparam); in Testcase() 116 ret = pthread_create(&thread2, &attr1, PthreadF01, NULL); in Testcase() 127 ret = pthread_attr_destroy(&attr1); in Testcase() 136 pthread_attr_destroy(&attr1); in Testcase()
|
D | It_posix_queue_125.cpp | 101 pthread_attr_t attr1; in Testcase() local 110 ret = pthread_attr_init(&attr1); in Testcase() 114 ret = pthread_attr_setschedparam(&attr1, &schedparam); in Testcase() 117 ret = pthread_create(&pthread1, &attr1, PthreadF01, NULL); in Testcase() 137 ret = pthread_attr_destroy(&attr1); in Testcase() 149 pthread_attr_destroy(&attr1); in Testcase()
|
D | It_posix_queue_119.cpp | 130 pthread_attr_t attr1; in Testcase() local 135 ret = pthread_attr_init(&attr1); in Testcase() 139 ret = pthread_attr_setschedparam(&attr1, &schedparam); in Testcase() 142 ret = pthread_create(&pthread1, &attr1, PthreadF02, NULL); in Testcase() 148 ret = pthread_attr_destroy(&attr1); in Testcase() 158 pthread_attr_destroy(&attr1); in Testcase()
|
D | It_posix_queue_162.cpp | 82 pthread_attr_t attr1; in Testcase() local 85 ret = pthread_attr_init(&attr1); in Testcase() 102 ret = pthread_create(&pthreadSend[i], &attr1, PthreadF01, NULL); in Testcase() 105 ret = pthread_create(&pthreadRecev[i], &attr1, PthreadF02, (void *)&pthreadCount[i]); in Testcase() 124 ret = pthread_attr_destroy(&attr1); in Testcase() 137 pthread_attr_destroy(&attr1); in Testcase()
|
D | It_posix_queue_118.cpp | 89 pthread_attr_t attr1; in Testcase() local 108 ret = pthread_attr_init(&attr1); in Testcase() 112 ret = pthread_attr_setschedparam(&attr1, &schedparam); in Testcase() 115 ret = pthread_create(&pthread1, &attr1, PthreadF02, NULL); in Testcase() 142 ret = pthread_attr_destroy(&attr1); in Testcase() 156 PosixPthreadDestroy(&attr1, pthread1); in Testcase()
|
D | It_posix_queue_120.cpp | 80 pthread_attr_t attr1; in Testcase() local 98 ret = pthread_attr_init(&attr1); in Testcase() 102 ret = pthread_attr_setschedparam(&attr1, &schedparam1); in Testcase() 105 ret = pthread_create(&pthread1, &attr1, PthreadF02, NULL); in Testcase() 130 ret = pthread_attr_destroy(&attr1); in Testcase() 147 pthread_attr_destroy(&attr1); in Testcase()
|
D | It_posix_queue_204.cpp | 75 pthread_attr_t attr1, attr2; in Testcase() local 83 ret = pthread_attr_init(&attr1); in Testcase() 85 ret = pthread_create(&pthread1, &attr1, PthreadF01, NULL); in Testcase()
|
/kernel/liteos_a/testsuites/unittest/libc/posix/mqueue/smoke/ |
D | It_posix_queue_053.cpp | 87 pthread_attr_t attr1; in Testcase() local 100 ret = PosixPthreadInit(&attr1, MQUEUE_PTHREAD_PRIORITY_TEST1); in Testcase() 103 ret = pthread_create(&newTh1, &attr1, PthreadF01, NULL); in Testcase() 108 ret = PosixPthreadInit(&attr1, MQUEUE_PTHREAD_PRIORITY_TEST2); in Testcase() 111 ret = pthread_create(&newTh2, &attr1, PthreadF02, NULL); in Testcase() 123 ret = PosixPthreadDestroy(&attr1, newTh2); in Testcase() 126 ret = PosixPthreadDestroy(&attr1, newTh1); in Testcase() 131 PosixPthreadDestroy(&attr1, newTh2); in Testcase() 133 PosixPthreadDestroy(&attr1, newTh1); in Testcase()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/huawei/hinic/ |
D | hinic_hw_if.c | 195 u32 addr, attr1; in hwif_ready() local 198 attr1 = hinic_hwif_read_reg(hwif, addr); in hwif_ready() 200 if (!HINIC_FA1_GET(attr1, MGMT_INIT_STATUS)) in hwif_ready() 204 if (!HINIC_FA1_GET(attr1, PF_INIT_STATUS)) in hwif_ready() 235 static void set_hwif_attr(struct hinic_hwif *hwif, u32 attr0, u32 attr1, in set_hwif_attr() argument 243 hwif->attr.num_aeqs = BIT(HINIC_FA1_GET(attr1, AEQS_PER_FUNC)); in set_hwif_attr() 244 hwif->attr.num_ceqs = BIT(HINIC_FA1_GET(attr1, CEQS_PER_FUNC)); in set_hwif_attr() 245 hwif->attr.num_irqs = BIT(HINIC_FA1_GET(attr1, IRQS_PER_FUNC)); in set_hwif_attr() 246 hwif->attr.num_dma_attr = BIT(HINIC_FA1_GET(attr1, DMA_ATTR_PER_FUNC)); in set_hwif_attr() 257 u32 addr, attr0, attr1, attr2; in read_hwif_attr() local [all …]
|
/kernel/linux/linux-5.10/tools/lib/perf/tests/ |
D | test-evlist.c | 33 struct perf_event_attr attr1 = { in test_stat_cpu() local 49 evsel = perf_evsel__new(&attr1); in test_stat_cpu() 88 struct perf_event_attr attr1 = { in test_stat_thread() local 106 evsel = perf_evsel__new(&attr1); in test_stat_thread() 139 struct perf_event_attr attr1 = { in test_stat_thread_enable() local 159 evsel = perf_evsel__new(&attr1); in test_stat_thread_enable()
|