Lines Matching full:file
49 * file system. If not already created, this routine will create the
79 * When Debugfs is configured this routine removes debugfs file system
97 * or fc_trace_clear debugfs file
98 * @filp: The file pointer to read from.
101 * @ppos: The position in the file to start reading from.
107 * It will start reading file at @ppos and
113 static ssize_t fnic_trace_ctrl_read(struct file *filp, in fnic_trace_ctrl_read()
129 pr_err("fnic: Cannot read to any debugfs file\n"); in fnic_trace_ctrl_read()
137 * fc_trace_clear debugfs file
138 * @filp: The file pointer to write from.
141 * @ppos: The position in the file to start writing to.
151 static ssize_t fnic_trace_ctrl_write(struct file *filp, in fnic_trace_ctrl_write()
180 pr_err("fnic: cannot write to any debugfs file\n"); in fnic_trace_ctrl_write()
197 * @file: The file pointer to attach the log output
200 * This routine is the entry point for the debugfs open file operation.
203 * the private_data field in @file.
210 struct file *file) in fnic_trace_debugfs_open() argument
242 file->private_data = fnic_dbg_prt; in fnic_trace_debugfs_open()
248 * fnic_trace_debugfs_lseek - Seek through a debugfs file
249 * @file: The file pointer to seek through.
254 * This routine is the entry point for the debugfs lseek file operation.
257 * figures out what the new offset of the debugfs file will be and assigns
258 * that value to the f_pos field of @file.
264 static loff_t fnic_trace_debugfs_lseek(struct file *file, in fnic_trace_debugfs_lseek() argument
268 fnic_dbgfs_t *fnic_dbg_prt = file->private_data; in fnic_trace_debugfs_lseek()
269 return fixed_size_llseek(file, offset, howto, in fnic_trace_debugfs_lseek()
274 * fnic_trace_debugfs_read - Read a debugfs file
275 * @file: The file pointer to read from.
278 * @pos: The position in the file to start reading from.
282 * field of @file. It will start reading at @pos and copy up to @nbytes of
287 * less than @nbytes if the end of the file was reached).
289 static ssize_t fnic_trace_debugfs_read(struct file *file, in fnic_trace_debugfs_read() argument
294 fnic_dbgfs_t *fnic_dbg_prt = file->private_data; in fnic_trace_debugfs_read()
304 * debugfs file data
306 * @file: The file pointer that contains the buffer to release
310 * file was opened.
316 struct file *file) in fnic_trace_debugfs_release() argument
318 fnic_dbgfs_t *fnic_dbg_prt = file->private_data; in fnic_trace_debugfs_release()
338 * file system. If not already created, this routine will create the
339 * create file trace to log fnic trace buffer output into debugfs and
340 * it will also create file trace_enable to control enable/disable of
362 * When Debugfs is configured this routine removes debugfs file system
380 * file system. If not already created, this routine will create the
381 * create file trace to log fnic fc trace buffer output into debugfs and
382 * it will also create file fc_trace_enable to control enable/disable of
419 * When Debugfs is configured this routine removes debugfs file system
439 * fnic_reset_stats_open - Open the reset_stats file
441 * @file: The file pointer to attach the stats reset flag.
444 * This routine opens a debugsfs file reset_stats and stores i_private data
446 * file oprations.
451 static int fnic_reset_stats_open(struct inode *inode, struct file *file) in fnic_reset_stats_open() argument
461 file->private_data = debug; in fnic_reset_stats_open()
467 * fnic_reset_stats_read - Read a reset_stats debugfs file
468 * @filp: The file pointer to read from.
471 * @ppos: The position in the file to start reading from.
475 * and stores into local @buf. It will start reading file at @ppos and
481 static ssize_t fnic_reset_stats_read(struct file *file, in fnic_reset_stats_read() argument
485 struct stats_debug_info *debug = file->private_data; in fnic_reset_stats_read()
496 * fnic_reset_stats_write - Write to reset_stats debugfs file
497 * @filp: The file pointer to write from.
500 * @ppos: The position in the file to start writing to.
509 static ssize_t fnic_reset_stats_write(struct file *file, in fnic_reset_stats_write() argument
513 struct stats_debug_info *debug = file->private_data; in fnic_reset_stats_write()
562 * debugfs file data
564 * @file: The file pointer that contains the buffer to release
568 * file was opened.
574 struct file *file) in fnic_reset_stats_release() argument
576 struct stats_debug_info *debug = file->private_data; in fnic_reset_stats_release()
582 * fnic_stats_debugfs_open - Open the stats file for specific host
585 * @file: The file pointer to attach the specific host statistics.
588 * This routine opens a debugsfs file stats of specific host and print
595 struct file *file) in fnic_stats_debugfs_open() argument
616 file->private_data = debug; in fnic_stats_debugfs_open()
622 * fnic_stats_debugfs_read - Read a debugfs file
623 * @file: The file pointer to read from.
626 * @pos: The position in the file to start reading from.
630 * field of @file. It will start reading at @pos and copy up to @nbytes of
635 * less than @nbytes if the end of the file was reached).
637 static ssize_t fnic_stats_debugfs_read(struct file *file, in fnic_stats_debugfs_read() argument
642 struct stats_debug_info *debug = file->private_data; in fnic_stats_debugfs_read()
652 * debugfs file data
654 * @file: The file pointer that contains the buffer to release
658 * file was opened.
664 struct file *file) in fnic_stats_debugfs_release() argument
666 struct stats_debug_info *debug = file->private_data; in fnic_stats_debugfs_release()
688 * fnic_stats_init - Initialize stats struct and create stats file per fnic
691 * When Debugfs is configured this routine sets up the stats file per fnic
692 * It will create file stats and reset_stats under statistics/host# directory
721 * When Debugfs is configured this routine removes debugfs file system