Lines Matching refs:sess
42 conn->sess->sess_ops->FirstBurstLength); in iscsit_set_dataout_sequence_values()
46 if (!conn->sess->sess_ops->DataSequenceInOrder) in iscsit_set_dataout_sequence_values()
52 conn->sess->sess_ops->MaxBurstLength) ? in iscsit_set_dataout_sequence_values()
54 conn->sess->sess_ops->MaxBurstLength) : cmd->se_cmd.data_length; in iscsit_set_dataout_sequence_values()
58 conn->sess->sess_ops->MaxBurstLength) >= in iscsit_set_dataout_sequence_values()
61 conn->sess->sess_ops->MaxBurstLength); in iscsit_set_dataout_sequence_values()
85 if (conn->sess->sess_ops->DataSequenceInOrder) { in iscsit_dataout_within_command_recovery_check()
103 if (conn->sess->sess_ops->DataPDUInOrder) { in iscsit_dataout_within_command_recovery_check()
153 if (first_burst_len > conn->sess->sess_ops->FirstBurstLength) { in iscsit_dataout_check_unsolicited_sequence()
156 first_burst_len, conn->sess->sess_ops->FirstBurstLength); in iscsit_dataout_check_unsolicited_sequence()
172 if (!conn->sess->sess_ops->DataPDUInOrder) in iscsit_dataout_check_unsolicited_sequence()
176 (first_burst_len != conn->sess->sess_ops->FirstBurstLength)) { in iscsit_dataout_check_unsolicited_sequence()
180 conn->sess->sess_ops->FirstBurstLength, in iscsit_dataout_check_unsolicited_sequence()
187 if (first_burst_len == conn->sess->sess_ops->FirstBurstLength) { in iscsit_dataout_check_unsolicited_sequence()
191 conn->sess->sess_ops->FirstBurstLength); in iscsit_dataout_check_unsolicited_sequence()
223 if (conn->sess->sess_ops->DataSequenceInOrder) { in iscsit_dataout_check_sequence()
262 if (next_burst_len > conn->sess->sess_ops->MaxBurstLength) { in iscsit_dataout_check_sequence()
267 payload_length, conn->sess->sess_ops->MaxBurstLength); in iscsit_dataout_check_sequence()
281 if (!conn->sess->sess_ops->DataPDUInOrder) in iscsit_dataout_check_sequence()
284 if (conn->sess->sess_ops->DataSequenceInOrder) { in iscsit_dataout_check_sequence()
286 conn->sess->sess_ops->MaxBurstLength) && in iscsit_dataout_check_sequence()
303 if (conn->sess->sess_ops->DataSequenceInOrder) { in iscsit_dataout_check_sequence()
305 conn->sess->sess_ops->MaxBurstLength) { in iscsit_dataout_check_sequence()
309 conn->sess->sess_ops->MaxBurstLength); in iscsit_dataout_check_sequence()
352 if (conn->sess->sess_ops->DataSequenceInOrder) in iscsit_dataout_check_datasn()
374 if (!conn->sess->sess_ops->ErrorRecoveryLevel) { in iscsit_dataout_check_datasn()
404 if (conn->sess->sess_ops->DataSequenceInOrder) { in iscsit_dataout_pre_datapduinorder_yes()
434 if (!conn->sess->sess_ops->ErrorRecoveryLevel) { in iscsit_dataout_pre_datapduinorder_yes()
544 conn->sess->sess_ops->FirstBurstLength) { in iscsit_dataout_post_crc_passed()
551 if (!conn->sess->sess_ops->DataPDUInOrder) { in iscsit_dataout_post_crc_passed()
561 if (conn->sess->sess_ops->DataSequenceInOrder) in iscsit_dataout_post_crc_passed()
576 if (conn->sess->sess_ops->DataSequenceInOrder) { in iscsit_dataout_post_crc_passed()
578 conn->sess->sess_ops->MaxBurstLength) { in iscsit_dataout_post_crc_passed()
586 if (!conn->sess->sess_ops->DataPDUInOrder) { in iscsit_dataout_post_crc_passed()
611 if (!conn->sess->sess_ops->DataPDUInOrder) { in iscsit_dataout_post_crc_passed()
630 if (send_r2t && conn->sess->sess_ops->DataSequenceInOrder) in iscsit_dataout_post_crc_passed()
652 if (conn->sess->sess_ops->DataPDUInOrder) in iscsit_dataout_post_crc_failed()
710 return (conn->sess->sess_ops->DataPDUInOrder) ? in iscsit_check_pre_dataout()
731 if (!conn->sess->sess_ops->ErrorRecoveryLevel) { in iscsit_check_post_dataout()
746 struct iscsit_session *sess = from_timer(sess, t, time2retain_timer); in iscsit_handle_time2retain_timeout() local
747 struct iscsi_portal_group *tpg = sess->tpg; in iscsit_handle_time2retain_timeout()
751 if (sess->time2retain_timer_flags & ISCSI_TF_STOP) { in iscsit_handle_time2retain_timeout()
755 if (atomic_read(&sess->session_reinstatement)) { in iscsit_handle_time2retain_timeout()
761 sess->time2retain_timer_flags |= ISCSI_TF_EXPIRED; in iscsit_handle_time2retain_timeout()
764 " iSCSI session.\n", sess->sid); in iscsit_handle_time2retain_timeout()
766 iscsit_fill_cxn_timeout_err_stats(sess); in iscsit_handle_time2retain_timeout()
768 iscsit_close_session(sess, false); in iscsit_handle_time2retain_timeout()
771 void iscsit_start_time2retain_handler(struct iscsit_session *sess) in iscsit_start_time2retain_handler() argument
778 spin_lock(&sess->tpg->tpg_state_lock); in iscsit_start_time2retain_handler()
779 tpg_active = (sess->tpg->tpg_state == TPG_STATE_ACTIVE); in iscsit_start_time2retain_handler()
780 spin_unlock(&sess->tpg->tpg_state_lock); in iscsit_start_time2retain_handler()
785 if (sess->time2retain_timer_flags & ISCSI_TF_RUNNING) in iscsit_start_time2retain_handler()
789 " SID: %u\n", sess->sess_ops->DefaultTime2Retain, sess->sid); in iscsit_start_time2retain_handler()
791 sess->time2retain_timer_flags &= ~ISCSI_TF_STOP; in iscsit_start_time2retain_handler()
792 sess->time2retain_timer_flags |= ISCSI_TF_RUNNING; in iscsit_start_time2retain_handler()
793 mod_timer(&sess->time2retain_timer, in iscsit_start_time2retain_handler()
794 jiffies + sess->sess_ops->DefaultTime2Retain * HZ); in iscsit_start_time2retain_handler()
797 int iscsit_stop_time2retain_timer(struct iscsit_session *sess) in iscsit_stop_time2retain_timer() argument
799 struct iscsi_portal_group *tpg = sess->tpg; in iscsit_stop_time2retain_timer()
804 if (sess->time2retain_timer_flags & ISCSI_TF_EXPIRED) in iscsit_stop_time2retain_timer()
807 if (!(sess->time2retain_timer_flags & ISCSI_TF_RUNNING)) in iscsit_stop_time2retain_timer()
810 sess->time2retain_timer_flags |= ISCSI_TF_STOP; in iscsit_stop_time2retain_timer()
813 del_timer_sync(&sess->time2retain_timer); in iscsit_stop_time2retain_timer()
816 sess->time2retain_timer_flags &= ~ISCSI_TF_RUNNING; in iscsit_stop_time2retain_timer()
818 sess->sid); in iscsit_stop_time2retain_timer()
883 void iscsit_fall_back_to_erl0(struct iscsit_session *sess) in iscsit_fall_back_to_erl0() argument
886 " %u\n", sess->sid); in iscsit_fall_back_to_erl0()
888 atomic_set(&sess->session_fall_back_to_erl0, 1); in iscsit_fall_back_to_erl0()
893 struct iscsit_session *sess = conn->sess; in iscsit_handle_connection_cleanup() local
895 if ((sess->sess_ops->ErrorRecoveryLevel == 2) && in iscsit_handle_connection_cleanup()
896 !atomic_read(&sess->session_reinstatement) && in iscsit_handle_connection_cleanup()
897 !atomic_read(&sess->session_fall_back_to_erl0)) in iscsit_handle_connection_cleanup()
902 sess->sess_ops->InitiatorName); in iscsit_handle_connection_cleanup()