Home
last modified time | relevance | path

Searched refs:iscsit_global (Results 1 – 8 of 8) sorted by relevance

/titanic_41/usr/src/uts/common/io/comstar/port/iscsit/
H A Discsit.c115 iscsit_global_t iscsit_global; variable
271 rw_init(&iscsit_global.global_rwlock, NULL, RW_DRIVER, NULL); in _init()
272 mutex_init(&iscsit_global.global_state_mutex, NULL, in _init()
274 iscsit_global.global_svc_state = ISE_DETACHED; in _init()
284 mutex_destroy(&iscsit_global.global_state_mutex); in _init()
285 rw_destroy(&iscsit_global.global_rwlock); in _init()
309 mutex_destroy(&iscsit_global.global_state_mutex); in _fini()
310 rw_destroy(&iscsit_global.global_rwlock); in _fini()
329 *result = iscsit_global.global_dip; in iscsit_drv_getinfo()
370 iscsit_global.global_svc_state = ISE_DISABLED; in iscsit_drv_attach()
[all …]
H A Discsit_tgt.c652 if (taskq_dispatch(iscsit_global.global_dispatch_taskq, in iscsit_tgt_dereg_retry()
779 for (tgt = avl_first(&iscsit_global.global_target_list); in iscsit_config_merge_tgt()
782 next_tgt = AVL_NEXT(&iscsit_global.global_target_list, tgt); in iscsit_config_merge_tgt()
785 avl_remove(&iscsit_global.global_target_list, tgt); in iscsit_config_merge_tgt()
787 &iscsit_global.global_deleted_target_list, tgt); in iscsit_config_merge_tgt()
803 avl_add(&iscsit_global.global_target_list, tgt); in iscsit_config_merge_tgt()
843 if ((result = avl_find(&iscsit_global.global_target_list, in iscsit_tgt_lookup_locked()
905 lport->lport_pp = iscsit_global.global_pp; in iscsit_tgt_create()
906 lport->lport_ds = iscsit_global.global_dbuf_store; in iscsit_tgt_create()
1018 list_remove(&iscsit_global.global_deleted_target_list, tgt); in iscsit_tgt_unref()
[all …]
H A Discsit_isns.c141 mutex_enter(&iscsit_global.global_isns_cfg.isns_mutex)
144 MUTEX_HELD(&iscsit_global.global_isns_cfg.isns_mutex)
147 mutex_exit(&iscsit_global.global_isns_cfg.isns_mutex)
447 for (isns_svr = list_head(&iscsit_global.global_isns_cfg.isns_svrs); in isnst_config_merge()
451 &iscsit_global.global_isns_cfg.isns_svrs, isns_svr); in isnst_config_merge()
493 mutex_init(&iscsit_global.global_isns_cfg.isns_mutex, NULL, in iscsit_isns_init()
499 iscsit_global.global_isns_cfg.isns_state = B_FALSE; in iscsit_isns_init()
500 list_create(&iscsit_global.global_isns_cfg.isns_svrs, in iscsit_isns_init()
555 iscsit_global.global_isns_cfg.isns_state = B_FALSE; in iscsit_isns_fini()
557 list_destroy(&iscsit_global.global_isns_cfg.isns_svrs); in iscsit_isns_fini()
[all …]
H A Discsit_sess.c95 result = (uintptr_t)vmem_alloc(iscsit_global.global_tsih_pool, in iscsit_tsih_alloc()
100 vmem_free(iscsit_global.global_tsih_pool, (void *)result, 1); in iscsit_tsih_alloc()
110 vmem_free(iscsit_global.global_tsih_pool, (void *)(uintptr_t)tsih, 1); in iscsit_tsih_free()
183 mutex_enter(&iscsit_global.global_state_mutex); in iscsit_sess_create()
184 if (iscsit_global.global_svc_state == ISE_ENABLED) { in iscsit_sess_create()
186 mutex_exit(&iscsit_global.global_state_mutex); in iscsit_sess_create()
196 mutex_exit(&iscsit_global.global_state_mutex); in iscsit_sess_create()
H A Discsit_text.c295 if (tpg_list->tpgt_tpg == iscsit_global.global_default_tpg) { in iscsit_add_tpgs()
319 ASSERT(tpg_list->tpgt_tpg != iscsit_global.global_default_tpg); in iscsit_add_tpgs()
536 for (tgt = avl_first(&iscsit_global.global_target_list); in iscsit_pdu_op_text_cmd()
543 ntgt = AVL_NEXT(&iscsit_global.global_target_list, tgt); in iscsit_pdu_op_text_cmd()
H A Discsit.h80 #define ISCSIT_GLOBAL_LOCK(rw) rw_enter(&iscsit_global.global_rwlock, (rw))
81 #define ISCSIT_GLOBAL_UNLOCK() rw_exit(&iscsit_global.global_rwlock)
106 ((TPGT)->tpgt_tpg == iscsit_global.global_default_tpg))
606 extern iscsit_global_t iscsit_global;
H A Discsit_login.c379 if (taskq_dispatch(iscsit_global.global_dispatch_taskq, in iscsit_login_sm_event_locked()
1356 mutex_enter(&iscsit_global.global_state_mutex); in login_sm_session_bind()
1358 ((iscsit_global.global_svc_state != ISE_ENABLED) && in login_sm_session_bind()
1359 ((iscsit_global.global_svc_state != ISE_BUSY)))) { in login_sm_session_bind()
1360 mutex_exit(&iscsit_global.global_state_mutex); in login_sm_session_bind()
1368 mutex_exit(&iscsit_global.global_state_mutex); in login_sm_session_bind()
1580 (void) nvlist_lookup_string(iscsit_global.global_props, in login_sm_set_auth()
1582 (void) nvlist_lookup_string(iscsit_global.global_props, in login_sm_set_auth()
1584 (void) nvlist_lookup_string(iscsit_global.global_props, in login_sm_set_auth()
/titanic_41/usr/src/cmd/mdb/common/modules/idm/
H A Didm.c589 iscsit_global_t iscsit_global; in iscsi_portal() local
616 if (mdb_vread(&iscsit_global, sizeof (iscsit_global_t), in iscsi_portal()
621 if (iscsi_tpg_impl((uintptr_t)iscsit_global.global_default_tpg, in iscsi_portal()