| /linux/drivers/scsi/lpfc/ |
| H A D | lpfc_vport.c | 295 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 D | lpfc_ct.c | 118 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() 144 * @ndlp: pointer to a node-list data structure. 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 in lpfc_ct_reject_event() 285 struct lpfc_nodelist *ndlp = NULL; lpfc_ct_handle_mibreq() local 590 lpfc_gen_req(struct lpfc_vport * vport,struct lpfc_dmabuf * bmp,struct lpfc_dmabuf * inp,struct lpfc_dmabuf * outp,void (* cmpl)(struct lpfc_hba *,struct lpfc_iocbq *,struct lpfc_iocbq *),struct lpfc_nodelist * ndlp,uint32_t event_tag,uint32_t num_entry,uint32_t tmo,uint8_t retry) lpfc_gen_req() argument 665 lpfc_ct_cmd(struct lpfc_vport * vport,struct lpfc_dmabuf * inmp,struct lpfc_dmabuf * bmp,struct lpfc_nodelist * ndlp,void (* cmpl)(struct lpfc_hba *,struct lpfc_iocbq *,struct lpfc_iocbq *),uint32_t rsp_size,uint8_t retry) lpfc_ct_cmd() argument 717 struct lpfc_nodelist *ndlp; lpfc_prep_node_fc4type() local 806 struct lpfc_nodelist *ndlp = NULL; lpfc_ns_rsp_audit_did() local 854 struct lpfc_nodelist *ndlp = NULL; lpfc_ns_rsp() local 917 struct lpfc_nodelist *ndlp; lpfc_cmpl_ct_cmd_gid_ft() local 1132 struct lpfc_nodelist *ndlp; lpfc_cmpl_ct_cmd_gid_pt() local 1345 struct lpfc_nodelist *ndlp = NULL, *free_ndlp = NULL; lpfc_cmpl_ct_cmd_gff_id() local 1491 struct lpfc_nodelist *ndlp = NULL; lpfc_cmpl_ct_cmd_gft_id() local 1587 struct lpfc_nodelist *ndlp; lpfc_cmpl_ct() local 1840 struct lpfc_nodelist *ndlp, *next_ndlp; lpfc_find_map_node() local 1888 struct lpfc_nodelist * ndlp; lpfc_ns_cmd() local 2188 struct lpfc_nodelist *ndlp; lpfc_fdmi_rprt_defer() local 2229 struct lpfc_nodelist *ndlp, *free_ndlp = NULL; lpfc_cmpl_ct_disc_fdmi() local 2444 struct lpfc_nodelist *ndlp; lpfc_fdmi_change_check() local 3179 lpfc_fdmi_cmd(struct lpfc_vport * vport,struct lpfc_nodelist * ndlp,int cmdcode,uint32_t new_mask) lpfc_fdmi_cmd() argument 3572 struct lpfc_nodelist *ndlp = cmdiocb->ndlp; lpfc_cmpl_ct_cmd_vmid() local 3688 struct lpfc_nodelist *ndlp; lpfc_vmid_cmd() local [all...] |
| H A D | lpfc_nvme.h | 37 #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 D | lpfc_scsi.c | 376 * lpfc_sli4_vport_delete_fcp_xri_aborted -Remove all ndlp references for vport 380 * for an ndlp on removal. 437 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() 552 * @ndlp: pointer to a node-list data structure. 563 lpfc_get_scsi_buf_s3(struct lpfc_hba *phba, struct lpfc_nodelist *ndlp, in lpfc_get_scsi_buf_s3() argument 604 lpfc_get_scsi_buf_s4(struct lpfc_hba * phba,struct lpfc_nodelist * ndlp,struct scsi_cmnd * cmnd) lpfc_get_scsi_buf_s4() argument 699 lpfc_get_scsi_buf(struct lpfc_hba * phba,struct lpfc_nodelist * ndlp,struct scsi_cmnd * cmnd) lpfc_get_scsi_buf() argument 968 struct lpfc_nodelist *ndlp; lpfc_bg_err_inject() local 4020 struct lpfc_nodelist *ndlp; lpfc_fcp_io_cmd_wqe_cmpl() local 4860 struct lpfc_nodelist *ndlp = rdata->pnode; lpfc_scsi_prep_task_mgmt_cmd_s3() local 4920 struct lpfc_nodelist *ndlp = rdata->pnode; lpfc_scsi_prep_task_mgmt_cmd_s4() local 5223 struct lpfc_nodelist *ndlp; lpfc_queuecommand() local [all...] |
| H A D | lpfc_sli.c | 982 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() 1087 * @ndlp: Pointer to the lpfc_node_list structure. 1088 * If ndlp is NULL Remove all active RRQs for this vport from the 1090 * If ndlp is not NULL then only remove rrqs for this vport & this ndlp. 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() 1136 lpfc_test_rrq_active(struct lpfc_hba * phba,struct lpfc_nodelist * ndlp,uint16_t xritag) lpfc_test_rrq_active() argument 1165 lpfc_set_rrq_active(struct lpfc_hba * phba,struct lpfc_nodelist * ndlp,uint16_t xritag,uint16_t rxid,uint16_t send_rrq) lpfc_set_rrq_active() argument 1248 struct lpfc_nodelist *ndlp; __lpfc_sli_get_els_sglq() local 2855 struct lpfc_nodelist *ndlp; lpfc_sli_def_mbox_cmpl() local 2967 struct lpfc_nodelist *ndlp; lpfc_sli4_unreg_rpi_cmpl_clr() local 3198 struct lpfc_nodelist *ndlp; lpfc_nvme_unsol_ls_handler() local 11424 lpfc_sli_post_recovery_event(struct lpfc_hba * phba,struct lpfc_nodelist * ndlp) lpfc_sli_post_recovery_event() argument 11464 struct lpfc_nodelist *ndlp = NULL; lpfc_sli_abts_err_handler() local 11508 lpfc_sli4_abts_err_handler(struct lpfc_hba * phba,struct lpfc_nodelist * ndlp,struct sli4_wcqe_xri_aborted * axri) lpfc_sli4_abts_err_handler() argument 12387 struct lpfc_nodelist *ndlp = cmdiocb->ndlp; lpfc_ignore_els_cmpl() local 12454 struct lpfc_nodelist *ndlp = NULL; lpfc_sli_issue_abort_iotag() local 12883 struct lpfc_nodelist *ndlp = NULL; lpfc_sli_abort_taskmgmt() local 13671 struct lpfc_nodelist *ndlp; lpfc_sli_sp_intr_handler() local 14316 struct lpfc_nodelist *ndlp; lpfc_sli4_sp_handle_mbox_event() local 19026 struct lpfc_nodelist *ndlp; lpfc_sli4_seq_abort_rsp() local 19946 lpfc_sli4_resume_rpi(struct lpfc_nodelist * ndlp,void (* cmpl)(struct lpfc_hba *,LPFC_MBOXQ_t *),struct lpfc_iocbq * iocbq) lpfc_sli4_resume_rpi() argument 21098 struct lpfc_nodelist *ndlp; lpfc_cleanup_pending_mbox() local 22030 lpfc_get_io_buf_from_private_pool(struct lpfc_hba * phba,struct lpfc_sli4_hdw_queue * qp,struct lpfc_pvt_pool * pvt_pool,struct lpfc_nodelist * ndlp) lpfc_get_io_buf_from_private_pool() argument 22112 lpfc_get_io_buf_from_multixri_pools(struct lpfc_hba * phba,struct lpfc_nodelist * ndlp,int hwqid,int expedite) lpfc_get_io_buf_from_multixri_pools() argument 22165 lpfc_io_buf(struct lpfc_hba * phba,struct lpfc_nodelist * ndlp,int idx) lpfc_io_buf() argument 22208 lpfc_get_io_buf(struct lpfc_hba * phba,struct lpfc_nodelist * ndlp,u32 hwqid,int expedite) lpfc_get_io_buf() argument 22675 struct lpfc_nodelist *ndlp = NULL; lpfc_sli_prep_wqe() local [all...] |
| H A D | lpfc_bsg.c | 78 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 D | lpfc_attr.c | 455 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 D | lpfc_debugfs.c | 801 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 D | lpfc_sli.h | 144 struct lpfc_nodelist *ndlp; member 436 struct lpfc_nodelist *ndlp; member
|
| H A D | lpfc_init.c | 3057 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() 3097 /* At this point, ALL ndlp's should be gone in lpfc_cleanup() 3106 list_for_each_entry_safe(ndlp, next_ndlp, in lpfc_cleanup() 3108 lpfc_printf_vlog(ndlp in lpfc_cleanup() 3409 struct lpfc_nodelist *ndlp, *next_ndlp; lpfc_sli4_node_rpi_restore() local 3812 struct lpfc_nodelist *ndlp, *next_ndlp; lpfc_offline_prep() local 6674 struct lpfc_nodelist *ndlp; lpfc_sli4_perform_vport_cvl() local 6745 struct lpfc_nodelist *ndlp; lpfc_sli4_async_fip_evt() local [all...] |
| /linux/Documentation/scsi/ |
| H A D | ChangeLog.lpfc | 538 * 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 …]
|