Lines Matching defs:file
112 static ssize_t force_suspend_read(struct file *file, char __user *user_buf,
115 struct vhci_data *data = file->private_data;
135 static ssize_t force_suspend_write(struct file *file,
139 struct vhci_data *data = file->private_data;
164 static ssize_t force_wakeup_read(struct file *file, char __user *user_buf,
167 struct vhci_data *data = file->private_data;
176 static ssize_t force_wakeup_write(struct file *file,
180 struct vhci_data *data = file->private_data;
230 static ssize_t aosp_capable_read(struct file *file, char __user *user_buf,
233 struct vhci_data *vhci = file->private_data;
242 static ssize_t aosp_capable_write(struct file *file,
246 struct vhci_data *vhci = file->private_data;
323 static ssize_t force_devcd_write(struct file *file, const char __user *user_buf,
326 struct vhci_data *data = file->private_data;
580 static ssize_t vhci_read(struct file *file,
583 struct vhci_data *data = file->private_data;
598 if (file->f_flags & O_NONBLOCK) {
614 struct file *file = iocb->ki_filp;
615 struct vhci_data *data = file->private_data;
620 static __poll_t vhci_poll(struct file *file, poll_table *wait)
622 struct vhci_data *data = file->private_data;
624 poll_wait(file, &data->read_wait, wait);
640 static int vhci_open(struct inode *inode, struct file *file)
655 file->private_data = data;
656 nonseekable_open(inode, file);
663 static int vhci_release(struct inode *inode, struct file *file)
665 struct vhci_data *data = file->private_data;
679 file->private_data = NULL;