Lines Matching refs:test
42 static struct kfifo test; variable
44 static DECLARE_KFIFO(test, unsigned char, FIFO_SIZE);
63 kfifo_in(&test, "hello", 5); in testfunc()
67 kfifo_put(&test, i); in testfunc()
70 printk(KERN_INFO "fifo len: %u\n", kfifo_len(&test)); in testfunc()
73 i = kfifo_out(&test, buf, 5); in testfunc()
77 ret = kfifo_out(&test, buf, 2); in testfunc()
80 ret = kfifo_in(&test, buf, ret); in testfunc()
85 kfifo_skip(&test); in testfunc()
88 for (i = 20; kfifo_put(&test, i); i++) in testfunc()
91 printk(KERN_INFO "queue len: %u\n", kfifo_len(&test)); in testfunc()
94 if (kfifo_peek(&test, &i)) in testfunc()
99 while (kfifo_get(&test, &i)) { in testfunc()
124 ret = kfifo_from_user(&test, buf, count, &copied); in fifo_write()
140 ret = kfifo_to_user(&test, buf, count, &copied); in fifo_read()
159 ret = kfifo_alloc(&test, FIFO_SIZE, GFP_KERNEL); in example_init()
165 INIT_KFIFO(test); in example_init()
169 kfifo_free(&test); in example_init()
176 kfifo_free(&test); in example_init()
187 kfifo_free(&test); in example_exit()