Lines Matching refs:file
125 static int fault_opcodes_open(struct inode *inode, struct file *file) in fault_opcodes_open() argument
127 file->private_data = inode->i_private; in fault_opcodes_open()
128 return nonseekable_open(inode, file); in fault_opcodes_open()
131 static ssize_t fault_opcodes_write(struct file *file, const char __user *buf, in fault_opcodes_write() argument
138 struct fault *fault = file->private_data; in fault_opcodes_write()
149 ret = debugfs_file_get(file->f_path.dentry); in fault_opcodes_write()
199 debugfs_file_put(file->f_path.dentry); in fault_opcodes_write()
205 static ssize_t fault_opcodes_read(struct file *file, char __user *buf, in fault_opcodes_read() argument
212 struct fault *fault = file->private_data; in fault_opcodes_read()
218 ret = debugfs_file_get(file->f_path.dentry); in fault_opcodes_read()
234 debugfs_file_put(file->f_path.dentry); in fault_opcodes_read()