Lines Matching defs:file
73 struct file *file;
100 static int aspeed_p2a_mmap(struct file *file, struct vm_area_struct *vma)
104 struct aspeed_p2a_user *priv = file->private_data;
153 * closing their file out, this'll preserve the increment.
159 /* Track with the user, so when they close their file, we can
172 static long aspeed_p2a_ioctl(struct file *file, unsigned int cmd,
175 struct aspeed_p2a_user *priv = file->private_data;
195 /* Track with the user, so when they close their file,
228 * When a user opens this file, we create a structure to track their mappings.
237 static int aspeed_p2a_open(struct inode *inode, struct file *file)
245 priv->file = file;
249 /* The file's private_data is initialized to the p2a_ctrl. */
250 priv->parent = file->private_data;
252 /* Set the file's private_data to the user's data. */
253 file->private_data = priv;
263 static int aspeed_p2a_release(struct inode *inode, struct file *file)
268 struct aspeed_p2a_user *priv = file->private_data;