Home
last modified time | relevance | path

Searched refs:count (Results 1 – 25 of 31) sorted by relevance

12

/examples/ulog/
A Dulog_example.c24 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 Dsemaphore.h16 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 Dex6.c22 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 Dex7.c70 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 Dthread_tc.cpp17 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 Drtlink_example.c57 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 Drtlink_dev_example.c92 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 Dslab_tc.c37 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 Datomic_tc.c26 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 Dmem_tc.c292 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 Dudpclient.c30 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 Duart_flush_rx.c119 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 Duart_flush_txb.c129 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 Duart_flush_txnb.c128 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 Duart_overflow_rxb_txb.c186 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 Duart_rxb_txb.c195 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 Duart_rxb_txnb.c227 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 Duart_rxnb_txb.c230 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 Duart_rxnb_txnb.c258 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 Dperf_tc.c75 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 Dthread_mbox_tc.c38 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 Dthread_mq_tc.c37 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 Dthread_event_tc.c41 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 Dthread_sem_tc.c39 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 Duart_qemu_echo.c94 for (uint32_t count = 0; count < 1000; count++) in echo_test() local
106 if (count % 50 == 0) in echo_test()

Completed in 28 milliseconds

12