Lines Matching defs:buffer
81 unsigned char *int_in_buffer; /* buffer for data to be read */
236 /* free up our allocated buffer */
274 static ssize_t iowarrior_read(struct file *file, char __user *buffer,
295 /* repeat until no buffer overrun in callback handler occur */
326 if (copy_to_user(buffer, dev->read_queue + offset, count)) {
345 char *buf = NULL; /* for IOW24 and IOW56 we need a buffer */
425 "Unable to allocate buffer\n");
479 __u8 *buffer;
488 buffer = kzalloc(dev->report_size, GFP_KERNEL);
489 if (!buffer)
513 io_res = copy_from_user(buffer, user_buffer,
519 buffer,
535 buffer, dev->report_size);
539 io_res = copy_to_user(user_buffer, buffer, dev->report_size);
585 kfree(buffer);
822 /* create the urb and buffer for reading */
835 /* create an internal buffer for interrupt data from the device */