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()
3570 struct lpfc_nodelist *pnode = lpfc_cmd->rdata->pnode; in lpfc_send_scsi_error_event() local
3573 if (!pnode) in lpfc_send_scsi_error_event()
3589 &pnode->nlp_portname, sizeof(struct lpfc_name)); in lpfc_send_scsi_error_event()
3591 &pnode->nlp_nodename, sizeof(struct lpfc_name)); in lpfc_send_scsi_error_event()
3604 &pnode->nlp_portname, sizeof(struct lpfc_name)); in lpfc_send_scsi_error_event()
3606 &pnode->nlp_nodename, sizeof(struct lpfc_name)); in lpfc_send_scsi_error_event()
3628 &pnode->nlp_portname, sizeof(struct lpfc_name)); in lpfc_send_scsi_error_event()
3630 &pnode->nlp_nodename, sizeof(struct lpfc_name)); in lpfc_send_scsi_error_event()
4030 ndlp = rdata->pnode; in lpfc_fcp_io_cmd_wqe_cmpl()
4346 struct lpfc_nodelist *pnode = rdata->pnode; in lpfc_scsi_cmd_iocb_cmpl() local
4438 (pnode) ? pnode->nlp_DID : 0, in lpfc_scsi_cmd_iocb_cmpl()
4461 if (pnode) { in lpfc_scsi_cmd_iocb_cmpl()
4463 &pnode->nlp_portname, in lpfc_scsi_cmd_iocb_cmpl()
4466 &pnode->nlp_nodename, in lpfc_scsi_cmd_iocb_cmpl()
4516 && pnode) { in lpfc_scsi_cmd_iocb_cmpl()
4521 lpfc_set_rrq_active(phba, pnode, in lpfc_scsi_cmd_iocb_cmpl()
4531 if (!pnode || (pnode->nlp_state != NLP_STE_MAPPED_NODE)) in lpfc_scsi_cmd_iocb_cmpl()
4552 if (pnode) { in lpfc_scsi_cmd_iocb_cmpl()
4553 if (pnode->cmd_qdepth > in lpfc_scsi_cmd_iocb_cmpl()
4554 atomic_read(&pnode->cmd_pending) && in lpfc_scsi_cmd_iocb_cmpl()
4555 (atomic_read(&pnode->cmd_pending) > in lpfc_scsi_cmd_iocb_cmpl()
4559 pnode->cmd_qdepth = in lpfc_scsi_cmd_iocb_cmpl()
4560 atomic_read(&pnode->cmd_pending); in lpfc_scsi_cmd_iocb_cmpl()
4562 pnode->last_change_time = jiffies; in lpfc_scsi_cmd_iocb_cmpl()
4616 struct lpfc_nodelist *pnode = lpfc_cmd->ndlp; in lpfc_scsi_prep_cmnd_buf_s3() local
4633 (pnode->nlp_flag & NLP_FIRSTBURST)) { in lpfc_scsi_prep_cmnd_buf_s3()
4658 piocbq->iocb.ulpContext = pnode->nlp_rpi; in lpfc_scsi_prep_cmnd_buf_s3()
4659 if (pnode->nlp_fcp_info & NLP_FCP_2_DEVICE) in lpfc_scsi_prep_cmnd_buf_s3()
4664 piocbq->iocb.ulpClass = (pnode->nlp_fcp_info & 0x0f); in lpfc_scsi_prep_cmnd_buf_s3()
4694 struct lpfc_nodelist *pnode = lpfc_cmd->ndlp; in lpfc_scsi_prep_cmnd_buf_s4() local
4760 phba->sli4_hba.rpi_ids[pnode->nlp_rpi]); in lpfc_scsi_prep_cmnd_buf_s4()
4764 if (pnode->nlp_fcp_info & NLP_FCP_2_DEVICE) in lpfc_scsi_prep_cmnd_buf_s4()
4768 (pnode->nlp_fcp_info & 0x0f)); in lpfc_scsi_prep_cmnd_buf_s4()
4795 struct lpfc_nodelist *pnode) in lpfc_scsi_prep_cmnd() argument
4801 if (!pnode) in lpfc_scsi_prep_cmnd()
4848 struct lpfc_nodelist *ndlp = rdata->pnode; in lpfc_scsi_prep_task_mgmt_cmd_s3()
4908 struct lpfc_nodelist *ndlp = rdata->pnode; in lpfc_scsi_prep_task_mgmt_cmd_s4()
5245 ndlp = rdata->pnode; in lpfc_queuecommand()
5792 struct lpfc_nodelist *pnode; in lpfc_send_taskmgmt() local
5797 if (!rdata || !rdata->pnode) in lpfc_send_taskmgmt()
5799 pnode = rdata->pnode; in lpfc_send_taskmgmt()
5801 lpfc_cmd = lpfc_get_scsi_buf(phba, rdata->pnode, NULL); in lpfc_send_taskmgmt()
5807 lpfc_cmd->ndlp = pnode; in lpfc_send_taskmgmt()
5829 pnode->nlp_rpi, pnode->nlp_flag, iocbq->sli4_xritag, in lpfc_send_taskmgmt()
5888 struct lpfc_nodelist *pnode = NULL; in lpfc_chk_tgt_mapped() local
5897 pnode = rdata->pnode; in lpfc_chk_tgt_mapped()
5905 if (!pnode) in lpfc_chk_tgt_mapped()
5907 if (pnode->nlp_state == NLP_STE_MAPPED_NODE) in lpfc_chk_tgt_mapped()
5913 pnode = rdata->pnode; in lpfc_chk_tgt_mapped()
5915 if (!pnode || (pnode->nlp_state != NLP_STE_MAPPED_NODE)) in lpfc_chk_tgt_mapped()
5984 struct lpfc_nodelist *pnode; in lpfc_device_reset_handler() local
5995 if (!rdata || !rdata->pnode) { in lpfc_device_reset_handler()
6001 pnode = rdata->pnode; in lpfc_device_reset_handler()
6016 memcpy(scsi_event.wwpn, &pnode->nlp_portname, sizeof(struct lpfc_name)); in lpfc_device_reset_handler()
6017 memcpy(scsi_event.wwnn, &pnode->nlp_nodename, sizeof(struct lpfc_name)); in lpfc_device_reset_handler()
6062 struct lpfc_nodelist *pnode; in lpfc_target_reset_handler() local
6076 if (!rdata || !rdata->pnode) { in lpfc_target_reset_handler()
6082 pnode = rdata->pnode; in lpfc_target_reset_handler()
6091 if (pnode) { in lpfc_target_reset_handler()
6092 spin_lock_irqsave(&pnode->lock, flags); in lpfc_target_reset_handler()
6093 pnode->nlp_flag &= ~NLP_NPR_ADISC; in lpfc_target_reset_handler()
6094 pnode->nlp_fcp_info &= ~NLP_FCP_2_DEVICE; in lpfc_target_reset_handler()
6095 spin_unlock_irqrestore(&pnode->lock, flags); in lpfc_target_reset_handler()
6105 memcpy(scsi_event.wwpn, &pnode->nlp_portname, sizeof(struct lpfc_name)); in lpfc_target_reset_handler()
6106 memcpy(scsi_event.wwnn, &pnode->nlp_nodename, sizeof(struct lpfc_name)); in lpfc_target_reset_handler()
6117 spin_lock_irqsave(&pnode->lock, flags); in lpfc_target_reset_handler()
6118 if (!(pnode->save_flags & NLP_WAIT_FOR_LOGO) && in lpfc_target_reset_handler()
6119 !pnode->logo_waitq) { in lpfc_target_reset_handler()
6120 pnode->logo_waitq = &waitq; in lpfc_target_reset_handler()
6121 pnode->nlp_fcp_info &= ~NLP_FCP_2_DEVICE; in lpfc_target_reset_handler()
6122 pnode->nlp_flag |= NLP_ISSUE_LOGO; in lpfc_target_reset_handler()
6123 pnode->save_flags |= NLP_WAIT_FOR_LOGO; in lpfc_target_reset_handler()
6124 spin_unlock_irqrestore(&pnode->lock, flags); in lpfc_target_reset_handler()
6125 lpfc_unreg_rpi(vport, pnode); in lpfc_target_reset_handler()
6127 (!(pnode->save_flags & in lpfc_target_reset_handler()
6132 if (pnode->save_flags & NLP_WAIT_FOR_LOGO) { in lpfc_target_reset_handler()
6138 spin_lock_irqsave(&pnode->lock, flags); in lpfc_target_reset_handler()
6139 pnode->save_flags &= ~NLP_WAIT_FOR_LOGO; in lpfc_target_reset_handler()
6141 spin_lock_irqsave(&pnode->lock, flags); in lpfc_target_reset_handler()
6143 pnode->logo_waitq = NULL; in lpfc_target_reset_handler()
6144 spin_unlock_irqrestore(&pnode->lock, flags); in lpfc_target_reset_handler()
6148 spin_unlock_irqrestore(&pnode->lock, flags); in lpfc_target_reset_handler()