Lines Matching refs:vport
74 struct lpfc_vport *vport = (struct lpfc_vport *)sdev->host->hostdata; in lpfc_rport_data_from_scsi_device() local
76 if (vport->phba->cfg_fof) in lpfc_rport_data_from_scsi_device()
207 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; in lpfc_update_stats() local
217 if (!vport->stat_data_enabled || in lpfc_update_stats()
218 vport->stat_data_blocked || in lpfc_update_stats()
384 lpfc_new_scsi_buf_s3(struct lpfc_vport *vport, int num_to_alloc) in lpfc_new_scsi_buf_s3() argument
386 struct lpfc_hba *phba = vport->phba; in lpfc_new_scsi_buf_s3()
399 lpfc_printf_vlog(vport, KERN_INFO, LOG_FCP, in lpfc_new_scsi_buf_s3()
521 lpfc_sli4_vport_delete_fcp_xri_aborted(struct lpfc_vport *vport) in lpfc_sli4_vport_delete_fcp_xri_aborted() argument
523 struct lpfc_hba *phba = vport->phba; in lpfc_sli4_vport_delete_fcp_xri_aborted()
532 && psb->rdata->pnode->vport == vport) in lpfc_sli4_vport_delete_fcp_xri_aborted()
790 lpfc_new_scsi_buf_s4(struct lpfc_vport *vport, int num_to_alloc) in lpfc_new_scsi_buf_s4() argument
792 struct lpfc_hba *phba = vport->phba; in lpfc_new_scsi_buf_s4()
808 lpfc_printf_vlog(vport, KERN_INFO, LOG_FCP, in lpfc_new_scsi_buf_s4()
953 lpfc_new_scsi_buf(struct lpfc_vport *vport, int num_to_alloc) in lpfc_new_scsi_buf() argument
955 return vport->phba->lpfc_new_scsi_buf(vport, num_to_alloc); in lpfc_new_scsi_buf()
3556 lpfc_send_scsi_error_event(struct lpfc_hba *phba, struct lpfc_vport *vport, in lpfc_send_scsi_error_event() argument
3632 fast_path_evt->vport = vport; in lpfc_send_scsi_error_event()
3676 lpfc_handle_fcp_err(struct lpfc_vport *vport, struct lpfc_scsi_buf *lpfc_cmd, in lpfc_handle_fcp_err() argument
3704 lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP, in lpfc_handle_fcp_err()
3714 lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP, in lpfc_handle_fcp_err()
3740 if (vport->cfg_log_verbose & LOG_FCP) in lpfc_handle_fcp_err()
3743 if (vport->cfg_log_verbose & LOG_FCP_UNDER) in lpfc_handle_fcp_err()
3747 lpfc_printf_vlog(vport, KERN_WARNING, logit, in lpfc_handle_fcp_err()
3761 lpfc_printf_vlog(vport, KERN_INFO, LOG_FCP_UNDER, in lpfc_handle_fcp_err()
3776 lpfc_printf_vlog(vport, KERN_WARNING, in lpfc_handle_fcp_err()
3796 lpfc_printf_vlog(vport, KERN_INFO, LOG_FCP, in lpfc_handle_fcp_err()
3805 lpfc_printf_vlog(vport, KERN_WARNING, LOG_FCP, in lpfc_handle_fcp_err()
3816 lpfc_printf_vlog(vport, KERN_WARNING, LOG_FCP | LOG_FCP_ERROR, in lpfc_handle_fcp_err()
3838 lpfc_send_scsi_error_event(vport->phba, vport, lpfc_cmd, rsp_iocb); in lpfc_handle_fcp_err()
3900 struct lpfc_vport *vport = pIocbIn->vport; in lpfc_scsi_cmd_iocb_cmpl() local
3964 !(vport->cfg_log_verbose & LOG_FCP_UNDER)) in lpfc_scsi_cmd_iocb_cmpl()
3968 lpfc_printf_vlog(vport, KERN_WARNING, logit, in lpfc_scsi_cmd_iocb_cmpl()
3977 vport->fc_myDID, in lpfc_scsi_cmd_iocb_cmpl()
3987 lpfc_handle_fcp_err(vport, lpfc_cmd, pIocbOut); in lpfc_scsi_cmd_iocb_cmpl()
4008 fast_path_evt->vport = vport; in lpfc_scsi_cmd_iocb_cmpl()
4047 lpfc_printf_vlog(vport, KERN_WARNING, in lpfc_scsi_cmd_iocb_cmpl()
4080 lpfc_printf_vlog(vport, KERN_INFO, LOG_FCP, in lpfc_scsi_cmd_iocb_cmpl()
4089 if (vport->cfg_max_scsicmpl_time && in lpfc_scsi_cmd_iocb_cmpl()
4091 msecs_to_jiffies(vport->cfg_max_scsicmpl_time))) { in lpfc_scsi_cmd_iocb_cmpl()
4107 if ((pnode->cmd_qdepth < vport->cfg_tgt_queue_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()
4188 lpfc_scsi_prep_cmnd(struct lpfc_vport *vport, struct lpfc_scsi_buf *lpfc_cmd, in lpfc_scsi_prep_cmnd() argument
4191 struct lpfc_hba *phba = vport->phba; in lpfc_scsi_prep_cmnd()
4233 if (vport->cfg_first_burst_size && in lpfc_scsi_prep_cmnd()
4236 if (fcpdl < vport->cfg_first_burst_size) in lpfc_scsi_prep_cmnd()
4240 vport->cfg_first_burst_size; in lpfc_scsi_prep_cmnd()
4277 piocbq->vport = vport; in lpfc_scsi_prep_cmnd()
4295 lpfc_scsi_prep_task_mgmt_cmd(struct lpfc_vport *vport, in lpfc_scsi_prep_task_mgmt_cmd() argument
4311 piocbq->vport = vport; in lpfc_scsi_prep_task_mgmt_cmd()
4320 if (vport->phba->sli_rev == 3 && in lpfc_scsi_prep_task_mgmt_cmd()
4321 !(vport->phba->sli3_options & LPFC_SLI3_BG_ENABLED)) in lpfc_scsi_prep_task_mgmt_cmd()
4325 if (vport->phba->sli_rev == LPFC_SLI_REV4) { in lpfc_scsi_prep_task_mgmt_cmd()
4327 vport->phba->sli4_hba.rpi_ids[ndlp->nlp_rpi]; in lpfc_scsi_prep_task_mgmt_cmd()
4344 if (vport->phba->sli_rev == LPFC_SLI_REV4) in lpfc_scsi_prep_task_mgmt_cmd()
4345 lpfc_sli4_set_rsp_sgl_last(vport->phba, lpfc_cmd); in lpfc_scsi_prep_task_mgmt_cmd()
4426 struct lpfc_vport *vport = (struct lpfc_vport *) host->hostdata; in lpfc_info() local
4427 struct lpfc_hba *phba = vport->phba; in lpfc_info()
4530 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; in lpfc_queuecommand() local
4531 struct lpfc_hba *phba = vport->phba; in lpfc_queuecommand()
4571 lpfc_printf_vlog(vport, KERN_INFO, LOG_MISC, in lpfc_queuecommand()
4588 if (vport->phba->cfg_enable_bg) { in lpfc_queuecommand()
4589 lpfc_printf_vlog(vport, in lpfc_queuecommand()
4601 if (vport->phba->cfg_enable_bg) { in lpfc_queuecommand()
4602 lpfc_printf_vlog(vport, in lpfc_queuecommand()
4617 lpfc_scsi_prep_cmnd(vport, lpfc_cmd, ndlp); in lpfc_queuecommand()
4624 lpfc_printf_vlog(vport, KERN_INFO, LOG_FCP, in lpfc_queuecommand()
4632 vport->fc_myDID, ndlp->nlp_DID, in lpfc_queuecommand()
4683 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; in lpfc_abort_handler() local
4684 struct lpfc_hba *phba = vport->phba; in lpfc_abort_handler()
4703 lpfc_printf_vlog(vport, KERN_WARNING, LOG_FCP, in lpfc_abort_handler()
4712 lpfc_printf_vlog(vport, KERN_WARNING, LOG_FCP, in lpfc_abort_handler()
4723 lpfc_printf_vlog(vport, KERN_WARNING, LOG_FCP, in lpfc_abort_handler()
4735 lpfc_printf_vlog(vport, KERN_WARNING, LOG_FCP, in lpfc_abort_handler()
4745 lpfc_printf_vlog(vport, KERN_WARNING, LOG_FCP, in lpfc_abort_handler()
4790 abtsiocb->vport = vport; in lpfc_abort_handler()
4822 msecs_to_jiffies(2*vport->cfg_devloss_tmo*1000)); in lpfc_abort_handler()
4830 lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP, in lpfc_abort_handler()
4842 lpfc_printf_vlog(vport, KERN_WARNING, LOG_FCP, in lpfc_abort_handler()
4885 lpfc_check_fcp_rsp(struct lpfc_vport *vport, struct lpfc_scsi_buf *lpfc_cmd) in lpfc_check_fcp_rsp() argument
4895 lpfc_printf_vlog(vport, KERN_INFO, LOG_FCP, in lpfc_check_fcp_rsp()
4903 lpfc_printf_vlog(vport, KERN_INFO, in lpfc_check_fcp_rsp()
4913 lpfc_printf_vlog(vport, KERN_INFO, LOG_FCP, in lpfc_check_fcp_rsp()
4918 lpfc_printf_vlog(vport, KERN_INFO, LOG_FCP, in lpfc_check_fcp_rsp()
4923 lpfc_printf_vlog(vport, KERN_INFO, LOG_FCP, in lpfc_check_fcp_rsp()
4928 lpfc_printf_vlog(vport, KERN_INFO, LOG_FCP, in lpfc_check_fcp_rsp()
4955 lpfc_send_taskmgmt(struct lpfc_vport *vport, struct lpfc_rport_data *rdata, in lpfc_send_taskmgmt() argument
4959 struct lpfc_hba *phba = vport->phba; in lpfc_send_taskmgmt()
4976 status = lpfc_scsi_prep_task_mgmt_cmd(vport, lpfc_cmd, lun_id, in lpfc_send_taskmgmt()
4991 lpfc_printf_vlog(vport, KERN_INFO, LOG_FCP, in lpfc_send_taskmgmt()
5004 lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP, in lpfc_send_taskmgmt()
5017 ret = lpfc_check_fcp_rsp(vport, lpfc_cmd); in lpfc_send_taskmgmt()
5049 lpfc_chk_tgt_mapped(struct lpfc_vport *vport, struct scsi_cmnd *cmnd) in lpfc_chk_tgt_mapped() argument
5057 lpfc_printf_vlog(vport, KERN_INFO, LOG_FCP, in lpfc_chk_tgt_mapped()
5066 later = msecs_to_jiffies(2 * vport->cfg_devloss_tmo * 1000) + jiffies; in lpfc_chk_tgt_mapped()
5101 lpfc_reset_flush_io_context(struct lpfc_vport *vport, uint16_t tgt_id, in lpfc_reset_flush_io_context() argument
5104 struct lpfc_hba *phba = vport->phba; in lpfc_reset_flush_io_context()
5108 cnt = lpfc_sli_sum_iocb(vport, tgt_id, lun_id, context); in lpfc_reset_flush_io_context()
5110 lpfc_sli_abort_taskmgmt(vport, in lpfc_reset_flush_io_context()
5113 later = msecs_to_jiffies(2 * vport->cfg_devloss_tmo * 1000) + jiffies; in lpfc_reset_flush_io_context()
5116 cnt = lpfc_sli_sum_iocb(vport, tgt_id, lun_id, context); in lpfc_reset_flush_io_context()
5119 lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP, in lpfc_reset_flush_io_context()
5145 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; in lpfc_device_reset_handler() local
5155 lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP, in lpfc_device_reset_handler()
5165 status = lpfc_chk_tgt_mapped(vport, cmnd); in lpfc_device_reset_handler()
5167 lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP, in lpfc_device_reset_handler()
5181 status = lpfc_send_taskmgmt(vport, rdata, tgt_id, lun_id, in lpfc_device_reset_handler()
5184 lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP, in lpfc_device_reset_handler()
5195 status = lpfc_reset_flush_io_context(vport, tgt_id, lun_id, in lpfc_device_reset_handler()
5216 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; in lpfc_target_reset_handler() local
5226 lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP, in lpfc_target_reset_handler()
5235 status = lpfc_chk_tgt_mapped(vport, cmnd); in lpfc_target_reset_handler()
5237 lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP, in lpfc_target_reset_handler()
5245 lpfc_reset_flush_io_context(vport, tgt_id, lun_id, in lpfc_target_reset_handler()
5259 status = lpfc_send_taskmgmt(vport, rdata, tgt_id, lun_id, in lpfc_target_reset_handler()
5262 lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP, in lpfc_target_reset_handler()
5273 status = lpfc_reset_flush_io_context(vport, tgt_id, lun_id, in lpfc_target_reset_handler()
5293 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; in lpfc_bus_reset_handler() local
5302 memcpy(scsi_event.wwpn, &vport->fc_portname, sizeof(struct lpfc_name)); in lpfc_bus_reset_handler()
5303 memcpy(scsi_event.wwnn, &vport->fc_nodename, sizeof(struct lpfc_name)); in lpfc_bus_reset_handler()
5321 list_for_each_entry(ndlp, &vport->fc_nodes, nlp_listp) { in lpfc_bus_reset_handler()
5324 if (vport->phba->cfg_fcp2_no_tgt_reset && in lpfc_bus_reset_handler()
5338 status = lpfc_send_taskmgmt(vport, ndlp->rport->dd_data, in lpfc_bus_reset_handler()
5342 lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP, in lpfc_bus_reset_handler()
5355 status = lpfc_reset_flush_io_context(vport, 0, 0, LPFC_CTX_HOST); in lpfc_bus_reset_handler()
5359 lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP, in lpfc_bus_reset_handler()
5384 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; in lpfc_host_reset_handler() local
5385 struct lpfc_hba *phba = vport->phba; in lpfc_host_reset_handler()
5388 lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP, in lpfc_host_reset_handler()
5402 lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP, in lpfc_host_reset_handler()
5425 struct lpfc_vport *vport = (struct lpfc_vport *) sdev->host->hostdata; in lpfc_slave_alloc() local
5426 struct lpfc_hba *phba = vport->phba; in lpfc_slave_alloc()
5450 &vport->fc_portname, in lpfc_slave_alloc()
5456 &vport->fc_portname, in lpfc_slave_alloc()
5481 num_to_alloc = vport->cfg_lun_queue_depth + 2; in lpfc_slave_alloc()
5484 if ((sdev_cnt * (vport->cfg_lun_queue_depth + 2)) < total) in lpfc_slave_alloc()
5489 lpfc_printf_vlog(vport, KERN_WARNING, LOG_FCP, in lpfc_slave_alloc()
5496 lpfc_printf_vlog(vport, KERN_WARNING, LOG_FCP, in lpfc_slave_alloc()
5504 num_allocated = lpfc_new_scsi_buf(vport, num_to_alloc); in lpfc_slave_alloc()
5506 lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP, in lpfc_slave_alloc()
5531 struct lpfc_vport *vport = (struct lpfc_vport *) sdev->host->hostdata; in lpfc_slave_configure() local
5532 struct lpfc_hba *phba = vport->phba; in lpfc_slave_configure()
5534 scsi_change_queue_depth(sdev, vport->cfg_lun_queue_depth); in lpfc_slave_configure()
5555 struct lpfc_vport *vport = (struct lpfc_vport *) sdev->host->hostdata; in lpfc_slave_destroy() local
5556 struct lpfc_hba *phba = vport->phba; in lpfc_slave_destroy()