Lines Matching refs:vport

64  * where Y is the vport VPI on that hba
66 * Debugging services available per vport:
69 * lpfc_debugfs_max_disc_trc events that happened on a specific vport.
74 * EACH vport. X MUST also be a power of 2.
117 * @vport: The vport to gather the log info from.
122 * This routine gathers the lpfc discovery debugfs data from the @vport and
135 lpfc_debugfs_disc_trc_data(struct lpfc_vport *vport, char *buf, int size)
150 index = (atomic_read(&vport->disc_trc_cnt) + 1) &
153 dtp = vport->disc_trc + i;
164 dtp = vport->disc_trc + i;
514 * @vport: The vport to gather target node info from.
519 * This routine dumps the current target node list associated with @vport to
528 lpfc_debugfs_nodelist_data(struct lpfc_vport *vport, char *buf, int size)
532 struct Scsi_Host *shost = lpfc_shost_from_vport(vport);
539 list_for_each_entry(ndlp, &vport->fc_nodes, nlp_listp) {
620 * @vport: The vport to associate this trace string with for retrieval.
629 * discovery trace buffer associated with @vport. Only entries with a @mask that
635 lpfc_debugfs_disc_trc(struct lpfc_vport *vport, int mask, char *fmt,
646 !vport || !vport->disc_trc)
649 index = atomic_inc_return(&vport->disc_trc_cnt) &
651 dtp = vport->disc_trc + index;
672 * discovery trace buffer associated with @vport. @fmt, @data1, @data2, and
703 * @inode: The inode pointer that contains a vport pointer.
708 * the vport from the i_private field in @inode, allocates the necessary buffer
709 * for the log, fills the buffer from the in-memory log for this vport, and then
719 struct lpfc_vport *vport = inode->i_private;
743 debug->len = lpfc_debugfs_disc_trc_data(vport, debug->buffer, size);
753 * @inode: The inode pointer that contains a vport pointer.
758 * the vport from the i_private field in @inode, allocates the necessary buffer
759 * for the log, fills the buffer from the in-memory log for this vport, and then
803 * @inode: The inode pointer that contains a vport pointer.
808 * the vport from the i_private field in @inode, allocates the necessary buffer
809 * for the log, fills the buffer from the in-memory log for this vport, and then
845 * @inode: The inode pointer that contains a vport pointer.
850 * the vport from the i_private field in @inode, allocates the necessary buffer
851 * for the log, fills the buffer from the in-memory log for this vport, and then
887 * @inode: The inode pointer that contains a vport pointer.
892 * the vport from the i_private field in @inode, allocates the necessary buffer
893 * for the log, fills the buffer from the in-memory log for this vport, and then
1108 * @inode: The inode pointer that contains a vport pointer.
1113 * the vport from the i_private field in @inode, allocates the necessary buffer
1114 * for the log, fills the buffer from the in-memory log for this vport, and then
1124 struct lpfc_vport *vport = inode->i_private;
1139 debug->len = lpfc_debugfs_nodelist_data(vport, debug->buffer,
1200 * @inode: The inode pointer that contains a vport pointer. (unused)
1329 * @inode: The inode pointer that contains a vport pointer. (unused)
1354 * @inode: The inode pointer that contains a vport pointer. (unused)
4012 * lpfc_debugfs_initialize - Initialize debugfs for a vport
4013 * @vport: The vport pointer to initialize.
4018 * lpfcX directory (for this HBA), and vportX directory for this vport. It will
4022 lpfc_debugfs_initialize(struct lpfc_vport *vport)
4025 struct lpfc_hba *phba = vport->phba;
4038 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
4053 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
4067 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
4081 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
4098 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
4113 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
4125 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
4137 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
4149 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
4160 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
4171 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
4182 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
4193 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
4204 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
4215 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
4226 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
4255 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
4266 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
4278 snprintf(name, sizeof(name), "vport%d", vport->vpi);
4279 if (!vport->vport_debugfs_root) {
4280 vport->vport_debugfs_root =
4282 if (!vport->vport_debugfs_root) {
4283 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
4307 vport->disc_trc = kzalloc(
4311 if (!vport->disc_trc) {
4312 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
4317 atomic_set(&vport->disc_trc_cnt, 0);
4320 vport->debug_disc_trc =
4322 vport->vport_debugfs_root,
4323 vport, &lpfc_debugfs_op_disc_trc);
4324 if (!vport->debug_disc_trc) {
4325 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
4331 vport->debug_nodelist =
4333 vport->vport_debugfs_root,
4334 vport, &lpfc_debugfs_op_nodelist);
4335 if (!vport->debug_nodelist) {
4336 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
4360 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
4375 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
4389 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
4403 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
4416 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
4429 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
4442 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
4455 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
4471 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
4485 * lpfc_debugfs_terminate - Tear down debugfs infrastructure for this vport
4486 * @vport: The vport pointer to remove from debugfs.
4490 * that are specific to this vport. It also checks to see if there are any
4496 lpfc_debugfs_terminate(struct lpfc_vport *vport)
4499 struct lpfc_hba *phba = vport->phba;
4501 if (vport->disc_trc) {
4502 kfree(vport->disc_trc);
4503 vport->disc_trc = NULL;
4505 if (vport->debug_disc_trc) {
4506 debugfs_remove(vport->debug_disc_trc); /* discovery_trace */
4507 vport->debug_disc_trc = NULL;
4509 if (vport->debug_nodelist) {
4510 debugfs_remove(vport->debug_nodelist); /* nodelist */
4511 vport->debug_nodelist = NULL;
4513 if (vport->vport_debugfs_root) {
4514 debugfs_remove(vport->vport_debugfs_root); /* vportX */
4515 vport->vport_debugfs_root = NULL;