Lines Matching refs:cls_session
71 &(_session)->cls_session->dev, \
82 &(_session)->cls_session->dev, \
1752 struct iscsi_cls_session *cls_session; in iscsi_queuecommand() local
1764 cls_session = starget_to_session(scsi_target(sc->device)); in iscsi_queuecommand()
1765 session = cls_session->dd_data; in iscsi_queuecommand()
1768 reason = iscsi_session_chkready(cls_session); in iscsi_queuecommand()
1891 struct iscsi_cls_session *cls_session = starget_to_session(starget); in iscsi_target_alloc() local
1892 struct iscsi_session *session = cls_session->dd_data; in iscsi_target_alloc()
2078 struct iscsi_cls_session *cls_session; in iscsi_eh_cmd_timed_out() local
2083 cls_session = starget_to_session(scsi_target(sc->device)); in iscsi_eh_cmd_timed_out()
2084 session = cls_session->dd_data; in iscsi_eh_cmd_timed_out()
2346 struct iscsi_cls_session *cls_session; in iscsi_eh_abort() local
2353 cls_session = starget_to_session(scsi_target(sc->device)); in iscsi_eh_abort()
2354 session = cls_session->dd_data; in iscsi_eh_abort()
2511 struct iscsi_cls_session *cls_session; in iscsi_eh_device_reset() local
2517 cls_session = starget_to_session(scsi_target(sc->device)); in iscsi_eh_device_reset()
2518 session = cls_session->dd_data; in iscsi_eh_device_reset()
2583 void iscsi_session_recovery_timedout(struct iscsi_cls_session *cls_session) in iscsi_session_recovery_timedout() argument
2585 struct iscsi_session *session = cls_session->dd_data; in iscsi_session_recovery_timedout()
2605 struct iscsi_cls_session *cls_session; in iscsi_eh_session_reset() local
2609 cls_session = starget_to_session(scsi_target(sc->device)); in iscsi_eh_session_reset()
2610 session = cls_session->dd_data; in iscsi_eh_session_reset()
2673 struct iscsi_cls_session *cls_session; in iscsi_eh_target_reset() local
2679 cls_session = starget_to_session(scsi_target(sc->device)); in iscsi_eh_target_reset()
2680 session = cls_session->dd_data; in iscsi_eh_target_reset()
2929 static void iscsi_notify_host_removed(struct iscsi_cls_session *cls_session) in iscsi_notify_host_removed() argument
2931 iscsi_session_failure(cls_session->dd_data, ISCSI_ERR_INVALID_HOST); in iscsi_notify_host_removed()
3024 struct iscsi_cls_session *cls_session; in iscsi_session_setup() local
3040 cls_session = iscsi_alloc_session(shost, iscsit, in iscsi_session_setup()
3043 if (!cls_session) in iscsi_session_setup()
3045 session = cls_session->dd_data; in iscsi_session_setup()
3046 session->cls_session = cls_session; in iscsi_session_setup()
3060 session->dd_data = cls_session->dd_data + sizeof(*session); in iscsi_session_setup()
3090 if (iscsi_add_session(cls_session, id)) in iscsi_session_setup()
3093 return cls_session; in iscsi_session_setup()
3100 iscsi_free_session(cls_session); in iscsi_session_setup()
3111 void iscsi_session_teardown(struct iscsi_cls_session *cls_session) in iscsi_session_teardown() argument
3113 struct iscsi_session *session = cls_session->dd_data; in iscsi_session_teardown()
3114 struct module *owner = cls_session->transport->owner; in iscsi_session_teardown()
3117 iscsi_remove_session(cls_session); in iscsi_session_teardown()
3134 iscsi_free_session(cls_session); in iscsi_session_teardown()
3148 iscsi_conn_setup(struct iscsi_cls_session *cls_session, int dd_size, in iscsi_conn_setup() argument
3151 struct iscsi_session *session = cls_session->dd_data; in iscsi_conn_setup()
3157 cls_conn = iscsi_alloc_conn(cls_session, sizeof(*conn) + dd_size, in iscsi_conn_setup()
3324 iscsi_unblock_session(session->cls_session); in iscsi_conn_start()
3409 iscsi_block_session(session->cls_session); in iscsi_conn_stop()
3425 int iscsi_conn_bind(struct iscsi_cls_session *cls_session, in iscsi_conn_bind() argument
3428 struct iscsi_session *session = cls_session->dd_data; in iscsi_conn_bind()
3587 int iscsi_session_get_param(struct iscsi_cls_session *cls_session, in iscsi_session_get_param() argument
3590 struct iscsi_session *session = cls_session->dd_data; in iscsi_session_get_param()