Lines Matching refs:vport
71 static void lpfc_disc_flush_list(struct lpfc_vport *vport);
96 lpfc_debugfs_disc_trc(ndlp->vport, LPFC_DISC_TRC_RPORT, in lpfc_terminate_rport_io()
101 lpfc_sli_abort_iocb(ndlp->vport, in lpfc_terminate_rport_io()
115 struct lpfc_vport *vport; in lpfc_dev_loss_tmo_callbk() local
128 vport = ndlp->vport; in lpfc_dev_loss_tmo_callbk()
129 phba = vport->phba; in lpfc_dev_loss_tmo_callbk()
131 lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_RPORT, in lpfc_dev_loss_tmo_callbk()
135 lpfc_printf_vlog(ndlp->vport, KERN_INFO, LOG_NODE, in lpfc_dev_loss_tmo_callbk()
143 if (vport->load_flag & FC_UNLOADING) { in lpfc_dev_loss_tmo_callbk()
159 lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT, in lpfc_dev_loss_tmo_callbk()
167 lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT, in lpfc_dev_loss_tmo_callbk()
173 shost = lpfc_shost_from_vport(vport); in lpfc_dev_loss_tmo_callbk()
209 struct lpfc_vport *vport; in lpfc_dev_loss_tmo_handler() local
219 vport = ndlp->vport; in lpfc_dev_loss_tmo_handler()
220 shost = lpfc_shost_from_vport(vport); in lpfc_dev_loss_tmo_handler()
230 phba = vport->phba; in lpfc_dev_loss_tmo_handler()
235 lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_RPORT, in lpfc_dev_loss_tmo_handler()
239 lpfc_printf_vlog(ndlp->vport, KERN_INFO, LOG_NODE, in lpfc_dev_loss_tmo_handler()
254 if (vport->load_flag & FC_UNLOADING) { in lpfc_dev_loss_tmo_handler()
257 lpfc_sli_abort_iocb(vport, in lpfc_dev_loss_tmo_handler()
272 lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY, in lpfc_dev_loss_tmo_handler()
294 lpfc_sli_abort_iocb(vport, &phba->sli.sli3_ring[LPFC_FCP_RING], in lpfc_dev_loss_tmo_handler()
299 lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT, in lpfc_dev_loss_tmo_handler()
308 lpfc_printf_vlog(vport, KERN_INFO, LOG_TRACE_EVENT, in lpfc_dev_loss_tmo_handler()
323 lpfc_disc_state_machine(vport, ndlp, NULL, NLP_EVT_DEVICE_RM); in lpfc_dev_loss_tmo_handler()
465 shost = lpfc_shost_from_vport(fast_evt_data->vport); in lpfc_send_fastpath_evt()
557 lpfc_sli_abts_recover_port(ndlp->vport, ndlp); in lpfc_work_list_done()
626 struct lpfc_vport *vport; in lpfc_work_done() local
680 vport = phba->pport; in lpfc_work_done()
682 vport = vports[i]; in lpfc_work_done()
683 if (vport == NULL) in lpfc_work_done()
685 spin_lock_irq(&vport->work_port_lock); in lpfc_work_done()
686 work_port_events = vport->work_port_events; in lpfc_work_done()
687 vport->work_port_events &= ~work_port_events; in lpfc_work_done()
688 spin_unlock_irq(&vport->work_port_lock); in lpfc_work_done()
690 lpfc_disc_timeout_handler(vport); in lpfc_work_done()
692 lpfc_els_timeout_handler(vport); in lpfc_work_done()
702 lpfc_delayed_disc_timeout_handler(vport); in lpfc_work_done()
822 lpfc_cleanup_rpis(struct lpfc_vport *vport, int remove) in lpfc_cleanup_rpis() argument
824 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); in lpfc_cleanup_rpis()
825 struct lpfc_hba *phba = vport->phba; in lpfc_cleanup_rpis()
828 list_for_each_entry_safe(ndlp, next_ndlp, &vport->fc_nodes, nlp_listp) { in lpfc_cleanup_rpis()
834 ((vport->port_type == LPFC_NPIV_PORT) && in lpfc_cleanup_rpis()
836 lpfc_unreg_rpi(vport, ndlp); in lpfc_cleanup_rpis()
848 lpfc_disc_state_machine(vport, ndlp, NULL, in lpfc_cleanup_rpis()
855 lpfc_sli4_unreg_all_rpis(vport); in lpfc_cleanup_rpis()
856 lpfc_mbx_unreg_vpi(vport); in lpfc_cleanup_rpis()
858 vport->fc_flag |= FC_VPORT_NEEDS_REG_VPI; in lpfc_cleanup_rpis()
864 lpfc_port_link_failure(struct lpfc_vport *vport) in lpfc_port_link_failure() argument
866 lpfc_vport_set_state(vport, FC_VPORT_LINKDOWN); in lpfc_port_link_failure()
869 lpfc_cleanup_rcv_buffers(vport); in lpfc_port_link_failure()
872 lpfc_els_flush_rscn(vport); in lpfc_port_link_failure()
875 lpfc_els_flush_cmd(vport); in lpfc_port_link_failure()
877 lpfc_cleanup_rpis(vport, 0); in lpfc_port_link_failure()
880 lpfc_can_disctmo(vport); in lpfc_port_link_failure()
884 lpfc_linkdown_port(struct lpfc_vport *vport) in lpfc_linkdown_port() argument
886 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); in lpfc_linkdown_port()
888 if (vport->cfg_enable_fc4_type != LPFC_ENABLE_NVME) in lpfc_linkdown_port()
892 lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_CMD, in lpfc_linkdown_port()
894 vport->port_state, vport->fc_ns_retry, vport->fc_flag); in lpfc_linkdown_port()
896 lpfc_port_link_failure(vport); in lpfc_linkdown_port()
900 vport->fc_flag &= ~FC_DISC_DELAYED; in lpfc_linkdown_port()
902 del_timer_sync(&vport->delayed_disc_tmo); in lpfc_linkdown_port()
908 struct lpfc_vport *vport = phba->pport; in lpfc_linkdown() local
909 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); in lpfc_linkdown()
947 if ((vport->cfg_enable_fc4_type == LPFC_ENABLE_BOTH) || in lpfc_linkdown()
948 (vport->cfg_enable_fc4_type == LPFC_ENABLE_NVME)) { in lpfc_linkdown()
965 mb->vport = vport; in lpfc_linkdown()
980 mb->vport = vport; in lpfc_linkdown()
995 lpfc_linkup_cleanup_nodes(struct lpfc_vport *vport) in lpfc_linkup_cleanup_nodes() argument
999 list_for_each_entry(ndlp, &vport->fc_nodes, nlp_listp) { in lpfc_linkup_cleanup_nodes()
1010 lpfc_unreg_rpi(vport, ndlp); in lpfc_linkup_cleanup_nodes()
1011 lpfc_nlp_set_state(vport, ndlp, NLP_STE_NPR_NODE); in lpfc_linkup_cleanup_nodes()
1016 lpfc_unreg_rpi(vport, ndlp); in lpfc_linkup_cleanup_nodes()
1022 lpfc_linkup_port(struct lpfc_vport *vport) in lpfc_linkup_port() argument
1024 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); in lpfc_linkup_port()
1025 struct lpfc_hba *phba = vport->phba; in lpfc_linkup_port()
1027 if ((vport->load_flag & FC_UNLOADING) != 0) in lpfc_linkup_port()
1030 lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_CMD, in lpfc_linkup_port()
1036 (vport != phba->pport)) in lpfc_linkup_port()
1039 if (vport->cfg_enable_fc4_type != LPFC_ENABLE_NVME) in lpfc_linkup_port()
1044 vport->fc_flag &= ~(FC_PT2PT | FC_PT2PT_PLOGI | FC_ABORT_DISCOVERY | in lpfc_linkup_port()
1046 vport->fc_flag |= FC_NDISC_ACTIVE; in lpfc_linkup_port()
1047 vport->fc_ns_retry = 0; in lpfc_linkup_port()
1050 if (vport->fc_flag & FC_LBIT) in lpfc_linkup_port()
1051 lpfc_linkup_cleanup_nodes(vport); in lpfc_linkup_port()
1098 struct lpfc_vport *vport = pmb->vport; in lpfc_mbx_cmpl_clear_la() local
1099 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); in lpfc_mbx_cmpl_clear_la()
1111 lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT, in lpfc_mbx_cmpl_clear_la()
1114 mb->mbxStatus, vport->port_state); in lpfc_mbx_cmpl_clear_la()
1119 if (vport->port_type == LPFC_PHYSICAL_PORT) in lpfc_mbx_cmpl_clear_la()
1134 lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY, in lpfc_mbx_cmpl_clear_la()
1139 vport->fc_flag &= ~FC_ABORT_DISCOVERY; in lpfc_mbx_cmpl_clear_la()
1142 lpfc_can_disctmo(vport); in lpfc_mbx_cmpl_clear_la()
1160 struct lpfc_vport *vport = pmb->vport; in lpfc_mbx_cmpl_local_config_link() local
1178 vport->fc_flag & FC_PUBLIC_LOOP && in lpfc_mbx_cmpl_local_config_link()
1179 !(vport->fc_flag & FC_LBIT)) { in lpfc_mbx_cmpl_local_config_link()
1184 lpfc_set_disctmo(vport); in lpfc_mbx_cmpl_local_config_link()
1191 if (vport->port_state != LPFC_FLOGI) { in lpfc_mbx_cmpl_local_config_link()
1207 sparam_mb->vport = vport; in lpfc_mbx_cmpl_local_config_link()
1223 lpfc_initial_flogi(vport); in lpfc_mbx_cmpl_local_config_link()
1226 if (vport->fc_flag & FC_PT2PT) in lpfc_mbx_cmpl_local_config_link()
1227 lpfc_disc_start(vport); in lpfc_mbx_cmpl_local_config_link()
1232 lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT, in lpfc_mbx_cmpl_local_config_link()
1234 status, vport->port_state); in lpfc_mbx_cmpl_local_config_link()
1239 lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT, in lpfc_mbx_cmpl_local_config_link()
1241 vport->port_state); in lpfc_mbx_cmpl_local_config_link()
1243 lpfc_issue_clear_la(phba, vport); in lpfc_mbx_cmpl_local_config_link()
1272 struct lpfc_vport *vport = mboxq->vport; in lpfc_mbx_cmpl_reg_fcfi() local
1275 lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT, in lpfc_mbx_cmpl_reg_fcfi()
1278 vport->port_state); in lpfc_mbx_cmpl_reg_fcfi()
1298 if (vport->port_state != LPFC_FLOGI) { in lpfc_mbx_cmpl_reg_fcfi()
1301 lpfc_issue_init_vfi(vport); in lpfc_mbx_cmpl_reg_fcfi()
1570 fcf_mbxq->vport = phba->pport; in lpfc_register_fcf()
2047 int lpfc_sli4_fcf_rr_next_proc(struct lpfc_vport *vport, uint16_t fcf_index) in lpfc_sli4_fcf_rr_next_proc() argument
2049 struct lpfc_hba *phba = vport->phba; in lpfc_sli4_fcf_rr_next_proc()
2111 lpfc_can_disctmo(vport); in lpfc_sli4_fcf_rr_next_proc()
2818 struct lpfc_vport *vport = mboxq->vport; in lpfc_init_vfi_cmpl() local
2828 lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT, in lpfc_init_vfi_cmpl()
2832 lpfc_vport_set_state(vport, FC_VPORT_FAILED); in lpfc_init_vfi_cmpl()
2836 lpfc_initial_flogi(vport); in lpfc_init_vfi_cmpl()
2849 lpfc_issue_init_vfi(struct lpfc_vport *vport) in lpfc_issue_init_vfi() argument
2853 struct lpfc_hba *phba = vport->phba; in lpfc_issue_init_vfi()
2857 lpfc_printf_vlog(vport, KERN_ERR, in lpfc_issue_init_vfi()
2862 lpfc_init_vfi(mboxq, vport); in lpfc_issue_init_vfi()
2866 lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT, in lpfc_issue_init_vfi()
2868 mempool_free(mboxq, vport->phba->mbox_mem_pool); in lpfc_issue_init_vfi()
2882 struct lpfc_vport *vport = mboxq->vport; in lpfc_init_vpi_cmpl() local
2884 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); in lpfc_init_vpi_cmpl()
2887 lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT, in lpfc_init_vpi_cmpl()
2891 lpfc_vport_set_state(vport, FC_VPORT_FAILED); in lpfc_init_vpi_cmpl()
2895 vport->fc_flag &= ~FC_VPORT_NEEDS_INIT_VPI; in lpfc_init_vpi_cmpl()
2899 if ((phba->pport == vport) || (vport->port_state == LPFC_FDISC)) { in lpfc_init_vpi_cmpl()
2900 ndlp = lpfc_findnode_did(vport, Fabric_DID); in lpfc_init_vpi_cmpl()
2902 lpfc_printf_vlog(vport, KERN_ERR, in lpfc_init_vpi_cmpl()
2907 lpfc_register_new_vport(phba, vport, ndlp); in lpfc_init_vpi_cmpl()
2913 lpfc_initial_fdisc(vport); in lpfc_init_vpi_cmpl()
2915 lpfc_vport_set_state(vport, FC_VPORT_NO_FABRIC_SUPP); in lpfc_init_vpi_cmpl()
2916 lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT, in lpfc_init_vpi_cmpl()
2931 lpfc_issue_init_vpi(struct lpfc_vport *vport) in lpfc_issue_init_vpi() argument
2936 if ((vport->port_type != LPFC_PHYSICAL_PORT) && (!vport->vpi)) { in lpfc_issue_init_vpi()
2937 vpi = lpfc_alloc_vpi(vport->phba); in lpfc_issue_init_vpi()
2939 lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT, in lpfc_issue_init_vpi()
2941 lpfc_vport_set_state(vport, FC_VPORT_FAILED); in lpfc_issue_init_vpi()
2944 vport->vpi = vpi; in lpfc_issue_init_vpi()
2947 mboxq = mempool_alloc(vport->phba->mbox_mem_pool, GFP_KERNEL); in lpfc_issue_init_vpi()
2949 lpfc_printf_vlog(vport, KERN_ERR, in lpfc_issue_init_vpi()
2954 lpfc_init_vpi(vport->phba, mboxq, vport->vpi); in lpfc_issue_init_vpi()
2955 mboxq->vport = vport; in lpfc_issue_init_vpi()
2957 rc = lpfc_sli_issue_mbox(vport->phba, mboxq, MBX_NOWAIT); in lpfc_issue_init_vpi()
2959 lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT, in lpfc_issue_init_vpi()
2961 mempool_free(mboxq, vport->phba->mbox_mem_pool); in lpfc_issue_init_vpi()
3017 struct lpfc_vport *vport = mboxq->vport; in lpfc_mbx_cmpl_reg_vfi() local
3018 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); in lpfc_mbx_cmpl_reg_vfi()
3028 lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT, in lpfc_mbx_cmpl_reg_vfi()
3031 mboxq->u.mb.mbxStatus, vport->port_state); in lpfc_mbx_cmpl_reg_vfi()
3034 lpfc_disc_list_loopmap(vport); in lpfc_mbx_cmpl_reg_vfi()
3036 lpfc_disc_start(vport); in lpfc_mbx_cmpl_reg_vfi()
3039 lpfc_vport_set_state(vport, FC_VPORT_FAILED); in lpfc_mbx_cmpl_reg_vfi()
3047 if (vport->fc_flag & FC_VFI_REGISTERED) in lpfc_mbx_cmpl_reg_vfi()
3049 vport->fc_flag & FC_PT2PT)) in lpfc_mbx_cmpl_reg_vfi()
3054 vport->vpi_state |= LPFC_VPI_REGISTERED; in lpfc_mbx_cmpl_reg_vfi()
3055 vport->fc_flag |= FC_VFI_REGISTERED; in lpfc_mbx_cmpl_reg_vfi()
3056 vport->fc_flag &= ~FC_VPORT_NEEDS_REG_VPI; in lpfc_mbx_cmpl_reg_vfi()
3057 vport->fc_flag &= ~FC_VPORT_NEEDS_INIT_VPI; in lpfc_mbx_cmpl_reg_vfi()
3067 lpfc_printf_vlog(vport, KERN_INFO, LOG_SLI, in lpfc_mbx_cmpl_reg_vfi()
3070 vport->port_state, vport->fc_flag, vport->fc_myDID, in lpfc_mbx_cmpl_reg_vfi()
3071 vport->phba->alpa_map[0], in lpfc_mbx_cmpl_reg_vfi()
3074 if (vport->port_state == LPFC_FABRIC_CFG_LINK) { in lpfc_mbx_cmpl_reg_vfi()
3079 if ((vport->fc_flag & FC_PT2PT) || in lpfc_mbx_cmpl_reg_vfi()
3081 !(vport->fc_flag & FC_PUBLIC_LOOP))) { in lpfc_mbx_cmpl_reg_vfi()
3084 lpfc_disc_list_loopmap(vport); in lpfc_mbx_cmpl_reg_vfi()
3086 if (vport->fc_flag & FC_PT2PT) in lpfc_mbx_cmpl_reg_vfi()
3087 vport->port_state = LPFC_VPORT_READY; in lpfc_mbx_cmpl_reg_vfi()
3089 lpfc_disc_start(vport); in lpfc_mbx_cmpl_reg_vfi()
3092 lpfc_do_scr_ns_plogi(phba, vport); in lpfc_mbx_cmpl_reg_vfi()
3110 struct lpfc_vport *vport = pmb->vport; in lpfc_mbx_cmpl_read_sparam() local
3111 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); in lpfc_mbx_cmpl_read_sparam()
3112 struct serv_parm *sp = &vport->fc_sparam; in lpfc_mbx_cmpl_read_sparam()
3118 lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT, in lpfc_mbx_cmpl_read_sparam()
3121 mb->mbxStatus, vport->port_state); in lpfc_mbx_cmpl_read_sparam()
3126 memcpy((uint8_t *) &vport->fc_sparam, (uint8_t *) mp->virt, in lpfc_mbx_cmpl_read_sparam()
3140 lpfc_update_vport_wwn(vport); in lpfc_mbx_cmpl_read_sparam()
3141 fc_host_port_name(shost) = wwn_to_u64(vport->fc_portname.u.wwn); in lpfc_mbx_cmpl_read_sparam()
3142 if (vport->port_type == LPFC_PHYSICAL_PORT) { in lpfc_mbx_cmpl_read_sparam()
3143 memcpy(&phba->wwnn, &vport->fc_nodename, sizeof(phba->wwnn)); in lpfc_mbx_cmpl_read_sparam()
3144 memcpy(&phba->wwpn, &vport->fc_portname, sizeof(phba->wwnn)); in lpfc_mbx_cmpl_read_sparam()
3155 lpfc_initial_flogi(vport); in lpfc_mbx_cmpl_read_sparam()
3164 lpfc_issue_clear_la(phba, vport); in lpfc_mbx_cmpl_read_sparam()
3172 struct lpfc_vport *vport = phba->pport; in lpfc_mbx_process_link_up() local
3215 shost = lpfc_shost_from_vport(vport); in lpfc_mbx_process_link_up()
3230 vport->fc_myDID = bf_get(lpfc_mbx_read_top_alpa_granted, la); in lpfc_mbx_process_link_up()
3236 if (vport->cfg_log_verbose & LOG_LINK_EVENT) { in lpfc_mbx_process_link_up()
3276 vport->fc_myDID = phba->fc_pref_DID; in lpfc_mbx_process_link_up()
3283 vport->fc_flag |= fc_flags; in lpfc_mbx_process_link_up()
3299 sparam_mbox->vport = vport; in lpfc_mbx_process_link_up()
3314 vport->port_state = LPFC_LOCAL_CFG_LINK; in lpfc_mbx_process_link_up()
3316 cfglink_mbox->vport = vport; in lpfc_mbx_process_link_up()
3324 vport->port_state = LPFC_VPORT_UNKNOWN; in lpfc_mbx_process_link_up()
3388 lpfc_vport_set_state(vport, FC_VPORT_FAILED); in lpfc_mbx_process_link_up()
3389 lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT, in lpfc_mbx_process_link_up()
3391 vport->port_state, sparam_mbox, cfglink_mbox); in lpfc_mbx_process_link_up()
3392 lpfc_issue_clear_la(phba, vport); in lpfc_mbx_process_link_up()
3431 struct lpfc_vport *vport = pmb->vport; in lpfc_mbx_cmpl_read_topology() local
3432 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); in lpfc_mbx_cmpl_read_topology()
3449 mb->mbxStatus, vport->port_state); in lpfc_mbx_cmpl_read_topology()
3462 vport->fc_flag |= FC_BYPASSED_MODE; in lpfc_mbx_cmpl_read_topology()
3464 vport->fc_flag &= ~FC_BYPASSED_MODE; in lpfc_mbx_cmpl_read_topology()
3520 phba->pport->port_state, vport->fc_flag); in lpfc_mbx_cmpl_read_topology()
3526 phba->pport->port_state, vport->fc_flag, in lpfc_mbx_cmpl_read_topology()
3534 phba->pport->port_state, vport->fc_flag, in lpfc_mbx_cmpl_read_topology()
3547 phba->pport->port_state, vport->fc_flag); in lpfc_mbx_cmpl_read_topology()
3556 phba->pport->port_state, vport->fc_flag); in lpfc_mbx_cmpl_read_topology()
3571 lpfc_issue_clear_la(phba, vport); in lpfc_mbx_cmpl_read_topology()
3593 struct lpfc_vport *vport = pmb->vport; in lpfc_mbx_cmpl_reg_login() local
3596 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); in lpfc_mbx_cmpl_reg_login()
3601 lpfc_printf_vlog(vport, KERN_INFO, LOG_SLI, in lpfc_mbx_cmpl_reg_login()
3629 lpfc_unreg_rpi(vport, ndlp); in lpfc_mbx_cmpl_reg_login()
3633 lpfc_disc_state_machine(vport, ndlp, pmb, NLP_EVT_CMPL_REG_LOGIN); in lpfc_mbx_cmpl_reg_login()
3650 struct lpfc_vport *vport = pmb->vport; in lpfc_mbx_cmpl_unreg_vpi() local
3651 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); in lpfc_mbx_cmpl_unreg_vpi()
3656 lpfc_printf_vlog(vport, KERN_INFO, LOG_NODE, in lpfc_mbx_cmpl_unreg_vpi()
3662 lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT, in lpfc_mbx_cmpl_unreg_vpi()
3664 vport->vpi, mb->mbxStatus); in lpfc_mbx_cmpl_unreg_vpi()
3670 vport->vpi_state &= ~LPFC_VPI_REGISTERED; in lpfc_mbx_cmpl_unreg_vpi()
3671 vport->fc_flag |= FC_VPORT_NEEDS_REG_VPI; in lpfc_mbx_cmpl_unreg_vpi()
3673 vport->unreg_vpi_cmpl = VPORT_OK; in lpfc_mbx_cmpl_unreg_vpi()
3675 lpfc_cleanup_vports_rrqs(vport, NULL); in lpfc_mbx_cmpl_unreg_vpi()
3680 if ((vport->load_flag & FC_UNLOADING) && (vport != phba->pport)) in lpfc_mbx_cmpl_unreg_vpi()
3685 lpfc_mbx_unreg_vpi(struct lpfc_vport *vport) in lpfc_mbx_unreg_vpi() argument
3687 struct lpfc_hba *phba = vport->phba; in lpfc_mbx_unreg_vpi()
3695 lpfc_unreg_vpi(phba, vport->vpi, mbox); in lpfc_mbx_unreg_vpi()
3696 mbox->vport = vport; in lpfc_mbx_unreg_vpi()
3700 lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT, in lpfc_mbx_unreg_vpi()
3703 vport->unreg_vpi_cmpl = VPORT_ERROR; in lpfc_mbx_unreg_vpi()
3712 struct lpfc_vport *vport = pmb->vport; in lpfc_mbx_cmpl_reg_vpi() local
3713 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); in lpfc_mbx_cmpl_reg_vpi()
3720 lpfc_printf_vlog(vport, KERN_INFO, LOG_NODE, in lpfc_mbx_cmpl_reg_vpi()
3723 lpfc_vport_set_state(vport, FC_VPORT_FAILED); in lpfc_mbx_cmpl_reg_vpi()
3725 vport->fc_flag &= ~(FC_FABRIC | FC_PUBLIC_LOOP); in lpfc_mbx_cmpl_reg_vpi()
3727 vport->fc_myDID = 0; in lpfc_mbx_cmpl_reg_vpi()
3729 if ((vport->cfg_enable_fc4_type == LPFC_ENABLE_BOTH) || in lpfc_mbx_cmpl_reg_vpi()
3730 (vport->cfg_enable_fc4_type == LPFC_ENABLE_NVME)) { in lpfc_mbx_cmpl_reg_vpi()
3734 lpfc_nvme_update_localport(vport); in lpfc_mbx_cmpl_reg_vpi()
3740 vport->vpi_state |= LPFC_VPI_REGISTERED; in lpfc_mbx_cmpl_reg_vpi()
3741 vport->fc_flag &= ~FC_VPORT_NEEDS_REG_VPI; in lpfc_mbx_cmpl_reg_vpi()
3743 vport->num_disc_nodes = 0; in lpfc_mbx_cmpl_reg_vpi()
3745 if (vport->fc_npr_cnt) in lpfc_mbx_cmpl_reg_vpi()
3746 lpfc_els_disc_plogi(vport); in lpfc_mbx_cmpl_reg_vpi()
3748 if (!vport->num_disc_nodes) { in lpfc_mbx_cmpl_reg_vpi()
3750 vport->fc_flag &= ~FC_NDISC_ACTIVE; in lpfc_mbx_cmpl_reg_vpi()
3752 lpfc_can_disctmo(vport); in lpfc_mbx_cmpl_reg_vpi()
3754 vport->port_state = LPFC_VPORT_READY; in lpfc_mbx_cmpl_reg_vpi()
3779 struct lpfc_vport *vport; in lpfc_create_static_vport() local
3815 pmb->vport = phba->pport; in lpfc_create_static_vport()
3889 vport = *(struct lpfc_vport **)new_fc_vport->dd_data; in lpfc_create_static_vport()
3890 vport->vport_flag |= STATIC_VPORT; in lpfc_create_static_vport()
3916 struct lpfc_vport *vport = pmb->vport; in lpfc_mbx_cmpl_fabric_reg_login() local
3927 lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT, in lpfc_mbx_cmpl_fabric_reg_login()
3936 lpfc_disc_list_loopmap(vport); in lpfc_mbx_cmpl_fabric_reg_login()
3939 lpfc_disc_start(vport); in lpfc_mbx_cmpl_fabric_reg_login()
3947 lpfc_vport_set_state(vport, FC_VPORT_FAILED); in lpfc_mbx_cmpl_fabric_reg_login()
3959 lpfc_nlp_set_state(vport, ndlp, NLP_STE_UNMAPPED_NODE); in lpfc_mbx_cmpl_fabric_reg_login()
3961 if (vport->port_state == LPFC_FABRIC_CFG_LINK) { in lpfc_mbx_cmpl_fabric_reg_login()
3964 if (!(vport->fc_flag & FC_LOGO_RCVD_DID_CHNG)) in lpfc_mbx_cmpl_fabric_reg_login()
3967 shost = lpfc_shost_from_vport(vport); in lpfc_mbx_cmpl_fabric_reg_login()
3969 vport->fc_flag &= ~FC_LOGO_RCVD_DID_CHNG ; in lpfc_mbx_cmpl_fabric_reg_login()
3972 lpfc_do_scr_ns_plogi(phba, vport); in lpfc_mbx_cmpl_fabric_reg_login()
3991 lpfc_issue_gidft(struct lpfc_vport *vport) in lpfc_issue_gidft() argument
3994 if ((vport->cfg_enable_fc4_type == LPFC_ENABLE_BOTH) || in lpfc_issue_gidft()
3995 (vport->cfg_enable_fc4_type == LPFC_ENABLE_FCP)) { in lpfc_issue_gidft()
3996 if (lpfc_ns_cmd(vport, SLI_CTNS_GID_FT, 0, SLI_CTPT_FCP)) { in lpfc_issue_gidft()
4000 lpfc_printf_vlog(vport, KERN_ERR, in lpfc_issue_gidft()
4008 vport->gidft_inp++; in lpfc_issue_gidft()
4011 if ((vport->cfg_enable_fc4_type == LPFC_ENABLE_BOTH) || in lpfc_issue_gidft()
4012 (vport->cfg_enable_fc4_type == LPFC_ENABLE_NVME)) { in lpfc_issue_gidft()
4013 if (lpfc_ns_cmd(vport, SLI_CTNS_GID_FT, 0, SLI_CTPT_NVME)) { in lpfc_issue_gidft()
4017 lpfc_printf_vlog(vport, KERN_ERR, in lpfc_issue_gidft()
4023 vport->gidft_inp); in lpfc_issue_gidft()
4024 if (vport->gidft_inp == 0) in lpfc_issue_gidft()
4027 vport->gidft_inp++; in lpfc_issue_gidft()
4029 return vport->gidft_inp; in lpfc_issue_gidft()
4043 lpfc_issue_gidpt(struct lpfc_vport *vport) in lpfc_issue_gidpt() argument
4046 if (lpfc_ns_cmd(vport, SLI_CTNS_GID_PT, 0, GID_PT_N_PORT)) { in lpfc_issue_gidpt()
4050 lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT, in lpfc_issue_gidpt()
4057 vport->gidft_inp++; in lpfc_issue_gidpt()
4073 struct lpfc_vport *vport = pmb->vport; in lpfc_mbx_cmpl_ns_reg_login() local
4077 vport->gidft_inp = 0; in lpfc_mbx_cmpl_ns_reg_login()
4080 lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT, in lpfc_mbx_cmpl_ns_reg_login()
4101 lpfc_disc_list_loopmap(vport); in lpfc_mbx_cmpl_ns_reg_login()
4104 lpfc_disc_start(vport); in lpfc_mbx_cmpl_ns_reg_login()
4107 lpfc_vport_set_state(vport, FC_VPORT_FAILED); in lpfc_mbx_cmpl_ns_reg_login()
4115 lpfc_nlp_set_state(vport, ndlp, NLP_STE_UNMAPPED_NODE); in lpfc_mbx_cmpl_ns_reg_login()
4116 lpfc_printf_vlog(vport, KERN_INFO, LOG_NODE | LOG_DISCOVERY, in lpfc_mbx_cmpl_ns_reg_login()
4122 if (vport->port_state < LPFC_VPORT_READY) { in lpfc_mbx_cmpl_ns_reg_login()
4124 lpfc_ns_cmd(vport, SLI_CTNS_RNN_ID, 0, 0); in lpfc_mbx_cmpl_ns_reg_login()
4125 lpfc_ns_cmd(vport, SLI_CTNS_RSNN_NN, 0, 0); in lpfc_mbx_cmpl_ns_reg_login()
4126 lpfc_ns_cmd(vport, SLI_CTNS_RSPN_ID, 0, 0); in lpfc_mbx_cmpl_ns_reg_login()
4127 lpfc_ns_cmd(vport, SLI_CTNS_RFT_ID, 0, 0); in lpfc_mbx_cmpl_ns_reg_login()
4129 if ((vport->cfg_enable_fc4_type == LPFC_ENABLE_BOTH) || in lpfc_mbx_cmpl_ns_reg_login()
4130 (vport->cfg_enable_fc4_type == LPFC_ENABLE_FCP)) in lpfc_mbx_cmpl_ns_reg_login()
4131 lpfc_ns_cmd(vport, SLI_CTNS_RFF_ID, 0, FC_TYPE_FCP); in lpfc_mbx_cmpl_ns_reg_login()
4133 if ((vport->cfg_enable_fc4_type == LPFC_ENABLE_BOTH) || in lpfc_mbx_cmpl_ns_reg_login()
4134 (vport->cfg_enable_fc4_type == LPFC_ENABLE_NVME)) in lpfc_mbx_cmpl_ns_reg_login()
4135 lpfc_ns_cmd(vport, SLI_CTNS_RFF_ID, 0, in lpfc_mbx_cmpl_ns_reg_login()
4139 lpfc_issue_els_scr(vport, 0); in lpfc_mbx_cmpl_ns_reg_login()
4141 lpfc_issue_els_rdf(vport, 0); in lpfc_mbx_cmpl_ns_reg_login()
4144 vport->fc_ns_retry = 0; in lpfc_mbx_cmpl_ns_reg_login()
4145 if (lpfc_issue_gidft(vport) == 0) in lpfc_mbx_cmpl_ns_reg_login()
4164 lpfc_register_remote_port(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp) in lpfc_register_remote_port() argument
4166 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); in lpfc_register_remote_port()
4170 struct lpfc_hba *phba = vport->phba; in lpfc_register_remote_port()
4172 if (vport->cfg_enable_fc4_type == LPFC_ENABLE_NVME) in lpfc_register_remote_port()
4202 lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_RPORT, in lpfc_register_remote_port()
4207 if (vport->load_flag & FC_UNLOADING) in lpfc_register_remote_port()
4237 lpfc_printf_vlog(ndlp->vport, KERN_INFO, LOG_NODE, in lpfc_register_remote_port()
4252 struct lpfc_vport *vport = ndlp->vport; in lpfc_unregister_remote_port() local
4254 if (vport->cfg_enable_fc4_type == LPFC_ENABLE_NVME) in lpfc_unregister_remote_port()
4257 lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_RPORT, in lpfc_unregister_remote_port()
4261 lpfc_printf_vlog(vport, KERN_INFO, LOG_NODE, in lpfc_unregister_remote_port()
4271 lpfc_nlp_counters(struct lpfc_vport *vport, int state, int count) in lpfc_nlp_counters() argument
4273 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); in lpfc_nlp_counters()
4279 vport->fc_unused_cnt += count; in lpfc_nlp_counters()
4282 vport->fc_plogi_cnt += count; in lpfc_nlp_counters()
4285 vport->fc_adisc_cnt += count; in lpfc_nlp_counters()
4288 vport->fc_reglogin_cnt += count; in lpfc_nlp_counters()
4291 vport->fc_prli_cnt += count; in lpfc_nlp_counters()
4294 vport->fc_unmap_cnt += count; in lpfc_nlp_counters()
4297 vport->fc_map_cnt += count; in lpfc_nlp_counters()
4300 if (vport->fc_npr_cnt == 0 && count == -1) in lpfc_nlp_counters()
4301 vport->fc_npr_cnt = 0; in lpfc_nlp_counters()
4303 vport->fc_npr_cnt += count; in lpfc_nlp_counters()
4310 lpfc_nlp_state_cleanup(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, in lpfc_nlp_state_cleanup() argument
4313 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); in lpfc_nlp_state_cleanup()
4328 vport->phba->nport_event_cnt++; in lpfc_nlp_state_cleanup()
4333 vport->phba->nport_event_cnt++; in lpfc_nlp_state_cleanup()
4334 if (vport->phba->nvmet_support == 0) { in lpfc_nlp_state_cleanup()
4337 lpfc_nvme_unregister_port(vport, ndlp); in lpfc_nlp_state_cleanup()
4353 vport->phba->nport_event_cnt++; in lpfc_nlp_state_cleanup()
4358 lpfc_register_remote_port(vport, ndlp); in lpfc_nlp_state_cleanup()
4361 if (vport->phba->sli_rev >= LPFC_SLI_REV4 && in lpfc_nlp_state_cleanup()
4363 if (vport->phba->nvmet_support == 0) { in lpfc_nlp_state_cleanup()
4369 vport->phba->nport_event_cnt++; in lpfc_nlp_state_cleanup()
4370 lpfc_nvme_register_port(vport, ndlp); in lpfc_nlp_state_cleanup()
4382 (vport->stat_data_enabled)) { in lpfc_nlp_state_cleanup()
4392 lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT, in lpfc_nlp_state_cleanup()
4411 lpfc_nlp_set_state(vport, ndlp, NLP_STE_UNMAPPED_NODE); in lpfc_nlp_state_cleanup()
4438 lpfc_nlp_set_state(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, in lpfc_nlp_set_state() argument
4441 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); in lpfc_nlp_set_state()
4445 lpfc_printf_vlog(vport, KERN_INFO, LOG_NODE, in lpfc_nlp_set_state()
4451 lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_NODE, in lpfc_nlp_set_state()
4457 lpfc_cancel_retry_delay_tmo(vport, ndlp); in lpfc_nlp_set_state()
4465 list_add_tail(&ndlp->nlp_listp, &vport->fc_nodes); in lpfc_nlp_set_state()
4468 lpfc_nlp_counters(vport, old_state, -1); in lpfc_nlp_set_state()
4471 lpfc_nlp_counters(vport, state, 1); in lpfc_nlp_set_state()
4472 lpfc_nlp_state_cleanup(vport, ndlp, old_state, state); in lpfc_nlp_set_state()
4476 lpfc_enqueue_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp) in lpfc_enqueue_node() argument
4478 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); in lpfc_enqueue_node()
4482 list_add_tail(&ndlp->nlp_listp, &vport->fc_nodes); in lpfc_enqueue_node()
4488 lpfc_dequeue_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp) in lpfc_dequeue_node() argument
4490 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); in lpfc_dequeue_node()
4492 lpfc_cancel_retry_delay_tmo(vport, ndlp); in lpfc_dequeue_node()
4494 lpfc_nlp_counters(vport, ndlp->nlp_state, -1); in lpfc_dequeue_node()
4498 lpfc_nlp_state_cleanup(vport, ndlp, ndlp->nlp_state, in lpfc_dequeue_node()
4503 lpfc_disable_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp) in lpfc_disable_node() argument
4505 lpfc_cancel_retry_delay_tmo(vport, ndlp); in lpfc_disable_node()
4507 lpfc_nlp_counters(vport, ndlp->nlp_state, -1); in lpfc_disable_node()
4508 lpfc_nlp_state_cleanup(vport, ndlp, ndlp->nlp_state, in lpfc_disable_node()
4526 lpfc_initialize_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, in lpfc_initialize_node() argument
4535 ndlp->vport = vport; in lpfc_initialize_node()
4536 ndlp->phba = vport->phba; in lpfc_initialize_node()
4542 ndlp->cmd_qdepth = vport->cfg_tgt_queue_depth; in lpfc_initialize_node()
4547 lpfc_enable_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, in lpfc_enable_node() argument
4550 struct lpfc_hba *phba = vport->phba; in lpfc_enable_node()
4562 rpi = lpfc_sli4_alloc_rpi(vport->phba); in lpfc_enable_node()
4567 lpfc_printf_vlog(vport, KERN_WARNING, LOG_NODE, in lpfc_enable_node()
4582 lpfc_printf_vlog(vport, KERN_WARNING, LOG_NODE, in lpfc_enable_node()
4592 lpfc_printf_vlog(vport, KERN_WARNING, LOG_NODE, in lpfc_enable_node()
4613 lpfc_initialize_node(vport, ndlp, did); in lpfc_enable_node()
4621 if (vport->phba->sli_rev == LPFC_SLI_REV4) { in lpfc_enable_node()
4623 lpfc_printf_vlog(vport, KERN_INFO, LOG_NODE, in lpfc_enable_node()
4633 lpfc_nlp_set_state(vport, ndlp, state); in lpfc_enable_node()
4635 lpfc_printf_vlog(vport, KERN_INFO, LOG_NODE, in lpfc_enable_node()
4643 lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_NODE, in lpfc_enable_node()
4650 lpfc_sli4_free_rpi(vport->phba, rpi); in lpfc_enable_node()
4657 lpfc_drop_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp) in lpfc_drop_node() argument
4668 lpfc_nlp_set_state(vport, ndlp, NLP_STE_UNUSED_NODE); in lpfc_drop_node()
4669 if (vport->phba->sli_rev == LPFC_SLI_REV4) { in lpfc_drop_node()
4670 lpfc_cleanup_vports_rrqs(vport, ndlp); in lpfc_drop_node()
4671 lpfc_unreg_rpi(vport, ndlp); in lpfc_drop_node()
4682 lpfc_set_disctmo(struct lpfc_vport *vport) in lpfc_set_disctmo() argument
4684 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); in lpfc_set_disctmo()
4685 struct lpfc_hba *phba = vport->phba; in lpfc_set_disctmo()
4688 if (vport->port_state == LPFC_LOCAL_CFG_LINK) { in lpfc_set_disctmo()
4699 if (!timer_pending(&vport->fc_disctmo)) { in lpfc_set_disctmo()
4700 lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_CMD, in lpfc_set_disctmo()
4702 tmo, vport->port_state, vport->fc_flag); in lpfc_set_disctmo()
4705 mod_timer(&vport->fc_disctmo, jiffies + msecs_to_jiffies(1000 * tmo)); in lpfc_set_disctmo()
4707 vport->fc_flag |= FC_DISC_TMO; in lpfc_set_disctmo()
4711 lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY, in lpfc_set_disctmo()
4714 vport->port_state, tmo, in lpfc_set_disctmo()
4715 (unsigned long)&vport->fc_disctmo, vport->fc_plogi_cnt, in lpfc_set_disctmo()
4716 vport->fc_adisc_cnt); in lpfc_set_disctmo()
4725 lpfc_can_disctmo(struct lpfc_vport *vport) in lpfc_can_disctmo() argument
4727 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); in lpfc_can_disctmo()
4730 lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_CMD, in lpfc_can_disctmo()
4732 vport->port_state, vport->fc_ns_retry, vport->fc_flag); in lpfc_can_disctmo()
4735 if (vport->fc_flag & FC_DISC_TMO) { in lpfc_can_disctmo()
4737 vport->fc_flag &= ~FC_DISC_TMO; in lpfc_can_disctmo()
4739 del_timer_sync(&vport->fc_disctmo); in lpfc_can_disctmo()
4740 spin_lock_irqsave(&vport->work_port_lock, iflags); in lpfc_can_disctmo()
4741 vport->work_port_events &= ~WORKER_DISC_TMO; in lpfc_can_disctmo()
4742 spin_unlock_irqrestore(&vport->work_port_lock, iflags); in lpfc_can_disctmo()
4746 lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY, in lpfc_can_disctmo()
4749 vport->port_state, vport->fc_flag, in lpfc_can_disctmo()
4750 vport->fc_plogi_cnt, vport->fc_adisc_cnt); in lpfc_can_disctmo()
4765 struct lpfc_vport *vport = ndlp->vport; in lpfc_check_sli_ndlp() local
4767 if (iocb->vport != vport) in lpfc_check_sli_ndlp()
4885 struct lpfc_vport *vport = pmb->vport; in lpfc_nlp_logo_unreg() local
4891 lpfc_issue_els_logo(vport, ndlp, 0); in lpfc_nlp_logo_unreg()
4897 lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY, in lpfc_nlp_logo_unreg()
4905 lpfc_issue_els_plogi(vport, ndlp->nlp_DID, 0); in lpfc_nlp_logo_unreg()
4908 lpfc_sli4_free_rpi(vport->phba, ndlp->nlp_rpi); in lpfc_nlp_logo_unreg()
4922 lpfc_set_unreg_login_mbx_cmpl(struct lpfc_hba *phba, struct lpfc_vport *vport, in lpfc_set_unreg_login_mbx_cmpl() argument
4932 (!(vport->load_flag & FC_UNLOADING)) && in lpfc_set_unreg_login_mbx_cmpl()
4939 if (vport->load_flag & FC_UNLOADING) { in lpfc_set_unreg_login_mbx_cmpl()
4941 spin_lock_irqsave(&vport->phba->ndlp_lock, in lpfc_set_unreg_login_mbx_cmpl()
4944 spin_unlock_irqrestore(&vport->phba->ndlp_lock, in lpfc_set_unreg_login_mbx_cmpl()
4964 lpfc_unreg_rpi(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp) in lpfc_unreg_rpi() argument
4966 struct lpfc_hba *phba = vport->phba; in lpfc_unreg_rpi()
4974 lpfc_printf_vlog(vport, KERN_INFO, in lpfc_unreg_rpi()
4986 lpfc_printf_vlog(vport, KERN_INFO, in lpfc_unreg_rpi()
5004 lpfc_unreg_login(phba, vport->vpi, rpi, mbox); in lpfc_unreg_rpi()
5005 mbox->vport = vport; in lpfc_unreg_rpi()
5006 lpfc_set_unreg_login_mbx_cmpl(phba, vport, ndlp, mbox); in lpfc_unreg_rpi()
5014 (!(vport->fc_flag & FC_OFFLINE_MODE))) in lpfc_unreg_rpi()
5017 lpfc_printf_vlog(vport, KERN_INFO, in lpfc_unreg_rpi()
5031 lpfc_printf_vlog(vport, KERN_INFO, in lpfc_unreg_rpi()
5044 if (!(vport->load_flag & FC_UNLOADING)) { in lpfc_unreg_rpi()
5046 lpfc_issue_els_logo(vport, ndlp, 0); in lpfc_unreg_rpi()
5048 lpfc_nlp_set_state(vport, ndlp, in lpfc_unreg_rpi()
5106 lpfc_unreg_all_rpis(struct lpfc_vport *vport) in lpfc_unreg_all_rpis() argument
5108 struct lpfc_hba *phba = vport->phba; in lpfc_unreg_all_rpis()
5113 lpfc_sli4_unreg_all_rpis(vport); in lpfc_unreg_all_rpis()
5119 lpfc_unreg_login(phba, vport->vpi, LPFC_UNREG_ALL_RPIS_VPORT, in lpfc_unreg_all_rpis()
5121 mbox->vport = vport; in lpfc_unreg_all_rpis()
5129 lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT, in lpfc_unreg_all_rpis()
5137 lpfc_unreg_default_rpis(struct lpfc_vport *vport) in lpfc_unreg_default_rpis() argument
5139 struct lpfc_hba *phba = vport->phba; in lpfc_unreg_default_rpis()
5149 lpfc_unreg_did(phba, vport->vpi, LPFC_UNREG_ALL_DFLT_RPIS, in lpfc_unreg_default_rpis()
5151 mbox->vport = vport; in lpfc_unreg_default_rpis()
5159 lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT, in lpfc_unreg_default_rpis()
5171 lpfc_cleanup_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp) in lpfc_cleanup_node() argument
5173 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); in lpfc_cleanup_node()
5174 struct lpfc_hba *phba = vport->phba; in lpfc_cleanup_node()
5180 lpfc_printf_vlog(vport, KERN_INFO, LOG_NODE, in lpfc_cleanup_node()
5186 lpfc_printf_vlog(vport, KERN_WARNING, LOG_NODE, in lpfc_cleanup_node()
5191 lpfc_dequeue_node(vport, ndlp); in lpfc_cleanup_node()
5193 lpfc_printf_vlog(vport, KERN_WARNING, LOG_NODE, in lpfc_cleanup_node()
5198 lpfc_disable_node(vport, ndlp); in lpfc_cleanup_node()
5257 lpfc_cleanup_vports_rrqs(vport, ndlp); in lpfc_cleanup_node()
5260 if (!lpfc_unreg_rpi(vport, ndlp)) { in lpfc_cleanup_node()
5264 lpfc_sli4_free_rpi(vport->phba, in lpfc_cleanup_node()
5266 spin_lock_irqsave(&vport->phba->ndlp_lock, in lpfc_cleanup_node()
5270 spin_unlock_irqrestore(&vport->phba->ndlp_lock, in lpfc_cleanup_node()
5283 lpfc_nlp_remove(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp) in lpfc_nlp_remove() argument
5285 struct lpfc_hba *phba = vport->phba; in lpfc_nlp_remove()
5291 lpfc_cancel_retry_delay_tmo(vport, ndlp); in lpfc_nlp_remove()
5299 lpfc_printf_vlog(vport, KERN_INFO, in lpfc_nlp_remove()
5308 rc = lpfc_reg_rpi(phba, vport->vpi, ndlp->nlp_DID, in lpfc_nlp_remove()
5309 (uint8_t *) &vport->fc_sparam, mbox, ndlp->nlp_rpi); in lpfc_nlp_remove()
5316 mbox->vport = vport; in lpfc_nlp_remove()
5325 lpfc_cleanup_node(vport, ndlp); in lpfc_nlp_remove()
5337 lpfc_printf_vlog(vport, KERN_WARNING, LOG_NODE, in lpfc_nlp_remove()
5351 lpfc_matchdid(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, in lpfc_matchdid() argument
5364 mydid.un.word = vport->fc_myDID; in lpfc_matchdid()
5385 vport->phba->fc_topology == in lpfc_matchdid()
5407 __lpfc_findnode_did(struct lpfc_vport *vport, uint32_t did) in __lpfc_findnode_did() argument
5412 list_for_each_entry(ndlp, &vport->fc_nodes, nlp_listp) { in __lpfc_findnode_did()
5413 if (lpfc_matchdid(vport, ndlp, did)) { in __lpfc_findnode_did()
5418 lpfc_printf_vlog(vport, KERN_INFO, LOG_NODE, in __lpfc_findnode_did()
5429 lpfc_printf_vlog(vport, KERN_INFO, LOG_NODE, in __lpfc_findnode_did()
5435 lpfc_findnode_did(struct lpfc_vport *vport, uint32_t did) in lpfc_findnode_did() argument
5437 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); in lpfc_findnode_did()
5442 ndlp = __lpfc_findnode_did(vport, did); in lpfc_findnode_did()
5448 lpfc_findnode_mapped(struct lpfc_vport *vport) in lpfc_findnode_mapped() argument
5450 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); in lpfc_findnode_mapped()
5457 list_for_each_entry(ndlp, &vport->fc_nodes, nlp_listp) { in lpfc_findnode_mapped()
5465 lpfc_printf_vlog(vport, KERN_INFO, LOG_NODE, in lpfc_findnode_mapped()
5477 lpfc_printf_vlog(vport, KERN_INFO, LOG_NODE, in lpfc_findnode_mapped()
5483 lpfc_setup_disc_node(struct lpfc_vport *vport, uint32_t did) in lpfc_setup_disc_node() argument
5485 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); in lpfc_setup_disc_node()
5488 ndlp = lpfc_findnode_did(vport, did); in lpfc_setup_disc_node()
5490 if (vport->phba->nvmet_support) in lpfc_setup_disc_node()
5492 if ((vport->fc_flag & FC_RSCN_MODE) != 0 && in lpfc_setup_disc_node()
5493 lpfc_rscn_payload_check(vport, did) == 0) in lpfc_setup_disc_node()
5495 ndlp = lpfc_nlp_init(vport, did); in lpfc_setup_disc_node()
5498 lpfc_nlp_set_state(vport, ndlp, NLP_STE_NPR_NODE); in lpfc_setup_disc_node()
5500 lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY, in lpfc_setup_disc_node()
5504 ndlp->nlp_state, vport->fc_flag); in lpfc_setup_disc_node()
5511 if (vport->phba->nvmet_support) in lpfc_setup_disc_node()
5513 ndlp = lpfc_enable_node(vport, ndlp, NLP_STE_NPR_NODE); in lpfc_setup_disc_node()
5515 lpfc_printf_vlog(vport, KERN_WARNING, LOG_SLI, in lpfc_setup_disc_node()
5519 lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY, in lpfc_setup_disc_node()
5523 ndlp->nlp_state, vport->fc_flag); in lpfc_setup_disc_node()
5535 if ((vport->fc_flag & FC_RSCN_MODE) && in lpfc_setup_disc_node()
5536 !(vport->fc_flag & FC_NDISC_ACTIVE)) { in lpfc_setup_disc_node()
5537 if (lpfc_rscn_payload_check(vport, did)) { in lpfc_setup_disc_node()
5542 lpfc_cancel_retry_delay_tmo(vport, ndlp); in lpfc_setup_disc_node()
5544 lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY, in lpfc_setup_disc_node()
5548 ndlp->nlp_state, vport->fc_flag); in lpfc_setup_disc_node()
5555 if (vport->phba->nvmet_support) in lpfc_setup_disc_node()
5567 lpfc_nlp_set_state(vport, ndlp, NLP_STE_NPR_NODE); in lpfc_setup_disc_node()
5573 lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY, in lpfc_setup_disc_node()
5577 ndlp->nlp_state, vport->fc_flag); in lpfc_setup_disc_node()
5581 lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY, in lpfc_setup_disc_node()
5585 ndlp->nlp_state, vport->fc_flag); in lpfc_setup_disc_node()
5593 (!vport->phba->nvmet_support && in lpfc_setup_disc_node()
5597 if (vport->phba->nvmet_support) in lpfc_setup_disc_node()
5603 lpfc_nlp_set_state(vport, ndlp, NLP_STE_NPR_NODE); in lpfc_setup_disc_node()
5614 lpfc_disc_list_loopmap(struct lpfc_vport *vport) in lpfc_disc_list_loopmap() argument
5616 struct lpfc_hba *phba = vport->phba; in lpfc_disc_list_loopmap()
5630 if (((vport->fc_myDID & 0xff) == alpa) || (alpa == 0)) in lpfc_disc_list_loopmap()
5632 lpfc_setup_disc_node(vport, alpa); in lpfc_disc_list_loopmap()
5640 if (vport->cfg_scan_down) in lpfc_disc_list_loopmap()
5645 if ((vport->fc_myDID & 0xff) == alpa) in lpfc_disc_list_loopmap()
5647 lpfc_setup_disc_node(vport, alpa); in lpfc_disc_list_loopmap()
5655 lpfc_issue_clear_la(struct lpfc_hba *phba, struct lpfc_vport *vport) in lpfc_issue_clear_la() argument
5668 (vport->port_type != LPFC_PHYSICAL_PORT) || in lpfc_issue_clear_la()
5677 mbox->vport = vport; in lpfc_issue_clear_la()
5681 lpfc_disc_flush_list(vport); in lpfc_issue_clear_la()
5691 lpfc_issue_reg_vpi(struct lpfc_hba *phba, struct lpfc_vport *vport) in lpfc_issue_reg_vpi() argument
5697 lpfc_reg_vpi(vport, regvpimbox); in lpfc_issue_reg_vpi()
5699 regvpimbox->vport = vport; in lpfc_issue_reg_vpi()
5709 lpfc_disc_start(struct lpfc_vport *vport) in lpfc_disc_start() argument
5711 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); in lpfc_disc_start()
5712 struct lpfc_hba *phba = vport->phba; in lpfc_disc_start()
5717 lpfc_printf_vlog(vport, KERN_INFO, LOG_SLI, in lpfc_disc_start()
5728 if (vport->port_state < LPFC_VPORT_READY) in lpfc_disc_start()
5729 vport->port_state = LPFC_DISC_AUTH; in lpfc_disc_start()
5731 lpfc_set_disctmo(vport); in lpfc_disc_start()
5733 vport->fc_prevDID = vport->fc_myDID; in lpfc_disc_start()
5734 vport->num_disc_nodes = 0; in lpfc_disc_start()
5737 lpfc_printf_vlog(vport, KERN_INFO, LOG_DISCOVERY, in lpfc_disc_start()
5740 vport->port_state, vport->fc_flag, vport->fc_plogi_cnt, in lpfc_disc_start()
5741 vport->fc_adisc_cnt, vport->fc_npr_cnt); in lpfc_disc_start()
5744 num_sent = lpfc_els_disc_adisc(vport); in lpfc_disc_start()
5751 !(vport->fc_flag & FC_PT2PT) && in lpfc_disc_start()
5752 !(vport->fc_flag & FC_RSCN_MODE) && in lpfc_disc_start()
5754 lpfc_issue_clear_la(phba, vport); in lpfc_disc_start()
5755 lpfc_issue_reg_vpi(phba, vport); in lpfc_disc_start()
5763 if (vport->port_state < LPFC_VPORT_READY && !clear_la_pending) { in lpfc_disc_start()
5765 lpfc_issue_clear_la(phba, vport); in lpfc_disc_start()
5767 if (!(vport->fc_flag & FC_ABORT_DISCOVERY)) { in lpfc_disc_start()
5768 vport->num_disc_nodes = 0; in lpfc_disc_start()
5770 if (vport->fc_npr_cnt) in lpfc_disc_start()
5771 lpfc_els_disc_plogi(vport); in lpfc_disc_start()
5773 if (!vport->num_disc_nodes) { in lpfc_disc_start()
5775 vport->fc_flag &= ~FC_NDISC_ACTIVE; in lpfc_disc_start()
5777 lpfc_can_disctmo(vport); in lpfc_disc_start()
5780 vport->port_state = LPFC_VPORT_READY; in lpfc_disc_start()
5783 num_sent = lpfc_els_disc_plogi(vport); in lpfc_disc_start()
5788 if (vport->fc_flag & FC_RSCN_MODE) { in lpfc_disc_start()
5792 if ((vport->fc_rscn_id_cnt == 0) && in lpfc_disc_start()
5793 (!(vport->fc_flag & FC_RSCN_DISCOVERY))) { in lpfc_disc_start()
5795 vport->fc_flag &= ~FC_RSCN_MODE; in lpfc_disc_start()
5797 lpfc_can_disctmo(vport); in lpfc_disc_start()
5799 lpfc_els_handle_rscn(vport); in lpfc_disc_start()
5856 lpfc_disc_flush_list(struct lpfc_vport *vport) in lpfc_disc_flush_list() argument
5859 struct lpfc_hba *phba = vport->phba; in lpfc_disc_flush_list()
5861 if (vport->fc_plogi_cnt || vport->fc_adisc_cnt) { in lpfc_disc_flush_list()
5862 list_for_each_entry_safe(ndlp, next_ndlp, &vport->fc_nodes, in lpfc_disc_flush_list()
5875 lpfc_cleanup_discovery_resources(struct lpfc_vport *vport) in lpfc_cleanup_discovery_resources() argument
5877 lpfc_els_flush_rscn(vport); in lpfc_cleanup_discovery_resources()
5878 lpfc_els_flush_cmd(vport); in lpfc_cleanup_discovery_resources()
5879 lpfc_disc_flush_list(vport); in lpfc_cleanup_discovery_resources()
5900 struct lpfc_vport *vport = from_timer(vport, t, fc_disctmo); in lpfc_disc_timeout() local
5901 struct lpfc_hba *phba = vport->phba; in lpfc_disc_timeout()
5908 spin_lock_irqsave(&vport->work_port_lock, flags); in lpfc_disc_timeout()
5909 tmo_posted = vport->work_port_events & WORKER_DISC_TMO; in lpfc_disc_timeout()
5911 vport->work_port_events |= WORKER_DISC_TMO; in lpfc_disc_timeout()
5912 spin_unlock_irqrestore(&vport->work_port_lock, flags); in lpfc_disc_timeout()
5920 lpfc_disc_timeout_handler(struct lpfc_vport *vport) in lpfc_disc_timeout_handler() argument
5922 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); in lpfc_disc_timeout_handler()
5923 struct lpfc_hba *phba = vport->phba; in lpfc_disc_timeout_handler()
5929 if (!(vport->fc_flag & FC_DISC_TMO)) in lpfc_disc_timeout_handler()
5933 vport->fc_flag &= ~FC_DISC_TMO; in lpfc_disc_timeout_handler()
5936 lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_CMD, in lpfc_disc_timeout_handler()
5938 vport->port_state, vport->fc_ns_retry, vport->fc_flag); in lpfc_disc_timeout_handler()
5940 switch (vport->port_state) { in lpfc_disc_timeout_handler()
5947 lpfc_printf_vlog(vport, KERN_WARNING, LOG_DISCOVERY, in lpfc_disc_timeout_handler()
5951 list_for_each_entry_safe(ndlp, next_ndlp, &vport->fc_nodes, in lpfc_disc_timeout_handler()
5959 lpfc_drop_node(vport, ndlp); in lpfc_disc_timeout_handler()
5965 lpfc_unreg_rpi(vport, ndlp); in lpfc_disc_timeout_handler()
5968 if (vport->port_state != LPFC_FLOGI) { in lpfc_disc_timeout_handler()
5970 lpfc_initial_flogi(vport); in lpfc_disc_timeout_handler()
5972 lpfc_issue_init_vfi(vport); in lpfc_disc_timeout_handler()
5981 lpfc_printf_vlog(vport, KERN_ERR, in lpfc_disc_timeout_handler()
5984 vport->vpi ? "FDISC" : "FLOGI"); in lpfc_disc_timeout_handler()
5991 lpfc_disc_list_loopmap(vport); in lpfc_disc_timeout_handler()
5994 lpfc_disc_start(vport); in lpfc_disc_timeout_handler()
6000 lpfc_printf_vlog(vport, KERN_ERR, in lpfc_disc_timeout_handler()
6005 ndlp = lpfc_findnode_did(vport, NameServer_DID); in lpfc_disc_timeout_handler()
6014 lpfc_printf_vlog(vport, KERN_ERR, in lpfc_disc_timeout_handler()
6018 vport->fc_ns_retry, LPFC_MAX_NS_RETRY); in lpfc_disc_timeout_handler()
6020 if (vport->fc_ns_retry < LPFC_MAX_NS_RETRY) { in lpfc_disc_timeout_handler()
6022 vport->fc_ns_retry++; in lpfc_disc_timeout_handler()
6023 vport->gidft_inp = 0; in lpfc_disc_timeout_handler()
6024 rc = lpfc_issue_gidft(vport); in lpfc_disc_timeout_handler()
6028 vport->fc_ns_retry = 0; in lpfc_disc_timeout_handler()
6038 lpfc_issue_reg_vpi(phba, vport); in lpfc_disc_timeout_handler()
6040 lpfc_issue_clear_la(phba, vport); in lpfc_disc_timeout_handler()
6041 vport->port_state = LPFC_VPORT_READY; in lpfc_disc_timeout_handler()
6048 lpfc_printf_vlog(vport, KERN_ERR, in lpfc_disc_timeout_handler()
6060 initlinkmbox->vport = vport; in lpfc_disc_timeout_handler()
6071 lpfc_printf_vlog(vport, KERN_ERR, in lpfc_disc_timeout_handler()
6074 lpfc_disc_flush_list(vport); in lpfc_disc_timeout_handler()
6082 lpfc_issue_reg_vpi(phba, vport); in lpfc_disc_timeout_handler()
6084 lpfc_issue_clear_la(phba, vport); in lpfc_disc_timeout_handler()
6085 vport->port_state = LPFC_VPORT_READY; in lpfc_disc_timeout_handler()
6091 if (vport->fc_flag & FC_RSCN_MODE) { in lpfc_disc_timeout_handler()
6092 lpfc_printf_vlog(vport, KERN_ERR, in lpfc_disc_timeout_handler()
6096 vport->fc_ns_retry, LPFC_MAX_NS_RETRY); in lpfc_disc_timeout_handler()
6099 lpfc_els_flush_cmd(vport); in lpfc_disc_timeout_handler()
6101 lpfc_els_flush_rscn(vport); in lpfc_disc_timeout_handler()
6102 lpfc_disc_flush_list(vport); in lpfc_disc_timeout_handler()
6107 lpfc_printf_vlog(vport, KERN_ERR, in lpfc_disc_timeout_handler()
6110 "vport State x%x\n", vport->port_state); in lpfc_disc_timeout_handler()
6117 lpfc_printf_vlog(vport, KERN_ERR, in lpfc_disc_timeout_handler()
6124 lpfc_issue_clear_la(phba, vport); in lpfc_disc_timeout_handler()
6132 lpfc_printf_vlog(vport, KERN_ERR, in lpfc_disc_timeout_handler()
6144 lpfc_disc_flush_list(vport); in lpfc_disc_timeout_handler()
6151 vport->port_state = LPFC_VPORT_READY; in lpfc_disc_timeout_handler()
6168 struct lpfc_vport *vport = pmb->vport; in lpfc_mbx_cmpl_fdmi_reg_login() local
6177 lpfc_nlp_set_state(vport, ndlp, NLP_STE_UNMAPPED_NODE); in lpfc_mbx_cmpl_fdmi_reg_login()
6178 lpfc_printf_vlog(vport, KERN_INFO, LOG_NODE | LOG_DISCOVERY, in lpfc_mbx_cmpl_fdmi_reg_login()
6189 if (vport->port_type == LPFC_PHYSICAL_PORT) in lpfc_mbx_cmpl_fdmi_reg_login()
6190 lpfc_fdmi_cmd(vport, ndlp, SLI_MGMT_DHBA, 0); in lpfc_mbx_cmpl_fdmi_reg_login()
6192 lpfc_fdmi_cmd(vport, ndlp, SLI_MGMT_DPRT, 0); in lpfc_mbx_cmpl_fdmi_reg_login()
6226 __lpfc_find_node(struct lpfc_vport *vport, node_filter filter, void *param) in __lpfc_find_node() argument
6230 list_for_each_entry(ndlp, &vport->fc_nodes, nlp_listp) { in __lpfc_find_node()
6232 lpfc_printf_vlog(vport, KERN_INFO, LOG_NODE, in __lpfc_find_node()
6243 lpfc_printf_vlog(vport, KERN_INFO, LOG_NODE, in __lpfc_find_node()
6253 __lpfc_findnode_rpi(struct lpfc_vport *vport, uint16_t rpi) in __lpfc_findnode_rpi() argument
6255 return __lpfc_find_node(vport, lpfc_filter_by_rpi, &rpi); in __lpfc_findnode_rpi()
6263 lpfc_findnode_wwpn(struct lpfc_vport *vport, struct lpfc_name *wwpn) in lpfc_findnode_wwpn() argument
6265 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); in lpfc_findnode_wwpn()
6269 ndlp = __lpfc_find_node(vport, lpfc_filter_by_wwpn, wwpn); in lpfc_findnode_wwpn()
6280 lpfc_findnode_rpi(struct lpfc_vport *vport, uint16_t rpi) in lpfc_findnode_rpi() argument
6282 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); in lpfc_findnode_rpi()
6287 ndlp = __lpfc_findnode_rpi(vport, rpi); in lpfc_findnode_rpi()
6308 struct lpfc_vport *vport; in lpfc_find_vport_by_vpid() local
6332 list_for_each_entry(vport, &phba->port_list, listentry) { in lpfc_find_vport_by_vpid()
6333 if (vport->vpi == i) { in lpfc_find_vport_by_vpid()
6335 return vport; in lpfc_find_vport_by_vpid()
6343 lpfc_nlp_init(struct lpfc_vport *vport, uint32_t did) in lpfc_nlp_init() argument
6348 if (vport->phba->sli_rev == LPFC_SLI_REV4) { in lpfc_nlp_init()
6349 rpi = lpfc_sli4_alloc_rpi(vport->phba); in lpfc_nlp_init()
6354 ndlp = mempool_alloc(vport->phba->nlp_mem_pool, GFP_KERNEL); in lpfc_nlp_init()
6356 if (vport->phba->sli_rev == LPFC_SLI_REV4) in lpfc_nlp_init()
6357 lpfc_sli4_free_rpi(vport->phba, rpi); in lpfc_nlp_init()
6363 lpfc_initialize_node(vport, ndlp, did); in lpfc_nlp_init()
6365 if (vport->phba->sli_rev == LPFC_SLI_REV4) { in lpfc_nlp_init()
6367 lpfc_printf_vlog(vport, KERN_INFO, LOG_NODE | LOG_DISCOVERY, in lpfc_nlp_init()
6375 mempool_alloc(vport->phba->active_rrq_pool, in lpfc_nlp_init()
6384 lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_NODE, in lpfc_nlp_init()
6402 lpfc_debugfs_disc_trc(ndlp->vport, LPFC_DISC_TRC_NODE, in lpfc_nlp_release()
6406 lpfc_printf_vlog(ndlp->vport, KERN_INFO, LOG_NODE, in lpfc_nlp_release()
6414 lpfc_nlp_remove(ndlp->vport, ndlp); in lpfc_nlp_release()
6443 lpfc_debugfs_disc_trc(ndlp->vport, LPFC_DISC_TRC_NODE, in lpfc_nlp_get()
6455 lpfc_printf_vlog(ndlp->vport, KERN_WARNING, LOG_NODE, in lpfc_nlp_get()
6483 lpfc_debugfs_disc_trc(ndlp->vport, LPFC_DISC_TRC_NODE, in lpfc_nlp_put()
6495 lpfc_printf_vlog(ndlp->vport, KERN_WARNING, LOG_NODE, in lpfc_nlp_put()
6508 lpfc_printf_vlog(ndlp->vport, KERN_WARNING, LOG_NODE, in lpfc_nlp_put()
6545 lpfc_debugfs_disc_trc(ndlp->vport, LPFC_DISC_TRC_NODE, in lpfc_nlp_not_used()
6626 struct lpfc_vport *vport = mboxq->vport; in lpfc_unregister_vfi_cmpl() local
6627 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); in lpfc_unregister_vfi_cmpl()
6633 mboxq->u.mb.mbxStatus, vport->port_state); in lpfc_unregister_vfi_cmpl()
6652 struct lpfc_vport *vport = mboxq->vport; in lpfc_unregister_fcfi_cmpl() local
6658 mboxq->u.mb.mbxStatus, vport->port_state); in lpfc_unregister_fcfi_cmpl()
6753 mbox->vport = phba->pport; in lpfc_sli4_unregister_fcf()