Lines Matching refs:buffer
343 static ssize_t adu_read(struct file *file, __user char *buffer, size_t count,
383 /* drain secondary buffer */
385 if (copy_to_user(buffer, dev->read_buffer_secondary+dev->secondary_head, amount)) {
393 /* we check the primary buffer */
408 /* we have a free buffer so use it */
479 /* if the primary buffer is empty then use it */
506 static ssize_t adu_write(struct file *file, const __user char *buffer,
582 if (copy_from_user(dev->interrupt_out_buffer, buffer, bytes_to_write) != 0) {
607 buffer += bytes_to_write;
690 /* debug code prime the buffer */
700 /* debug code prime the buffer */
710 /* debug code prime the buffer */