Lines Matching refs:pnode
407 if (psb->rdata && psb->rdata->pnode && in lpfc_sli4_vport_delete_fcp_xri_aborted()
408 psb->rdata->pnode->vport == vport) in lpfc_sli4_vport_delete_fcp_xri_aborted()
477 if (psb->rdata && psb->rdata->pnode) in lpfc_sli4_io_xri_aborted()
478 ndlp = psb->rdata->pnode; in lpfc_sli4_io_xri_aborted()
1002 if (rdata && rdata->pnode) { in lpfc_bg_err_inject()
1003 ndlp = rdata->pnode; in lpfc_bg_err_inject()
3576 struct lpfc_nodelist *pnode = lpfc_cmd->rdata->pnode; in lpfc_send_scsi_error_event() local
3579 if (!pnode) in lpfc_send_scsi_error_event()
3595 &pnode->nlp_portname, sizeof(struct lpfc_name)); in lpfc_send_scsi_error_event()
3597 &pnode->nlp_nodename, sizeof(struct lpfc_name)); in lpfc_send_scsi_error_event()
3610 &pnode->nlp_portname, sizeof(struct lpfc_name)); in lpfc_send_scsi_error_event()
3612 &pnode->nlp_nodename, sizeof(struct lpfc_name)); in lpfc_send_scsi_error_event()
3634 &pnode->nlp_portname, sizeof(struct lpfc_name)); in lpfc_send_scsi_error_event()
3636 &pnode->nlp_nodename, sizeof(struct lpfc_name)); in lpfc_send_scsi_error_event()
4039 ndlp = rdata->pnode; in lpfc_fcp_io_cmd_wqe_cmpl()
4350 struct lpfc_nodelist *pnode = rdata->pnode; in lpfc_scsi_cmd_iocb_cmpl() local
4442 (pnode) ? pnode->nlp_DID : 0, in lpfc_scsi_cmd_iocb_cmpl()
4465 if (pnode) { in lpfc_scsi_cmd_iocb_cmpl()
4467 &pnode->nlp_portname, in lpfc_scsi_cmd_iocb_cmpl()
4470 &pnode->nlp_nodename, in lpfc_scsi_cmd_iocb_cmpl()
4520 && pnode) { in lpfc_scsi_cmd_iocb_cmpl()
4525 lpfc_set_rrq_active(phba, pnode, in lpfc_scsi_cmd_iocb_cmpl()
4535 if (!pnode || (pnode->nlp_state != NLP_STE_MAPPED_NODE)) in lpfc_scsi_cmd_iocb_cmpl()
4556 if (pnode) { in lpfc_scsi_cmd_iocb_cmpl()
4557 if (pnode->cmd_qdepth > in lpfc_scsi_cmd_iocb_cmpl()
4558 atomic_read(&pnode->cmd_pending) && in lpfc_scsi_cmd_iocb_cmpl()
4559 (atomic_read(&pnode->cmd_pending) > in lpfc_scsi_cmd_iocb_cmpl()
4563 pnode->cmd_qdepth = in lpfc_scsi_cmd_iocb_cmpl()
4564 atomic_read(&pnode->cmd_pending); in lpfc_scsi_cmd_iocb_cmpl()
4566 pnode->last_change_time = jiffies; in lpfc_scsi_cmd_iocb_cmpl()
4620 struct lpfc_nodelist *pnode = lpfc_cmd->ndlp; in lpfc_scsi_prep_cmnd_buf_s3() local
4637 test_bit(NLP_FIRSTBURST, &pnode->nlp_flag)) { in lpfc_scsi_prep_cmnd_buf_s3()
4662 piocbq->iocb.ulpContext = pnode->nlp_rpi; in lpfc_scsi_prep_cmnd_buf_s3()
4663 if (pnode->nlp_fcp_info & NLP_FCP_2_DEVICE) in lpfc_scsi_prep_cmnd_buf_s3()
4668 piocbq->iocb.ulpClass = (pnode->nlp_fcp_info & 0x0f); in lpfc_scsi_prep_cmnd_buf_s3()
4698 struct lpfc_nodelist *pnode = lpfc_cmd->ndlp; in lpfc_scsi_prep_cmnd_buf_s4() local
4772 phba->sli4_hba.rpi_ids[pnode->nlp_rpi]); in lpfc_scsi_prep_cmnd_buf_s4()
4776 if (pnode->nlp_fcp_info & NLP_FCP_2_DEVICE) in lpfc_scsi_prep_cmnd_buf_s4()
4780 (pnode->nlp_fcp_info & 0x0f)); in lpfc_scsi_prep_cmnd_buf_s4()
4807 struct lpfc_nodelist *pnode) in lpfc_scsi_prep_cmnd() argument
4813 if (!pnode) in lpfc_scsi_prep_cmnd()
4860 struct lpfc_nodelist *ndlp = rdata->pnode; in lpfc_scsi_prep_task_mgmt_cmd_s3()
4920 struct lpfc_nodelist *ndlp = rdata->pnode; in lpfc_scsi_prep_task_mgmt_cmd_s4()
5262 ndlp = rdata->pnode; in lpfc_queuecommand()
5807 struct lpfc_nodelist *pnode; in lpfc_send_taskmgmt() local
5812 if (!rdata || !rdata->pnode) in lpfc_send_taskmgmt()
5814 pnode = rdata->pnode; in lpfc_send_taskmgmt()
5816 lpfc_cmd = lpfc_get_scsi_buf(phba, rdata->pnode, NULL); in lpfc_send_taskmgmt()
5822 lpfc_cmd->ndlp = pnode; in lpfc_send_taskmgmt()
5844 pnode->nlp_rpi, pnode->nlp_flag, iocbq->sli4_xritag, in lpfc_send_taskmgmt()
5903 struct lpfc_nodelist *pnode = NULL; in lpfc_chk_tgt_mapped() local
5912 pnode = rdata->pnode; in lpfc_chk_tgt_mapped()
5920 if (!pnode) in lpfc_chk_tgt_mapped()
5922 if (pnode->nlp_state == NLP_STE_MAPPED_NODE) in lpfc_chk_tgt_mapped()
5928 pnode = rdata->pnode; in lpfc_chk_tgt_mapped()
5930 if (!pnode || (pnode->nlp_state != NLP_STE_MAPPED_NODE)) in lpfc_chk_tgt_mapped()
5999 struct lpfc_nodelist *pnode; in lpfc_device_reset_handler() local
6010 if (!rdata || !rdata->pnode) { in lpfc_device_reset_handler()
6016 pnode = rdata->pnode; in lpfc_device_reset_handler()
6031 memcpy(scsi_event.wwpn, &pnode->nlp_portname, sizeof(struct lpfc_name)); in lpfc_device_reset_handler()
6032 memcpy(scsi_event.wwnn, &pnode->nlp_nodename, sizeof(struct lpfc_name)); in lpfc_device_reset_handler()
6077 struct lpfc_nodelist *pnode; in lpfc_target_reset_handler() local
6091 if (!rdata || !rdata->pnode) { in lpfc_target_reset_handler()
6097 pnode = rdata->pnode; in lpfc_target_reset_handler()
6106 if (pnode) { in lpfc_target_reset_handler()
6107 clear_bit(NLP_NPR_ADISC, &pnode->nlp_flag); in lpfc_target_reset_handler()
6108 spin_lock_irqsave(&pnode->lock, flags); in lpfc_target_reset_handler()
6109 pnode->nlp_fcp_info &= ~NLP_FCP_2_DEVICE; in lpfc_target_reset_handler()
6110 spin_unlock_irqrestore(&pnode->lock, flags); in lpfc_target_reset_handler()
6120 memcpy(scsi_event.wwpn, &pnode->nlp_portname, sizeof(struct lpfc_name)); in lpfc_target_reset_handler()
6121 memcpy(scsi_event.wwnn, &pnode->nlp_nodename, sizeof(struct lpfc_name)); in lpfc_target_reset_handler()
6132 spin_lock_irqsave(&pnode->lock, flags); in lpfc_target_reset_handler()
6133 if (!test_bit(NLP_WAIT_FOR_LOGO, &pnode->save_flags) && in lpfc_target_reset_handler()
6134 !pnode->logo_waitq) { in lpfc_target_reset_handler()
6135 pnode->logo_waitq = &waitq; in lpfc_target_reset_handler()
6136 pnode->nlp_fcp_info &= ~NLP_FCP_2_DEVICE; in lpfc_target_reset_handler()
6137 spin_unlock_irqrestore(&pnode->lock, flags); in lpfc_target_reset_handler()
6138 set_bit(NLP_ISSUE_LOGO, &pnode->nlp_flag); in lpfc_target_reset_handler()
6139 set_bit(NLP_WAIT_FOR_LOGO, &pnode->save_flags); in lpfc_target_reset_handler()
6140 lpfc_unreg_rpi(vport, pnode); in lpfc_target_reset_handler()
6143 &pnode->save_flags), in lpfc_target_reset_handler()
6147 &pnode->save_flags)) in lpfc_target_reset_handler()
6153 spin_lock_irqsave(&pnode->lock, flags); in lpfc_target_reset_handler()
6154 pnode->logo_waitq = NULL; in lpfc_target_reset_handler()
6155 spin_unlock_irqrestore(&pnode->lock, flags); in lpfc_target_reset_handler()
6159 spin_unlock_irqrestore(&pnode->lock, flags); in lpfc_target_reset_handler()