/linux-2.6.39/drivers/scsi/qla2xxx/ |
D | qla_mid.c | 20 qla2x00_vp_stop_timer(scsi_qla_host_t *vha) in qla2x00_vp_stop_timer() argument 22 if (vha->vp_idx && vha->timer_active) { in qla2x00_vp_stop_timer() 23 del_timer_sync(&vha->timer); in qla2x00_vp_stop_timer() 24 vha->timer_active = 0; in qla2x00_vp_stop_timer() 29 qla24xx_allocate_vp_id(scsi_qla_host_t *vha) in qla24xx_allocate_vp_id() argument 32 struct qla_hw_data *ha = vha->hw; in qla24xx_allocate_vp_id() 47 vha->vp_idx = vp_id; in qla24xx_allocate_vp_id() 50 list_add_tail(&vha->list, &ha->vp_list); in qla24xx_allocate_vp_id() 58 qla24xx_deallocate_vp_id(scsi_qla_host_t *vha) in qla24xx_deallocate_vp_id() argument 61 struct qla_hw_data *ha = vha->hw; in qla24xx_deallocate_vp_id() [all …]
|
D | qla_attr.c | 23 struct scsi_qla_host *vha = shost_priv(dev_to_shost(container_of(kobj, in qla2x00_sysfs_read_fw_dump() local 25 struct qla_hw_data *ha = vha->hw; in qla2x00_sysfs_read_fw_dump() 39 struct scsi_qla_host *vha = shost_priv(dev_to_shost(container_of(kobj, in qla2x00_sysfs_write_fw_dump() local 41 struct qla_hw_data *ha = vha->hw; in qla2x00_sysfs_write_fw_dump() 60 "Firmware dump cleared on (%ld).\n", vha->host_no); in qla2x00_sysfs_write_fw_dump() 71 vha->host_no); in qla2x00_sysfs_write_fw_dump() 75 qla2x00_alloc_fw_dump(vha); in qla2x00_sysfs_write_fw_dump() 78 qla2x00_system_error(vha); in qla2x00_sysfs_write_fw_dump() 99 struct scsi_qla_host *vha = shost_priv(dev_to_shost(container_of(kobj, in qla2x00_sysfs_read_nvram() local 101 struct qla_hw_data *ha = vha->hw; in qla2x00_sysfs_read_nvram() [all …]
|
D | qla_init.c | 53 struct qla_hw_data *ha = fcport->vha->hw; in qla2x00_ctx_sp_timeout() 72 struct scsi_qla_host *vha = sp->fcport->vha; in qla2x00_ctx_sp_free() local 77 mempool_free(sp, sp->fcport->vha->hw->srb_mempool); in qla2x00_ctx_sp_free() 79 QLA_VHA_MARK_NOT_BUSY(vha); in qla2x00_ctx_sp_free() 83 qla2x00_get_ctx_sp(scsi_qla_host_t *vha, fc_port_t *fcport, size_t size, in qla2x00_get_ctx_sp() argument 87 struct qla_hw_data *ha = vha->hw; in qla2x00_get_ctx_sp() 92 QLA_VHA_MARK_BUSY(vha, bail); in qla2x00_get_ctx_sp() 128 QLA_VHA_MARK_NOT_BUSY(vha); in qla2x00_get_ctx_sp() 135 qla2x00_get_async_timeout(struct scsi_qla_host *vha) in qla2x00_get_async_timeout() argument 138 struct qla_hw_data *ha = vha->hw; in qla2x00_get_async_timeout() [all …]
|
D | qla_mbx.c | 33 qla2x00_mailbox_command(scsi_qla_host_t *vha, mbx_cmd_t *mcp) in qla2x00_mailbox_command() argument 46 struct qla_hw_data *ha = vha->hw; in qla2x00_mailbox_command() 52 if (vha->device_flags & DFLG_DEV_FAILED) { in qla2x00_mailbox_command() 70 "Exiting.\n", __func__, vha->host_no)); in qla2x00_mailbox_command() 301 if (!test_bit(ISP_ABORT_NEEDED, &vha->dpc_flags) && in qla2x00_mailbox_command() 302 !test_bit(ABORT_ISP_ACTIVE, &vha->dpc_flags) && in qla2x00_mailbox_command() 303 !test_bit(ISP_ABORT_RETRY, &vha->dpc_flags)) { in qla2x00_mailbox_command() 309 set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags); in qla2x00_mailbox_command() 310 qla2xxx_wake_dpc(vha); in qla2x00_mailbox_command() 319 if (!test_bit(ISP_ABORT_NEEDED, &vha->dpc_flags) && in qla2x00_mailbox_command() [all …]
|
D | qla_gs.c | 25 qla2x00_prep_ms_iocb(scsi_qla_host_t *vha, uint32_t req_size, uint32_t rsp_size) in qla2x00_prep_ms_iocb() argument 27 struct qla_hw_data *ha = vha->hw; in qla2x00_prep_ms_iocb() 63 qla24xx_prep_ms_iocb(scsi_qla_host_t *vha, uint32_t req_size, uint32_t rsp_size) in qla24xx_prep_ms_iocb() argument 65 struct qla_hw_data *ha = vha->hw; in qla24xx_prep_ms_iocb() 87 ct_pkt->vp_index = vha->vp_idx; in qla24xx_prep_ms_iocb() 115 qla2x00_chk_ms_status(scsi_qla_host_t *vha, ms_iocb_entry_t *ms_pkt, in qla2x00_chk_ms_status() argument 120 struct qla_hw_data *ha = vha->hw; in qla2x00_chk_ms_status() 126 vha->host_no, routine, ms_pkt->entry_status, in qla2x00_chk_ms_status() 127 vha->d_id.b.domain, vha->d_id.b.area, in qla2x00_chk_ms_status() 128 vha->d_id.b.al_pa)); in qla2x00_chk_ms_status() [all …]
|
D | qla_isr.c | 35 scsi_qla_host_t *vha; in qla2100_intr_handler() local 57 vha = pci_get_drvdata(ha->pdev); in qla2100_intr_handler() 72 ha->isp_ops->fw_dump(vha, 1); in qla2100_intr_handler() 73 set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags); in qla2100_intr_handler() 85 qla2x00_mbx_completion(vha, mb[0]); in qla2100_intr_handler() 91 qla2x00_async_event(vha, rsp, mb); in qla2100_intr_handler() 96 vha->host_no, mb[0])); in qla2100_intr_handler() 131 scsi_qla_host_t *vha; in qla2300_intr_handler() local 154 vha = pci_get_drvdata(ha->pdev); in qla2300_intr_handler() 177 ha->isp_ops->fw_dump(vha, 1); in qla2300_intr_handler() [all …]
|
D | qla_bsg.c | 15 qla2x00_get_ctx_bsg_sp(scsi_qla_host_t *vha, fc_port_t *fcport, size_t size) in qla2x00_get_ctx_bsg_sp() argument 18 struct qla_hw_data *ha = vha->hw; in qla2x00_get_ctx_bsg_sp() 98 scsi_qla_host_t *vha = shost_priv(host); in qla24xx_proc_fcp_prio_cfg_cmd() local 99 struct qla_hw_data *ha = vha->hw; in qla24xx_proc_fcp_prio_cfg_cmd() 111 if (test_bit(ISP_ABORT_NEEDED, &vha->dpc_flags) || in qla24xx_proc_fcp_prio_cfg_cmd() 112 test_bit(ABORT_ISP_ACTIVE, &vha->dpc_flags) || in qla24xx_proc_fcp_prio_cfg_cmd() 113 test_bit(ISP_ABORT_RETRY, &vha->dpc_flags)) { in qla24xx_proc_fcp_prio_cfg_cmd() 132 qla24xx_update_all_fcp_prio(vha); in qla24xx_proc_fcp_prio_cfg_cmd() 147 qla24xx_update_all_fcp_prio(vha); in qla24xx_proc_fcp_prio_cfg_cmd() 217 qla24xx_update_all_fcp_prio(vha); in qla24xx_proc_fcp_prio_cfg_cmd() [all …]
|
D | qla_os.c | 222 qla2x00_start_timer(scsi_qla_host_t *vha, void *func, unsigned long interval) in qla2x00_start_timer() argument 224 init_timer(&vha->timer); in qla2x00_start_timer() 225 vha->timer.expires = jiffies + interval * HZ; in qla2x00_start_timer() 226 vha->timer.data = (unsigned long)vha; in qla2x00_start_timer() 227 vha->timer.function = (void (*)(unsigned long))func; in qla2x00_start_timer() 228 add_timer(&vha->timer); in qla2x00_start_timer() 229 vha->timer_active = 1; in qla2x00_start_timer() 233 qla2x00_restart_timer(scsi_qla_host_t *vha, unsigned long interval) in qla2x00_restart_timer() argument 236 if (vha->device_flags & DFLG_DEV_FAILED) in qla2x00_restart_timer() 239 mod_timer(&vha->timer, jiffies + interval * HZ); in qla2x00_restart_timer() [all …]
|
D | qla_nx.c | 1067 qla82xx_pinit_from_rom(scsi_qla_host_t *vha) in qla82xx_pinit_from_rom() argument 1074 struct qla_hw_data *ha = vha->hw; in qla82xx_pinit_from_rom() 1114 if (test_bit(ABORT_ISP_ACTIVE, &vha->dpc_flags)) in qla82xx_pinit_from_rom() 1573 qla82xx_pci_info_str(struct scsi_qla_host *vha, char *str) in qla82xx_pci_info_str() argument 1576 struct qla_hw_data *ha = vha->hw; in qla82xx_pci_info_str() 1686 qla82xx_pci_config(scsi_qla_host_t *vha) in qla82xx_pci_config() argument 1688 struct qla_hw_data *ha = vha->hw; in qla82xx_pci_config() 1704 qla82xx_reset_chip(scsi_qla_host_t *vha) in qla82xx_reset_chip() argument 1706 struct qla_hw_data *ha = vha->hw; in qla82xx_reset_chip() 1710 void qla82xx_config_rings(struct scsi_qla_host *vha) in qla82xx_config_rings() argument [all …]
|
D | qla_dfs.c | 18 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() 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() 113 qla2x00_dfs_setup(scsi_qla_host_t *vha) in qla2x00_dfs_setup() argument [all …]
|
D | qla_sup.c | 479 qla24xx_read_flash_data(scsi_qla_host_t *vha, uint32_t *dwptr, uint32_t faddr, in qla24xx_read_flash_data() argument 483 struct qla_hw_data *ha = vha->hw; in qla24xx_read_flash_data() 541 qla2xxx_find_flt_start(scsi_qla_host_t *vha, uint32_t *start) in qla2xxx_find_flt_start() argument 549 struct qla_hw_data *ha = vha->hw; in qla2xxx_find_flt_start() 576 qla24xx_read_flash_data(vha, dcode, pcihdr >> 2, 0x20); in qla2xxx_find_flt_start() 583 qla24xx_read_flash_data(vha, dcode, pcids >> 2, 0x20); in qla2xxx_find_flt_start() 599 qla24xx_read_flash_data(vha, dcode, pcihdr >> 2, in qla2xxx_find_flt_start() 626 qla2xxx_get_flt_info(scsi_qla_host_t *vha, uint32_t flt_addr) in qla2xxx_get_flt_info() argument 664 struct qla_hw_data *ha = vha->hw; in qla2xxx_get_flt_info() 683 ha->isp_ops->read_optrom(vha, (uint8_t *)req->ring, in qla2xxx_get_flt_info() [all …]
|
D | qla_iocb.c | 33 sp->fcport->vha->hw->qla_stats.output_bytes += in qla2x00_get_cmd_direction() 37 sp->fcport->vha->hw->qla_stats.input_bytes += 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) in qla2x00_prep_cont_type1_iocb() argument 127 struct req_que *req = vha->req; in qla2x00_prep_cont_type1_iocb() 201 scsi_qla_host_t *vha; in qla2x00_build_scsi_iocbs_32() local 218 vha = sp->fcport->vha; in qla2x00_build_scsi_iocbs_32() 235 cont_pkt = qla2x00_prep_cont_type0_iocb(vha); in qla2x00_build_scsi_iocbs_32() 259 scsi_qla_host_t *vha; in qla2x00_build_scsi_iocbs_64() local [all …]
|
D | qla_inline.h | 61 qla2x00_is_reserved_id(scsi_qla_host_t *vha, uint16_t loop_id) in qla2x00_is_reserved_id() argument 63 struct qla_hw_data *ha = vha->hw; in qla2x00_is_reserved_id()
|
D | qla_dbg.c | 381 qla2xxx_dump_post_process(scsi_qla_host_t *vha, int rval) in qla2xxx_dump_post_process() argument 383 struct qla_hw_data *ha = vha->hw; in qla2xxx_dump_post_process() 392 vha->host_no, ha->fw_dump); in qla2xxx_dump_post_process() 394 qla2x00_post_uevent_work(vha, QLA_UEVENT_CODE_FW_DUMP); in qla2xxx_dump_post_process() 404 qla2300_fw_dump(scsi_qla_host_t *vha, int hardware_locked) in qla2300_fw_dump() argument 408 struct qla_hw_data *ha = vha->hw; in qla2300_fw_dump() 564 qla2100_fw_dump(scsi_qla_host_t *vha, int hardware_locked) in qla2100_fw_dump() argument 570 struct qla_hw_data *ha = vha->hw; in qla2100_fw_dump() 756 qla24xx_fw_dump(scsi_qla_host_t *vha, int hardware_locked) in qla24xx_fw_dump() argument 761 struct qla_hw_data *ha = vha->hw; in qla24xx_fw_dump() [all …]
|
D | qla_def.h | 1685 struct scsi_qla_host *vha; member
|