/drivers/scsi/lpfc/ |
D | lpfc_nportdisc.c | 45 lpfc_check_adisc(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, in lpfc_check_adisc() argument 51 if (memcmp(nn, &ndlp->nlp_nodename, sizeof (struct lpfc_name))) in lpfc_check_adisc() 54 if (memcmp(pn, &ndlp->nlp_portname, sizeof (struct lpfc_name))) in lpfc_check_adisc() 62 lpfc_check_sparm(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, in lpfc_check_sparm() argument 133 memcpy(&ndlp->nlp_nodename, &sp->nodeName, sizeof (struct lpfc_name)); in lpfc_check_sparm() 134 memcpy(&ndlp->nlp_portname, &sp->portName, sizeof (struct lpfc_name)); in lpfc_check_sparm() 141 ndlp->nlp_DID, in lpfc_check_sparm() 189 lpfc_els_abort(struct lpfc_hba *phba, struct lpfc_nodelist *ndlp) in lpfc_els_abort() argument 198 lpfc_printf_vlog(ndlp->vport, KERN_INFO, LOG_DISCOVERY, in lpfc_els_abort() 201 ndlp->nlp_DID, ndlp->nlp_flag, ndlp->nlp_state, in lpfc_els_abort() [all …]
|
D | lpfc_hbadisc.c | 67 struct lpfc_nodelist * ndlp; in lpfc_terminate_rport_io() local 71 ndlp = rdata->pnode; in lpfc_terminate_rport_io() 73 if (!ndlp || !NLP_CHK_NODE_ACT(ndlp)) { in lpfc_terminate_rport_io() 81 phba = ndlp->vport->phba; in lpfc_terminate_rport_io() 83 lpfc_debugfs_disc_trc(ndlp->vport, LPFC_DISC_TRC_RPORT, in lpfc_terminate_rport_io() 85 ndlp->nlp_sid, ndlp->nlp_DID, ndlp->nlp_flag); in lpfc_terminate_rport_io() 87 if (ndlp->nlp_sid != NLP_NO_SID) { in lpfc_terminate_rport_io() 88 lpfc_sli_abort_iocb(ndlp->vport, in lpfc_terminate_rport_io() 90 ndlp->nlp_sid, 0, LPFC_CTX_TGT); in lpfc_terminate_rport_io() 101 struct lpfc_nodelist * ndlp; in lpfc_dev_loss_tmo_callbk() local [all …]
|
D | lpfc_els.c | 48 struct lpfc_nodelist *ndlp, uint8_t retry); 53 struct lpfc_nodelist *ndlp); 149 struct lpfc_nodelist *ndlp, uint32_t did, in lpfc_prep_els_iocb() argument 248 elsiocb->context1 = lpfc_nlp_get(ndlp); in lpfc_prep_els_iocb() 272 elscmd, ndlp->nlp_DID, elsiocb->iotag, in lpfc_prep_els_iocb() 314 struct lpfc_nodelist *ndlp; in lpfc_issue_fabric_reglogin() local 320 ndlp = lpfc_findnode_did(vport, Fabric_DID); in lpfc_issue_fabric_reglogin() 321 if (!ndlp || !NLP_CHK_NODE_ACT(ndlp)) { in lpfc_issue_fabric_reglogin() 360 mbox->context2 = lpfc_nlp_get(ndlp); in lpfc_issue_fabric_reglogin() 374 lpfc_nlp_put(ndlp); in lpfc_issue_fabric_reglogin() [all …]
|
D | lpfc_vport.c | 282 struct lpfc_nodelist *ndlp; in lpfc_vport_create() local 403 ndlp = lpfc_findnode_did(phba->pport, Fabric_DID); in lpfc_vport_create() 404 if (ndlp && NLP_CHK_NODE_ACT(ndlp) && in lpfc_vport_create() 405 ndlp->nlp_state == NLP_STE_UNMAPPED_NODE) { in lpfc_vport_create() 432 struct lpfc_nodelist *ndlp = NULL, *next_ndlp = NULL; in disable_vport() local 435 ndlp = lpfc_findnode_did(vport, Fabric_DID); in disable_vport() 436 if (ndlp && NLP_CHK_NODE_ACT(ndlp) in disable_vport() 440 if (!lpfc_issue_els_npiv_logo(vport, ndlp)) in disable_vport() 450 list_for_each_entry_safe(ndlp, next_ndlp, &vport->fc_nodes, nlp_listp) { in disable_vport() 451 if (!NLP_CHK_NODE_ACT(ndlp)) in disable_vport() [all …]
|
D | lpfc_disc.h | 139 #define NLP_CHK_NODE_ACT(ndlp) (((ndlp)->nlp_usg_map \ argument 142 !((ndlp)->nlp_usg_map \ 144 #define NLP_SET_NODE_ACT(ndlp) ((ndlp)->nlp_usg_map \ argument 146 #define NLP_INT_NODE_ACT(ndlp) ((ndlp)->nlp_usg_map \ argument 148 #define NLP_CLR_NODE_ACT(ndlp) ((ndlp)->nlp_usg_map \ argument 150 #define NLP_CHK_IACT_REQ(ndlp) ((ndlp)->nlp_usg_map \ argument 152 #define NLP_SET_IACT_REQ(ndlp) ((ndlp)->nlp_usg_map \ argument 154 #define NLP_CHK_FREE_REQ(ndlp) ((ndlp)->nlp_usg_map \ argument 156 #define NLP_SET_FREE_REQ(ndlp) ((ndlp)->nlp_usg_map \ argument 158 #define NLP_CHK_FREE_ACK(ndlp) ((ndlp)->nlp_usg_map \ argument [all …]
|
D | lpfc_ct.c | 236 if (ctiocb->context_un.ndlp) { in lpfc_ct_free_iocb() 237 lpfc_nlp_put(ctiocb->context_un.ndlp); in lpfc_ct_free_iocb() 238 ctiocb->context_un.ndlp = NULL; in lpfc_ct_free_iocb() 266 struct lpfc_nodelist *ndlp, uint32_t usr_flg, uint32_t num_entry, in lpfc_gen_req() argument 297 geniocb->context_un.ndlp = lpfc_nlp_get(ndlp); in lpfc_gen_req() 316 icmd->ulpContext = ndlp->nlp_rpi; in lpfc_gen_req() 328 ndlp->nlp_DID, icmd->ulpIoTag, in lpfc_gen_req() 346 struct lpfc_dmabuf *bmp, struct lpfc_nodelist *ndlp, in lpfc_ct_cmd() argument 365 status = lpfc_gen_req(vport, bmp, inmp, outmp, cmpl, ndlp, 0, in lpfc_ct_cmd() 396 struct lpfc_nodelist *ndlp = NULL; in lpfc_ns_rsp() local [all …]
|
D | lpfc_attr.c | 1918 struct lpfc_nodelist *ndlp; in lpfc_update_rport_devloss_tmo() local 1922 list_for_each_entry(ndlp, &vport->fc_nodes, nlp_listp) in lpfc_update_rport_devloss_tmo() 1923 if (NLP_CHK_NODE_ACT(ndlp) && ndlp->rport) in lpfc_update_rport_devloss_tmo() 1924 ndlp->rport->dev_loss_tmo = vport->cfg_devloss_tmo; in lpfc_update_rport_devloss_tmo() 2515 struct lpfc_nodelist *ndlp = NULL; in sysfs_drvr_stat_data_read() local 2524 list_for_each_entry(ndlp, &vport->fc_nodes, nlp_listp) { in sysfs_drvr_stat_data_read() 2525 if (!NLP_CHK_NODE_ACT(ndlp) || !ndlp->lat_data) in sysfs_drvr_stat_data_read() 2537 if (!ndlp->lat_data) in sysfs_drvr_stat_data_read() 2542 ndlp->nlp_portname.u.wwn[0], in sysfs_drvr_stat_data_read() 2543 ndlp->nlp_portname.u.wwn[1], in sysfs_drvr_stat_data_read() [all …]
|
D | lpfc_debugfs.c | 524 struct lpfc_nodelist *ndlp; in lpfc_debugfs_nodelist_data() local 530 list_for_each_entry(ndlp, &vport->fc_nodes, nlp_listp) { in lpfc_debugfs_nodelist_data() 537 switch (ndlp->nlp_state) { in lpfc_debugfs_nodelist_data() 566 statep, ndlp->nlp_DID); in lpfc_debugfs_nodelist_data() 567 name = (unsigned char *)&ndlp->nlp_portname; in lpfc_debugfs_nodelist_data() 572 name = (unsigned char *)&ndlp->nlp_nodename; in lpfc_debugfs_nodelist_data() 578 ndlp->nlp_rpi, ndlp->nlp_flag); in lpfc_debugfs_nodelist_data() 579 if (!ndlp->nlp_type) in lpfc_debugfs_nodelist_data() 581 if (ndlp->nlp_type & NLP_FC_NODE) in lpfc_debugfs_nodelist_data() 583 if (ndlp->nlp_type & NLP_FABRIC) in lpfc_debugfs_nodelist_data() [all …]
|
D | lpfc_scsi.c | 183 struct lpfc_nodelist *ndlp, in lpfc_send_sdev_queuedepth_change_event() argument 202 if (ndlp && NLP_CHK_NODE_ACT(ndlp)) { in lpfc_send_sdev_queuedepth_change_event() 204 &ndlp->nlp_portname, sizeof(struct lpfc_name)); in lpfc_send_sdev_queuedepth_change_event() 206 &ndlp->nlp_nodename, sizeof(struct lpfc_name)); in lpfc_send_sdev_queuedepth_change_event() 2072 struct lpfc_nodelist *ndlp = rdata->pnode; in lpfc_scsi_prep_task_mgmt_cmd() local 2074 if (!ndlp || !NLP_CHK_NODE_ACT(ndlp) || in lpfc_scsi_prep_task_mgmt_cmd() 2075 ndlp->nlp_state != NLP_STE_MAPPED_NODE) in lpfc_scsi_prep_task_mgmt_cmd() 2092 piocb->ulpContext = ndlp->nlp_rpi; in lpfc_scsi_prep_task_mgmt_cmd() 2093 if (ndlp->nlp_fcp_info & NLP_FCP_2_DEVICE) { in lpfc_scsi_prep_task_mgmt_cmd() 2096 piocb->ulpClass = (ndlp->nlp_fcp_info & 0x0f); in lpfc_scsi_prep_task_mgmt_cmd() [all …]
|
D | lpfc_init.c | 1652 struct lpfc_nodelist *ndlp, *next_ndlp; in lpfc_cleanup() local 1658 list_for_each_entry_safe(ndlp, next_ndlp, &vport->fc_nodes, nlp_listp) { in lpfc_cleanup() 1659 if (!NLP_CHK_NODE_ACT(ndlp)) { in lpfc_cleanup() 1660 ndlp = lpfc_enable_node(vport, ndlp, in lpfc_cleanup() 1662 if (!ndlp) in lpfc_cleanup() 1665 NLP_SET_FREE_REQ(ndlp); in lpfc_cleanup() 1668 lpfc_nlp_put(ndlp); in lpfc_cleanup() 1672 if (NLP_CHK_FREE_REQ(ndlp)) { in lpfc_cleanup() 1678 NLP_SET_FREE_REQ(ndlp); in lpfc_cleanup() 1682 ndlp->nlp_DID == Fabric_DID) { in lpfc_cleanup() [all …]
|
D | lpfc_sli.h | 61 struct lpfc_nodelist *ndlp; member
|
D | lpfc_crtn.h | 75 int lpfc_nlp_not_used(struct lpfc_nodelist *ndlp);
|
D | lpfc_sli.c | 5197 struct lpfc_nodelist *ndlp; in lpfc_sp_intr_handler() local 5360 ndlp = (struct lpfc_nodelist *) in lpfc_sp_intr_handler() 5375 pmb->context2 = ndlp; in lpfc_sp_intr_handler()
|