Lines Matching defs:vha

366 	struct scsi_qla_host *vha;
370 vha = sess->vha;
372 spin_lock_irqsave(&vha->hw->tgt.sess_lock, flags);
374 spin_unlock_irqrestore(&vha->hw->tgt.sess_lock, flags);
443 static int tcm_qla2xxx_handle_cmd(scsi_qla_host_t *vha, struct qla_tgt_cmd *cmd,
581 pr_debug("%ld: ABTS received\n", sess->vha->host_no);
586 pr_debug("%ld: 2G Abort Task received\n", sess->vha->host_no);
590 pr_debug("%ld: CLEAR_ACA received\n", sess->vha->host_no);
594 pr_debug("%ld: TARGET_RESET received\n", sess->vha->host_no);
598 pr_debug("%ld: LUN_RESET received\n", sess->vha->host_no);
602 pr_debug("%ld: CLEAR_TS received\n", sess->vha->host_no);
606 pr_debug("%ld: ABORT_TS received\n", sess->vha->host_no);
611 sess->vha->host_no, tmr_func);
921 struct scsi_qla_host *vha = lport->qla_vha;
941 qlt_enable_vha(vha);
947 qlt_stop_phase1(vha->vha_tgt.qla_tgt);
948 qlt_stop_phase2(vha->vha_tgt.qla_tgt);
1055 struct scsi_qla_host *vha = lport->qla_vha;
1060 if (vha->vha_tgt.qla_tgt && !vha->vha_tgt.qla_tgt->tgt_stop)
1061 qlt_stop_phase1(vha->vha_tgt.qla_tgt);
1084 struct scsi_qla_host *vha = lport->qla_vha;
1104 qlt_enable_vha(vha);
1110 qlt_stop_phase1(vha->vha_tgt.qla_tgt);
1111 qlt_stop_phase2(vha->vha_tgt.qla_tgt);
1167 static struct fc_port *tcm_qla2xxx_find_sess_by_s_id(scsi_qla_host_t *vha,
1175 lport = vha->vha_tgt.target_lport_ptr;
1272 scsi_qla_host_t *vha,
1280 lport = vha->vha_tgt.target_lport_ptr;
1389 scsi_qla_host_t *vha = pci_get_drvdata(ha->pdev);
1402 lport = vha->vha_tgt.target_lport_ptr;
1446 scsi_qla_host_t *vha,
1450 struct qla_hw_data *ha = vha->hw;
1458 lport = vha->vha_tgt.target_lport_ptr;
1497 scsi_qla_host_t *vha = pci_get_drvdata(ha->pdev);
1498 struct tcm_qla2xxx_lport *lport = vha->vha_tgt.target_lport_ptr;
1613 static int tcm_qla2xxx_lport_register_cb(struct scsi_qla_host *vha,
1617 struct qla_hw_data *ha = vha->hw;
1621 * Setup tgt_ops, local pointer to vha and target_lport_ptr
1624 vha->vha_tgt.target_lport_ptr = target_lport_ptr;
1625 lport->qla_vha = vha;
1674 struct scsi_qla_host *vha = lport->qla_vha;
1683 if (vha->vha_tgt.qla_tgt && !vha->vha_tgt.qla_tgt->tgt_stopped)
1684 qlt_stop_phase2(vha->vha_tgt.qla_tgt);
1686 qlt_lport_deregister(vha);
1805 * Notify libfc that we want to release the vha->fc_vport