Lines Matching defs:ndlp
297 struct lpfc_nodelist *ndlp;
464 ndlp = lpfc_findnode_did(phba->pport, Fabric_DID);
465 if (ndlp && NLP_CHK_NODE_ACT(ndlp) &&
466 ndlp->nlp_state == NLP_STE_UNMAPPED_NODE) {
493 struct lpfc_nodelist *ndlp = NULL, *next_ndlp = NULL;
497 ndlp = lpfc_findnode_did(vport, Fabric_DID);
498 if (ndlp && NLP_CHK_NODE_ACT(ndlp)
502 if (!lpfc_issue_els_npiv_logo(vport, ndlp))
512 list_for_each_entry_safe(ndlp, next_ndlp, &vport->fc_nodes, nlp_listp) {
513 if (!NLP_CHK_NODE_ACT(ndlp))
515 if (ndlp->nlp_state == NLP_STE_UNUSED_NODE)
517 lpfc_disc_state_machine(vport, ndlp, NULL,
547 struct lpfc_nodelist *ndlp = NULL;
570 ndlp = lpfc_findnode_did(phba->pport, Fabric_DID);
571 if (ndlp && NLP_CHK_NODE_ACT(ndlp)
572 && ndlp->nlp_state == NLP_STE_UNMAPPED_NODE) {
604 struct lpfc_nodelist *ndlp = NULL;
660 * The call to fc_remove_host might release the NameServer ndlp. Since
661 * we might need to use the ndlp to send the DA_ID CT command,
662 * increment the reference for the NameServer ndlp to prevent it from
665 ndlp = lpfc_findnode_did(vport, NameServer_DID);
666 if (ndlp && NLP_CHK_NODE_ACT(ndlp)) {
667 lpfc_nlp_get(ndlp);
675 ndlp = lpfc_findnode_did(phba->pport, Fabric_DID);
682 if (ndlp && NLP_CHK_NODE_ACT(ndlp) &&
683 ndlp->nlp_state == NLP_STE_UNMAPPED_NODE &&
685 /* First look for the Fabric ndlp */
686 ndlp = lpfc_findnode_did(vport, Fabric_DID);
687 if (!ndlp)
689 else if (!NLP_CHK_NODE_ACT(ndlp)) {
690 ndlp = lpfc_enable_node(vport, ndlp,
692 if (!ndlp)
695 /* Remove ndlp from vport npld list */
696 lpfc_dequeue_node(vport, ndlp);
700 NLP_SET_FREE_REQ(ndlp);
702 /* Kick off release ndlp when it can be safely done */
703 lpfc_nlp_put(ndlp);
709 if (ndlp && NLP_CHK_NODE_ACT(ndlp) &&
710 ndlp->nlp_state == NLP_STE_UNMAPPED_NODE &&
724 /* First look for the Fabric ndlp */
725 ndlp = lpfc_findnode_did(vport, Fabric_DID);
726 if (!ndlp) {
727 /* Cannot find existing Fabric ndlp, allocate one */
728 ndlp = lpfc_nlp_init(vport, Fabric_DID);
729 if (!ndlp)
732 NLP_SET_FREE_REQ(ndlp);
734 if (!NLP_CHK_NODE_ACT(ndlp)) {
735 ndlp = lpfc_enable_node(vport, ndlp,
737 if (!ndlp)
741 /* Remove ndlp from vport list */
742 lpfc_dequeue_node(vport, ndlp);
744 if (!NLP_CHK_FREE_REQ(ndlp))
746 NLP_SET_FREE_REQ(ndlp);
748 /* Skip this if ndlp is already in free mode */
758 * the ndlp.
761 lpfc_nlp_put(ndlp);
767 if (!lpfc_issue_els_npiv_logo(vport, ndlp))
778 * If the NameServer ndlp has been incremented to allow the DA_ID CT
779 * command to be sent, decrement the ndlp now.
782 ndlp = lpfc_findnode_did(vport, NameServer_DID);
783 lpfc_nlp_put(ndlp);
865 struct lpfc_nodelist *ndlp = NULL, *next_ndlp = NULL;
867 list_for_each_entry_safe(ndlp, next_ndlp, &vport->fc_nodes, nlp_listp) {
868 if (!NLP_CHK_NODE_ACT(ndlp))
870 if (ndlp->lat_data)
871 memset(ndlp->lat_data, 0, LPFC_MAX_BUCKET_COUNT *
887 struct lpfc_nodelist *ndlp = NULL, *next_ndlp = NULL;
889 list_for_each_entry_safe(ndlp, next_ndlp, &vport->fc_nodes, nlp_listp) {
890 if (!NLP_CHK_NODE_ACT(ndlp))
893 kfree(ndlp->lat_data);
894 ndlp->lat_data = NULL;
896 if (ndlp->nlp_state == NLP_STE_MAPPED_NODE) {
897 ndlp->lat_data = kcalloc(LPFC_MAX_BUCKET_COUNT,
901 if (!ndlp->lat_data)
906 "0x%x\n", ndlp->nlp_DID);
921 struct lpfc_nodelist *ndlp = NULL, *next_ndlp = NULL;
923 list_for_each_entry_safe(ndlp, next_ndlp, &vport->fc_nodes, nlp_listp) {
924 if (!NLP_CHK_NODE_ACT(ndlp))
927 kfree(ndlp->lat_data);
928 ndlp->lat_data = NULL;