Home
last modified time | relevance | path

Searched refs:mtx (Results 1 – 25 of 53) sorted by relevance

123

/titanic_51/usr/src/cmd/ipf/lib/common/
H A Dmutex_emul.c5 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
26 eMmutex_exit(mtx) eMmutex_exit() argument
45 eMmutex_init(mtx,who) eMmutex_init() argument
64 eMmutex_destroy(mtx) eMmutex_destroy() argument
[all...]
/titanic_51/usr/src/test/libc-tests/tests/
H A Dc11_threads.c63 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_MA in cthr_test_mtx_init()
81 mtx_t mtx; cthr_test_mtx_lockrec() local
96 mtx_t mtx; cthr_test_mtx_trylock() local
303 mtx_t mtx; cthr_test_cndtime() local
323 mtx_t mtx; cthr_test_mtx_selftime() local
338 mtx_t *mtx = arg; cthr_test_mtx_busy_thr() local
353 mtx_t mtx; cthr_test_mtx_busy() local
[all...]
/titanic_51/usr/src/uts/common/io/scsi/adapters/iscsi/
H A Discsi_thread.c53 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 Discsi_thread.h67 kmutex_t mtx; member
71 kmutex_t mtx; member
/titanic_51/usr/src/lib/libc/port/threads/
H A Dc11_thr.c90 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) in mtx_lock()
158 mtx_timedlock(mtx_t * _RESTRICT_KYWD mtx,const struct timespec * _RESTRICT_KYWD abstime) mtx_timedlock() argument
172 mtx_trylock(mtx_t * mtx) mtx_trylock() argument
186 mtx_unlock(mtx_t * mtx) mtx_unlock() argument
[all...]
/titanic_51/usr/src/lib/libast/common/sfio/
H A Dvthread.h168 #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 Dsfstack.c51 reg Void_t* mtx; local
93 mtx = f1->mutex; f1->mutex = f2->mutex; f2->mutex = mtx;
/titanic_51/usr/src/contrib/ast/src/lib/libast/sfio/
H A Dvthread.h168 #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 Dsfstack.c51 reg Void_t* mtx; local
93 mtx = f1->mutex; f1->mutex = f2->mutex; f2->mutex = mtx;
/titanic_51/usr/src/lib/libcryptoutil/common/
H A Drandom.c136 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, voi argument
[all...]
/titanic_51/usr/src/lib/smbsrv/libsmbns/common/
H A Dsmbns_netbios_cache.c103 (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_51/usr/src/uts/sun4v/io/n2rng/
H A Dn2rng_provider.c122 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_51/usr/src/uts/common/vm/
H A Dpage_lock.c929 kmutex_t *mtx; in page_szc_lock() local
951 mtx = PAGE_SZC_MUTEX(rootpp); in page_szc_lock()
952 mutex_enter(mtx); in page_szc_lock()
963 return (mtx); in page_szc_lock()
973 mutex_exit(mtx); in page_szc_lock()
984 mutex_exit(mtx); in page_szc_lock()
986 mtx = PAGE_SZC_MUTEX(rootpp); in page_szc_lock()
987 mutex_enter(mtx); in page_szc_lock()
988 mutex_exit(mtx); in page_szc_lock()
997 kmutex_t *mtx in page_szc_lock_assert() local
[all...]
/titanic_51/usr/src/boot/sys/boot/usb/
H A Dusb_busdma_loader.c281 mtx_assert(pc->tag_parent->mtx, MA_OWNED); in usb_pc_load_mem()
354 struct mtx *mtx, usb_dma_callback_t *func, in usb_dma_tag_setup() argument
362 (mtx == NULL)) { in usb_dma_tag_setup()
370 udpt->mtx = mtx; in usb_dma_tag_setup()
/titanic_51/usr/src/cmd/svr4pkg/pkgserv/
H A Dpkgserv.c166 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_51/usr/src/uts/common/io/fibre-channel/fca/emlxs/
H A Demlxs_fcp.c141 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 Demlxs_clock.c463 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()
/titanic_51/usr/src/lib/libast/common/include/
H A Dsfio_t.h93 #define SFCLEAR(f,mtx) \ argument
114 (f)->mutex = (mtx), /* mutex */ \
/titanic_51/usr/src/contrib/ast/src/lib/libast/include/
H A Dsfio_t.h100 #define SFCLEAR(f,mtx) \ argument
121 (f)->mutex = (mtx), /* mutex */ \
/titanic_51/usr/src/lib/libast/i386/include/ast/
H A Dsfio_t.h93 #define SFCLEAR(f,mtx) \ argument
114 (f)->mutex = (mtx), /* mutex */ \
/titanic_51/usr/src/lib/libast/amd64/include/ast/
H A Dsfio_t.h93 #define SFCLEAR(f,mtx) \ argument
114 (f)->mutex = (mtx), /* mutex */ \
/titanic_51/usr/src/lib/libast/sparcv9/include/ast/
H A Dsfio_t.h93 #define SFCLEAR(f,mtx) \ argument
114 (f)->mutex = (mtx), /* mutex */ \
/titanic_51/usr/src/lib/libast/sparc/include/ast/
H A Dsfio_t.h93 #define SFCLEAR(f,mtx) \ argument
114 (f)->mutex = (mtx), /* mutex */ \
/titanic_51/usr/src/boot/sys/sys/
H A D_mutex.h45 struct mtx { struct
51 * Members of struct mtx_padalign must mirror members of struct mtx. argument
52 * mtx_padalign mutexes can use the mtx(9) API transparently without
47 mtx_lockmtx global() argument
/titanic_51/usr/src/cmd/arcwatch/
H A Darcwatch.c180 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()

123