Lines Matching defs:ndlp

342 	struct lpfc_nodelist *ndlp;
548 list_for_each_entry(ndlp, &vport->fc_nodes, nlp_listp) {
550 spin_lock(&ndlp->lock);
551 rport = lpfc_ndlp_get_nrport(ndlp);
554 spin_unlock(&ndlp->lock);
3762 * Update all the ndlp's dev loss tmo with the vport devloss tmo value.
3768 struct lpfc_nodelist *ndlp;
3776 list_for_each_entry(ndlp, &vport->fc_nodes, nlp_listp) {
3777 if (ndlp->rport)
3778 ndlp->rport->dev_loss_tmo = vport->cfg_devloss_tmo;
3780 spin_lock(&ndlp->lock);
3781 rport = lpfc_ndlp_get_nrport(ndlp);
3784 spin_unlock(&ndlp->lock);
3977 struct lpfc_nodelist *ndlp;
3989 list_for_each_entry(ndlp, &vport->fc_nodes, nlp_listp)
3990 ndlp->cmd_qdepth = vport->cfg_tgt_queue_depth;
5239 struct lpfc_nodelist *ndlp, *next_ndlp;
5248 list_for_each_entry_safe(ndlp, next_ndlp, &vport->fc_nodes, nlp_listp) {
5249 if (ndlp->nlp_state == NLP_STE_UNUSED_NODE)
5251 ndlp->cmd_qdepth = vport->cfg_tgt_queue_depth;
6870 struct lpfc_nodelist *ndlp;
6874 list_for_each_entry(ndlp, &vport->fc_nodes, nlp_listp) {
6875 if (ndlp->nlp_state == NLP_STE_MAPPED_NODE &&
6876 starget->id == ndlp->nlp_sid) {
6878 return ndlp;
6886 * lpfc_get_starget_port_id - Set the target port id to the ndlp DID or -1
6892 struct lpfc_nodelist *ndlp = lpfc_get_node_by_target(starget);
6894 fc_starget_port_id(starget) = ndlp ? ndlp->nlp_DID : -1;
6901 * Description: Set the target node name to the ndlp node name wwn or zero.
6906 struct lpfc_nodelist *ndlp = lpfc_get_node_by_target(starget);
6909 ndlp ? wwn_to_u64(ndlp->nlp_nodename.u.wwn) : 0;
6916 * Description: set the target port name to the ndlp port name wwn or zero.
6921 struct lpfc_nodelist *ndlp = lpfc_get_node_by_target(starget);
6924 ndlp ? wwn_to_u64(ndlp->nlp_portname.u.wwn) : 0;
6940 struct lpfc_nodelist *ndlp = rdata->pnode;
6950 if (!ndlp) {
6958 nrport = lpfc_ndlp_get_nrport(ndlp);