Lines Matching refs:sess
48 if (conn->sess->sess_ops->RDMAExtensions) in iscsit_dump_data_payload()
182 conn->sess->sess_ops->MaxBurstLength) { in iscsit_create_recovery_datain_values_datasequenceinorder_yes()
189 (conn->sess->sess_ops->MaxBurstLength - in iscsit_create_recovery_datain_values_datasequenceinorder_yes()
198 if (!conn->sess->sess_ops->DataPDUInOrder) { in iscsit_create_recovery_datain_values_datasequenceinorder_yes()
299 if (conn->sess->sess_ops->DataPDUInOrder) { in iscsit_create_recovery_datain_values_datasequenceinorder_no()
362 (conn->sess->sess_ops->DataPDUInOrder) ? "Yes" : "No"); in iscsit_create_recovery_datain_values_datasequenceinorder_no()
594 if (conn->sess->sess_ops->DataSequenceInOrder) { in iscsit_dataout_datapduinorder_no_fbit()
668 if (conn->sess->sess_ops->DataSequenceInOrder) { in iscsit_recalculate_dataout_values()
671 if (conn->sess->sess_ops->DataPDUInOrder) { in iscsit_recalculate_dataout_values()
718 if (conn->sess->sess_ops->DataPDUInOrder) in iscsit_recalculate_dataout_values()
770 struct iscsit_session *sess, in iscsit_attach_ooo_cmdsn() argument
775 lockdep_assert_held(&sess->cmdsn_mutex); in iscsit_attach_ooo_cmdsn()
783 if (list_empty(&sess->sess_ooo_cmdsn_list)) in iscsit_attach_ooo_cmdsn()
785 &sess->sess_ooo_cmdsn_list); in iscsit_attach_ooo_cmdsn()
787 ooo_tail = list_entry(sess->sess_ooo_cmdsn_list.prev, in iscsit_attach_ooo_cmdsn()
794 &sess->sess_ooo_cmdsn_list); in iscsit_attach_ooo_cmdsn()
800 list_for_each_entry(ooo_tmp, &sess->sess_ooo_cmdsn_list, in iscsit_attach_ooo_cmdsn()
821 struct iscsit_session *sess, in iscsit_remove_ooo_cmdsn() argument
831 struct iscsit_session *sess = conn->sess; in iscsit_clear_ooo_cmdsns_for_conn() local
833 mutex_lock(&sess->cmdsn_mutex); in iscsit_clear_ooo_cmdsns_for_conn()
834 list_for_each_entry(ooo_cmdsn, &sess->sess_ooo_cmdsn_list, ooo_list) { in iscsit_clear_ooo_cmdsns_for_conn()
840 mutex_unlock(&sess->cmdsn_mutex); in iscsit_clear_ooo_cmdsns_for_conn()
843 int iscsit_execute_ooo_cmdsns(struct iscsit_session *sess) in iscsit_execute_ooo_cmdsns() argument
849 lockdep_assert_held(&sess->cmdsn_mutex); in iscsit_execute_ooo_cmdsns()
852 &sess->sess_ooo_cmdsn_list, ooo_list) { in iscsit_execute_ooo_cmdsns()
853 if (ooo_cmdsn->cmdsn != sess->exp_cmd_sn) in iscsit_execute_ooo_cmdsns()
857 sess->exp_cmd_sn++; in iscsit_execute_ooo_cmdsns()
858 iscsit_remove_ooo_cmdsn(sess, ooo_cmdsn); in iscsit_execute_ooo_cmdsns()
865 sess->exp_cmd_sn++; in iscsit_execute_ooo_cmdsns()
868 cmd->cmd_sn, sess->exp_cmd_sn); in iscsit_execute_ooo_cmdsns()
870 iscsit_remove_ooo_cmdsn(sess, ooo_cmdsn); in iscsit_execute_ooo_cmdsns()
997 void iscsit_free_all_ooo_cmdsns(struct iscsit_session *sess) in iscsit_free_all_ooo_cmdsns() argument
1001 mutex_lock(&sess->cmdsn_mutex); in iscsit_free_all_ooo_cmdsns()
1003 &sess->sess_ooo_cmdsn_list, ooo_list) { in iscsit_free_all_ooo_cmdsns()
1008 mutex_unlock(&sess->cmdsn_mutex); in iscsit_free_all_ooo_cmdsns()
1012 struct iscsit_session *sess, in iscsit_handle_ooo_cmdsn() argument
1023 if (list_empty(&sess->sess_ooo_cmdsn_list)) in iscsit_handle_ooo_cmdsn()
1026 ooo_tail = list_entry(sess->sess_ooo_cmdsn_list.prev, in iscsit_handle_ooo_cmdsn()
1038 (cmdsn - sess->exp_cmd_sn) : 1; in iscsit_handle_ooo_cmdsn()
1040 ooo_cmdsn->exp_cmdsn = sess->exp_cmd_sn; in iscsit_handle_ooo_cmdsn()
1043 if (iscsit_attach_ooo_cmdsn(sess, ooo_cmdsn) < 0) { in iscsit_handle_ooo_cmdsn()
1061 *length = (conn->sess->sess_ops->FirstBurstLength > in iscsit_set_dataout_timeout_values()
1064 conn->sess->sess_ops->FirstBurstLength; in iscsit_set_dataout_timeout_values()
1100 struct iscsit_session *sess = NULL; in iscsit_handle_dataout_timeout() local
1112 sess = conn->sess; in iscsit_handle_dataout_timeout()
1113 na = iscsit_tpg_get_node_attrib(sess); in iscsit_handle_dataout_timeout()
1115 if (!sess->sess_ops->ErrorRecoveryLevel) { in iscsit_handle_dataout_timeout()
1119 sess->sess_ops->InitiatorName, sess->isid, in iscsit_handle_dataout_timeout()
1120 sess->tpg->tpg_tiqn->tiqn, (u32)sess->tpg->tpgt); in iscsit_handle_dataout_timeout()
1129 sess->sess_ops->InitiatorName, sess->isid, in iscsit_handle_dataout_timeout()
1130 sess->tpg->tpg_tiqn->tiqn, (u32)sess->tpg->tpgt); in iscsit_handle_dataout_timeout()
1136 if (conn->sess->sess_ops->DataSequenceInOrder) { in iscsit_handle_dataout_timeout()
1137 if (conn->sess->sess_ops->DataPDUInOrder) { in iscsit_handle_dataout_timeout()
1139 if ((pdu_offset + (conn->sess->sess_ops->MaxBurstLength - in iscsit_handle_dataout_timeout()
1144 pdu_length = (conn->sess->sess_ops->MaxBurstLength - in iscsit_handle_dataout_timeout()
1177 iscsit_fill_cxn_timeout_err_stats(sess); in iscsit_handle_dataout_timeout()
1185 struct iscsit_session *sess = conn->sess; in iscsit_mod_dataout_timer() local
1186 struct iscsi_node_attrib *na = iscsit_tpg_get_node_attrib(sess); in iscsit_mod_dataout_timer()
1205 struct iscsit_session *sess = conn->sess; in iscsit_start_dataout_timer() local
1206 struct iscsi_node_attrib *na = iscsit_tpg_get_node_attrib(sess); in iscsit_start_dataout_timer()