Lines Matching refs:ndlp
1652 struct lpfc_nodelist *ndlp, *next_ndlp; in lpfc_cleanup() local
1658 list_for_each_entry_safe(ndlp, next_ndlp, &vport->fc_nodes, nlp_listp) { in lpfc_cleanup()
1659 if (!NLP_CHK_NODE_ACT(ndlp)) { in lpfc_cleanup()
1660 ndlp = lpfc_enable_node(vport, ndlp, in lpfc_cleanup()
1662 if (!ndlp) in lpfc_cleanup()
1665 NLP_SET_FREE_REQ(ndlp); in lpfc_cleanup()
1668 lpfc_nlp_put(ndlp); in lpfc_cleanup()
1672 if (NLP_CHK_FREE_REQ(ndlp)) { in lpfc_cleanup()
1678 NLP_SET_FREE_REQ(ndlp); in lpfc_cleanup()
1682 ndlp->nlp_DID == Fabric_DID) { in lpfc_cleanup()
1684 lpfc_nlp_put(ndlp); in lpfc_cleanup()
1688 if (ndlp->nlp_type & NLP_FABRIC) in lpfc_cleanup()
1689 lpfc_disc_state_machine(vport, ndlp, NULL, in lpfc_cleanup()
1692 lpfc_disc_state_machine(vport, ndlp, NULL, in lpfc_cleanup()
1706 list_for_each_entry_safe(ndlp, next_ndlp, in lpfc_cleanup()
1708 lpfc_printf_vlog(ndlp->vport, KERN_ERR, in lpfc_cleanup()
1712 ndlp->nlp_DID, (void *)ndlp, in lpfc_cleanup()
1713 ndlp->nlp_usg_map, in lpfc_cleanup()
1715 &ndlp->kref.refcount)); in lpfc_cleanup()
1874 struct lpfc_nodelist *ndlp, *next_ndlp; in lpfc_offline_prep() local
1894 list_for_each_entry_safe(ndlp, next_ndlp, in lpfc_offline_prep()
1897 if (!NLP_CHK_NODE_ACT(ndlp)) in lpfc_offline_prep()
1899 if (ndlp->nlp_state == NLP_STE_UNUSED_NODE) in lpfc_offline_prep()
1901 if (ndlp->nlp_type & NLP_FABRIC) { in lpfc_offline_prep()
1902 lpfc_disc_state_machine(vports[i], ndlp, in lpfc_offline_prep()
1904 lpfc_disc_state_machine(vports[i], ndlp, in lpfc_offline_prep()
1908 ndlp->nlp_flag &= ~NLP_NPR_ADISC; in lpfc_offline_prep()
1910 lpfc_unreg_rpi(vports[i], ndlp); in lpfc_offline_prep()