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

/linux-4.1.27/drivers/scsi/qla4xxx/
H A Dql4_inline.h21 static inline struct ddb_entry * qla4xxx_lookup_ddb_by_fw_index()
24 struct ddb_entry *ddb_entry = NULL; qla4xxx_lookup_ddb_by_fw_index() local
28 (struct ddb_entry *) INVALID_ENTRY)) { qla4xxx_lookup_ddb_by_fw_index()
29 ddb_entry = ha->fw_ddb_index_map[fw_ddb_index]; qla4xxx_lookup_ddb_by_fw_index()
32 DEBUG3(printk("scsi%d: %s: ddb [%d], ddb_entry = %p\n", qla4xxx_lookup_ddb_by_fw_index()
33 ha->host_no, __func__, fw_ddb_index, ddb_entry)); qla4xxx_lookup_ddb_by_fw_index()
35 return ddb_entry; qla4xxx_lookup_ddb_by_fw_index()
H A Dql4_init.c46 * @ddb_entry: pointer to device database entry
51 struct ddb_entry *ddb_entry) qla4xxx_free_ddb()
54 ha->fw_ddb_index_map[ddb_entry->fw_ddb_index] = qla4xxx_free_ddb()
55 (struct ddb_entry *) INVALID_ENTRY; qla4xxx_free_ddb()
1004 struct ddb_entry *ddb_entry, uint32_t state) qla4xxx_ddb_change()
1009 old_fw_ddb_device_state = ddb_entry->fw_ddb_device_state; qla4xxx_ddb_change()
1013 ddb_entry->fw_ddb_device_state, state, fw_ddb_index)); qla4xxx_ddb_change()
1015 ddb_entry->fw_ddb_device_state = state; qla4xxx_ddb_change()
1022 qla4xxx_update_session_conn_param(ha, ddb_entry); qla4xxx_ddb_change()
1023 ddb_entry->unblock_sess(ddb_entry->sess); qla4xxx_ddb_change()
1028 iscsi_conn_login_event(ddb_entry->conn, qla4xxx_ddb_change()
1043 iscsi_session_failure(ddb_entry->sess->dd_data, qla4xxx_ddb_change()
1057 ddb_entry->unblock_sess(ddb_entry->sess); qla4xxx_ddb_change()
1058 qla4xxx_update_session_conn_param(ha, ddb_entry); qla4xxx_ddb_change()
1062 iscsi_session_failure(ddb_entry->sess->dd_data, qla4xxx_ddb_change()
1076 void qla4xxx_arm_relogin_timer(struct ddb_entry *ddb_entry) qla4xxx_arm_relogin_timer() argument
1091 atomic_set(&ddb_entry->relogin_timer, 0); qla4xxx_arm_relogin_timer()
1092 atomic_set(&ddb_entry->retry_relogin_timer, qla4xxx_arm_relogin_timer()
1093 ddb_entry->default_time2wait + 4); qla4xxx_arm_relogin_timer()
1098 struct ddb_entry *ddb_entry, uint32_t state) qla4xxx_flash_ddb_change()
1103 old_fw_ddb_device_state = ddb_entry->fw_ddb_device_state; qla4xxx_flash_ddb_change()
1107 ddb_entry->fw_ddb_device_state, state, fw_ddb_index)); qla4xxx_flash_ddb_change()
1109 ddb_entry->fw_ddb_device_state = state; qla4xxx_flash_ddb_change()
1116 ddb_entry->unblock_sess(ddb_entry->sess); qla4xxx_flash_ddb_change()
1117 qla4xxx_update_session_conn_fwddb_param(ha, ddb_entry); qla4xxx_flash_ddb_change()
1121 iscsi_block_session(ddb_entry->sess); qla4xxx_flash_ddb_change()
1122 if (!test_bit(DF_RELOGIN, &ddb_entry->flags)) qla4xxx_flash_ddb_change()
1123 qla4xxx_arm_relogin_timer(ddb_entry); qla4xxx_flash_ddb_change()
1131 iscsi_block_session(ddb_entry->sess); qla4xxx_flash_ddb_change()
1132 if (!test_bit(DF_RELOGIN, &ddb_entry->flags)) qla4xxx_flash_ddb_change()
1133 qla4xxx_arm_relogin_timer(ddb_entry); qla4xxx_flash_ddb_change()
1141 ddb_entry->unblock_sess(ddb_entry->sess); qla4xxx_flash_ddb_change()
1142 qla4xxx_update_session_conn_fwddb_param(ha, ddb_entry); qla4xxx_flash_ddb_change()
1146 if (!test_bit(DF_RELOGIN, &ddb_entry->flags)) qla4xxx_flash_ddb_change()
1147 qla4xxx_arm_relogin_timer(ddb_entry); qla4xxx_flash_ddb_change()
1172 struct ddb_entry *ddb_entry; qla4xxx_process_ddb_changed() local
1180 ddb_entry = qla4xxx_lookup_ddb_by_fw_index(ha, fw_ddb_index); qla4xxx_process_ddb_changed()
1182 if (ddb_entry == NULL) { qla4xxx_process_ddb_changed()
1183 ql4_printk(KERN_ERR, ha, "%s: No ddb_entry at FW index [%d]\n", qla4xxx_process_ddb_changed()
1192 ddb_entry->ddb_change(ha, fw_ddb_index, ddb_entry, state); qla4xxx_process_ddb_changed()
1208 struct ddb_entry *ddb_entry; qla4xxx_login_flash_ddb() local
1216 ddb_entry = sess->dd_data; qla4xxx_login_flash_ddb()
1217 ha = ddb_entry->ha; qla4xxx_login_flash_ddb()
1222 if (ddb_entry->ddb_type != FLASH_DDB) { qla4xxx_login_flash_ddb()
1235 if (ddb_entry->fw_ddb_index == INVALID_ENTRY) { qla4xxx_login_flash_ddb()
1236 ret = qla4xxx_get_ddb_index(ha, &ddb_entry->fw_ddb_index); qla4xxx_login_flash_ddb()
1240 ha->fw_ddb_index_map[ddb_entry->fw_ddb_index] = ddb_entry; qla4xxx_login_flash_ddb()
1244 memcpy(fw_ddb_entry, &ddb_entry->fw_ddb_entry, qla4xxx_login_flash_ddb()
1246 ddb_entry->sess->target_id = ddb_entry->fw_ddb_index; qla4xxx_login_flash_ddb()
1248 ret = qla4xxx_set_ddb_entry(ha, ddb_entry->fw_ddb_index, qla4xxx_login_flash_ddb()
1255 ddb_entry->fw_ddb_device_state = DDB_DS_LOGIN_IN_PROCESS; qla4xxx_login_flash_ddb()
1256 ret = qla4xxx_conn_open(ha, ddb_entry->fw_ddb_index); qla4xxx_login_flash_ddb()
50 qla4xxx_free_ddb(struct scsi_qla_host *ha, struct ddb_entry *ddb_entry) qla4xxx_free_ddb() argument
1003 qla4xxx_ddb_change(struct scsi_qla_host *ha, uint32_t fw_ddb_index, struct ddb_entry *ddb_entry, uint32_t state) qla4xxx_ddb_change() argument
1097 qla4xxx_flash_ddb_change(struct scsi_qla_host *ha, uint32_t fw_ddb_index, struct ddb_entry *ddb_entry, uint32_t state) qla4xxx_flash_ddb_change() argument
H A Dql4_glbl.h20 void qla4xxx_free_ddb(struct scsi_qla_host *ha, struct ddb_entry *ddb_entry);
25 int qla4xxx_reset_lun(struct scsi_qla_host *ha, struct ddb_entry *ddb_entry,
28 struct ddb_entry *ddb_entry);
79 struct ddb_entry *ddb_entry, uint64_t lun, uint16_t mrkr_mod);
151 struct ddb_entry *ddb_entry,
155 struct ddb_entry *ddb_entry, int options);
164 struct ddb_entry *ddb_entry);
166 struct ddb_entry *ddb_entry);
184 struct ddb_entry *ddb_entry, uint32_t state);
186 struct ddb_entry *ddb_entry, uint32_t state);
204 void qla4xxx_arm_relogin_timer(struct ddb_entry *ddb_entry);
H A Dql4_os.c789 struct ddb_entry *ddb_entry; __qla4xxx_is_chap_active() local
796 ddb_entry = sess->dd_data; __qla4xxx_is_chap_active()
801 if (ddb_entry->chap_tbl_idx == *chap_tbl_idx) __qla4xxx_is_chap_active()
1768 struct ddb_entry *ddb_entry; qla4xxx_conn_get_stats() local
1777 ddb_entry = sess->dd_data; qla4xxx_conn_get_stats()
1778 ha = ddb_entry->ha; qla4xxx_conn_get_stats()
1792 ret = qla4xxx_get_mgmt_data(ha, ddb_entry->fw_ddb_index, stats_size, qla4xxx_conn_get_stats()
2807 struct ddb_entry *ddb_entry = sess->dd_data; qla4xxx_session_get_param() local
2808 struct scsi_qla_host *ha = ddb_entry->ha; qla4xxx_session_get_param()
2809 struct iscsi_cls_conn *cls_conn = ddb_entry->conn; qla4xxx_session_get_param()
2826 if (ddb_entry->ddb_type == FLASH_DDB) { qla4xxx_session_get_param()
2827 if (ddb_entry->chap_tbl_idx != INVALID_ENTRY) { qla4xxx_session_get_param()
2828 idx = ddb_entry->chap_tbl_idx; qla4xxx_session_get_param()
2849 if (ddb_entry->ddb_type == FLASH_DDB && qla4xxx_session_get_param()
2850 ddb_entry->chap_tbl_idx != INVALID_ENTRY && qla4xxx_session_get_param()
2852 idx = ddb_entry->chap_tbl_idx; qla4xxx_session_get_param()
2934 struct ddb_entry *ddb_entry, qla4xxx_match_ipaddress()
2942 if (ddb_entry->fw_ddb_entry.options & DDB_OPT_IPV6_DEVICE) { qla4xxx_match_ipaddress()
2974 struct ddb_entry *ddb_entry; qla4xxx_match_fwdb_session() local
2988 ddb_entry = qla4xxx_lookup_ddb_by_fw_index(ha, idx); qla4xxx_match_fwdb_session()
2989 if (ddb_entry == NULL) qla4xxx_match_fwdb_session()
2992 if (ddb_entry->ddb_type != FLASH_DDB) qla4xxx_match_fwdb_session()
2995 existing_sess = ddb_entry->sess->dd_data; qla4xxx_match_fwdb_session()
2996 existing_conn = ddb_entry->conn->dd_data; qla4xxx_match_fwdb_session()
3020 rval = qla4xxx_match_ipaddress(ha, ddb_entry, qla4xxx_match_fwdb_session()
3046 struct ddb_entry *ddb_entry; qla4xxx_session_create() local
3068 cmds_max, sizeof(struct ddb_entry), qla4xxx_session_create()
3075 ddb_entry = sess->dd_data; qla4xxx_session_create()
3076 ddb_entry->fw_ddb_index = ddb_index; qla4xxx_session_create()
3077 ddb_entry->fw_ddb_device_state = DDB_DS_NO_CONNECTION_ACTIVE; qla4xxx_session_create()
3078 ddb_entry->ha = ha; qla4xxx_session_create()
3079 ddb_entry->sess = cls_sess; qla4xxx_session_create()
3080 ddb_entry->unblock_sess = qla4xxx_unblock_ddb; qla4xxx_session_create()
3081 ddb_entry->ddb_change = qla4xxx_ddb_change; qla4xxx_session_create()
3082 clear_bit(DDB_CONN_CLOSE_FAILURE, &ddb_entry->flags); qla4xxx_session_create()
3084 ha->fw_ddb_index_map[ddb_entry->fw_ddb_index] = ddb_entry; qla4xxx_session_create()
3093 struct ddb_entry *ddb_entry; qla4xxx_session_destroy() local
3102 ddb_entry = sess->dd_data; qla4xxx_session_destroy()
3103 ha = ddb_entry->ha; qla4xxx_session_destroy()
3117 ret = qla4xxx_get_fwddb_entry(ha, ddb_entry->fw_ddb_index, qla4xxx_session_destroy()
3132 qla4xxx_clear_ddb_entry(ha, ddb_entry->fw_ddb_index); qla4xxx_session_destroy()
3133 if (test_and_clear_bit(DDB_CONN_CLOSE_FAILURE, &ddb_entry->flags)) qla4xxx_session_destroy()
3134 clear_bit(ddb_entry->fw_ddb_index, ha->ddb_idx_map); qla4xxx_session_destroy()
3136 qla4xxx_free_ddb(ha, ddb_entry); qla4xxx_session_destroy()
3151 struct ddb_entry *ddb_entry; qla4xxx_conn_create() local
3163 ddb_entry = sess->dd_data; qla4xxx_conn_create()
3164 ddb_entry->conn = cls_conn; qla4xxx_conn_create()
3166 ha = ddb_entry->ha; qla4xxx_conn_create()
3179 struct ddb_entry *ddb_entry; qla4xxx_conn_bind() local
3184 ddb_entry = sess->dd_data; qla4xxx_conn_bind()
3185 ha = ddb_entry->ha; qla4xxx_conn_bind()
3203 struct ddb_entry *ddb_entry; qla4xxx_conn_start() local
3212 ddb_entry = sess->dd_data; qla4xxx_conn_start()
3213 ha = ddb_entry->ha; qla4xxx_conn_start()
3238 ret = qla4xxx_set_param_ddbentry(ha, ddb_entry, cls_conn, &mbx_sts); qla4xxx_conn_start()
3246 if (ddb_entry->fw_ddb_device_state == qla4xxx_conn_start()
3248 ddb_entry->unblock_sess(ddb_entry->sess); qla4xxx_conn_start()
3253 __func__, ddb_entry->fw_ddb_index); qla4xxx_conn_start()
3257 status = qla4xxx_conn_open(ha, ddb_entry->fw_ddb_index); qla4xxx_conn_start()
3265 if (ddb_entry->fw_ddb_device_state == DDB_DS_NO_CONNECTION_ACTIVE) qla4xxx_conn_start()
3266 ddb_entry->fw_ddb_device_state = DDB_DS_LOGIN_IN_PROCESS; qla4xxx_conn_start()
3269 ddb_entry->fw_ddb_device_state)); qla4xxx_conn_start()
3286 struct ddb_entry *ddb_entry; qla4xxx_conn_destroy() local
3290 ddb_entry = sess->dd_data; qla4xxx_conn_destroy()
3291 ha = ddb_entry->ha; qla4xxx_conn_destroy()
3296 if (qla4xxx_session_logout_ddb(ha, ddb_entry, options) == QLA_ERROR) qla4xxx_conn_destroy()
3348 struct ddb_entry *ddb_entry; qla4xxx_alloc_pdu() local
3353 ddb_entry = sess->dd_data; qla4xxx_alloc_pdu()
3354 ha = ddb_entry->ha; qla4xxx_alloc_pdu()
3414 struct ddb_entry *ddb_entry; qla4xxx_task_cleanup() local
3420 ddb_entry = sess->dd_data; qla4xxx_task_cleanup()
3421 ha = ddb_entry->ha; qla4xxx_task_cleanup()
3443 struct ddb_entry *ddb_entry = sess->dd_data; qla4xxx_task_xmit() local
3444 struct scsi_qla_host *ha = ddb_entry->ha; qla4xxx_task_xmit()
3809 struct ddb_entry *ddb_entry; qla4xxx_copy_fwddb_param() local
3816 ddb_entry = sess->dd_data; qla4xxx_copy_fwddb_param()
3820 ddb_entry->chap_tbl_idx = le16_to_cpu(fw_ddb_entry->chap_tbl_idx); qla4xxx_copy_fwddb_param()
3846 if (ddb_entry->chap_tbl_idx != INVALID_ENTRY) { qla4xxx_copy_fwddb_param()
3849 ddb_entry->chap_tbl_idx)) { qla4xxx_copy_fwddb_param()
3861 struct ddb_entry *ddb_entry) qla4xxx_update_session_conn_fwddb_param()
3877 if (qla4xxx_get_fwddb_entry(ha, ddb_entry->fw_ddb_index, fw_ddb_entry, qla4xxx_update_session_conn_fwddb_param()
3883 ddb_entry->fw_ddb_index)); qla4xxx_update_session_conn_fwddb_param()
3887 cls_sess = ddb_entry->sess; qla4xxx_update_session_conn_fwddb_param()
3889 cls_conn = ddb_entry->conn; qla4xxx_update_session_conn_fwddb_param()
3901 struct ddb_entry *ddb_entry) qla4xxx_update_session_conn_param()
3919 if (qla4xxx_get_fwddb_entry(ha, ddb_entry->fw_ddb_index, fw_ddb_entry, qla4xxx_update_session_conn_param()
3925 ddb_entry->fw_ddb_index)); qla4xxx_update_session_conn_param()
3929 cls_sess = ddb_entry->sess; qla4xxx_update_session_conn_param()
3932 cls_conn = ddb_entry->conn; qla4xxx_update_session_conn_param()
3936 ddb_entry->default_relogin_timeout = qla4xxx_update_session_conn_param()
3940 ddb_entry->default_time2wait = qla4xxx_update_session_conn_param()
3944 ddb_entry->chap_tbl_idx = le16_to_cpu(fw_ddb_entry->chap_tbl_idx); qla4xxx_update_session_conn_param()
3982 * @ddb_entry: Pointer to device database entry
4003 struct ddb_entry *ddb_entry, qla4xxx_get_new_srb()
4014 srb->ddb = ddb_entry; qla4xxx_get_new_srb()
4062 struct ddb_entry *ddb_entry = cmd->device->hostdata; qla4xxx_queuecommand() local
4063 struct iscsi_cls_session *sess = ddb_entry->sess; qla4xxx_queuecommand()
4099 srb = qla4xxx_get_new_srb(ha, ddb_entry, cmd); qla4xxx_queuecommand()
4457 struct ddb_entry *ddb_entry; qla4xxx_check_relogin_flash_ddb() local
4461 ddb_entry = sess->dd_data; qla4xxx_check_relogin_flash_ddb()
4462 ha = ddb_entry->ha; qla4xxx_check_relogin_flash_ddb()
4464 if (!(ddb_entry->ddb_type == FLASH_DDB)) qla4xxx_check_relogin_flash_ddb()
4467 if (adapter_up(ha) && !test_bit(DF_RELOGIN, &ddb_entry->flags) && qla4xxx_check_relogin_flash_ddb()
4469 if (atomic_read(&ddb_entry->retry_relogin_timer) != qla4xxx_check_relogin_flash_ddb()
4471 if (atomic_read(&ddb_entry->retry_relogin_timer) == qla4xxx_check_relogin_flash_ddb()
4473 atomic_set(&ddb_entry->retry_relogin_timer, qla4xxx_check_relogin_flash_ddb()
4476 set_bit(DF_RELOGIN, &ddb_entry->flags); qla4xxx_check_relogin_flash_ddb()
4479 __func__, ddb_entry->fw_ddb_index)); qla4xxx_check_relogin_flash_ddb()
4481 atomic_dec(&ddb_entry->retry_relogin_timer); qla4xxx_check_relogin_flash_ddb()
4486 if (atomic_read(&ddb_entry->relogin_timer) && qla4xxx_check_relogin_flash_ddb()
4487 (atomic_dec_and_test(&ddb_entry->relogin_timer) != 0)) { qla4xxx_check_relogin_flash_ddb()
4494 atomic_inc(&ddb_entry->relogin_retry_count); qla4xxx_check_relogin_flash_ddb()
4498 ddb_entry->fw_ddb_index, qla4xxx_check_relogin_flash_ddb()
4499 atomic_read(&ddb_entry->relogin_retry_count), qla4xxx_check_relogin_flash_ddb()
4500 ddb_entry->default_time2wait + 4)); qla4xxx_check_relogin_flash_ddb()
4502 atomic_set(&ddb_entry->retry_relogin_timer, qla4xxx_check_relogin_flash_ddb()
4503 ddb_entry->default_time2wait + 4); qla4xxx_check_relogin_flash_ddb()
4795 struct ddb_entry *ddb_entry; qla4xxx_fail_session() local
4798 ddb_entry = sess->dd_data; qla4xxx_fail_session()
4799 ddb_entry->fw_ddb_device_state = DDB_DS_SESSION_FAILED; qla4xxx_fail_session()
4801 if (ddb_entry->ddb_type == FLASH_DDB) qla4xxx_fail_session()
4802 iscsi_block_session(ddb_entry->sess); qla4xxx_fail_session()
5021 struct ddb_entry *ddb_entry; qla4xxx_relogin_devices() local
5025 ddb_entry = sess->dd_data; qla4xxx_relogin_devices()
5026 ha = ddb_entry->ha; qla4xxx_relogin_devices()
5028 if (ddb_entry->fw_ddb_device_state == DDB_DS_SESSION_ACTIVE) { qla4xxx_relogin_devices()
5031 ddb_entry->fw_ddb_index); qla4xxx_relogin_devices()
5032 iscsi_unblock_session(ddb_entry->sess); qla4xxx_relogin_devices()
5035 if (ddb_entry->ddb_type == FLASH_DDB) { qla4xxx_relogin_devices()
5036 if (!(test_bit(DF_RELOGIN, &ddb_entry->flags) || qla4xxx_relogin_devices()
5038 &ddb_entry->flags))) qla4xxx_relogin_devices()
5039 qla4xxx_arm_relogin_timer(ddb_entry); qla4xxx_relogin_devices()
5050 struct ddb_entry *ddb_entry; qla4xxx_unblock_flash_ddb() local
5054 ddb_entry = sess->dd_data; qla4xxx_unblock_flash_ddb()
5055 ha = ddb_entry->ha; qla4xxx_unblock_flash_ddb()
5058 ddb_entry->fw_ddb_index); qla4xxx_unblock_flash_ddb()
5060 iscsi_unblock_session(ddb_entry->sess); qla4xxx_unblock_flash_ddb()
5066 ddb_entry->fw_ddb_index); qla4xxx_unblock_flash_ddb()
5067 scsi_queue_work(ha->host, &ddb_entry->sess->scan_work); qla4xxx_unblock_flash_ddb()
5075 struct ddb_entry *ddb_entry; qla4xxx_unblock_ddb() local
5080 ddb_entry = sess->dd_data; qla4xxx_unblock_ddb()
5081 ha = ddb_entry->ha; qla4xxx_unblock_ddb()
5084 ddb_entry->fw_ddb_index); qla4xxx_unblock_ddb()
5087 iscsi_conn_start(ddb_entry->conn); qla4xxx_unblock_ddb()
5088 iscsi_conn_login_event(ddb_entry->conn, qla4xxx_unblock_ddb()
5093 ha->host_no, __func__, ddb_entry->fw_ddb_index, qla4xxx_unblock_ddb()
5110 struct ddb_entry *ddb_entry; qla4xxx_relogin_flash_ddb() local
5114 ddb_entry = sess->dd_data; qla4xxx_relogin_flash_ddb()
5115 ha = ddb_entry->ha; qla4xxx_relogin_flash_ddb()
5117 relogin_timer = max(ddb_entry->default_relogin_timeout, qla4xxx_relogin_flash_ddb()
5119 atomic_set(&ddb_entry->relogin_timer, relogin_timer); qla4xxx_relogin_flash_ddb()
5123 ddb_entry->fw_ddb_index, relogin_timer)); qla4xxx_relogin_flash_ddb()
5131 struct ddb_entry *ddb_entry; qla4xxx_dpc_relogin() local
5135 ddb_entry = sess->dd_data; qla4xxx_dpc_relogin()
5136 ha = ddb_entry->ha; qla4xxx_dpc_relogin()
5138 if (!(ddb_entry->ddb_type == FLASH_DDB)) qla4xxx_dpc_relogin()
5141 if (test_bit(DF_DISABLE_RELOGIN, &ddb_entry->flags)) qla4xxx_dpc_relogin()
5144 if (test_and_clear_bit(DF_RELOGIN, &ddb_entry->flags) && qla4xxx_dpc_relogin()
6240 static void qla4xxx_get_param_ddb(struct ddb_entry *ddb_entry, qla4xxx_get_param_ddb() argument
6250 ha = ddb_entry->ha; qla4xxx_get_param_ddb()
6251 cls_sess = ddb_entry->sess; qla4xxx_get_param_ddb()
6253 cls_conn = ddb_entry->conn; qla4xxx_get_param_ddb()
6334 struct ddb_entry *ddb_entry; qla4xxx_is_session_exists() local
6359 ddb_entry = qla4xxx_lookup_ddb_by_fw_index(ha, idx); qla4xxx_is_session_exists()
6360 if (ddb_entry == NULL) qla4xxx_is_session_exists()
6363 qla4xxx_get_param_ddb(ddb_entry, tmp_tddb); qla4xxx_is_session_exists()
6592 struct ddb_entry *ddb_entry, qla4xxx_setup_flash_ddb_entry()
6597 ddb_entry->ddb_type = FLASH_DDB; qla4xxx_setup_flash_ddb_entry()
6598 ddb_entry->fw_ddb_index = INVALID_ENTRY; qla4xxx_setup_flash_ddb_entry()
6599 ddb_entry->fw_ddb_device_state = DDB_DS_NO_CONNECTION_ACTIVE; qla4xxx_setup_flash_ddb_entry()
6600 ddb_entry->ha = ha; qla4xxx_setup_flash_ddb_entry()
6601 ddb_entry->unblock_sess = qla4xxx_unblock_flash_ddb; qla4xxx_setup_flash_ddb_entry()
6602 ddb_entry->ddb_change = qla4xxx_flash_ddb_change; qla4xxx_setup_flash_ddb_entry()
6603 ddb_entry->chap_tbl_idx = INVALID_ENTRY; qla4xxx_setup_flash_ddb_entry()
6605 atomic_set(&ddb_entry->retry_relogin_timer, INVALID_ENTRY); qla4xxx_setup_flash_ddb_entry()
6606 atomic_set(&ddb_entry->relogin_timer, 0); qla4xxx_setup_flash_ddb_entry()
6607 atomic_set(&ddb_entry->relogin_retry_count, 0); qla4xxx_setup_flash_ddb_entry()
6608 def_timeout = le16_to_cpu(ddb_entry->fw_ddb_entry.def_timeout); qla4xxx_setup_flash_ddb_entry()
6609 ddb_entry->default_relogin_timeout = qla4xxx_setup_flash_ddb_entry()
6612 ddb_entry->default_time2wait = qla4xxx_setup_flash_ddb_entry()
6613 le16_to_cpu(ddb_entry->fw_ddb_entry.iscsi_def_time2wait); qla4xxx_setup_flash_ddb_entry()
6617 set_bit(DF_BOOT_TGT, &ddb_entry->flags); qla4xxx_setup_flash_ddb_entry()
6848 struct ddb_entry *ddb_entry, qla4xxx_update_sess_disc_idx()
6859 cls_sess = ddb_entry->sess; qla4xxx_update_sess_disc_idx()
6882 struct ddb_entry *ddb_entry = NULL; qla4xxx_sess_conn_setup() local
6888 cmds_max, sizeof(struct ddb_entry), qla4xxx_sess_conn_setup()
6902 ddb_entry = sess->dd_data; qla4xxx_sess_conn_setup()
6903 ddb_entry->sess = cls_sess; qla4xxx_sess_conn_setup()
6906 memcpy(&ddb_entry->fw_ddb_entry, fw_ddb_entry, qla4xxx_sess_conn_setup()
6909 qla4xxx_setup_flash_ddb_entry(ha, ddb_entry, idx); qla4xxx_sess_conn_setup()
6918 ddb_entry->conn = cls_conn; qla4xxx_sess_conn_setup()
6933 qla4xxx_update_sess_disc_idx(ha, ddb_entry, fw_ddb_entry); qla4xxx_sess_conn_setup()
6943 set_bit(DF_RELOGIN, &ddb_entry->flags); qla4xxx_sess_conn_setup()
6977 struct ddb_entry *ddb_entry = NULL; qla4xxx_build_nt_list() local
7057 ddb_entry = qla4xxx_lookup_ddb_by_fw_index(ha, qla4xxx_build_nt_list()
7059 if (ddb_entry != NULL) qla4xxx_build_nt_list()
7061 ddb_entry, qla4xxx_build_nt_list()
7394 struct dev_db_entry *ddb_entry = NULL; qla4xxx_sysfs_ddb_conn_open() local
7402 ddb_entry = dma_alloc_coherent(&ha->pdev->dev, sizeof(*ddb_entry), qla4xxx_sysfs_ddb_conn_open()
7404 if (!ddb_entry) { qla4xxx_sysfs_ddb_conn_open()
7411 memcpy(ddb_entry, fw_ddb_entry, sizeof(*ddb_entry)); qla4xxx_sysfs_ddb_conn_open()
7447 if (ddb_entry) qla4xxx_sysfs_ddb_conn_open()
7448 dma_free_coherent(&ha->pdev->dev, sizeof(*ddb_entry), qla4xxx_sysfs_ddb_conn_open()
7449 ddb_entry, ddb_entry_dma); qla4xxx_sysfs_ddb_conn_open()
7587 struct ddb_entry *ddb_entry = NULL; qla4xxx_sysfs_ddb_logout_sid() local
7598 ddb_entry = sess->dd_data; qla4xxx_sysfs_ddb_logout_sid()
7599 ha = ddb_entry->ha; qla4xxx_sysfs_ddb_logout_sid()
7601 if (ddb_entry->ddb_type != FLASH_DDB) { qla4xxx_sysfs_ddb_logout_sid()
7608 if (test_bit(DF_BOOT_TGT, &ddb_entry->flags)) { qla4xxx_sysfs_ddb_logout_sid()
7625 if (test_and_set_bit(DF_DISABLE_RELOGIN, &ddb_entry->flags)) qla4xxx_sysfs_ddb_logout_sid()
7628 ret = qla4xxx_get_fwddb_entry(ha, ddb_entry->fw_ddb_index, qla4xxx_sysfs_ddb_logout_sid()
7643 if (test_and_clear_bit(DF_RELOGIN, &ddb_entry->flags)) qla4xxx_sysfs_ddb_logout_sid()
7650 atomic_set(&ddb_entry->retry_relogin_timer, INVALID_ENTRY); qla4xxx_sysfs_ddb_logout_sid()
7651 atomic_set(&ddb_entry->relogin_timer, 0); qla4xxx_sysfs_ddb_logout_sid()
7654 qla4xxx_session_logout_ddb(ha, ddb_entry, options); qla4xxx_sysfs_ddb_logout_sid()
7659 ret = qla4xxx_get_fwddb_entry(ha, ddb_entry->fw_ddb_index, qla4xxx_sysfs_ddb_logout_sid()
7674 qla4xxx_clear_ddb_entry(ha, ddb_entry->fw_ddb_index); qla4xxx_sysfs_ddb_logout_sid()
7682 iscsi_destroy_endpoint(ddb_entry->conn->ep); qla4xxx_sysfs_ddb_logout_sid()
7685 qla4xxx_free_ddb(ha, ddb_entry); qla4xxx_sysfs_ddb_logout_sid()
7686 clear_bit(ddb_entry->fw_ddb_index, ha->ddb_idx_map); qla4xxx_sysfs_ddb_logout_sid()
7689 iscsi_session_teardown(ddb_entry->sess); qla4xxx_sysfs_ddb_logout_sid()
7691 clear_bit(DF_DISABLE_RELOGIN, &ddb_entry->flags); qla4xxx_sysfs_ddb_logout_sid()
7716 struct ddb_entry *ddb_entry = NULL; qla4xxx_sysfs_ddb_logout() local
7778 ddb_entry = qla4xxx_lookup_ddb_by_fw_index(ha, idx); qla4xxx_sysfs_ddb_logout()
7779 if (ddb_entry == NULL) qla4xxx_sysfs_ddb_logout()
7782 if (ddb_entry->ddb_type != FLASH_DDB) qla4xxx_sysfs_ddb_logout()
7785 index = ddb_entry->sess->target_id; qla4xxx_sysfs_ddb_logout()
7800 ret = qla4xxx_sysfs_ddb_logout_sid(ddb_entry->sess); qla4xxx_sysfs_ddb_logout()
8526 struct ddb_entry *ddb_entry; qla4xxx_wait_login_resp_boot_tgt() local
8547 ddb_entry = qla4xxx_lookup_ddb_by_fw_index(ha, idx); qla4xxx_wait_login_resp_boot_tgt()
8548 if (ddb_entry == NULL) qla4xxx_wait_login_resp_boot_tgt()
8551 if (test_bit(DF_BOOT_TGT, &ddb_entry->flags)) { qla4xxx_wait_login_resp_boot_tgt()
8554 ddb_entry->fw_ddb_index)); qla4xxx_wait_login_resp_boot_tgt()
8557 ddb_entry->fw_ddb_index, qla4xxx_wait_login_resp_boot_tgt()
8911 struct ddb_entry *ddb_entry) qla4xxx_destroy_ddb()
8921 if (qla4xxx_session_logout_ddb(ha, ddb_entry, options) == QLA_ERROR) { qla4xxx_destroy_ddb()
8936 status = qla4xxx_get_fwddb_entry(ha, ddb_entry->fw_ddb_index, qla4xxx_destroy_ddb()
8954 qla4xxx_clear_ddb_entry(ha, ddb_entry->fw_ddb_index); qla4xxx_destroy_ddb()
8959 struct ddb_entry *ddb_entry; qla4xxx_destroy_fw_ddb_session() local
8964 ddb_entry = qla4xxx_lookup_ddb_by_fw_index(ha, idx); qla4xxx_destroy_fw_ddb_session()
8965 if ((ddb_entry != NULL) && qla4xxx_destroy_fw_ddb_session()
8966 (ddb_entry->ddb_type == FLASH_DDB)) { qla4xxx_destroy_fw_ddb_session()
8968 qla4xxx_destroy_ddb(ha, ddb_entry); qla4xxx_destroy_fw_ddb_session()
8976 iscsi_destroy_endpoint(ddb_entry->conn->ep); qla4xxx_destroy_fw_ddb_session()
8977 qla4xxx_free_ddb(ha, ddb_entry); qla4xxx_destroy_fw_ddb_session()
8978 iscsi_session_teardown(ddb_entry->sess); qla4xxx_destroy_fw_ddb_session()
9050 struct ddb_entry *ddb; qla4xxx_slave_alloc()
9260 struct ddb_entry *ddb_entry = cmd->device->hostdata; qla4xxx_eh_device_reset() local
9263 if (!ddb_entry) qla4xxx_eh_device_reset()
9282 stat = qla4xxx_reset_lun(ha, ddb_entry, cmd->device->lun); qla4xxx_eh_device_reset()
9297 if (qla4xxx_send_marker_iocb(ha, ddb_entry, cmd->device->lun, qla4xxx_eh_device_reset()
9322 struct ddb_entry *ddb_entry = cmd->device->hostdata; qla4xxx_eh_target_reset() local
9325 if (!ddb_entry) qla4xxx_eh_target_reset()
9341 stat = qla4xxx_reset_target(ha, ddb_entry); qla4xxx_eh_target_reset()
9357 if (qla4xxx_send_marker_iocb(ha, ddb_entry, cmd->device->lun, qla4xxx_eh_target_reset()
2933 qla4xxx_match_ipaddress(struct scsi_qla_host *ha, struct ddb_entry *ddb_entry, char *existing_ipaddr, char *user_ipaddr) qla4xxx_match_ipaddress() argument
3860 qla4xxx_update_session_conn_fwddb_param(struct scsi_qla_host *ha, struct ddb_entry *ddb_entry) qla4xxx_update_session_conn_fwddb_param() argument
3900 qla4xxx_update_session_conn_param(struct scsi_qla_host *ha, struct ddb_entry *ddb_entry) qla4xxx_update_session_conn_param() argument
4002 qla4xxx_get_new_srb(struct scsi_qla_host *ha, struct ddb_entry *ddb_entry, struct scsi_cmnd *cmd) qla4xxx_get_new_srb() argument
6591 qla4xxx_setup_flash_ddb_entry(struct scsi_qla_host *ha, struct ddb_entry *ddb_entry, uint16_t idx) qla4xxx_setup_flash_ddb_entry() argument
6847 qla4xxx_update_sess_disc_idx(struct scsi_qla_host *ha, struct ddb_entry *ddb_entry, struct dev_db_entry *fw_ddb_entry) qla4xxx_update_sess_disc_idx() argument
8910 qla4xxx_destroy_ddb(struct scsi_qla_host *ha, struct ddb_entry *ddb_entry) qla4xxx_destroy_ddb() argument
H A Dql4_iocb.c79 * @ddb_entry: Pointer to device database entry
86 struct ddb_entry *ddb_entry, uint64_t lun, uint16_t mrkr_mod) qla4xxx_send_marker_iocb()
105 marker_entry->target = cpu_to_le16(ddb_entry->fw_ddb_index); qla4xxx_send_marker_iocb()
276 struct ddb_entry *ddb_entry; qla4xxx_send_command_to_isp() local
285 ddb_entry = srb->ddb; qla4xxx_send_command_to_isp()
326 cmd_entry->target = cpu_to_le16(ddb_entry->fw_ddb_index); qla4xxx_send_command_to_isp()
388 struct ddb_entry *ddb_entry = sess->dd_data; qla4xxx_send_passthru0() local
389 struct scsi_qla_host *ha = ddb_entry->ha; qla4xxx_send_passthru0()
408 passthru_iocb->target = cpu_to_le16(ddb_entry->fw_ddb_index); qla4xxx_send_passthru0()
85 qla4xxx_send_marker_iocb(struct scsi_qla_host *ha, struct ddb_entry *ddb_entry, uint64_t lun, uint16_t mrkr_mod) qla4xxx_send_marker_iocb() argument
H A Dql4_mbx.c981 struct ddb_entry *ddb_entry, int options) qla4xxx_session_logout_ddb()
991 mbox_cmd[1] = ddb_entry->fw_ddb_index; qla4xxx_session_logout_ddb()
1003 set_bit(DDB_CONN_CLOSE_FAILURE, &ddb_entry->flags); qla4xxx_session_logout_ddb()
1170 * The caller must ensure that the ddb_entry and lun_entry pointers
1220 * @ddb_entry: Pointer to device database entry
1224 * The caller must ensure that the ddb_entry and lun_entry pointers
1227 int qla4xxx_reset_lun(struct scsi_qla_host * ha, struct ddb_entry * ddb_entry, qla4xxx_reset_lun() argument
1236 ddb_entry->fw_ddb_index, lun)); qla4xxx_reset_lun()
1247 mbox_cmd[1] = ddb_entry->fw_ddb_index; qla4xxx_reset_lun()
1271 * The caller must ensure that the ddb_entry pointers
1275 struct ddb_entry *ddb_entry) qla4xxx_reset_target()
1282 ddb_entry->fw_ddb_index)); qla4xxx_reset_target()
1292 mbox_cmd[1] = ddb_entry->fw_ddb_index; qla4xxx_reset_target()
1989 struct ddb_entry *ddb_entry, qla4xxx_set_param_ddbentry()
2033 *ptid = cpu_to_le16((uint16_t)ddb_entry->sess->target_id); qla4xxx_set_param_ddbentry()
2064 ddb_entry->fw_ddb_index)); qla4xxx_set_param_ddbentry()
2074 ddb_entry->fw_ddb_index)); qla4xxx_set_param_ddbentry()
2142 status = qla4xxx_set_ddb_entry(ha, ddb_entry->fw_ddb_index, qla4xxx_set_param_ddbentry()
980 qla4xxx_session_logout_ddb(struct scsi_qla_host *ha, struct ddb_entry *ddb_entry, int options) qla4xxx_session_logout_ddb() argument
1274 qla4xxx_reset_target(struct scsi_qla_host *ha, struct ddb_entry *ddb_entry) qla4xxx_reset_target() argument
1988 qla4xxx_set_param_ddbentry(struct scsi_qla_host *ha, struct ddb_entry *ddb_entry, struct iscsi_cls_conn *cls_conn, uint32_t *mbx_sts) qla4xxx_set_param_ddbentry() argument
H A Dql4_isr.c121 struct ddb_entry *ddb_entry; qla4xxx_status_entry() local
147 ddb_entry = srb->ddb; qla4xxx_status_entry()
148 if (ddb_entry == NULL) { qla4xxx_status_entry()
227 if (iscsi_is_session_online(ddb_entry->sess)) qla4xxx_status_entry()
228 qla4xxx_mark_device_missing(ddb_entry->sess); qla4xxx_status_entry()
325 if (iscsi_is_session_online(ddb_entry->sess)) qla4xxx_status_entry()
326 qla4xxx_mark_device_missing(ddb_entry->sess); qla4xxx_status_entry()
368 struct ddb_entry *ddb_entry; qla4xxx_passthru_status_entry() local
378 ddb_entry = qla4xxx_lookup_ddb_by_fw_index(ha, fw_ddb_index); qla4xxx_passthru_status_entry()
380 if (ddb_entry == NULL) { qla4xxx_passthru_status_entry()
386 cls_conn = ddb_entry->conn; qla4xxx_passthru_status_entry()
H A Dql4_def.h226 struct ddb_entry *ddb;
283 struct ddb_entry { struct
296 struct ddb_entry *ddb_entry, uint32_t state);
730 struct ddb_entry *fw_ddb_index_map[MAX_DDB_ENTRIES];

Completed in 189 milliseconds