Searched refs:cnt (Results 1 – 11 of 11) sorted by relevance
/trusty/kernel/lib/trusty/include/lib/trusty/ |
D | refcount.h | 33 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/ |
D | main.c | 32 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/ |
D | trusty_bench_common.h | 63 size_t cnt; member
|
D | trusty_bench_print_tables.h | 318 if (entry->metric.cnt == 0) { in trusty_bench_print_stat() 432 if (entry->metric.cnt) { in trusty_bench_print_vertical_metric_list()
|
D | trusty_benchmark.h | 267 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/ |
D | uevt_test.c | 93 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/ |
D | vqueue.h | 64 uint cnt; /* max number of iovs available */ member
|
D | vqueue.c | 200 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()
|
D | tipc_virtio_dev.c | 817 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/ |
D | main.c | 113 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/ |
D | main.c | 73 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()
|