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()
1333 if (rdata && rdata->pnode) { in lpfc_bg_err_inject()
1334 ndlp = rdata->pnode; in lpfc_bg_err_inject()
3564 struct lpfc_nodelist *pnode = lpfc_cmd->rdata->pnode; in lpfc_send_scsi_error_event() local
3567 if (!pnode || !NLP_CHK_NODE_ACT(pnode)) in lpfc_send_scsi_error_event()
3583 &pnode->nlp_portname, sizeof(struct lpfc_name)); in lpfc_send_scsi_error_event()
3585 &pnode->nlp_nodename, sizeof(struct lpfc_name)); in lpfc_send_scsi_error_event()
3598 &pnode->nlp_portname, sizeof(struct lpfc_name)); in lpfc_send_scsi_error_event()
3600 &pnode->nlp_nodename, sizeof(struct lpfc_name)); in lpfc_send_scsi_error_event()
3622 &pnode->nlp_portname, sizeof(struct lpfc_name)); in lpfc_send_scsi_error_event()
3624 &pnode->nlp_nodename, sizeof(struct lpfc_name)); in lpfc_send_scsi_error_event()
3902 struct lpfc_nodelist *pnode = rdata->pnode; in lpfc_scsi_cmd_iocb_cmpl() local
3952 if (pnode && NLP_CHK_NODE_ACT(pnode)) in lpfc_scsi_cmd_iocb_cmpl()
3953 atomic_dec(&pnode->cmd_pending); in lpfc_scsi_cmd_iocb_cmpl()
3978 (pnode) ? pnode->nlp_DID : 0, in lpfc_scsi_cmd_iocb_cmpl()
4000 if (pnode && NLP_CHK_NODE_ACT(pnode)) { in lpfc_scsi_cmd_iocb_cmpl()
4002 &pnode->nlp_portname, in lpfc_scsi_cmd_iocb_cmpl()
4005 &pnode->nlp_nodename, in lpfc_scsi_cmd_iocb_cmpl()
4055 && (pnode && NLP_CHK_NODE_ACT(pnode))) { in lpfc_scsi_cmd_iocb_cmpl()
4060 lpfc_set_rrq_active(phba, pnode, in lpfc_scsi_cmd_iocb_cmpl()
4070 if (!pnode || !NLP_CHK_NODE_ACT(pnode) in lpfc_scsi_cmd_iocb_cmpl()
4071 || (pnode->nlp_state != NLP_STE_MAPPED_NODE)) in lpfc_scsi_cmd_iocb_cmpl()
4093 if (pnode && NLP_CHK_NODE_ACT(pnode)) { in lpfc_scsi_cmd_iocb_cmpl()
4094 if (pnode->cmd_qdepth > in lpfc_scsi_cmd_iocb_cmpl()
4095 atomic_read(&pnode->cmd_pending) && in lpfc_scsi_cmd_iocb_cmpl()
4096 (atomic_read(&pnode->cmd_pending) > in lpfc_scsi_cmd_iocb_cmpl()
4100 pnode->cmd_qdepth = in lpfc_scsi_cmd_iocb_cmpl()
4101 atomic_read(&pnode->cmd_pending); in lpfc_scsi_cmd_iocb_cmpl()
4103 pnode->last_change_time = jiffies; in lpfc_scsi_cmd_iocb_cmpl()
4106 } else if (pnode && NLP_CHK_NODE_ACT(pnode)) { in lpfc_scsi_cmd_iocb_cmpl()
4107 if ((pnode->cmd_qdepth < vport->cfg_tgt_queue_depth) && in lpfc_scsi_cmd_iocb_cmpl()
4108 time_after(jiffies, pnode->last_change_time + in lpfc_scsi_cmd_iocb_cmpl()
4111 depth = pnode->cmd_qdepth * LPFC_TGTQ_RAMPUP_PCENT in lpfc_scsi_cmd_iocb_cmpl()
4114 pnode->cmd_qdepth += depth; in lpfc_scsi_cmd_iocb_cmpl()
4115 if (pnode->cmd_qdepth > vport->cfg_tgt_queue_depth) in lpfc_scsi_cmd_iocb_cmpl()
4116 pnode->cmd_qdepth = vport->cfg_tgt_queue_depth; in lpfc_scsi_cmd_iocb_cmpl()
4117 pnode->last_change_time = jiffies; in lpfc_scsi_cmd_iocb_cmpl()
4189 struct lpfc_nodelist *pnode) in lpfc_scsi_prep_cmnd() argument
4201 if (!pnode || !NLP_CHK_NODE_ACT(pnode)) in lpfc_scsi_prep_cmnd()
4234 (pnode->nlp_flag & NLP_FIRSTBURST)) { in lpfc_scsi_prep_cmnd()
4264 piocbq->iocb.ulpContext = pnode->nlp_rpi; in lpfc_scsi_prep_cmnd()
4267 phba->sli4_hba.rpi_ids[pnode->nlp_rpi]; in lpfc_scsi_prep_cmnd()
4268 if (pnode->nlp_fcp_info & NLP_FCP_2_DEVICE) in lpfc_scsi_prep_cmnd()
4273 piocbq->iocb.ulpClass = (pnode->nlp_fcp_info & 0x0f); in lpfc_scsi_prep_cmnd()
4304 struct lpfc_nodelist *ndlp = rdata->pnode; in lpfc_scsi_prep_task_mgmt_cmd()
4544 ndlp = rdata->pnode; in lpfc_queuecommand()
4963 struct lpfc_nodelist *pnode = rdata->pnode; in lpfc_send_taskmgmt() local
4967 if (!pnode || !NLP_CHK_NODE_ACT(pnode)) in lpfc_send_taskmgmt()
4970 lpfc_cmd = lpfc_get_scsi_buf(phba, rdata->pnode); in lpfc_send_taskmgmt()
4995 pnode->nlp_rpi, pnode->nlp_flag, iocbq->sli4_xritag, in lpfc_send_taskmgmt()
5052 struct lpfc_nodelist *pnode; in lpfc_chk_tgt_mapped() local
5061 pnode = rdata->pnode; in lpfc_chk_tgt_mapped()
5068 if (!pnode || !NLP_CHK_NODE_ACT(pnode)) in lpfc_chk_tgt_mapped()
5070 if (pnode->nlp_state == NLP_STE_MAPPED_NODE) in lpfc_chk_tgt_mapped()
5076 pnode = rdata->pnode; in lpfc_chk_tgt_mapped()
5078 if (!pnode || !NLP_CHK_NODE_ACT(pnode) || in lpfc_chk_tgt_mapped()
5079 (pnode->nlp_state != NLP_STE_MAPPED_NODE)) in lpfc_chk_tgt_mapped()
5147 struct lpfc_nodelist *pnode; in lpfc_device_reset_handler() local
5154 if (!rdata || !rdata->pnode) { in lpfc_device_reset_handler()
5160 pnode = rdata->pnode; in lpfc_device_reset_handler()
5175 memcpy(scsi_event.wwpn, &pnode->nlp_portname, sizeof(struct lpfc_name)); in lpfc_device_reset_handler()
5176 memcpy(scsi_event.wwnn, &pnode->nlp_nodename, sizeof(struct lpfc_name)); in lpfc_device_reset_handler()
5218 struct lpfc_nodelist *pnode; in lpfc_target_reset_handler() local
5230 pnode = rdata->pnode; in lpfc_target_reset_handler()
5239 if (pnode) { in lpfc_target_reset_handler()
5241 pnode->nlp_flag &= ~NLP_NPR_ADISC; in lpfc_target_reset_handler()
5242 pnode->nlp_fcp_info &= ~NLP_FCP_2_DEVICE; in lpfc_target_reset_handler()
5253 memcpy(scsi_event.wwpn, &pnode->nlp_portname, sizeof(struct lpfc_name)); in lpfc_target_reset_handler()
5254 memcpy(scsi_event.wwnn, &pnode->nlp_nodename, sizeof(struct lpfc_name)); in lpfc_target_reset_handler()