Lines Matching defs:buf
200 * @buf: User buffer into which to copy the next message on the daemon queue
201 * @count: Amount of space available in @buf
205 * being sent via a miscdevfs handle, and copies it into @buf
210 ecryptfs_miscdev_read(struct file *file, char __user *buf, size_t count,
283 if (put_user(msg_ctx->type, buf))
286 (__be32 __user *)(&buf[PKT_CTR_OFFSET])))
290 if (copy_to_user(&buf[i], packet_length, packet_length_size))
293 if (copy_to_user(&buf[i], msg_ctx->msg, msg_ctx->msg_size))
346 * @buf: Buffer containing user data
347 * @count: Amount of data in @buf
350 * Returns the number of bytes read from @buf
353 ecryptfs_miscdev_write(struct file *file, const char __user *buf,
375 if (copy_from_user(packet_size_peek, &buf[PKT_LEN_OFFSET],
398 data = memdup_user(buf, count);