Lines Matching refs:file
72 static ssize_t vtpm_proxy_fops_read(struct file *filp, char __user *buf, in vtpm_proxy_fops_read()
127 static ssize_t vtpm_proxy_fops_write(struct file *filp, const char __user *buf, in vtpm_proxy_fops_write()
171 static __poll_t vtpm_proxy_fops_poll(struct file *filp, poll_table *wait) in vtpm_proxy_fops_poll()
200 static void vtpm_proxy_fops_open(struct file *filp) in vtpm_proxy_fops_open()
233 static int vtpm_proxy_fops_release(struct inode *inode, struct file *filp) in vtpm_proxy_fops_release()
533 static struct file *vtpm_proxy_create_device( in vtpm_proxy_create_device()
538 struct file *file; in vtpm_proxy_create_device() local
556 file = anon_inode_getfile("[vtpms]", &vtpm_proxy_fops, proxy_dev, in vtpm_proxy_create_device()
558 if (IS_ERR(file)) { in vtpm_proxy_create_device()
559 rc = PTR_ERR(file); in vtpm_proxy_create_device()
565 vtpm_proxy_fops_open(file); in vtpm_proxy_create_device()
577 return file; in vtpm_proxy_create_device()
624 static long vtpmx_ioc_new_dev(struct file *file, unsigned int ioctl, in vtpmx_ioc_new_dev() argument
630 struct file *vtpm_file; in vtpmx_ioc_new_dev()
662 static long vtpmx_fops_ioctl(struct file *f, unsigned int ioctl, in vtpmx_fops_ioctl()