• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/scsi/lpfc/

Lines Matching refs:ndlp

2135 	struct lpfc_nodelist *ndlp, *next_ndlp;
2141 list_for_each_entry_safe(ndlp, next_ndlp, &vport->fc_nodes, nlp_listp) {
2142 if (!NLP_CHK_NODE_ACT(ndlp)) {
2143 ndlp = lpfc_enable_node(vport, ndlp,
2145 if (!ndlp)
2148 NLP_SET_FREE_REQ(ndlp);
2150 /* Trigger the release of the ndlp memory */
2151 lpfc_nlp_put(ndlp);
2155 if (NLP_CHK_FREE_REQ(ndlp)) {
2156 /* The ndlp should not be in memory free mode already */
2160 /* Indicate request for freeing ndlp memory */
2161 NLP_SET_FREE_REQ(ndlp);
2165 ndlp->nlp_DID == Fabric_DID) {
2166 /* Just free up ndlp with Fabric_DID for vports */
2167 lpfc_nlp_put(ndlp);
2171 if (ndlp->nlp_type & NLP_FABRIC)
2172 lpfc_disc_state_machine(vport, ndlp, NULL,
2175 lpfc_disc_state_machine(vport, ndlp, NULL,
2180 /* At this point, ALL ndlp's should be gone
2188 list_for_each_entry_safe(ndlp, next_ndlp,
2190 lpfc_printf_vlog(ndlp->vport, KERN_ERR,
2192 "0282 did:x%x ndlp:x%p "
2194 ndlp->nlp_DID, (void *)ndlp,
2195 ndlp->nlp_usg_map,
2197 &ndlp->kref.refcount));
2441 struct lpfc_nodelist *ndlp, *next_ndlp;
2467 list_for_each_entry_safe(ndlp, next_ndlp,
2470 if (!NLP_CHK_NODE_ACT(ndlp))
2472 if (ndlp->nlp_state == NLP_STE_UNUSED_NODE)
2474 if (ndlp->nlp_type & NLP_FABRIC) {
2475 lpfc_disc_state_machine(vports[i], ndlp,
2477 lpfc_disc_state_machine(vports[i], ndlp,
2481 ndlp->nlp_flag &= ~NLP_NPR_ADISC;
2483 lpfc_unreg_rpi(vports[i], ndlp);
3271 * Return the pointer to the ndlp with the vport if successful, otherwise
3277 struct lpfc_nodelist *ndlp;
3286 ndlp = lpfc_findnode_did(vport, Fabric_DID);
3287 if (!ndlp) {
3288 /* Cannot find existing Fabric ndlp, so allocate a new one */
3289 ndlp = mempool_alloc(phba->nlp_mem_pool, GFP_KERNEL);
3290 if (!ndlp)
3292 lpfc_nlp_init(vport, ndlp, Fabric_DID);
3294 ndlp->nlp_type |= NLP_FABRIC;
3295 /* Put ndlp onto node list */
3296 lpfc_enqueue_node(vport, ndlp);
3297 } else if (!NLP_CHK_NODE_ACT(ndlp)) {
3298 /* re-setup ndlp without removing from node list */
3299 ndlp = lpfc_enable_node(vport, ndlp, NLP_STE_UNUSED_NODE);
3300 if (!ndlp)
3317 return ndlp;
3354 struct lpfc_nodelist *ndlp;
3502 ndlp = lpfc_sli4_perform_vport_cvl(vport);
3503 if (!ndlp)
3526 mod_timer(&ndlp->nlp_delayfunc, jiffies + HZ);
3529 ndlp->nlp_flag |= NLP_DELAY_TMO;
3531 ndlp->nlp_last_elscmd = ELS_CMD_FDISC;
4394 /* Initialize ndlp management spinlock */