Lines Matching refs:pnode
203 struct lpfc_nodelist *pnode = rdata->pnode; in lpfc_update_stats() local
219 !pnode || in lpfc_update_stats()
220 !pnode->lat_data || in lpfc_update_stats()
241 pnode->lat_data[i].cmd_count++; in lpfc_update_stats()
531 if (psb->rdata && psb->rdata->pnode in lpfc_sli4_vport_delete_fcp_xri_aborted()
532 && psb->rdata->pnode->vport == vport) in lpfc_sli4_vport_delete_fcp_xri_aborted()
571 if (psb->rdata && psb->rdata->pnode) in lpfc_sli4_fcp_xri_aborted()
572 ndlp = psb->rdata->pnode; in lpfc_sli4_fcp_xri_aborted()
1335 if (rdata && rdata->pnode) { in lpfc_bg_err_inject()
1336 ndlp = rdata->pnode; in lpfc_bg_err_inject()
3571 struct lpfc_nodelist *pnode = lpfc_cmd->rdata->pnode; in lpfc_send_scsi_error_event() local
3574 if (!pnode || !NLP_CHK_NODE_ACT(pnode)) in lpfc_send_scsi_error_event()
3590 &pnode->nlp_portname, sizeof(struct lpfc_name)); in lpfc_send_scsi_error_event()
3592 &pnode->nlp_nodename, sizeof(struct lpfc_name)); in lpfc_send_scsi_error_event()
3605 &pnode->nlp_portname, sizeof(struct lpfc_name)); in lpfc_send_scsi_error_event()
3607 &pnode->nlp_nodename, sizeof(struct lpfc_name)); in lpfc_send_scsi_error_event()
3629 &pnode->nlp_portname, sizeof(struct lpfc_name)); in lpfc_send_scsi_error_event()
3631 &pnode->nlp_nodename, sizeof(struct lpfc_name)); in lpfc_send_scsi_error_event()
3866 struct lpfc_nodelist *pnode = rdata->pnode; in lpfc_scsi_cmd_iocb_cmpl() local
3918 if (pnode && NLP_CHK_NODE_ACT(pnode)) in lpfc_scsi_cmd_iocb_cmpl()
3919 atomic_dec(&pnode->cmd_pending); in lpfc_scsi_cmd_iocb_cmpl()
3944 (pnode) ? pnode->nlp_DID : 0, in lpfc_scsi_cmd_iocb_cmpl()
3966 if (pnode && NLP_CHK_NODE_ACT(pnode)) { in lpfc_scsi_cmd_iocb_cmpl()
3968 &pnode->nlp_portname, in lpfc_scsi_cmd_iocb_cmpl()
3971 &pnode->nlp_nodename, in lpfc_scsi_cmd_iocb_cmpl()
4021 && (pnode && NLP_CHK_NODE_ACT(pnode))) { in lpfc_scsi_cmd_iocb_cmpl()
4026 lpfc_set_rrq_active(phba, pnode, in lpfc_scsi_cmd_iocb_cmpl()
4036 if (!pnode || !NLP_CHK_NODE_ACT(pnode) in lpfc_scsi_cmd_iocb_cmpl()
4037 || (pnode->nlp_state != NLP_STE_MAPPED_NODE)) in lpfc_scsi_cmd_iocb_cmpl()
4060 if (pnode && NLP_CHK_NODE_ACT(pnode)) { in lpfc_scsi_cmd_iocb_cmpl()
4061 if (pnode->cmd_qdepth > in lpfc_scsi_cmd_iocb_cmpl()
4062 atomic_read(&pnode->cmd_pending) && in lpfc_scsi_cmd_iocb_cmpl()
4063 (atomic_read(&pnode->cmd_pending) > in lpfc_scsi_cmd_iocb_cmpl()
4067 pnode->cmd_qdepth = in lpfc_scsi_cmd_iocb_cmpl()
4068 atomic_read(&pnode->cmd_pending); in lpfc_scsi_cmd_iocb_cmpl()
4070 pnode->last_change_time = jiffies; in lpfc_scsi_cmd_iocb_cmpl()
4073 } else if (pnode && NLP_CHK_NODE_ACT(pnode)) { in lpfc_scsi_cmd_iocb_cmpl()
4074 if ((pnode->cmd_qdepth < vport->cfg_tgt_queue_depth) && in lpfc_scsi_cmd_iocb_cmpl()
4075 time_after(jiffies, pnode->last_change_time + in lpfc_scsi_cmd_iocb_cmpl()
4078 depth = pnode->cmd_qdepth * LPFC_TGTQ_RAMPUP_PCENT in lpfc_scsi_cmd_iocb_cmpl()
4081 pnode->cmd_qdepth += depth; in lpfc_scsi_cmd_iocb_cmpl()
4082 if (pnode->cmd_qdepth > vport->cfg_tgt_queue_depth) in lpfc_scsi_cmd_iocb_cmpl()
4083 pnode->cmd_qdepth = vport->cfg_tgt_queue_depth; in lpfc_scsi_cmd_iocb_cmpl()
4084 pnode->last_change_time = jiffies; in lpfc_scsi_cmd_iocb_cmpl()
4158 struct lpfc_nodelist *pnode) in lpfc_scsi_prep_cmnd() argument
4170 if (!pnode || !NLP_CHK_NODE_ACT(pnode)) in lpfc_scsi_prep_cmnd()
4203 (pnode->nlp_flag & NLP_FIRSTBURST)) { in lpfc_scsi_prep_cmnd()
4233 piocbq->iocb.ulpContext = pnode->nlp_rpi; in lpfc_scsi_prep_cmnd()
4236 phba->sli4_hba.rpi_ids[pnode->nlp_rpi]; in lpfc_scsi_prep_cmnd()
4237 if (pnode->nlp_fcp_info & NLP_FCP_2_DEVICE) in lpfc_scsi_prep_cmnd()
4242 piocbq->iocb.ulpClass = (pnode->nlp_fcp_info & 0x0f); in lpfc_scsi_prep_cmnd()
4273 struct lpfc_nodelist *ndlp = rdata->pnode; in lpfc_scsi_prep_task_mgmt_cmd()
4513 ndlp = rdata->pnode; in lpfc_queuecommand()
4932 struct lpfc_nodelist *pnode = rdata->pnode; in lpfc_send_taskmgmt() local
4936 if (!pnode || !NLP_CHK_NODE_ACT(pnode)) in lpfc_send_taskmgmt()
4939 lpfc_cmd = lpfc_get_scsi_buf(phba, rdata->pnode); in lpfc_send_taskmgmt()
4964 pnode->nlp_rpi, pnode->nlp_flag, iocbq->sli4_xritag, in lpfc_send_taskmgmt()
5019 struct lpfc_nodelist *pnode; in lpfc_chk_tgt_mapped() local
5028 pnode = rdata->pnode; in lpfc_chk_tgt_mapped()
5035 if (!pnode || !NLP_CHK_NODE_ACT(pnode)) in lpfc_chk_tgt_mapped()
5037 if (pnode->nlp_state == NLP_STE_MAPPED_NODE) in lpfc_chk_tgt_mapped()
5043 pnode = rdata->pnode; in lpfc_chk_tgt_mapped()
5045 if (!pnode || !NLP_CHK_NODE_ACT(pnode) || in lpfc_chk_tgt_mapped()
5046 (pnode->nlp_state != NLP_STE_MAPPED_NODE)) in lpfc_chk_tgt_mapped()
5114 struct lpfc_nodelist *pnode; in lpfc_device_reset_handler() local
5121 if (!rdata || !rdata->pnode) { in lpfc_device_reset_handler()
5127 pnode = rdata->pnode; in lpfc_device_reset_handler()
5142 memcpy(scsi_event.wwpn, &pnode->nlp_portname, sizeof(struct lpfc_name)); in lpfc_device_reset_handler()
5143 memcpy(scsi_event.wwnn, &pnode->nlp_nodename, sizeof(struct lpfc_name)); in lpfc_device_reset_handler()
5185 struct lpfc_nodelist *pnode; in lpfc_target_reset_handler() local
5197 pnode = rdata->pnode; in lpfc_target_reset_handler()
5206 if (pnode) { in lpfc_target_reset_handler()
5208 pnode->nlp_flag &= ~NLP_NPR_ADISC; in lpfc_target_reset_handler()
5209 pnode->nlp_fcp_info &= ~NLP_FCP_2_DEVICE; in lpfc_target_reset_handler()
5220 memcpy(scsi_event.wwpn, &pnode->nlp_portname, sizeof(struct lpfc_name)); in lpfc_target_reset_handler()
5221 memcpy(scsi_event.wwnn, &pnode->nlp_nodename, sizeof(struct lpfc_name)); in lpfc_target_reset_handler()