Home
last modified time | relevance | path

Searched refs:cnt (Results 1 – 11 of 11) sorted by relevance

/trusty/kernel/lib/trusty/include/lib/trusty/
Drefcount.h33 volatile int cnt; member
41 atomic_and(&ref->cnt, 0); in refcount_init()
42 atomic_add(&ref->cnt, 1); in refcount_init()
46 if (atomic_add(&ref->cnt, 1) == INT_MAX) { in refcount_inc()
54 if (atomic_add(&ref->cnt, -1) == 1) in refcount_dec()
/trusty/user/app/sample/hwrng-unittest/
Dmain.c32 static void hwrng_update_hist(uint8_t* data, unsigned int cnt) { in hwrng_update_hist() argument
33 for (unsigned int i = 0; i < cnt; i++) { in hwrng_update_hist()
170 uint32_t cnt = 0; in TEST() local
189 cnt += _hist[i]; in TEST()
190 ave = cnt / 256; in TEST()
191 EXPECT_EQ(exp_cnt, cnt, "hwrng ttl sample cnt"); in TEST()
/trusty/kernel/include/shared/lk/
Dtrusty_bench_common.h63 size_t cnt; member
Dtrusty_bench_print_tables.h318 if (entry->metric.cnt == 0) { in trusty_bench_print_stat()
432 if (entry->metric.cnt) { in trusty_bench_print_vertical_metric_list()
Dtrusty_benchmark.h267 m->cnt += 1; in trusty_bench_update_metric()
269 m->aggregates[BENCH_AGGREGATE_AVG] = m->tot / m->cnt; in trusty_bench_update_metric()
/trusty/kernel/app/uirqtest/
Duevt_test.c93 uint32_t cnt; in TEST_F() local
96 for (cnt = 0; cnt < 10000; cnt++) { in TEST_F()
275 uint32_t cnt = MAX_EVT_CNT; in TEST_F() local
278 while (cnt) { in TEST_F()
289 cnt--; in TEST_F()
299 EXPECT_EQ(0, cnt, "event counter"); in TEST_F()
/trusty/kernel/lib/trusty/
Dvqueue.h64 uint cnt; /* max number of iovs available */ member
Dvqueue.c200 if (iovlist->used < iovlist->cnt) { in _vqueue_get_avail_buf_locked()
290 DEBUG_ASSERT(vqiovs->used <= vqiovs->cnt); in vqueue_map_iovs()
369 DEBUG_ASSERT(vqiovs->used <= vqiovs->cnt); in vqueue_unmap_iovs()
423 fake_vqiovs.cnt = 1; in vqueue_unmap_memid()
Dtipc_virtio_dev.c817 buf.in_iovs.cnt = MAX_RX_IOVS; in tipc_rx_thread_func()
1287 buf.out_iovs.cnt = MAX_TX_IOVS; in tipc_send_data()
/trusty/user/app/storage/test/storage-unittest/
Dmain.c113 size_t cnt = len / sizeof(uint32_t); in fill_pattern32() local
115 for (; cnt > 0; cnt--) { in fill_pattern32()
123 size_t cnt = len / sizeof(uint32_t); in check_pattern32() local
125 for (; cnt > 0; cnt--) { in check_pattern32()
135 size_t cnt = len / sizeof(uint32_t); in check_value32() local
136 for (; cnt > 0; cnt--) { in check_value32()
/trusty/user/base/lib/tipc/test/main/
Dmain.c73 static void fill_test_buf(uint8_t* buf, size_t cnt, uint8_t seed) { in fill_test_buf() argument
74 if (!buf || !cnt) in fill_test_buf()
77 for (; cnt > 0; cnt--) { in fill_test_buf()