/titanic_44/usr/src/cmd/ipf/lib/common/ |
H A D | mutex_emul.c | 5 void eMmutex_enter(mtx, file, line) in eMmutex_enter() argument 6 eMmutex_t *mtx; in eMmutex_enter() 10 if (mtx->eMm_magic != EMM_MAGIC) { 12 mtx->eMm_owner, mtx, mtx->eMm_magic); 15 if (mtx->eMm_held != 0) { 17 mtx->eMm_owner, mtx, mtx->eMm_held); 20 mtx->eMm_held++; 21 mtx->eMm_heldin = file; 22 mtx->eMm_heldat = line; 26 void eMmutex_exit(mtx) in eMmutex_exit() argument [all …]
|
/titanic_44/usr/src/test/libc-tests/tests/ |
H A D | c11_threads.c | 63 mtx_t mtx; in cthr_test_mtx_init() local 65 VERIFY3S(mtx_init(&mtx, mtx_plain), ==, thrd_success); in cthr_test_mtx_init() 66 mtx_destroy(&mtx); in cthr_test_mtx_init() 67 VERIFY3S(mtx_init(&mtx, mtx_timed), ==, thrd_success); in cthr_test_mtx_init() 68 mtx_destroy(&mtx); in cthr_test_mtx_init() 69 VERIFY3S(mtx_init(&mtx, mtx_plain | mtx_recursive), ==, thrd_success); in cthr_test_mtx_init() 70 mtx_destroy(&mtx); in cthr_test_mtx_init() 71 VERIFY3S(mtx_init(&mtx, mtx_timed | mtx_recursive), ==, thrd_success); in cthr_test_mtx_init() 72 mtx_destroy(&mtx); in cthr_test_mtx_init() 74 VERIFY3S(mtx_init(&mtx, UINT32_MAX), ==, thrd_error); in cthr_test_mtx_init() [all …]
|
/titanic_44/usr/src/uts/common/io/scsi/adapters/iscsi/ |
H A D | iscsi_thread.c | 53 mutex_init(&thread->mgnt.mtx, NULL, MUTEX_DRIVER, NULL); in iscsi_thread_create() 54 mutex_init(&thread->sign.mtx, NULL, MUTEX_DRIVER, NULL); in iscsi_thread_create() 76 mutex_enter(&thread->mgnt.mtx); in iscsi_thread_destroy() 84 mutex_enter(&thread->sign.mtx); in iscsi_thread_destroy() 89 mutex_exit(&thread->sign.mtx); in iscsi_thread_destroy() 104 mutex_exit(&thread->mgnt.mtx); in iscsi_thread_destroy() 107 mutex_destroy(&thread->sign.mtx); in iscsi_thread_destroy() 108 mutex_destroy(&thread->mgnt.mtx); in iscsi_thread_destroy() 126 mutex_enter(&thread->mgnt.mtx); in iscsi_thread_start() 132 mutex_enter(&thread->sign.mtx); in iscsi_thread_start() [all …]
|
H A D | iscsi_thread.h | 67 kmutex_t mtx; member 71 kmutex_t mtx; member
|
/titanic_44/usr/src/lib/libc/port/threads/ |
H A D | c11_thr.c | 90 cnd_timedwait(cnd_t *_RESTRICT_KYWD cnd, mtx_t *_RESTRICT_KYWD mtx, in cnd_timedwait() argument 95 ret = pthread_cond_timedwait(cnd, mtx, ts); in cnd_timedwait() 105 cnd_wait(cnd_t *cnd, mtx_t *mtx) in cnd_wait() argument 109 ret = pthread_cond_wait(cnd, mtx); in cnd_wait() 116 mtx_destroy(mtx_t *mtx) in mtx_destroy() argument 118 if (pthread_mutex_destroy(mtx) != 0) in mtx_destroy() 123 mtx_init(mtx_t *mtx, int type) in mtx_init() argument 144 if (mutex_init((mutex_t *)mtx, mtype, NULL) == 0) in mtx_init() 150 mtx_lock(mtx_t *mtx) in mtx_lock() argument 152 if (pthread_mutex_lock(mtx) == 0) in mtx_lock() [all …]
|
/titanic_44/usr/src/lib/libast/common/sfio/ |
H A D | vthread.h | 168 #define vtmtxerror(mtx) ((mtx)->error) argument 205 #define vtmtxopen(mtx,flgs) ((Vtmutex_t*)0) argument 206 #define vtmtxclose(mtx) (-1) argument 207 #define vtmtxlock(mtx) (-1) argument 208 #define vtmtxtrylock(mtx) (-1) argument 209 #define vtmtxunlock(mtx) (-1) argument 210 #define vtmtxclrlock(mtx) (-1) argument 214 #define vtmtxerror(mtx) (0) argument
|
H A D | sfstack.c | 51 reg Void_t* mtx; local 93 mtx = f1->mutex; f1->mutex = f2->mutex; f2->mutex = mtx;
|
/titanic_44/usr/src/lib/libcryptoutil/common/ |
H A D | random.c | 136 pkcs11_open_common(int *fd, pthread_mutex_t *mtx, const char *dev, int oflag) in pkcs11_open_common() argument 138 (void) pthread_mutex_lock(mtx); in pkcs11_open_common() 141 (void) pthread_mutex_unlock(mtx); in pkcs11_open_common() 178 pkcs11_close_common(int *fd, pthread_mutex_t *mtx) in pkcs11_close_common() argument 180 (void) pthread_mutex_lock(mtx); in pkcs11_close_common() 183 (void) pthread_mutex_unlock(mtx); in pkcs11_close_common() 214 pkcs11_read_common(int *fd, pthread_mutex_t *mtx, void *dbuf, size_t dlen) in pkcs11_read_common() argument 218 (void) pthread_mutex_lock(mtx); in pkcs11_read_common() 220 (void) pthread_mutex_unlock(mtx); in pkcs11_read_common() 241 pkcs11_write_common(int *fd, pthread_mutex_t *mtx, void *dbuf, size_t dlen) in pkcs11_write_common() argument [all …]
|
/titanic_44/usr/src/lib/smbsrv/libsmbns/common/ |
H A D | smbns_netbios_cache.c | 103 (void) mutex_lock(&entry->mtx); in smb_netbios_cache_getfirst() 105 (void) mutex_unlock(&entry->mtx); in smb_netbios_cache_getfirst() 126 (void) mutex_lock(&entry->mtx); in smb_netbios_cache_getnext() 128 (void) mutex_unlock(&entry->mtx); in smb_netbios_cache_getnext() 165 (void) mutex_lock(&entry->mtx); in smb_netbios_cache_lookup() 167 (void) mutex_unlock(&entry->mtx); in smb_netbios_cache_lookup() 180 (void) mutex_unlock(&name->mtx); in smb_netbios_cache_unlock_entry() 209 (void) mutex_lock(&entry->mtx); in smb_netbios_cache_lookup_addr() 219 (void) mutex_unlock(&entry->mtx); in smb_netbios_cache_lookup_addr() 247 (void) mutex_lock(&entry->mtx); in smb_netbios_cache_insert() [all …]
|
/titanic_44/usr/src/uts/sun4v/io/n2rng/ |
H A D | n2rng_provider.c | 122 mutex_enter(&frsp->mtx); in fips_random() 133 mutex_exit(&frsp->mtx); in fips_random() 146 mutex_exit(&frsp->mtx); in fips_random() 181 mutex_init(&frsp->mtx, NULL, MUTEX_DRIVER, NULL); in n2rng_fips_random_init() 192 mutex_destroy(&frsp->mtx); in n2rng_fips_random_fini()
|
/titanic_44/usr/src/uts/common/vm/ |
H A D | page_lock.c | 937 kmutex_t *mtx; in page_szc_lock() local 959 mtx = PAGE_SZC_MUTEX(rootpp); in page_szc_lock() 960 mutex_enter(mtx); in page_szc_lock() 971 return (mtx); in page_szc_lock() 981 mutex_exit(mtx); in page_szc_lock() 992 mutex_exit(mtx); in page_szc_lock() 994 mtx = PAGE_SZC_MUTEX(rootpp); in page_szc_lock() 995 mutex_enter(mtx); in page_szc_lock() 996 mutex_exit(mtx); in page_szc_lock() 1005 kmutex_t *mtx = PAGE_SZC_MUTEX(rootpp); in page_szc_lock_assert() local [all …]
|
/titanic_44/usr/src/cmd/svr4pkg/pkgserv/ |
H A D | pkgserv.c | 166 static mutex_t mtx = DEFAULTMUTEX; variable 308 (void) mutex_lock(&mtx); in server_main() 388 (void) cond_wait(&cv, &mtx); in server_main() 522 (void) mutex_lock(&mtx); in pkg_door_srv() 532 (void) cond_wait(&cv, &mtx); in pkg_door_srv() 576 (void) mutex_unlock(&mtx); in pkg_door_srv() 582 (void) mutex_unlock(&mtx); in pkg_door_srv() 1199 (void) mutex_lock(&mtx); in thr_pkgfilter() 1201 (void) mutex_unlock(&mtx); in thr_pkgfilter() 1219 (void) mutex_lock(&mtx); in thr_pkgfilter() [all …]
|
/titanic_44/usr/src/uts/common/io/fibre-channel/fca/emlxs/ |
H A D | emlxs_fcp.c | 141 mutex_enter(&sbp->mtx); in emlxs_handle_fcp_event() 156 mutex_exit(&sbp->mtx); in emlxs_handle_fcp_event() 704 mutex_exit(&sbp->mtx); in emlxs_handle_fcp_event() 2222 mutex_enter(&sbp->mtx); in emlxs_unregister_pkt() 2238 mutex_exit(&sbp->mtx); in emlxs_unregister_pkt() 2348 mutex_enter(&sbp->mtx); in emlxs_tx_channel_flush() 2357 mutex_enter(&fpkt->mtx); in emlxs_tx_channel_flush() 2360 mutex_exit(&fpkt->mtx); in emlxs_tx_channel_flush() 2363 mutex_exit(&sbp->mtx); in emlxs_tx_channel_flush() 2595 mutex_enter(&sbp->mtx); in emlxs_tx_node_flush() [all …]
|
H A D | emlxs_clock.c | 463 mutex_enter(&sbp->mtx); in emlxs_timer_check_pkts() 465 mutex_exit(&sbp->mtx); in emlxs_timer_check_pkts() 1162 mutex_enter(&sbp->mtx); in emlxs_pkt_chip_timeout() 1248 mutex_exit(&sbp->mtx); in emlxs_pkt_chip_timeout() 1378 mutex_enter(&sbp->mtx); in emlxs_tx_watchdog() 1381 mutex_exit(&sbp->mtx); in emlxs_tx_watchdog() 1398 mutex_enter(&sbp->mtx); in emlxs_tx_watchdog() 1401 mutex_exit(&sbp->mtx); in emlxs_tx_watchdog()
|
H A D | emlxs_solaris.c | 2165 mutex_init(&sbp->mtx, NULL, MUTEX_DRIVER, DDI_INTR_PRI(hba->intr_arg)); in emlxs_fca_pkt_init() 2185 mutex_enter(&sbp->mtx); in emlxs_initialize_pkt() 2236 mutex_exit(&sbp->mtx); in emlxs_initialize_pkt() 2261 mutex_destroy(&sbp->mtx); in emlxs_fca_pkt_uninit() 2598 mutex_enter(&sbp->mtx); in emlxs_fca_transport() 2600 mutex_exit(&sbp->mtx); in emlxs_fca_transport() 2769 mutex_enter(&sbp->mtx); in emlxs_poll() 2771 mutex_exit(&sbp->mtx); in emlxs_poll() 3468 mutex_enter(&sbp->mtx); in emlxs_fca_pkt_abort() 3473 mutex_exit(&sbp->mtx); in emlxs_fca_pkt_abort() [all …]
|
/titanic_44/usr/src/lib/libast/amd64/include/ast/ |
H A D | sfio_t.h | 93 #define SFCLEAR(f,mtx) \ argument 114 (f)->mutex = (mtx), /* mutex */ \
|
/titanic_44/usr/src/lib/libast/common/include/ |
H A D | sfio_t.h | 93 #define SFCLEAR(f,mtx) \ argument 114 (f)->mutex = (mtx), /* mutex */ \
|
/titanic_44/usr/src/lib/libast/sparcv9/include/ast/ |
H A D | sfio_t.h | 93 #define SFCLEAR(f,mtx) \ argument 114 (f)->mutex = (mtx), /* mutex */ \
|
/titanic_44/usr/src/lib/libast/i386/include/ast/ |
H A D | sfio_t.h | 93 #define SFCLEAR(f,mtx) \ argument 114 (f)->mutex = (mtx), /* mutex */ \
|
/titanic_44/usr/src/lib/libast/sparc/include/ast/ |
H A D | sfio_t.h | 93 #define SFCLEAR(f,mtx) \ argument 114 (f)->mutex = (mtx), /* mutex */ \
|
/titanic_44/usr/src/cmd/arcwatch/ |
H A D | arcwatch.c | 180 pthread_mutex_t mtx; member 209 pthread_mutex_lock(&ta->mtx); in process_trace() 222 pthread_mutex_unlock(&ta->mtx); in process_trace() 231 pthread_mutex_lock(&ta->mtx); in process_trace() 234 pthread_mutex_unlock(&ta->mtx); in process_trace() 271 pthread_mutex_init(&ta.mtx, NULL); in run_dtrace()
|
/titanic_44/usr/src/cmd/isns/isnsd/ |
H A D | esi.c | 181 if (pthread_mutex_init(&ev->mtx, NULL) != 0 || in ev_new() 1032 (void) pthread_mutex_lock(&ev->mtx); in evl_remove() 1036 (void) pthread_mutex_unlock(&ev->mtx); in evl_remove() 1311 (void) pthread_mutex_lock(&ev->mtx); in esi_monitor() 1376 (void) pthread_mutex_unlock(&ev->mtx); in esi_monitor()
|
H A D | isns_esi.h | 69 pthread_mutex_t mtx; member
|
/titanic_44/usr/src/uts/common/fs/portfs/ |
H A D | port_fop.c | 559 kmutex_t *mtx; in port_fop_femuninstall() local 591 mtx = &pvfsh->pvfshash_mutex; in port_fop_femuninstall() 592 mutex_enter(mtx); in port_fop_femuninstall() 599 mutex_exit(mtx); in port_fop_femuninstall() 602 mutex_exit(mtx); in port_fop_femuninstall() 2015 kmutex_t *mtx; in port_fop_unmount() local 2023 mtx = &(portvfs_hash[PORTFOP_PVFSHASH(vfsp)].pvfshash_mutex); in port_fop_unmount() 2026 mutex_enter(mtx); in port_fop_unmount() 2040 mutex_exit(mtx); in port_fop_unmount() 2054 mutex_exit(mtx); in port_fop_unmount() [all …]
|
/titanic_44/usr/src/cmd/mdb/i86pc/modules/unix/ |
H A D | unix.c | 598 mutex_impl_t mtx; in mutex_owner_step() local 602 if (mdb_vread(&mtx, sizeof (mtx), addr) == -1) in mutex_owner_step() 605 if (!MUTEX_TYPE_ADAPTIVE(&mtx)) in mutex_owner_step() 608 if ((owner = (uintptr_t)MUTEX_OWNER(&mtx)) == NULL) in mutex_owner_step()
|