Lines Matching defs:file
19 #include <linux/file.h>
64 * @filp: file pointer
72 static ssize_t vtpm_proxy_fops_read(struct file *filp, char __user *buf,
119 * @filp: file pointer
127 static ssize_t vtpm_proxy_fops_write(struct file *filp, const char __user *buf,
166 * @filp: file pointer
171 static __poll_t vtpm_proxy_fops_poll(struct file *filp, poll_table *wait)
196 * @filp: file pointer
198 * Called when setting up the anonymous file descriptor
200 static void vtpm_proxy_fops_open(struct file *filp)
229 * @filp: file pointer
233 static int vtpm_proxy_fops_release(struct inode *inode, struct file *filp)
528 * Create a /dev/tpm%d and 'server side' file descriptor pair
531 * Returns file pointer on success, an error value otherwise
533 static struct file *vtpm_proxy_create_device(
538 struct file *file;
549 /* setup an anonymous file for the server-side */
556 file = anon_inode_getfile("[vtpms]", &vtpm_proxy_fops, proxy_dev,
558 if (IS_ERR(file)) {
559 rc = PTR_ERR(file);
565 vtpm_proxy_fops_open(file);
577 return file;
614 * @file: /dev/vtpmx
618 * Creates an anonymous file that is used by the process acting as a TPM to
621 * will be provided with a file descriptor to communicate with the clients and
624 static long vtpmx_ioc_new_dev(struct file *file, unsigned int ioctl,
630 struct file *vtpm_file;
662 static long vtpmx_fops_ioctl(struct file *f, unsigned int ioctl,