/titanic_51/usr/src/lib/libnisdb/ |
H A D | nisdb_rw.c | 52 if ((ret = mutex_init(&rw->mutex, USYNC_THREAD, 0)) != 0) in __nisdb_rwinit() 116 if ((ret = mutex_lock(&rw->mutex)) != 0) in __nisdb_rw_readlock_ok() 130 (void) mutex_unlock(&rw->mutex); in __nisdb_rw_readlock_ok() 143 if ((ret = mutex_lock(&rw->mutex)) != 0) in __nisdb_rw_force_writelock() 157 (void) mutex_unlock(&rw->mutex); in __nisdb_rw_force_writelock() 182 if ((ret = mutex_lock(&rw->mutex)) != 0) in __nisdb_wlock_trylock() 186 (void) mutex_unlock(&rw->mutex); in __nisdb_wlock_trylock() 195 return (mutex_unlock(&rw->mutex)); in __nisdb_wlock_trylock() 200 * all other readers are blocked waiting for the mutex. in __nisdb_wlock_trylock() 235 * - N readers, but all blocked on the mutex in __nisdb_wlock_trylock() [all...] |
/titanic_51/usr/src/uts/common/gssapi/mechs/krb5/mech/ |
H A D | util_validate.c | 93 ret = k5_mutex_lock(&db->mutex); 109 (void) k5_mutex_unlock(&db->mutex); 119 ret = k5_mutex_lock(&db->mutex); 127 (void) k5_mutex_unlock(&db->mutex); 133 (void) k5_mutex_unlock(&db->mutex); 149 ret = k5_mutex_lock(&db->mutex); 155 (void) k5_mutex_unlock(&db->mutex); 166 (void) k5_mutex_unlock(&db->mutex); 170 (void) k5_mutex_unlock(&db->mutex); 177 ret = k5_mutex_lock(&db->mutex); [all...] |
/titanic_51/usr/src/uts/common/io/dmfe/ |
H A D | dmfe_log.c | 33 kmutex_t mutex[1]; member 42 mutex_init(prtdata.mutex, NULL, MUTEX_DRIVER, NULL); in dmfe_log_init() 48 mutex_destroy(prtdata.mutex); in dmfe_log_fini() 59 ASSERT(mutex_owned(prtdata.mutex)); in dmfe_vprt() 76 mutex_enter(prtdata.mutex); in dmfe_warning() 93 mutex_exit(prtdata.mutex); in dmfe_warning() 104 mutex_enter(prtdata.mutex); in dmfe_error() 113 mutex_exit(prtdata.mutex); in dmfe_error() 124 mutex_enter(prtdata.mutex); in dmfe_notice() 133 mutex_exit(prtdata.mutex); in dmfe_notice() [all...] |
/titanic_51/usr/src/lib/libast/common/sfio/ |
H A D | sfmutex.c | 48 if(!f->mutex) 53 f->mutex = vtmtxopen(NIL(Vtmutex_t*), VT_INIT); 55 if(!f->mutex) 60 return vtmtxlock(f->mutex); 62 return vtmtxtrylock(f->mutex); 64 return vtmtxunlock(f->mutex); 66 return vtmtxclrlock(f->mutex);
|
/titanic_51/usr/src/contrib/ast/src/lib/libast/sfio/ |
H A D | sfmutex.c | 48 if(!f->mutex) 53 f->mutex = vtmtxopen(NIL(Vtmutex_t*), VT_INIT); 55 if(!f->mutex) 60 return vtmtxlock(f->mutex); 62 return vtmtxtrylock(f->mutex); 64 return vtmtxunlock(f->mutex); 66 return vtmtxclrlock(f->mutex);
|
/titanic_51/usr/src/uts/sun4/io/ |
H A D | tod.c | 207 mutex_init(&softc->mutex, NULL, MUTEX_DRIVER, NULL); in tod_attach() 214 mutex_enter(&softc->mutex); in tod_attach() 216 mutex_exit(&softc->mutex); in tod_attach() 248 mutex_destroy(&softc->mutex); in tod_detach() 256 mutex_enter(&softc->mutex); in tod_detach() 258 mutex_exit(&softc->mutex); in tod_detach() 298 mutex_enter(&softc->mutex); in tod_ioctl() 300 mutex_exit(&softc->mutex); in tod_ioctl() 302 mutex_enter(&softc->mutex); in tod_ioctl() 317 mutex_exit(&softc->mutex); in tod_ioctl() [all...] |
/titanic_51/usr/src/uts/common/io/ |
H A D | beep.c | 63 * Note that mutex_init is not called on the mutex in beep_state, 65 * as documented in mutex.c 99 mutex_enter(&beep_state.mutex); in beep_init() 102 mutex_exit(&beep_state.mutex); in beep_init() 134 mutex_exit(&beep_state.mutex); in beep_init() 148 mutex_enter(&beep_state.mutex); in beep_fini() 151 mutex_exit(&beep_state.mutex); in beep_fini() 173 mutex_exit(&beep_state.mutex); in beep_fini() 186 mutex_enter(&beep_state.mutex); in beeper_off() 189 mutex_exit(&beep_state.mutex); in beeper_off() [all...] |
H A D | winlockio.c | 330 kmutex_t mutex; /* mutex for lock */ member 386 * lp->mutex must be held. 610 mutex_exit(&lp->mutex); /* mutex held by seglock_findlock */ in winlock_devmap() 616 mutex_exit(&lp->mutex); /* mutex held by seglock_findlock */ in winlock_devmap() 636 mutex_exit(&lp->mutex); /* held by seglock_findlock */ in winlock_devmap() 645 mutex_exit(&lp->mutex); /* mutex hel in winlock_devmap() [all...] |
/titanic_51/usr/src/uts/common/sys/rsm/ |
H A D | rsmka_path_int.h | 152 kmutex_t mutex; member 176 kmutex_t mutex; member 210 kmutex_t mutex; member 253 mutex_enter(&((adapter)->mutex)); \ 256 mutex_exit(&((adapter)->mutex)); \ 260 mutex_enter(&((adapter)->mutex)); \ 263 mutex_exit(&((adapter)->mutex)); \ 267 ASSERT(MUTEX_HELD(&(adapter)->mutex)); \ 273 mutex_enter(&(path)->mutex); \ 276 mutex_exit(&(path)->mutex); \ [all...] |
/titanic_51/usr/src/uts/common/idmap/ |
H A D | idmap_cache.c | 184 mutex_init(&cache->sid2pid.mutex, NULL, MUTEX_DEFAULT, NULL); in kidmap_cache_create() 194 mutex_init(&cache->uid2sid.mutex, NULL, MUTEX_DEFAULT, NULL); in kidmap_cache_create() 201 mutex_init(&cache->gid2sid.mutex, NULL, MUTEX_DEFAULT, NULL); in kidmap_cache_create() 221 mutex_destroy(&cache->sid2pid.mutex); in kidmap_cache_delete() 230 mutex_destroy(&cache->uid2sid.mutex); in kidmap_cache_delete() 239 mutex_destroy(&cache->gid2sid.mutex); in kidmap_cache_delete() 247 mutex_enter(&cache->sid2pid.mutex); in kidmap_cache_get_data() 251 mutex_exit(&cache->sid2pid.mutex); in kidmap_cache_get_data() 253 mutex_enter(&cache->uid2sid.mutex); in kidmap_cache_get_data() 255 mutex_exit(&cache->uid2sid.mutex); in kidmap_cache_get_data() [all...] |
/titanic_51/usr/src/uts/common/io/rsm/ |
H A D | rsmka_pathmanager.c | 77 * (mutex) work_queue.work_mutex 82 * (mutex) adapter_listhead_base.listlock 84 * Always acquired before listhead->mutex 87 * (mutex) ipc_info_lock 89 * Always acquired before listhead->mutex 91 * (mutex) listhead->mutex 95 * (mutex) path->mutex 100 * (mutex) adapte [all...] |
/titanic_51/usr/src/lib/libidmap/common/ |
H A D | idmap_cache.c | 133 pthread_mutex_t mutex; member 145 pthread_mutex_t mutex; member 157 pthread_mutex_t mutex; member 292 (void) pthread_mutex_init(&idmap_cache.sid2uid_gid.mutex, NULL); in idmap_cache_create() 304 (void) pthread_mutex_init(&idmap_cache.uid2sid_winname.mutex, NULL); in idmap_cache_create() 317 (void) pthread_mutex_init(&idmap_cache.gid2sid_winname.mutex, NULL); in idmap_cache_create() 330 (void) pthread_mutex_init(&idmap_cache.winname2uid_gid.mutex, NULL); in idmap_cache_create() 351 (void) pthread_mutex_lock(&idmap_cache.sid2uid_gid.mutex); in idmap_cache_purge() 369 (void) pthread_mutex_unlock(&idmap_cache.sid2uid_gid.mutex); in idmap_cache_purge() 372 (void) pthread_mutex_lock(&idmap_cache.uid2sid_winname.mutex); in idmap_cache_purge() [all...] |
/titanic_51/usr/src/uts/common/io/igb/ |
H A D | e1000_osdep.h | 189 #define E1000_MUTEX_INIT(mutex) mutex_init(mutex, NULL, \ argument 191 #define E1000_MUTEX_DESTROY(mutex) mutex_destroy(mutex) argument 193 #define E1000_MUTEX_LOCK(mutex) mutex_enter(mutex) argument 194 #define E1000_MUTEX_TRYLOCK(mutex) mutex_tryenter(mutex) argument 195 #define E1000_MUTEX_UNLOCK(mutex) mutex_exit(mutex) argument [all...] |
/titanic_51/usr/src/uts/common/fs/getgen/ |
H A D | getgen.c | 22 kmutex_t mutex; member 169 mutex_enter(&sp->mutex); in gg_close() 171 mutex_exit(&sp->mutex); in gg_close() 175 mutex_exit(&sp->mutex); in gg_close() 194 mutex_enter(&sp->mutex); in gg_open() 196 mutex_exit(&sp->mutex); in gg_open() 200 mutex_exit(&sp->mutex); in gg_open() 238 mutex_enter(&sp->mutex); in gg_detach() 240 mutex_exit(&sp->mutex); in gg_detach() 243 mutex_exit(&sp->mutex); in gg_detach() [all...] |
/titanic_51/usr/src/uts/common/io/warlock/ |
H A D | ddi_dki_impl.c | 158 static kmutex_t mutex; variable 164 mutex_enter(&mutex); in delay() 165 cv_wait(&cv, &mutex); in delay() 166 mutex_exit(&mutex); in delay() 172 mutex_enter(&mutex); in putnext() 173 cv_wait(&cv, &mutex); in putnext() 174 mutex_exit(&mutex); in putnext()
|
/titanic_51/usr/src/cmd/nscd/ |
H A D | nscd_access.c | 44 mutex_t mutex; /* protect this structure */ member 93 (void) mutex_lock(&access->mutex); in _nscd_release() 108 * holding the access->mutex lock, It is safe in _nscd_release() 109 * to free the memory containing the mutex in _nscd_release() 114 (void) mutex_unlock(&access->mutex); in _nscd_release() 146 (void) mutex_lock(&access->mutex); in _nscd_destroy() 148 (void) mutex_unlock(&access->mutex); in _nscd_destroy() 194 (void) mutex_lock(&access->mutex); in _nscd_get() 199 (void) mutex_unlock(&access->mutex); in _nscd_get() 485 * 'option' indicate whether a mutex o 500 mutex_t *mutex = NULL; _nscd_alloc() local [all...] |
/titanic_51/usr/src/uts/sun4u/io/ |
H A D | pic16f747.c | 113 kmutex_t mutex; member 240 mutex_init(&softc->mutex, NULL, MUTEX_DRIVER, NULL); in pic_attach() 310 mutex_destroy(&softc->mutex); in pic_detach() 355 mutex_enter(&softc->mutex); in pic_ioctl() 359 mutex_exit(&softc->mutex); in pic_ioctl() 365 mutex_exit(&softc->mutex); in pic_ioctl() 380 mutex_exit(&softc->mutex); in pic_ioctl() 404 mutex_exit(&softc->mutex); in pic_ioctl() 421 mutex_exit(&softc->mutex); in pic_ioctl() 425 mutex_exit(&softc->mutex); in pic_ioctl() [all...] |
/titanic_51/usr/src/lib/gss_mechs/mech_krb5/mech/ |
H A D | util_errmap.c | 144 static k5_mutex_t mutex = K5_MUTEX_PARTIAL_INITIALIZER; variable 154 err = k5_mutex_finish_init(&mutex); in gssint_mecherrmap_init() 176 k5_mutex_destroy(&mutex); in gssint_mecherrmap_destroy() 196 err = k5_mutex_lock(&mutex); in gssint_mecherrmap_map() 207 k5_mutex_unlock(&mutex); in gssint_mecherrmap_map() 236 k5_mutex_unlock(&mutex); in gssint_mecherrmap_map() 240 k5_mutex_unlock(&mutex); in gssint_mecherrmap_map() 275 err = k5_mutex_lock(&mutex); in gssint_mecherrmap_get() 279 k5_mutex_unlock(&mutex); in gssint_mecherrmap_get()
|
/titanic_51/usr/src/uts/common/io/e1000g/ |
H A D | e1000_osdep.h | 51 #include <sys/mutex.h> 222 #define E1000_MUTEX_INIT(mutex) mutex_init(mutex, NULL, \ argument 224 #define E1000_MUTEX_DESTROY(mutex) mutex_destroy(mutex) argument 226 #define E1000_MUTEX_LOCK(mutex) mutex_enter(mutex) argument 227 #define E1000_MUTEX_TRYLOCK(mutex) mutex_tryenter(mutex) argument 228 #define E1000_MUTEX_UNLOCK(mutex) mutex_exi argument [all...] |
/titanic_51/usr/src/uts/common/io/scsi/adapters/iscsi/ |
H A D | iscsi_cmd.c | 381 ASSERT(mutex_owned(&isp->sess_queue_pending.mutex)); in iscsi_cmd_state_pending() 395 mutex_exit(&isp->sess_queue_pending.mutex); in iscsi_cmd_state_pending() 407 mutex_exit(&isp->sess_queue_pending.mutex); in iscsi_cmd_state_pending() 428 mutex_exit(&isp->sess_queue_pending.mutex); in iscsi_cmd_state_pending() 455 mutex_exit(&isp->sess_queue_pending.mutex); in iscsi_cmd_state_pending() 475 mutex); in iscsi_cmd_state_pending() 491 mutex_exit(&isp->sess_queue_pending.mutex); in iscsi_cmd_state_pending() 504 mutex); in iscsi_cmd_state_pending() 545 mutex_enter(&icmdp->cmd_conn->conn_queue_active.mutex); in iscsi_cmd_state_pending() 547 mutex_exit(&icmdp->cmd_conn->conn_queue_active.mutex); in iscsi_cmd_state_pending() [all...] |
H A D | iscsi_queue.c | 48 * mutex or after the active queue mutex. 62 mutex_init(&queue->mutex, NULL, MUTEX_DRIVER, NULL); in iscsi_init_queue() 74 mutex_destroy(&queue->mutex); in iscsi_destroy_queue() 85 ASSERT(mutex_owned(&isp->sess_queue_pending.mutex)); in iscsi_enqueue_pending_cmd() 113 ASSERT(mutex_owned(&isp->sess_queue_pending.mutex)); in iscsi_dequeue_pending_cmd() 202 ASSERT(mutex_owned(&icp->conn_queue_active.mutex)); in iscsi_dequeue_active_cmd() 240 ASSERT(mutex_owned(&icp->conn_queue_idm_aborting.mutex)); in iscsi_enqueue_idm_aborting_cmd() 262 ASSERT(mutex_owned(&icp->conn_queue_idm_aborting.mutex)); in iscsi_dequeue_idm_aborting_cmd() 278 mutex_enter(&isp->sess_queue_completion.mutex); in iscsi_enqueue_completed_cmd() [all...] |
/titanic_51/usr/src/uts/common/io/scsi/impl/ |
H A D | scsi_reset_notify.c | 38 * The function is entered without adapter driver mutex being held. 43 void (*callback)(caddr_t), caddr_t arg, kmutex_t *mutex, in scsi_hba_reset_notify_setup() argument 49 mutex_enter(mutex); in scsi_hba_reset_notify_setup() 78 mutex_exit(mutex); in scsi_hba_reset_notify_setup() 101 * The function is entered with adapter driver mutex being held. 104 scsi_hba_reset_notify_callback(kmutex_t *mutex, in scsi_hba_reset_notify_callback() argument 134 mutex_exit(mutex); in scsi_hba_reset_notify_callback() 140 mutex_enter(mutex); in scsi_hba_reset_notify_callback()
|
/titanic_51/usr/src/uts/common/io/audio/drv/audiosolo/ |
H A D | audiosolo.c | 186 kmutex_t mutex; member 346 mutex_enter(&dev->mutex); in solo_intr() 349 mutex_exit(&dev->mutex); in solo_intr() 365 mutex_exit(&dev->mutex); in solo_intr() 475 mutex_enter(&dev->mutex); in solo_set_mixsrc() 478 mutex_exit(&dev->mutex); in solo_set_mixsrc() 494 mutex_enter(&dev->mutex); in solo_set_mono() 497 mutex_exit(&dev->mutex); in solo_set_mono() 515 mutex_enter(&dev->mutex); in solo_set_stereo() 518 mutex_exit(&dev->mutex); in solo_set_stereo() [all...] |
/titanic_51/usr/src/lib/sun_fc/common/ |
H A D | Lockable.cc | 43 if (pthread_mutex_init(&mutex, NULL)) { in Lockable() 51 if (pthread_mutex_destroy(&mutex)) { in ~Lockable() 61 unlock(&mutex); in unlock() 65 * @memo Unlock a given mutex lock 79 lock(&mutex); in lock() 83 * @memo Lock the given mutex lock 85 * @param myMutex The mutex lock to take
|
/titanic_51/usr/src/uts/common/io/ib/mgt/ibcm/ |
H A D | ibcm_impl.c | 92 kmutex_t ibcm_trace_mutex; /* Trace mutex */ 93 kmutex_t ibcm_trace_print_mutex; /* Trace print mutex */ 118 /* mutex and cv to manage hca's reference and resource count(s) */ 122 /* mutex and cv to sa session open */ 149 /* mutex for CM's qp list management */ 176 kmutex_t mutex; member 222 kmutex_t mutex; member 438 /* Initializes all global mutex and CV in cm module */ 497 /* Destroys all global mutex and CV in cm module */ 1429 mutex_enter(&ibcm_open.mutex); in ibcm_open_done() [all...] |