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
3898 (pnode) ? pnode->nlp_DID : 0, in lpfc_scsi_cmd_iocb_cmpl()
3920 if (pnode && NLP_CHK_NODE_ACT(pnode)) { in lpfc_scsi_cmd_iocb_cmpl()
3922 &pnode->nlp_portname, in lpfc_scsi_cmd_iocb_cmpl()
3925 &pnode->nlp_nodename, in lpfc_scsi_cmd_iocb_cmpl()
3975 && (pnode && NLP_CHK_NODE_ACT(pnode))) { in lpfc_scsi_cmd_iocb_cmpl()
3980 lpfc_set_rrq_active(phba, pnode, in lpfc_scsi_cmd_iocb_cmpl()
3990 if (!pnode || !NLP_CHK_NODE_ACT(pnode) in lpfc_scsi_cmd_iocb_cmpl()
3991 || (pnode->nlp_state != NLP_STE_MAPPED_NODE)) in lpfc_scsi_cmd_iocb_cmpl()
4013 if (pnode && NLP_CHK_NODE_ACT(pnode)) { in lpfc_scsi_cmd_iocb_cmpl()
4014 if (pnode->cmd_qdepth > in lpfc_scsi_cmd_iocb_cmpl()
4015 atomic_read(&pnode->cmd_pending) && in lpfc_scsi_cmd_iocb_cmpl()
4016 (atomic_read(&pnode->cmd_pending) > in lpfc_scsi_cmd_iocb_cmpl()
4020 pnode->cmd_qdepth = in lpfc_scsi_cmd_iocb_cmpl()
4021 atomic_read(&pnode->cmd_pending); in lpfc_scsi_cmd_iocb_cmpl()
4023 pnode->last_change_time = jiffies; in lpfc_scsi_cmd_iocb_cmpl()
4077 struct lpfc_nodelist *pnode) in lpfc_scsi_prep_cmnd() argument
4091 if (!pnode || !NLP_CHK_NODE_ACT(pnode)) in lpfc_scsi_prep_cmnd()
4127 (pnode->nlp_flag & NLP_FIRSTBURST)) { in lpfc_scsi_prep_cmnd()
4160 piocbq->iocb.ulpContext = pnode->nlp_rpi; in lpfc_scsi_prep_cmnd()
4163 phba->sli4_hba.rpi_ids[pnode->nlp_rpi]; in lpfc_scsi_prep_cmnd()
4164 if (pnode->nlp_fcp_info & NLP_FCP_2_DEVICE) in lpfc_scsi_prep_cmnd()
4169 piocbq->iocb.ulpClass = (pnode->nlp_fcp_info & 0x0f); in lpfc_scsi_prep_cmnd()
4200 struct lpfc_nodelist *ndlp = rdata->pnode; in lpfc_scsi_prep_task_mgmt_cmd()
4519 ndlp = rdata->pnode; in lpfc_queuecommand()
5027 struct lpfc_nodelist *pnode; in lpfc_send_taskmgmt() local
5032 if (!rdata || !rdata->pnode || !NLP_CHK_NODE_ACT(rdata->pnode)) in lpfc_send_taskmgmt()
5034 pnode = rdata->pnode; in lpfc_send_taskmgmt()
5036 lpfc_cmd = lpfc_get_scsi_buf(phba, pnode, NULL); in lpfc_send_taskmgmt()
5042 lpfc_cmd->ndlp = pnode; in lpfc_send_taskmgmt()
5063 pnode->nlp_rpi, pnode->nlp_flag, iocbq->sli4_xritag, in lpfc_send_taskmgmt()
5120 struct lpfc_nodelist *pnode; in lpfc_chk_tgt_mapped() local
5129 pnode = rdata->pnode; in lpfc_chk_tgt_mapped()
5136 if (!pnode || !NLP_CHK_NODE_ACT(pnode)) in lpfc_chk_tgt_mapped()
5138 if (pnode->nlp_state == NLP_STE_MAPPED_NODE) in lpfc_chk_tgt_mapped()
5144 pnode = rdata->pnode; in lpfc_chk_tgt_mapped()
5146 if (!pnode || !NLP_CHK_NODE_ACT(pnode) || in lpfc_chk_tgt_mapped()
5147 (pnode->nlp_state != NLP_STE_MAPPED_NODE)) in lpfc_chk_tgt_mapped()
5215 struct lpfc_nodelist *pnode; in lpfc_device_reset_handler() local
5222 if (!rdata || !rdata->pnode) { in lpfc_device_reset_handler()
5228 pnode = rdata->pnode; in lpfc_device_reset_handler()
5243 memcpy(scsi_event.wwpn, &pnode->nlp_portname, sizeof(struct lpfc_name)); in lpfc_device_reset_handler()
5244 memcpy(scsi_event.wwnn, &pnode->nlp_nodename, sizeof(struct lpfc_name)); in lpfc_device_reset_handler()
5286 struct lpfc_nodelist *pnode; in lpfc_target_reset_handler() local
5293 if (!rdata || !rdata->pnode) { in lpfc_target_reset_handler()
5299 pnode = rdata->pnode; in lpfc_target_reset_handler()
5308 if (pnode) { in lpfc_target_reset_handler()
5310 pnode->nlp_flag &= ~NLP_NPR_ADISC; in lpfc_target_reset_handler()
5311 pnode->nlp_fcp_info &= ~NLP_FCP_2_DEVICE; in lpfc_target_reset_handler()
5322 memcpy(scsi_event.wwpn, &pnode->nlp_portname, sizeof(struct lpfc_name)); in lpfc_target_reset_handler()
5323 memcpy(scsi_event.wwnn, &pnode->nlp_nodename, sizeof(struct lpfc_name)); in lpfc_target_reset_handler()