Lines Matching defs:test
48 struct kfifo_rec_ptr_1 test;
53 static mytest test;
76 printk(KERN_INFO "record fifo test start\n");
78 kfifo_in(&test, &hello, sizeof(hello));
81 printk(KERN_INFO "fifo peek len: %u\n", kfifo_peek_len(&test));
86 kfifo_in(&test, buf, i + 1);
91 kfifo_skip(&test);
93 printk(KERN_INFO "fifo len: %u\n", kfifo_len(&test));
96 ret = kfifo_out_peek(&test, buf, sizeof(buf));
102 while (!kfifo_is_empty(&test)) {
103 ret = kfifo_out(&test, buf, sizeof(buf));
107 printk(KERN_WARNING "value mismatch: test failed\n");
112 printk(KERN_WARNING "size mismatch: test failed\n");
115 printk(KERN_INFO "test passed\n");
129 ret = kfifo_from_user(&test, buf, count, &copied);
147 ret = kfifo_to_user(&test, buf, count, &copied);
167 ret = kfifo_alloc(&test, FIFO_SIZE, GFP_KERNEL);
173 INIT_KFIFO(test);
177 kfifo_free(&test);
184 kfifo_free(&test);
195 kfifo_free(&test);