Lines Matching refs:pnode

408 			if (psb->rdata && psb->rdata->pnode &&  in lpfc_sli4_vport_delete_fcp_xri_aborted()
409 psb->rdata->pnode->vport == vport) in lpfc_sli4_vport_delete_fcp_xri_aborted()
478 if (psb->rdata && psb->rdata->pnode) in lpfc_sli4_io_xri_aborted()
479 ndlp = psb->rdata->pnode; in lpfc_sli4_io_xri_aborted()
1000 if (rdata && rdata->pnode) { in lpfc_bg_err_inject()
1001 ndlp = rdata->pnode; in lpfc_bg_err_inject()
3568 struct lpfc_nodelist *pnode = lpfc_cmd->rdata->pnode; in lpfc_send_scsi_error_event() local
3571 if (!pnode) in lpfc_send_scsi_error_event()
3587 &pnode->nlp_portname, sizeof(struct lpfc_name)); in lpfc_send_scsi_error_event()
3589 &pnode->nlp_nodename, sizeof(struct lpfc_name)); in lpfc_send_scsi_error_event()
3602 &pnode->nlp_portname, sizeof(struct lpfc_name)); in lpfc_send_scsi_error_event()
3604 &pnode->nlp_nodename, sizeof(struct lpfc_name)); in lpfc_send_scsi_error_event()
3626 &pnode->nlp_portname, sizeof(struct lpfc_name)); in lpfc_send_scsi_error_event()
3628 &pnode->nlp_nodename, sizeof(struct lpfc_name)); in lpfc_send_scsi_error_event()
4028 ndlp = rdata->pnode; in lpfc_fcp_io_cmd_wqe_cmpl()
4339 struct lpfc_nodelist *pnode = rdata->pnode; in lpfc_scsi_cmd_iocb_cmpl() local
4431 (pnode) ? pnode->nlp_DID : 0, in lpfc_scsi_cmd_iocb_cmpl()
4454 if (pnode) { in lpfc_scsi_cmd_iocb_cmpl()
4456 &pnode->nlp_portname, in lpfc_scsi_cmd_iocb_cmpl()
4459 &pnode->nlp_nodename, in lpfc_scsi_cmd_iocb_cmpl()
4509 && pnode) { in lpfc_scsi_cmd_iocb_cmpl()
4514 lpfc_set_rrq_active(phba, pnode, in lpfc_scsi_cmd_iocb_cmpl()
4524 if (!pnode || (pnode->nlp_state != NLP_STE_MAPPED_NODE)) in lpfc_scsi_cmd_iocb_cmpl()
4545 if (pnode) { in lpfc_scsi_cmd_iocb_cmpl()
4546 if (pnode->cmd_qdepth > in lpfc_scsi_cmd_iocb_cmpl()
4547 atomic_read(&pnode->cmd_pending) && in lpfc_scsi_cmd_iocb_cmpl()
4548 (atomic_read(&pnode->cmd_pending) > in lpfc_scsi_cmd_iocb_cmpl()
4552 pnode->cmd_qdepth = in lpfc_scsi_cmd_iocb_cmpl()
4553 atomic_read(&pnode->cmd_pending); in lpfc_scsi_cmd_iocb_cmpl()
4555 pnode->last_change_time = jiffies; in lpfc_scsi_cmd_iocb_cmpl()
4609 struct lpfc_nodelist *pnode = lpfc_cmd->ndlp; in lpfc_scsi_prep_cmnd_buf_s3() local
4626 (pnode->nlp_flag & NLP_FIRSTBURST)) { in lpfc_scsi_prep_cmnd_buf_s3()
4651 piocbq->iocb.ulpContext = pnode->nlp_rpi; in lpfc_scsi_prep_cmnd_buf_s3()
4652 if (pnode->nlp_fcp_info & NLP_FCP_2_DEVICE) in lpfc_scsi_prep_cmnd_buf_s3()
4657 piocbq->iocb.ulpClass = (pnode->nlp_fcp_info & 0x0f); in lpfc_scsi_prep_cmnd_buf_s3()
4687 struct lpfc_nodelist *pnode = lpfc_cmd->ndlp; in lpfc_scsi_prep_cmnd_buf_s4() local
4753 phba->sli4_hba.rpi_ids[pnode->nlp_rpi]); in lpfc_scsi_prep_cmnd_buf_s4()
4757 if (pnode->nlp_fcp_info & NLP_FCP_2_DEVICE) in lpfc_scsi_prep_cmnd_buf_s4()
4761 (pnode->nlp_fcp_info & 0x0f)); in lpfc_scsi_prep_cmnd_buf_s4()
4788 struct lpfc_nodelist *pnode) in lpfc_scsi_prep_cmnd() argument
4794 if (!pnode) in lpfc_scsi_prep_cmnd()
4841 struct lpfc_nodelist *ndlp = rdata->pnode; in lpfc_scsi_prep_task_mgmt_cmd_s3()
4901 struct lpfc_nodelist *ndlp = rdata->pnode; in lpfc_scsi_prep_task_mgmt_cmd_s4()
5237 ndlp = rdata->pnode; in lpfc_queuecommand()
5784 struct lpfc_nodelist *pnode; in lpfc_send_taskmgmt() local
5789 if (!rdata || !rdata->pnode) in lpfc_send_taskmgmt()
5791 pnode = rdata->pnode; in lpfc_send_taskmgmt()
5793 lpfc_cmd = lpfc_get_scsi_buf(phba, rdata->pnode, NULL); in lpfc_send_taskmgmt()
5799 lpfc_cmd->ndlp = pnode; in lpfc_send_taskmgmt()
5821 pnode->nlp_rpi, pnode->nlp_flag, iocbq->sli4_xritag, in lpfc_send_taskmgmt()
5880 struct lpfc_nodelist *pnode = NULL; in lpfc_chk_tgt_mapped() local
5889 pnode = rdata->pnode; in lpfc_chk_tgt_mapped()
5897 if (!pnode) in lpfc_chk_tgt_mapped()
5899 if (pnode->nlp_state == NLP_STE_MAPPED_NODE) in lpfc_chk_tgt_mapped()
5905 pnode = rdata->pnode; in lpfc_chk_tgt_mapped()
5907 if (!pnode || (pnode->nlp_state != NLP_STE_MAPPED_NODE)) in lpfc_chk_tgt_mapped()
5976 struct lpfc_nodelist *pnode; in lpfc_device_reset_handler() local
5987 if (!rdata || !rdata->pnode) { in lpfc_device_reset_handler()
5993 pnode = rdata->pnode; in lpfc_device_reset_handler()
6008 memcpy(scsi_event.wwpn, &pnode->nlp_portname, sizeof(struct lpfc_name)); in lpfc_device_reset_handler()
6009 memcpy(scsi_event.wwnn, &pnode->nlp_nodename, sizeof(struct lpfc_name)); in lpfc_device_reset_handler()
6054 struct lpfc_nodelist *pnode; in lpfc_target_reset_handler() local
6068 if (!rdata || !rdata->pnode) { in lpfc_target_reset_handler()
6074 pnode = rdata->pnode; in lpfc_target_reset_handler()
6083 if (pnode) { in lpfc_target_reset_handler()
6084 spin_lock_irqsave(&pnode->lock, flags); in lpfc_target_reset_handler()
6085 pnode->nlp_flag &= ~NLP_NPR_ADISC; in lpfc_target_reset_handler()
6086 pnode->nlp_fcp_info &= ~NLP_FCP_2_DEVICE; in lpfc_target_reset_handler()
6087 spin_unlock_irqrestore(&pnode->lock, flags); in lpfc_target_reset_handler()
6097 memcpy(scsi_event.wwpn, &pnode->nlp_portname, sizeof(struct lpfc_name)); in lpfc_target_reset_handler()
6098 memcpy(scsi_event.wwnn, &pnode->nlp_nodename, sizeof(struct lpfc_name)); in lpfc_target_reset_handler()
6109 spin_lock_irqsave(&pnode->lock, flags); in lpfc_target_reset_handler()
6110 if (!(pnode->save_flags & NLP_WAIT_FOR_LOGO) && in lpfc_target_reset_handler()
6111 !pnode->logo_waitq) { in lpfc_target_reset_handler()
6112 pnode->logo_waitq = &waitq; in lpfc_target_reset_handler()
6113 pnode->nlp_fcp_info &= ~NLP_FCP_2_DEVICE; in lpfc_target_reset_handler()
6114 pnode->nlp_flag |= NLP_ISSUE_LOGO; in lpfc_target_reset_handler()
6115 pnode->save_flags |= NLP_WAIT_FOR_LOGO; in lpfc_target_reset_handler()
6116 spin_unlock_irqrestore(&pnode->lock, flags); in lpfc_target_reset_handler()
6117 lpfc_unreg_rpi(vport, pnode); in lpfc_target_reset_handler()
6119 (!(pnode->save_flags & in lpfc_target_reset_handler()
6124 if (pnode->save_flags & NLP_WAIT_FOR_LOGO) { in lpfc_target_reset_handler()
6130 spin_lock_irqsave(&pnode->lock, flags); in lpfc_target_reset_handler()
6131 pnode->save_flags &= ~NLP_WAIT_FOR_LOGO; in lpfc_target_reset_handler()
6133 spin_lock_irqsave(&pnode->lock, flags); in lpfc_target_reset_handler()
6135 pnode->logo_waitq = NULL; in lpfc_target_reset_handler()
6136 spin_unlock_irqrestore(&pnode->lock, flags); in lpfc_target_reset_handler()
6140 spin_unlock_irqrestore(&pnode->lock, flags); in lpfc_target_reset_handler()