Lines Matching refs:vha
19 qla24xx_calc_iocbs(scsi_qla_host_t *vha, uint16_t dsds) in qla24xx_calc_iocbs() argument
108 qla2x00_is_reserved_id(scsi_qla_host_t *vha, uint16_t loop_id) in qla2x00_is_reserved_id() argument
110 struct qla_hw_data *ha = vha->hw; in qla2x00_is_reserved_id()
120 struct qla_hw_data *ha = fcport->vha->hw; in qla2x00_clear_loop_id()
123 qla2x00_is_reserved_id(fcport->vha, fcport->loop_id)) in qla2x00_clear_loop_id()
155 ql_dbg(ql_dbg_disc, fcport->vha, 0x207d, in qla2x00_set_fcport_state()
193 qla2x00_reset_active(scsi_qla_host_t *vha) in qla2x00_reset_active() argument
195 scsi_qla_host_t *base_vha = pci_get_drvdata(vha->hw->pdev); in qla2x00_reset_active()
201 test_bit(ISP_ABORT_NEEDED, &vha->dpc_flags) || in qla2x00_reset_active()
202 test_bit(ABORT_ISP_ACTIVE, &vha->dpc_flags); in qla2x00_reset_active()
206 qla2x00_chip_is_down(scsi_qla_host_t *vha) in qla2x00_chip_is_down() argument
208 return (qla2x00_reset_active(vha) || !vha->hw->flags.fw_started); in qla2x00_chip_is_down()
228 sp->vha = qpair->vha; in qla2xxx_get_qpair_sp()
245 qla2x00_get_sp(scsi_qla_host_t *vha, fc_port_t *fcport, gfp_t flag) in qla2x00_get_sp() argument
250 QLA_VHA_MARK_BUSY(vha, bail); in qla2x00_get_sp()
254 sp = mempool_alloc(vha->hw->srb_mempool, flag); in qla2x00_get_sp()
262 sp->vha = vha; in qla2x00_get_sp()
265 QLA_VHA_MARK_NOT_BUSY(vha); in qla2x00_get_sp()
272 QLA_VHA_MARK_NOT_BUSY(sp->vha); in qla2x00_rel_sp()
273 mempool_free(sp, sp->vha->hw->srb_mempool); in qla2x00_rel_sp()
283 if (IS_QLAFX00(sp->vha->hw) && (sp->type == SRB_FXIOCB_DCMD)) in qla2x00_init_timer()
317 qla_is_exch_offld_enabled(struct scsi_qla_host *vha) in qla_is_exch_offld_enabled() argument
319 if (qla_ini_mode_enabled(vha) && in qla_is_exch_offld_enabled()
322 else if (qla_tgt_mode_enabled(vha) && in qla_is_exch_offld_enabled()
325 else if (qla_dual_mode_enabled(vha) && in qla_is_exch_offld_enabled()