Lines Matching defs:ndlp
3049 struct lpfc_nodelist *ndlp, *next_ndlp;
3059 list_for_each_entry_safe(ndlp, next_ndlp, &vport->fc_nodes, nlp_listp) {
3061 ndlp->nlp_DID == Fabric_DID) {
3062 /* Just free up ndlp with Fabric_DID for vports */
3063 lpfc_nlp_put(ndlp);
3067 if (ndlp->nlp_DID == Fabric_Cntl_DID &&
3068 ndlp->nlp_state == NLP_STE_UNUSED_NODE) {
3069 lpfc_nlp_put(ndlp);
3076 if (ndlp->nlp_type & NLP_FABRIC &&
3077 ndlp->nlp_state == NLP_STE_UNMAPPED_NODE)
3078 lpfc_disc_state_machine(vport, ndlp, NULL,
3081 if (!(ndlp->fc4_xpt_flags & (NVME_XPT_REGD|SCSI_XPT_REGD)))
3082 lpfc_disc_state_machine(vport, ndlp, NULL,
3102 /* At this point, ALL ndlp's should be gone
3111 list_for_each_entry_safe(ndlp, next_ndlp,
3113 lpfc_printf_vlog(ndlp->vport, KERN_ERR,
3115 "0282 did:x%x ndlp:x%px "
3118 ndlp->nlp_DID, (void *)ndlp,
3119 kref_read(&ndlp->kref),
3120 ndlp->fc4_xpt_flags,
3121 ndlp->nlp_flag);
3414 struct lpfc_nodelist *ndlp, *next_ndlp;
3429 list_for_each_entry_safe(ndlp, next_ndlp,
3434 lpfc_printf_vlog(ndlp->vport, KERN_INFO,
3437 "ndlp x%px DID:x%06x "
3439 ndlp, ndlp->nlp_DID,
3440 ndlp->nlp_flag);
3443 ndlp->nlp_rpi = rpi;
3444 lpfc_printf_vlog(ndlp->vport, KERN_INFO,
3446 "0009 Assign RPI x%x to ndlp x%px "
3448 ndlp->nlp_rpi, ndlp, ndlp->nlp_DID,
3449 ndlp->nlp_flag);
3817 struct lpfc_nodelist *ndlp, *next_ndlp;
3847 list_for_each_entry_safe(ndlp, next_ndlp,
3851 clear_bit(NLP_NPR_ADISC, &ndlp->nlp_flag);
3854 &ndlp->nlp_flag);
3856 &ndlp->nlp_flag);
3859 if (ndlp->nlp_type & NLP_FABRIC) {
3860 lpfc_disc_state_machine(vports[i], ndlp,
3871 &ndlp->save_flags) &&
3872 !(ndlp->fc4_xpt_flags &
3875 (vports[i], ndlp,
6678 * Return the pointer to the ndlp with the vport if successful, otherwise
6684 struct lpfc_nodelist *ndlp;
6693 ndlp = lpfc_findnode_did(vport, Fabric_DID);
6694 if (!ndlp) {
6695 /* Cannot find existing Fabric ndlp, so allocate a new one */
6696 ndlp = lpfc_nlp_init(vport, Fabric_DID);
6697 if (!ndlp)
6700 ndlp->nlp_type |= NLP_FABRIC;
6701 /* Put ndlp onto node list */
6702 lpfc_enqueue_node(vport, ndlp);
6718 return ndlp;
6755 struct lpfc_nodelist *ndlp;
6902 ndlp = lpfc_sli4_perform_vport_cvl(vport);
6903 if (!ndlp)
6932 mod_timer(&ndlp->nlp_delayfunc,
6934 set_bit(NLP_DELAY_TMO, &ndlp->nlp_flag);
6935 ndlp->nlp_last_elscmd = ELS_CMD_FDISC;
14972 /* Perform ndlp cleanup on the physical port. The nvme and nvmet