• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/scsi/lpfc/

Lines Matching defs:vport

160 	struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
170 if (!vport->stat_data_enabled ||
171 vport->stat_data_blocked ||
200 * @vport: Pointer to vport object.
211 struct lpfc_vport *vport,
240 fast_path_evt->vport = vport;
264 struct lpfc_vport *vport = (struct lpfc_vport *) sdev->host->hostdata;
265 struct lpfc_hba *phba = vport->phba;
274 lpfc_send_sdev_queuedepth_change_event(phba, vport,
326 * This routine post WORKER_RAMP_UP_QUEUE event for @phba vport. This routine
334 lpfc_rampup_queue_depth(struct lpfc_vport *vport,
338 struct lpfc_hba *phba = vport->phba;
342 if (vport->cfg_lun_queue_depth <= queue_depth)
371 * thread.This routine reduces queue depth for all scsi device on each vport
414 * thread.This routine increases queue depth for all scsi device on each vport
448 * This function walks vport list and set each SCSI host to block state
475 * @vport: The virtual port for which this call being executed.
490 lpfc_new_scsi_buf_s3(struct lpfc_vport *vport, int num_to_alloc)
492 struct lpfc_hba *phba = vport->phba;
728 * @vport: The virtual port for which this call being executed.
740 lpfc_new_scsi_buf_s4(struct lpfc_vport *vport, int num_to_alloc)
742 struct lpfc_hba *phba = vport->phba;
897 * @vport: The virtual port for which this call being executed.
908 lpfc_new_scsi_buf(struct lpfc_vport *vport, int num_to_alloc)
910 return vport->phba->lpfc_new_scsi_buf(vport, num_to_alloc);
2022 * @vport: Pointer to vport object.
2030 lpfc_send_scsi_error_event(struct lpfc_hba *phba, struct lpfc_vport *vport,
2103 fast_path_evt->vport = vport;
2138 * @vport: The virtual port for which this call is being executed.
2147 lpfc_handle_fcp_err(struct lpfc_vport *vport, struct lpfc_scsi_buf *lpfc_cmd,
2175 lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP,
2185 lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP,
2211 lpfc_printf_vlog(vport, KERN_WARNING, logit,
2225 lpfc_printf_vlog(vport, KERN_INFO, LOG_FCP,
2240 lpfc_printf_vlog(vport, KERN_WARNING,
2260 lpfc_printf_vlog(vport, KERN_INFO, LOG_FCP,
2269 lpfc_printf_vlog(vport, KERN_WARNING, LOG_FCP,
2281 lpfc_printf_vlog(vport, KERN_WARNING, LOG_FCP | LOG_FCP_ERROR,
2293 lpfc_send_scsi_error_event(vport->phba, vport, lpfc_cmd, rsp_iocb);
2312 struct lpfc_vport *vport = pIocbIn->vport;
2345 lpfc_printf_vlog(vport, KERN_WARNING, LOG_FCP,
2358 lpfc_handle_fcp_err(vport, lpfc_cmd, pIocbOut);
2379 fast_path_evt->vport = vport;
2409 lpfc_printf_vlog(vport, KERN_WARNING,
2433 lpfc_printf_vlog(vport, KERN_INFO, LOG_FCP,
2443 if (vport->cfg_max_scsicmpl_time &&
2445 msecs_to_jiffies(vport->cfg_max_scsicmpl_time))) {
2461 if ((pnode->cmd_qdepth < vport->cfg_tgt_queue_depth) &&
2469 if (pnode->cmd_qdepth > vport->cfg_tgt_queue_depth)
2470 pnode->cmd_qdepth = vport->cfg_tgt_queue_depth;
2498 lpfc_rampup_queue_depth(vport, queue_depth);
2513 lpfc_printf_vlog(vport, KERN_WARNING, LOG_FCP,
2516 lpfc_send_sdev_queuedepth_change_event(phba, vport,
2556 * @vport: The virtual port for which this call is being executed.
2564 lpfc_scsi_prep_cmnd(struct lpfc_vport *vport, struct lpfc_scsi_buf *lpfc_cmd,
2567 struct lpfc_hba *phba = vport->phba;
2648 piocbq->vport = vport;
2653 * @vport: The virtual port for which this call is being executed.
2666 lpfc_scsi_prep_task_mgmt_cmd(struct lpfc_vport *vport,
2682 piocbq->vport = vport;
2691 if (vport->phba->sli_rev == 3 &&
2692 !(vport->phba->sli3_options & LPFC_SLI3_BG_ENABLED))
2711 if (vport->phba->sli_rev == LPFC_SLI_REV4)
2712 lpfc_sli4_set_rsp_sgl_last(vport->phba, lpfc_cmd);
2791 struct lpfc_vport *vport = (struct lpfc_vport *) host->hostdata;
2792 struct lpfc_hba *phba = vport->phba;
2890 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
2891 struct lpfc_hba *phba = vport->phba;
2932 lpfc_printf_vlog(vport, KERN_INFO, LOG_FCP,
2950 if (vport->phba->cfg_enable_bg) {
2951 lpfc_printf_vlog(vport, KERN_WARNING, LOG_BG,
2956 lpfc_printf_vlog(vport, KERN_WARNING, LOG_BG,
2964 lpfc_printf_vlog(vport, KERN_WARNING, LOG_BG,
2970 lpfc_printf_vlog(vport, KERN_WARNING, LOG_BG,
2980 if (vport->phba->cfg_enable_bg) {
2981 lpfc_printf_vlog(vport, KERN_WARNING, LOG_BG,
2986 lpfc_printf_vlog(vport, KERN_WARNING, LOG_BG,
2995 lpfc_printf_vlog(vport, KERN_WARNING, LOG_BG,
3001 lpfc_printf_vlog(vport, KERN_WARNING, LOG_BG,
3007 lpfc_printf_vlog(vport, KERN_WARNING, LOG_BG,
3016 lpfc_scsi_prep_cmnd(vport, lpfc_cmd, ndlp);
3062 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
3063 struct lpfc_hba *phba = vport->phba;
3124 abtsiocb->vport = vport;
3140 (2*vport->cfg_devloss_tmo*HZ));
3148 lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP,
3157 lpfc_printf_vlog(vport, KERN_WARNING, LOG_FCP,
3189 * @vport: The virtual port for which this call is being executed.
3203 lpfc_send_taskmgmt(struct lpfc_vport *vport, struct lpfc_rport_data *rdata,
3207 struct lpfc_hba *phba = vport->phba;
3223 status = lpfc_scsi_prep_task_mgmt_cmd(vport, lpfc_cmd, lun_id,
3237 lpfc_printf_vlog(vport, KERN_INFO, LOG_FCP,
3252 lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP,
3272 * @vport: The virtual port to check on
3283 lpfc_chk_tgt_mapped(struct lpfc_vport *vport, struct scsi_cmnd *cmnd)
3290 lpfc_printf_vlog(vport, KERN_INFO, LOG_FCP,
3299 later = msecs_to_jiffies(2 * vport->cfg_devloss_tmo * 1000) + jiffies;
3319 * @vport: The virtual port (scsi_host) for the flush context
3334 lpfc_reset_flush_io_context(struct lpfc_vport *vport, uint16_t tgt_id,
3337 struct lpfc_hba *phba = vport->phba;
3341 cnt = lpfc_sli_sum_iocb(vport, tgt_id, lun_id, context);
3343 lpfc_sli_abort_iocb(vport, &phba->sli.ring[phba->sli.fcp_ring],
3345 later = msecs_to_jiffies(2 * vport->cfg_devloss_tmo * 1000) + jiffies;
3348 cnt = lpfc_sli_sum_iocb(vport, tgt_id, lun_id, context);
3351 lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP,
3377 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
3386 lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP,
3395 status = lpfc_chk_tgt_mapped(vport, cmnd);
3397 lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP,
3411 status = lpfc_send_taskmgmt(vport, rdata, tgt_id, lun_id,
3414 lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP,
3424 status = lpfc_reset_flush_io_context(vport, tgt_id, lun_id,
3444 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
3453 lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP,
3462 status = lpfc_chk_tgt_mapped(vport, cmnd);
3464 lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP,
3478 status = lpfc_send_taskmgmt(vport, rdata, tgt_id, lun_id,
3481 lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP,
3491 status = lpfc_reset_flush_io_context(vport, tgt_id, lun_id,
3511 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
3520 memcpy(scsi_event.wwpn, &vport->fc_portname, sizeof(struct lpfc_name));
3521 memcpy(scsi_event.wwnn, &vport->fc_nodename, sizeof(struct lpfc_name));
3539 list_for_each_entry(ndlp, &vport->fc_nodes, nlp_listp) {
3553 status = lpfc_send_taskmgmt(vport, ndlp->rport->dd_data,
3557 lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP,
3570 status = lpfc_reset_flush_io_context(vport, 0, 0, LPFC_CTX_HOST);
3574 lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP,
3595 struct lpfc_vport *vport = (struct lpfc_vport *) sdev->host->hostdata;
3596 struct lpfc_hba *phba = vport->phba;
3617 num_to_alloc = vport->cfg_lun_queue_depth + 2;
3620 if ((sdev_cnt * (vport->cfg_lun_queue_depth + 2)) < total)
3625 lpfc_printf_vlog(vport, KERN_WARNING, LOG_FCP,
3632 lpfc_printf_vlog(vport, KERN_WARNING, LOG_FCP,
3640 num_allocated = lpfc_new_scsi_buf(vport, num_to_alloc);
3642 lpfc_printf_vlog(vport, KERN_WARNING, LOG_FCP,
3668 struct lpfc_vport *vport = (struct lpfc_vport *) sdev->host->hostdata;
3669 struct lpfc_hba *phba = vport->phba;
3673 scsi_activate_tcq(sdev, vport->cfg_lun_queue_depth);
3675 scsi_deactivate_tcq(sdev, vport->cfg_lun_queue_depth);
3683 rport->dev_loss_tmo = vport->cfg_devloss_tmo;
3704 struct lpfc_vport *vport = (struct lpfc_vport *) sdev->host->hostdata;
3705 struct lpfc_hba *phba = vport->phba;