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 */
405 /* we have a free buffer so use it */
476 /* if the primary buffer is empty then use it */
503 static ssize_t adu_write(struct file *file, const __user char *buffer,
579 if (copy_from_user(dev->interrupt_out_buffer, buffer, bytes_to_write) != 0) {
604 buffer += bytes_to_write;
687 /* debug code prime the buffer */
697 /* debug code prime the buffer */
707 /* debug code prime the buffer */