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
222 file->private_data = fnic_dbg_prt; in fnic_trace_debugfs_open()
228 * fnic_trace_debugfs_lseek - Seek through a debugfs file
229 * @file: The file pointer to seek through.
234 * This routine is the entry point for the debugfs lseek file operation.
237 * figures out what the new offset of the debugfs file will be and assigns
238 * that value to the f_pos field of @file.
244 static loff_t fnic_trace_debugfs_lseek(struct file *file, in fnic_trace_debugfs_lseek() argument
248 fnic_dbgfs_t *fnic_dbg_prt = file->private_data; in fnic_trace_debugfs_lseek()
249 return fixed_size_llseek(file, offset, howto, in fnic_trace_debugfs_lseek()
254 * fnic_trace_debugfs_read - Read a debugfs file
255 * @file: The file pointer to read from.
258 * @pos: The position in the file to start reading from.
262 * field of @file. It will start reading at @pos and copy up to @nbytes of
267 * less than @nbytes if the end of the file was reached).
269 static ssize_t fnic_trace_debugfs_read(struct file *file, in fnic_trace_debugfs_read() argument
274 fnic_dbgfs_t *fnic_dbg_prt = file->private_data; in fnic_trace_debugfs_read()
284 * debugfs file data
286 * @file: The file pointer that contains the buffer to release
290 * file was opened.
296 struct file *file) in fnic_trace_debugfs_release() argument
298 fnic_dbgfs_t *fnic_dbg_prt = file->private_data; in fnic_trace_debugfs_release()
318 * file system. If not already created, this routine will create the
319 * create file trace to log fnic trace buffer output into debugfs and
320 * it will also create file trace_enable to control enable/disable of
342 * When Debugfs is configured this routine removes debugfs file system
360 * file system. If not already created, this routine will create the
361 * create file trace to log fnic fc trace buffer output into debugfs and
362 * it will also create file fc_trace_enable to control enable/disable of
399 * When Debugfs is configured this routine removes debugfs file system
419 * fnic_reset_stats_open - Open the reset_stats file
421 * @file: The file pointer to attach the stats reset flag.
424 * This routine opens a debugsfs file reset_stats and stores i_private data
426 * file oprations.
431 static int fnic_reset_stats_open(struct inode *inode, struct file *file) in fnic_reset_stats_open() argument
441 file->private_data = debug; in fnic_reset_stats_open()
447 * fnic_reset_stats_read - Read a reset_stats debugfs file
448 * @filp: The file pointer to read from.
451 * @ppos: The position in the file to start reading from.
455 * and stores into local @buf. It will start reading file at @ppos and
461 static ssize_t fnic_reset_stats_read(struct file *file, in fnic_reset_stats_read() argument
465 struct stats_debug_info *debug = file->private_data; in fnic_reset_stats_read()
476 * fnic_reset_stats_write - Write to reset_stats debugfs file
477 * @filp: The file pointer to write from.
480 * @ppos: The position in the file to start writing to.
489 static ssize_t fnic_reset_stats_write(struct file *file, in fnic_reset_stats_write() argument
493 struct stats_debug_info *debug = file->private_data; in fnic_reset_stats_write()
542 * debugfs file data
544 * @file: The file pointer that contains the buffer to release
548 * file was opened.
554 struct file *file) in fnic_reset_stats_release() argument
556 struct stats_debug_info *debug = file->private_data; in fnic_reset_stats_release()
562 * fnic_stats_debugfs_open - Open the stats file for specific host
565 * @file: The file pointer to attach the specific host statistics.
568 * This routine opens a debugsfs file stats of specific host and print
575 struct file *file) in fnic_stats_debugfs_open() argument
596 file->private_data = debug; in fnic_stats_debugfs_open()
602 * fnic_stats_debugfs_read - Read a debugfs file
603 * @file: The file pointer to read from.
606 * @pos: The position in the file to start reading from.
610 * field of @file. It will start reading at @pos and copy up to @nbytes of
615 * less than @nbytes if the end of the file was reached).
617 static ssize_t fnic_stats_debugfs_read(struct file *file, in fnic_stats_debugfs_read() argument
622 struct stats_debug_info *debug = file->private_data; in fnic_stats_debugfs_read()
632 * debugfs file data
634 * @file: The file pointer that contains the buffer to release
638 * file was opened.
644 struct file *file) in fnic_stats_debugfs_release() argument
646 struct stats_debug_info *debug = file->private_data; in fnic_stats_debugfs_release()
668 * fnic_stats_init - Initialize stats struct and create stats file per fnic
671 * When Debugfs is configured this routine sets up the stats file per fnic
672 * It will create file stats and reset_stats under statistics/host# directory
701 * When Debugfs is configured this routine removes debugfs file system