Searched defs:mtx (Results 1 - 23 of 23) sorted by relevance

/illumos-gate/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.
52 * mtx_padalign mutexes can use the mtx(9) API transparently without
/illumos-gate/usr/src/lib/libast/common/sfio/
H A Dsfstack.c51 reg Void_t* mtx; local
93 mtx = f1->mutex; f1->mutex = f2->mutex; f2->mutex = mtx;
/illumos-gate/usr/src/uts/common/io/scsi/adapters/iscsi/
H A Discsi_thread.h67 kmutex_t mtx; member in struct:_iscsi_thread::__anon6513
71 kmutex_t mtx; member in struct:_iscsi_thread::__anon6514
/illumos-gate/usr/src/cmd/isns/isnsd/
H A Disns_esi.h69 pthread_mutex_t mtx; member in struct:ev
/illumos-gate/usr/src/lib/libcryptoutil/common/
H A Drandom.c136 pkcs11_open_common(int *fd, pthread_mutex_t *mtx, const char *dev, int oflag) argument
138 (void) pthread_mutex_lock(mtx);
141 (void) pthread_mutex_unlock(mtx);
178 pkcs11_close_common(int *fd, pthread_mutex_t *mtx) argument
180 (void) pthread_mutex_lock(mtx);
183 (void) pthread_mutex_unlock(mtx);
214 pkcs11_read_common(int *fd, pthread_mutex_t *mtx, void *dbuf, size_t dlen) argument
218 (void) pthread_mutex_lock(mtx);
220 (void) pthread_mutex_unlock(mtx);
241 pkcs11_write_common(int *fd, pthread_mutex_t *mtx, voi argument
[all...]
/illumos-gate/usr/src/lib/libc/port/threads/
H A Dc11_thr.c90 cnd_timedwait(cnd_t *_RESTRICT_KYWD cnd, mtx_t *_RESTRICT_KYWD mtx, argument
95 ret = pthread_cond_timedwait(cnd, mtx, ts);
105 cnd_wait(cnd_t *cnd, mtx_t *mtx) argument
109 ret = pthread_cond_wait(cnd, mtx);
116 mtx_destroy(mtx_t *mtx) argument
118 if (pthread_mutex_destroy(mtx) != 0)
123 mtx_init(mtx_t *mtx, int type) argument
144 if (mutex_init((mutex_t *)mtx, mtype, NULL) == 0)
150 mtx_lock(mtx_t *mtx) argument
152 if (pthread_mutex_lock(mtx)
158 mtx_timedlock(mtx_t *_RESTRICT_KYWD mtx, const struct timespec *_RESTRICT_KYWD abstime) argument
172 mtx_trylock(mtx_t *mtx) argument
186 mtx_unlock(mtx_t *mtx) argument
[all...]
/illumos-gate/usr/src/test/libc-tests/tests/
H A Dc11_threads.c63 mtx_t mtx; local
65 VERIFY3S(mtx_init(&mtx, mtx_plain), ==, thrd_success);
66 mtx_destroy(&mtx);
67 VERIFY3S(mtx_init(&mtx, mtx_timed), ==, thrd_success);
68 mtx_destroy(&mtx);
69 VERIFY3S(mtx_init(&mtx, mtx_plain | mtx_recursive), ==, thrd_success);
70 mtx_destroy(&mtx);
71 VERIFY3S(mtx_init(&mtx, mtx_timed | mtx_recursive), ==, thrd_success);
72 mtx_destroy(&mtx);
74 VERIFY3S(mtx_init(&mtx, UINT32_MA
81 mtx_t mtx; local
96 mtx_t mtx; local
303 mtx_t mtx; local
323 mtx_t mtx; local
338 mtx_t *mtx = arg; local
353 mtx_t mtx; local
[all...]
/illumos-gate/usr/src/boot/sys/boot/usb/
H A Dusb_busdma_loader.c281 mtx_assert(pc->tag_parent->mtx, MA_OWNED);
354 struct mtx *mtx, usb_dma_callback_t *func,
362 (mtx == NULL)) {
370 udpt->mtx = mtx;
352 usb_dma_tag_setup(struct usb_dma_parent_tag *udpt, struct usb_dma_tag *udt, bus_dma_tag_t dmat, struct mtx *mtx, usb_dma_callback_t *func, uint8_t ndmabits, uint8_t nudt) argument
/illumos-gate/usr/src/uts/common/vm/
H A Dpage_lock.c937 kmutex_t *mtx; local
959 mtx = PAGE_SZC_MUTEX(rootpp);
960 mutex_enter(mtx);
971 return (mtx);
981 mutex_exit(mtx);
992 mutex_exit(mtx);
994 mtx = PAGE_SZC_MUTEX(rootpp);
995 mutex_enter(mtx);
996 mutex_exit(mtx);
1005 kmutex_t *mtx local
[all...]
H A Dvpm.c956 kmutex_t *mtx; local
984 mtx = VPMAPMTX(vpm);
985 mutex_enter(mtx);
990 mutex_exit(mtx);
H A Dseg_map.c1052 kmutex_t *mtx; local
1062 mtx = SHASHMTX(hashid);
1063 mutex_enter(mtx);
1082 mutex_exit(mtx);
1666 * and (vp, off) won't change when we have smap mtx.
H A Dvm_anon.c3605 kmutex_t *mtx; local
3620 sobj->sync_mutex = mtx = &anon_array_lock[hash].pad_mutex;
3622 mutex_enter(mtx);
3625 cv_wait(cv, mtx);
3628 mutex_exit(mtx);
3636 kmutex_t *mtx; local
3652 sobj->sync_mutex = mtx = &anon_array_lock[hash].pad_mutex;
3654 if (!mutex_tryenter(mtx)) {
3659 mutex_exit(mtx);
3664 mutex_exit(mtx);
[all...]
H A Dvm_page.c5343 kmutex_t *mtx; local
5353 mtx = page_szc_lock(pp);
5354 if (mtx != NULL) {
5356 mutex_exit(mtx);
/illumos-gate/usr/src/cmd/mdb/i86pc/modules/unix/
H A Dunix.c598 mutex_impl_t mtx; local
602 if (mdb_vread(&mtx, sizeof (mtx), addr) == -1)
605 if (!MUTEX_TYPE_ADAPTIVE(&mtx))
608 if ((owner = (uintptr_t)MUTEX_OWNER(&mtx)) == NULL)
/illumos-gate/usr/src/cmd/mdb/sun4u/modules/unix/
H A Dunix.c1561 mutex_impl_t mtx; local
1565 if (mdb_vread(&mtx, sizeof (mtx), addr) == -1)
1568 if (!MUTEX_TYPE_ADAPTIVE(&mtx))
1571 if ((owner = (uintptr_t)MUTEX_OWNER(&mtx)) == NULL)
/illumos-gate/usr/src/cmd/svr4pkg/pkgserv/
H A Dpkgserv.c166 static mutex_t mtx = DEFAULTMUTEX; variable
308 (void) mutex_lock(&mtx);
388 (void) cond_wait(&cv, &mtx);
522 (void) mutex_lock(&mtx);
532 (void) cond_wait(&cv, &mtx);
576 (void) mutex_unlock(&mtx);
582 (void) mutex_unlock(&mtx);
1199 (void) mutex_lock(&mtx);
1201 (void) mutex_unlock(&mtx);
1219 (void) mutex_lock(&mtx);
[all...]
/illumos-gate/usr/src/uts/common/fs/portfs/
H A Dport_fop.c559 kmutex_t *mtx; local
591 mtx = &pvfsh->pvfshash_mutex;
592 mutex_enter(mtx);
599 mutex_exit(mtx);
602 mutex_exit(mtx);
2015 kmutex_t *mtx; local
2023 mtx = &(portvfs_hash[PORTFOP_PVFSHASH(vfsp)].pvfshash_mutex);
2026 mutex_enter(mtx);
2040 mutex_exit(mtx);
2054 mutex_exit(mtx);
[all...]
/illumos-gate/usr/src/uts/sun4v/sys/
H A Dn2rng.h133 kmutex_t mtx; member in struct:fipsrandomstruct
/illumos-gate/usr/src/lib/smbsrv/libsmbns/common/
H A Dsmbns_netbios.h179 mutex_t mtx; member in struct:name_entry
618 mutex_t mtx; member in struct:name_queue
/illumos-gate/usr/src/uts/common/io/urtw/
H A Durtw.c3457 mblk_t *m = 0, *m0, *mtx; local
3525 mtx = allocb(xferlen, BPRI_MED);
3526 buf = mtx->b_rptr;
3559 mtx->b_wptr = mtx->b_rptr + xferlen;
3565 err = urtw_tx_start(sc, mtx, priority);
/illumos-gate/usr/src/uts/common/io/myri10ge/drv/
H A Dmyri10ge_var.h167 kmutex_t mtx; member in struct:myri10ge_jpool_stuff
/illumos-gate/usr/src/uts/sfmmu/vm/
H A Dhat_sfmmu.c10427 kmutex_t *mtx; local
10438 mtx = SFMMU_MLSPL_MTX(type, pp);
10439 mutex_enter(mtx);
10440 return (mtx);
10445 mtx = SFMMU_MLSPL_MTX(type, rootpp);
10446 mutex_enter(mtx);
10468 return (mtx);
10479 mutex_exit(mtx);
10488 return (mtx);
10496 mutex_exit(mtx);
10508 kmutex_t *mtx; local
[all...]
/illumos-gate/usr/src/uts/common/sys/fibre-channel/fca/emlxs/
H A Demlxs_fc.h49 kmutex_t mtx; member in struct:emlxs_buf

Completed in 238 milliseconds