• Home
  • Raw
  • Download

Lines Matching refs:vport

77 	struct lpfc_vport *vport = (struct lpfc_vport *)sdev->host->hostdata;  in lpfc_rport_data_from_scsi_device()  local
79 if (vport->phba->cfg_fof) in lpfc_rport_data_from_scsi_device()
210 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; in lpfc_update_stats() local
220 if (!vport->stat_data_enabled || in lpfc_update_stats()
221 vport->stat_data_blocked || in lpfc_update_stats()
387 lpfc_new_scsi_buf_s3(struct lpfc_vport *vport, int num_to_alloc) in lpfc_new_scsi_buf_s3() argument
389 struct lpfc_hba *phba = vport->phba; in lpfc_new_scsi_buf_s3()
402 lpfc_printf_vlog(vport, KERN_INFO, LOG_FCP, in lpfc_new_scsi_buf_s3()
522 lpfc_sli4_vport_delete_fcp_xri_aborted(struct lpfc_vport *vport) in lpfc_sli4_vport_delete_fcp_xri_aborted() argument
524 struct lpfc_hba *phba = vport->phba; in lpfc_sli4_vport_delete_fcp_xri_aborted()
535 && psb->rdata->pnode->vport == vport) in lpfc_sli4_vport_delete_fcp_xri_aborted()
795 lpfc_new_scsi_buf_s4(struct lpfc_vport *vport, int num_to_alloc) in lpfc_new_scsi_buf_s4() argument
797 struct lpfc_hba *phba = vport->phba; in lpfc_new_scsi_buf_s4()
813 lpfc_printf_vlog(vport, KERN_INFO, LOG_FCP, in lpfc_new_scsi_buf_s4()
957 lpfc_new_scsi_buf(struct lpfc_vport *vport, int num_to_alloc) in lpfc_new_scsi_buf() argument
959 return vport->phba->lpfc_new_scsi_buf(vport, num_to_alloc); in lpfc_new_scsi_buf()
2717 struct lpfc_vport *vport = phba->pport; in lpfc_bg_scsi_prep_dma_buf_s3() local
2828 (fcpdl < vport->cfg_first_burst_size)) in lpfc_bg_scsi_prep_dma_buf_s3()
3383 struct lpfc_vport *vport = phba->pport; in lpfc_bg_scsi_prep_dma_buf_s4() local
3504 (fcpdl < vport->cfg_first_burst_size)) in lpfc_bg_scsi_prep_dma_buf_s4()
3584 lpfc_send_scsi_error_event(struct lpfc_hba *phba, struct lpfc_vport *vport, in lpfc_send_scsi_error_event() argument
3660 fast_path_evt->vport = vport; in lpfc_send_scsi_error_event()
3704 lpfc_handle_fcp_err(struct lpfc_vport *vport, struct lpfc_scsi_buf *lpfc_cmd, in lpfc_handle_fcp_err() argument
3707 struct lpfc_hba *phba = vport->phba; in lpfc_handle_fcp_err()
3734 lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP, in lpfc_handle_fcp_err()
3744 lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP, in lpfc_handle_fcp_err()
3770 if (vport->cfg_log_verbose & LOG_FCP) in lpfc_handle_fcp_err()
3773 if (vport->cfg_log_verbose & LOG_FCP_UNDER) in lpfc_handle_fcp_err()
3777 lpfc_printf_vlog(vport, KERN_WARNING, logit, in lpfc_handle_fcp_err()
3792 lpfc_printf_vlog(vport, KERN_INFO, LOG_FCP_UNDER, in lpfc_handle_fcp_err()
3807 lpfc_printf_vlog(vport, KERN_WARNING, in lpfc_handle_fcp_err()
3827 lpfc_printf_vlog(vport, KERN_INFO, LOG_FCP, in lpfc_handle_fcp_err()
3836 lpfc_printf_vlog(vport, KERN_WARNING, LOG_FCP, in lpfc_handle_fcp_err()
3847 lpfc_printf_vlog(vport, KERN_WARNING, LOG_FCP | LOG_FCP_ERROR, in lpfc_handle_fcp_err()
3881 lpfc_send_scsi_error_event(vport->phba, vport, lpfc_cmd, rsp_iocb); in lpfc_handle_fcp_err()
3943 struct lpfc_vport *vport = pIocbIn->vport; in lpfc_scsi_cmd_iocb_cmpl() local
4010 !(vport->cfg_log_verbose & LOG_FCP_UNDER)) in lpfc_scsi_cmd_iocb_cmpl()
4014 lpfc_printf_vlog(vport, KERN_WARNING, logit, in lpfc_scsi_cmd_iocb_cmpl()
4023 vport->fc_myDID, in lpfc_scsi_cmd_iocb_cmpl()
4033 lpfc_handle_fcp_err(vport, lpfc_cmd, pIocbOut); in lpfc_scsi_cmd_iocb_cmpl()
4054 fast_path_evt->vport = vport; in lpfc_scsi_cmd_iocb_cmpl()
4093 lpfc_printf_vlog(vport, KERN_WARNING, in lpfc_scsi_cmd_iocb_cmpl()
4126 lpfc_printf_vlog(vport, KERN_INFO, LOG_FCP, in lpfc_scsi_cmd_iocb_cmpl()
4135 if (vport->cfg_max_scsicmpl_time && in lpfc_scsi_cmd_iocb_cmpl()
4137 msecs_to_jiffies(vport->cfg_max_scsicmpl_time))) { in lpfc_scsi_cmd_iocb_cmpl()
4153 if ((pnode->cmd_qdepth < vport->cfg_tgt_queue_depth) && in lpfc_scsi_cmd_iocb_cmpl()
4161 if (pnode->cmd_qdepth > vport->cfg_tgt_queue_depth) in lpfc_scsi_cmd_iocb_cmpl()
4162 pnode->cmd_qdepth = vport->cfg_tgt_queue_depth; in lpfc_scsi_cmd_iocb_cmpl()
4172 lpfc_printf_vlog(vport, KERN_INFO, LOG_FCP, in lpfc_scsi_cmd_iocb_cmpl()
4175 vport->fc_myDID, in lpfc_scsi_cmd_iocb_cmpl()
4225 lpfc_scsi_prep_cmnd(struct lpfc_vport *vport, struct lpfc_scsi_buf *lpfc_cmd, in lpfc_scsi_prep_cmnd() argument
4228 struct lpfc_hba *phba = vport->phba; in lpfc_scsi_prep_cmnd()
4270 if (vport->cfg_first_burst_size && in lpfc_scsi_prep_cmnd()
4273 if (fcpdl < vport->cfg_first_burst_size) in lpfc_scsi_prep_cmnd()
4277 vport->cfg_first_burst_size; in lpfc_scsi_prep_cmnd()
4314 piocbq->vport = vport; in lpfc_scsi_prep_cmnd()
4332 lpfc_scsi_prep_task_mgmt_cmd(struct lpfc_vport *vport, in lpfc_scsi_prep_task_mgmt_cmd() argument
4348 piocbq->vport = vport; in lpfc_scsi_prep_task_mgmt_cmd()
4357 if (vport->phba->sli_rev == 3 && in lpfc_scsi_prep_task_mgmt_cmd()
4358 !(vport->phba->sli3_options & LPFC_SLI3_BG_ENABLED)) in lpfc_scsi_prep_task_mgmt_cmd()
4362 if (vport->phba->sli_rev == LPFC_SLI_REV4) { in lpfc_scsi_prep_task_mgmt_cmd()
4364 vport->phba->sli4_hba.rpi_ids[ndlp->nlp_rpi]; in lpfc_scsi_prep_task_mgmt_cmd()
4381 if (vport->phba->sli_rev == LPFC_SLI_REV4) in lpfc_scsi_prep_task_mgmt_cmd()
4382 lpfc_sli4_set_rsp_sgl_last(vport->phba, lpfc_cmd); in lpfc_scsi_prep_task_mgmt_cmd()
4463 struct lpfc_vport *vport = (struct lpfc_vport *) host->hostdata; in lpfc_info() local
4464 struct lpfc_hba *phba = vport->phba; in lpfc_info()
4559 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; in lpfc_queuecommand() local
4560 struct lpfc_hba *phba = vport->phba; in lpfc_queuecommand()
4600 lpfc_printf_vlog(vport, KERN_INFO, LOG_FCP_ERROR, in lpfc_queuecommand()
4617 if (vport->phba->cfg_enable_bg) { in lpfc_queuecommand()
4618 lpfc_printf_vlog(vport, in lpfc_queuecommand()
4630 if (vport->phba->cfg_enable_bg) { in lpfc_queuecommand()
4631 lpfc_printf_vlog(vport, in lpfc_queuecommand()
4646 lpfc_scsi_prep_cmnd(vport, lpfc_cmd, ndlp); in lpfc_queuecommand()
4653 lpfc_printf_vlog(vport, KERN_INFO, LOG_FCP, in lpfc_queuecommand()
4661 vport->fc_myDID, ndlp->nlp_DID, in lpfc_queuecommand()
4721 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; in lpfc_abort_handler() local
4722 struct lpfc_hba *phba = vport->phba; in lpfc_abort_handler()
4741 lpfc_printf_vlog(vport, KERN_WARNING, LOG_FCP, in lpfc_abort_handler()
4750 lpfc_printf_vlog(vport, KERN_WARNING, LOG_FCP, in lpfc_abort_handler()
4761 lpfc_printf_vlog(vport, KERN_WARNING, LOG_FCP, in lpfc_abort_handler()
4773 lpfc_printf_vlog(vport, KERN_WARNING, LOG_FCP, in lpfc_abort_handler()
4783 lpfc_printf_vlog(vport, KERN_WARNING, LOG_FCP, in lpfc_abort_handler()
4828 abtsiocb->vport = vport; in lpfc_abort_handler()
4863 msecs_to_jiffies(2*vport->cfg_devloss_tmo*1000)); in lpfc_abort_handler()
4871 lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP, in lpfc_abort_handler()
4883 lpfc_printf_vlog(vport, KERN_WARNING, LOG_FCP, in lpfc_abort_handler()
4926 lpfc_check_fcp_rsp(struct lpfc_vport *vport, struct lpfc_scsi_buf *lpfc_cmd) in lpfc_check_fcp_rsp() argument
4936 lpfc_printf_vlog(vport, KERN_INFO, LOG_FCP, in lpfc_check_fcp_rsp()
4944 lpfc_printf_vlog(vport, KERN_INFO, in lpfc_check_fcp_rsp()
4954 lpfc_printf_vlog(vport, KERN_INFO, LOG_FCP, in lpfc_check_fcp_rsp()
4959 lpfc_printf_vlog(vport, KERN_INFO, LOG_FCP, in lpfc_check_fcp_rsp()
4964 lpfc_printf_vlog(vport, KERN_INFO, LOG_FCP, in lpfc_check_fcp_rsp()
4969 lpfc_printf_vlog(vport, KERN_INFO, LOG_FCP, in lpfc_check_fcp_rsp()
4996 lpfc_send_taskmgmt(struct lpfc_vport *vport, struct scsi_cmnd *cmnd, in lpfc_send_taskmgmt() argument
5000 struct lpfc_hba *phba = vport->phba; in lpfc_send_taskmgmt()
5021 status = lpfc_scsi_prep_task_mgmt_cmd(vport, lpfc_cmd, lun_id, in lpfc_send_taskmgmt()
5036 lpfc_printf_vlog(vport, KERN_INFO, LOG_FCP, in lpfc_send_taskmgmt()
5049 lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP, in lpfc_send_taskmgmt()
5062 ret = lpfc_check_fcp_rsp(vport, lpfc_cmd); in lpfc_send_taskmgmt()
5094 lpfc_chk_tgt_mapped(struct lpfc_vport *vport, struct scsi_cmnd *cmnd) in lpfc_chk_tgt_mapped() argument
5102 lpfc_printf_vlog(vport, KERN_INFO, LOG_FCP, in lpfc_chk_tgt_mapped()
5111 later = msecs_to_jiffies(2 * vport->cfg_devloss_tmo * 1000) + jiffies; in lpfc_chk_tgt_mapped()
5146 lpfc_reset_flush_io_context(struct lpfc_vport *vport, uint16_t tgt_id, in lpfc_reset_flush_io_context() argument
5149 struct lpfc_hba *phba = vport->phba; in lpfc_reset_flush_io_context()
5153 cnt = lpfc_sli_sum_iocb(vport, tgt_id, lun_id, context); in lpfc_reset_flush_io_context()
5155 lpfc_sli_abort_taskmgmt(vport, in lpfc_reset_flush_io_context()
5158 later = msecs_to_jiffies(2 * vport->cfg_devloss_tmo * 1000) + jiffies; in lpfc_reset_flush_io_context()
5161 cnt = lpfc_sli_sum_iocb(vport, tgt_id, lun_id, context); in lpfc_reset_flush_io_context()
5164 lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP, in lpfc_reset_flush_io_context()
5190 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; in lpfc_device_reset_handler() local
5200 lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP, in lpfc_device_reset_handler()
5210 status = lpfc_chk_tgt_mapped(vport, cmnd); in lpfc_device_reset_handler()
5212 lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP, in lpfc_device_reset_handler()
5226 status = lpfc_send_taskmgmt(vport, cmnd, tgt_id, lun_id, in lpfc_device_reset_handler()
5229 lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP, in lpfc_device_reset_handler()
5240 status = lpfc_reset_flush_io_context(vport, tgt_id, lun_id, in lpfc_device_reset_handler()
5261 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; in lpfc_target_reset_handler() local
5271 lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP, in lpfc_target_reset_handler()
5280 status = lpfc_chk_tgt_mapped(vport, cmnd); in lpfc_target_reset_handler()
5282 lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP, in lpfc_target_reset_handler()
5290 lpfc_reset_flush_io_context(vport, tgt_id, lun_id, in lpfc_target_reset_handler()
5304 status = lpfc_send_taskmgmt(vport, cmnd, tgt_id, lun_id, in lpfc_target_reset_handler()
5307 lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP, in lpfc_target_reset_handler()
5318 status = lpfc_reset_flush_io_context(vport, tgt_id, lun_id, in lpfc_target_reset_handler()
5338 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; in lpfc_bus_reset_handler() local
5347 memcpy(scsi_event.wwpn, &vport->fc_portname, sizeof(struct lpfc_name)); in lpfc_bus_reset_handler()
5348 memcpy(scsi_event.wwnn, &vport->fc_nodename, sizeof(struct lpfc_name)); in lpfc_bus_reset_handler()
5366 list_for_each_entry(ndlp, &vport->fc_nodes, nlp_listp) { in lpfc_bus_reset_handler()
5369 if (vport->phba->cfg_fcp2_no_tgt_reset && in lpfc_bus_reset_handler()
5384 status = lpfc_send_taskmgmt(vport, cmnd, in lpfc_bus_reset_handler()
5388 lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP, in lpfc_bus_reset_handler()
5401 status = lpfc_reset_flush_io_context(vport, 0, 0, LPFC_CTX_HOST); in lpfc_bus_reset_handler()
5405 lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP, in lpfc_bus_reset_handler()
5430 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; in lpfc_host_reset_handler() local
5431 struct lpfc_hba *phba = vport->phba; in lpfc_host_reset_handler()
5434 lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP, in lpfc_host_reset_handler()
5448 lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP, in lpfc_host_reset_handler()
5471 struct lpfc_vport *vport = (struct lpfc_vport *) sdev->host->hostdata; in lpfc_slave_alloc() local
5472 struct lpfc_hba *phba = vport->phba; in lpfc_slave_alloc()
5496 &vport->fc_portname, in lpfc_slave_alloc()
5502 &vport->fc_portname, in lpfc_slave_alloc()
5529 num_to_alloc = vport->cfg_lun_queue_depth + 2; in lpfc_slave_alloc()
5532 if ((sdev_cnt * (vport->cfg_lun_queue_depth + 2)) < total) in lpfc_slave_alloc()
5537 lpfc_printf_vlog(vport, KERN_WARNING, LOG_FCP, in lpfc_slave_alloc()
5544 lpfc_printf_vlog(vport, KERN_WARNING, LOG_FCP, in lpfc_slave_alloc()
5552 num_allocated = lpfc_new_scsi_buf(vport, num_to_alloc); in lpfc_slave_alloc()
5554 lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP, in lpfc_slave_alloc()
5579 struct lpfc_vport *vport = (struct lpfc_vport *) sdev->host->hostdata; in lpfc_slave_configure() local
5580 struct lpfc_hba *phba = vport->phba; in lpfc_slave_configure()
5582 scsi_change_queue_depth(sdev, vport->cfg_lun_queue_depth); in lpfc_slave_configure()
5603 struct lpfc_vport *vport = (struct lpfc_vport *) sdev->host->hostdata; in lpfc_slave_destroy() local
5604 struct lpfc_hba *phba = vport->phba; in lpfc_slave_destroy()