Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/scsi/lpfc/
Dlpfc_nportdisc.c52 lpfc_check_adisc(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, in lpfc_check_adisc() argument
56 if (!(ndlp->nlp_flag & NLP_RPI_REGISTERED)) in lpfc_check_adisc()
62 if (memcmp(nn, &ndlp->nlp_nodename, sizeof (struct lpfc_name))) in lpfc_check_adisc()
65 if (memcmp(pn, &ndlp->nlp_portname, sizeof (struct lpfc_name))) in lpfc_check_adisc()
73 lpfc_check_sparm(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, in lpfc_check_sparm() argument
151 memcpy(&ndlp->nlp_nodename, &sp->nodeName, sizeof (struct lpfc_name)); in lpfc_check_sparm()
152 memcpy(&ndlp->nlp_portname, &sp->portName, sizeof (struct lpfc_name)); in lpfc_check_sparm()
159 ndlp->nlp_DID, in lpfc_check_sparm()
208 lpfc_els_abort(struct lpfc_hba *phba, struct lpfc_nodelist *ndlp) in lpfc_els_abort() argument
221 lpfc_printf_vlog(ndlp->vport, KERN_INFO, LOG_DISCOVERY, in lpfc_els_abort()
[all …]
Dlpfc_hbadisc.c80 struct lpfc_nodelist * ndlp; in lpfc_terminate_rport_io() local
84 ndlp = rdata->pnode; in lpfc_terminate_rport_io()
86 if (!ndlp || !NLP_CHK_NODE_ACT(ndlp)) { in lpfc_terminate_rport_io()
94 phba = ndlp->phba; in lpfc_terminate_rport_io()
96 lpfc_debugfs_disc_trc(ndlp->vport, LPFC_DISC_TRC_RPORT, in lpfc_terminate_rport_io()
98 ndlp->nlp_sid, ndlp->nlp_DID, ndlp->nlp_flag); in lpfc_terminate_rport_io()
100 if (ndlp->nlp_sid != NLP_NO_SID) { in lpfc_terminate_rport_io()
101 lpfc_sli_abort_iocb(ndlp->vport, in lpfc_terminate_rport_io()
103 ndlp->nlp_sid, 0, LPFC_CTX_TGT); in lpfc_terminate_rport_io()
114 struct lpfc_nodelist * ndlp; in lpfc_dev_loss_tmo_callbk() local
[all …]
Dlpfc_els.c55 struct lpfc_nodelist *ndlp, uint8_t retry);
155 struct lpfc_nodelist *ndlp, uint32_t did, in lpfc_prep_els_iocb() argument
304 elsiocb->context1 = lpfc_nlp_get(ndlp); in lpfc_prep_els_iocb()
323 vport->port_state, ndlp->nlp_rpi, in lpfc_prep_els_iocb()
331 elscmd, ndlp->nlp_DID, elsiocb->iotag, in lpfc_prep_els_iocb()
333 ndlp->nlp_rpi, vport->fc_flag); in lpfc_prep_els_iocb()
374 struct lpfc_nodelist *ndlp; in lpfc_issue_fabric_reglogin() local
380 ndlp = lpfc_findnode_did(vport, Fabric_DID); in lpfc_issue_fabric_reglogin()
381 if (!ndlp || !NLP_CHK_NODE_ACT(ndlp)) { in lpfc_issue_fabric_reglogin()
409 ndlp->nlp_rpi); in lpfc_issue_fabric_reglogin()
[all …]
Dlpfc_disc.h154 struct lpfc_nodelist *ndlp; member
158 #define lpfc_ndlp_check_qdepth(phba, ndlp) \ argument
159 (ndlp->cmd_qdepth < phba->sli4_hba.max_cfg_param.max_xri)
196 #define NLP_CHK_NODE_ACT(ndlp) (((ndlp)->nlp_usg_map \ argument
199 !((ndlp)->nlp_usg_map \
201 #define NLP_SET_NODE_ACT(ndlp) ((ndlp)->nlp_usg_map \ argument
203 #define NLP_INT_NODE_ACT(ndlp) ((ndlp)->nlp_usg_map \ argument
205 #define NLP_CLR_NODE_ACT(ndlp) ((ndlp)->nlp_usg_map \ argument
207 #define NLP_CHK_IACT_REQ(ndlp) ((ndlp)->nlp_usg_map \ argument
209 #define NLP_SET_IACT_REQ(ndlp) ((ndlp)->nlp_usg_map \ argument
[all …]
Dlpfc_vport.c297 struct lpfc_nodelist *ndlp; in lpfc_vport_create() local
464 ndlp = lpfc_findnode_did(phba->pport, Fabric_DID); in lpfc_vport_create()
465 if (ndlp && NLP_CHK_NODE_ACT(ndlp) && in lpfc_vport_create()
466 ndlp->nlp_state == NLP_STE_UNMAPPED_NODE) { in lpfc_vport_create()
493 struct lpfc_nodelist *ndlp = NULL, *next_ndlp = NULL; in disable_vport() local
497 ndlp = lpfc_findnode_did(vport, Fabric_DID); in disable_vport()
498 if (ndlp && NLP_CHK_NODE_ACT(ndlp) in disable_vport()
502 if (!lpfc_issue_els_npiv_logo(vport, ndlp)) in disable_vport()
512 list_for_each_entry_safe(ndlp, next_ndlp, &vport->fc_nodes, nlp_listp) { in disable_vport()
513 if (!NLP_CHK_NODE_ACT(ndlp)) in disable_vport()
[all …]
Dlpfc_nvme.c57 lpfc_get_nvme_buf(struct lpfc_hba *phba, struct lpfc_nodelist *ndlp,
359 struct lpfc_nodelist *ndlp; in lpfc_nvme_remoteport_delete() local
361 ndlp = rport->ndlp; in lpfc_nvme_remoteport_delete()
362 if (!ndlp) in lpfc_nvme_remoteport_delete()
365 vport = ndlp->vport; in lpfc_nvme_remoteport_delete()
381 if (ndlp->upcall_flags & NLP_WAIT_FOR_UNREG) { in lpfc_nvme_remoteport_delete()
382 ndlp->nrport = NULL; in lpfc_nvme_remoteport_delete()
383 ndlp->upcall_flags &= ~NLP_WAIT_FOR_UNREG; in lpfc_nvme_remoteport_delete()
389 lpfc_nlp_put(ndlp); in lpfc_nvme_remoteport_delete()
426 vport = axchg->ndlp->vport; in lpfc_nvme_handle_lsreq()
[all …]
Dlpfc_ct.c278 if (ctiocb->context_un.ndlp) { in lpfc_ct_free_iocb()
279 lpfc_nlp_put(ctiocb->context_un.ndlp); in lpfc_ct_free_iocb()
280 ctiocb->context_un.ndlp = NULL; in lpfc_ct_free_iocb()
319 struct lpfc_nodelist *ndlp, uint32_t usr_flg, uint32_t num_entry, in lpfc_gen_req() argument
348 geniocb->context_un.ndlp = lpfc_nlp_get(ndlp); in lpfc_gen_req()
367 icmd->ulpContext = ndlp->nlp_rpi; in lpfc_gen_req()
369 icmd->ulpContext = phba->sli4_hba.rpi_ids[ndlp->nlp_rpi]; in lpfc_gen_req()
381 ndlp->nlp_DID, icmd->ulpIoTag, in lpfc_gen_req()
390 geniocb->context_un.ndlp = NULL; in lpfc_gen_req()
391 lpfc_nlp_put(ndlp); in lpfc_gen_req()
[all …]
Dlpfc_nvme.h40 #define lpfc_ndlp_get_nrport(ndlp) \ argument
41 ((!ndlp->nrport || (ndlp->upcall_flags & NLP_WAIT_FOR_UNREG)) \
42 ? NULL : ndlp->nrport)
74 struct lpfc_nodelist *ndlp; member
200 struct lpfc_nodelist *ndlp; member
236 int __lpfc_nvme_ls_req(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
244 struct lpfc_nodelist *ndlp, struct nvmefc_ls_req *pnvme_lsreq);
Dlpfc_nvmet.c1313 struct lpfc_nodelist *ndlp; in lpfc_nvmet_ls_req() local
1328 ndlp = (struct lpfc_nodelist *)hosthandle; in lpfc_nvmet_ls_req()
1330 ret = __lpfc_nvme_ls_req(phba->pport, ndlp, pnvme_lsreq, in lpfc_nvmet_ls_req()
1353 struct lpfc_nodelist *ndlp; in lpfc_nvmet_ls_abort() local
1360 ndlp = (struct lpfc_nodelist *)hosthandle; in lpfc_nvmet_ls_abort()
1362 ret = __lpfc_nvme_ls_abort(phba->pport, ndlp, pnvme_lsreq); in lpfc_nvmet_ls_abort()
1370 struct lpfc_nodelist *ndlp = hosthandle; in lpfc_nvmet_host_release() local
1374 phba = ndlp->phba; in lpfc_nvmet_host_release()
1441 ctx_buf->sglq->ndlp = NULL; in __lpfc_nvmet_clean_io_for_cpu()
1770 struct lpfc_nodelist *ndlp; in lpfc_sli4_nvmet_xri_aborted() local
[all …]
Dlpfc_scsi.c515 struct lpfc_nodelist *ndlp; in lpfc_sli4_io_xri_aborted() local
542 ndlp = psb->rdata->pnode; in lpfc_sli4_io_xri_aborted()
544 ndlp = NULL; in lpfc_sli4_io_xri_aborted()
548 if (ndlp) { in lpfc_sli4_io_xri_aborted()
549 lpfc_set_rrq_active(phba, ndlp, in lpfc_sli4_io_xri_aborted()
551 lpfc_sli4_abts_err_handler(phba, ndlp, axri); in lpfc_sli4_io_xri_aborted()
591 lpfc_get_scsi_buf_s3(struct lpfc_hba *phba, struct lpfc_nodelist *ndlp, in lpfc_get_scsi_buf_s3() argument
612 if (lpfc_ndlp_check_qdepth(phba, ndlp) && lpfc_cmd) { in lpfc_get_scsi_buf_s3()
613 atomic_inc(&ndlp->cmd_pending); in lpfc_get_scsi_buf_s3()
630 lpfc_get_scsi_buf_s4(struct lpfc_hba *phba, struct lpfc_nodelist *ndlp, in lpfc_get_scsi_buf_s4() argument
[all …]
Dlpfc_sli.c861 struct lpfc_nodelist *ndlp = NULL; in lpfc_clr_rrq_active() local
863 if ((rrq->vport) && NLP_CHK_NODE_ACT(rrq->ndlp)) in lpfc_clr_rrq_active()
864 ndlp = lpfc_findnode_did(rrq->vport, rrq->nlp_DID); in lpfc_clr_rrq_active()
870 if ((!ndlp) && rrq->ndlp) in lpfc_clr_rrq_active()
871 ndlp = rrq->ndlp; in lpfc_clr_rrq_active()
873 if (!ndlp) in lpfc_clr_rrq_active()
876 if (test_and_clear_bit(xritag, ndlp->active_rrqs_xri_bitmap)) { in lpfc_clr_rrq_active()
978 lpfc_cleanup_vports_rrqs(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp) in lpfc_cleanup_vports_rrqs() argument
989 if (!ndlp) { in lpfc_cleanup_vports_rrqs()
995 if ((rrq->vport == vport) && (!ndlp || rrq->ndlp == ndlp)) in lpfc_cleanup_vports_rrqs()
[all …]
Dlpfc_attr.c167 struct lpfc_nodelist *ndlp; in lpfc_nvme_info_show() local
373 list_for_each_entry(ndlp, &vport->fc_nodes, nlp_listp) { in lpfc_nvme_info_show()
376 rport = lpfc_ndlp_get_nrport(ndlp); in lpfc_nvme_info_show()
3642 struct lpfc_nodelist *ndlp; in lpfc_update_rport_devloss_tmo() local
3650 list_for_each_entry(ndlp, &vport->fc_nodes, nlp_listp) { in lpfc_update_rport_devloss_tmo()
3651 if (!NLP_CHK_NODE_ACT(ndlp)) in lpfc_update_rport_devloss_tmo()
3653 if (ndlp->rport) in lpfc_update_rport_devloss_tmo()
3654 ndlp->rport->dev_loss_tmo = vport->cfg_devloss_tmo; in lpfc_update_rport_devloss_tmo()
3657 rport = lpfc_ndlp_get_nrport(ndlp); in lpfc_update_rport_devloss_tmo()
3853 struct lpfc_nodelist *ndlp; in lpfc_tgt_queue_depth_set() local
[all …]
Dlpfc_bsg.c78 struct lpfc_nodelist *ndlp; member
308 struct lpfc_nodelist *ndlp; in lpfc_bsg_send_mgmt_cmd_cmp() local
332 ndlp = iocb->ndlp; in lpfc_bsg_send_mgmt_cmd_cmp()
370 lpfc_nlp_put(ndlp); in lpfc_bsg_send_mgmt_cmd_cmp()
393 struct lpfc_nodelist *ndlp = rdata->pnode; in lpfc_bsg_send_mgmt_cmd() local
420 if (!lpfc_nlp_get(ndlp)) { in lpfc_bsg_send_mgmt_cmd()
425 if (ndlp->nlp_flag & NLP_ELS_SND_MASK) { in lpfc_bsg_send_mgmt_cmd()
485 cmd->ulpContext = ndlp->nlp_rpi; in lpfc_bsg_send_mgmt_cmd()
487 cmd->ulpContext = phba->sli4_hba.rpi_ids[ndlp->nlp_rpi]; in lpfc_bsg_send_mgmt_cmd()
499 cmdiocbq->context_un.ndlp = ndlp; in lpfc_bsg_send_mgmt_cmd()
[all …]
Dlpfc_init.c2840 struct lpfc_nodelist *ndlp, *next_ndlp; in lpfc_cleanup() local
2846 list_for_each_entry_safe(ndlp, next_ndlp, &vport->fc_nodes, nlp_listp) { in lpfc_cleanup()
2847 if (!NLP_CHK_NODE_ACT(ndlp)) { in lpfc_cleanup()
2848 ndlp = lpfc_enable_node(vport, ndlp, in lpfc_cleanup()
2850 if (!ndlp) in lpfc_cleanup()
2853 NLP_SET_FREE_REQ(ndlp); in lpfc_cleanup()
2856 lpfc_nlp_put(ndlp); in lpfc_cleanup()
2860 if (NLP_CHK_FREE_REQ(ndlp)) { in lpfc_cleanup()
2866 NLP_SET_FREE_REQ(ndlp); in lpfc_cleanup()
2870 ndlp->nlp_DID == Fabric_DID) { in lpfc_cleanup()
[all …]
Dlpfc_crtn.h105 int lpfc_nlp_not_used(struct lpfc_nodelist *ndlp);
552 struct lpfc_nodelist *ndlp);
554 struct lpfc_nodelist *ndlp);
556 struct lpfc_nodelist *ndlp);
572 struct lpfc_nodelist *ndlp);
587 struct lpfc_nodelist *ndlp, u32 hwqid,
Dlpfc_sli.h113 struct lpfc_nodelist *ndlp; member
385 struct lpfc_nodelist *ndlp; member
Dlpfc_debugfs.c811 struct lpfc_nodelist *ndlp; in lpfc_debugfs_nodelist_data() local
822 list_for_each_entry(ndlp, &vport->fc_nodes, nlp_listp) { in lpfc_debugfs_nodelist_data()
830 switch (ndlp->nlp_state) { in lpfc_debugfs_nodelist_data()
864 statep, ndlp->nlp_DID); in lpfc_debugfs_nodelist_data()
867 wwn_to_u64(ndlp->nlp_portname.u.wwn)); in lpfc_debugfs_nodelist_data()
870 wwn_to_u64(ndlp->nlp_nodename.u.wwn)); in lpfc_debugfs_nodelist_data()
871 if (ndlp->nlp_flag & NLP_RPI_REGISTERED) in lpfc_debugfs_nodelist_data()
873 ndlp->nlp_rpi); in lpfc_debugfs_nodelist_data()
877 ndlp->nlp_flag); in lpfc_debugfs_nodelist_data()
878 if (!ndlp->nlp_type) in lpfc_debugfs_nodelist_data()
[all …]
Dlpfc_sli4.h993 struct lpfc_nodelist *ndlp; /* ndlp associated with IO */ member
1019 struct lpfc_nodelist *ndlp; member
1036 struct lpfc_nodelist *ndlp; member
Dlpfc_mbox.c2344 mbox->vport = rdp_context->ndlp->vport; in lpfc_mbx_cmpl_rdp_page_a2()
2381 mbox->vport = rdp_context->ndlp->vport; in lpfc_mbx_cmpl_rdp_page_a0()
2613 lpfc_resume_rpi(struct lpfcMboxq *mbox, struct lpfc_nodelist *ndlp) in lpfc_resume_rpi() argument
2615 struct lpfc_hba *phba = ndlp->phba; in lpfc_resume_rpi()
2622 phba->sli4_hba.rpi_ids[ndlp->nlp_rpi]); in lpfc_resume_rpi()
2624 resume_rpi->event_tag = ndlp->phba->fc_eventTag; in lpfc_resume_rpi()
Dlpfc.h654 (struct lpfc_hba *phba, struct lpfc_nodelist *ndlp,
/kernel/linux/linux-5.10/Documentation/scsi/
DChangeLog.lpfc538 * Fixed discovery bug: plogi cmpl uses ndlp after its freed.
539 * Fixed discovery bug: rnid acc cmpl, can potentially use ndlp
672 ndlp->nlp_Target Ensure fc_target_* routines are called properly
678 * Cleanup list_del()'s for Discovery ndlp lists.
1196 * Fixed some discovery problems: Introduced deferred ndlp removal
1246 * Move ndlp node from unmap list to map list if ADISC completed
1505 * Do not use DMABUf_t list to store ndlp context
1522 * Use safe list iterator for ndlp list
1575 mbox, iocb, ndlp, bind
1650 write to ndlp structure from lpfc_cmpl_els_acc function.
[all …]