Lines Matching refs:ndlp

342 	struct lpfc_nodelist *ndlp;  in lpfc_nvme_info_show()  local
548 list_for_each_entry(ndlp, &vport->fc_nodes, nlp_listp) { in lpfc_nvme_info_show()
550 spin_lock(&ndlp->lock); in lpfc_nvme_info_show()
551 rport = lpfc_ndlp_get_nrport(ndlp); in lpfc_nvme_info_show()
554 spin_unlock(&ndlp->lock); in lpfc_nvme_info_show()
3696 struct lpfc_nodelist *ndlp; in lpfc_update_rport_devloss_tmo() local
3704 list_for_each_entry(ndlp, &vport->fc_nodes, nlp_listp) { in lpfc_update_rport_devloss_tmo()
3705 if (ndlp->rport) in lpfc_update_rport_devloss_tmo()
3706 ndlp->rport->dev_loss_tmo = vport->cfg_devloss_tmo; in lpfc_update_rport_devloss_tmo()
3708 spin_lock(&ndlp->lock); in lpfc_update_rport_devloss_tmo()
3709 rport = lpfc_ndlp_get_nrport(ndlp); in lpfc_update_rport_devloss_tmo()
3712 spin_unlock(&ndlp->lock); in lpfc_update_rport_devloss_tmo()
3905 struct lpfc_nodelist *ndlp; in lpfc_tgt_queue_depth_set() local
3917 list_for_each_entry(ndlp, &vport->fc_nodes, nlp_listp) in lpfc_tgt_queue_depth_set()
3918 ndlp->cmd_qdepth = vport->cfg_tgt_queue_depth; in lpfc_tgt_queue_depth_set()
5208 struct lpfc_nodelist *ndlp, *next_ndlp; in lpfc_max_scsicmpl_time_set() local
5217 list_for_each_entry_safe(ndlp, next_ndlp, &vport->fc_nodes, nlp_listp) { in lpfc_max_scsicmpl_time_set()
5218 if (ndlp->nlp_state == NLP_STE_UNUSED_NODE) in lpfc_max_scsicmpl_time_set()
5220 ndlp->cmd_qdepth = vport->cfg_tgt_queue_depth; in lpfc_max_scsicmpl_time_set()
6839 struct lpfc_nodelist *ndlp; in lpfc_get_node_by_target() local
6843 list_for_each_entry(ndlp, &vport->fc_nodes, nlp_listp) { in lpfc_get_node_by_target()
6844 if (ndlp->nlp_state == NLP_STE_MAPPED_NODE && in lpfc_get_node_by_target()
6845 starget->id == ndlp->nlp_sid) { in lpfc_get_node_by_target()
6847 return ndlp; in lpfc_get_node_by_target()
6861 struct lpfc_nodelist *ndlp = lpfc_get_node_by_target(starget); in lpfc_get_starget_port_id() local
6863 fc_starget_port_id(starget) = ndlp ? ndlp->nlp_DID : -1; in lpfc_get_starget_port_id()
6875 struct lpfc_nodelist *ndlp = lpfc_get_node_by_target(starget); in lpfc_get_starget_node_name() local
6878 ndlp ? wwn_to_u64(ndlp->nlp_nodename.u.wwn) : 0; in lpfc_get_starget_node_name()
6890 struct lpfc_nodelist *ndlp = lpfc_get_node_by_target(starget); in lpfc_get_starget_port_name() local
6893 ndlp ? wwn_to_u64(ndlp->nlp_portname.u.wwn) : 0; in lpfc_get_starget_port_name()
6909 struct lpfc_nodelist *ndlp = rdata->pnode; in lpfc_set_rport_loss_tmo() local
6919 if (!ndlp) { in lpfc_set_rport_loss_tmo()
6927 nrport = lpfc_ndlp_get_nrport(ndlp); in lpfc_set_rport_loss_tmo()