Home
last modified time | relevance | path

Searched refs:ddb_entry (Results 1 – 8 of 8) sorted by relevance

/drivers/scsi/qla4xxx/
Dql4_init.c14 static struct ddb_entry * qla4xxx_alloc_ddb(struct scsi_qla_host *ha,
55 struct ddb_entry *ddb_entry) in qla4xxx_free_ddb() argument
58 list_del_init(&ddb_entry->list); in qla4xxx_free_ddb()
61 ha->fw_ddb_index_map[ddb_entry->fw_ddb_index] = in qla4xxx_free_ddb()
62 (struct ddb_entry *) INVALID_ENTRY; in qla4xxx_free_ddb()
66 qla4xxx_destroy_sess(ddb_entry); in qla4xxx_free_ddb()
78 struct ddb_entry *ddb_entry; in qla4xxx_free_ddb_list() local
83 ddb_entry = list_entry(ptr, struct ddb_entry, list); in qla4xxx_free_ddb_list()
84 qla4xxx_free_ddb(ha, ddb_entry); in qla4xxx_free_ddb_list()
310 static struct ddb_entry* qla4xxx_get_ddb_entry(struct scsi_qla_host *ha, in qla4xxx_get_ddb_entry()
[all …]
Dql4_os.c129 struct ddb_entry *ddb_entry = session->dd_data; in qla4xxx_recovery_timedout() local
130 struct scsi_qla_host *ha = ddb_entry->ha; in qla4xxx_recovery_timedout()
132 if (atomic_read(&ddb_entry->state) != DDB_STATE_ONLINE) { in qla4xxx_recovery_timedout()
133 atomic_set(&ddb_entry->state, DDB_STATE_DEAD); in qla4xxx_recovery_timedout()
137 ha->host_no, __func__, ddb_entry->fw_ddb_index, in qla4xxx_recovery_timedout()
175 struct ddb_entry *ddb_entry = sess->dd_data; in qla4xxx_sess_get_param() local
181 ddb_entry->iscsi_name); in qla4xxx_sess_get_param()
184 len = sprintf(buf, "%u\n", ddb_entry->tpgt); in qla4xxx_sess_get_param()
197 struct ddb_entry *ddb_entry; in qla4xxx_conn_get_param() local
201 ddb_entry = session->dd_data; in qla4xxx_conn_get_param()
[all …]
Dql4_glbl.h27 struct ddb_entry * ddb_entry);
28 int qla4xxx_reset_lun(struct scsi_qla_host * ha, struct ddb_entry * ddb_entry,
31 struct ddb_entry * ddb_entry);
55 struct ddb_entry *ddb_entry);
58 struct ddb_entry *qla4xxx_alloc_sess(struct scsi_qla_host *ha);
59 int qla4xxx_add_sess(struct ddb_entry *);
60 void qla4xxx_destroy_sess(struct ddb_entry *ddb_entry);
74 struct ddb_entry *ddb_entry, int lun, uint16_t mrkr_mod);
Dql4_inline.h21 static inline struct ddb_entry *
24 struct ddb_entry *ddb_entry = NULL; in qla4xxx_lookup_ddb_by_fw_index() local
28 (struct ddb_entry *) INVALID_ENTRY)) { in qla4xxx_lookup_ddb_by_fw_index()
29 ddb_entry = ha->fw_ddb_index_map[fw_ddb_index]; in qla4xxx_lookup_ddb_by_fw_index()
33 ha->host_no, __func__, fw_ddb_index, ddb_entry)); in qla4xxx_lookup_ddb_by_fw_index()
35 return ddb_entry; in qla4xxx_lookup_ddb_by_fw_index()
Dql4_isr.c24 struct ddb_entry *ddb_entry; in qla4xxx_status_entry() local
52 ddb_entry = srb->ddb; in qla4xxx_status_entry()
53 if (ddb_entry == NULL) { in qla4xxx_status_entry()
149 if (atomic_read(&ddb_entry->state) == DDB_STATE_ONLINE) in qla4xxx_status_entry()
150 qla4xxx_mark_device_missing(ha, ddb_entry); in qla4xxx_status_entry()
243 if (atomic_read(&ddb_entry->state) == DDB_STATE_ONLINE) in qla4xxx_status_entry()
244 qla4xxx_mark_device_missing(ha, ddb_entry); in qla4xxx_status_entry()
750 struct ddb_entry *ddb_entry; in qla4xxx_process_aen() local
752 ddb_entry = in qla4xxx_process_aen()
756 if (!ddb_entry) in qla4xxx_process_aen()
[all …]
Dql4_iocb.c70 struct ddb_entry *ddb_entry, int lun, uint16_t mrkr_mod) in qla4xxx_send_marker_iocb() argument
89 marker_entry->target = cpu_to_le16(ddb_entry->fw_ddb_index); in qla4xxx_send_marker_iocb()
198 struct ddb_entry *ddb_entry; in qla4xxx_send_command_to_isp() local
211 ddb_entry = srb->ddb; in qla4xxx_send_command_to_isp()
249 cmd_entry->target = cpu_to_le16(ddb_entry->fw_ddb_index); in qla4xxx_send_command_to_isp()
250 cmd_entry->connection_id = cpu_to_le16(ddb_entry->connection_id); in qla4xxx_send_command_to_isp()
253 cmd_entry->cmdSeqNum = cpu_to_le32(ddb_entry->CmdSn); in qla4xxx_send_command_to_isp()
Dql4_mbx.c686 int qla4xxx_reset_lun(struct scsi_qla_host * ha, struct ddb_entry * ddb_entry, in qla4xxx_reset_lun() argument
694 ddb_entry->os_target_id, lun)); in qla4xxx_reset_lun()
704 mbox_cmd[1] = ddb_entry->fw_ddb_index; in qla4xxx_reset_lun()
727 struct ddb_entry *ddb_entry) in qla4xxx_reset_target() argument
734 ddb_entry->os_target_id)); in qla4xxx_reset_target()
744 mbox_cmd[1] = ddb_entry->fw_ddb_index; in qla4xxx_reset_target()
Dql4_def.h158 struct ddb_entry *ddb;
204 struct ddb_entry { struct
437 struct ddb_entry *fw_ddb_index_map[MAX_DDB_ENTRIES];