/linux-2.6.39/drivers/scsi/lpfc/ |
D | lpfc_nportdisc.c | 48 lpfc_check_adisc(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, in lpfc_check_adisc() argument 54 if (memcmp(nn, &ndlp->nlp_nodename, sizeof (struct lpfc_name))) in lpfc_check_adisc() 57 if (memcmp(pn, &ndlp->nlp_portname, sizeof (struct lpfc_name))) in lpfc_check_adisc() 65 lpfc_check_sparm(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, in lpfc_check_sparm() argument 143 memcpy(&ndlp->nlp_nodename, &sp->nodeName, sizeof (struct lpfc_name)); in lpfc_check_sparm() 144 memcpy(&ndlp->nlp_portname, &sp->portName, sizeof (struct lpfc_name)); in lpfc_check_sparm() 151 ndlp->nlp_DID, in lpfc_check_sparm() 200 lpfc_els_abort(struct lpfc_hba *phba, struct lpfc_nodelist *ndlp) in lpfc_els_abort() argument 210 lpfc_printf_vlog(ndlp->vport, KERN_INFO, LOG_DISCOVERY, in lpfc_els_abort() 213 ndlp->nlp_DID, ndlp->nlp_flag, ndlp->nlp_state, in lpfc_els_abort() [all …]
|
D | lpfc_els.c | 51 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 …]
|
D | lpfc_disc.h | 129 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 …]
|
D | lpfc_hbadisc.c | 73 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 …]
|
D | lpfc_vport.c | 293 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 …]
|
D | lpfc_ct.c | 276 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() 366 ndlp->nlp_DID, icmd->ulpIoTag, in lpfc_gen_req() 384 struct lpfc_dmabuf *bmp, struct lpfc_nodelist *ndlp, in lpfc_ct_cmd() argument 408 status = lpfc_gen_req(vport, bmp, inmp, outmp, cmpl, ndlp, 0, in lpfc_ct_cmd() 439 struct lpfc_nodelist *ndlp = NULL; in lpfc_ns_rsp() local [all …]
|
D | lpfc_scsi.c | 213 struct lpfc_nodelist *ndlp, in lpfc_send_sdev_queuedepth_change_event() argument 232 if (ndlp && NLP_CHK_NODE_ACT(ndlp)) { in lpfc_send_sdev_queuedepth_change_event() 234 &ndlp->nlp_portname, sizeof(struct lpfc_name)); in lpfc_send_sdev_queuedepth_change_event() 236 &ndlp->nlp_nodename, sizeof(struct lpfc_name)); in lpfc_send_sdev_queuedepth_change_event() 655 struct lpfc_nodelist *ndlp; in lpfc_sli4_fcp_xri_aborted() local 670 ndlp = psb->rdata->pnode; in lpfc_sli4_fcp_xri_aborted() 672 ndlp = NULL; in lpfc_sli4_fcp_xri_aborted() 676 if (ndlp) in lpfc_sli4_fcp_xri_aborted() 677 lpfc_set_rrq_active(phba, ndlp, xri, rxid, 1); in lpfc_sli4_fcp_xri_aborted() 967 lpfc_get_scsi_buf_s3(struct lpfc_hba *phba, struct lpfc_nodelist *ndlp) in lpfc_get_scsi_buf_s3() argument [all …]
|
D | lpfc_attr.c | 2180 struct lpfc_nodelist *ndlp; in lpfc_update_rport_devloss_tmo() local 2184 list_for_each_entry(ndlp, &vport->fc_nodes, nlp_listp) in lpfc_update_rport_devloss_tmo() 2185 if (NLP_CHK_NODE_ACT(ndlp) && ndlp->rport) in lpfc_update_rport_devloss_tmo() 2186 ndlp->rport->dev_loss_tmo = vport->cfg_devloss_tmo; in lpfc_update_rport_devloss_tmo() 2828 struct lpfc_nodelist *ndlp = NULL; in sysfs_drvr_stat_data_read() local 2837 list_for_each_entry(ndlp, &vport->fc_nodes, nlp_listp) { in sysfs_drvr_stat_data_read() 2838 if (!NLP_CHK_NODE_ACT(ndlp) || !ndlp->lat_data) in sysfs_drvr_stat_data_read() 2850 if (!ndlp->lat_data) in sysfs_drvr_stat_data_read() 2855 ndlp->nlp_portname.u.wwn[0], in sysfs_drvr_stat_data_read() 2856 ndlp->nlp_portname.u.wwn[1], in sysfs_drvr_stat_data_read() [all …]
|
D | lpfc_bsg.c | 73 struct lpfc_nodelist *ndlp; member 169 struct lpfc_nodelist *ndlp; in lpfc_bsg_send_mgmt_cmd_cmp() local 188 ndlp = cmdiocbq->context1; in lpfc_bsg_send_mgmt_cmd_cmp() 216 lpfc_nlp_put(ndlp); in lpfc_bsg_send_mgmt_cmd_cmp() 237 struct lpfc_nodelist *ndlp = rdata->pnode; in lpfc_bsg_send_mgmt_cmd() local 265 if (!lpfc_nlp_get(ndlp)) { in lpfc_bsg_send_mgmt_cmd() 276 if (ndlp->nlp_flag & NLP_ELS_SND_MASK) { in lpfc_bsg_send_mgmt_cmd() 334 cmd->ulpContext = ndlp->nlp_rpi; in lpfc_bsg_send_mgmt_cmd() 343 cmdiocbq->context1 = ndlp; in lpfc_bsg_send_mgmt_cmd() 382 lpfc_nlp_put(ndlp); in lpfc_bsg_send_mgmt_cmd() [all …]
|
D | lpfc_debugfs.c | 512 struct lpfc_nodelist *ndlp; in lpfc_debugfs_nodelist_data() local 518 list_for_each_entry(ndlp, &vport->fc_nodes, nlp_listp) { in lpfc_debugfs_nodelist_data() 525 switch (ndlp->nlp_state) { in lpfc_debugfs_nodelist_data() 554 statep, ndlp->nlp_DID); in lpfc_debugfs_nodelist_data() 555 name = (unsigned char *)&ndlp->nlp_portname; in lpfc_debugfs_nodelist_data() 560 name = (unsigned char *)&ndlp->nlp_nodename; in lpfc_debugfs_nodelist_data() 566 ndlp->nlp_rpi, ndlp->nlp_flag); in lpfc_debugfs_nodelist_data() 567 if (!ndlp->nlp_type) in lpfc_debugfs_nodelist_data() 569 if (ndlp->nlp_type & NLP_FC_NODE) in lpfc_debugfs_nodelist_data() 571 if (ndlp->nlp_type & NLP_FABRIC) in lpfc_debugfs_nodelist_data() [all …]
|
D | lpfc_init.c | 2215 struct lpfc_nodelist *ndlp, *next_ndlp; in lpfc_cleanup() local 2221 list_for_each_entry_safe(ndlp, next_ndlp, &vport->fc_nodes, nlp_listp) { in lpfc_cleanup() 2222 if (!NLP_CHK_NODE_ACT(ndlp)) { in lpfc_cleanup() 2223 ndlp = lpfc_enable_node(vport, ndlp, in lpfc_cleanup() 2225 if (!ndlp) in lpfc_cleanup() 2228 NLP_SET_FREE_REQ(ndlp); in lpfc_cleanup() 2231 lpfc_nlp_put(ndlp); in lpfc_cleanup() 2235 if (NLP_CHK_FREE_REQ(ndlp)) { in lpfc_cleanup() 2241 NLP_SET_FREE_REQ(ndlp); in lpfc_cleanup() 2245 ndlp->nlp_DID == Fabric_DID) { in lpfc_cleanup() [all …]
|
D | lpfc_sli.c | 532 __lpfc_set_rrq_active(struct lpfc_hba *phba, struct lpfc_nodelist *ndlp, in __lpfc_set_rrq_active() argument 541 if (!ndlp) in __lpfc_set_rrq_active() 551 did = ndlp->nlp_DID; in __lpfc_set_rrq_active() 558 if (NLP_CHK_FREE_REQ(ndlp)) in __lpfc_set_rrq_active() 561 if (ndlp->vport && (ndlp->vport->load_flag & FC_UNLOADING)) in __lpfc_set_rrq_active() 564 if (test_and_set_bit(adj_xri, ndlp->active_rrqs.xri_bitmap)) in __lpfc_set_rrq_active() 572 rrq->ndlp = ndlp; in __lpfc_set_rrq_active() 573 rrq->nlp_DID = ndlp->nlp_DID; in __lpfc_set_rrq_active() 574 rrq->vport = ndlp->vport; in __lpfc_set_rrq_active() 607 struct lpfc_nodelist *ndlp = NULL; in lpfc_clr_rrq_active() local [all …]
|
D | lpfc_sli.h | 86 struct lpfc_nodelist *ndlp; member
|
D | lpfc_sli4.h | 491 struct lpfc_nodelist *ndlp; /* ndlp associated with IO */ member
|
D | lpfc_crtn.h | 98 int lpfc_nlp_not_used(struct lpfc_nodelist *ndlp);
|
D | lpfc_mbox.c | 2132 lpfc_resume_rpi(struct lpfcMboxq *mbox, struct lpfc_nodelist *ndlp) in lpfc_resume_rpi() argument 2139 bf_set(lpfc_resume_rpi_index, resume_rpi, ndlp->nlp_rpi); in lpfc_resume_rpi() 2141 resume_rpi->event_tag = ndlp->phba->fc_eventTag; in lpfc_resume_rpi()
|
/linux-2.6.39/Documentation/scsi/ |
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 …]
|