Lines Matching defs:file

27  * To access the interface, debugfs file system should be mounted
50 bfad_debugfs_open_drvtrc(struct inode *inode, struct file *file)
63 file->private_data = debug;
69 bfad_debugfs_open_fwtrc(struct inode *inode, struct file *file)
107 file->private_data = fw_debug;
113 bfad_debugfs_open_fwsave(struct inode *inode, struct file *file)
151 file->private_data = fw_debug;
157 bfad_debugfs_open_reg(struct inode *inode, struct file *file)
167 file->private_data = reg_debug;
172 /* Changes the current file position */
174 bfad_debugfs_lseek(struct file *file, loff_t offset, int orig)
176 struct bfad_debug_info *debug = file->private_data;
177 return fixed_size_llseek(file, offset, orig,
182 bfad_debugfs_read(struct file *file, char __user *buf,
185 struct bfad_debug_info *debug = file->private_data;
225 bfad_debugfs_read_regrd(struct file *file, char __user *buf,
228 struct bfad_debug_info *regrd_debug = file->private_data;
249 bfad_debugfs_write_regrd(struct file *file, const char __user *buf,
252 struct bfad_debug_info *regrd_debug = file->private_data;
326 bfad_debugfs_write_regwr(struct file *file, const char __user *buf,
329 struct bfad_debug_info *debug = file->private_data;
382 bfad_debugfs_release(struct inode *inode, struct file *file)
384 struct bfad_debug_info *debug = file->private_data;
389 file->private_data = NULL;
395 bfad_debugfs_release_fwtrc(struct inode *inode, struct file *file)
397 struct bfad_debug_info *fw_debug = file->private_data;
405 file->private_data = NULL;
472 const struct bfad_debugfs_entry *file;
505 file = &bfad_debugfs_files[i];
507 debugfs_create_file(file->name,
508 file->mode,
511 file->fops);
515 bfad->pci_name, file->name);