Lines Matching refs:pnode
135 struct lpfc_nodelist *pnode; in lpfc_update_stats() local
149 pnode = rdata->pnode; in lpfc_update_stats()
152 if (!pnode || in lpfc_update_stats()
153 !pnode->lat_data || in lpfc_update_stats()
174 pnode->lat_data[i].cmd_count++; in lpfc_update_stats()
474 if (psb->rdata && psb->rdata->pnode && in lpfc_sli4_vport_delete_fcp_xri_aborted()
475 psb->rdata->pnode->vport == vport) in lpfc_sli4_vport_delete_fcp_xri_aborted()
544 if (psb->rdata && psb->rdata->pnode) in lpfc_sli4_io_xri_aborted()
545 ndlp = psb->rdata->pnode; in lpfc_sli4_io_xri_aborted()
1068 if (rdata && rdata->pnode) { in lpfc_bg_err_inject()
1069 ndlp = rdata->pnode; in lpfc_bg_err_inject()
3749 struct lpfc_nodelist *pnode = lpfc_cmd->rdata->pnode; in lpfc_send_scsi_error_event() local
3752 if (!pnode) in lpfc_send_scsi_error_event()
3768 &pnode->nlp_portname, sizeof(struct lpfc_name)); in lpfc_send_scsi_error_event()
3770 &pnode->nlp_nodename, sizeof(struct lpfc_name)); in lpfc_send_scsi_error_event()
3783 &pnode->nlp_portname, sizeof(struct lpfc_name)); in lpfc_send_scsi_error_event()
3785 &pnode->nlp_nodename, sizeof(struct lpfc_name)); in lpfc_send_scsi_error_event()
3807 &pnode->nlp_portname, sizeof(struct lpfc_name)); in lpfc_send_scsi_error_event()
3809 &pnode->nlp_nodename, sizeof(struct lpfc_name)); in lpfc_send_scsi_error_event()
4210 ndlp = rdata->pnode; in lpfc_fcp_io_cmd_wqe_cmpl()
4537 struct lpfc_nodelist *pnode = rdata->pnode; in lpfc_scsi_cmd_iocb_cmpl() local
4629 (pnode) ? pnode->nlp_DID : 0, in lpfc_scsi_cmd_iocb_cmpl()
4652 if (pnode) { in lpfc_scsi_cmd_iocb_cmpl()
4654 &pnode->nlp_portname, in lpfc_scsi_cmd_iocb_cmpl()
4657 &pnode->nlp_nodename, in lpfc_scsi_cmd_iocb_cmpl()
4707 && pnode) { in lpfc_scsi_cmd_iocb_cmpl()
4712 lpfc_set_rrq_active(phba, pnode, in lpfc_scsi_cmd_iocb_cmpl()
4722 if (!pnode || (pnode->nlp_state != NLP_STE_MAPPED_NODE)) in lpfc_scsi_cmd_iocb_cmpl()
4744 if (pnode) { in lpfc_scsi_cmd_iocb_cmpl()
4745 if (pnode->cmd_qdepth > in lpfc_scsi_cmd_iocb_cmpl()
4746 atomic_read(&pnode->cmd_pending) && in lpfc_scsi_cmd_iocb_cmpl()
4747 (atomic_read(&pnode->cmd_pending) > in lpfc_scsi_cmd_iocb_cmpl()
4751 pnode->cmd_qdepth = in lpfc_scsi_cmd_iocb_cmpl()
4752 atomic_read(&pnode->cmd_pending); in lpfc_scsi_cmd_iocb_cmpl()
4754 pnode->last_change_time = jiffies; in lpfc_scsi_cmd_iocb_cmpl()
4808 struct lpfc_nodelist *pnode = lpfc_cmd->ndlp; in lpfc_scsi_prep_cmnd_buf_s3() local
4825 (pnode->nlp_flag & NLP_FIRSTBURST)) { in lpfc_scsi_prep_cmnd_buf_s3()
4850 piocbq->iocb.ulpContext = pnode->nlp_rpi; in lpfc_scsi_prep_cmnd_buf_s3()
4851 if (pnode->nlp_fcp_info & NLP_FCP_2_DEVICE) in lpfc_scsi_prep_cmnd_buf_s3()
4856 piocbq->iocb.ulpClass = (pnode->nlp_fcp_info & 0x0f); in lpfc_scsi_prep_cmnd_buf_s3()
4886 struct lpfc_nodelist *pnode = lpfc_cmd->ndlp; in lpfc_scsi_prep_cmnd_buf_s4() local
4952 phba->sli4_hba.rpi_ids[pnode->nlp_rpi]); in lpfc_scsi_prep_cmnd_buf_s4()
4956 if (pnode->nlp_fcp_info & NLP_FCP_2_DEVICE) in lpfc_scsi_prep_cmnd_buf_s4()
4960 (pnode->nlp_fcp_info & 0x0f)); in lpfc_scsi_prep_cmnd_buf_s4()
4988 struct lpfc_nodelist *pnode) in lpfc_scsi_prep_cmnd() argument
4994 if (!pnode) in lpfc_scsi_prep_cmnd()
5042 struct lpfc_nodelist *ndlp = rdata->pnode; in lpfc_scsi_prep_task_mgmt_cmd()
5614 ndlp = rdata->pnode; in lpfc_queuecommand()
6164 struct lpfc_nodelist *pnode; in lpfc_send_taskmgmt() local
6169 if (!rdata || !rdata->pnode) in lpfc_send_taskmgmt()
6171 pnode = rdata->pnode; in lpfc_send_taskmgmt()
6173 lpfc_cmd = lpfc_get_scsi_buf(phba, pnode, NULL); in lpfc_send_taskmgmt()
6179 lpfc_cmd->ndlp = pnode; in lpfc_send_taskmgmt()
6200 pnode->nlp_rpi, pnode->nlp_flag, iocbq->sli4_xritag, in lpfc_send_taskmgmt()
6257 struct lpfc_nodelist *pnode; in lpfc_chk_tgt_mapped() local
6266 pnode = rdata->pnode; in lpfc_chk_tgt_mapped()
6273 if (!pnode) in lpfc_chk_tgt_mapped()
6275 if (pnode->nlp_state == NLP_STE_MAPPED_NODE) in lpfc_chk_tgt_mapped()
6281 pnode = rdata->pnode; in lpfc_chk_tgt_mapped()
6283 if (!pnode || (pnode->nlp_state != NLP_STE_MAPPED_NODE)) in lpfc_chk_tgt_mapped()
6351 struct lpfc_nodelist *pnode; in lpfc_device_reset_handler() local
6359 if (!rdata || !rdata->pnode) { in lpfc_device_reset_handler()
6365 pnode = rdata->pnode; in lpfc_device_reset_handler()
6380 memcpy(scsi_event.wwpn, &pnode->nlp_portname, sizeof(struct lpfc_name)); in lpfc_device_reset_handler()
6381 memcpy(scsi_event.wwnn, &pnode->nlp_nodename, sizeof(struct lpfc_name)); in lpfc_device_reset_handler()
6425 struct lpfc_nodelist *pnode; in lpfc_target_reset_handler() local
6436 if (!rdata || !rdata->pnode) { in lpfc_target_reset_handler()
6442 pnode = rdata->pnode; in lpfc_target_reset_handler()
6451 if (pnode) { in lpfc_target_reset_handler()
6452 spin_lock_irqsave(&pnode->lock, flags); in lpfc_target_reset_handler()
6453 pnode->nlp_flag &= ~NLP_NPR_ADISC; in lpfc_target_reset_handler()
6454 pnode->nlp_fcp_info &= ~NLP_FCP_2_DEVICE; in lpfc_target_reset_handler()
6455 spin_unlock_irqrestore(&pnode->lock, flags); in lpfc_target_reset_handler()
6465 memcpy(scsi_event.wwpn, &pnode->nlp_portname, sizeof(struct lpfc_name)); in lpfc_target_reset_handler()
6466 memcpy(scsi_event.wwnn, &pnode->nlp_nodename, sizeof(struct lpfc_name)); in lpfc_target_reset_handler()
6477 spin_lock_irqsave(&pnode->lock, flags); in lpfc_target_reset_handler()
6478 if (!(pnode->save_flags & NLP_WAIT_FOR_LOGO) && in lpfc_target_reset_handler()
6479 !pnode->logo_waitq) { in lpfc_target_reset_handler()
6480 pnode->logo_waitq = &waitq; in lpfc_target_reset_handler()
6481 pnode->nlp_fcp_info &= ~NLP_FCP_2_DEVICE; in lpfc_target_reset_handler()
6482 pnode->nlp_flag |= NLP_ISSUE_LOGO; in lpfc_target_reset_handler()
6483 pnode->save_flags |= NLP_WAIT_FOR_LOGO; in lpfc_target_reset_handler()
6484 spin_unlock_irqrestore(&pnode->lock, flags); in lpfc_target_reset_handler()
6485 lpfc_unreg_rpi(vport, pnode); in lpfc_target_reset_handler()
6487 (!(pnode->save_flags & in lpfc_target_reset_handler()
6492 if (pnode->save_flags & NLP_WAIT_FOR_LOGO) { in lpfc_target_reset_handler()
6498 spin_lock_irqsave(&pnode->lock, flags); in lpfc_target_reset_handler()
6499 pnode->save_flags &= ~NLP_WAIT_FOR_LOGO; in lpfc_target_reset_handler()
6501 spin_lock_irqsave(&pnode->lock, flags); in lpfc_target_reset_handler()
6503 pnode->logo_waitq = NULL; in lpfc_target_reset_handler()
6504 spin_unlock_irqrestore(&pnode->lock, flags); in lpfc_target_reset_handler()
6508 spin_unlock_irqrestore(&pnode->lock, flags); in lpfc_target_reset_handler()