Lines Matching full:file

49  * file system. If not already created, this routine will create the
78 * When Debugfs is configured this routine removes debugfs file system
96 * or fc_trace_clear debugfs file
97 * @filp: The file pointer to read from.
100 * @ppos: The position in the file to start reading from.
106 * It will start reading file at @ppos and
112 static ssize_t fnic_trace_ctrl_read(struct file *filp, in fnic_trace_ctrl_read()
128 pr_err("fnic: Cannot read to any debugfs file\n"); in fnic_trace_ctrl_read()
136 * fc_trace_clear debugfs file
137 * @filp: The file pointer to write from.
140 * @ppos: The position in the file to start writing to.
150 static ssize_t fnic_trace_ctrl_write(struct file *filp, in fnic_trace_ctrl_write()
179 pr_err("fnic: cannot write to any debugfs file\n"); in fnic_trace_ctrl_write()
196 * @file: The file pointer to attach the log output
199 * This routine is the entry point for the debugfs open file operation.
202 * the private_data field in @file.
209 struct file *file) in fnic_trace_debugfs_open() argument
241 file->private_data = fnic_dbg_prt; in fnic_trace_debugfs_open()
247 * fnic_trace_debugfs_lseek - Seek through a debugfs file
248 * @file: The file pointer to seek through.
253 * This routine is the entry point for the debugfs lseek file operation.
256 * figures out what the new offset of the debugfs file will be and assigns
257 * that value to the f_pos field of @file.
263 static loff_t fnic_trace_debugfs_lseek(struct file *file, in fnic_trace_debugfs_lseek() argument
267 fnic_dbgfs_t *fnic_dbg_prt = file->private_data; in fnic_trace_debugfs_lseek()
268 return fixed_size_llseek(file, offset, howto, in fnic_trace_debugfs_lseek()
273 * fnic_trace_debugfs_read - Read a debugfs file
274 * @file: The file pointer to read from.
277 * @pos: The position in the file to start reading from.
281 * field of @file. It will start reading at @pos and copy up to @nbytes of
286 * less than @nbytes if the end of the file was reached).
288 static ssize_t fnic_trace_debugfs_read(struct file *file, in fnic_trace_debugfs_read() argument
293 fnic_dbgfs_t *fnic_dbg_prt = file->private_data; in fnic_trace_debugfs_read()
303 * debugfs file data
305 * @file: The file pointer that contains the buffer to release
309 * file was opened.
315 struct file *file) in fnic_trace_debugfs_release() argument
317 fnic_dbgfs_t *fnic_dbg_prt = file->private_data; in fnic_trace_debugfs_release()
337 * file system. If not already created, this routine will create the
338 * create file trace to log fnic trace buffer output into debugfs and
339 * it will also create file trace_enable to control enable/disable of
361 * When Debugfs is configured this routine removes debugfs file system
379 * file system. If not already created, this routine will create the
380 * create file trace to log fnic fc trace buffer output into debugfs and
381 * it will also create file fc_trace_enable to control enable/disable of
418 * When Debugfs is configured this routine removes debugfs file system
438 * fnic_reset_stats_open - Open the reset_stats file
440 * @file: The file pointer to attach the stats reset flag.
443 * This routine opens a debugsfs file reset_stats and stores i_private data
445 * file oprations.
450 static int fnic_reset_stats_open(struct inode *inode, struct file *file) in fnic_reset_stats_open() argument
460 file->private_data = debug; in fnic_reset_stats_open()
466 * fnic_reset_stats_read - Read a reset_stats debugfs file
467 * @filp: The file pointer to read from.
470 * @ppos: The position in the file to start reading from.
474 * and stores into local @buf. It will start reading file at @ppos and
480 static ssize_t fnic_reset_stats_read(struct file *file, in fnic_reset_stats_read() argument
484 struct stats_debug_info *debug = file->private_data; in fnic_reset_stats_read()
495 * fnic_reset_stats_write - Write to reset_stats debugfs file
496 * @filp: The file pointer to write from.
499 * @ppos: The position in the file to start writing to.
508 static ssize_t fnic_reset_stats_write(struct file *file, in fnic_reset_stats_write() argument
512 struct stats_debug_info *debug = file->private_data; in fnic_reset_stats_write()
561 * debugfs file data
563 * @file: The file pointer that contains the buffer to release
567 * file was opened.
573 struct file *file) in fnic_reset_stats_release() argument
575 struct stats_debug_info *debug = file->private_data; in fnic_reset_stats_release()
581 * fnic_stats_debugfs_open - Open the stats file for specific host
584 * @file: The file pointer to attach the specific host statistics.
587 * This routine opens a debugsfs file stats of specific host and print
594 struct file *file) in fnic_stats_debugfs_open() argument
615 file->private_data = debug; in fnic_stats_debugfs_open()
621 * fnic_stats_debugfs_read - Read a debugfs file
622 * @file: The file pointer to read from.
625 * @pos: The position in the file to start reading from.
629 * field of @file. It will start reading at @pos and copy up to @nbytes of
634 * less than @nbytes if the end of the file was reached).
636 static ssize_t fnic_stats_debugfs_read(struct file *file, in fnic_stats_debugfs_read() argument
641 struct stats_debug_info *debug = file->private_data; in fnic_stats_debugfs_read()
651 * debugfs file data
653 * @file: The file pointer that contains the buffer to release
657 * file was opened.
663 struct file *file) in fnic_stats_debugfs_release() argument
665 struct stats_debug_info *debug = file->private_data; in fnic_stats_debugfs_release()
687 * fnic_stats_init - Initialize stats struct and create stats file per fnic
690 * When Debugfs is configured this routine sets up the stats file per fnic
691 * It will create file stats and reset_stats under statistics/host# directory
720 * When Debugfs is configured this routine removes debugfs file system