Lines Matching refs:buf
73 char buf[100]; in testfunc() local
76 struct { unsigned char buf[6]; } hello = { "hello" }; in testfunc() member
87 memset(buf, 'a' + i, i + 1); in testfunc()
88 kfifo_in(&test, buf, i + 1); in testfunc()
98 ret = kfifo_out_peek(&test, buf, sizeof(buf)); in testfunc()
100 printk(KERN_INFO "%.*s\n", ret, buf); in testfunc()
105 ret = kfifo_out(&test, buf, sizeof(buf)); in testfunc()
106 buf[ret] = '\0'; in testfunc()
107 printk(KERN_INFO "item = %.*s\n", ret, buf); in testfunc()
108 if (strcmp(buf, expected_result[i++])) { in testfunc()
122 static ssize_t fifo_write(struct file *file, const char __user *buf, in fifo_write() argument
131 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()