Lines Matching refs:ndlp
2180 struct lpfc_nodelist *ndlp; in lpfc_update_rport_devloss_tmo() local
2184 list_for_each_entry(ndlp, &vport->fc_nodes, nlp_listp) in lpfc_update_rport_devloss_tmo()
2185 if (NLP_CHK_NODE_ACT(ndlp) && ndlp->rport) in lpfc_update_rport_devloss_tmo()
2186 ndlp->rport->dev_loss_tmo = vport->cfg_devloss_tmo; in lpfc_update_rport_devloss_tmo()
2828 struct lpfc_nodelist *ndlp = NULL; in sysfs_drvr_stat_data_read() local
2837 list_for_each_entry(ndlp, &vport->fc_nodes, nlp_listp) { in sysfs_drvr_stat_data_read()
2838 if (!NLP_CHK_NODE_ACT(ndlp) || !ndlp->lat_data) in sysfs_drvr_stat_data_read()
2850 if (!ndlp->lat_data) in sysfs_drvr_stat_data_read()
2855 ndlp->nlp_portname.u.wwn[0], in sysfs_drvr_stat_data_read()
2856 ndlp->nlp_portname.u.wwn[1], in sysfs_drvr_stat_data_read()
2857 ndlp->nlp_portname.u.wwn[2], in sysfs_drvr_stat_data_read()
2858 ndlp->nlp_portname.u.wwn[3], in sysfs_drvr_stat_data_read()
2859 ndlp->nlp_portname.u.wwn[4], in sysfs_drvr_stat_data_read()
2860 ndlp->nlp_portname.u.wwn[5], in sysfs_drvr_stat_data_read()
2861 ndlp->nlp_portname.u.wwn[6], in sysfs_drvr_stat_data_read()
2862 ndlp->nlp_portname.u.wwn[7]); in sysfs_drvr_stat_data_read()
2868 ndlp->lat_data[i].cmd_count); in sysfs_drvr_stat_data_read()
3215 struct lpfc_nodelist *ndlp, *next_ndlp; in lpfc_max_scsicmpl_time_set() local
3224 list_for_each_entry_safe(ndlp, next_ndlp, &vport->fc_nodes, nlp_listp) { in lpfc_max_scsicmpl_time_set()
3225 if (!NLP_CHK_NODE_ACT(ndlp)) in lpfc_max_scsicmpl_time_set()
3227 if (ndlp->nlp_state == NLP_STE_UNUSED_NODE) in lpfc_max_scsicmpl_time_set()
3229 ndlp->cmd_qdepth = vport->cfg_tgt_queue_depth; in lpfc_max_scsicmpl_time_set()
4407 struct lpfc_nodelist *ndlp; in lpfc_get_node_by_target() local
4411 list_for_each_entry(ndlp, &vport->fc_nodes, nlp_listp) { in lpfc_get_node_by_target()
4412 if (NLP_CHK_NODE_ACT(ndlp) && in lpfc_get_node_by_target()
4413 ndlp->nlp_state == NLP_STE_MAPPED_NODE && in lpfc_get_node_by_target()
4414 starget->id == ndlp->nlp_sid) { in lpfc_get_node_by_target()
4416 return ndlp; in lpfc_get_node_by_target()
4430 struct lpfc_nodelist *ndlp = lpfc_get_node_by_target(starget); in lpfc_get_starget_port_id() local
4432 fc_starget_port_id(starget) = ndlp ? ndlp->nlp_DID : -1; in lpfc_get_starget_port_id()
4444 struct lpfc_nodelist *ndlp = lpfc_get_node_by_target(starget); in lpfc_get_starget_node_name() local
4447 ndlp ? wwn_to_u64(ndlp->nlp_nodename.u.wwn) : 0; in lpfc_get_starget_node_name()
4459 struct lpfc_nodelist *ndlp = lpfc_get_node_by_target(starget); in lpfc_get_starget_port_name() local
4462 ndlp ? wwn_to_u64(ndlp->nlp_portname.u.wwn) : 0; in lpfc_get_starget_port_name()