Lines Matching refs:pnode
148 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()
1025 if (rdata && rdata->pnode) { in lpfc_bg_err_inject()
1026 ndlp = rdata->pnode; in lpfc_bg_err_inject()
3496 struct lpfc_nodelist *pnode = lpfc_cmd->rdata->pnode; in lpfc_send_scsi_error_event() local
3499 if (!pnode || !NLP_CHK_NODE_ACT(pnode)) in lpfc_send_scsi_error_event()
3515 &pnode->nlp_portname, sizeof(struct lpfc_name)); in lpfc_send_scsi_error_event()
3517 &pnode->nlp_nodename, sizeof(struct lpfc_name)); in lpfc_send_scsi_error_event()
3530 &pnode->nlp_portname, sizeof(struct lpfc_name)); in lpfc_send_scsi_error_event()
3532 &pnode->nlp_nodename, sizeof(struct lpfc_name)); in lpfc_send_scsi_error_event()
3554 &pnode->nlp_portname, sizeof(struct lpfc_name)); in lpfc_send_scsi_error_event()
3556 &pnode->nlp_nodename, sizeof(struct lpfc_name)); in lpfc_send_scsi_error_event()
3804 struct lpfc_nodelist *pnode = rdata->pnode; in lpfc_scsi_cmd_iocb_cmpl() local
3897 (pnode) ? pnode->nlp_DID : 0, in lpfc_scsi_cmd_iocb_cmpl()
3919 if (pnode && NLP_CHK_NODE_ACT(pnode)) { in lpfc_scsi_cmd_iocb_cmpl()
3921 &pnode->nlp_portname, in lpfc_scsi_cmd_iocb_cmpl()
3924 &pnode->nlp_nodename, in lpfc_scsi_cmd_iocb_cmpl()
3974 && (pnode && NLP_CHK_NODE_ACT(pnode))) { in lpfc_scsi_cmd_iocb_cmpl()
3979 lpfc_set_rrq_active(phba, pnode, in lpfc_scsi_cmd_iocb_cmpl()
3989 if (!pnode || !NLP_CHK_NODE_ACT(pnode) in lpfc_scsi_cmd_iocb_cmpl()
3990 || (pnode->nlp_state != NLP_STE_MAPPED_NODE)) in lpfc_scsi_cmd_iocb_cmpl()
4012 if (pnode && NLP_CHK_NODE_ACT(pnode)) { in lpfc_scsi_cmd_iocb_cmpl()
4013 if (pnode->cmd_qdepth > in lpfc_scsi_cmd_iocb_cmpl()
4014 atomic_read(&pnode->cmd_pending) && in lpfc_scsi_cmd_iocb_cmpl()
4015 (atomic_read(&pnode->cmd_pending) > in lpfc_scsi_cmd_iocb_cmpl()
4019 pnode->cmd_qdepth = in lpfc_scsi_cmd_iocb_cmpl()
4020 atomic_read(&pnode->cmd_pending); in lpfc_scsi_cmd_iocb_cmpl()
4022 pnode->last_change_time = jiffies; in lpfc_scsi_cmd_iocb_cmpl()
4084 struct lpfc_nodelist *pnode) in lpfc_scsi_prep_cmnd() argument
4098 if (!pnode || !NLP_CHK_NODE_ACT(pnode)) in lpfc_scsi_prep_cmnd()
4134 (pnode->nlp_flag & NLP_FIRSTBURST)) { in lpfc_scsi_prep_cmnd()
4167 piocbq->iocb.ulpContext = pnode->nlp_rpi; in lpfc_scsi_prep_cmnd()
4170 phba->sli4_hba.rpi_ids[pnode->nlp_rpi]; in lpfc_scsi_prep_cmnd()
4171 if (pnode->nlp_fcp_info & NLP_FCP_2_DEVICE) in lpfc_scsi_prep_cmnd()
4176 piocbq->iocb.ulpClass = (pnode->nlp_fcp_info & 0x0f); in lpfc_scsi_prep_cmnd()
4207 struct lpfc_nodelist *ndlp = rdata->pnode; in lpfc_scsi_prep_task_mgmt_cmd()
4529 ndlp = rdata->pnode; in lpfc_queuecommand()
5041 struct lpfc_nodelist *pnode; in lpfc_send_taskmgmt() local
5046 if (!rdata || !rdata->pnode || !NLP_CHK_NODE_ACT(rdata->pnode)) in lpfc_send_taskmgmt()
5048 pnode = rdata->pnode; in lpfc_send_taskmgmt()
5050 lpfc_cmd = lpfc_get_scsi_buf(phba, pnode, NULL); in lpfc_send_taskmgmt()
5056 lpfc_cmd->ndlp = pnode; in lpfc_send_taskmgmt()
5077 pnode->nlp_rpi, pnode->nlp_flag, iocbq->sli4_xritag, in lpfc_send_taskmgmt()
5134 struct lpfc_nodelist *pnode; in lpfc_chk_tgt_mapped() local
5143 pnode = rdata->pnode; in lpfc_chk_tgt_mapped()
5150 if (!pnode || !NLP_CHK_NODE_ACT(pnode)) in lpfc_chk_tgt_mapped()
5152 if (pnode->nlp_state == NLP_STE_MAPPED_NODE) in lpfc_chk_tgt_mapped()
5158 pnode = rdata->pnode; in lpfc_chk_tgt_mapped()
5160 if (!pnode || !NLP_CHK_NODE_ACT(pnode) || in lpfc_chk_tgt_mapped()
5161 (pnode->nlp_state != NLP_STE_MAPPED_NODE)) in lpfc_chk_tgt_mapped()
5229 struct lpfc_nodelist *pnode; in lpfc_device_reset_handler() local
5236 if (!rdata || !rdata->pnode) { in lpfc_device_reset_handler()
5242 pnode = rdata->pnode; in lpfc_device_reset_handler()
5257 memcpy(scsi_event.wwpn, &pnode->nlp_portname, sizeof(struct lpfc_name)); in lpfc_device_reset_handler()
5258 memcpy(scsi_event.wwnn, &pnode->nlp_nodename, sizeof(struct lpfc_name)); in lpfc_device_reset_handler()
5300 struct lpfc_nodelist *pnode; in lpfc_target_reset_handler() local
5307 if (!rdata || !rdata->pnode) { in lpfc_target_reset_handler()
5313 pnode = rdata->pnode; in lpfc_target_reset_handler()
5322 if (pnode) { in lpfc_target_reset_handler()
5324 pnode->nlp_flag &= ~NLP_NPR_ADISC; in lpfc_target_reset_handler()
5325 pnode->nlp_fcp_info &= ~NLP_FCP_2_DEVICE; in lpfc_target_reset_handler()
5336 memcpy(scsi_event.wwpn, &pnode->nlp_portname, sizeof(struct lpfc_name)); in lpfc_target_reset_handler()
5337 memcpy(scsi_event.wwnn, &pnode->nlp_nodename, sizeof(struct lpfc_name)); in lpfc_target_reset_handler()