Lines Matching refs:file

19  * To access the interface, debugfs file system should be mounted
41 bnad_debugfs_open_fwtrc(struct inode *inode, struct file *file)
75 file->private_data = fw_debug;
81 bnad_debugfs_open_fwsave(struct inode *inode, struct file *file)
115 file->private_data = fw_debug;
121 bnad_debugfs_open_reg(struct inode *inode, struct file *file)
131 file->private_data = reg_debug;
182 bnad_debugfs_open_drvinfo(struct inode *inode, struct file *file)
214 file->private_data = drv_info;
219 /* Changes the current file position */
221 bnad_debugfs_lseek(struct file *file, loff_t offset, int orig)
223 struct bnad_debug_info *debug = file->private_data;
228 return fixed_size_llseek(file, offset, orig, debug->buffer_len);
232 bnad_debugfs_read(struct file *file, char __user *buf,
235 struct bnad_debug_info *debug = file->private_data;
278 bnad_debugfs_read_regrd(struct file *file, char __user *buf,
281 struct bnad_debug_info *regrd_debug = file->private_data;
301 bnad_debugfs_write_regrd(struct file *file, const char __user *buf,
304 struct bnad_debug_info *regrd_debug = file->private_data;
362 bnad_debugfs_write_regwr(struct file *file, const char __user *buf,
365 struct bnad_debug_info *debug = file->private_data;
405 bnad_debugfs_release(struct inode *inode, struct file *file)
407 struct bnad_debug_info *debug = file->private_data;
412 file->private_data = NULL;
418 bnad_debugfs_buffer_release(struct inode *inode, struct file *file)
420 struct bnad_debug_info *debug = file->private_data;
427 file->private_data = NULL;
495 const struct bnad_debugfs_entry *file;
519 file = &bnad_debugfs_files[i];
521 debugfs_create_file(file->name,
522 file->mode,
525 file->fops);
529 file->name);