Lines Matching full:file
35 * file system. If not already created, this routine will create the
64 * When Debugfs is configured this routine removes debugfs file system
81 * or fc_trace_clear debugfs file
82 * @filp: The file pointer to read from.
85 * @ppos: The position in the file to start reading from.
91 * It will start reading file at @ppos and
97 static ssize_t fnic_trace_ctrl_read(struct file *filp, in fnic_trace_ctrl_read()
113 pr_err("fnic: Cannot read to any debugfs file\n"); in fnic_trace_ctrl_read()
121 * fc_trace_clear debugfs file
122 * @filp: The file pointer to write from.
125 * @ppos: The position in the file to start writing to.
135 static ssize_t fnic_trace_ctrl_write(struct file *filp, in fnic_trace_ctrl_write()
164 pr_err("fnic: cannot write to any debugfs file\n"); in fnic_trace_ctrl_write()
181 * @file: The file pointer to attach the log output
184 * This routine is the entry point for the debugfs open file operation.
187 * the private_data field in @file.
194 struct file *file) in fnic_trace_debugfs_open() argument
226 file->private_data = fnic_dbg_prt; in fnic_trace_debugfs_open()
232 * fnic_trace_debugfs_lseek - Seek through a debugfs file
233 * @file: The file pointer to seek through.
238 * This routine is the entry point for the debugfs lseek file operation.
241 * figures out what the new offset of the debugfs file will be and assigns
242 * that value to the f_pos field of @file.
248 static loff_t fnic_trace_debugfs_lseek(struct file *file, in fnic_trace_debugfs_lseek() argument
252 fnic_dbgfs_t *fnic_dbg_prt = file->private_data; in fnic_trace_debugfs_lseek()
253 return fixed_size_llseek(file, offset, howto, in fnic_trace_debugfs_lseek()
258 * fnic_trace_debugfs_read - Read a debugfs file
259 * @file: The file pointer to read from.
262 * @pos: The position in the file to start reading from.
266 * field of @file. It will start reading at @pos and copy up to @nbytes of
271 * less than @nbytes if the end of the file was reached).
273 static ssize_t fnic_trace_debugfs_read(struct file *file, in fnic_trace_debugfs_read() argument
278 fnic_dbgfs_t *fnic_dbg_prt = file->private_data; in fnic_trace_debugfs_read()
288 * debugfs file data
290 * @file: The file pointer that contains the buffer to release
294 * file was opened.
300 struct file *file) in fnic_trace_debugfs_release() argument
302 fnic_dbgfs_t *fnic_dbg_prt = file->private_data; in fnic_trace_debugfs_release()
322 * file system. If not already created, this routine will create the
323 * create file trace to log fnic trace buffer output into debugfs and
324 * it will also create file trace_enable to control enable/disable of
346 * When Debugfs is configured this routine removes debugfs file system
364 * file system. If not already created, this routine will create the
365 * create file trace to log fnic fc trace buffer output into debugfs and
366 * it will also create file fc_trace_enable to control enable/disable of
403 * When Debugfs is configured this routine removes debugfs file system
423 * fnic_reset_stats_open - Open the reset_stats file
425 * @file: The file pointer to attach the stats reset flag.
428 * This routine opens a debugsfs file reset_stats and stores i_private data
430 * file oprations.
435 static int fnic_reset_stats_open(struct inode *inode, struct file *file) in fnic_reset_stats_open() argument
445 file->private_data = debug; in fnic_reset_stats_open()
451 * fnic_reset_stats_read - Read a reset_stats debugfs file
452 * @filp: The file pointer to read from.
455 * @ppos: The position in the file to start reading from.
459 * and stores into local @buf. It will start reading file at @ppos and
465 static ssize_t fnic_reset_stats_read(struct file *file, in fnic_reset_stats_read() argument
469 struct stats_debug_info *debug = file->private_data; in fnic_reset_stats_read()
480 * fnic_reset_stats_write - Write to reset_stats debugfs file
481 * @filp: The file pointer to write from.
484 * @ppos: The position in the file to start writing to.
493 static ssize_t fnic_reset_stats_write(struct file *file, in fnic_reset_stats_write() argument
497 struct stats_debug_info *debug = file->private_data; in fnic_reset_stats_write()
546 * debugfs file data
548 * @file: The file pointer that contains the buffer to release
552 * file was opened.
558 struct file *file) in fnic_reset_stats_release() argument
560 struct stats_debug_info *debug = file->private_data; in fnic_reset_stats_release()
566 * fnic_stats_debugfs_open - Open the stats file for specific host
569 * @file: The file pointer to attach the specific host statistics.
572 * This routine opens a debugsfs file stats of specific host and print
579 struct file *file) in fnic_stats_debugfs_open() argument
600 file->private_data = debug; in fnic_stats_debugfs_open()
606 * fnic_stats_debugfs_read - Read a debugfs file
607 * @file: The file pointer to read from.
610 * @pos: The position in the file to start reading from.
614 * field of @file. It will start reading at @pos and copy up to @nbytes of
619 * less than @nbytes if the end of the file was reached).
621 static ssize_t fnic_stats_debugfs_read(struct file *file, in fnic_stats_debugfs_read() argument
626 struct stats_debug_info *debug = file->private_data; in fnic_stats_debugfs_read()
636 * debugfs file data
638 * @file: The file pointer that contains the buffer to release
642 * file was opened.
648 struct file *file) in fnic_stats_debugfs_release() argument
650 struct stats_debug_info *debug = file->private_data; in fnic_stats_debugfs_release()
672 * fnic_stats_init - Initialize stats struct and create stats file per fnic
675 * When Debugfs is configured this routine sets up the stats file per fnic
676 * It will create file stats and reset_stats under statistics/host# directory
705 * When Debugfs is configured this routine removes debugfs file system