Lines Matching refs:file
2 * This file is part of the Emulex Linux Device Driver for *
19 * more details, a copy of which can be found in the file COPYING *
73 * This is an ACSII readable file that contains a trace of the last
84 * This is an ACSII readable file that contains a trace of the last
1924 * @file: The file pointer to attach the log output.
1927 * This routine is the entry point for the debugfs open file operation. It gets
1930 * returns a pointer to that log in the private_data field in @file.
1937 lpfc_debugfs_disc_trc_open(struct inode *inode, struct file *file)
1964 file->private_data = debug;
1974 * @file: The file pointer to attach the log output.
1977 * This routine is the entry point for the debugfs open file operation. It gets
1980 * returns a pointer to that log in the private_data field in @file.
1987 lpfc_debugfs_slow_ring_trc_open(struct inode *inode, struct file *file)
2014 file->private_data = debug;
2024 * @file: The file pointer to attach the log output.
2027 * This routine is the entry point for the debugfs open file operation. It gets
2030 * returns a pointer to that log in the private_data field in @file.
2037 lpfc_debugfs_hbqinfo_open(struct inode *inode, struct file *file)
2056 file->private_data = debug;
2066 * @file: The file pointer to attach the log output.
2069 * This routine is the entry point for the debugfs open file operation. It gets
2072 * returns a pointer to that log in the private_data field in @file.
2079 lpfc_debugfs_multixripools_open(struct inode *inode, struct file *file)
2100 file->private_data = debug;
2111 * @file: The file pointer to attach the log output.
2114 * This routine is the entry point for the debugfs open file operation. It gets
2117 * returns a pointer to that log in the private_data field in @file.
2124 lpfc_debugfs_lockstat_open(struct inode *inode, struct file *file)
2143 file->private_data = debug;
2151 lpfc_debugfs_lockstat_write(struct file *file, const char __user *buf,
2154 struct lpfc_debug *debug = file->private_data;
2222 lpfc_debugfs_ras_log_release(struct inode *inode, struct file *file)
2224 struct lpfc_debug *debug = file->private_data;
2235 * @file: The file pointer to attach the log output.
2238 * This routine is the entry point for the debugfs open file operation. It gets
2241 * returns a pointer to that log in the private_data field in @file.
2248 lpfc_debugfs_ras_log_open(struct inode *inode, struct file *file)
2280 file->private_data = debug;
2295 * @file: The file pointer to attach the log output.
2298 * This routine is the entry point for the debugfs open file operation. It gets
2301 * returns a pointer to that log in the private_data field in @file.
2308 lpfc_debugfs_dumpHBASlim_open(struct inode *inode, struct file *file)
2327 file->private_data = debug;
2337 * @file: The file pointer to attach the log output.
2340 * This routine is the entry point for the debugfs open file operation. It gets
2343 * returns a pointer to that log in the private_data field in @file.
2350 lpfc_debugfs_dumpHostSlim_open(struct inode *inode, struct file *file)
2369 file->private_data = debug;
2377 lpfc_debugfs_dif_err_read(struct file *file, char __user *buf,
2380 struct dentry *dent = file->f_path.dentry;
2381 struct lpfc_hba *phba = file->private_data;
2419 lpfc_debugfs_dif_err_write(struct file *file, const char __user *buf,
2422 struct dentry *dent = file->f_path.dentry;
2423 struct lpfc_hba *phba = file->private_data;
2469 lpfc_debugfs_dif_err_release(struct inode *inode, struct file *file)
2475 * lpfc_debugfs_nodelist_open - Open the nodelist debugfs file
2477 * @file: The file pointer to attach the log output.
2480 * This routine is the entry point for the debugfs open file operation. It gets
2483 * returns a pointer to that log in the private_data field in @file.
2490 lpfc_debugfs_nodelist_open(struct inode *inode, struct file *file)
2509 file->private_data = debug;
2517 * lpfc_debugfs_lseek - Seek through a debugfs file
2518 * @file: The file pointer to seek through.
2523 * This routine is the entry point for the debugfs lseek file operation. The
2526 * what the new offset of the debugfs file will be and assigns that value to the
2527 * f_pos field of @file.
2534 lpfc_debugfs_lseek(struct file *file, loff_t off, int whence)
2536 struct lpfc_debug *debug = file->private_data;
2537 return fixed_size_llseek(file, off, whence, debug->len);
2541 * lpfc_debugfs_read - Read a debugfs file
2542 * @file: The file pointer to read from.
2545 * @ppos: The position in the file to start reading from.
2549 * field of @file. It will start reading at @ppos and copy up to @nbytes of
2554 * than @nbytes if the end of the file was reached) or a negative error value.
2557 lpfc_debugfs_read(struct file *file, char __user *buf,
2560 struct lpfc_debug *debug = file->private_data;
2567 * lpfc_debugfs_release - Release the buffer used to store debugfs file data
2569 * @file: The file pointer that contains the buffer to release.
2572 * This routine frees the buffer that was allocated when the debugfs file was
2579 lpfc_debugfs_release(struct inode *inode, struct file *file)
2581 struct lpfc_debug *debug = file->private_data;
2591 * @file: The file pointer to read from.
2594 * @ppos: The position in the file to start reading from.
2605 lpfc_debugfs_multixripools_write(struct file *file, const char __user *buf,
2608 struct lpfc_debug *debug = file->private_data;
2656 lpfc_debugfs_nvmestat_open(struct inode *inode, struct file *file)
2677 file->private_data = debug;
2685 lpfc_debugfs_nvmestat_write(struct file *file, const char __user *buf,
2688 struct lpfc_debug *debug = file->private_data;
2744 lpfc_debugfs_scsistat_open(struct inode *inode, struct file *file)
2765 file->private_data = debug;
2773 lpfc_debugfs_scsistat_write(struct file *file, const char __user *buf,
2776 struct lpfc_debug *debug = file->private_data;
2798 lpfc_debugfs_ioktime_open(struct inode *inode, struct file *file)
2819 file->private_data = debug;
2827 lpfc_debugfs_ioktime_write(struct file *file, const char __user *buf,
2830 struct lpfc_debug *debug = file->private_data;
2925 lpfc_debugfs_nvmeio_trc_open(struct inode *inode, struct file *file)
2946 file->private_data = debug;
2954 lpfc_debugfs_nvmeio_trc_write(struct file *file, const char __user *buf,
2957 struct lpfc_debug *debug = file->private_data;
3030 lpfc_debugfs_hdwqstat_open(struct inode *inode, struct file *file)
3051 file->private_data = debug;
3059 lpfc_debugfs_hdwqstat_write(struct file *file, const char __user *buf,
3062 struct lpfc_debug *debug = file->private_data;
3122 * iDiag debugfs file access methods
3181 * @file: The file pointer to attach the file operation.
3184 * This routine is the entry point for the debugfs open file operation. It
3186 * allocates buffer for the file operation, performs the necessary PCI config
3189 * @file.
3196 lpfc_idiag_open(struct inode *inode, struct file *file)
3206 file->private_data = debug;
3212 * lpfc_idiag_release - Release idiag access file operation
3214 * @file: The file pointer that contains the buffer to release.
3217 * This routine is the generic release routine for the idiag access file
3218 * operation, it frees the buffer that was allocated when the debugfs file
3225 lpfc_idiag_release(struct inode *inode, struct file *file)
3227 struct lpfc_debug *debug = file->private_data;
3229 /* Free the buffers to the file operation */
3237 * lpfc_idiag_cmd_release - Release idiag cmd access file operation
3239 * @file: The file pointer that contains the buffer to release.
3242 * This routine frees the buffer that was allocated when the debugfs file
3250 lpfc_idiag_cmd_release(struct inode *inode, struct file *file)
3252 struct lpfc_debug *debug = file->private_data;
3269 /* Free the buffers to the file operation */
3278 * @file: The file pointer to read from.
3281 * @ppos: The position in the file to start reading from.
3292 * than @nbytes if the end of the file was reached) or a negative error value.
3295 lpfc_idiag_pcicfg_read(struct file *file, char __user *buf, size_t nbytes,
3298 struct lpfc_debug *debug = file->private_data;
3399 * @file: The file pointer to read from.
3402 * @ppos: The position in the file to start reading from.
3416 lpfc_idiag_pcicfg_write(struct file *file, const char __user *buf,
3419 struct lpfc_debug *debug = file->private_data;
3576 * @file: The file pointer to read from.
3579 * @ppos: The position in the file to start reading from.
3587 * than @nbytes if the end of the file was reached) or a negative error value.
3590 lpfc_idiag_baracc_read(struct file *file, char __user *buf, size_t nbytes,
3593 struct lpfc_debug *debug = file->private_data;
3723 * @file: The file pointer to read from.
3726 * @ppos: The position in the file to start reading from.
3741 lpfc_idiag_baracc_write(struct file *file, const char __user *buf,
3744 struct lpfc_debug *debug = file->private_data;
4029 * @file: The file pointer to read from.
4032 * @ppos: The position in the file to start reading from.
4043 * than @nbytes if the end of the file was reached) or a negative error value.
4046 lpfc_idiag_queinfo_read(struct file *file, char __user *buf, size_t nbytes,
4049 struct lpfc_debug *debug = file->private_data;
4239 * @file: The file pointer to read from.
4242 * @ppos: The position in the file to start reading from.
4252 * than @nbytes if the end of the file was reached) or a negative error value.
4255 lpfc_idiag_queacc_read(struct file *file, char __user *buf, size_t nbytes,
4258 struct lpfc_debug *debug = file->private_data;
4315 * @file: The file pointer to read from.
4318 * @ppos: The position in the file to start reading from.
4332 lpfc_idiag_queacc_write(struct file *file, const char __user *buf,
4335 struct lpfc_debug *debug = file->private_data;
4613 * @file: The file pointer to read from.
4616 * @ppos: The position in the file to start reading from.
4626 * than @nbytes if the end of the file was reached) or a negative error value.
4629 lpfc_idiag_drbacc_read(struct file *file, char __user *buf, size_t nbytes,
4632 struct lpfc_debug *debug = file->private_data;
4668 * @file: The file pointer to read from.
4671 * @ppos: The position in the file to start reading from.
4685 lpfc_idiag_drbacc_write(struct file *file, const char __user *buf,
4688 struct lpfc_debug *debug = file->private_data;
4833 * @file: The file pointer to read from.
4836 * @ppos: The position in the file to start reading from.
4844 * than @nbytes if the end of the file was reached) or a negative error value.
4847 lpfc_idiag_ctlacc_read(struct file *file, char __user *buf, size_t nbytes,
4850 struct lpfc_debug *debug = file->private_data;
4886 * @file: The file pointer to read from.
4889 * @ppos: The position in the file to start reading from.
4900 lpfc_idiag_ctlacc_write(struct file *file, const char __user *buf,
4903 struct lpfc_debug *debug = file->private_data;
5000 * than @nbytes if the end of the file was reached) or a negative error value.
5027 * @file: The file pointer to read from.
5030 * @ppos: The position in the file to start reading from.
5038 * than @nbytes if the end of the file was reached) or a negative error value.
5041 lpfc_idiag_mbxacc_read(struct file *file, char __user *buf, size_t nbytes,
5044 struct lpfc_debug *debug = file->private_data;
5072 * @file: The file pointer to read from.
5075 * @ppos: The position in the file to start reading from.
5086 lpfc_idiag_mbxacc_write(struct file *file, const char __user *buf,
5089 struct lpfc_debug *debug = file->private_data;
5346 * @file: The file pointer to read from.
5349 * @ppos: The position in the file to start reading from.
5360 lpfc_idiag_extacc_write(struct file *file, const char __user *buf,
5363 struct lpfc_debug *debug = file->private_data;
5392 * @file: The file pointer to read from.
5395 * @ppos: The position in the file to start reading from.
5403 * than @nbytes if the end of the file was reached) or a negative error value.
5406 lpfc_idiag_extacc_read(struct file *file, char __user *buf, size_t nbytes,
5409 struct lpfc_debug *debug = file->private_data;
5440 lpfc_cgn_buffer_open(struct inode *inode, struct file *file)
5456 file->private_data = debug;
5464 lpfc_cgn_buffer_read(struct file *file, char __user *buf, size_t nbytes,
5467 struct lpfc_debug *debug = file->private_data;
5521 lpfc_cgn_buffer_release(struct inode *inode, struct file *file)
5523 struct lpfc_debug *debug = file->private_data;
5532 lpfc_rx_monitor_open(struct inode *inode, struct file *file)
5548 file->private_data = debug;
5556 lpfc_rx_monitor_read(struct file *file, char __user *buf, size_t nbytes,
5559 struct lpfc_rx_monitor_debug *debug = file->private_data;
5577 lpfc_rx_monitor_release(struct inode *inode, struct file *file)
5579 struct lpfc_rx_monitor_debug *debug = file->private_data;
6035 * When Debugfs is configured this routine sets up the lpfc debugfs file system.
6038 * also create each file used to access lpfc specific debugfs information.
6486 * When Debugfs is configured this routine removes debugfs file system elements