Searched refs:oplmsu_uinst (Results 1 – 6 of 6) sorted by relevance
/titanic_44/usr/src/uts/sun4u/opl/io/oplmsu/ |
H A D | oplmsu_ioctl_lrp.c | 61 rw_enter(&oplmsu_uinst->lock, RW_READER); in oplmsu_lrioctl_termios() 64 mutex_enter(&oplmsu_uinst->u_lock); in oplmsu_lrioctl_termios() 65 mutex_enter(&oplmsu_uinst->l_lock); in oplmsu_lrioctl_termios() 71 mutex_exit(&oplmsu_uinst->l_lock); in oplmsu_lrioctl_termios() 72 mutex_exit(&oplmsu_uinst->u_lock); in oplmsu_lrioctl_termios() 87 rw_exit(&oplmsu_uinst->lock); in oplmsu_lrioctl_termios() 150 rw_exit(&oplmsu_uinst->lock); in oplmsu_lrioctl_termios() 155 mutex_enter(&oplmsu_uinst->u_lock); in oplmsu_lrioctl_termios() 158 mutex_exit(&oplmsu_uinst->u_lock); in oplmsu_lrioctl_termios() 159 rw_exit(&oplmsu_uinst->lock); in oplmsu_lrioctl_termios() [all …]
|
H A D | oplmsu.c | 161 uinst_t *oplmsu_uinst = &oplmsu_uinst_local; variable 224 rw_init(&oplmsu_uinst->lock, "uinst rwlock", RW_DRIVER, NULL); in _init() 227 mutex_init(&oplmsu_uinst->u_lock, "upath lock", MUTEX_DRIVER, NULL); in _init() 230 mutex_init(&oplmsu_uinst->l_lock, "lpath lock", MUTEX_DRIVER, NULL); in _init() 233 mutex_init(&oplmsu_uinst->c_lock, "ctrl lock", MUTEX_DRIVER, NULL); in _init() 245 mutex_destroy(&oplmsu_uinst->c_lock); in _init() 246 mutex_destroy(&oplmsu_uinst->l_lock); in _init() 247 mutex_destroy(&oplmsu_uinst->u_lock); in _init() 248 rw_destroy(&oplmsu_uinst->lock); in _init() 262 mutex_destroy(&oplmsu_uinst->c_lock); in _fini() [all …]
|
H A D | oplmsu_cmn_func.c | 57 ASSERT(RW_WRITE_HELD(&oplmsu_uinst->lock)); in oplmsu_link_upath() 58 ASSERT(MUTEX_HELD(&oplmsu_uinst->u_lock)); in oplmsu_link_upath() 60 if (oplmsu_uinst->first_upath == NULL) { in oplmsu_link_upath() 61 oplmsu_uinst->first_upath = add_upath; in oplmsu_link_upath() 66 last_upath = oplmsu_uinst->last_upath; in oplmsu_link_upath() 71 oplmsu_uinst->last_upath = add_upath; in oplmsu_link_upath() 89 ASSERT(RW_WRITE_HELD(&oplmsu_uinst->lock)); in oplmsu_unlink_upath() 91 first = &oplmsu_uinst->first_upath; in oplmsu_unlink_upath() 92 last = &oplmsu_uinst->last_upath; in oplmsu_unlink_upath() 131 ASSERT(RW_WRITE_HELD(&oplmsu_uinst->lock)); in oplmsu_link_lpath() [all …]
|
H A D | oplmsu_ioctl_uwp.c | 67 rw_enter(&oplmsu_uinst->lock, RW_WRITER); in oplmsu_uwioctl_iplink() 76 rw_exit(&oplmsu_uinst->lock); in oplmsu_uwioctl_iplink() 84 rw_exit(&oplmsu_uinst->lock); in oplmsu_uwioctl_iplink() 98 rw_exit(&oplmsu_uinst->lock); in oplmsu_uwioctl_iplink() 112 lpath->abt_char = oplmsu_uinst->abts; /* Set abort character seq */ in oplmsu_uwioctl_iplink() 118 rw_exit(&oplmsu_uinst->lock); in oplmsu_uwioctl_iplink() 148 rw_enter(&oplmsu_uinst->lock, RW_WRITER); in oplmsu_uwioctl_ipunlink() 157 rw_exit(&oplmsu_uinst->lock); in oplmsu_uwioctl_ipunlink() 162 mutex_enter(&oplmsu_uinst->u_lock); in oplmsu_uwioctl_ipunlink() 163 mutex_enter(&oplmsu_uinst->l_lock); in oplmsu_uwioctl_ipunlink() [all …]
|
/titanic_44/usr/src/uts/sun4u/opl/sys/oplmsu/ |
H A D | oplmsu.h | 296 if (rw_tryupgrade(&oplmsu_uinst->lock) == 0) { \ 297 rw_exit(&oplmsu_uinst->lock); \ 298 rw_enter(&oplmsu_uinst->lock, RW_WRITER); \
|
H A D | oplmsu_proto.h | 147 extern uinst_t *oplmsu_uinst;
|