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()
3563 lpfc_send_scsi_error_event(struct lpfc_hba *phba, struct lpfc_vport *vport, in lpfc_send_scsi_error_event() argument
3639 fast_path_evt->vport = vport; in lpfc_send_scsi_error_event()
3683 lpfc_handle_fcp_err(struct lpfc_vport *vport, struct lpfc_scsi_buf *lpfc_cmd, in lpfc_handle_fcp_err() argument
3711 lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP, in lpfc_handle_fcp_err()
3721 lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP, in lpfc_handle_fcp_err()
3747 if (vport->cfg_log_verbose & LOG_FCP) in lpfc_handle_fcp_err()
3750 if (vport->cfg_log_verbose & LOG_FCP_UNDER) in lpfc_handle_fcp_err()
3754 lpfc_printf_vlog(vport, KERN_WARNING, logit, in lpfc_handle_fcp_err()
3768 lpfc_printf_vlog(vport, KERN_INFO, LOG_FCP_UNDER, in lpfc_handle_fcp_err()
3783 lpfc_printf_vlog(vport, KERN_WARNING, in lpfc_handle_fcp_err()
3803 lpfc_printf_vlog(vport, KERN_INFO, LOG_FCP, in lpfc_handle_fcp_err()
3812 lpfc_printf_vlog(vport, KERN_WARNING, LOG_FCP, in lpfc_handle_fcp_err()
3823 lpfc_printf_vlog(vport, KERN_WARNING, LOG_FCP | LOG_FCP_ERROR, in lpfc_handle_fcp_err()
3845 lpfc_send_scsi_error_event(vport->phba, vport, lpfc_cmd, rsp_iocb); in lpfc_handle_fcp_err()
3864 struct lpfc_vport *vport = pIocbIn->vport; in lpfc_scsi_cmd_iocb_cmpl() local
3930 !(vport->cfg_log_verbose & LOG_FCP_UNDER)) in lpfc_scsi_cmd_iocb_cmpl()
3934 lpfc_printf_vlog(vport, KERN_WARNING, logit, in lpfc_scsi_cmd_iocb_cmpl()
3943 vport->fc_myDID, in lpfc_scsi_cmd_iocb_cmpl()
3953 lpfc_handle_fcp_err(vport, lpfc_cmd, pIocbOut); in lpfc_scsi_cmd_iocb_cmpl()
3974 fast_path_evt->vport = vport; in lpfc_scsi_cmd_iocb_cmpl()
4013 lpfc_printf_vlog(vport, KERN_WARNING, in lpfc_scsi_cmd_iocb_cmpl()
4046 lpfc_printf_vlog(vport, KERN_INFO, LOG_FCP, in lpfc_scsi_cmd_iocb_cmpl()
4056 if (vport->cfg_max_scsicmpl_time && in lpfc_scsi_cmd_iocb_cmpl()
4058 msecs_to_jiffies(vport->cfg_max_scsicmpl_time))) { in lpfc_scsi_cmd_iocb_cmpl()
4074 if ((pnode->cmd_qdepth < vport->cfg_tgt_queue_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()
4157 lpfc_scsi_prep_cmnd(struct lpfc_vport *vport, struct lpfc_scsi_buf *lpfc_cmd, in lpfc_scsi_prep_cmnd() argument
4160 struct lpfc_hba *phba = vport->phba; in lpfc_scsi_prep_cmnd()
4202 if (vport->cfg_first_burst_size && in lpfc_scsi_prep_cmnd()
4205 if (fcpdl < vport->cfg_first_burst_size) in lpfc_scsi_prep_cmnd()
4209 vport->cfg_first_burst_size; in lpfc_scsi_prep_cmnd()
4246 piocbq->vport = vport; in lpfc_scsi_prep_cmnd()
4264 lpfc_scsi_prep_task_mgmt_cmd(struct lpfc_vport *vport, in lpfc_scsi_prep_task_mgmt_cmd() argument
4280 piocbq->vport = vport; in lpfc_scsi_prep_task_mgmt_cmd()
4289 if (vport->phba->sli_rev == 3 && in lpfc_scsi_prep_task_mgmt_cmd()
4290 !(vport->phba->sli3_options & LPFC_SLI3_BG_ENABLED)) in lpfc_scsi_prep_task_mgmt_cmd()
4294 if (vport->phba->sli_rev == LPFC_SLI_REV4) { in lpfc_scsi_prep_task_mgmt_cmd()
4296 vport->phba->sli4_hba.rpi_ids[ndlp->nlp_rpi]; in lpfc_scsi_prep_task_mgmt_cmd()
4313 if (vport->phba->sli_rev == LPFC_SLI_REV4) in lpfc_scsi_prep_task_mgmt_cmd()
4314 lpfc_sli4_set_rsp_sgl_last(vport->phba, lpfc_cmd); in lpfc_scsi_prep_task_mgmt_cmd()
4395 struct lpfc_vport *vport = (struct lpfc_vport *) host->hostdata; in lpfc_info() local
4396 struct lpfc_hba *phba = vport->phba; in lpfc_info()
4499 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; in lpfc_queuecommand() local
4500 struct lpfc_hba *phba = vport->phba; in lpfc_queuecommand()
4540 lpfc_printf_vlog(vport, KERN_INFO, LOG_FCP, in lpfc_queuecommand()
4557 if (vport->phba->cfg_enable_bg) { in lpfc_queuecommand()
4558 lpfc_printf_vlog(vport, in lpfc_queuecommand()
4570 if (vport->phba->cfg_enable_bg) { in lpfc_queuecommand()
4571 lpfc_printf_vlog(vport, in lpfc_queuecommand()
4586 lpfc_scsi_prep_cmnd(vport, lpfc_cmd, ndlp); in lpfc_queuecommand()
4593 lpfc_printf_vlog(vport, KERN_INFO, LOG_FCP, in lpfc_queuecommand()
4601 vport->fc_myDID, ndlp->nlp_DID, in lpfc_queuecommand()
4652 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; in lpfc_abort_handler() local
4653 struct lpfc_hba *phba = vport->phba; in lpfc_abort_handler()
4672 lpfc_printf_vlog(vport, KERN_WARNING, LOG_FCP, in lpfc_abort_handler()
4681 lpfc_printf_vlog(vport, KERN_WARNING, LOG_FCP, in lpfc_abort_handler()
4692 lpfc_printf_vlog(vport, KERN_WARNING, LOG_FCP, in lpfc_abort_handler()
4704 lpfc_printf_vlog(vport, KERN_WARNING, LOG_FCP, in lpfc_abort_handler()
4714 lpfc_printf_vlog(vport, KERN_WARNING, LOG_FCP, in lpfc_abort_handler()
4759 abtsiocb->vport = vport; in lpfc_abort_handler()
4791 msecs_to_jiffies(2*vport->cfg_devloss_tmo*1000)); in lpfc_abort_handler()
4799 lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP, in lpfc_abort_handler()
4811 lpfc_printf_vlog(vport, KERN_WARNING, LOG_FCP, in lpfc_abort_handler()
4854 lpfc_check_fcp_rsp(struct lpfc_vport *vport, struct lpfc_scsi_buf *lpfc_cmd) in lpfc_check_fcp_rsp() argument
4864 lpfc_printf_vlog(vport, KERN_INFO, LOG_FCP, in lpfc_check_fcp_rsp()
4872 lpfc_printf_vlog(vport, KERN_INFO, in lpfc_check_fcp_rsp()
4882 lpfc_printf_vlog(vport, KERN_INFO, LOG_FCP, in lpfc_check_fcp_rsp()
4887 lpfc_printf_vlog(vport, KERN_INFO, LOG_FCP, in lpfc_check_fcp_rsp()
4892 lpfc_printf_vlog(vport, KERN_INFO, LOG_FCP, in lpfc_check_fcp_rsp()
4897 lpfc_printf_vlog(vport, KERN_INFO, LOG_FCP, in lpfc_check_fcp_rsp()
4924 lpfc_send_taskmgmt(struct lpfc_vport *vport, struct lpfc_rport_data *rdata, in lpfc_send_taskmgmt() argument
4928 struct lpfc_hba *phba = vport->phba; in lpfc_send_taskmgmt()
4945 status = lpfc_scsi_prep_task_mgmt_cmd(vport, lpfc_cmd, lun_id, in lpfc_send_taskmgmt()
4960 lpfc_printf_vlog(vport, KERN_INFO, LOG_FCP, in lpfc_send_taskmgmt()
4971 lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP, in lpfc_send_taskmgmt()
4983 ret = lpfc_check_fcp_rsp(vport, lpfc_cmd); in lpfc_send_taskmgmt()
5016 lpfc_chk_tgt_mapped(struct lpfc_vport *vport, struct scsi_cmnd *cmnd) in lpfc_chk_tgt_mapped() argument
5024 lpfc_printf_vlog(vport, KERN_INFO, LOG_FCP, in lpfc_chk_tgt_mapped()
5033 later = msecs_to_jiffies(2 * vport->cfg_devloss_tmo * 1000) + jiffies; in lpfc_chk_tgt_mapped()
5068 lpfc_reset_flush_io_context(struct lpfc_vport *vport, uint16_t tgt_id, in lpfc_reset_flush_io_context() argument
5071 struct lpfc_hba *phba = vport->phba; in lpfc_reset_flush_io_context()
5075 cnt = lpfc_sli_sum_iocb(vport, tgt_id, lun_id, context); in lpfc_reset_flush_io_context()
5077 lpfc_sli_abort_taskmgmt(vport, in lpfc_reset_flush_io_context()
5080 later = msecs_to_jiffies(2 * vport->cfg_devloss_tmo * 1000) + jiffies; in lpfc_reset_flush_io_context()
5083 cnt = lpfc_sli_sum_iocb(vport, tgt_id, lun_id, context); in lpfc_reset_flush_io_context()
5086 lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP, in lpfc_reset_flush_io_context()
5112 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; in lpfc_device_reset_handler() local
5122 lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP, in lpfc_device_reset_handler()
5132 status = lpfc_chk_tgt_mapped(vport, cmnd); in lpfc_device_reset_handler()
5134 lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP, in lpfc_device_reset_handler()
5148 status = lpfc_send_taskmgmt(vport, rdata, tgt_id, lun_id, in lpfc_device_reset_handler()
5151 lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP, in lpfc_device_reset_handler()
5162 status = lpfc_reset_flush_io_context(vport, tgt_id, lun_id, in lpfc_device_reset_handler()
5183 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; in lpfc_target_reset_handler() local
5193 lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP, in lpfc_target_reset_handler()
5202 status = lpfc_chk_tgt_mapped(vport, cmnd); in lpfc_target_reset_handler()
5204 lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP, in lpfc_target_reset_handler()
5212 lpfc_reset_flush_io_context(vport, tgt_id, lun_id, in lpfc_target_reset_handler()
5226 status = lpfc_send_taskmgmt(vport, rdata, tgt_id, lun_id, in lpfc_target_reset_handler()
5229 lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP, in lpfc_target_reset_handler()
5240 status = lpfc_reset_flush_io_context(vport, tgt_id, lun_id, in lpfc_target_reset_handler()
5260 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; in lpfc_bus_reset_handler() local
5269 memcpy(scsi_event.wwpn, &vport->fc_portname, sizeof(struct lpfc_name)); in lpfc_bus_reset_handler()
5270 memcpy(scsi_event.wwnn, &vport->fc_nodename, sizeof(struct lpfc_name)); in lpfc_bus_reset_handler()
5288 list_for_each_entry(ndlp, &vport->fc_nodes, nlp_listp) { in lpfc_bus_reset_handler()
5291 if (vport->phba->cfg_fcp2_no_tgt_reset && in lpfc_bus_reset_handler()
5305 status = lpfc_send_taskmgmt(vport, ndlp->rport->dd_data, in lpfc_bus_reset_handler()
5309 lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP, in lpfc_bus_reset_handler()
5322 status = lpfc_reset_flush_io_context(vport, 0, 0, LPFC_CTX_HOST); in lpfc_bus_reset_handler()
5326 lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP, in lpfc_bus_reset_handler()
5351 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; in lpfc_host_reset_handler() local
5352 struct lpfc_hba *phba = vport->phba; in lpfc_host_reset_handler()
5355 lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP, in lpfc_host_reset_handler()
5369 lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP, in lpfc_host_reset_handler()
5392 struct lpfc_vport *vport = (struct lpfc_vport *) sdev->host->hostdata; in lpfc_slave_alloc() local
5393 struct lpfc_hba *phba = vport->phba; in lpfc_slave_alloc()
5417 &vport->fc_portname, in lpfc_slave_alloc()
5423 &vport->fc_portname, in lpfc_slave_alloc()
5448 num_to_alloc = vport->cfg_lun_queue_depth + 2; in lpfc_slave_alloc()
5451 if ((sdev_cnt * (vport->cfg_lun_queue_depth + 2)) < total) in lpfc_slave_alloc()
5456 lpfc_printf_vlog(vport, KERN_WARNING, LOG_FCP, in lpfc_slave_alloc()
5463 lpfc_printf_vlog(vport, KERN_WARNING, LOG_FCP, in lpfc_slave_alloc()
5471 num_allocated = lpfc_new_scsi_buf(vport, num_to_alloc); in lpfc_slave_alloc()
5473 lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP, in lpfc_slave_alloc()
5498 struct lpfc_vport *vport = (struct lpfc_vport *) sdev->host->hostdata; in lpfc_slave_configure() local
5499 struct lpfc_hba *phba = vport->phba; in lpfc_slave_configure()
5501 scsi_change_queue_depth(sdev, vport->cfg_lun_queue_depth); in lpfc_slave_configure()
5522 struct lpfc_vport *vport = (struct lpfc_vport *) sdev->host->hostdata; in lpfc_slave_destroy() local
5523 struct lpfc_hba *phba = vport->phba; in lpfc_slave_destroy()