Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
ql4_glbl.h File Reference

Go to the source code of this file.

Functions

int qla4xxx_hw_reset (struct scsi_qla_host *ha)
 
int ql4xxx_lock_drvr_wait (struct scsi_qla_host *a)
 
int qla4xxx_send_command_to_isp (struct scsi_qla_host *ha, struct srb *srb)
 
int qla4xxx_initialize_adapter (struct scsi_qla_host *ha, int is_reset)
 
int qla4xxx_soft_reset (struct scsi_qla_host *ha)
 
irqreturn_t qla4xxx_intr_handler (int irq, void *dev_id)
 
void qla4xxx_free_ddb (struct scsi_qla_host *ha, struct ddb_entry *ddb_entry)
 
void qla4xxx_process_aen (struct scsi_qla_host *ha, uint8_t process_aen)
 
int qla4xxx_get_dhcp_ip_address (struct scsi_qla_host *ha)
 
int qla4xxx_abort_task (struct scsi_qla_host *ha, struct srb *srb)
 
int qla4xxx_reset_lun (struct scsi_qla_host *ha, struct ddb_entry *ddb_entry, int lun)
 
int qla4xxx_reset_target (struct scsi_qla_host *ha, struct ddb_entry *ddb_entry)
 
int qla4xxx_get_flash (struct scsi_qla_host *ha, dma_addr_t dma_addr, uint32_t offset, uint32_t len)
 
int qla4xxx_get_firmware_status (struct scsi_qla_host *ha)
 
int qla4xxx_get_firmware_state (struct scsi_qla_host *ha)
 
int qla4xxx_initialize_fw_cb (struct scsi_qla_host *ha)
 
int qla4xxx_get_fwddb_entry (struct scsi_qla_host *ha, uint16_t fw_ddb_index, struct dev_db_entry *fw_ddb_entry, dma_addr_t fw_ddb_entry_dma, uint32_t *num_valid_ddb_entries, uint32_t *next_ddb_index, uint32_t *fw_ddb_device_state, uint32_t *conn_err_detail, uint16_t *tcp_source_port_num, uint16_t *connection_id)
 
int qla4xxx_set_ddb_entry (struct scsi_qla_host *ha, uint16_t fw_ddb_index, dma_addr_t fw_ddb_entry_dma, uint32_t *mbx_sts)
 
uint8_t qla4xxx_get_ifcb (struct scsi_qla_host *ha, uint32_t *mbox_cmd, uint32_t *mbox_sts, dma_addr_t init_fw_cb_dma)
 
int qla4xxx_conn_close_sess_logout (struct scsi_qla_host *ha, uint16_t fw_ddb_index, uint16_t connection_id, uint16_t option)
 
int qla4xxx_disable_acb (struct scsi_qla_host *ha)
 
int qla4xxx_set_acb (struct scsi_qla_host *ha, uint32_t *mbox_cmd, uint32_t *mbox_sts, dma_addr_t acb_dma)
 
int qla4xxx_get_acb (struct scsi_qla_host *ha, dma_addr_t acb_dma, uint32_t acb_type, uint32_t len)
 
int qla4xxx_get_ip_state (struct scsi_qla_host *ha, uint32_t acb_idx, uint32_t ip_idx, uint32_t *sts)
 
void qla4xxx_mark_device_missing (struct iscsi_cls_session *cls_session)
 
u16 rd_nvram_word (struct scsi_qla_host *ha, int offset)
 
u8 rd_nvram_byte (struct scsi_qla_host *ha, int offset)
 
void qla4xxx_get_crash_record (struct scsi_qla_host *ha)
 
int qla4xxx_is_nvram_configuration_valid (struct scsi_qla_host *ha)
 
int qla4xxx_about_firmware (struct scsi_qla_host *ha)
 
void qla4xxx_interrupt_service_routine (struct scsi_qla_host *ha, uint32_t intr_status)
 
int qla4xxx_init_rings (struct scsi_qla_host *ha)
 
void qla4xxx_srb_compl (struct kref *ref)
 
struct srbqla4xxx_del_from_active_array (struct scsi_qla_host *ha, uint32_t index)
 
int qla4xxx_process_ddb_changed (struct scsi_qla_host *ha, uint32_t fw_ddb_index, uint32_t state, uint32_t conn_error)
 
void qla4xxx_dump_buffer (void *b, uint32_t size)
 
int qla4xxx_send_marker_iocb (struct scsi_qla_host *ha, struct ddb_entry *ddb_entry, int lun, uint16_t mrkr_mod)
 
int qla4xxx_set_flash (struct scsi_qla_host *ha, dma_addr_t dma_addr, uint32_t offset, uint32_t length, uint32_t options)
 
int qla4xxx_mailbox_command (struct scsi_qla_host *ha, uint8_t inCount, uint8_t outCount, uint32_t *mbx_cmd, uint32_t *mbx_sts)
 
int qla4xxx_get_chap_index (struct scsi_qla_host *ha, char *username, char *password, int bidi, uint16_t *chap_index)
 
void qla4xxx_queue_iocb (struct scsi_qla_host *ha)
 
void qla4xxx_complete_iocb (struct scsi_qla_host *ha)
 
int qla4xxx_get_sys_info (struct scsi_qla_host *ha)
 
int qla4xxx_iospace_config (struct scsi_qla_host *ha)
 
void qla4xxx_pci_config (struct scsi_qla_host *ha)
 
int qla4xxx_start_firmware (struct scsi_qla_host *ha)
 
uint16_t qla4xxx_rd_shdw_req_q_out (struct scsi_qla_host *ha)
 
uint16_t qla4xxx_rd_shdw_rsp_q_in (struct scsi_qla_host *ha)
 
int qla4xxx_request_irqs (struct scsi_qla_host *ha)
 
void qla4xxx_free_irqs (struct scsi_qla_host *ha)
 
void qla4xxx_process_response_queue (struct scsi_qla_host *ha)
 
void qla4xxx_wake_dpc (struct scsi_qla_host *ha)
 
void qla4xxx_get_conn_event_log (struct scsi_qla_host *ha)
 
void qla4xxx_mailbox_premature_completion (struct scsi_qla_host *ha)
 
void qla4xxx_dump_registers (struct scsi_qla_host *ha)
 
uint8_t qla4xxx_update_local_ifcb (struct scsi_qla_host *ha, uint32_t *mbox_cmd, uint32_t *mbox_sts, struct addr_ctrl_blk *init_fw_cb, dma_addr_t init_fw_cb_dma)
 
void qla4_8xxx_pci_config (struct scsi_qla_host *)
 
int qla4_8xxx_iospace_config (struct scsi_qla_host *ha)
 
int qla4_8xxx_load_risc (struct scsi_qla_host *)
 
irqreturn_t qla4_82xx_intr_handler (int irq, void *dev_id)
 
void qla4_82xx_queue_iocb (struct scsi_qla_host *ha)
 
void qla4_82xx_complete_iocb (struct scsi_qla_host *ha)
 
int qla4_82xx_crb_win_lock (struct scsi_qla_host *)
 
void qla4_82xx_crb_win_unlock (struct scsi_qla_host *)
 
int qla4_82xx_pci_get_crb_addr_2M (struct scsi_qla_host *, ulong *)
 
void qla4_82xx_wr_32 (struct scsi_qla_host *, ulong, u32)
 
uint32_t qla4_82xx_rd_32 (struct scsi_qla_host *, ulong)
 
int qla4_82xx_pci_mem_read_2M (struct scsi_qla_host *, u64, void *, int)
 
int qla4_82xx_pci_mem_write_2M (struct scsi_qla_host *ha, u64, void *, int)
 
int qla4_82xx_isp_reset (struct scsi_qla_host *ha)
 
void qla4_82xx_interrupt_service_routine (struct scsi_qla_host *ha, uint32_t intr_status)
 
uint16_t qla4_82xx_rd_shdw_req_q_out (struct scsi_qla_host *ha)
 
uint16_t qla4_82xx_rd_shdw_rsp_q_in (struct scsi_qla_host *ha)
 
int qla4_8xxx_get_sys_info (struct scsi_qla_host *ha)
 
void qla4_8xxx_watchdog (struct scsi_qla_host *ha)
 
int qla4_8xxx_stop_firmware (struct scsi_qla_host *ha)
 
int qla4_8xxx_get_flash_info (struct scsi_qla_host *ha)
 
void qla4_82xx_enable_intrs (struct scsi_qla_host *ha)
 
void qla4_82xx_disable_intrs (struct scsi_qla_host *ha)
 
int qla4_8xxx_enable_msix (struct scsi_qla_host *ha)
 
void qla4_8xxx_disable_msix (struct scsi_qla_host *ha)
 
irqreturn_t qla4_8xxx_msi_handler (int irq, void *dev_id)
 
irqreturn_t qla4_8xxx_default_intr_handler (int irq, void *dev_id)
 
irqreturn_t qla4_8xxx_msix_rsp_q (int irq, void *dev_id)
 
void qla4xxx_mark_all_devices_missing (struct scsi_qla_host *ha)
 
void qla4xxx_dead_adapter_cleanup (struct scsi_qla_host *ha)
 
int qla4_82xx_idc_lock (struct scsi_qla_host *ha)
 
void qla4_82xx_idc_unlock (struct scsi_qla_host *ha)
 
int qla4_8xxx_device_state_handler (struct scsi_qla_host *ha)
 
void qla4_8xxx_need_qsnt_handler (struct scsi_qla_host *ha)
 
void qla4_8xxx_clear_drv_active (struct scsi_qla_host *ha)
 
void qla4_8xxx_set_drv_active (struct scsi_qla_host *ha)
 
int qla4xxx_conn_open (struct scsi_qla_host *ha, uint16_t fw_ddb_index)
 
int qla4xxx_set_param_ddbentry (struct scsi_qla_host *ha, struct ddb_entry *ddb_entry, struct iscsi_cls_conn *cls_conn, uint32_t *mbx_sts)
 
int qla4xxx_session_logout_ddb (struct scsi_qla_host *ha, struct ddb_entry *ddb_entry, int options)
 
int qla4xxx_req_ddb_entry (struct scsi_qla_host *ha, uint32_t fw_ddb_index, uint32_t *mbx_sts)
 
int qla4xxx_clear_ddb_entry (struct scsi_qla_host *ha, uint32_t fw_ddb_index)
 
int qla4xxx_send_passthru0 (struct iscsi_task *task)
 
void qla4xxx_free_ddb_index (struct scsi_qla_host *ha)
 
int qla4xxx_get_mgmt_data (struct scsi_qla_host *ha, uint16_t fw_ddb_index, uint16_t stats_size, dma_addr_t stats_dma)
 
void qla4xxx_update_session_conn_param (struct scsi_qla_host *ha, struct ddb_entry *ddb_entry)
 
void qla4xxx_update_session_conn_fwddb_param (struct scsi_qla_host *ha, struct ddb_entry *ddb_entry)
 
int qla4xxx_bootdb_by_index (struct scsi_qla_host *ha, struct dev_db_entry *fw_ddb_entry, dma_addr_t fw_ddb_entry_dma, uint16_t ddb_index)
 
int qla4xxx_get_chap (struct scsi_qla_host *ha, char *username, char *password, uint16_t idx)
 
int qla4xxx_get_nvram (struct scsi_qla_host *ha, dma_addr_t nvram_dma, uint32_t offset, uint32_t size)
 
int qla4xxx_set_nvram (struct scsi_qla_host *ha, dma_addr_t nvram_dma, uint32_t offset, uint32_t size)
 
int qla4xxx_restore_factory_defaults (struct scsi_qla_host *ha, uint32_t region, uint32_t field0, uint32_t field1)
 
int qla4xxx_get_ddb_index (struct scsi_qla_host *ha, uint16_t *ddb_index)
 
void qla4xxx_login_flash_ddb (struct iscsi_cls_session *cls_session)
 
int qla4xxx_unblock_ddb (struct iscsi_cls_session *cls_session)
 
int qla4xxx_unblock_flash_ddb (struct iscsi_cls_session *cls_session)
 
int qla4xxx_flash_ddb_change (struct scsi_qla_host *ha, uint32_t fw_ddb_index, struct ddb_entry *ddb_entry, uint32_t state)
 
int qla4xxx_ddb_change (struct scsi_qla_host *ha, uint32_t fw_ddb_index, struct ddb_entry *ddb_entry, uint32_t state)
 
void qla4xxx_build_ddb_list (struct scsi_qla_host *ha, int is_reset)
 
int qla4xxx_post_aen_work (struct scsi_qla_host *ha, enum iscsi_host_event_code aen_code, uint32_t data_size, uint8_t *data)
 
int qla4xxx_ping_iocb (struct scsi_qla_host *ha, uint32_t options, uint32_t payload_size, uint32_t pid, uint8_t *ipaddr)
 
int qla4xxx_post_ping_evt_work (struct scsi_qla_host *ha, uint32_t status, uint32_t pid, uint32_t data_size, uint8_t *data)
 
int qla4xxx_bsg_request (struct bsg_job *bsg_job)
 
int qla4xxx_process_vendor_specific (struct bsg_job *bsg_job)
 
void qla4xxx_arm_relogin_timer (struct ddb_entry *ddb_entry)
 
int qla4xxx_get_minidump_template (struct scsi_qla_host *ha, dma_addr_t phys_addr)
 
int qla4xxx_req_template_size (struct scsi_qla_host *ha)
 
void qla4_8xxx_alloc_sysfs_attr (struct scsi_qla_host *ha)
 
void qla4_8xxx_free_sysfs_attr (struct scsi_qla_host *ha)
 
void qla4xxx_alloc_fw_dump (struct scsi_qla_host *ha)
 
int qla4_82xx_try_start_fw (struct scsi_qla_host *ha)
 
int qla4_8xxx_need_reset (struct scsi_qla_host *ha)
 
int qla4_82xx_md_rd_32 (struct scsi_qla_host *ha, uint32_t off, uint32_t *data)
 
int qla4_82xx_md_wr_32 (struct scsi_qla_host *ha, uint32_t off, uint32_t data)
 
void qla4_82xx_rom_lock_recovery (struct scsi_qla_host *ha)
 
void qla4_82xx_queue_mbox_cmd (struct scsi_qla_host *ha, uint32_t *mbx_cmd, int incount)
 
void qla4_82xx_process_mbox_intr (struct scsi_qla_host *ha, int outcount)
 
void qla4xxx_queue_mbox_cmd (struct scsi_qla_host *ha, uint32_t *mbx_cmd, int incount)
 
void qla4xxx_process_mbox_intr (struct scsi_qla_host *ha, int outcount)
 
void qla4_8xxx_dump_peg_reg (struct scsi_qla_host *ha)
 
void qla4_83xx_disable_intrs (struct scsi_qla_host *ha)
 
void qla4_83xx_enable_intrs (struct scsi_qla_host *ha)
 
int qla4_83xx_start_firmware (struct scsi_qla_host *ha)
 
irqreturn_t qla4_83xx_intr_handler (int irq, void *dev_id)
 
void qla4_83xx_interrupt_service_routine (struct scsi_qla_host *ha, uint32_t intr_status)
 
int qla4_83xx_isp_reset (struct scsi_qla_host *ha)
 
void qla4_83xx_queue_iocb (struct scsi_qla_host *ha)
 
void qla4_83xx_complete_iocb (struct scsi_qla_host *ha)
 
uint16_t qla4_83xx_rd_shdw_req_q_out (struct scsi_qla_host *ha)
 
uint16_t qla4_83xx_rd_shdw_rsp_q_in (struct scsi_qla_host *ha)
 
uint32_t qla4_83xx_rd_reg (struct scsi_qla_host *ha, ulong addr)
 
void qla4_83xx_wr_reg (struct scsi_qla_host *ha, ulong addr, uint32_t val)
 
int qla4_83xx_rd_reg_indirect (struct scsi_qla_host *ha, uint32_t addr, uint32_t *data)
 
int qla4_83xx_wr_reg_indirect (struct scsi_qla_host *ha, uint32_t addr, uint32_t data)
 
int qla4_83xx_drv_lock (struct scsi_qla_host *ha)
 
void qla4_83xx_drv_unlock (struct scsi_qla_host *ha)
 
void qla4_83xx_rom_lock_recovery (struct scsi_qla_host *ha)
 
void qla4_83xx_queue_mbox_cmd (struct scsi_qla_host *ha, uint32_t *mbx_cmd, int incount)
 
void qla4_83xx_process_mbox_intr (struct scsi_qla_host *ha, int outcount)
 
void qla4_83xx_read_reset_template (struct scsi_qla_host *ha)
 
void qla4_83xx_set_idc_dontreset (struct scsi_qla_host *ha)
 
int qla4_83xx_idc_dontreset (struct scsi_qla_host *ha)
 
int qla4_83xx_lockless_flash_read_u32 (struct scsi_qla_host *ha, uint32_t flash_addr, uint8_t *p_data, int u32_word_count)
 
void qla4_83xx_clear_idc_dontreset (struct scsi_qla_host *ha)
 
void qla4_83xx_need_reset_handler (struct scsi_qla_host *ha)
 
int qla4_83xx_flash_read_u32 (struct scsi_qla_host *ha, uint32_t flash_addr, uint8_t *p_data, int u32_word_count)
 
void qla4_83xx_get_idc_param (struct scsi_qla_host *ha)
 
void qla4_8xxx_set_rst_ready (struct scsi_qla_host *ha)
 
void qla4_8xxx_clear_rst_ready (struct scsi_qla_host *ha)
 
int qla4_8xxx_device_bootstrap (struct scsi_qla_host *ha)
 
void qla4_8xxx_get_minidump (struct scsi_qla_host *ha)
 
int qla4_8xxx_mbx_intr_disable (struct scsi_qla_host *ha)
 
int qla4_8xxx_mbx_intr_enable (struct scsi_qla_host *ha)
 
int qla4_8xxx_set_param (struct scsi_qla_host *ha, int param)
 
int qla4_8xxx_update_idc_reg (struct scsi_qla_host *ha)
 
int qla4_83xx_post_idc_ack (struct scsi_qla_host *ha)
 
void qla4_83xx_disable_pause (struct scsi_qla_host *ha)
 

Variables

int ql4xextended_error_logging
 
int ql4xdontresethba
 
int ql4xenablemsix
 
int ql4xmdcapmask
 
int ql4xenablemd
 
struct device_attributeqla4xxx_host_attrs []
 

Function Documentation

int ql4xxx_lock_drvr_wait ( struct scsi_qla_host a)

Definition at line 731 of file ql4_init.c.

void qla4_82xx_complete_iocb ( struct scsi_qla_host ha)

qla4_82xx_complete_iocb - Tell ISP we're done with response(s) : pointer to host adapter structure.

This routine notifies the ISP that one or more response/completion queue entries have been processed by the driver. This also clears the interrupt.

Definition at line 232 of file ql4_iocb.c.

int qla4_82xx_crb_win_lock ( struct scsi_qla_host )

Definition at line 478 of file ql4_nx.c.

void qla4_82xx_crb_win_unlock ( struct scsi_qla_host )

Definition at line 505 of file ql4_nx.c.

void qla4_82xx_disable_intrs ( struct scsi_qla_host ha)

Definition at line 3522 of file ql4_nx.c.

void qla4_82xx_enable_intrs ( struct scsi_qla_host ha)

Definition at line 3510 of file ql4_nx.c.

int qla4_82xx_idc_lock ( struct scsi_qla_host ha)

qla4_82xx_idc_lock - hw_lock : pointer to adapter structure

General purpose lock used to synchronize access to CRB_DEV_STATE, CRB_DEV_REF_COUNT, etc.

Definition at line 519 of file ql4_nx.c.

void qla4_82xx_idc_unlock ( struct scsi_qla_host ha)

Definition at line 545 of file ql4_nx.c.

void qla4_82xx_interrupt_service_routine ( struct scsi_qla_host ha,
uint32_t  intr_status 
)

qla4_82xx_interrupt_service_routine - isr : pointer to host adapter structure.

This is the main interrupt service routine. hardware_lock locked upon entry. runs in interrupt context.

Definition at line 884 of file ql4_isr.c.

irqreturn_t qla4_82xx_intr_handler ( int  irq,
void dev_id 
)

qla4_82xx_intr_handler - hardware interrupt handler. : Unused : Pointer to host adapter structure

Definition at line 1050 of file ql4_isr.c.

int qla4_82xx_isp_reset ( struct scsi_qla_host ha)

qla4_82xx_isp_reset - Resets ISP and aborts all outstanding commands. : pointer to host adapter structure.

Definition at line 3360 of file ql4_nx.c.

int qla4_82xx_md_rd_32 ( struct scsi_qla_host ha,
uint32_t  off,
uint32_t data 
)

Definition at line 425 of file ql4_nx.c.

int qla4_82xx_md_wr_32 ( struct scsi_qla_host ha,
uint32_t  off,
uint32_t  data 
)

Definition at line 451 of file ql4_nx.c.

int qla4_82xx_pci_get_crb_addr_2M ( struct scsi_qla_host ,
ulong  
)

Definition at line 551 of file ql4_nx.c.

int qla4_82xx_pci_mem_read_2M ( struct scsi_qla_host ,
u64  ,
void ,
int   
)

Definition at line 1257 of file ql4_nx.c.

int qla4_82xx_pci_mem_write_2M ( struct scsi_qla_host ha,
u64  ,
void ,
int   
)

Definition at line 1348 of file ql4_nx.c.

void qla4_82xx_process_mbox_intr ( struct scsi_qla_host ha,
int  outcount 
)

Definition at line 3289 of file ql4_nx.c.

void qla4_82xx_queue_iocb ( struct scsi_qla_host ha)

qla4_82xx_queue_iocb - Tell ISP it's got new request(s) : pointer to host adapter structure.

This routine notifies the ISP that one or more new request queue entries have been placed on the request queue.

Definition at line 214 of file ql4_iocb.c.

void qla4_82xx_queue_mbox_cmd ( struct scsi_qla_host ha,
uint32_t mbx_cmd,
int  incount 
)

Definition at line 3273 of file ql4_nx.c.

uint32_t qla4_82xx_rd_32 ( struct scsi_qla_host ,
ulong   
)

Definition at line 400 of file ql4_nx.c.

uint16_t qla4_82xx_rd_shdw_req_q_out ( struct scsi_qla_host ha)

Definition at line 3759 of file ql4_os.c.

uint16_t qla4_82xx_rd_shdw_rsp_q_in ( struct scsi_qla_host ha)

Definition at line 3774 of file ql4_os.c.

void qla4_82xx_rom_lock_recovery ( struct scsi_qla_host ha)

Definition at line 1702 of file ql4_nx.c.

int qla4_82xx_try_start_fw ( struct scsi_qla_host ha)

Definition at line 1673 of file ql4_nx.c.

void qla4_82xx_wr_32 ( struct scsi_qla_host ,
ulong  ,
u32   
)

Definition at line 377 of file ql4_nx.c.

void qla4_83xx_clear_idc_dontreset ( struct scsi_qla_host ha)

Definition at line 507 of file ql4_83xx.c.

void qla4_83xx_complete_iocb ( struct scsi_qla_host ha)

Definition at line 201 of file ql4_iocb.c.

void qla4_83xx_disable_intrs ( struct scsi_qla_host ha)

Definition at line 1354 of file ql4_83xx.c.

void qla4_83xx_disable_pause ( struct scsi_qla_host ha)

Definition at line 1605 of file ql4_83xx.c.

int qla4_83xx_drv_lock ( struct scsi_qla_host ha)

Definition at line 411 of file ql4_83xx.c.

void qla4_83xx_drv_unlock ( struct scsi_qla_host ha)

Definition at line 479 of file ql4_83xx.c.

void qla4_83xx_enable_intrs ( struct scsi_qla_host ha)

Definition at line 1367 of file ql4_83xx.c.

int qla4_83xx_flash_read_u32 ( struct scsi_qla_host ha,
uint32_t  flash_addr,
uint8_t p_data,
int  u32_word_count 
)

Definition at line 108 of file ql4_83xx.c.

void qla4_83xx_get_idc_param ( struct scsi_qla_host ha)

Definition at line 684 of file ql4_83xx.c.

int qla4_83xx_idc_dontreset ( struct scsi_qla_host ha)

Definition at line 518 of file ql4_83xx.c.

void qla4_83xx_interrupt_service_routine ( struct scsi_qla_host ha,
uint32_t  intr_status 
)

Definition at line 860 of file ql4_isr.c.

irqreturn_t qla4_83xx_intr_handler ( int  irq,
void dev_id 
)

qla4_83xx_intr_handler - hardware interrupt handler. : Unused : Pointer to host adapter structure

Definition at line 1116 of file ql4_isr.c.

int qla4_83xx_isp_reset ( struct scsi_qla_host ha)

qla4_83xx_isp_reset - Resets ISP and aborts all outstanding commands. : pointer to host adapter structure.

Definition at line 1411 of file ql4_83xx.c.

int qla4_83xx_lockless_flash_read_u32 ( struct scsi_qla_host ha,
uint32_t  flash_addr,
uint8_t p_data,
int  u32_word_count 
)

Definition at line 158 of file ql4_83xx.c.

void qla4_83xx_need_reset_handler ( struct scsi_qla_host ha)

qla4_83xx_need_reset_handler - Code to start reset sequence : pointer to adapter structure

Note: IDC lock must be held upon entry

Definition at line 612 of file ql4_83xx.c.

int qla4_83xx_post_idc_ack ( struct scsi_qla_host ha)

qla4_83xx_post_idc_ack - post IDC ACK : Pointer to host adapter structure.

Posts IDC ACK for IDC Request Notification AEN.

Definition at line 1982 of file ql4_mbx.c.

void qla4_83xx_process_mbox_intr ( struct scsi_qla_host ha,
int  outcount 
)

Definition at line 1396 of file ql4_83xx.c.

void qla4_83xx_queue_iocb ( struct scsi_qla_host ha)

Definition at line 195 of file ql4_iocb.c.

void qla4_83xx_queue_mbox_cmd ( struct scsi_qla_host ha,
uint32_t mbx_cmd,
int  incount 
)

Definition at line 1379 of file ql4_83xx.c.

uint32_t qla4_83xx_rd_reg ( struct scsi_qla_host ha,
ulong  addr 
)

Definition at line 16 of file ql4_83xx.c.

int qla4_83xx_rd_reg_indirect ( struct scsi_qla_host ha,
uint32_t  addr,
uint32_t data 
)

Definition at line 42 of file ql4_83xx.c.

uint16_t qla4_83xx_rd_shdw_req_q_out ( struct scsi_qla_host ha)

Definition at line 3764 of file ql4_os.c.

uint16_t qla4_83xx_rd_shdw_rsp_q_in ( struct scsi_qla_host ha)

Definition at line 3779 of file ql4_os.c.

void qla4_83xx_read_reset_template ( struct scsi_qla_host ha)

qla4_83xx_read_reset_template - Read Reset Template from Flash : Pointer to adapter structure

Definition at line 877 of file ql4_83xx.c.

void qla4_83xx_rom_lock_recovery ( struct scsi_qla_host ha)

Definition at line 240 of file ql4_83xx.c.

void qla4_83xx_set_idc_dontreset ( struct scsi_qla_host ha)

Definition at line 496 of file ql4_83xx.c.

int qla4_83xx_start_firmware ( struct scsi_qla_host ha)

Definition at line 1330 of file ql4_83xx.c.

void qla4_83xx_wr_reg ( struct scsi_qla_host ha,
ulong  addr,
uint32_t  val 
)

Definition at line 21 of file ql4_83xx.c.

int qla4_83xx_wr_reg_indirect ( struct scsi_qla_host ha,
uint32_t  addr,
uint32_t  data 
)

Definition at line 58 of file ql4_83xx.c.

void qla4_8xxx_alloc_sysfs_attr ( struct scsi_qla_host ha)

Definition at line 120 of file ql4_attr.c.

void qla4_8xxx_clear_drv_active ( struct scsi_qla_host ha)

Definition at line 1532 of file ql4_nx.c.

void qla4_8xxx_clear_rst_ready ( struct scsi_qla_host ha)

Definition at line 1598 of file ql4_nx.c.

irqreturn_t qla4_8xxx_default_intr_handler ( int  irq,
void dev_id 
)

qla4_8xxx_default_intr_handler - hardware interrupt handler. : Unused : Pointer to host adapter structure

This interrupt handler is called directly for MSI-X, and called indirectly for MSI.

Definition at line 1223 of file ql4_isr.c.

int qla4_8xxx_device_bootstrap ( struct scsi_qla_host ha)

qla4_8xxx_device_bootstrap - Initialize device, set DEV_READY, start fw : pointer to adapter structure

Note: IDC lock must be held upon entry

Definition at line 2597 of file ql4_nx.c.

int qla4_8xxx_device_state_handler ( struct scsi_qla_host ha)

qla4_8xxx_device_state_handler - Adapter state machine : pointer to host adapter structure.

Note: IDC lock must be UNLOCKED upon entry

Definition at line 2875 of file ql4_nx.c.

void qla4_8xxx_disable_msix ( struct scsi_qla_host ha)

Definition at line 3549 of file ql4_nx.c.

void qla4_8xxx_dump_peg_reg ( struct scsi_qla_host ha)

Definition at line 135 of file ql4_dbg.c.

int qla4_8xxx_enable_msix ( struct scsi_qla_host ha)

Definition at line 3567 of file ql4_nx.c.

void qla4_8xxx_free_sysfs_attr ( struct scsi_qla_host ha)

Definition at line 136 of file ql4_attr.c.

int qla4_8xxx_get_flash_info ( struct scsi_qla_host ha)

Definition at line 3307 of file ql4_nx.c.

void qla4_8xxx_get_minidump ( struct scsi_qla_host ha)

Definition at line 2577 of file ql4_nx.c.

int qla4_8xxx_get_sys_info ( struct scsi_qla_host ha)

qla4_8xxx_get_sys_info - get adapter MAC address(es) and serial number : pointer to host adapter structure.

Definition at line 3397 of file ql4_nx.c.

int qla4_8xxx_iospace_config ( struct scsi_qla_host ha)

Definition at line 3557 of file ql4_os.c.

int qla4_8xxx_load_risc ( struct scsi_qla_host )

Definition at line 2974 of file ql4_nx.c.

int qla4_8xxx_mbx_intr_disable ( struct scsi_qla_host ha)

Definition at line 3487 of file ql4_nx.c.

int qla4_8xxx_mbx_intr_enable ( struct scsi_qla_host ha)

Definition at line 3466 of file ql4_nx.c.

irqreturn_t qla4_8xxx_msi_handler ( int  irq,
void dev_id 
)

Definition at line 1161 of file ql4_isr.c.

irqreturn_t qla4_8xxx_msix_rsp_q ( int  irq,
void dev_id 
)

Definition at line 1260 of file ql4_isr.c.

void qla4_8xxx_need_qsnt_handler ( struct scsi_qla_host ha)

qla4_8xxx_need_qsnt_handler - Code to start qsnt : pointer to adapter structure

Definition at line 2767 of file ql4_nx.c.

int qla4_8xxx_need_reset ( struct scsi_qla_host ha)
inline

Definition at line 1553 of file ql4_nx.c.

void qla4_8xxx_pci_config ( struct scsi_qla_host ha)

qla4_8xxx_pci_config() - Setup ISP82xx PCI configuration registers. : HA context

Definition at line 627 of file ql4_init.c.

void qla4_8xxx_set_drv_active ( struct scsi_qla_host ha)

Definition at line 1510 of file ql4_nx.c.

int qla4_8xxx_set_param ( struct scsi_qla_host ha,
int  param 
)

qla4_8xxx_set_param - set driver version in firmware. : Pointer to host adapter structure.

Parameters
Parameter to set i.e driver version

Definition at line 1945 of file ql4_mbx.c.

void qla4_8xxx_set_rst_ready ( struct scsi_qla_host ha)

Definition at line 1577 of file ql4_nx.c.

int qla4_8xxx_stop_firmware ( struct scsi_qla_host ha)

qla4_8xxx_stop_firmware - stops firmware on specified adapter instance : pointer to host adapter structure.

Remarks: For iSCSI, throws away all I/O and AENs into bit bucket, so they will not be available after successful return. Driver must cleanup potential outstanding I/O's after calling this funcion.

Definition at line 3337 of file ql4_nx.c.

int qla4_8xxx_update_idc_reg ( struct scsi_qla_host ha)

Definition at line 2834 of file ql4_nx.c.

void qla4_8xxx_watchdog ( struct scsi_qla_host ha)

qla4_8xxx_watchdog - Poll dev state : Pointer to host adapter structure.

Context: Interrupt

Definition at line 2542 of file ql4_os.c.

int qla4xxx_abort_task ( struct scsi_qla_host ha,
struct srb srb 
)

qla4xxx_abort_task - issues Abort Task : Pointer to host adapter structure. : Pointer to srb entry

This routine performs a LUN RESET on the specified target/lun. The caller must ensure that the ddb_entry and lun_entry pointers are valid before calling this routine.

Definition at line 1038 of file ql4_mbx.c.

int qla4xxx_about_firmware ( struct scsi_qla_host ha)

qla4xxx_about_firmware - gets FW, iscsi draft and boot loader version : Pointer to host adapter structure.

Retrieves the FW version, iSCSI draft version & bootloader version of HBA. Mailboxes 2 & 3 may hold an address for data. Make sure that we write 0 to those mailboxes, if unused.

Definition at line 1195 of file ql4_mbx.c.

void qla4xxx_alloc_fw_dump ( struct scsi_qla_host ha)

qla4xxx_alloc_fw_dump - Allocate memory for minidump data. : pointer to host adapter structure.

Definition at line 291 of file ql4_init.c.

void qla4xxx_arm_relogin_timer ( struct ddb_entry ddb_entry)

Definition at line 1040 of file ql4_init.c.

int qla4xxx_bootdb_by_index ( struct scsi_qla_host ha,
struct dev_db_entry fw_ddb_entry,
dma_addr_t  fw_ddb_entry_dma,
uint16_t  ddb_index 
)

Definition at line 1344 of file ql4_mbx.c.

int qla4xxx_bsg_request ( struct bsg_job bsg_job)

qla4xxx_bsg_request - handle bsg request from ISCSI transport : iscsi_bsg_job to handle

Definition at line 497 of file ql4_bsg.c.

void qla4xxx_build_ddb_list ( struct scsi_qla_host ha,
int  is_reset 
)

qla4xxx_build_ddb_list - Build ddb list and setup sessions : pointer to adapter structure : Is this init path or reset path

Create a list of sendtargets (st) from firmware DDBs, issue send targets using connection open, then create the list of normal targets (nt) from firmware DDBs. Based on the list of nt setup session and connection objects.

Definition at line 5063 of file ql4_os.c.

int qla4xxx_clear_ddb_entry ( struct scsi_qla_host ha,
uint32_t  fw_ddb_index 
)

Definition at line 1296 of file ql4_mbx.c.

void qla4xxx_complete_iocb ( struct scsi_qla_host ha)

qla4xxx_complete_iocb - Tell ISP we're done with response(s) : pointer to host adapter structure.

This routine is notifies the ISP that one or more response/completion queue entries have been processed by the driver. This also clears the interrupt.

Definition at line 259 of file ql4_iocb.c.

int qla4xxx_conn_close_sess_logout ( struct scsi_qla_host ha,
uint16_t  fw_ddb_index,
uint16_t  connection_id,
uint16_t  option 
)

Definition at line 1555 of file ql4_mbx.c.

int qla4xxx_conn_open ( struct scsi_qla_host ha,
uint16_t  fw_ddb_index 
)

Definition at line 790 of file ql4_mbx.c.

int qla4xxx_ddb_change ( struct scsi_qla_host ha,
uint32_t  fw_ddb_index,
struct ddb_entry ddb_entry,
uint32_t  state 
)

Definition at line 967 of file ql4_init.c.

void qla4xxx_dead_adapter_cleanup ( struct scsi_qla_host ha)

Definition at line 2901 of file ql4_os.c.

struct srb* qla4xxx_del_from_active_array ( struct scsi_qla_host ha,
uint32_t  index 
)
read

qla4xxx_del_from_active_array - returns an active srb : Pointer to host adapter structure. : index into the active_array

This routine removes and returns the srb at the specified index

Definition at line 5575 of file ql4_os.c.

int qla4xxx_disable_acb ( struct scsi_qla_host ha)

Definition at line 1581 of file ql4_mbx.c.

void qla4xxx_dump_buffer ( void b,
uint32_t  size 
)

Definition at line 13 of file ql4_dbg.c.

void qla4xxx_dump_registers ( struct scsi_qla_host ha)

Definition at line 33 of file ql4_dbg.c.

int qla4xxx_flash_ddb_change ( struct scsi_qla_host ha,
uint32_t  fw_ddb_index,
struct ddb_entry ddb_entry,
uint32_t  state 
)

Definition at line 1061 of file ql4_init.c.

void qla4xxx_free_ddb ( struct scsi_qla_host ha,
struct ddb_entry ddb_entry 
)

qla4xxx_free_ddb - deallocate ddb : pointer to host adapter structure. : pointer to device database entry

This routine marks a DDB entry INVALID

Definition at line 50 of file ql4_init.c.

void qla4xxx_free_ddb_index ( struct scsi_qla_host ha)

qla4xxx_free_ddb_index - Free DDBs reserved by firmware : pointer to adapter structure

Since firmware is not running in autoconnect mode the DDB indices should be freed so that when login happens from user space there are free DDB indices available.

Definition at line 883 of file ql4_init.c.

void qla4xxx_free_irqs ( struct scsi_qla_host ha)

Definition at line 1438 of file ql4_isr.c.

int qla4xxx_get_acb ( struct scsi_qla_host ha,
dma_addr_t  acb_dma,
uint32_t  acb_type,
uint32_t  len 
)

Definition at line 1601 of file ql4_mbx.c.

int qla4xxx_get_chap ( struct scsi_qla_host ha,
char username,
char password,
uint16_t  idx 
)

Definition at line 1378 of file ql4_mbx.c.

int qla4xxx_get_chap_index ( struct scsi_qla_host ha,
char username,
char password,
int  bidi,
uint16_t chap_index 
)

qla4xxx_get_chap_index - Get chap index given username and secret : pointer to adapter structure : CHAP username to be searched : CHAP password to be searched : Is this a BIDI CHAP : CHAP index to be returned

Match the username and password in the chap_list, return the index if a match is found. If a match is not found then add the entry in FLASH and return the index at which entry is written in the FLASH.

Definition at line 1485 of file ql4_mbx.c.

void qla4xxx_get_conn_event_log ( struct scsi_qla_host ha)

qla4xxx_get_conn_event_log - retrieves connection event log : Pointer to host adapter structure.

Definition at line 939 of file ql4_mbx.c.

void qla4xxx_get_crash_record ( struct scsi_qla_host ha)

qla4xxx_get_crash_record - retrieves crash record. : Pointer to host adapter structure.

This routine retrieves a crash record from the QLA4010 after an 8002h aen.

Definition at line 881 of file ql4_mbx.c.

int qla4xxx_get_ddb_index ( struct scsi_qla_host ha,
uint16_t ddb_index 
)

Definition at line 1385 of file ql4_os.c.

int qla4xxx_get_dhcp_ip_address ( struct scsi_qla_host ha)

qla4xxx_get_dhcp_ip_address - gets HBA ip address via DHCP : Pointer to host adapter structure.

Definition at line 591 of file ql4_mbx.c.

int qla4xxx_get_firmware_state ( struct scsi_qla_host ha)

qla4xxx_get_firmware_state - gets firmware state of HBA : Pointer to host adapter structure.

Definition at line 631 of file ql4_mbx.c.

int qla4xxx_get_firmware_status ( struct scsi_qla_host ha)

qla4xxx_get_firmware_status - retrieves firmware status : Pointer to host adapter structure.

Definition at line 662 of file ql4_mbx.c.

int qla4xxx_get_flash ( struct scsi_qla_host ha,
dma_addr_t  dma_addr,
uint32_t  offset,
uint32_t  len 
)

Definition at line 1162 of file ql4_mbx.c.

int qla4xxx_get_fwddb_entry ( struct scsi_qla_host ha,
uint16_t  fw_ddb_index,
struct dev_db_entry fw_ddb_entry,
dma_addr_t  fw_ddb_entry_dma,
uint32_t num_valid_ddb_entries,
uint32_t next_ddb_index,
uint32_t fw_ddb_device_state,
uint32_t conn_err_detail,
uint16_t tcp_source_port_num,
uint16_t connection_id 
)

qla4xxx_get_fwddb_entry - retrieves firmware ddb entry : Pointer to host adapter structure. : Firmware's device database index : Pointer to firmware's device database entry structure : Pointer to number of valid ddb entries : Pointer to next valid device database index : Pointer to device state

Definition at line 696 of file ql4_mbx.c.

uint8_t qla4xxx_get_ifcb ( struct scsi_qla_host ha,
uint32_t mbox_cmd,
uint32_t mbox_sts,
dma_addr_t  init_fw_cb_dma 
)

Definition at line 380 of file ql4_mbx.c.

int qla4xxx_get_ip_state ( struct scsi_qla_host ha,
uint32_t  acb_idx,
uint32_t  ip_idx,
uint32_t sts 
)

Definition at line 1839 of file ql4_mbx.c.

int qla4xxx_get_mgmt_data ( struct scsi_qla_host ha,
uint16_t  fw_ddb_index,
uint16_t  stats_size,
dma_addr_t  stats_dma 
)

Definition at line 1814 of file ql4_mbx.c.

int qla4xxx_get_minidump_template ( struct scsi_qla_host ha,
dma_addr_t  phys_addr 
)

qla4xxx_get_minidump_template - Get the firmware template : Pointer to host adapter structure. : dma address for template

Obtain the minidump template from firmware during initialization as it may not be available when minidump is desired.

Definition at line 264 of file ql4_mbx.c.

int qla4xxx_get_nvram ( struct scsi_qla_host ha,
dma_addr_t  nvram_dma,
uint32_t  offset,
uint32_t  size 
)

Definition at line 1862 of file ql4_mbx.c.

int qla4xxx_get_sys_info ( struct scsi_qla_host ha)

qla4xxx_get_sys_info - validate adapter MAC address(es) : pointer to host adapter structure.

Definition at line 150 of file ql4_init.c.

int qla4xxx_hw_reset ( struct scsi_qla_host ha)

Definition at line 2748 of file ql4_os.c.

int qla4xxx_init_rings ( struct scsi_qla_host ha)

qla4xxx_init_rings - initialize hw queues : pointer to host adapter structure.

This routine initializes the internal queues for the specified adapter. The QLA4010 requires us to restart the queues at index 0. The QLA4000 doesn't care, so just default to QLA4010's requirement.

Definition at line 86 of file ql4_init.c.

int qla4xxx_initialize_adapter ( struct scsi_qla_host ha,
int  is_reset 
)

qla4xxx_initialize_adapter - initiailizes hba : Pointer to host adapter structure.

This routine parforms all of the steps necessary to initialize the adapter.

Definition at line 923 of file ql4_init.c.

int qla4xxx_initialize_fw_cb ( struct scsi_qla_host ha)

qla4xxx_initialize_fw_cb - initializes firmware control block. : Pointer to host adapter structure.

Definition at line 502 of file ql4_mbx.c.

void qla4xxx_interrupt_service_routine ( struct scsi_qla_host ha,
uint32_t  intr_status 
)

qla4xxx_interrupt_service_routine - isr : pointer to host adapter structure.

This is the main interrupt service routine. hardware_lock locked upon entry. runs in interrupt context.

Definition at line 908 of file ql4_isr.c.

irqreturn_t qla4xxx_intr_handler ( int  irq,
void dev_id 
)

qla4xxx_intr_handler - hardware interrupt handler. : Unused : Pointer to host adapter structure

Definition at line 954 of file ql4_isr.c.

int qla4xxx_iospace_config ( struct scsi_qla_host ha)

Definition at line 3619 of file ql4_os.c.

int qla4xxx_is_nvram_configuration_valid ( struct scsi_qla_host ha)

Definition at line 180 of file ql4_nvram.c.

void qla4xxx_login_flash_ddb ( struct iscsi_cls_session cls_session)

qla4xxx_login_flash_ddb - Login to target (DDB) : Pointer to the session to login

This routine logins to the target. Issues setddb and conn open mbx

Definition at line 1169 of file ql4_init.c.

int qla4xxx_mailbox_command ( struct scsi_qla_host ha,
uint8_t  inCount,
uint8_t  outCount,
uint32_t mbx_cmd,
uint32_t mbx_sts 
)

qla4xxx_mailbox_command - issues mailbox commands : Pointer to host adapter structure. : number of mailbox registers to load. : number of mailbox registers to return. : data pointer for mailbox in registers. : data pointer for mailbox out registers.

This routine issue mailbox commands and waits for completion. If outCount is 0, this routine completes successfully WITHOUT waiting for the mailbox command to complete.

Definition at line 58 of file ql4_mbx.c.

void qla4xxx_mailbox_premature_completion ( struct scsi_qla_host ha)

Definition at line 329 of file ql4_mbx.c.

void qla4xxx_mark_all_devices_missing ( struct scsi_qla_host ha)

qla4xxx_mark_all_devices_missing - mark all devices as missing. : Pointer to host adapter structure.

This routine marks a device missing and resets the relogin retry count.

Definition at line 2149 of file ql4_os.c.

void qla4xxx_mark_device_missing ( struct iscsi_cls_session cls_session)

Definition at line 2138 of file ql4_os.c.

void qla4xxx_pci_config ( struct scsi_qla_host ha)

Definition at line 632 of file ql4_init.c.

int qla4xxx_ping_iocb ( struct scsi_qla_host ha,
uint32_t  options,
uint32_t  payload_size,
uint32_t  pid,
uint8_t ipaddr 
)

Definition at line 516 of file ql4_iocb.c.

int qla4xxx_post_aen_work ( struct scsi_qla_host ha,
enum iscsi_host_event_code  aen_code,
uint32_t  data_size,
uint8_t data 
)

Definition at line 3290 of file ql4_os.c.

int qla4xxx_post_ping_evt_work ( struct scsi_qla_host ha,
uint32_t  status,
uint32_t  pid,
uint32_t  data_size,
uint8_t data 
)

Definition at line 3309 of file ql4_os.c.

void qla4xxx_process_aen ( struct scsi_qla_host ha,
uint8_t  process_aen 
)

qla4xxx_process_aen - processes AENs generated by firmware : pointer to host adapter structure. : type of AENs to process

Processes specific types of Asynchronous Events generated by firmware. The type of AENs to process is specified by process_aen and can be PROCESS_ALL_AENS 0 FLUSH_DDB_CHANGED_AENS 1 RELOGIN_DDB_CHANGED_AENS 2

Definition at line 1297 of file ql4_isr.c.

int qla4xxx_process_ddb_changed ( struct scsi_qla_host ha,
uint32_t  fw_ddb_index,
uint32_t  state,
uint32_t  conn_err 
)

qla4xxx_process_ddb_changed - process ddb state change - Pointer to host adapter structure. - Firmware's device database index - Device state

This routine processes a Decive Database Changed AEN Event.

Definition at line 1132 of file ql4_init.c.

void qla4xxx_process_mbox_intr ( struct scsi_qla_host ha,
int  outcount 
)

Definition at line 30 of file ql4_mbx.c.

void qla4xxx_process_response_queue ( struct scsi_qla_host ha)

qla4xxx_process_response_queue - process response queue completions : Pointer to host adapter structure.

This routine process response queue completions in interrupt context. Hardware_lock locked upon entry

Definition at line 476 of file ql4_isr.c.

int qla4xxx_process_vendor_specific ( struct bsg_job bsg_job)

qla4xxx_process_vendor_specific - handle vendor specific bsg request : iscsi_bsg_job to handle

Definition at line 453 of file ql4_bsg.c.

void qla4xxx_queue_iocb ( struct scsi_qla_host ha)

qla4xxx_queue_iocb - Tell ISP it's got new request(s) : pointer to host adapter structure.

This routine is notifies the ISP that one or more new request queue entries have been placed on the request queue.

Definition at line 245 of file ql4_iocb.c.

void qla4xxx_queue_mbox_cmd ( struct scsi_qla_host ha,
uint32_t mbx_cmd,
int  incount 
)

Definition at line 14 of file ql4_mbx.c.

uint16_t qla4xxx_rd_shdw_req_q_out ( struct scsi_qla_host ha)

Definition at line 3754 of file ql4_os.c.

uint16_t qla4xxx_rd_shdw_rsp_q_in ( struct scsi_qla_host ha)

Definition at line 3769 of file ql4_os.c.

int qla4xxx_req_ddb_entry ( struct scsi_qla_host ha,
uint32_t  fw_ddb_index,
uint32_t mbx_sts 
)

Definition at line 1272 of file ql4_mbx.c.

int qla4xxx_req_template_size ( struct scsi_qla_host ha)

qla4xxx_req_template_size - Get minidump template size from firmware. : Pointer to host adapter structure.

Definition at line 296 of file ql4_mbx.c.

int qla4xxx_request_irqs ( struct scsi_qla_host ha)

Definition at line 1350 of file ql4_isr.c.

int qla4xxx_reset_lun ( struct scsi_qla_host ha,
struct ddb_entry ddb_entry,
int  lun 
)

qla4xxx_reset_lun - issues LUN Reset : Pointer to host adapter structure. : Pointer to device database entry : lun number

This routine performs a LUN RESET on the specified target/lun. The caller must ensure that the ddb_entry and lun_entry pointers are valid before calling this routine.

Definition at line 1092 of file ql4_mbx.c.

int qla4xxx_reset_target ( struct scsi_qla_host ha,
struct ddb_entry ddb_entry 
)

qla4xxx_reset_target - issues target Reset : Pointer to host adapter structure. : Pointer to device database entry : Pointer to lun entry structure

This routine performs a TARGET RESET on the specified target. The caller must ensure that the ddb_entry pointers are valid before calling this routine.

Definition at line 1132 of file ql4_mbx.c.

int qla4xxx_restore_factory_defaults ( struct scsi_qla_host ha,
uint32_t  region,
uint32_t  field0,
uint32_t  field1 
)

Definition at line 1914 of file ql4_mbx.c.

int qla4xxx_send_command_to_isp ( struct scsi_qla_host ha,
struct srb srb 
)

qla4xxx_send_command_to_isp - issues command to HBA : pointer to host adapter structure. : pointer to SCSI Request Block to be sent to ISP

This routine is called by qla4xxx_queuecommand to build an ISP command and pass it to the ISP for execution.

Definition at line 273 of file ql4_iocb.c.

int qla4xxx_send_marker_iocb ( struct scsi_qla_host ha,
struct ddb_entry ddb_entry,
int  lun,
uint16_t  mrkr_mod 
)

qla4xxx_send_marker_iocb - issues marker iocb to HBA : Pointer to host adapter structure. : Pointer to device database entry : SCSI LUN : marker identifier

This routine issues a marker IOCB.

Definition at line 85 of file ql4_iocb.c.

int qla4xxx_send_passthru0 ( struct iscsi_task task)

Definition at line 394 of file ql4_iocb.c.

int qla4xxx_session_logout_ddb ( struct scsi_qla_host ha,
struct ddb_entry ddb_entry,
int  options 
)

Definition at line 849 of file ql4_mbx.c.

int qla4xxx_set_acb ( struct scsi_qla_host ha,
uint32_t mbox_cmd,
uint32_t mbox_sts,
dma_addr_t  acb_dma 
)

Definition at line 1626 of file ql4_mbx.c.

int qla4xxx_set_ddb_entry ( struct scsi_qla_host ha,
uint16_t  fw_ddb_index,
dma_addr_t  fw_ddb_entry_dma,
uint32_t mbx_sts 
)

qla4xxx_set_fwddb_entry - sets a ddb entry. : Pointer to host adapter structure. : Firmware's device database index : dma address of ddb entry : mailbox 0 to be returned or NULL

This routine initializes or updates the adapter's device database entry for the specified device.

Definition at line 820 of file ql4_mbx.c.

int qla4xxx_set_flash ( struct scsi_qla_host ha,
dma_addr_t  dma_addr,
uint32_t  offset,
uint32_t  length,
uint32_t  options 
)

Definition at line 1318 of file ql4_mbx.c.

int qla4xxx_set_nvram ( struct scsi_qla_host ha,
dma_addr_t  nvram_dma,
uint32_t  offset,
uint32_t  size 
)

Definition at line 1888 of file ql4_mbx.c.

int qla4xxx_set_param_ddbentry ( struct scsi_qla_host ha,
struct ddb_entry ddb_entry,
struct iscsi_cls_conn cls_conn,
uint32_t mbx_sts 
)

Definition at line 1648 of file ql4_mbx.c.

int qla4xxx_soft_reset ( struct scsi_qla_host ha)

qla4xxx_soft_reset - performs soft reset. : Pointer to host adapter structure.

Definition at line 2780 of file ql4_os.c.

void qla4xxx_srb_compl ( struct kref ref)

Definition at line 2185 of file ql4_os.c.

int qla4xxx_start_firmware ( struct scsi_qla_host ha)

qla4xxx_start_firmware - starts qla4xxx firmware : Pointer to host adapter structure.

This routine performs the necessary steps to start the firmware for the QLA4010 adapter.

Definition at line 763 of file ql4_init.c.

int qla4xxx_unblock_ddb ( struct iscsi_cls_session cls_session)

Definition at line 3180 of file ql4_os.c.

int qla4xxx_unblock_flash_ddb ( struct iscsi_cls_session cls_session)

Definition at line 3155 of file ql4_os.c.

uint8_t qla4xxx_update_local_ifcb ( struct scsi_qla_host ha,
uint32_t mbox_cmd,
uint32_t mbox_sts,
struct addr_ctrl_blk init_fw_cb,
dma_addr_t  init_fw_cb_dma 
)

Definition at line 466 of file ql4_mbx.c.

void qla4xxx_update_session_conn_fwddb_param ( struct scsi_qla_host ha,
struct ddb_entry ddb_entry 
)

Definition at line 1986 of file ql4_os.c.

void qla4xxx_update_session_conn_param ( struct scsi_qla_host ha,
struct ddb_entry ddb_entry 
)

Definition at line 2026 of file ql4_os.c.

void qla4xxx_wake_dpc ( struct scsi_qla_host ha)

Definition at line 3257 of file ql4_os.c.

u8 rd_nvram_byte ( struct scsi_qla_host ha,
int  offset 
)

Definition at line 159 of file ql4_nvram.c.

u16 rd_nvram_word ( struct scsi_qla_host ha,
int  offset 
)

Definition at line 150 of file ql4_nvram.c.

Variable Documentation

int ql4xdontresethba

Definition at line 43 of file ql4_os.c.

int ql4xenablemd

Definition at line 93 of file ql4_os.c.

int ql4xenablemsix

Definition at line 57 of file ql4_os.c.

int ql4xextended_error_logging

Definition at line 50 of file ql4_os.c.

int ql4xmdcapmask

Definition at line 86 of file ql4_os.c.

struct device_attribute* qla4xxx_host_attrs[]

Definition at line 267 of file ql4_attr.c.