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()
3582 struct lpfc_nodelist *pnode = lpfc_cmd->rdata->pnode; in lpfc_send_scsi_error_event() local
3585 if (!pnode || !NLP_CHK_NODE_ACT(pnode)) in lpfc_send_scsi_error_event()
3601 &pnode->nlp_portname, sizeof(struct lpfc_name)); in lpfc_send_scsi_error_event()
3603 &pnode->nlp_nodename, sizeof(struct lpfc_name)); in lpfc_send_scsi_error_event()
3616 &pnode->nlp_portname, sizeof(struct lpfc_name)); in lpfc_send_scsi_error_event()
3618 &pnode->nlp_nodename, sizeof(struct lpfc_name)); in lpfc_send_scsi_error_event()
3640 &pnode->nlp_portname, sizeof(struct lpfc_name)); in lpfc_send_scsi_error_event()
3642 &pnode->nlp_nodename, sizeof(struct lpfc_name)); in lpfc_send_scsi_error_event()
3920 struct lpfc_nodelist *pnode = rdata->pnode; in lpfc_scsi_cmd_iocb_cmpl() local
3970 if (pnode && NLP_CHK_NODE_ACT(pnode)) in lpfc_scsi_cmd_iocb_cmpl()
3971 atomic_dec(&pnode->cmd_pending); in lpfc_scsi_cmd_iocb_cmpl()
3996 (pnode) ? pnode->nlp_DID : 0, in lpfc_scsi_cmd_iocb_cmpl()
4018 if (pnode && NLP_CHK_NODE_ACT(pnode)) { in lpfc_scsi_cmd_iocb_cmpl()
4020 &pnode->nlp_portname, in lpfc_scsi_cmd_iocb_cmpl()
4023 &pnode->nlp_nodename, in lpfc_scsi_cmd_iocb_cmpl()
4073 && (pnode && NLP_CHK_NODE_ACT(pnode))) { in lpfc_scsi_cmd_iocb_cmpl()
4078 lpfc_set_rrq_active(phba, pnode, in lpfc_scsi_cmd_iocb_cmpl()
4088 if (!pnode || !NLP_CHK_NODE_ACT(pnode) in lpfc_scsi_cmd_iocb_cmpl()
4089 || (pnode->nlp_state != NLP_STE_MAPPED_NODE)) in lpfc_scsi_cmd_iocb_cmpl()
4111 if (pnode && NLP_CHK_NODE_ACT(pnode)) { in lpfc_scsi_cmd_iocb_cmpl()
4112 if (pnode->cmd_qdepth > in lpfc_scsi_cmd_iocb_cmpl()
4113 atomic_read(&pnode->cmd_pending) && in lpfc_scsi_cmd_iocb_cmpl()
4114 (atomic_read(&pnode->cmd_pending) > in lpfc_scsi_cmd_iocb_cmpl()
4118 pnode->cmd_qdepth = in lpfc_scsi_cmd_iocb_cmpl()
4119 atomic_read(&pnode->cmd_pending); in lpfc_scsi_cmd_iocb_cmpl()
4121 pnode->last_change_time = jiffies; in lpfc_scsi_cmd_iocb_cmpl()
4124 } else if (pnode && NLP_CHK_NODE_ACT(pnode)) { in lpfc_scsi_cmd_iocb_cmpl()
4125 if ((pnode->cmd_qdepth < vport->cfg_tgt_queue_depth) && in lpfc_scsi_cmd_iocb_cmpl()
4126 time_after(jiffies, pnode->last_change_time + in lpfc_scsi_cmd_iocb_cmpl()
4129 depth = pnode->cmd_qdepth * LPFC_TGTQ_RAMPUP_PCENT in lpfc_scsi_cmd_iocb_cmpl()
4132 pnode->cmd_qdepth += depth; in lpfc_scsi_cmd_iocb_cmpl()
4133 if (pnode->cmd_qdepth > vport->cfg_tgt_queue_depth) in lpfc_scsi_cmd_iocb_cmpl()
4134 pnode->cmd_qdepth = vport->cfg_tgt_queue_depth; in lpfc_scsi_cmd_iocb_cmpl()
4135 pnode->last_change_time = jiffies; in lpfc_scsi_cmd_iocb_cmpl()
4207 struct lpfc_nodelist *pnode) in lpfc_scsi_prep_cmnd() argument
4219 if (!pnode || !NLP_CHK_NODE_ACT(pnode)) in lpfc_scsi_prep_cmnd()
4252 (pnode->nlp_flag & NLP_FIRSTBURST)) { in lpfc_scsi_prep_cmnd()
4282 piocbq->iocb.ulpContext = pnode->nlp_rpi; in lpfc_scsi_prep_cmnd()
4285 phba->sli4_hba.rpi_ids[pnode->nlp_rpi]; in lpfc_scsi_prep_cmnd()
4286 if (pnode->nlp_fcp_info & NLP_FCP_2_DEVICE) in lpfc_scsi_prep_cmnd()
4291 piocbq->iocb.ulpClass = (pnode->nlp_fcp_info & 0x0f); in lpfc_scsi_prep_cmnd()
4322 struct lpfc_nodelist *ndlp = rdata->pnode; in lpfc_scsi_prep_task_mgmt_cmd()
4562 ndlp = rdata->pnode; in lpfc_queuecommand()
4981 struct lpfc_nodelist *pnode = rdata->pnode; in lpfc_send_taskmgmt() local
4985 if (!pnode || !NLP_CHK_NODE_ACT(pnode)) in lpfc_send_taskmgmt()
4988 lpfc_cmd = lpfc_get_scsi_buf(phba, rdata->pnode); in lpfc_send_taskmgmt()
5013 pnode->nlp_rpi, pnode->nlp_flag, iocbq->sli4_xritag, in lpfc_send_taskmgmt()
5070 struct lpfc_nodelist *pnode; in lpfc_chk_tgt_mapped() local
5079 pnode = rdata->pnode; in lpfc_chk_tgt_mapped()
5086 if (!pnode || !NLP_CHK_NODE_ACT(pnode)) in lpfc_chk_tgt_mapped()
5088 if (pnode->nlp_state == NLP_STE_MAPPED_NODE) in lpfc_chk_tgt_mapped()
5094 pnode = rdata->pnode; in lpfc_chk_tgt_mapped()
5096 if (!pnode || !NLP_CHK_NODE_ACT(pnode) || in lpfc_chk_tgt_mapped()
5097 (pnode->nlp_state != NLP_STE_MAPPED_NODE)) in lpfc_chk_tgt_mapped()
5165 struct lpfc_nodelist *pnode; in lpfc_device_reset_handler() local
5172 if (!rdata || !rdata->pnode) { in lpfc_device_reset_handler()
5178 pnode = rdata->pnode; in lpfc_device_reset_handler()
5193 memcpy(scsi_event.wwpn, &pnode->nlp_portname, sizeof(struct lpfc_name)); in lpfc_device_reset_handler()
5194 memcpy(scsi_event.wwnn, &pnode->nlp_nodename, sizeof(struct lpfc_name)); in lpfc_device_reset_handler()
5236 struct lpfc_nodelist *pnode; in lpfc_target_reset_handler() local
5248 pnode = rdata->pnode; in lpfc_target_reset_handler()
5257 if (pnode) { in lpfc_target_reset_handler()
5259 pnode->nlp_flag &= ~NLP_NPR_ADISC; in lpfc_target_reset_handler()
5260 pnode->nlp_fcp_info &= ~NLP_FCP_2_DEVICE; in lpfc_target_reset_handler()
5271 memcpy(scsi_event.wwpn, &pnode->nlp_portname, sizeof(struct lpfc_name)); in lpfc_target_reset_handler()
5272 memcpy(scsi_event.wwnn, &pnode->nlp_nodename, sizeof(struct lpfc_name)); in lpfc_target_reset_handler()