Home
last modified time | relevance | path

Searched refs:ndlp (Results 1 – 16 of 16) sorted by relevance

/drivers/scsi/lpfc/
Dlpfc_nportdisc.c48 lpfc_check_adisc(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, in lpfc_check_adisc() argument
52 if (!(ndlp->nlp_flag & NLP_RPI_REGISTERED)) in lpfc_check_adisc()
58 if (memcmp(nn, &ndlp->nlp_nodename, sizeof (struct lpfc_name))) in lpfc_check_adisc()
61 if (memcmp(pn, &ndlp->nlp_portname, sizeof (struct lpfc_name))) in lpfc_check_adisc()
69 lpfc_check_sparm(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, in lpfc_check_sparm() argument
147 memcpy(&ndlp->nlp_nodename, &sp->nodeName, sizeof (struct lpfc_name)); in lpfc_check_sparm()
148 memcpy(&ndlp->nlp_portname, &sp->portName, sizeof (struct lpfc_name)); in lpfc_check_sparm()
155 ndlp->nlp_DID, in lpfc_check_sparm()
204 lpfc_els_abort(struct lpfc_hba *phba, struct lpfc_nodelist *ndlp) in lpfc_els_abort() argument
214 lpfc_printf_vlog(ndlp->vport, KERN_INFO, LOG_DISCOVERY, in lpfc_els_abort()
[all …]
Dlpfc_els.c51 struct lpfc_nodelist *ndlp, uint8_t retry);
151 struct lpfc_nodelist *ndlp, uint32_t did, in lpfc_prep_els_iocb() argument
279 elsiocb->context1 = lpfc_nlp_get(ndlp); in lpfc_prep_els_iocb()
303 elscmd, ndlp->nlp_DID, elsiocb->iotag, in lpfc_prep_els_iocb()
345 struct lpfc_nodelist *ndlp; in lpfc_issue_fabric_reglogin() local
351 ndlp = lpfc_findnode_did(vport, Fabric_DID); in lpfc_issue_fabric_reglogin()
352 if (!ndlp || !NLP_CHK_NODE_ACT(ndlp)) { in lpfc_issue_fabric_reglogin()
380 ndlp->nlp_rpi); in lpfc_issue_fabric_reglogin()
391 mbox->context2 = lpfc_nlp_get(ndlp); in lpfc_issue_fabric_reglogin()
405 lpfc_nlp_put(ndlp); in lpfc_issue_fabric_reglogin()
[all …]
Dlpfc_hbadisc.c73 struct lpfc_nodelist * ndlp; in lpfc_terminate_rport_io() local
77 ndlp = rdata->pnode; in lpfc_terminate_rport_io()
79 if (!ndlp || !NLP_CHK_NODE_ACT(ndlp)) { in lpfc_terminate_rport_io()
87 phba = ndlp->phba; in lpfc_terminate_rport_io()
89 lpfc_debugfs_disc_trc(ndlp->vport, LPFC_DISC_TRC_RPORT, in lpfc_terminate_rport_io()
91 ndlp->nlp_sid, ndlp->nlp_DID, ndlp->nlp_flag); in lpfc_terminate_rport_io()
93 if (ndlp->nlp_sid != NLP_NO_SID) { in lpfc_terminate_rport_io()
94 lpfc_sli_abort_iocb(ndlp->vport, in lpfc_terminate_rport_io()
96 ndlp->nlp_sid, 0, LPFC_CTX_TGT); in lpfc_terminate_rport_io()
107 struct lpfc_nodelist * ndlp; in lpfc_dev_loss_tmo_callbk() local
[all …]
Dlpfc_vport.c293 struct lpfc_nodelist *ndlp; in lpfc_vport_create() local
436 ndlp = lpfc_findnode_did(phba->pport, Fabric_DID); in lpfc_vport_create()
437 if (ndlp && NLP_CHK_NODE_ACT(ndlp) && in lpfc_vport_create()
438 ndlp->nlp_state == NLP_STE_UNMAPPED_NODE) { in lpfc_vport_create()
465 struct lpfc_nodelist *ndlp = NULL, *next_ndlp = NULL; in disable_vport() local
469 ndlp = lpfc_findnode_did(vport, Fabric_DID); in disable_vport()
470 if (ndlp && NLP_CHK_NODE_ACT(ndlp) in disable_vport()
474 if (!lpfc_issue_els_npiv_logo(vport, ndlp)) in disable_vport()
484 list_for_each_entry_safe(ndlp, next_ndlp, &vport->fc_nodes, nlp_listp) { in disable_vport()
485 if (!NLP_CHK_NODE_ACT(ndlp)) in disable_vport()
[all …]
Dlpfc_disc.h129 struct lpfc_nodelist *ndlp; member
159 #define NLP_CHK_NODE_ACT(ndlp) (((ndlp)->nlp_usg_map \ argument
162 !((ndlp)->nlp_usg_map \
164 #define NLP_SET_NODE_ACT(ndlp) ((ndlp)->nlp_usg_map \ argument
166 #define NLP_INT_NODE_ACT(ndlp) ((ndlp)->nlp_usg_map \ argument
168 #define NLP_CLR_NODE_ACT(ndlp) ((ndlp)->nlp_usg_map \ argument
170 #define NLP_CHK_IACT_REQ(ndlp) ((ndlp)->nlp_usg_map \ argument
172 #define NLP_SET_IACT_REQ(ndlp) ((ndlp)->nlp_usg_map \ argument
174 #define NLP_CHK_FREE_REQ(ndlp) ((ndlp)->nlp_usg_map \ argument
176 #define NLP_SET_FREE_REQ(ndlp) ((ndlp)->nlp_usg_map \ argument
[all …]
Dlpfc_ct.c276 if (ctiocb->context_un.ndlp) { in lpfc_ct_free_iocb()
277 lpfc_nlp_put(ctiocb->context_un.ndlp); in lpfc_ct_free_iocb()
278 ctiocb->context_un.ndlp = NULL; in lpfc_ct_free_iocb()
306 struct lpfc_nodelist *ndlp, uint32_t usr_flg, uint32_t num_entry, in lpfc_gen_req() argument
335 geniocb->context_un.ndlp = lpfc_nlp_get(ndlp); in lpfc_gen_req()
354 icmd->ulpContext = ndlp->nlp_rpi; in lpfc_gen_req()
356 icmd->ulpContext = phba->sli4_hba.rpi_ids[ndlp->nlp_rpi]; in lpfc_gen_req()
368 ndlp->nlp_DID, icmd->ulpIoTag, in lpfc_gen_req()
386 struct lpfc_dmabuf *bmp, struct lpfc_nodelist *ndlp, in lpfc_ct_cmd() argument
410 status = lpfc_gen_req(vport, bmp, inmp, outmp, cmpl, ndlp, 0, in lpfc_ct_cmd()
[all …]
Dlpfc_scsi.c227 struct lpfc_nodelist *ndlp, in lpfc_send_sdev_queuedepth_change_event() argument
246 if (ndlp && NLP_CHK_NODE_ACT(ndlp)) { in lpfc_send_sdev_queuedepth_change_event()
248 &ndlp->nlp_portname, sizeof(struct lpfc_name)); in lpfc_send_sdev_queuedepth_change_event()
250 &ndlp->nlp_nodename, sizeof(struct lpfc_name)); in lpfc_send_sdev_queuedepth_change_event()
669 struct lpfc_nodelist *ndlp; in lpfc_sli4_fcp_xri_aborted() local
684 ndlp = psb->rdata->pnode; in lpfc_sli4_fcp_xri_aborted()
686 ndlp = NULL; in lpfc_sli4_fcp_xri_aborted()
690 if (ndlp) { in lpfc_sli4_fcp_xri_aborted()
691 lpfc_set_rrq_active(phba, ndlp, xri, rxid, 1); in lpfc_sli4_fcp_xri_aborted()
692 lpfc_sli4_abts_err_handler(phba, ndlp, axri); in lpfc_sli4_fcp_xri_aborted()
[all …]
Dlpfc_attr.c2457 struct lpfc_nodelist *ndlp; in lpfc_update_rport_devloss_tmo() local
2461 list_for_each_entry(ndlp, &vport->fc_nodes, nlp_listp) in lpfc_update_rport_devloss_tmo()
2462 if (NLP_CHK_NODE_ACT(ndlp) && ndlp->rport) in lpfc_update_rport_devloss_tmo()
2463 ndlp->rport->dev_loss_tmo = vport->cfg_devloss_tmo; in lpfc_update_rport_devloss_tmo()
3116 struct lpfc_nodelist *ndlp = NULL; in sysfs_drvr_stat_data_read() local
3125 list_for_each_entry(ndlp, &vport->fc_nodes, nlp_listp) { in sysfs_drvr_stat_data_read()
3126 if (!NLP_CHK_NODE_ACT(ndlp) || !ndlp->lat_data) in sysfs_drvr_stat_data_read()
3138 if (!ndlp->lat_data) in sysfs_drvr_stat_data_read()
3143 ndlp->nlp_portname.u.wwn[0], in sysfs_drvr_stat_data_read()
3144 ndlp->nlp_portname.u.wwn[1], in sysfs_drvr_stat_data_read()
[all …]
Dlpfc_bsg.c75 struct lpfc_nodelist *ndlp; member
170 struct lpfc_nodelist *ndlp; in lpfc_bsg_send_mgmt_cmd_cmp() local
189 ndlp = cmdiocbq->context1; in lpfc_bsg_send_mgmt_cmd_cmp()
217 lpfc_nlp_put(ndlp); in lpfc_bsg_send_mgmt_cmd_cmp()
238 struct lpfc_nodelist *ndlp = rdata->pnode; in lpfc_bsg_send_mgmt_cmd() local
266 if (!lpfc_nlp_get(ndlp)) { in lpfc_bsg_send_mgmt_cmd()
277 if (ndlp->nlp_flag & NLP_ELS_SND_MASK) { in lpfc_bsg_send_mgmt_cmd()
335 cmd->ulpContext = ndlp->nlp_rpi; in lpfc_bsg_send_mgmt_cmd()
337 cmd->ulpContext = phba->sli4_hba.rpi_ids[ndlp->nlp_rpi]; in lpfc_bsg_send_mgmt_cmd()
346 cmdiocbq->context1 = ndlp; in lpfc_bsg_send_mgmt_cmd()
[all …]
Dlpfc_sli.c572 struct lpfc_nodelist *ndlp = NULL; in lpfc_clr_rrq_active() local
574 if ((rrq->vport) && NLP_CHK_NODE_ACT(rrq->ndlp)) in lpfc_clr_rrq_active()
575 ndlp = lpfc_findnode_did(rrq->vport, rrq->nlp_DID); in lpfc_clr_rrq_active()
581 if ((!ndlp) && rrq->ndlp) in lpfc_clr_rrq_active()
582 ndlp = rrq->ndlp; in lpfc_clr_rrq_active()
584 if (!ndlp) in lpfc_clr_rrq_active()
587 if (test_and_clear_bit(xritag, ndlp->active_rrqs.xri_bitmap)) { in lpfc_clr_rrq_active()
688 lpfc_cleanup_vports_rrqs(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp) in lpfc_cleanup_vports_rrqs() argument
699 if (!ndlp) { in lpfc_cleanup_vports_rrqs()
705 if ((rrq->vport == vport) && (!ndlp || rrq->ndlp == ndlp)) in lpfc_cleanup_vports_rrqs()
[all …]
Dlpfc_init.c2308 struct lpfc_nodelist *ndlp, *next_ndlp; in lpfc_cleanup() local
2314 list_for_each_entry_safe(ndlp, next_ndlp, &vport->fc_nodes, nlp_listp) { in lpfc_cleanup()
2315 if (!NLP_CHK_NODE_ACT(ndlp)) { in lpfc_cleanup()
2316 ndlp = lpfc_enable_node(vport, ndlp, in lpfc_cleanup()
2318 if (!ndlp) in lpfc_cleanup()
2321 NLP_SET_FREE_REQ(ndlp); in lpfc_cleanup()
2324 lpfc_nlp_put(ndlp); in lpfc_cleanup()
2328 if (NLP_CHK_FREE_REQ(ndlp)) { in lpfc_cleanup()
2334 NLP_SET_FREE_REQ(ndlp); in lpfc_cleanup()
2338 ndlp->nlp_DID == Fabric_DID) { in lpfc_cleanup()
[all …]
Dlpfc_debugfs.c531 struct lpfc_nodelist *ndlp; in lpfc_debugfs_nodelist_data() local
537 list_for_each_entry(ndlp, &vport->fc_nodes, nlp_listp) { in lpfc_debugfs_nodelist_data()
544 switch (ndlp->nlp_state) { in lpfc_debugfs_nodelist_data()
573 statep, ndlp->nlp_DID); in lpfc_debugfs_nodelist_data()
574 name = (unsigned char *)&ndlp->nlp_portname; in lpfc_debugfs_nodelist_data()
579 name = (unsigned char *)&ndlp->nlp_nodename; in lpfc_debugfs_nodelist_data()
585 ndlp->nlp_rpi, ndlp->nlp_flag); in lpfc_debugfs_nodelist_data()
586 if (!ndlp->nlp_type) in lpfc_debugfs_nodelist_data()
588 if (ndlp->nlp_type & NLP_FC_NODE) in lpfc_debugfs_nodelist_data()
590 if (ndlp->nlp_type & NLP_FABRIC) in lpfc_debugfs_nodelist_data()
[all …]
Dlpfc_sli.h88 struct lpfc_nodelist *ndlp; member
Dlpfc_mbox.c2295 lpfc_resume_rpi(struct lpfcMboxq *mbox, struct lpfc_nodelist *ndlp) in lpfc_resume_rpi() argument
2297 struct lpfc_hba *phba = ndlp->phba; in lpfc_resume_rpi()
2304 phba->sli4_hba.rpi_ids[ndlp->nlp_rpi]); in lpfc_resume_rpi()
2306 resume_rpi->event_tag = ndlp->phba->fc_eventTag; in lpfc_resume_rpi()
Dlpfc_sli4.h552 struct lpfc_nodelist *ndlp; /* ndlp associated with IO */ member
Dlpfc_crtn.h101 int lpfc_nlp_not_used(struct lpfc_nodelist *ndlp);