Home
last modified time | relevance | path

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

/linux/drivers/scsi/lpfc/
H A Dlpfc_vport.c295 struct lpfc_nodelist *ndlp; in lpfc_vport_create() local
462 ndlp = lpfc_findnode_did(phba->pport, Fabric_DID); in lpfc_vport_create()
463 if (ndlp && in lpfc_vport_create()
464 ndlp->nlp_state == NLP_STE_UNMAPPED_NODE) { in lpfc_vport_create()
487 lpfc_send_npiv_logo(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp) in lpfc_send_npiv_logo() argument
494 spin_lock_irq(&ndlp->lock); in lpfc_send_npiv_logo()
495 if (!test_bit(NLP_WAIT_FOR_LOGO, &ndlp->save_flags) && in lpfc_send_npiv_logo()
496 !ndlp->logo_waitq) { in lpfc_send_npiv_logo()
497 ndlp->logo_waitq = &waitq; in lpfc_send_npiv_logo()
498 ndlp->nlp_fcp_info &= ~NLP_FCP_2_DEVICE; in lpfc_send_npiv_logo()
[all …]
H A Dlpfc_ct.c118 struct lpfc_nodelist *ndlp; in lpfc_ct_unsol_cmpl() local
121 ndlp = cmdiocb->ndlp; in lpfc_ct_unsol_cmpl()
122 if (ndlp) in lpfc_ct_unsol_cmpl()
123 lpfc_nlp_put(ndlp); in lpfc_ct_unsol_cmpl()
153 lpfc_ct_reject_event(struct lpfc_nodelist *ndlp, in lpfc_ct_reject_event() argument
157 struct lpfc_vport *vport = ndlp->vport; in lpfc_ct_reject_event()
225 phba->sli4_hba.rpi_ids[ndlp->nlp_rpi], in lpfc_ct_reject_event()
244 cmdiocbq->ndlp = lpfc_nlp_get(ndlp); in lpfc_ct_reject_event()
245 if (!cmdiocbq->ndlp) in lpfc_ct_reject_event()
250 lpfc_nlp_put(ndlp); in lpfc_ct_reject_event()
[all …]
H A Dlpfc_nvme.h37 #define lpfc_ndlp_get_nrport(ndlp) \ argument
38 ((!ndlp->nrport || (ndlp->fc4_xpt_flags & NVME_XPT_UNREG_WAIT))\
39 ? NULL : ndlp->nrport)
71 struct lpfc_nodelist *ndlp; member
197 struct lpfc_nodelist *ndlp; member
233 int __lpfc_nvme_ls_req(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
241 struct lpfc_nodelist *ndlp, struct nvmefc_ls_req *pnvme_lsreq);
H A Dlpfc_scsi.c437 struct lpfc_nodelist *ndlp; in lpfc_sli4_io_xri_aborted() local
479 ndlp = psb->rdata->pnode; in lpfc_sli4_io_xri_aborted()
481 ndlp = NULL; in lpfc_sli4_io_xri_aborted()
487 if (ndlp && !offline) { in lpfc_sli4_io_xri_aborted()
488 lpfc_set_rrq_active(phba, ndlp, in lpfc_sli4_io_xri_aborted()
490 lpfc_sli4_abts_err_handler(phba, ndlp, axri); in lpfc_sli4_io_xri_aborted()
563 lpfc_get_scsi_buf_s3(struct lpfc_hba *phba, struct lpfc_nodelist *ndlp, in lpfc_get_scsi_buf_s3() argument
584 if (lpfc_ndlp_check_qdepth(phba, ndlp) && lpfc_cmd) { in lpfc_get_scsi_buf_s3()
585 atomic_inc(&ndlp->cmd_pending); in lpfc_get_scsi_buf_s3()
604 lpfc_get_scsi_buf_s4(struct lpfc_hba *phba, struct lpfc_nodelist *ndlp, in lpfc_get_scsi_buf_s4() argument
[all …]
H A Dlpfc_sli.c982 struct lpfc_nodelist *ndlp = NULL; in lpfc_clr_rrq_active() local
986 ndlp = lpfc_findnode_did(rrq->vport, rrq->nlp_DID); in lpfc_clr_rrq_active()
988 if (!ndlp) in lpfc_clr_rrq_active()
991 if (test_and_clear_bit(xritag, ndlp->active_rrqs_xri_bitmap)) { in lpfc_clr_rrq_active()
1093 lpfc_cleanup_vports_rrqs(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp) in lpfc_cleanup_vports_rrqs() argument
1104 if (!ndlp) { in lpfc_cleanup_vports_rrqs()
1113 if (!ndlp || ndlp == lpfc_findnode_did(vport, rrq->nlp_DID)) in lpfc_cleanup_vports_rrqs()
1136 lpfc_test_rrq_active(struct lpfc_hba *phba, struct lpfc_nodelist *ndlp, in lpfc_test_rrq_active() argument
1139 if (!ndlp) in lpfc_test_rrq_active()
1141 if (!ndlp->active_rrqs_xri_bitmap) in lpfc_test_rrq_active()
[all …]
H A Dlpfc_bsg.c78 struct lpfc_nodelist *ndlp; member
308 struct lpfc_nodelist *ndlp; in lpfc_bsg_send_mgmt_cmd_cmp() local
332 ndlp = iocb->cmdiocbq->ndlp; in lpfc_bsg_send_mgmt_cmd_cmp()
370 lpfc_nlp_put(ndlp); in lpfc_bsg_send_mgmt_cmd_cmp()
394 struct lpfc_nodelist *ndlp = rdata->pnode; in lpfc_bsg_send_mgmt_cmd() local
411 if (test_bit(NLP_PLOGI_SND, &ndlp->nlp_flag) || in lpfc_bsg_send_mgmt_cmd()
412 test_bit(NLP_PRLI_SND, &ndlp->nlp_flag) || in lpfc_bsg_send_mgmt_cmd()
413 test_bit(NLP_ADISC_SND, &ndlp->nlp_flag) || in lpfc_bsg_send_mgmt_cmd()
414 test_bit(NLP_LOGO_SND, &ndlp->nlp_flag) || in lpfc_bsg_send_mgmt_cmd()
415 test_bit(NLP_RNID_SND, &ndlp->nlp_flag)) in lpfc_bsg_send_mgmt_cmd()
[all …]
H A Dlpfc_attr.c455 struct lpfc_nodelist *ndlp; in lpfc_nvme_info_show() local
626 list_for_each_entry(ndlp, &vport->fc_nodes, nlp_listp) { in lpfc_nvme_info_show()
628 spin_lock(&ndlp->lock); in lpfc_nvme_info_show()
629 rport = lpfc_ndlp_get_nrport(ndlp); in lpfc_nvme_info_show()
632 spin_unlock(&ndlp->lock); in lpfc_nvme_info_show()
3817 struct lpfc_nodelist *ndlp; in lpfc_update_rport_devloss_tmo() local
3825 list_for_each_entry(ndlp, &vport->fc_nodes, nlp_listp) { in lpfc_update_rport_devloss_tmo()
3826 if (ndlp->rport) in lpfc_update_rport_devloss_tmo()
3827 ndlp->rport->dev_loss_tmo = vport->cfg_devloss_tmo; in lpfc_update_rport_devloss_tmo()
3829 spin_lock(&ndlp->lock); in lpfc_update_rport_devloss_tmo()
[all …]
H A Dlpfc_debugfs.c801 struct lpfc_nodelist *ndlp; in lpfc_debugfs_nodelist_data() local
813 list_for_each_entry(ndlp, &vport->fc_nodes, nlp_listp) { in lpfc_debugfs_nodelist_data()
821 switch (ndlp->nlp_state) { in lpfc_debugfs_nodelist_data()
855 statep, ndlp->nlp_DID); in lpfc_debugfs_nodelist_data()
858 wwn_to_u64(ndlp->nlp_portname.u.wwn)); in lpfc_debugfs_nodelist_data()
861 wwn_to_u64(ndlp->nlp_nodename.u.wwn)); in lpfc_debugfs_nodelist_data()
863 ndlp->nlp_rpi); in lpfc_debugfs_nodelist_data()
865 ndlp->nlp_flag); in lpfc_debugfs_nodelist_data()
866 if (ndlp->nlp_enc_info.status) { in lpfc_debugfs_nodelist_data()
870 ndlp->nlp_enc_info.level in lpfc_debugfs_nodelist_data()
[all …]
H A Dlpfc_sli.h144 struct lpfc_nodelist *ndlp; member
436 struct lpfc_nodelist *ndlp; member
H A Dlpfc_init.c3057 struct lpfc_nodelist *ndlp, *next_ndlp; in lpfc_cleanup() local
3067 list_for_each_entry_safe(ndlp, next_ndlp, &vport->fc_nodes, nlp_listp) { in lpfc_cleanup()
3071 if (ndlp->nlp_type & NLP_FABRIC && in lpfc_cleanup()
3072 ndlp->nlp_state == NLP_STE_UNMAPPED_NODE) in lpfc_cleanup()
3073 lpfc_disc_state_machine(vport, ndlp, NULL, in lpfc_cleanup()
3076 if (!(ndlp->fc4_xpt_flags & (NVME_XPT_REGD|SCSI_XPT_REGD))) in lpfc_cleanup()
3077 lpfc_disc_state_machine(vport, ndlp, NULL, in lpfc_cleanup()
3106 list_for_each_entry_safe(ndlp, next_ndlp, in lpfc_cleanup()
3108 lpfc_printf_vlog(ndlp->vport, KERN_ERR, in lpfc_cleanup()
3113 ndlp->nlp_DID, (void *)ndlp, in lpfc_cleanup()
[all …]
/linux/Documentation/scsi/
H A 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 …]