Lines Matching refs:pnode
147 struct lpfc_nodelist *pnode; in lpfc_update_stats() local
162 pnode = rdata->pnode; in lpfc_update_stats()
165 if (!pnode || in lpfc_update_stats()
166 !pnode->lat_data || in lpfc_update_stats()
187 pnode->lat_data[i].cmd_count++; in lpfc_update_stats()
487 if (psb->rdata && psb->rdata->pnode && in lpfc_sli4_vport_delete_fcp_xri_aborted()
488 psb->rdata->pnode->vport == vport) in lpfc_sli4_vport_delete_fcp_xri_aborted()
541 if (psb->rdata && psb->rdata->pnode) in lpfc_sli4_io_xri_aborted()
542 ndlp = psb->rdata->pnode; in lpfc_sli4_io_xri_aborted()
1023 if (rdata && rdata->pnode) { in lpfc_bg_err_inject()
1024 ndlp = rdata->pnode; in lpfc_bg_err_inject()
3491 struct lpfc_nodelist *pnode = lpfc_cmd->rdata->pnode; in lpfc_send_scsi_error_event() local
3494 if (!pnode || !NLP_CHK_NODE_ACT(pnode)) in lpfc_send_scsi_error_event()
3510 &pnode->nlp_portname, sizeof(struct lpfc_name)); in lpfc_send_scsi_error_event()
3512 &pnode->nlp_nodename, sizeof(struct lpfc_name)); in lpfc_send_scsi_error_event()
3525 &pnode->nlp_portname, sizeof(struct lpfc_name)); in lpfc_send_scsi_error_event()
3527 &pnode->nlp_nodename, sizeof(struct lpfc_name)); in lpfc_send_scsi_error_event()
3549 &pnode->nlp_portname, sizeof(struct lpfc_name)); in lpfc_send_scsi_error_event()
3551 &pnode->nlp_nodename, sizeof(struct lpfc_name)); in lpfc_send_scsi_error_event()
3799 struct lpfc_nodelist *pnode = rdata->pnode; in lpfc_scsi_cmd_iocb_cmpl() local
3895 (pnode) ? pnode->nlp_DID : 0, in lpfc_scsi_cmd_iocb_cmpl()
3917 if (pnode && NLP_CHK_NODE_ACT(pnode)) { in lpfc_scsi_cmd_iocb_cmpl()
3919 &pnode->nlp_portname, in lpfc_scsi_cmd_iocb_cmpl()
3922 &pnode->nlp_nodename, in lpfc_scsi_cmd_iocb_cmpl()
3972 && (pnode && NLP_CHK_NODE_ACT(pnode))) { in lpfc_scsi_cmd_iocb_cmpl()
3977 lpfc_set_rrq_active(phba, pnode, in lpfc_scsi_cmd_iocb_cmpl()
3987 if (!pnode || !NLP_CHK_NODE_ACT(pnode) in lpfc_scsi_cmd_iocb_cmpl()
3988 || (pnode->nlp_state != NLP_STE_MAPPED_NODE)) in lpfc_scsi_cmd_iocb_cmpl()
4010 if (pnode && NLP_CHK_NODE_ACT(pnode)) { in lpfc_scsi_cmd_iocb_cmpl()
4011 if (pnode->cmd_qdepth > in lpfc_scsi_cmd_iocb_cmpl()
4012 atomic_read(&pnode->cmd_pending) && in lpfc_scsi_cmd_iocb_cmpl()
4013 (atomic_read(&pnode->cmd_pending) > in lpfc_scsi_cmd_iocb_cmpl()
4017 pnode->cmd_qdepth = in lpfc_scsi_cmd_iocb_cmpl()
4018 atomic_read(&pnode->cmd_pending); in lpfc_scsi_cmd_iocb_cmpl()
4020 pnode->last_change_time = jiffies; in lpfc_scsi_cmd_iocb_cmpl()
4074 struct lpfc_nodelist *pnode) in lpfc_scsi_prep_cmnd() argument
4088 if (!pnode || !NLP_CHK_NODE_ACT(pnode)) in lpfc_scsi_prep_cmnd()
4124 (pnode->nlp_flag & NLP_FIRSTBURST)) { in lpfc_scsi_prep_cmnd()
4157 piocbq->iocb.ulpContext = pnode->nlp_rpi; in lpfc_scsi_prep_cmnd()
4160 phba->sli4_hba.rpi_ids[pnode->nlp_rpi]; in lpfc_scsi_prep_cmnd()
4161 if (pnode->nlp_fcp_info & NLP_FCP_2_DEVICE) in lpfc_scsi_prep_cmnd()
4166 piocbq->iocb.ulpClass = (pnode->nlp_fcp_info & 0x0f); in lpfc_scsi_prep_cmnd()
4197 struct lpfc_nodelist *ndlp = rdata->pnode; in lpfc_scsi_prep_task_mgmt_cmd()
4516 ndlp = rdata->pnode; in lpfc_queuecommand()
5023 struct lpfc_nodelist *pnode; in lpfc_send_taskmgmt() local
5028 if (!rdata || !rdata->pnode || !NLP_CHK_NODE_ACT(rdata->pnode)) in lpfc_send_taskmgmt()
5030 pnode = rdata->pnode; in lpfc_send_taskmgmt()
5032 lpfc_cmd = lpfc_get_scsi_buf(phba, pnode, NULL); in lpfc_send_taskmgmt()
5038 lpfc_cmd->ndlp = pnode; in lpfc_send_taskmgmt()
5059 pnode->nlp_rpi, pnode->nlp_flag, iocbq->sli4_xritag, in lpfc_send_taskmgmt()
5116 struct lpfc_nodelist *pnode; in lpfc_chk_tgt_mapped() local
5125 pnode = rdata->pnode; in lpfc_chk_tgt_mapped()
5132 if (!pnode || !NLP_CHK_NODE_ACT(pnode)) in lpfc_chk_tgt_mapped()
5134 if (pnode->nlp_state == NLP_STE_MAPPED_NODE) in lpfc_chk_tgt_mapped()
5140 pnode = rdata->pnode; in lpfc_chk_tgt_mapped()
5142 if (!pnode || !NLP_CHK_NODE_ACT(pnode) || in lpfc_chk_tgt_mapped()
5143 (pnode->nlp_state != NLP_STE_MAPPED_NODE)) in lpfc_chk_tgt_mapped()
5211 struct lpfc_nodelist *pnode; in lpfc_device_reset_handler() local
5218 if (!rdata || !rdata->pnode) { in lpfc_device_reset_handler()
5224 pnode = rdata->pnode; in lpfc_device_reset_handler()
5239 memcpy(scsi_event.wwpn, &pnode->nlp_portname, sizeof(struct lpfc_name)); in lpfc_device_reset_handler()
5240 memcpy(scsi_event.wwnn, &pnode->nlp_nodename, sizeof(struct lpfc_name)); in lpfc_device_reset_handler()
5282 struct lpfc_nodelist *pnode; in lpfc_target_reset_handler() local
5289 if (!rdata || !rdata->pnode) { in lpfc_target_reset_handler()
5295 pnode = rdata->pnode; in lpfc_target_reset_handler()
5304 if (pnode) { in lpfc_target_reset_handler()
5306 pnode->nlp_flag &= ~NLP_NPR_ADISC; in lpfc_target_reset_handler()
5307 pnode->nlp_fcp_info &= ~NLP_FCP_2_DEVICE; in lpfc_target_reset_handler()
5318 memcpy(scsi_event.wwpn, &pnode->nlp_portname, sizeof(struct lpfc_name)); in lpfc_target_reset_handler()
5319 memcpy(scsi_event.wwnn, &pnode->nlp_nodename, sizeof(struct lpfc_name)); in lpfc_target_reset_handler()