Lines Matching full:file

35  * file system. If not already created, this routine will create the
65 * When Debugfs is configured this routine removes debugfs file system
82 * or fc_trace_clear debugfs file
83 * @filp: The file pointer to read from.
86 * @ppos: The position in the file to start reading from.
92 * It will start reading file at @ppos and
98 static ssize_t fnic_trace_ctrl_read(struct file *filp, in fnic_trace_ctrl_read()
114 pr_err("fnic: Cannot read to any debugfs file\n"); in fnic_trace_ctrl_read()
122 * fc_trace_clear debugfs file
123 * @filp: The file pointer to write from.
126 * @ppos: The position in the file to start writing to.
136 static ssize_t fnic_trace_ctrl_write(struct file *filp, in fnic_trace_ctrl_write()
165 pr_err("fnic: cannot write to any debugfs file\n"); in fnic_trace_ctrl_write()
182 * @file: The file pointer to attach the log output
185 * This routine is the entry point for the debugfs open file operation.
188 * the private_data field in @file.
195 struct file *file) in fnic_trace_debugfs_open() argument
223 file->private_data = fnic_dbg_prt; in fnic_trace_debugfs_open()
229 * fnic_trace_debugfs_lseek - Seek through a debugfs file
230 * @file: The file pointer to seek through.
235 * This routine is the entry point for the debugfs lseek file operation.
238 * figures out what the new offset of the debugfs file will be and assigns
239 * that value to the f_pos field of @file.
245 static loff_t fnic_trace_debugfs_lseek(struct file *file, in fnic_trace_debugfs_lseek() argument
249 fnic_dbgfs_t *fnic_dbg_prt = file->private_data; in fnic_trace_debugfs_lseek()
250 return fixed_size_llseek(file, offset, howto, in fnic_trace_debugfs_lseek()
255 * fnic_trace_debugfs_read - Read a debugfs file
256 * @file: The file pointer to read from.
259 * @pos: The position in the file to start reading from.
263 * field of @file. It will start reading at @pos and copy up to @nbytes of
268 * less than @nbytes if the end of the file was reached).
270 static ssize_t fnic_trace_debugfs_read(struct file *file, in fnic_trace_debugfs_read() argument
275 fnic_dbgfs_t *fnic_dbg_prt = file->private_data; in fnic_trace_debugfs_read()
285 * debugfs file data
287 * @file: The file pointer that contains the buffer to release
291 * file was opened.
297 struct file *file) in fnic_trace_debugfs_release() argument
299 fnic_dbgfs_t *fnic_dbg_prt = file->private_data; in fnic_trace_debugfs_release()
319 * file system. If not already created, this routine will create the
320 * create file trace to log fnic trace buffer output into debugfs and
321 * it will also create file trace_enable to control enable/disable of
343 * When Debugfs is configured this routine removes debugfs file system
361 * file system. If not already created, this routine will create the
362 * create file trace to log fnic fc trace buffer output into debugfs and
363 * it will also create file fc_trace_enable to control enable/disable of
400 * When Debugfs is configured this routine removes debugfs file system
420 * fnic_reset_stats_open - Open the reset_stats file
422 * @file: The file pointer to attach the stats reset flag.
425 * This routine opens a debugsfs file reset_stats and stores i_private data
427 * file oprations.
432 static int fnic_reset_stats_open(struct inode *inode, struct file *file) in fnic_reset_stats_open() argument
442 file->private_data = debug; in fnic_reset_stats_open()
448 * fnic_reset_stats_read - Read a reset_stats debugfs file
449 * @filp: The file pointer to read from.
452 * @ppos: The position in the file to start reading from.
456 * and stores into local @buf. It will start reading file at @ppos and
462 static ssize_t fnic_reset_stats_read(struct file *file, in fnic_reset_stats_read() argument
466 struct stats_debug_info *debug = file->private_data; in fnic_reset_stats_read()
477 * fnic_reset_stats_write - Write to reset_stats debugfs file
478 * @filp: The file pointer to write from.
481 * @ppos: The position in the file to start writing to.
490 static ssize_t fnic_reset_stats_write(struct file *file, in fnic_reset_stats_write() argument
494 struct stats_debug_info *debug = file->private_data; in fnic_reset_stats_write()
543 * debugfs file data
545 * @file: The file pointer that contains the buffer to release
549 * file was opened.
555 struct file *file) in fnic_reset_stats_release() argument
557 struct stats_debug_info *debug = file->private_data; in fnic_reset_stats_release()
563 * fnic_stats_debugfs_open - Open the stats file for specific host
566 * @file: The file pointer to attach the specific host statistics.
569 * This routine opens a debugsfs file stats of specific host and print
576 struct file *file) in fnic_stats_debugfs_open() argument
597 file->private_data = debug; in fnic_stats_debugfs_open()
603 * fnic_stats_debugfs_read - Read a debugfs file
604 * @file: The file pointer to read from.
607 * @pos: The position in the file to start reading from.
611 * field of @file. It will start reading at @pos and copy up to @nbytes of
616 * less than @nbytes if the end of the file was reached).
618 static ssize_t fnic_stats_debugfs_read(struct file *file, in fnic_stats_debugfs_read() argument
623 struct stats_debug_info *debug = file->private_data; in fnic_stats_debugfs_read()
633 * debugfs file data
635 * @file: The file pointer that contains the buffer to release
639 * file was opened.
645 struct file *file) in fnic_stats_debugfs_release() argument
647 struct stats_debug_info *debug = file->private_data; in fnic_stats_debugfs_release()
669 * fnic_stats_init - Initialize stats struct and create stats file per fnic
672 * When Debugfs is configured this routine sets up the stats file per fnic
673 * It will create file stats and reset_stats under statistics/host# directory
702 * When Debugfs is configured this routine removes debugfs file system