Home
last modified time | relevance | path

Searched refs:vha (Results 1 – 23 of 23) sorted by relevance

/drivers/scsi/qla2xxx/
Dqla_nx2.c32 qla8044_rd_direct(struct scsi_qla_host *vha, in qla8044_rd_direct() argument
35 struct qla_hw_data *ha = vha->hw; in qla8044_rd_direct()
44 qla8044_wr_direct(struct scsi_qla_host *vha, in qla8044_wr_direct() argument
48 struct qla_hw_data *ha = vha->hw; in qla8044_wr_direct()
55 qla8044_set_win_base(scsi_qla_host_t *vha, uint32_t addr) in qla8044_set_win_base() argument
59 struct qla_hw_data *ha = vha->hw; in qla8044_set_win_base()
65 ql_log(ql_log_warn, vha, 0xb087, in qla8044_set_win_base()
75 qla8044_rd_reg_indirect(scsi_qla_host_t *vha, uint32_t addr, uint32_t *data) in qla8044_rd_reg_indirect() argument
78 struct qla_hw_data *ha = vha->hw; in qla8044_rd_reg_indirect()
80 ret_val = qla8044_set_win_base(vha, addr); in qla8044_rd_reg_indirect()
[all …]
Dqla_mid.c21 qla2x00_vp_stop_timer(scsi_qla_host_t *vha) in qla2x00_vp_stop_timer() argument
23 if (vha->vp_idx && vha->timer_active) { in qla2x00_vp_stop_timer()
24 del_timer_sync(&vha->timer); in qla2x00_vp_stop_timer()
25 vha->timer_active = 0; in qla2x00_vp_stop_timer()
30 qla24xx_allocate_vp_id(scsi_qla_host_t *vha) in qla24xx_allocate_vp_id() argument
33 struct qla_hw_data *ha = vha->hw; in qla24xx_allocate_vp_id()
40 ql_dbg(ql_dbg_vport, vha, 0xa000, in qla24xx_allocate_vp_id()
49 vha->vp_idx = vp_id; in qla24xx_allocate_vp_id()
52 list_add_tail(&vha->list, &ha->vp_list); in qla24xx_allocate_vp_id()
54 qlt_update_vp_map(vha, SET_VP_IDX); in qla24xx_allocate_vp_id()
[all …]
Dqla_attr.c24 struct scsi_qla_host *vha = shost_priv(dev_to_shost(container_of(kobj, in qla2x00_sysfs_read_fw_dump() local
26 struct qla_hw_data *ha = vha->hw; in qla2x00_sysfs_read_fw_dump()
57 struct scsi_qla_host *vha = shost_priv(dev_to_shost(container_of(kobj, in qla2x00_sysfs_write_fw_dump() local
59 struct qla_hw_data *ha = vha->hw; in qla2x00_sysfs_write_fw_dump()
71 ql_log(ql_log_info, vha, 0x705d, in qla2x00_sysfs_write_fw_dump()
72 "Firmware dump cleared on (%ld).\n", vha->host_no); in qla2x00_sysfs_write_fw_dump()
75 qla82xx_md_free(vha); in qla2x00_sysfs_write_fw_dump()
76 qla82xx_md_prep(vha); in qla2x00_sysfs_write_fw_dump()
85 ql_log(ql_log_info, vha, 0x705e, in qla2x00_sysfs_write_fw_dump()
87 vha->host_no); in qla2x00_sysfs_write_fw_dump()
[all …]
Dqla_target.c111 static void qlt_abort_cmd_on_host_reset(struct scsi_qla_host *vha,
113 static void qlt_alloc_qfull_cmd(struct scsi_qla_host *vha,
115 static void qlt_disable_vha(struct scsi_qla_host *vha);
117 static void qlt_send_notify_ack(struct scsi_qla_host *vha,
132 void qlt_do_generation_tick(struct scsi_qla_host *vha, int *dest) in qlt_do_generation_tick() argument
134 scsi_qla_host_t *base_vha = pci_get_drvdata(vha->hw->pdev); in qlt_do_generation_tick()
156 static inline int qlt_issue_marker(struct scsi_qla_host *vha, int vha_locked) in qlt_issue_marker() argument
159 if (unlikely(vha->marker_needed != 0)) { in qlt_issue_marker()
160 int rc = qla2x00_issue_marker(vha, vha_locked); in qlt_issue_marker()
162 ql_dbg(ql_dbg_tgt, vha, 0xe03d, in qlt_issue_marker()
[all …]
Dqla_init.c51 struct qla_hw_data *ha = fcport->vha->hw; in qla2x00_sp_timeout()
60 sp->free(fcport->vha, sp); in qla2x00_sp_timeout()
69 struct scsi_qla_host *vha = (scsi_qla_host_t *)data; in qla2x00_sp_free() local
72 qla2x00_rel_sp(vha, sp); in qla2x00_sp_free()
78 qla2x00_get_async_timeout(struct scsi_qla_host *vha) in qla2x00_get_async_timeout() argument
81 struct qla_hw_data *ha = vha->hw; in qla2x00_get_async_timeout()
103 ql_dbg(ql_dbg_disc, fcport->vha, 0x2071, in qla2x00_async_iocb_timeout()
111 qla2x00_post_async_logout_work(fcport->vha, fcport, NULL); in qla2x00_async_iocb_timeout()
116 qla2x00_post_async_login_done_work(fcport->vha, fcport, in qla2x00_async_iocb_timeout()
128 struct scsi_qla_host *vha = (scsi_qla_host_t *)data; in qla2x00_async_login_sp_done() local
[all …]
Dqla_isr.c34 scsi_qla_host_t *vha; in qla2100_intr_handler() local
56 vha = pci_get_drvdata(ha->pdev); in qla2100_intr_handler()
59 if (qla2x00_check_reg16_for_disconnect(vha, hccr)) in qla2100_intr_handler()
73 ha->isp_ops->fw_dump(vha, 1); in qla2100_intr_handler()
74 set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags); in qla2100_intr_handler()
86 qla2x00_mbx_completion(vha, mb[0]); in qla2100_intr_handler()
92 qla2x00_async_event(vha, rsp, mb); in qla2100_intr_handler()
95 ql_dbg(ql_dbg_async, vha, 0x5025, in qla2100_intr_handler()
116 qla2x00_check_reg32_for_disconnect(scsi_qla_host_t *vha, uint32_t reg) in qla2x00_check_reg32_for_disconnect() argument
120 if (!test_and_set_bit(PFLG_DISCONNECTED, &vha->pci_flags) && in qla2x00_check_reg32_for_disconnect()
[all …]
Dqla_tmpl.c103 qla27xx_isp_reg(struct scsi_qla_host *vha) in qla27xx_isp_reg() argument
105 return &vha->hw->iobase->isp24; in qla27xx_isp_reg()
225 qla27xx_fwdt_entry_t0(struct scsi_qla_host *vha, in qla27xx_fwdt_entry_t0() argument
228 ql_dbg(ql_dbg_misc, vha, 0xd100, in qla27xx_fwdt_entry_t0()
236 qla27xx_fwdt_entry_t255(struct scsi_qla_host *vha, in qla27xx_fwdt_entry_t255() argument
239 ql_dbg(ql_dbg_misc, vha, 0xd1ff, in qla27xx_fwdt_entry_t255()
248 qla27xx_fwdt_entry_t256(struct scsi_qla_host *vha, in qla27xx_fwdt_entry_t256() argument
251 struct device_reg_24xx __iomem *reg = qla27xx_isp_reg(vha); in qla27xx_fwdt_entry_t256()
253 ql_dbg(ql_dbg_misc, vha, 0xd200, in qla27xx_fwdt_entry_t256()
262 qla27xx_fwdt_entry_t257(struct scsi_qla_host *vha, in qla27xx_fwdt_entry_t257() argument
[all …]
Dqla_mbx.c34 qla2x00_mailbox_command(scsi_qla_host_t *vha, mbx_cmd_t *mcp) in qla2x00_mailbox_command() argument
47 struct qla_hw_data *ha = vha->hw; in qla2x00_mailbox_command()
50 ql_dbg(ql_dbg_mbx, vha, 0x1000, "Entered %s.\n", __func__); in qla2x00_mailbox_command()
53 ql_log(ql_log_warn, vha, 0x1001, in qla2x00_mailbox_command()
59 if (vha->device_flags & DFLG_DEV_FAILED) { in qla2x00_mailbox_command()
60 ql_log(ql_log_warn, vha, 0x1002, in qla2x00_mailbox_command()
73 ql_log(ql_log_warn, vha, 0x1003, in qla2x00_mailbox_command()
81 ql_log(ql_log_warn, vha, 0x1004, in qla2x00_mailbox_command()
93 ql_log(ql_log_warn, vha, 0x1005, in qla2x00_mailbox_command()
103 ql_dbg(ql_dbg_mbx, vha, 0x1006, in qla2x00_mailbox_command()
[all …]
Dqla_mr.c38 qlafx00_mailbox_command(scsi_qla_host_t *vha, struct mbx_cmd_32 *mcp) in qlafx00_mailbox_command() argument
52 struct qla_hw_data *ha = vha->hw; in qlafx00_mailbox_command()
56 ql_log(ql_log_warn, vha, 0x115c, in qlafx00_mailbox_command()
62 if (vha->device_flags & DFLG_DEV_FAILED) { in qlafx00_mailbox_command()
63 ql_log(ql_log_warn, vha, 0x115f, in qlafx00_mailbox_command()
75 ql_log(ql_log_warn, vha, 0x1175, in qlafx00_mailbox_command()
83 ql_log(ql_log_warn, vha, 0x1176, in qlafx00_mailbox_command()
96 ql_log(ql_log_warn, vha, 0x1177, in qlafx00_mailbox_command()
106 ql_dbg(ql_dbg_mbx, vha, 0x1178, in qlafx00_mailbox_command()
131 ql_dump_buffer(ql_dbg_mbx + ql_dbg_buffer, vha, 0x1172, in qlafx00_mailbox_command()
[all …]
Dqla_gs.c27 qla2x00_prep_ms_iocb(scsi_qla_host_t *vha, uint32_t req_size, uint32_t rsp_size) in qla2x00_prep_ms_iocb() argument
29 struct qla_hw_data *ha = vha->hw; in qla2x00_prep_ms_iocb()
53 vha->qla_stats.control_requests++; in qla2x00_prep_ms_iocb()
67 qla24xx_prep_ms_iocb(scsi_qla_host_t *vha, uint32_t req_size, uint32_t rsp_size) in qla24xx_prep_ms_iocb() argument
69 struct qla_hw_data *ha = vha->hw; in qla24xx_prep_ms_iocb()
91 ct_pkt->vp_index = vha->vp_idx; in qla24xx_prep_ms_iocb()
93 vha->qla_stats.control_requests++; in qla24xx_prep_ms_iocb()
121 qla2x00_chk_ms_status(scsi_qla_host_t *vha, ms_iocb_entry_t *ms_pkt, in qla2x00_chk_ms_status() argument
126 struct qla_hw_data *ha = vha->hw; in qla2x00_chk_ms_status()
130 ql_dbg(ql_dbg_disc, vha, 0x2031, in qla2x00_chk_ms_status()
[all …]
Dqla_nx.c358 scsi_qla_host_t *vha = pci_get_drvdata(ha->pdev); in qla82xx_pci_set_crbwindow_2M() local
370 ql_dbg(ql_dbg_p3p, vha, 0xb000, in qla82xx_pci_set_crbwindow_2M()
381 scsi_qla_host_t *vha = pci_get_drvdata(ha->pdev); in qla82xx_pci_set_crbwindow() local
412 ql_dbg(ql_dbg_p3p, vha, 0xb001, in qla82xx_pci_set_crbwindow()
578 scsi_qla_host_t *vha = pci_get_drvdata(ha->pdev); in qla82xx_pci_set_window() local
590 ql_dbg(ql_dbg_p3p, vha, 0xb003, in qla82xx_pci_set_window()
599 ql_log(ql_log_warn, vha, 0xb004, in qla82xx_pci_set_window()
612 ql_log(ql_log_warn, vha, 0xb005, in qla82xx_pci_set_window()
628 ql_log(ql_log_warn, vha, 0xb006, in qla82xx_pci_set_window()
640 ql_log(ql_log_warn, vha, 0xb007, in qla82xx_pci_set_window()
[all …]
Dqla_bsg.c18 struct scsi_qla_host *vha = (scsi_qla_host_t *)data; in qla2x00_bsg_job_done() local
23 sp->free(vha, sp); in qla2x00_bsg_job_done()
30 struct scsi_qla_host *vha = sp->fcport->vha; in qla2x00_bsg_sp_free() local
32 struct qla_hw_data *ha = vha->hw; in qla2x00_bsg_sp_free()
60 qla2x00_rel_sp(vha, sp); in qla2x00_bsg_sp_free()
64 qla24xx_fcp_prio_cfg_valid(scsi_qla_host_t *vha, in qla24xx_fcp_prio_cfg_valid() argument
80 ql_dbg(ql_dbg_user, vha, 0x7051, in qla24xx_fcp_prio_cfg_valid()
88 ql_dbg(ql_dbg_user, vha, 0x7052, in qla24xx_fcp_prio_cfg_valid()
105 ql_dbg(ql_dbg_user, vha, 0x7053, in qla24xx_fcp_prio_cfg_valid()
110 ql_dbg(ql_dbg_user, vha, 0x7054, in qla24xx_fcp_prio_cfg_valid()
[all …]
Dqla_os.c243 static void qla83xx_disable_laser(scsi_qla_host_t *vha);
284 qla2x00_start_timer(scsi_qla_host_t *vha, void *func, unsigned long interval) in qla2x00_start_timer() argument
286 init_timer(&vha->timer); in qla2x00_start_timer()
287 vha->timer.expires = jiffies + interval * HZ; in qla2x00_start_timer()
288 vha->timer.data = (unsigned long)vha; in qla2x00_start_timer()
289 vha->timer.function = (void (*)(unsigned long))func; in qla2x00_start_timer()
290 add_timer(&vha->timer); in qla2x00_start_timer()
291 vha->timer_active = 1; in qla2x00_start_timer()
295 qla2x00_restart_timer(scsi_qla_host_t *vha, unsigned long interval) in qla2x00_restart_timer() argument
298 if (vha->device_flags & DFLG_DEV_FAILED) { in qla2x00_restart_timer()
[all …]
Dqla_sup.c192 scsi_qla_host_t *vha = pci_get_drvdata(ha->pdev); in qla2x00_write_nvram_word() local
224 ql_dbg(ql_dbg_user, vha, 0x708d, in qla2x00_write_nvram_word()
312 scsi_qla_host_t *vha = pci_get_drvdata(ha->pdev); in qla2x00_clear_nvram_protection() local
355 ql_dbg(ql_dbg_user, vha, 0x708e, in qla2x00_clear_nvram_protection()
376 scsi_qla_host_t *vha = pci_get_drvdata(ha->pdev); in qla2x00_set_nvram_protection() local
415 ql_dbg(ql_dbg_user, vha, 0x708f, in qla2x00_set_nvram_protection()
482 qla24xx_read_flash_data(scsi_qla_host_t *vha, uint32_t *dwptr, uint32_t faddr, in qla24xx_read_flash_data() argument
486 struct qla_hw_data *ha = vha->hw; in qla24xx_read_flash_data()
544 qla2xxx_find_flt_start(scsi_qla_host_t *vha, uint32_t *start) in qla2xxx_find_flt_start() argument
552 struct qla_hw_data *ha = vha->hw; in qla2xxx_find_flt_start()
[all …]
Dqla_iocb.c27 struct scsi_qla_host *vha = sp->fcport->vha; in qla2x00_get_cmd_direction() local
34 vha->qla_stats.output_bytes += scsi_bufflen(cmd); in qla2x00_get_cmd_direction()
35 vha->qla_stats.output_requests++; in qla2x00_get_cmd_direction()
38 vha->qla_stats.input_bytes += scsi_bufflen(cmd); in qla2x00_get_cmd_direction()
39 vha->qla_stats.input_requests++; in qla2x00_get_cmd_direction()
95 qla2x00_prep_cont_type0_iocb(struct scsi_qla_host *vha) in qla2x00_prep_cont_type0_iocb() argument
98 struct req_que *req = vha->req; in qla2x00_prep_cont_type0_iocb()
124 qla2x00_prep_cont_type1_iocb(scsi_qla_host_t *vha, struct req_que *req) in qla2x00_prep_cont_type1_iocb() argument
140 *((uint32_t *)(&cont_pkt->entry_type)) = IS_QLAFX00(vha->hw) ? in qla2x00_prep_cont_type1_iocb()
198 scsi_qla_host_t *vha; in qla2x00_build_scsi_iocbs_32() local
[all …]
Dqla_dfs.c18 scsi_qla_host_t *vha = s->private; in qla2x00_dfs_fce_show() local
22 struct qla_hw_data *ha = vha->hw; in qla2x00_dfs_fce_show()
55 scsi_qla_host_t *vha = inode->i_private; in qla2x00_dfs_fce_open() local
56 struct qla_hw_data *ha = vha->hw; in qla2x00_dfs_fce_open()
65 rval = qla2x00_disable_fce_trace(vha, &ha->fce_wr, &ha->fce_rd); in qla2x00_dfs_fce_open()
67 ql_dbg(ql_dbg_user, vha, 0x705c, in qla2x00_dfs_fce_open()
74 return single_open(file, qla2x00_dfs_fce_show, vha); in qla2x00_dfs_fce_open()
80 scsi_qla_host_t *vha = inode->i_private; in qla2x00_dfs_fce_release() local
81 struct qla_hw_data *ha = vha->hw; in qla2x00_dfs_fce_release()
92 rval = qla2x00_enable_fce_trace(vha, ha->fce_dma, ha->fce_bufs, in qla2x00_dfs_fce_release()
[all …]
Dqla_inline.h18 qla24xx_calc_iocbs(scsi_qla_host_t *vha, uint16_t dsds) in qla24xx_calc_iocbs() argument
109 qla2x00_is_reserved_id(scsi_qla_host_t *vha, uint16_t loop_id) in qla2x00_is_reserved_id() argument
111 struct qla_hw_data *ha = vha->hw; in qla2x00_is_reserved_id()
121 struct qla_hw_data *ha = fcport->vha->hw; in qla2x00_clear_loop_id()
124 qla2x00_is_reserved_id(fcport->vha, fcport->loop_id)) in qla2x00_clear_loop_id()
168 ql_dbg(ql_dbg_disc, fcport->vha, 0x207d, in qla2x00_set_fcport_state()
206 qla2x00_reset_active(scsi_qla_host_t *vha) in qla2x00_reset_active() argument
208 scsi_qla_host_t *base_vha = pci_get_drvdata(vha->hw->pdev); in qla2x00_reset_active()
214 test_bit(ISP_ABORT_NEEDED, &vha->dpc_flags) || in qla2x00_reset_active()
215 test_bit(ABORT_ISP_ACTIVE, &vha->dpc_flags); in qla2x00_reset_active()
[all …]
Dtcm_qla2xxx.c449 struct scsi_qla_host *vha; in tcm_qla2xxx_shutdown_session() local
453 vha = sess->vha; in tcm_qla2xxx_shutdown_session()
455 spin_lock_irqsave(&vha->hw->hardware_lock, flags); in tcm_qla2xxx_shutdown_session()
457 spin_unlock_irqrestore(&vha->hw->hardware_lock, flags); in tcm_qla2xxx_shutdown_session()
465 struct scsi_qla_host *vha; in tcm_qla2xxx_close_session() local
469 vha = sess->vha; in tcm_qla2xxx_close_session()
471 spin_lock_irqsave(&vha->hw->hardware_lock, flags); in tcm_qla2xxx_close_session()
473 spin_unlock_irqrestore(&vha->hw->hardware_lock, flags); in tcm_qla2xxx_close_session()
550 static int tcm_qla2xxx_handle_cmd(scsi_qla_host_t *vha, struct qla_tgt_cmd *cmd, in tcm_qla2xxx_handle_cmd() argument
816 struct qla_hw_data *ha = sess->vha->hw; in tcm_qla2xxx_put_session()
[all …]
Dqla_gbl.h157 extern int qla83xx_set_drv_presence(scsi_qla_host_t *vha);
158 extern int __qla83xx_set_drv_presence(scsi_qla_host_t *vha);
159 extern int qla83xx_clear_drv_presence(scsi_qla_host_t *vha);
160 extern int __qla83xx_clear_drv_presence(scsi_qla_host_t *vha);
509 extern void qla8044_watchdog(struct scsi_qla_host *vha);
646 extern int qlafx00_loop_reset(scsi_qla_host_t *vha);
743 extern int qla82xx_validate_template_chksum(scsi_qla_host_t *vha);
752 extern int qla8044_rd_direct(struct scsi_qla_host *vha, const uint32_t crb_reg);
753 extern void qla8044_wr_direct(struct scsi_qla_host *vha,
755 extern inline void qla8044_set_qsnt_ready(struct scsi_qla_host *vha);
[all …]
Dqla_dbg.c660 qla2xxx_dump_post_process(scsi_qla_host_t *vha, int rval) in qla2xxx_dump_post_process() argument
662 struct qla_hw_data *ha = vha->hw; in qla2xxx_dump_post_process()
665 ql_log(ql_log_warn, vha, 0xd000, in qla2xxx_dump_post_process()
670 ql_log(ql_log_info, vha, 0xd001, in qla2xxx_dump_post_process()
672 vha->host_no, ha->fw_dump, ha->fw_dump_cap_flags); in qla2xxx_dump_post_process()
674 qla2x00_post_uevent_work(vha, QLA_UEVENT_CODE_FW_DUMP); in qla2xxx_dump_post_process()
684 qla2300_fw_dump(scsi_qla_host_t *vha, int hardware_locked) in qla2300_fw_dump() argument
688 struct qla_hw_data *ha = vha->hw; in qla2300_fw_dump()
702 ql_log(ql_log_warn, vha, 0xd002, in qla2300_fw_dump()
708 ql_log(ql_log_warn, vha, 0xd003, in qla2300_fw_dump()
[all …]
Dqla_target.h829 struct scsi_qla_host *vha; member
885 struct scsi_qla_host *vha; member
918 struct scsi_qla_host *vha; member
964 struct scsi_qla_host *vha; member
Dqla_dbg.h313 ql_dbg(uint32_t, scsi_qla_host_t *vha, int32_t, const char *fmt, ...);
318 ql_log(uint32_t, scsi_qla_host_t *vha, int32_t, const char *fmt, ...);
Dqla_def.h683 #define ISP_ATIO_Q_IN(vha) (vha->hw->tgt.atio_q_in) argument
684 #define ISP_ATIO_Q_OUT(vha) (vha->hw->tgt.atio_q_out) argument
1995 struct scsi_qla_host *vha; member
3634 scsi_qla_host_t *vha; member