Lines Matching refs:cls_session
71 &(_session)->cls_session->dev, \
82 &(_session)->cls_session->dev, \
1679 struct iscsi_cls_session *cls_session; in iscsi_queuecommand() local
1691 cls_session = starget_to_session(scsi_target(sc->device)); in iscsi_queuecommand()
1692 session = cls_session->dd_data; in iscsi_queuecommand()
1695 reason = iscsi_session_chkready(cls_session); in iscsi_queuecommand()
1818 struct iscsi_cls_session *cls_session = starget_to_session(starget); in iscsi_target_alloc() local
1819 struct iscsi_session *session = cls_session->dd_data; in iscsi_target_alloc()
1989 struct iscsi_cls_session *cls_session; in iscsi_eh_cmd_timed_out() local
1994 cls_session = starget_to_session(scsi_target(sc->device)); in iscsi_eh_cmd_timed_out()
1995 session = cls_session->dd_data; in iscsi_eh_cmd_timed_out()
2248 struct iscsi_cls_session *cls_session; in iscsi_eh_abort() local
2255 cls_session = starget_to_session(scsi_target(sc->device)); in iscsi_eh_abort()
2256 session = cls_session->dd_data; in iscsi_eh_abort()
2405 struct iscsi_cls_session *cls_session; in iscsi_eh_device_reset() local
2411 cls_session = starget_to_session(scsi_target(sc->device)); in iscsi_eh_device_reset()
2412 session = cls_session->dd_data; in iscsi_eh_device_reset()
2477 void iscsi_session_recovery_timedout(struct iscsi_cls_session *cls_session) in iscsi_session_recovery_timedout() argument
2479 struct iscsi_session *session = cls_session->dd_data; in iscsi_session_recovery_timedout()
2499 struct iscsi_cls_session *cls_session; in iscsi_eh_session_reset() local
2503 cls_session = starget_to_session(scsi_target(sc->device)); in iscsi_eh_session_reset()
2504 session = cls_session->dd_data; in iscsi_eh_session_reset()
2567 struct iscsi_cls_session *cls_session; in iscsi_eh_target_reset() local
2573 cls_session = starget_to_session(scsi_target(sc->device)); in iscsi_eh_target_reset()
2574 session = cls_session->dd_data; in iscsi_eh_target_reset()
2823 static void iscsi_notify_host_removed(struct iscsi_cls_session *cls_session) in iscsi_notify_host_removed() argument
2825 iscsi_session_failure(cls_session->dd_data, ISCSI_ERR_INVALID_HOST); in iscsi_notify_host_removed()
2918 struct iscsi_cls_session *cls_session; in iscsi_session_setup() local
2934 cls_session = iscsi_alloc_session(shost, iscsit, in iscsi_session_setup()
2937 if (!cls_session) in iscsi_session_setup()
2939 session = cls_session->dd_data; in iscsi_session_setup()
2940 session->cls_session = cls_session; in iscsi_session_setup()
2954 session->dd_data = cls_session->dd_data + sizeof(*session); in iscsi_session_setup()
2984 if (iscsi_add_session(cls_session, id)) in iscsi_session_setup()
2987 return cls_session; in iscsi_session_setup()
2994 iscsi_free_session(cls_session); in iscsi_session_setup()
3005 void iscsi_session_teardown(struct iscsi_cls_session *cls_session) in iscsi_session_teardown() argument
3007 struct iscsi_session *session = cls_session->dd_data; in iscsi_session_teardown()
3008 struct module *owner = cls_session->transport->owner; in iscsi_session_teardown()
3011 iscsi_remove_session(cls_session); in iscsi_session_teardown()
3028 iscsi_free_session(cls_session); in iscsi_session_teardown()
3042 iscsi_conn_setup(struct iscsi_cls_session *cls_session, int dd_size, in iscsi_conn_setup() argument
3045 struct iscsi_session *session = cls_session->dd_data; in iscsi_conn_setup()
3051 cls_conn = iscsi_alloc_conn(cls_session, sizeof(*conn) + dd_size, in iscsi_conn_setup()
3218 iscsi_unblock_session(session->cls_session); in iscsi_conn_start()
3303 iscsi_block_session(session->cls_session); in iscsi_conn_stop()
3319 int iscsi_conn_bind(struct iscsi_cls_session *cls_session, in iscsi_conn_bind() argument
3322 struct iscsi_session *session = cls_session->dd_data; in iscsi_conn_bind()
3481 int iscsi_session_get_param(struct iscsi_cls_session *cls_session, in iscsi_session_get_param() argument
3484 struct iscsi_session *session = cls_session->dd_data; in iscsi_session_get_param()