Lines Matching refs:test
40 static struct kfifo test; variable
42 static DECLARE_KFIFO(test, unsigned char, FIFO_SIZE);
61 kfifo_in(&test, "hello", 5); in testfunc()
65 kfifo_put(&test, i); in testfunc()
68 printk(KERN_INFO "fifo len: %u\n", kfifo_len(&test)); in testfunc()
71 i = kfifo_out(&test, buf, 5); in testfunc()
75 ret = kfifo_out(&test, buf, 2); in testfunc()
78 ret = kfifo_in(&test, buf, ret); in testfunc()
83 kfifo_skip(&test); in testfunc()
86 for (i = 20; kfifo_put(&test, i); i++) in testfunc()
89 printk(KERN_INFO "queue len: %u\n", kfifo_len(&test)); in testfunc()
92 if (kfifo_peek(&test, &i)) in testfunc()
97 while (kfifo_get(&test, &i)) { in testfunc()
122 ret = kfifo_from_user(&test, buf, count, &copied); in fifo_write()
138 ret = kfifo_to_user(&test, buf, count, &copied); in fifo_read()
157 ret = kfifo_alloc(&test, FIFO_SIZE, GFP_KERNEL); in example_init()
163 INIT_KFIFO(test); in example_init()
167 kfifo_free(&test); in example_init()
174 kfifo_free(&test); in example_init()
185 kfifo_free(&test); in example_exit()