Lines Matching refs:buf
71 char buf[100]; in testfunc() local
74 struct { unsigned char buf[6]; } hello = { "hello" }; in testfunc() member
85 memset(buf, 'a' + i, i + 1); in testfunc()
86 kfifo_in(&test, buf, i + 1); in testfunc()
96 ret = kfifo_out_peek(&test, buf, sizeof(buf)); in testfunc()
98 printk(KERN_INFO "%.*s\n", ret, buf); in testfunc()
103 ret = kfifo_out(&test, buf, sizeof(buf)); in testfunc()
104 buf[ret] = '\0'; in testfunc()
105 printk(KERN_INFO "item = %.*s\n", ret, buf); in testfunc()
106 if (strcmp(buf, expected_result[i++])) { in testfunc()
120 static ssize_t fifo_write(struct file *file, const char __user *buf, in fifo_write() argument
129 ret = kfifo_from_user(&test, buf, count, &copied); in fifo_write()
138 static ssize_t fifo_read(struct file *file, char __user *buf, in fifo_read() argument
147 ret = kfifo_to_user(&test, buf, count, &copied); in fifo_read()