Lines Matching defs:ndlp

167 	struct lpfc_nodelist *ndlp;
373 list_for_each_entry(ndlp, &vport->fc_nodes, nlp_listp) {
376 rport = lpfc_ndlp_get_nrport(ndlp);
3230 * @ndlp: pointer to fcp target node.
3639 * Update all the ndlp's dev loss tmo with the vport devloss tmo value.
3645 struct lpfc_nodelist *ndlp;
3653 list_for_each_entry(ndlp, &vport->fc_nodes, nlp_listp) {
3654 if (!NLP_CHK_NODE_ACT(ndlp))
3656 if (ndlp->rport)
3657 ndlp->rport->dev_loss_tmo = vport->cfg_devloss_tmo;
3660 rport = lpfc_ndlp_get_nrport(ndlp);
3856 struct lpfc_nodelist *ndlp;
3868 list_for_each_entry(ndlp, &vport->fc_nodes, nlp_listp)
3869 ndlp->cmd_qdepth = vport->cfg_tgt_queue_depth;
4410 struct lpfc_nodelist *ndlp = NULL;
4419 list_for_each_entry(ndlp, &vport->fc_nodes, nlp_listp) {
4420 if (!NLP_CHK_NODE_ACT(ndlp) || !ndlp->lat_data)
4432 if (!ndlp->lat_data)
4437 ndlp->nlp_portname.u.wwn[0],
4438 ndlp->nlp_portname.u.wwn[1],
4439 ndlp->nlp_portname.u.wwn[2],
4440 ndlp->nlp_portname.u.wwn[3],
4441 ndlp->nlp_portname.u.wwn[4],
4442 ndlp->nlp_portname.u.wwn[5],
4443 ndlp->nlp_portname.u.wwn[6],
4444 ndlp->nlp_portname.u.wwn[7]);
4450 ndlp->lat_data[i].cmd_count);
5476 struct lpfc_nodelist *ndlp, *next_ndlp;
5485 list_for_each_entry_safe(ndlp, next_ndlp, &vport->fc_nodes, nlp_listp) {
5486 if (!NLP_CHK_NODE_ACT(ndlp))
5488 if (ndlp->nlp_state == NLP_STE_UNUSED_NODE)
5490 ndlp->cmd_qdepth = vport->cfg_tgt_queue_depth;
6999 struct lpfc_nodelist *ndlp;
7003 list_for_each_entry(ndlp, &vport->fc_nodes, nlp_listp) {
7004 if (NLP_CHK_NODE_ACT(ndlp) &&
7005 ndlp->nlp_state == NLP_STE_MAPPED_NODE &&
7006 starget->id == ndlp->nlp_sid) {
7008 return ndlp;
7016 * lpfc_get_starget_port_id - Set the target port id to the ndlp DID or -1
7022 struct lpfc_nodelist *ndlp = lpfc_get_node_by_target(starget);
7024 fc_starget_port_id(starget) = ndlp ? ndlp->nlp_DID : -1;
7031 * Description: Set the target node name to the ndlp node name wwn or zero.
7036 struct lpfc_nodelist *ndlp = lpfc_get_node_by_target(starget);
7039 ndlp ? wwn_to_u64(ndlp->nlp_nodename.u.wwn) : 0;
7046 * Description: set the target port name to the ndlp port name wwn or zero.
7051 struct lpfc_nodelist *ndlp = lpfc_get_node_by_target(starget);
7054 ndlp ? wwn_to_u64(ndlp->nlp_portname.u.wwn) : 0;
7070 struct lpfc_nodelist *ndlp = rdata->pnode;
7080 if (!ndlp || !NLP_CHK_NODE_ACT(ndlp)) {
7088 nrport = lpfc_ndlp_get_nrport(ndlp);