/Linux-v4.19/drivers/scsi/qla2xxx/ |
D | qla_nx2.c | 47 qla8044_rd_direct(struct scsi_qla_host *vha, in qla8044_rd_direct() argument 50 struct qla_hw_data *ha = vha->hw; in qla8044_rd_direct() 59 qla8044_wr_direct(struct scsi_qla_host *vha, in qla8044_wr_direct() argument 63 struct qla_hw_data *ha = vha->hw; in qla8044_wr_direct() 70 qla8044_set_win_base(scsi_qla_host_t *vha, uint32_t addr) in qla8044_set_win_base() argument 74 struct qla_hw_data *ha = vha->hw; in qla8044_set_win_base() 80 ql_log(ql_log_warn, vha, 0xb087, in qla8044_set_win_base() 90 qla8044_rd_reg_indirect(scsi_qla_host_t *vha, uint32_t addr, uint32_t *data) in qla8044_rd_reg_indirect() argument 93 struct qla_hw_data *ha = vha->hw; in qla8044_rd_reg_indirect() 95 ret_val = qla8044_set_win_base(vha, addr); in qla8044_rd_reg_indirect() [all …]
|
D | qla_mid.c | 21 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() 56 qlt_update_vp_map(vha, SET_VP_IDX); in qla24xx_allocate_vp_id() [all …]
|
D | qla_attr.c | 24 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 …]
|
D | qla_init.c | 77 qla2x00_get_async_timeout(struct scsi_qla_host *vha) in qla2x00_get_async_timeout() argument 80 struct qla_hw_data *ha = vha->hw; in qla2x00_get_async_timeout() 106 ql_dbg(ql_dbg_disc, fcport->vha, 0x2071, in qla2x00_async_iocb_timeout() 169 struct scsi_qla_host *vha = sp->vha; in qla2x00_async_login_sp_done() local 173 ql_dbg(ql_dbg_disc, vha, 0x20dd, in qla2x00_async_login_sp_done() 178 if (!test_bit(UNLOADING, &vha->dpc_flags)) { in qla2x00_async_login_sp_done() 187 qla2x00_fcport_event_handler(vha, &ea); in qla2x00_async_login_sp_done() 197 wwn_to_u64(fcport->vha->port_name)) in fcport_is_smaller() 210 qla2x00_async_login(struct scsi_qla_host *vha, fc_port_t *fcport, in qla2x00_async_login() argument 217 if (!vha->flags.online) in qla2x00_async_login() [all …]
|
D | qla_target.c | 127 static void qlt_alloc_qfull_cmd(struct scsi_qla_host *vha, 129 static void qlt_disable_vha(struct scsi_qla_host *vha); 135 static void qlt_send_term_imm_notif(struct scsi_qla_host *vha, 137 static struct fc_port *qlt_create_sess(struct scsi_qla_host *vha, 171 void qlt_do_generation_tick(struct scsi_qla_host *vha, int *dest) in qlt_do_generation_tick() argument 173 scsi_qla_host_t *base_vha = pci_get_drvdata(vha->hw->pdev); in qlt_do_generation_tick() 180 static inline int qlt_issue_marker(struct scsi_qla_host *vha, int vha_locked) in qlt_issue_marker() argument 183 if (unlikely(vha->marker_needed != 0)) { in qlt_issue_marker() 184 int rc = qla2x00_issue_marker(vha, vha_locked); in qlt_issue_marker() 186 ql_dbg(ql_dbg_tgt, vha, 0xe03d, in qlt_issue_marker() [all …]
|
D | qla_tmpl.c | 103 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 …]
|
D | qla_isr.c | 38 scsi_qla_host_t *vha; in qla2100_intr_handler() local 60 vha = pci_get_drvdata(ha->pdev); in qla2100_intr_handler() 63 if (qla2x00_check_reg16_for_disconnect(vha, hccr)) in qla2100_intr_handler() 77 ha->isp_ops->fw_dump(vha, 1); in qla2100_intr_handler() 78 set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags); in qla2100_intr_handler() 90 qla2x00_mbx_completion(vha, mb[0]); in qla2100_intr_handler() 96 qla2x00_async_event(vha, rsp, mb); in qla2100_intr_handler() 99 ql_dbg(ql_dbg_async, vha, 0x5025, in qla2100_intr_handler() 120 qla2x00_check_reg32_for_disconnect(scsi_qla_host_t *vha, uint32_t reg) in qla2x00_check_reg32_for_disconnect() argument 123 if (reg == 0xffffffff && !pci_channel_offline(vha->hw->pdev)) { in qla2x00_check_reg32_for_disconnect() [all …]
|
D | qla_mr.c | 40 qlafx00_mailbox_command(scsi_qla_host_t *vha, struct mbx_cmd_32 *mcp) in qlafx00_mailbox_command() argument 54 struct qla_hw_data *ha = vha->hw; in qlafx00_mailbox_command() 58 ql_log(ql_log_warn, vha, 0x115c, in qlafx00_mailbox_command() 64 if (vha->device_flags & DFLG_DEV_FAILED) { in qlafx00_mailbox_command() 65 ql_log(ql_log_warn, vha, 0x115f, in qlafx00_mailbox_command() 77 ql_log(ql_log_warn, vha, 0x1175, in qlafx00_mailbox_command() 85 ql_log(ql_log_warn, vha, 0x1176, in qlafx00_mailbox_command() 98 ql_log(ql_log_warn, vha, 0x1177, in qlafx00_mailbox_command() 108 ql_dbg(ql_dbg_mbx, vha, 0x1178, in qlafx00_mailbox_command() 133 ql_dump_buffer(ql_dbg_mbx + ql_dbg_buffer, vha, 0x1172, in qlafx00_mailbox_command() [all …]
|
D | qla_mbx.c | 99 qla2x00_mailbox_command(scsi_qla_host_t *vha, mbx_cmd_t *mcp) in qla2x00_mailbox_command() argument 112 struct qla_hw_data *ha = vha->hw; in qla2x00_mailbox_command() 117 ql_dbg(ql_dbg_mbx, vha, 0x1000, "Entered %s.\n", __func__); in qla2x00_mailbox_command() 120 ql_log(ql_log_warn, vha, 0x1001, in qla2x00_mailbox_command() 126 if (vha->device_flags & DFLG_DEV_FAILED) { in qla2x00_mailbox_command() 127 ql_log(ql_log_warn, vha, 0x1002, in qla2x00_mailbox_command() 135 ql_log(ql_log_warn, vha, 0xd04e, in qla2x00_mailbox_command() 148 ql_log(ql_log_warn, vha, 0x1003, in qla2x00_mailbox_command() 156 ql_log(ql_log_warn, vha, 0x1004, in qla2x00_mailbox_command() 166 ql_log(ql_log_info, vha, 0x1005, in qla2x00_mailbox_command() [all …]
|
D | qla_gs.c | 30 qla2x00_prep_ms_iocb(scsi_qla_host_t *vha, struct ct_arg *arg) in qla2x00_prep_ms_iocb() argument 32 struct qla_hw_data *ha = vha->hw; in qla2x00_prep_ms_iocb() 56 vha->qla_stats.control_requests++; in qla2x00_prep_ms_iocb() 69 qla24xx_prep_ms_iocb(scsi_qla_host_t *vha, struct ct_arg *arg) in qla24xx_prep_ms_iocb() argument 71 struct qla_hw_data *ha = vha->hw; in qla24xx_prep_ms_iocb() 93 ct_pkt->vp_index = vha->vp_idx; in qla24xx_prep_ms_iocb() 95 vha->qla_stats.control_requests++; in qla24xx_prep_ms_iocb() 123 qla2x00_chk_ms_status(scsi_qla_host_t *vha, ms_iocb_entry_t *ms_pkt, in qla2x00_chk_ms_status() argument 128 struct qla_hw_data *ha = vha->hw; in qla2x00_chk_ms_status() 133 ql_dbg(ql_dbg_disc, vha, 0x2031, in qla2x00_chk_ms_status() [all …]
|
D | qla_nx.c | 364 scsi_qla_host_t *vha = pci_get_drvdata(ha->pdev); in qla82xx_pci_set_crbwindow_2M() local 374 ql_dbg(ql_dbg_p3p, vha, 0xb000, in qla82xx_pci_set_crbwindow_2M() 385 scsi_qla_host_t *vha = pci_get_drvdata(ha->pdev); in qla82xx_pci_set_crbwindow() local 416 ql_dbg(ql_dbg_p3p, vha, 0xb001, in qla82xx_pci_set_crbwindow() 591 scsi_qla_host_t *vha = pci_get_drvdata(ha->pdev); in qla82xx_pci_set_window() local 603 ql_dbg(ql_dbg_p3p, vha, 0xb003, in qla82xx_pci_set_window() 612 ql_log(ql_log_warn, vha, 0xb004, in qla82xx_pci_set_window() 625 ql_log(ql_log_warn, vha, 0xb005, in qla82xx_pci_set_window() 641 ql_log(ql_log_warn, vha, 0xb006, in qla82xx_pci_set_window() 653 ql_log(ql_log_warn, vha, 0xb007, in qla82xx_pci_set_window() [all …]
|
D | qla_dfs.c | 18 scsi_qla_host_t *vha = s->private; in qla2x00_dfs_tgt_sess_show() local 19 struct qla_hw_data *ha = vha->hw; in qla2x00_dfs_tgt_sess_show() 22 struct qla_tgt *tgt = vha->vha_tgt.qla_tgt; in qla2x00_dfs_tgt_sess_show() 24 seq_printf(s, "%s\n", vha->host_str); in qla2x00_dfs_tgt_sess_show() 29 list_for_each_entry(sess, &vha->vp_fcports, list) in qla2x00_dfs_tgt_sess_show() 43 scsi_qla_host_t *vha = inode->i_private; in qla2x00_dfs_tgt_sess_open() local 44 return single_open(file, qla2x00_dfs_tgt_sess_show, vha); in qla2x00_dfs_tgt_sess_open() 57 scsi_qla_host_t *vha = s->private; in qla2x00_dfs_tgt_port_database_show() local 58 struct qla_hw_data *ha = vha->hw; in qla2x00_dfs_tgt_port_database_show() 65 struct qla_tgt *tgt = vha->vha_tgt.qla_tgt; in qla2x00_dfs_tgt_port_database_show() [all …]
|
D | qla_bsg.c | 32 struct qla_hw_data *ha = sp->vha->hw; in qla2x00_bsg_sp_free() 66 qla24xx_fcp_prio_cfg_valid(scsi_qla_host_t *vha, in qla24xx_fcp_prio_cfg_valid() argument 82 ql_dbg(ql_dbg_user, vha, 0x7051, in qla24xx_fcp_prio_cfg_valid() 90 ql_dbg(ql_dbg_user, vha, 0x7052, in qla24xx_fcp_prio_cfg_valid() 107 ql_dbg(ql_dbg_user, vha, 0x7053, in qla24xx_fcp_prio_cfg_valid() 112 ql_dbg(ql_dbg_user, vha, 0x7054, in qla24xx_fcp_prio_cfg_valid() 126 scsi_qla_host_t *vha = shost_priv(host); in qla24xx_proc_fcp_prio_cfg_cmd() local 127 struct qla_hw_data *ha = vha->hw; in qla24xx_proc_fcp_prio_cfg_cmd() 151 qla24xx_update_all_fcp_prio(vha); in qla24xx_proc_fcp_prio_cfg_cmd() 166 qla24xx_update_all_fcp_prio(vha); in qla24xx_proc_fcp_prio_cfg_cmd() [all …]
|
D | qla_nvme.c | 17 int qla_nvme_register_remote(struct scsi_qla_host *vha, struct fc_port *fcport) in qla_nvme_register_remote() argument 26 if (!vha->flags.nvme_enabled) { in qla_nvme_register_remote() 27 ql_log(ql_log_info, vha, 0x2100, in qla_nvme_register_remote() 33 if (!vha->nvme_local_port && qla_nvme_register_hba(vha)) in qla_nvme_register_remote() 61 ql_log(ql_log_info, vha, 0x2102, in qla_nvme_register_remote() 66 ret = nvme_fc_register_remoteport(vha->nvme_local_port, &req, in qla_nvme_register_remote() 69 ql_log(ql_log_warn, vha, 0x212e, in qla_nvme_register_remote() 77 list_add_tail(&rport->list, &vha->nvme_rport_list); in qla_nvme_register_remote() 87 struct scsi_qla_host *vha; in qla_nvme_alloc_queue() local 94 vha = (struct scsi_qla_host *)lport->private; in qla_nvme_alloc_queue() [all …]
|
D | qla_os.c | 348 qla2x00_start_timer(scsi_qla_host_t *vha, unsigned long interval) in qla2x00_start_timer() argument 350 timer_setup(&vha->timer, qla2x00_timer, 0); in qla2x00_start_timer() 351 vha->timer.expires = jiffies + interval * HZ; in qla2x00_start_timer() 352 add_timer(&vha->timer); in qla2x00_start_timer() 353 vha->timer_active = 1; in qla2x00_start_timer() 357 qla2x00_restart_timer(scsi_qla_host_t *vha, unsigned long interval) in qla2x00_restart_timer() argument 360 if (vha->device_flags & DFLG_DEV_FAILED) { in qla2x00_restart_timer() 361 ql_dbg(ql_dbg_timer, vha, 0x600d, in qla2x00_restart_timer() 366 mod_timer(&vha->timer, jiffies + interval * HZ); in qla2x00_restart_timer() 370 qla2x00_stop_timer(scsi_qla_host_t *vha) in qla2x00_stop_timer() argument [all …]
|
D | qla_sup.c | 192 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 …]
|
D | qla_inline.h | 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() [all …]
|
D | qla_iocb.c | 26 struct scsi_qla_host *vha = sp->vha; in qla2x00_get_cmd_direction() local 33 vha->qla_stats.output_bytes += scsi_bufflen(cmd); in qla2x00_get_cmd_direction() 34 vha->qla_stats.output_requests++; in qla2x00_get_cmd_direction() 37 vha->qla_stats.input_bytes += scsi_bufflen(cmd); in qla2x00_get_cmd_direction() 38 vha->qla_stats.input_requests++; in qla2x00_get_cmd_direction() 94 qla2x00_prep_cont_type0_iocb(struct scsi_qla_host *vha) in qla2x00_prep_cont_type0_iocb() argument 97 struct req_que *req = vha->req; in qla2x00_prep_cont_type0_iocb() 123 qla2x00_prep_cont_type1_iocb(scsi_qla_host_t *vha, struct req_que *req) in qla2x00_prep_cont_type1_iocb() argument 139 *((uint32_t *)(&cont_pkt->entry_type)) = IS_QLAFX00(vha->hw) ? in qla2x00_prep_cont_type1_iocb() 197 scsi_qla_host_t *vha; in qla2x00_build_scsi_iocbs_32() local [all …]
|
D | tcm_qla2xxx.c | 353 assert_spin_locked(&sess->vha->hw->tgt.sess_lock); in tcm_qla2xxx_put_sess() 360 struct scsi_qla_host *vha; in tcm_qla2xxx_close_session() local 364 vha = sess->vha; in tcm_qla2xxx_close_session() 366 spin_lock_irqsave(&vha->hw->tgt.sess_lock, flags); in tcm_qla2xxx_close_session() 369 spin_unlock_irqrestore(&vha->hw->tgt.sess_lock, flags); in tcm_qla2xxx_close_session() 453 static int tcm_qla2xxx_handle_cmd(scsi_qla_host_t *vha, struct qla_tgt_cmd *cmd, in tcm_qla2xxx_handle_cmd() argument 594 pr_debug("%ld: ABTS received\n", sess->vha->host_no); in tcm_qla2xxx_handle_tmr() 599 pr_debug("%ld: 2G Abort Task received\n", sess->vha->host_no); in tcm_qla2xxx_handle_tmr() 603 pr_debug("%ld: CLEAR_ACA received\n", sess->vha->host_no); in tcm_qla2xxx_handle_tmr() 607 pr_debug("%ld: TARGET_RESET received\n", sess->vha->host_no); in tcm_qla2xxx_handle_tmr() [all …]
|
D | qla_gbl.h | 81 int qla2x00_post_work(struct scsi_qla_host *vha, struct qla_work_evt *e); 110 int qla24xx_detect_sfp(scsi_qla_host_t *vha); 118 int qla_post_iidma_work(struct scsi_qla_host *vha, fc_port_t *fcport); 119 void qla_do_iidma_work(struct scsi_qla_host *vha, fc_port_t *fcport); 200 extern int qla83xx_set_drv_presence(scsi_qla_host_t *vha); 201 extern int __qla83xx_set_drv_presence(scsi_qla_host_t *vha); 202 extern int qla83xx_clear_drv_presence(scsi_qla_host_t *vha); 203 extern int __qla83xx_clear_drv_presence(scsi_qla_host_t *vha); 216 int qla24xx_post_relogin_work(struct scsi_qla_host *vha); 586 extern void qla8044_watchdog(struct scsi_qla_host *vha); [all …]
|
D | qla_dbg.c | 700 qla2xxx_dump_post_process(scsi_qla_host_t *vha, int rval) in qla2xxx_dump_post_process() argument 702 struct qla_hw_data *ha = vha->hw; in qla2xxx_dump_post_process() 705 ql_log(ql_log_warn, vha, 0xd000, in qla2xxx_dump_post_process() 710 ql_log(ql_log_info, vha, 0xd001, in qla2xxx_dump_post_process() 712 vha->host_no, ha->fw_dump, ha->fw_dump_cap_flags); in qla2xxx_dump_post_process() 714 qla2x00_post_uevent_work(vha, QLA_UEVENT_CODE_FW_DUMP); in qla2xxx_dump_post_process() 724 qla2300_fw_dump(scsi_qla_host_t *vha, int hardware_locked) in qla2300_fw_dump() argument 728 struct qla_hw_data *ha = vha->hw; in qla2300_fw_dump() 744 ql_log(ql_log_warn, vha, 0xd002, in qla2300_fw_dump() 750 ql_log(ql_log_warn, vha, 0xd003, in qla2300_fw_dump() [all …]
|
D | qla_dbg.h | 324 ql_dbg(uint32_t, scsi_qla_host_t *vha, int32_t, const char *fmt, ...); 332 ql_log(uint32_t, scsi_qla_host_t *vha, int32_t, const char *fmt, ...);
|
D | qla_target.h | 799 struct scsi_qla_host *vha; member 842 struct scsi_qla_host *vha; member 914 struct scsi_qla_host *vha; member 963 struct scsi_qla_host *vha; member
|
D | qla_def.h | 534 struct scsi_qla_host *vha; member 835 #define ISP_ATIO_Q_IN(vha) (vha->hw->tgt.atio_q_in) argument 836 #define ISP_ATIO_Q_OUT(vha) (vha->hw->tgt.atio_q_out) argument 2334 struct scsi_qla_host *vha; member 3347 struct scsi_qla_host *vha; member 3452 struct scsi_qla_host *vha; member 4401 scsi_qla_host_t *vha; member
|