Home
last modified time | relevance | path

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

/DragonOS-0.1.5/kernel/src/ktest/
Dtest-kfifo.c9 const int fifo_size = 256; in ktest_kfifo_case0_1() local
13 assert(kfifo_alloc(&fifo, fifo_size, 0) == 0); in ktest_kfifo_case0_1()
16 void *buf = kmalloc(fifo_size, 0); in ktest_kfifo_case0_1()
17 kfifo_init(&fifo, buf, fifo_size); in ktest_kfifo_case0_1()
21 assert(fifo.total_size == fifo_size); in ktest_kfifo_case0_1()
22 assert(kfifo_total_size(&fifo) == fifo_size); in ktest_kfifo_case0_1()
39 assert(fifo.total_size == fifo_size); in ktest_kfifo_case0_1()
89 assert(fifo.in_offset == fifo_size); in ktest_kfifo_case0_1()
100 assert(fifo.in_offset == fifo_size); in ktest_kfifo_case0_1()
139 assert(fifo.total_size == fifo_size); in ktest_kfifo_case0_1()