Lines Matching refs:ddb_entry

838 	struct ddb_entry *ddb_entry;  in __qla4xxx_is_chap_active()  local
845 ddb_entry = sess->dd_data; in __qla4xxx_is_chap_active()
850 if (ddb_entry->chap_tbl_idx == *chap_tbl_idx) in __qla4xxx_is_chap_active()
1815 struct ddb_entry *ddb_entry; in qla4xxx_conn_get_stats() local
1824 ddb_entry = sess->dd_data; in qla4xxx_conn_get_stats()
1825 ha = ddb_entry->ha; in qla4xxx_conn_get_stats()
1839 ret = qla4xxx_get_mgmt_data(ha, ddb_entry->fw_ddb_index, stats_size, in qla4xxx_conn_get_stats()
2851 struct ddb_entry *ddb_entry = sess->dd_data; in qla4xxx_session_get_param() local
2852 struct scsi_qla_host *ha = ddb_entry->ha; in qla4xxx_session_get_param()
2853 struct iscsi_cls_conn *cls_conn = ddb_entry->conn; in qla4xxx_session_get_param()
2870 if (ddb_entry->ddb_type == FLASH_DDB) { in qla4xxx_session_get_param()
2871 if (ddb_entry->chap_tbl_idx != INVALID_ENTRY) { in qla4xxx_session_get_param()
2872 idx = ddb_entry->chap_tbl_idx; in qla4xxx_session_get_param()
2893 if (ddb_entry->ddb_type == FLASH_DDB && in qla4xxx_session_get_param()
2894 ddb_entry->chap_tbl_idx != INVALID_ENTRY && in qla4xxx_session_get_param()
2896 idx = ddb_entry->chap_tbl_idx; in qla4xxx_session_get_param()
2978 struct ddb_entry *ddb_entry, in qla4xxx_match_ipaddress() argument
2986 if (ddb_entry->fw_ddb_entry.options & DDB_OPT_IPV6_DEVICE) { in qla4xxx_match_ipaddress()
3018 struct ddb_entry *ddb_entry; in qla4xxx_match_fwdb_session() local
3032 ddb_entry = qla4xxx_lookup_ddb_by_fw_index(ha, idx); in qla4xxx_match_fwdb_session()
3033 if (ddb_entry == NULL) in qla4xxx_match_fwdb_session()
3036 if (ddb_entry->ddb_type != FLASH_DDB) in qla4xxx_match_fwdb_session()
3039 existing_sess = ddb_entry->sess->dd_data; in qla4xxx_match_fwdb_session()
3040 existing_conn = ddb_entry->conn->dd_data; in qla4xxx_match_fwdb_session()
3064 rval = qla4xxx_match_ipaddress(ha, ddb_entry, in qla4xxx_match_fwdb_session()
3090 struct ddb_entry *ddb_entry; in qla4xxx_session_create() local
3110 cmds_max, sizeof(struct ddb_entry), in qla4xxx_session_create()
3117 ddb_entry = sess->dd_data; in qla4xxx_session_create()
3118 ddb_entry->fw_ddb_index = ddb_index; in qla4xxx_session_create()
3119 ddb_entry->fw_ddb_device_state = DDB_DS_NO_CONNECTION_ACTIVE; in qla4xxx_session_create()
3120 ddb_entry->ha = ha; in qla4xxx_session_create()
3121 ddb_entry->sess = cls_sess; in qla4xxx_session_create()
3122 ddb_entry->unblock_sess = qla4xxx_unblock_ddb; in qla4xxx_session_create()
3123 ddb_entry->ddb_change = qla4xxx_ddb_change; in qla4xxx_session_create()
3124 clear_bit(DDB_CONN_CLOSE_FAILURE, &ddb_entry->flags); in qla4xxx_session_create()
3126 ha->fw_ddb_index_map[ddb_entry->fw_ddb_index] = ddb_entry; in qla4xxx_session_create()
3135 struct ddb_entry *ddb_entry; in qla4xxx_session_destroy() local
3144 ddb_entry = sess->dd_data; in qla4xxx_session_destroy()
3145 ha = ddb_entry->ha; in qla4xxx_session_destroy()
3159 ret = qla4xxx_get_fwddb_entry(ha, ddb_entry->fw_ddb_index, in qla4xxx_session_destroy()
3174 qla4xxx_clear_ddb_entry(ha, ddb_entry->fw_ddb_index); in qla4xxx_session_destroy()
3175 if (test_and_clear_bit(DDB_CONN_CLOSE_FAILURE, &ddb_entry->flags)) in qla4xxx_session_destroy()
3176 clear_bit(ddb_entry->fw_ddb_index, ha->ddb_idx_map); in qla4xxx_session_destroy()
3178 qla4xxx_free_ddb(ha, ddb_entry); in qla4xxx_session_destroy()
3193 struct ddb_entry *ddb_entry; in qla4xxx_conn_create() local
3205 ddb_entry = sess->dd_data; in qla4xxx_conn_create()
3206 ddb_entry->conn = cls_conn; in qla4xxx_conn_create()
3208 ha = ddb_entry->ha; in qla4xxx_conn_create()
3221 struct ddb_entry *ddb_entry; in qla4xxx_conn_bind() local
3226 ddb_entry = sess->dd_data; in qla4xxx_conn_bind()
3227 ha = ddb_entry->ha; in qla4xxx_conn_bind()
3247 struct ddb_entry *ddb_entry; in qla4xxx_conn_start() local
3256 ddb_entry = sess->dd_data; in qla4xxx_conn_start()
3257 ha = ddb_entry->ha; in qla4xxx_conn_start()
3282 ret = qla4xxx_set_param_ddbentry(ha, ddb_entry, cls_conn, &mbx_sts); in qla4xxx_conn_start()
3290 if (ddb_entry->fw_ddb_device_state == in qla4xxx_conn_start()
3292 ddb_entry->unblock_sess(ddb_entry->sess); in qla4xxx_conn_start()
3297 __func__, ddb_entry->fw_ddb_index); in qla4xxx_conn_start()
3301 status = qla4xxx_conn_open(ha, ddb_entry->fw_ddb_index); in qla4xxx_conn_start()
3309 if (ddb_entry->fw_ddb_device_state == DDB_DS_NO_CONNECTION_ACTIVE) in qla4xxx_conn_start()
3310 ddb_entry->fw_ddb_device_state = DDB_DS_LOGIN_IN_PROCESS; in qla4xxx_conn_start()
3313 ddb_entry->fw_ddb_device_state)); in qla4xxx_conn_start()
3330 struct ddb_entry *ddb_entry; in qla4xxx_conn_destroy() local
3334 ddb_entry = sess->dd_data; in qla4xxx_conn_destroy()
3335 ha = ddb_entry->ha; in qla4xxx_conn_destroy()
3340 if (qla4xxx_session_logout_ddb(ha, ddb_entry, options) == QLA_ERROR) in qla4xxx_conn_destroy()
3392 struct ddb_entry *ddb_entry; in qla4xxx_alloc_pdu() local
3397 ddb_entry = sess->dd_data; in qla4xxx_alloc_pdu()
3398 ha = ddb_entry->ha; in qla4xxx_alloc_pdu()
3458 struct ddb_entry *ddb_entry; in qla4xxx_task_cleanup() local
3464 ddb_entry = sess->dd_data; in qla4xxx_task_cleanup()
3465 ha = ddb_entry->ha; in qla4xxx_task_cleanup()
3487 struct ddb_entry *ddb_entry = sess->dd_data; in qla4xxx_task_xmit() local
3488 struct scsi_qla_host *ha = ddb_entry->ha; in qla4xxx_task_xmit()
3853 struct ddb_entry *ddb_entry; in qla4xxx_copy_fwddb_param() local
3860 ddb_entry = sess->dd_data; in qla4xxx_copy_fwddb_param()
3864 ddb_entry->chap_tbl_idx = le16_to_cpu(fw_ddb_entry->chap_tbl_idx); in qla4xxx_copy_fwddb_param()
3890 if (ddb_entry->chap_tbl_idx != INVALID_ENTRY) { in qla4xxx_copy_fwddb_param()
3893 ddb_entry->chap_tbl_idx)) { in qla4xxx_copy_fwddb_param()
3905 struct ddb_entry *ddb_entry) in qla4xxx_update_session_conn_fwddb_param() argument
3921 if (qla4xxx_get_fwddb_entry(ha, ddb_entry->fw_ddb_index, fw_ddb_entry, in qla4xxx_update_session_conn_fwddb_param()
3927 ddb_entry->fw_ddb_index)); in qla4xxx_update_session_conn_fwddb_param()
3931 cls_sess = ddb_entry->sess; in qla4xxx_update_session_conn_fwddb_param()
3933 cls_conn = ddb_entry->conn; in qla4xxx_update_session_conn_fwddb_param()
3945 struct ddb_entry *ddb_entry) in qla4xxx_update_session_conn_param() argument
3963 if (qla4xxx_get_fwddb_entry(ha, ddb_entry->fw_ddb_index, fw_ddb_entry, in qla4xxx_update_session_conn_param()
3969 ddb_entry->fw_ddb_index)); in qla4xxx_update_session_conn_param()
3973 cls_sess = ddb_entry->sess; in qla4xxx_update_session_conn_param()
3976 cls_conn = ddb_entry->conn; in qla4xxx_update_session_conn_param()
3980 ddb_entry->default_relogin_timeout = in qla4xxx_update_session_conn_param()
3984 ddb_entry->default_time2wait = in qla4xxx_update_session_conn_param()
3988 ddb_entry->chap_tbl_idx = le16_to_cpu(fw_ddb_entry->chap_tbl_idx); in qla4xxx_update_session_conn_param()
4046 struct ddb_entry *ddb_entry, in qla4xxx_get_new_srb() argument
4057 srb->ddb = ddb_entry; in qla4xxx_get_new_srb()
4105 struct ddb_entry *ddb_entry = cmd->device->hostdata; in qla4xxx_queuecommand() local
4106 struct iscsi_cls_session *sess = ddb_entry->sess; in qla4xxx_queuecommand()
4142 srb = qla4xxx_get_new_srb(ha, ddb_entry, cmd); in qla4xxx_queuecommand()
4494 struct ddb_entry *ddb_entry; in qla4xxx_check_relogin_flash_ddb() local
4498 ddb_entry = sess->dd_data; in qla4xxx_check_relogin_flash_ddb()
4499 ha = ddb_entry->ha; in qla4xxx_check_relogin_flash_ddb()
4501 if (!(ddb_entry->ddb_type == FLASH_DDB)) in qla4xxx_check_relogin_flash_ddb()
4504 if (adapter_up(ha) && !test_bit(DF_RELOGIN, &ddb_entry->flags) && in qla4xxx_check_relogin_flash_ddb()
4506 if (atomic_read(&ddb_entry->retry_relogin_timer) != in qla4xxx_check_relogin_flash_ddb()
4508 if (atomic_read(&ddb_entry->retry_relogin_timer) == in qla4xxx_check_relogin_flash_ddb()
4510 atomic_set(&ddb_entry->retry_relogin_timer, in qla4xxx_check_relogin_flash_ddb()
4513 set_bit(DF_RELOGIN, &ddb_entry->flags); in qla4xxx_check_relogin_flash_ddb()
4516 __func__, ddb_entry->fw_ddb_index)); in qla4xxx_check_relogin_flash_ddb()
4518 atomic_dec(&ddb_entry->retry_relogin_timer); in qla4xxx_check_relogin_flash_ddb()
4523 if (atomic_read(&ddb_entry->relogin_timer) && in qla4xxx_check_relogin_flash_ddb()
4524 (atomic_dec_and_test(&ddb_entry->relogin_timer) != 0)) { in qla4xxx_check_relogin_flash_ddb()
4531 atomic_inc(&ddb_entry->relogin_retry_count); in qla4xxx_check_relogin_flash_ddb()
4535 ddb_entry->fw_ddb_index, in qla4xxx_check_relogin_flash_ddb()
4536 atomic_read(&ddb_entry->relogin_retry_count), in qla4xxx_check_relogin_flash_ddb()
4537 ddb_entry->default_time2wait + 4)); in qla4xxx_check_relogin_flash_ddb()
4539 atomic_set(&ddb_entry->retry_relogin_timer, in qla4xxx_check_relogin_flash_ddb()
4540 ddb_entry->default_time2wait + 4); in qla4xxx_check_relogin_flash_ddb()
4833 struct ddb_entry *ddb_entry; in qla4xxx_fail_session() local
4836 ddb_entry = sess->dd_data; in qla4xxx_fail_session()
4837 ddb_entry->fw_ddb_device_state = DDB_DS_SESSION_FAILED; in qla4xxx_fail_session()
4839 if (ddb_entry->ddb_type == FLASH_DDB) in qla4xxx_fail_session()
4840 iscsi_block_session(ddb_entry->sess); in qla4xxx_fail_session()
5059 struct ddb_entry *ddb_entry; in qla4xxx_relogin_devices() local
5063 ddb_entry = sess->dd_data; in qla4xxx_relogin_devices()
5064 ha = ddb_entry->ha; in qla4xxx_relogin_devices()
5066 if (ddb_entry->fw_ddb_device_state == DDB_DS_SESSION_ACTIVE) { in qla4xxx_relogin_devices()
5069 ddb_entry->fw_ddb_index); in qla4xxx_relogin_devices()
5070 iscsi_unblock_session(ddb_entry->sess); in qla4xxx_relogin_devices()
5073 if (ddb_entry->ddb_type == FLASH_DDB) { in qla4xxx_relogin_devices()
5074 if (!(test_bit(DF_RELOGIN, &ddb_entry->flags) || in qla4xxx_relogin_devices()
5076 &ddb_entry->flags))) in qla4xxx_relogin_devices()
5077 qla4xxx_arm_relogin_timer(ddb_entry); in qla4xxx_relogin_devices()
5088 struct ddb_entry *ddb_entry; in qla4xxx_unblock_flash_ddb() local
5092 ddb_entry = sess->dd_data; in qla4xxx_unblock_flash_ddb()
5093 ha = ddb_entry->ha; in qla4xxx_unblock_flash_ddb()
5096 ddb_entry->fw_ddb_index); in qla4xxx_unblock_flash_ddb()
5098 iscsi_unblock_session(ddb_entry->sess); in qla4xxx_unblock_flash_ddb()
5104 ddb_entry->fw_ddb_index); in qla4xxx_unblock_flash_ddb()
5105 scsi_queue_work(ha->host, &ddb_entry->sess->scan_work); in qla4xxx_unblock_flash_ddb()
5113 struct ddb_entry *ddb_entry; in qla4xxx_unblock_ddb() local
5118 ddb_entry = sess->dd_data; in qla4xxx_unblock_ddb()
5119 ha = ddb_entry->ha; in qla4xxx_unblock_ddb()
5122 ddb_entry->fw_ddb_index); in qla4xxx_unblock_ddb()
5125 iscsi_conn_start(ddb_entry->conn); in qla4xxx_unblock_ddb()
5126 iscsi_conn_login_event(ddb_entry->conn, in qla4xxx_unblock_ddb()
5131 ha->host_no, __func__, ddb_entry->fw_ddb_index, in qla4xxx_unblock_ddb()
5148 struct ddb_entry *ddb_entry; in qla4xxx_relogin_flash_ddb() local
5152 ddb_entry = sess->dd_data; in qla4xxx_relogin_flash_ddb()
5153 ha = ddb_entry->ha; in qla4xxx_relogin_flash_ddb()
5155 relogin_timer = max(ddb_entry->default_relogin_timeout, in qla4xxx_relogin_flash_ddb()
5157 atomic_set(&ddb_entry->relogin_timer, relogin_timer); in qla4xxx_relogin_flash_ddb()
5161 ddb_entry->fw_ddb_index, relogin_timer)); in qla4xxx_relogin_flash_ddb()
5169 struct ddb_entry *ddb_entry; in qla4xxx_dpc_relogin() local
5173 ddb_entry = sess->dd_data; in qla4xxx_dpc_relogin()
5174 ha = ddb_entry->ha; in qla4xxx_dpc_relogin()
5176 if (!(ddb_entry->ddb_type == FLASH_DDB)) in qla4xxx_dpc_relogin()
5179 if (test_bit(DF_DISABLE_RELOGIN, &ddb_entry->flags)) in qla4xxx_dpc_relogin()
5182 if (test_and_clear_bit(DF_RELOGIN, &ddb_entry->flags) && in qla4xxx_dpc_relogin()
6275 static void qla4xxx_get_param_ddb(struct ddb_entry *ddb_entry, in qla4xxx_get_param_ddb() argument
6284 cls_sess = ddb_entry->sess; in qla4xxx_get_param_ddb()
6286 cls_conn = ddb_entry->conn; in qla4xxx_get_param_ddb()
6363 struct ddb_entry *ddb_entry; in qla4xxx_is_session_exists() local
6388 ddb_entry = qla4xxx_lookup_ddb_by_fw_index(ha, idx); in qla4xxx_is_session_exists()
6389 if (ddb_entry == NULL) in qla4xxx_is_session_exists()
6392 qla4xxx_get_param_ddb(ddb_entry, tmp_tddb); in qla4xxx_is_session_exists()
6621 struct ddb_entry *ddb_entry, in qla4xxx_setup_flash_ddb_entry() argument
6626 ddb_entry->ddb_type = FLASH_DDB; in qla4xxx_setup_flash_ddb_entry()
6627 ddb_entry->fw_ddb_index = INVALID_ENTRY; in qla4xxx_setup_flash_ddb_entry()
6628 ddb_entry->fw_ddb_device_state = DDB_DS_NO_CONNECTION_ACTIVE; in qla4xxx_setup_flash_ddb_entry()
6629 ddb_entry->ha = ha; in qla4xxx_setup_flash_ddb_entry()
6630 ddb_entry->unblock_sess = qla4xxx_unblock_flash_ddb; in qla4xxx_setup_flash_ddb_entry()
6631 ddb_entry->ddb_change = qla4xxx_flash_ddb_change; in qla4xxx_setup_flash_ddb_entry()
6632 ddb_entry->chap_tbl_idx = INVALID_ENTRY; in qla4xxx_setup_flash_ddb_entry()
6634 atomic_set(&ddb_entry->retry_relogin_timer, INVALID_ENTRY); in qla4xxx_setup_flash_ddb_entry()
6635 atomic_set(&ddb_entry->relogin_timer, 0); in qla4xxx_setup_flash_ddb_entry()
6636 atomic_set(&ddb_entry->relogin_retry_count, 0); in qla4xxx_setup_flash_ddb_entry()
6637 def_timeout = le16_to_cpu(ddb_entry->fw_ddb_entry.def_timeout); in qla4xxx_setup_flash_ddb_entry()
6638 ddb_entry->default_relogin_timeout = in qla4xxx_setup_flash_ddb_entry()
6641 ddb_entry->default_time2wait = in qla4xxx_setup_flash_ddb_entry()
6642 le16_to_cpu(ddb_entry->fw_ddb_entry.iscsi_def_time2wait); in qla4xxx_setup_flash_ddb_entry()
6646 set_bit(DF_BOOT_TGT, &ddb_entry->flags); in qla4xxx_setup_flash_ddb_entry()
6877 struct ddb_entry *ddb_entry, in qla4xxx_update_sess_disc_idx() argument
6888 cls_sess = ddb_entry->sess; in qla4xxx_update_sess_disc_idx()
6911 struct ddb_entry *ddb_entry = NULL; in qla4xxx_sess_conn_setup() local
6917 cmds_max, sizeof(struct ddb_entry), in qla4xxx_sess_conn_setup()
6931 ddb_entry = sess->dd_data; in qla4xxx_sess_conn_setup()
6932 ddb_entry->sess = cls_sess; in qla4xxx_sess_conn_setup()
6935 memcpy(&ddb_entry->fw_ddb_entry, fw_ddb_entry, in qla4xxx_sess_conn_setup()
6938 qla4xxx_setup_flash_ddb_entry(ha, ddb_entry, idx); in qla4xxx_sess_conn_setup()
6947 ddb_entry->conn = cls_conn; in qla4xxx_sess_conn_setup()
6962 qla4xxx_update_sess_disc_idx(ha, ddb_entry, fw_ddb_entry); in qla4xxx_sess_conn_setup()
6972 set_bit(DF_RELOGIN, &ddb_entry->flags); in qla4xxx_sess_conn_setup()
7006 struct ddb_entry *ddb_entry = NULL; in qla4xxx_build_nt_list() local
7086 ddb_entry = qla4xxx_lookup_ddb_by_fw_index(ha, in qla4xxx_build_nt_list()
7088 if (ddb_entry != NULL) in qla4xxx_build_nt_list()
7090 ddb_entry, in qla4xxx_build_nt_list()
7425 struct dev_db_entry *ddb_entry = NULL; in qla4xxx_sysfs_ddb_conn_open() local
7433 ddb_entry = dma_alloc_coherent(&ha->pdev->dev, sizeof(*ddb_entry), in qla4xxx_sysfs_ddb_conn_open()
7435 if (!ddb_entry) { in qla4xxx_sysfs_ddb_conn_open()
7442 memcpy(ddb_entry, fw_ddb_entry, sizeof(*ddb_entry)); in qla4xxx_sysfs_ddb_conn_open()
7478 if (ddb_entry) in qla4xxx_sysfs_ddb_conn_open()
7479 dma_free_coherent(&ha->pdev->dev, sizeof(*ddb_entry), in qla4xxx_sysfs_ddb_conn_open()
7480 ddb_entry, ddb_entry_dma); in qla4xxx_sysfs_ddb_conn_open()
7618 struct ddb_entry *ddb_entry = NULL; in qla4xxx_sysfs_ddb_logout_sid() local
7629 ddb_entry = sess->dd_data; in qla4xxx_sysfs_ddb_logout_sid()
7630 ha = ddb_entry->ha; in qla4xxx_sysfs_ddb_logout_sid()
7632 if (ddb_entry->ddb_type != FLASH_DDB) { in qla4xxx_sysfs_ddb_logout_sid()
7639 if (test_bit(DF_BOOT_TGT, &ddb_entry->flags)) { in qla4xxx_sysfs_ddb_logout_sid()
7656 if (test_and_set_bit(DF_DISABLE_RELOGIN, &ddb_entry->flags)) in qla4xxx_sysfs_ddb_logout_sid()
7659 ret = qla4xxx_get_fwddb_entry(ha, ddb_entry->fw_ddb_index, in qla4xxx_sysfs_ddb_logout_sid()
7674 if (test_and_clear_bit(DF_RELOGIN, &ddb_entry->flags)) in qla4xxx_sysfs_ddb_logout_sid()
7681 atomic_set(&ddb_entry->retry_relogin_timer, INVALID_ENTRY); in qla4xxx_sysfs_ddb_logout_sid()
7682 atomic_set(&ddb_entry->relogin_timer, 0); in qla4xxx_sysfs_ddb_logout_sid()
7685 qla4xxx_session_logout_ddb(ha, ddb_entry, options); in qla4xxx_sysfs_ddb_logout_sid()
7690 ret = qla4xxx_get_fwddb_entry(ha, ddb_entry->fw_ddb_index, in qla4xxx_sysfs_ddb_logout_sid()
7705 qla4xxx_clear_ddb_entry(ha, ddb_entry->fw_ddb_index); in qla4xxx_sysfs_ddb_logout_sid()
7713 iscsi_destroy_endpoint(ddb_entry->conn->ep); in qla4xxx_sysfs_ddb_logout_sid()
7716 qla4xxx_free_ddb(ha, ddb_entry); in qla4xxx_sysfs_ddb_logout_sid()
7717 clear_bit(ddb_entry->fw_ddb_index, ha->ddb_idx_map); in qla4xxx_sysfs_ddb_logout_sid()
7720 iscsi_session_teardown(ddb_entry->sess); in qla4xxx_sysfs_ddb_logout_sid()
7722 clear_bit(DF_DISABLE_RELOGIN, &ddb_entry->flags); in qla4xxx_sysfs_ddb_logout_sid()
7747 struct ddb_entry *ddb_entry = NULL; in qla4xxx_sysfs_ddb_logout() local
7809 ddb_entry = qla4xxx_lookup_ddb_by_fw_index(ha, idx); in qla4xxx_sysfs_ddb_logout()
7810 if (ddb_entry == NULL) in qla4xxx_sysfs_ddb_logout()
7813 if (ddb_entry->ddb_type != FLASH_DDB) in qla4xxx_sysfs_ddb_logout()
7816 index = ddb_entry->sess->target_id; in qla4xxx_sysfs_ddb_logout()
7831 ret = qla4xxx_sysfs_ddb_logout_sid(ddb_entry->sess); in qla4xxx_sysfs_ddb_logout()
8554 struct ddb_entry *ddb_entry; in qla4xxx_wait_login_resp_boot_tgt() local
8575 ddb_entry = qla4xxx_lookup_ddb_by_fw_index(ha, idx); in qla4xxx_wait_login_resp_boot_tgt()
8576 if (ddb_entry == NULL) in qla4xxx_wait_login_resp_boot_tgt()
8579 if (test_bit(DF_BOOT_TGT, &ddb_entry->flags)) { in qla4xxx_wait_login_resp_boot_tgt()
8582 ddb_entry->fw_ddb_index)); in qla4xxx_wait_login_resp_boot_tgt()
8585 ddb_entry->fw_ddb_index, in qla4xxx_wait_login_resp_boot_tgt()
8931 struct ddb_entry *ddb_entry) in qla4xxx_destroy_ddb() argument
8941 if (qla4xxx_session_logout_ddb(ha, ddb_entry, options) == QLA_ERROR) { in qla4xxx_destroy_ddb()
8956 status = qla4xxx_get_fwddb_entry(ha, ddb_entry->fw_ddb_index, in qla4xxx_destroy_ddb()
8974 qla4xxx_clear_ddb_entry(ha, ddb_entry->fw_ddb_index); in qla4xxx_destroy_ddb()
8979 struct ddb_entry *ddb_entry; in qla4xxx_destroy_fw_ddb_session() local
8984 ddb_entry = qla4xxx_lookup_ddb_by_fw_index(ha, idx); in qla4xxx_destroy_fw_ddb_session()
8985 if ((ddb_entry != NULL) && in qla4xxx_destroy_fw_ddb_session()
8986 (ddb_entry->ddb_type == FLASH_DDB)) { in qla4xxx_destroy_fw_ddb_session()
8988 qla4xxx_destroy_ddb(ha, ddb_entry); in qla4xxx_destroy_fw_ddb_session()
8996 iscsi_destroy_endpoint(ddb_entry->conn->ep); in qla4xxx_destroy_fw_ddb_session()
8997 qla4xxx_free_ddb(ha, ddb_entry); in qla4xxx_destroy_fw_ddb_session()
8998 iscsi_session_teardown(ddb_entry->sess); in qla4xxx_destroy_fw_ddb_session()
9061 struct ddb_entry *ddb; in qla4xxx_slave_alloc()
9278 struct ddb_entry *ddb_entry = cmd->device->hostdata; in qla4xxx_eh_device_reset() local
9282 if (!ddb_entry) in qla4xxx_eh_device_reset()
9307 stat = qla4xxx_reset_lun(ha, ddb_entry, cmd->device->lun); in qla4xxx_eh_device_reset()
9322 if (qla4xxx_send_marker_iocb(ha, ddb_entry, cmd->device->lun, in qla4xxx_eh_device_reset()
9347 struct ddb_entry *ddb_entry = cmd->device->hostdata; in qla4xxx_eh_target_reset() local
9351 if (!ddb_entry) in qla4xxx_eh_target_reset()
9373 stat = qla4xxx_reset_target(ha, ddb_entry); in qla4xxx_eh_target_reset()
9389 if (qla4xxx_send_marker_iocb(ha, ddb_entry, cmd->device->lun, in qla4xxx_eh_target_reset()