| /examples/ulog/ |
| A D | ulog_example.c | 24 int count = 0; in ulog_example() local 30 while (count++ < 50) in ulog_example() 34 LOG_D("LOG_D(%d): RT-Thread is an open source IoT operating system from China.", count); in ulog_example() 35 LOG_I("LOG_I(%d): RT-Thread is an open source IoT operating system from China.", count); in ulog_example() 36 LOG_W("LOG_W(%d): RT-Thread is an open source IoT operating system from China.", count); in ulog_example() 37 LOG_E("LOG_E(%d): RT-Thread is an open source IoT operating system from China.", count); in ulog_example() 44 if (count == 20) in ulog_example() 51 else if (count == 30) in ulog_example() 58 else if (count == 40) in ulog_example() 78 if (count == 20) in ulog_example() [all …]
|
| /examples/utest/testcases/mm/ |
| A D | semaphore.h | 16 atomic_int count; member 19 void semaphore_init(semaphore_t *sem, int count) in semaphore_init() argument 21 atomic_init(&sem->count, count); in semaphore_init() 26 int count; in semaphore_wait() local 28 count = atomic_load(&sem->count); in semaphore_wait() 29 } while (count == 0 || !atomic_compare_exchange_weak(&sem->count, &count, count - 1)); in semaphore_wait() 34 atomic_fetch_add(&sem->count, 1); in semaphore_signal()
|
| /examples/libc/ |
| A D | ex6.c | 22 unsigned long count; in libc_ex6() local 26 for (count = 0; count < 2000; ++count) { in libc_ex6() 32 printf("status = %d, count = %lu: %s\n", status, count, strerror( in libc_ex6() 36 printf("count = %lu\n", count); in libc_ex6()
|
| A D | ex7.c | 70 unsigned long count; in libc_ex7() local 79 for (count = 0; count < 20; ++count) { in libc_ex7() 84 status = pthread_create(&thread, NULL, test_thread, (void*) (count in libc_ex7() 87 printf("status = %d, count = %lu: %s\n", status, count, strerror( in libc_ex7() 100 printf("count = %lu\n", count); in libc_ex7()
|
| /examples/utest/testcases/cpp11/ |
| A D | thread_tc.cpp | 17 int count = 0; in test_thread() local 22 ++count; in test_thread() 29 if (count != 100) in test_thread() 37 if (count != 200) in test_thread()
|
| /examples/rt-link/ |
| A D | rtlink_example.c | 57 rt_size_t count = 0; in rt_link_speed_test() local 75 for (count = 0; count < bufflen; count++) in rt_link_speed_test() 77 *data++ = (count % 93 + 33); in rt_link_speed_test() 138 rt_uint16_t count = 0; in rtlink_exsend() local 153 for (count = 0; count < atoi((const char *)argv[2]); count++) in rtlink_exsend() 155 *receive++ = (count % 93 + 33); in rtlink_exsend()
|
| A D | rtlink_dev_example.c | 92 rt_uint16_t count = 0; in rtlink_fwrite() local 113 for (count = 0; count < atoi((const char *)argv[2]); count++) in rtlink_fwrite() 115 data[count] = (count % 93 + 33); in rtlink_fwrite() 237 rt_size_t count = 0; in rt_link_speed_test() local 261 for (count = 0; count < bufflen; count++) in rt_link_speed_test() 263 *data++ = (count % 93 + 33); in rt_link_speed_test() 318 rt_uint16_t count = 0; in rtlink_dwrite() local 342 for (count = 0; count < atoi((const char *)argv[2]); count++) in rtlink_dwrite() 344 data[count] = (count % 93 + 33); in rtlink_dwrite()
|
| /examples/utest/testcases/kernel/ |
| A D | slab_tc.c | 37 rt_size_t count; member 57 head.count = 0; in slab_alloc_test() 82 if (head.count == 0) in slab_alloc_test() 86 size = head.count / 2; in slab_alloc_test() 100 head.count --; in slab_alloc_test() 117 head.count += 1; in slab_alloc_test() 134 head.count --; in slab_alloc_test() 151 head.count --; in slab_alloc_test() 173 rt_size_t count; member 192 head.count = size; in slab_realloc_test() [all …]
|
| A D | atomic_tc.c | 26 static rt_atomic_t count = 0; variable 130 rt_atomic_add(&count, 1); in ture_entry() 141 rt_atomic_store(&count, 0); in test_atomic_add() 154 i = rt_atomic_load(&count); in test_atomic_add()
|
| A D | mem_tc.c | 292 rt_size_t count; member 312 head.count = 0; in mem_alloc_test() 339 if (head.count == 0) in mem_alloc_test() 357 head.count --; in mem_alloc_test() 374 head.count += 1; in mem_alloc_test() 391 head.count --; in mem_alloc_test() 408 head.count --; in mem_alloc_test() 410 uassert_int_equal(head.count, 0); in mem_alloc_test() 431 rt_size_t count; member 450 head.count = size; in mem_realloc_test() [all …]
|
| /examples/network/ |
| A D | udpclient.c | 30 static int count = 10; variable 68 while (count && is_running) in udpclient() 79 count --; in udpclient() 82 if (count == 0) in udpclient() 148 count = atoi(argv[7]); in udpclient_test()
|
| /examples/utest/testcases/drivers/serial_v2/ |
| A D | uart_flush_rx.c | 119 for (rt_uint32_t count = 0; count < (RT_SERIAL_TC_RXBUF_SIZE * 5 + 1); count++) in uart_api() local 121 uart_write_buffer[count] = count; in uart_api()
|
| A D | uart_flush_txb.c | 129 for (rt_uint32_t count = 0; count < (RT_SERIAL_TC_TXBUF_SIZE * 5 + 10); count++) in uart_api() local 131 uart_write_buffer[count] = count; in uart_api()
|
| A D | uart_flush_txnb.c | 128 for (rt_uint32_t count = 0; count < (RT_SERIAL_TC_TXBUF_SIZE * 5 + 10); count++) in uart_api() local 130 uart_write_buffer[count] = count; in uart_api()
|
| A D | uart_overflow_rxb_txb.c | 186 rt_uint32_t count = 0; in tc_uart_api() local 193 …orrect to read and write data. [%d] count testing.", RT_SERIAL_TC_TXBUF_SIZE * i + i % 2, ++count); in tc_uart_api() 204 …orrect to read and write data. [%d] count testing.", RT_SERIAL_TC_RXBUF_SIZE * i + i % 2, ++count); in tc_uart_api() 213 while (RT_SERIAL_TC_SEND_ITERATIONS - count) in tc_uart_api() 217 … LOG_I("data_lens [%3d], it is correct to read and write data. [%d] count testing.", num, ++count); in tc_uart_api()
|
| A D | uart_rxb_txb.c | 195 rt_uint32_t count = 0; in tc_uart_api() local 201 …orrect to read and write data. [%d] count testing.", RT_SERIAL_TC_TXBUF_SIZE * i + i % 2, ++count); in tc_uart_api() 212 …orrect to read and write data. [%d] count testing.", RT_SERIAL_TC_RXBUF_SIZE * i + i % 2, ++count); in tc_uart_api() 221 while (RT_SERIAL_TC_SEND_ITERATIONS - count) in tc_uart_api() 225 … LOG_I("data_lens [%4d], it is correct to read and write data. [%d] count testing.", num, ++count); in tc_uart_api()
|
| A D | uart_rxb_txnb.c | 227 rt_uint32_t count = 0; in tc_uart_api() local 233 …orrect to read and write data. [%d] count testing.", RT_SERIAL_TC_TXBUF_SIZE * i + i % 2, ++count); in tc_uart_api() 244 …orrect to read and write data. [%d] count testing.", RT_SERIAL_TC_RXBUF_SIZE * i + i % 2, ++count); in tc_uart_api() 253 while (RT_SERIAL_TC_SEND_ITERATIONS - count) in tc_uart_api() 257 … LOG_I("data_lens [%4d], it is correct to read and write data. [%d] count testing.", num, ++count); in tc_uart_api()
|
| A D | uart_rxnb_txb.c | 230 rt_uint32_t count = 0; in tc_uart_api() local 236 …orrect to read and write data. [%d] count testing.", RT_SERIAL_TC_TXBUF_SIZE * i + i % 2, ++count); in tc_uart_api() 247 …orrect to read and write data. [%d] count testing.", RT_SERIAL_TC_RXBUF_SIZE * i + i % 2, ++count); in tc_uart_api() 256 while (RT_SERIAL_TC_SEND_ITERATIONS - count) in tc_uart_api() 260 … LOG_I("data_lens [%4d], it is correct to read and write data. [%d] count testing.", num, ++count); in tc_uart_api()
|
| A D | uart_rxnb_txnb.c | 258 rt_uint32_t count = 0; in tc_uart_api() local 264 …orrect to read and write data. [%d] count testing.", RT_SERIAL_TC_TXBUF_SIZE * i + i % 2, ++count); in tc_uart_api() 275 …orrect to read and write data. [%d] count testing.", RT_SERIAL_TC_RXBUF_SIZE * i + i % 2, ++count); in tc_uart_api() 284 while (RT_SERIAL_TC_SEND_ITERATIONS - count) in tc_uart_api() 288 … LOG_I("data_lens [%4d], it is correct to read and write data. [%d] count testing.", num, ++count); in tc_uart_api()
|
| /examples/utest/testcases/perf/ |
| A D | perf_tc.c | 75 perf->count++; in rt_perf_stop() 111 if (perf->count) in rt_perf_dump() 112 perf->avg_time = (double)perf->tot_time / perf->count; in rt_perf_dump() 121 perf->count, in rt_perf_dump() 136 perf->count = 0; in rt_perf_clear()
|
| A D | thread_mbox_tc.c | 38 if (perf->count >= UTEST_SYS_PERF_TC_COUNT) in perf_thread_mbox1() 54 if (perf->count >= UTEST_SYS_PERF_TC_COUNT) in perf_thread_mbox2()
|
| A D | thread_mq_tc.c | 37 if (perf->count >= UTEST_SYS_PERF_TC_COUNT) in perf_thread_mq1() 53 if (perf->count >= UTEST_SYS_PERF_TC_COUNT) in perf_thread_mq2()
|
| A D | thread_event_tc.c | 41 if (perf->count >= UTEST_SYS_PERF_TC_COUNT) in perf_thread_event1() 56 if (perf->count >= UTEST_SYS_PERF_TC_COUNT) in perf_thread_event2()
|
| A D | thread_sem_tc.c | 39 if (perf->count >= UTEST_SYS_PERF_TC_COUNT) in perf_thread_sem1() 56 if (perf->count >= UTEST_SYS_PERF_TC_COUNT) in perf_thread_sem2()
|
| /examples/utest/testcases/drivers/serial_v2/qemu/ |
| A D | uart_qemu_echo.c | 94 for (uint32_t count = 0; count < 1000; count++) in echo_test() local 106 if (count % 50 == 0) in echo_test()
|