Lines Matching refs:vport

135 lpfc_debugfs_disc_trc_data(struct lpfc_vport *vport, char *buf, int size)  in lpfc_debugfs_disc_trc_data()  argument
150 index = (atomic_read(&vport->disc_trc_cnt) + 1) & in lpfc_debugfs_disc_trc_data()
153 dtp = vport->disc_trc + i; in lpfc_debugfs_disc_trc_data()
164 dtp = vport->disc_trc + i; in lpfc_debugfs_disc_trc_data()
528 lpfc_debugfs_nodelist_data(struct lpfc_vport *vport, char *buf, int size) in lpfc_debugfs_nodelist_data() argument
532 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); in lpfc_debugfs_nodelist_data()
539 list_for_each_entry(ndlp, &vport->fc_nodes, nlp_listp) { in lpfc_debugfs_nodelist_data()
635 lpfc_debugfs_disc_trc(struct lpfc_vport *vport, int mask, char *fmt, in lpfc_debugfs_disc_trc() argument
646 !vport || !vport->disc_trc) in lpfc_debugfs_disc_trc()
649 index = atomic_inc_return(&vport->disc_trc_cnt) & in lpfc_debugfs_disc_trc()
651 dtp = vport->disc_trc + index; in lpfc_debugfs_disc_trc()
719 struct lpfc_vport *vport = inode->i_private; in lpfc_debugfs_disc_trc_open() local
743 debug->len = lpfc_debugfs_disc_trc_data(vport, debug->buffer, size); in lpfc_debugfs_disc_trc_open()
1124 struct lpfc_vport *vport = inode->i_private; in lpfc_debugfs_nodelist_open() local
1139 debug->len = lpfc_debugfs_nodelist_data(vport, debug->buffer, in lpfc_debugfs_nodelist_open()
4022 lpfc_debugfs_initialize(struct lpfc_vport *vport) in lpfc_debugfs_initialize() argument
4025 struct lpfc_hba *phba = vport->phba; in lpfc_debugfs_initialize()
4038 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT, in lpfc_debugfs_initialize()
4053 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT, in lpfc_debugfs_initialize()
4067 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT, in lpfc_debugfs_initialize()
4081 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT, in lpfc_debugfs_initialize()
4098 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT, in lpfc_debugfs_initialize()
4113 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT, in lpfc_debugfs_initialize()
4125 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT, in lpfc_debugfs_initialize()
4137 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT, in lpfc_debugfs_initialize()
4149 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT, in lpfc_debugfs_initialize()
4160 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT, in lpfc_debugfs_initialize()
4171 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT, in lpfc_debugfs_initialize()
4182 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT, in lpfc_debugfs_initialize()
4193 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT, in lpfc_debugfs_initialize()
4204 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT, in lpfc_debugfs_initialize()
4215 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT, in lpfc_debugfs_initialize()
4226 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT, in lpfc_debugfs_initialize()
4255 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT, in lpfc_debugfs_initialize()
4266 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT, in lpfc_debugfs_initialize()
4278 snprintf(name, sizeof(name), "vport%d", vport->vpi); in lpfc_debugfs_initialize()
4279 if (!vport->vport_debugfs_root) { in lpfc_debugfs_initialize()
4280 vport->vport_debugfs_root = in lpfc_debugfs_initialize()
4282 if (!vport->vport_debugfs_root) { in lpfc_debugfs_initialize()
4283 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT, in lpfc_debugfs_initialize()
4307 vport->disc_trc = kzalloc( in lpfc_debugfs_initialize()
4311 if (!vport->disc_trc) { in lpfc_debugfs_initialize()
4312 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT, in lpfc_debugfs_initialize()
4317 atomic_set(&vport->disc_trc_cnt, 0); in lpfc_debugfs_initialize()
4320 vport->debug_disc_trc = in lpfc_debugfs_initialize()
4322 vport->vport_debugfs_root, in lpfc_debugfs_initialize()
4323 vport, &lpfc_debugfs_op_disc_trc); in lpfc_debugfs_initialize()
4324 if (!vport->debug_disc_trc) { in lpfc_debugfs_initialize()
4325 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT, in lpfc_debugfs_initialize()
4331 vport->debug_nodelist = in lpfc_debugfs_initialize()
4333 vport->vport_debugfs_root, in lpfc_debugfs_initialize()
4334 vport, &lpfc_debugfs_op_nodelist); in lpfc_debugfs_initialize()
4335 if (!vport->debug_nodelist) { in lpfc_debugfs_initialize()
4336 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT, in lpfc_debugfs_initialize()
4360 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT, in lpfc_debugfs_initialize()
4375 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT, in lpfc_debugfs_initialize()
4389 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT, in lpfc_debugfs_initialize()
4403 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT, in lpfc_debugfs_initialize()
4416 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT, in lpfc_debugfs_initialize()
4429 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT, in lpfc_debugfs_initialize()
4442 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT, in lpfc_debugfs_initialize()
4455 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT, in lpfc_debugfs_initialize()
4471 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT, in lpfc_debugfs_initialize()
4496 lpfc_debugfs_terminate(struct lpfc_vport *vport) in lpfc_debugfs_terminate() argument
4499 struct lpfc_hba *phba = vport->phba; in lpfc_debugfs_terminate()
4501 if (vport->disc_trc) { in lpfc_debugfs_terminate()
4502 kfree(vport->disc_trc); in lpfc_debugfs_terminate()
4503 vport->disc_trc = NULL; in lpfc_debugfs_terminate()
4505 if (vport->debug_disc_trc) { in lpfc_debugfs_terminate()
4506 debugfs_remove(vport->debug_disc_trc); /* discovery_trace */ in lpfc_debugfs_terminate()
4507 vport->debug_disc_trc = NULL; in lpfc_debugfs_terminate()
4509 if (vport->debug_nodelist) { in lpfc_debugfs_terminate()
4510 debugfs_remove(vport->debug_nodelist); /* nodelist */ in lpfc_debugfs_terminate()
4511 vport->debug_nodelist = NULL; in lpfc_debugfs_terminate()
4513 if (vport->vport_debugfs_root) { in lpfc_debugfs_terminate()
4514 debugfs_remove(vport->vport_debugfs_root); /* vportX */ in lpfc_debugfs_terminate()
4515 vport->vport_debugfs_root = NULL; in lpfc_debugfs_terminate()