• Home
  • Raw
  • Download

Lines Matching refs:pnode

170 	struct lpfc_nodelist *pnode = rdata->pnode;  in lpfc_update_stats()  local
186 !pnode || in lpfc_update_stats()
187 !pnode->lat_data || in lpfc_update_stats()
208 pnode->lat_data[i].cmd_count++; in lpfc_update_stats()
290 rdata->pnode, sdev->lun, in lpfc_change_queue_depth()
680 if (psb->rdata && psb->rdata->pnode in lpfc_sli4_vport_delete_fcp_xri_aborted()
681 && psb->rdata->pnode->vport == vport) in lpfc_sli4_vport_delete_fcp_xri_aborted()
720 if (psb->rdata && psb->rdata->pnode) in lpfc_sli4_fcp_xri_aborted()
721 ndlp = psb->rdata->pnode; in lpfc_sli4_fcp_xri_aborted()
1483 if (rdata && rdata->pnode) { in lpfc_bg_err_inject()
1484 ndlp = rdata->pnode; in lpfc_bg_err_inject()
3704 struct lpfc_nodelist *pnode = lpfc_cmd->rdata->pnode; in lpfc_send_scsi_error_event() local
3707 if (!pnode || !NLP_CHK_NODE_ACT(pnode)) in lpfc_send_scsi_error_event()
3723 &pnode->nlp_portname, sizeof(struct lpfc_name)); in lpfc_send_scsi_error_event()
3725 &pnode->nlp_nodename, sizeof(struct lpfc_name)); in lpfc_send_scsi_error_event()
3738 &pnode->nlp_portname, sizeof(struct lpfc_name)); in lpfc_send_scsi_error_event()
3740 &pnode->nlp_nodename, sizeof(struct lpfc_name)); in lpfc_send_scsi_error_event()
3762 &pnode->nlp_portname, sizeof(struct lpfc_name)); in lpfc_send_scsi_error_event()
3764 &pnode->nlp_nodename, sizeof(struct lpfc_name)); in lpfc_send_scsi_error_event()
3999 struct lpfc_nodelist *pnode = rdata->pnode; in lpfc_scsi_cmd_iocb_cmpl() local
4052 if (pnode && NLP_CHK_NODE_ACT(pnode)) in lpfc_scsi_cmd_iocb_cmpl()
4053 atomic_dec(&pnode->cmd_pending); in lpfc_scsi_cmd_iocb_cmpl()
4077 vport->fc_myDID, pnode->nlp_DID, in lpfc_scsi_cmd_iocb_cmpl()
4099 if (pnode && NLP_CHK_NODE_ACT(pnode)) { in lpfc_scsi_cmd_iocb_cmpl()
4101 &pnode->nlp_portname, in lpfc_scsi_cmd_iocb_cmpl()
4104 &pnode->nlp_nodename, in lpfc_scsi_cmd_iocb_cmpl()
4154 && (pnode && NLP_CHK_NODE_ACT(pnode))) { in lpfc_scsi_cmd_iocb_cmpl()
4159 lpfc_set_rrq_active(phba, pnode, in lpfc_scsi_cmd_iocb_cmpl()
4169 if (!pnode || !NLP_CHK_NODE_ACT(pnode) in lpfc_scsi_cmd_iocb_cmpl()
4170 || (pnode->nlp_state != NLP_STE_MAPPED_NODE)) in lpfc_scsi_cmd_iocb_cmpl()
4193 if (pnode && NLP_CHK_NODE_ACT(pnode)) { in lpfc_scsi_cmd_iocb_cmpl()
4194 if (pnode->cmd_qdepth > in lpfc_scsi_cmd_iocb_cmpl()
4195 atomic_read(&pnode->cmd_pending) && in lpfc_scsi_cmd_iocb_cmpl()
4196 (atomic_read(&pnode->cmd_pending) > in lpfc_scsi_cmd_iocb_cmpl()
4200 pnode->cmd_qdepth = in lpfc_scsi_cmd_iocb_cmpl()
4201 atomic_read(&pnode->cmd_pending); in lpfc_scsi_cmd_iocb_cmpl()
4203 pnode->last_change_time = jiffies; in lpfc_scsi_cmd_iocb_cmpl()
4206 } else if (pnode && NLP_CHK_NODE_ACT(pnode)) { in lpfc_scsi_cmd_iocb_cmpl()
4207 if ((pnode->cmd_qdepth < vport->cfg_tgt_queue_depth) && in lpfc_scsi_cmd_iocb_cmpl()
4208 time_after(jiffies, pnode->last_change_time + in lpfc_scsi_cmd_iocb_cmpl()
4211 depth = pnode->cmd_qdepth * LPFC_TGTQ_RAMPUP_PCENT in lpfc_scsi_cmd_iocb_cmpl()
4214 pnode->cmd_qdepth += depth; in lpfc_scsi_cmd_iocb_cmpl()
4215 if (pnode->cmd_qdepth > vport->cfg_tgt_queue_depth) in lpfc_scsi_cmd_iocb_cmpl()
4216 pnode->cmd_qdepth = vport->cfg_tgt_queue_depth; in lpfc_scsi_cmd_iocb_cmpl()
4217 pnode->last_change_time = jiffies; in lpfc_scsi_cmd_iocb_cmpl()
4253 if (result == SAM_STAT_TASK_SET_FULL && pnode && in lpfc_scsi_cmd_iocb_cmpl()
4254 NLP_CHK_NODE_ACT(pnode)) { in lpfc_scsi_cmd_iocb_cmpl()
4266 pnode, in lpfc_scsi_cmd_iocb_cmpl()
4317 struct lpfc_nodelist *pnode) in lpfc_scsi_prep_cmnd() argument
4329 if (!pnode || !NLP_CHK_NODE_ACT(pnode)) in lpfc_scsi_prep_cmnd()
4400 piocbq->iocb.ulpContext = pnode->nlp_rpi; in lpfc_scsi_prep_cmnd()
4403 phba->sli4_hba.rpi_ids[pnode->nlp_rpi]; in lpfc_scsi_prep_cmnd()
4404 if (pnode->nlp_fcp_info & NLP_FCP_2_DEVICE) in lpfc_scsi_prep_cmnd()
4409 piocbq->iocb.ulpClass = (pnode->nlp_fcp_info & 0x0f); in lpfc_scsi_prep_cmnd()
4440 struct lpfc_nodelist *ndlp = rdata->pnode; in lpfc_scsi_prep_task_mgmt_cmd()
4679 ndlp = rdata->pnode; in lpfc_queuecommand()
4982 struct lpfc_nodelist *pnode = rdata->pnode; in lpfc_send_taskmgmt() local
4986 if (!pnode || !NLP_CHK_NODE_ACT(pnode)) in lpfc_send_taskmgmt()
4989 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()
5061 struct lpfc_nodelist *pnode; in lpfc_chk_tgt_mapped() local
5069 pnode = rdata->pnode; in lpfc_chk_tgt_mapped()
5076 if (!pnode || !NLP_CHK_NODE_ACT(pnode)) in lpfc_chk_tgt_mapped()
5078 if (pnode->nlp_state == NLP_STE_MAPPED_NODE) in lpfc_chk_tgt_mapped()
5084 pnode = rdata->pnode; in lpfc_chk_tgt_mapped()
5086 if (!pnode || !NLP_CHK_NODE_ACT(pnode) || in lpfc_chk_tgt_mapped()
5087 (pnode->nlp_state != NLP_STE_MAPPED_NODE)) in lpfc_chk_tgt_mapped()
5154 struct lpfc_nodelist *pnode; in lpfc_device_reset_handler() local
5165 pnode = rdata->pnode; in lpfc_device_reset_handler()
5180 memcpy(scsi_event.wwpn, &pnode->nlp_portname, sizeof(struct lpfc_name)); in lpfc_device_reset_handler()
5181 memcpy(scsi_event.wwnn, &pnode->nlp_nodename, sizeof(struct lpfc_name)); in lpfc_device_reset_handler()
5221 struct lpfc_nodelist *pnode; in lpfc_target_reset_handler() local
5232 pnode = rdata->pnode; in lpfc_target_reset_handler()
5247 memcpy(scsi_event.wwpn, &pnode->nlp_portname, sizeof(struct lpfc_name)); in lpfc_target_reset_handler()
5248 memcpy(scsi_event.wwnn, &pnode->nlp_nodename, sizeof(struct lpfc_name)); in lpfc_target_reset_handler()