Lines Matching refs:pnode
206 struct lpfc_nodelist *pnode = rdata->pnode; in lpfc_update_stats() local
222 !pnode || in lpfc_update_stats()
223 !pnode->lat_data || in lpfc_update_stats()
244 pnode->lat_data[i].cmd_count++; in lpfc_update_stats()
534 if (psb->rdata && psb->rdata->pnode in lpfc_sli4_vport_delete_fcp_xri_aborted()
535 && psb->rdata->pnode->vport == vport) in lpfc_sli4_vport_delete_fcp_xri_aborted()
576 if (psb->rdata && psb->rdata->pnode) in lpfc_sli4_fcp_xri_aborted()
577 ndlp = psb->rdata->pnode; in lpfc_sli4_fcp_xri_aborted()
1358 if (rdata && rdata->pnode) { in lpfc_bg_err_inject()
1359 ndlp = rdata->pnode; in lpfc_bg_err_inject()
3604 struct lpfc_nodelist *pnode = lpfc_cmd->rdata->pnode; in lpfc_send_scsi_error_event() local
3607 if (!pnode || !NLP_CHK_NODE_ACT(pnode)) in lpfc_send_scsi_error_event()
3623 &pnode->nlp_portname, sizeof(struct lpfc_name)); in lpfc_send_scsi_error_event()
3625 &pnode->nlp_nodename, sizeof(struct lpfc_name)); in lpfc_send_scsi_error_event()
3638 &pnode->nlp_portname, sizeof(struct lpfc_name)); in lpfc_send_scsi_error_event()
3640 &pnode->nlp_nodename, sizeof(struct lpfc_name)); in lpfc_send_scsi_error_event()
3662 &pnode->nlp_portname, sizeof(struct lpfc_name)); in lpfc_send_scsi_error_event()
3664 &pnode->nlp_nodename, sizeof(struct lpfc_name)); in lpfc_send_scsi_error_event()
3955 struct lpfc_nodelist *pnode = rdata->pnode; in lpfc_scsi_cmd_iocb_cmpl() local
4030 (pnode) ? pnode->nlp_DID : 0, in lpfc_scsi_cmd_iocb_cmpl()
4052 if (pnode && NLP_CHK_NODE_ACT(pnode)) { in lpfc_scsi_cmd_iocb_cmpl()
4054 &pnode->nlp_portname, in lpfc_scsi_cmd_iocb_cmpl()
4057 &pnode->nlp_nodename, in lpfc_scsi_cmd_iocb_cmpl()
4107 && (pnode && NLP_CHK_NODE_ACT(pnode))) { in lpfc_scsi_cmd_iocb_cmpl()
4112 lpfc_set_rrq_active(phba, pnode, in lpfc_scsi_cmd_iocb_cmpl()
4122 if (!pnode || !NLP_CHK_NODE_ACT(pnode) in lpfc_scsi_cmd_iocb_cmpl()
4123 || (pnode->nlp_state != NLP_STE_MAPPED_NODE)) in lpfc_scsi_cmd_iocb_cmpl()
4145 if (pnode && NLP_CHK_NODE_ACT(pnode)) { in lpfc_scsi_cmd_iocb_cmpl()
4146 if (pnode->cmd_qdepth > in lpfc_scsi_cmd_iocb_cmpl()
4147 atomic_read(&pnode->cmd_pending) && in lpfc_scsi_cmd_iocb_cmpl()
4148 (atomic_read(&pnode->cmd_pending) > in lpfc_scsi_cmd_iocb_cmpl()
4152 pnode->cmd_qdepth = in lpfc_scsi_cmd_iocb_cmpl()
4153 atomic_read(&pnode->cmd_pending); in lpfc_scsi_cmd_iocb_cmpl()
4155 pnode->last_change_time = jiffies; in lpfc_scsi_cmd_iocb_cmpl()
4209 struct lpfc_nodelist *pnode) in lpfc_scsi_prep_cmnd() argument
4221 if (!pnode || !NLP_CHK_NODE_ACT(pnode)) in lpfc_scsi_prep_cmnd()
4254 (pnode->nlp_flag & NLP_FIRSTBURST)) { in lpfc_scsi_prep_cmnd()
4284 piocbq->iocb.ulpContext = pnode->nlp_rpi; in lpfc_scsi_prep_cmnd()
4287 phba->sli4_hba.rpi_ids[pnode->nlp_rpi]; in lpfc_scsi_prep_cmnd()
4288 if (pnode->nlp_fcp_info & NLP_FCP_2_DEVICE) in lpfc_scsi_prep_cmnd()
4293 piocbq->iocb.ulpClass = (pnode->nlp_fcp_info & 0x0f); in lpfc_scsi_prep_cmnd()
4324 struct lpfc_nodelist *ndlp = rdata->pnode; in lpfc_scsi_prep_task_mgmt_cmd()
4561 ndlp = rdata->pnode; in lpfc_queuecommand()
5048 struct lpfc_nodelist *pnode; in lpfc_send_taskmgmt() local
5053 if (!rdata || !rdata->pnode || !NLP_CHK_NODE_ACT(rdata->pnode)) in lpfc_send_taskmgmt()
5055 pnode = rdata->pnode; in lpfc_send_taskmgmt()
5057 lpfc_cmd = lpfc_get_scsi_buf(phba, pnode); in lpfc_send_taskmgmt()
5063 lpfc_cmd->ndlp = pnode; in lpfc_send_taskmgmt()
5084 pnode->nlp_rpi, pnode->nlp_flag, iocbq->sli4_xritag, in lpfc_send_taskmgmt()
5141 struct lpfc_nodelist *pnode; in lpfc_chk_tgt_mapped() local
5150 pnode = rdata->pnode; in lpfc_chk_tgt_mapped()
5157 if (!pnode || !NLP_CHK_NODE_ACT(pnode)) in lpfc_chk_tgt_mapped()
5159 if (pnode->nlp_state == NLP_STE_MAPPED_NODE) in lpfc_chk_tgt_mapped()
5165 pnode = rdata->pnode; in lpfc_chk_tgt_mapped()
5167 if (!pnode || !NLP_CHK_NODE_ACT(pnode) || in lpfc_chk_tgt_mapped()
5168 (pnode->nlp_state != NLP_STE_MAPPED_NODE)) in lpfc_chk_tgt_mapped()
5236 struct lpfc_nodelist *pnode; in lpfc_device_reset_handler() local
5243 if (!rdata || !rdata->pnode) { in lpfc_device_reset_handler()
5249 pnode = rdata->pnode; in lpfc_device_reset_handler()
5264 memcpy(scsi_event.wwpn, &pnode->nlp_portname, sizeof(struct lpfc_name)); in lpfc_device_reset_handler()
5265 memcpy(scsi_event.wwnn, &pnode->nlp_nodename, sizeof(struct lpfc_name)); in lpfc_device_reset_handler()
5307 struct lpfc_nodelist *pnode; in lpfc_target_reset_handler() local
5319 pnode = rdata->pnode; in lpfc_target_reset_handler()
5328 if (pnode) { in lpfc_target_reset_handler()
5330 pnode->nlp_flag &= ~NLP_NPR_ADISC; in lpfc_target_reset_handler()
5331 pnode->nlp_fcp_info &= ~NLP_FCP_2_DEVICE; in lpfc_target_reset_handler()
5342 memcpy(scsi_event.wwpn, &pnode->nlp_portname, sizeof(struct lpfc_name)); in lpfc_target_reset_handler()
5343 memcpy(scsi_event.wwnn, &pnode->nlp_nodename, sizeof(struct lpfc_name)); in lpfc_target_reset_handler()