Lines Matching full:file

38  * file system. If not already created, this routine will create the
68 * When Debugfs is configured this routine removes debugfs file system
85 * or fc_trace_clear debugfs file
86 * @filp: The file pointer to read from.
89 * @ppos: The position in the file to start reading from.
95 * It will start reading file at @ppos and
101 static ssize_t fnic_trace_ctrl_read(struct file *filp, in fnic_trace_ctrl_read()
117 pr_err("fnic: Cannot read to any debugfs file\n"); in fnic_trace_ctrl_read()
125 * fc_trace_clear debugfs file
126 * @filp: The file pointer to write from.
129 * @ppos: The position in the file to start writing to.
139 static ssize_t fnic_trace_ctrl_write(struct file *filp, in fnic_trace_ctrl_write()
168 pr_err("fnic: cannot write to any debugfs file\n"); in fnic_trace_ctrl_write()
185 * @file: The file pointer to attach the log output
188 * This routine is the entry point for the debugfs open file operation.
191 * the private_data field in @file.
198 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
601 file->private_data = debug; in fnic_stats_debugfs_open()
607 * fnic_stats_debugfs_read - Read a debugfs file
608 * @file: The file pointer to read from.
611 * @pos: The position in the file to start reading from.
615 * field of @file. It will start reading at @pos and copy up to @nbytes of
620 * less than @nbytes if the end of the file was reached).
622 static ssize_t fnic_stats_debugfs_read(struct file *file, in fnic_stats_debugfs_read() argument
627 struct stats_debug_info *debug = file->private_data; in fnic_stats_debugfs_read()
637 * debugfs file data
639 * @file: The file pointer that contains the buffer to release
643 * file was opened.
649 struct file *file) in fnic_stats_debugfs_release() argument
651 struct stats_debug_info *debug = file->private_data; in fnic_stats_debugfs_release()
673 * fnic_stats_init - Initialize stats struct and create stats file per fnic
676 * When Debugfs is configured this routine sets up the stats file per fnic
677 * It will create file stats and reset_stats under statistics/host# directory
705 * When Debugfs is configured this routine removes debugfs file system