Lines Matching refs:file
15 static ssize_t efivarfs_file_write(struct file *file, in efivarfs_file_write() argument
18 struct efivar_entry *var = file->private_data; in efivarfs_file_write()
21 struct inode *inode = file->f_mapping->host; in efivarfs_file_write()
49 d_delete(file->f_path.dentry); in efivarfs_file_write()
50 dput(file->f_path.dentry); in efivarfs_file_write()
66 static ssize_t efivarfs_file_read(struct file *file, char __user *userbuf, in efivarfs_file_read() argument
69 struct efivar_entry *var = file->private_data; in efivarfs_file_read()
76 while (!__ratelimit(&file->f_cred->user->ratelimit)) in efivarfs_file_read()
121 efivarfs_ioc_getxflags(struct file *file, void __user *arg) in efivarfs_ioc_getxflags() argument
123 struct inode *inode = file->f_mapping->host; in efivarfs_ioc_getxflags()
132 efivarfs_ioc_setxflags(struct file *file, void __user *arg) in efivarfs_ioc_setxflags() argument
134 struct inode *inode = file->f_mapping->host; in efivarfs_ioc_setxflags()
153 error = mnt_want_write_file(file); in efivarfs_ioc_setxflags()
166 mnt_drop_write_file(file); in efivarfs_ioc_setxflags()
171 efivarfs_file_ioctl(struct file *file, unsigned int cmd, unsigned long p) in efivarfs_file_ioctl() argument
177 return efivarfs_ioc_getxflags(file, arg); in efivarfs_file_ioctl()
179 return efivarfs_ioc_setxflags(file, arg); in efivarfs_file_ioctl()