Lines Matching defs:sess
137 static void qla4xxx_session_destroy(struct iscsi_cls_session *sess);
838 struct iscsi_session *sess;
845 sess = cls_session->dd_data;
846 ddb_entry = sess->dd_data;
1819 struct iscsi_session *sess;
1829 sess = cls_sess->dd_data;
1830 ddb_entry = sess->dd_data;
2861 struct iscsi_session *sess = cls_sess->dd_data;
2862 struct ddb_entry *ddb_entry = sess->dd_data;
2872 rval = qla4xxx_get_chap_index(ha, sess->username_in,
2873 sess->password_in, BIDI_CHAP,
2889 rval = qla4xxx_get_chap_index(ha, sess->username,
2890 sess->password,
2906 !sess->username && !sess->password) {
3027 struct iscsi_session *sess, *existing_sess;
3031 sess = cls_sess->dd_data;
3034 if (sess->targetname == NULL ||
3050 existing_sess = ddb_entry->sess->dd_data;
3061 sess->targetname));
3073 if (strcmp(existing_sess->targetname, sess->targetname))
3103 struct iscsi_session *sess;
3127 sess = cls_sess->dd_data;
3128 ddb_entry = sess->dd_data;
3132 ddb_entry->sess = cls_sess;
3145 struct iscsi_session *sess;
3154 sess = cls_sess->dd_data;
3155 ddb_entry = sess->dd_data;
3203 struct iscsi_session *sess;
3215 sess = cls_sess->dd_data;
3216 ddb_entry = sess->dd_data;
3234 struct iscsi_session *sess;
3236 sess = cls_session->dd_data;
3237 ddb_entry = sess->dd_data;
3258 struct iscsi_session *sess;
3267 sess = cls_sess->dd_data;
3268 ddb_entry = sess->dd_data;
3304 ddb_entry->unblock_sess(ddb_entry->sess);
3316 sess->targetname);
3340 struct iscsi_session *sess;
3345 sess = cls_sess->dd_data;
3346 ddb_entry = sess->dd_data;
3403 struct iscsi_session *sess;
3408 sess = task->conn->session;
3409 ddb_entry = sess->dd_data;
3469 struct iscsi_session *sess;
3475 sess = task->conn->session;
3476 ddb_entry = sess->dd_data;
3498 struct iscsi_session *sess = task->conn->session;
3499 struct ddb_entry *ddb_entry = sess->dd_data;
3510 static int qla4xxx_copy_from_fwddb_param(struct iscsi_bus_flash_session *sess,
3520 rc = iscsi_switch_str_param(&sess->portal_type,
3525 rc = iscsi_switch_str_param(&sess->portal_type,
3531 sess->auto_snd_tgt_disable = test_bit(OPT_AUTO_SENDTGTS_DISABLE,
3533 sess->discovery_sess = test_bit(OPT_DISC_SESSION, &options);
3534 sess->entry_state = test_bit(OPT_ENTRY_STATE, &options);
3539 sess->imm_data_en = test_bit(ISCSIOPT_IMMEDIATE_DATA_EN, &options);
3540 sess->initial_r2t_en = test_bit(ISCSIOPT_INITIAL_R2T_EN, &options);
3541 sess->dataseq_inorder_en = test_bit(ISCSIOPT_DATA_SEQ_IN_ORDER,
3543 sess->pdu_inorder_en = test_bit(ISCSIOPT_DATA_PDU_IN_ORDER, &options);
3544 sess->chap_auth_en = test_bit(ISCSIOPT_CHAP_AUTH_EN, &options);
3546 sess->discovery_logout_en = test_bit(ISCSIOPT_DISCOVERY_LOGOUT_EN,
3548 sess->bidi_chap_en = test_bit(ISCSIOPT_BIDI_CHAP_EN, &options);
3549 sess->discovery_auth_optional =
3552 sess->erl |= BIT_1;
3554 sess->erl |= BIT_0;
3577 sess->first_burst = BYTE_UNITS *
3579 sess->max_burst = BYTE_UNITS *
3581 sess->max_r2t = le16_to_cpu(fw_ddb_entry->iscsi_max_outsnd_r2t);
3582 sess->time2wait = le16_to_cpu(fw_ddb_entry->iscsi_def_time2wait);
3583 sess->time2retain = le16_to_cpu(fw_ddb_entry->iscsi_def_time2retain);
3584 sess->tpgt = le32_to_cpu(fw_ddb_entry->tgt_portal_grp);
3593 sess->discovery_parent_idx = le16_to_cpu(fw_ddb_entry->ddb_link);
3594 sess->discovery_parent_type = le16_to_cpu(fw_ddb_entry->ddb_link);
3595 sess->chap_out_idx = le16_to_cpu(fw_ddb_entry->chap_tbl_idx);
3596 sess->tsid = le16_to_cpu(fw_ddb_entry->tsid);
3598 sess->default_taskmgmt_timeout =
3633 rc = iscsi_switch_str_param(&sess->targetname,
3640 rc = iscsi_switch_str_param(&sess->targetalias,
3646 COPY_ISID(sess->isid, fw_ddb_entry->isid);
3652 static int qla4xxx_copy_to_fwddb_param(struct iscsi_bus_flash_session *sess,
3661 if (!strncmp(sess->portal_type, PORTAL_TYPE_IPV6, 4))
3666 SET_BITVAL(sess->auto_snd_tgt_disable, options, BIT_6);
3667 SET_BITVAL(sess->discovery_sess, options, BIT_4);
3668 SET_BITVAL(sess->entry_state, options, BIT_3);
3674 SET_BITVAL(sess->imm_data_en, options, BIT_11);
3675 SET_BITVAL(sess->initial_r2t_en, options, BIT_10);
3676 SET_BITVAL(sess->dataseq_inorder_en, options, BIT_9);
3677 SET_BITVAL(sess->pdu_inorder_en, options, BIT_8);
3678 SET_BITVAL(sess->chap_auth_en, options, BIT_7);
3680 SET_BITVAL(sess->discovery_logout_en, options, BIT_5);
3681 SET_BITVAL(sess->bidi_chap_en, options, BIT_4);
3682 SET_BITVAL(sess->discovery_auth_optional, options, BIT_3);
3683 SET_BITVAL(sess->erl & BIT_1, options, BIT_1);
3684 SET_BITVAL(sess->erl & BIT_0, options, BIT_0);
3701 fw_ddb_entry->iscsi_max_outsnd_r2t = cpu_to_le16(sess->max_r2t);
3707 cpu_to_le16(sess->first_burst / BYTE_UNITS);
3708 fw_ddb_entry->iscsi_max_burst_len = cpu_to_le16(sess->max_burst /
3710 fw_ddb_entry->iscsi_def_time2wait = cpu_to_le16(sess->time2wait);
3711 fw_ddb_entry->iscsi_def_time2retain = cpu_to_le16(sess->time2retain);
3712 fw_ddb_entry->tgt_portal_grp = cpu_to_le16(sess->tpgt);
3721 fw_ddb_entry->ddb_link = cpu_to_le16(sess->discovery_parent_idx);
3722 fw_ddb_entry->chap_tbl_idx = cpu_to_le16(sess->chap_out_idx);
3723 fw_ddb_entry->tsid = cpu_to_le16(sess->tsid);
3726 cpu_to_le16(sess->default_taskmgmt_timeout);
3728 if (!strncmp(sess->portal_type, PORTAL_TYPE_IPV6, 4))
3746 if (sess->targetname)
3747 memcpy(fw_ddb_entry->iscsi_name, sess->targetname,
3750 if (sess->targetalias)
3751 memcpy(fw_ddb_entry->iscsi_alias, sess->targetalias,
3754 COPY_ISID(fw_ddb_entry->isid, sess->isid);
3760 struct iscsi_session *sess,
3770 sess->auto_snd_tgt_disable = test_bit(OPT_AUTO_SENDTGTS_DISABLE,
3772 sess->discovery_sess = test_bit(OPT_DISC_SESSION, &options);
3777 sess->imm_data_en = test_bit(ISCSIOPT_IMMEDIATE_DATA_EN, &options);
3778 sess->initial_r2t_en = test_bit(ISCSIOPT_INITIAL_R2T_EN, &options);
3779 sess->dataseq_inorder_en = test_bit(ISCSIOPT_DATA_SEQ_IN_ORDER,
3781 sess->pdu_inorder_en = test_bit(ISCSIOPT_DATA_PDU_IN_ORDER, &options);
3782 sess->chap_auth_en = test_bit(ISCSIOPT_CHAP_AUTH_EN, &options);
3783 sess->discovery_logout_en = test_bit(ISCSIOPT_DISCOVERY_LOGOUT_EN,
3785 sess->bidi_chap_en = test_bit(ISCSIOPT_BIDI_CHAP_EN, &options);
3786 sess->discovery_auth_optional =
3789 sess->erl |= BIT_1;
3791 sess->erl |= BIT_0;
3814 sess->max_r2t = le16_to_cpu(fw_ddb_entry->iscsi_max_outsnd_r2t);
3815 sess->first_burst = BYTE_UNITS *
3817 sess->max_burst = BYTE_UNITS *
3819 sess->time2wait = le16_to_cpu(fw_ddb_entry->iscsi_def_time2wait);
3820 sess->time2retain = le16_to_cpu(fw_ddb_entry->iscsi_def_time2retain);
3821 sess->tpgt = le32_to_cpu(fw_ddb_entry->tgt_portal_grp);
3830 sess->tsid = le16_to_cpu(fw_ddb_entry->tsid);
3831 COPY_ISID(sess->isid, fw_ddb_entry->isid);
3864 struct iscsi_session *sess;
3871 sess = cls_sess->dd_data;
3872 ddb_entry = sess->dd_data;
3878 qla4xxx_copy_to_sess_conn_params(conn, sess, fw_ddb_entry);
3880 sess->def_taskmgmt_tmo = le16_to_cpu(fw_ddb_entry->def_timeout);
3943 cls_sess = ddb_entry->sess;
3961 struct iscsi_session *sess;
3985 cls_sess = ddb_entry->sess;
3986 sess = cls_sess->dd_data;
4001 qla4xxx_copy_to_sess_conn_params(conn, sess, fw_ddb_entry);
4003 memcpy(sess->initiatorname, ha->name_string,
4004 min(sizeof(ha->name_string), sizeof(sess->initiatorname)));
4118 struct iscsi_cls_session *sess = ddb_entry->sess;
4130 if (!sess) {
4135 rval = iscsi_session_chkready(sess);
4505 struct iscsi_session *sess;
4509 sess = cls_sess->dd_data;
4510 ddb_entry = sess->dd_data;
4844 struct iscsi_session *sess;
4847 sess = cls_session->dd_data;
4848 ddb_entry = sess->dd_data;
4852 iscsi_block_session(ddb_entry->sess);
5070 struct iscsi_session *sess;
5074 sess = cls_session->dd_data;
5075 ddb_entry = sess->dd_data;
5082 iscsi_unblock_session(ddb_entry->sess);
5099 struct iscsi_session *sess;
5103 sess = cls_session->dd_data;
5104 ddb_entry = sess->dd_data;
5110 iscsi_unblock_session(ddb_entry->sess);
5117 scsi_queue_work(ha->host, &ddb_entry->sess->scan_work);
5124 struct iscsi_session *sess;
5129 sess = cls_session->dd_data;
5130 ddb_entry = sess->dd_data;
5159 struct iscsi_session *sess;
5163 sess = cls_sess->dd_data;
5164 ddb_entry = sess->dd_data;
5180 struct iscsi_session *sess;
5184 sess = cls_sess->dd_data;
5185 ddb_entry = sess->dd_data;
6292 struct iscsi_session *sess;
6296 cls_sess = ddb_entry->sess;
6297 sess = cls_sess->dd_data;
6301 tddb->tpgt = sess->tpgt;
6303 strlcpy(tddb->iscsi_name, sess->targetname, ISCSI_NAME_SIZE);
6893 struct iscsi_session *sess;
6900 cls_sess = ddb_entry->sess;
6901 sess = cls_sess->dd_data;
6905 sess->discovery_parent_idx = ddb_link;
6907 sess->discovery_parent_idx = DDB_NO_LINK;
6915 struct iscsi_session *sess;
6942 sess = cls_sess->dd_data;
6943 ddb_entry = sess->dd_data;
6944 ddb_entry->sess = cls_sess;
6972 /* Update sess/conn params */
7629 struct iscsi_session *sess;
7640 sess = cls_sess->dd_data;
7641 ddb_entry = sess->dd_data;
7732 iscsi_session_teardown(ddb_entry->sess);
7828 index = ddb_entry->sess->target_id;
7843 ret = qla4xxx_sysfs_ddb_logout_sid(ddb_entry->sess);
9015 iscsi_session_teardown(ddb_entry->sess);
9077 struct iscsi_session *sess;
9082 sess = cls_sess->dd_data;
9083 ddb = sess->dd_data;