Home
last modified time | relevance | path

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

12

/titanic_41/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->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_41/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_41/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_41/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, void *dbuf, size_t dlen) in pkcs11_write_common() argument
[all …]
/titanic_41/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 …]
H A Dsmbns_netbios.h179 mutex_t mtx; member
618 mutex_t mtx; member
/titanic_41/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_41/usr/src/uts/common/vm/
H A Dpage_lock.c937 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 …]
H A Dvpm.c956 kmutex_t *mtx; in vpm_unmap_pages() local
984 mtx = VPMAPMTX(vpm); in vpm_unmap_pages()
985 mutex_enter(mtx); in vpm_unmap_pages()
990 mutex_exit(mtx); in vpm_unmap_pages()
/titanic_41/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_41/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()
H A Demlxs_solaris.c2165 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_41/usr/src/lib/libast/amd64/include/ast/
H A Dsfio_t.h93 #define SFCLEAR(f,mtx) \ argument
114 (f)->mutex = (mtx), /* mutex */ \
/titanic_41/usr/src/lib/libast/common/include/
H A Dsfio_t.h93 #define SFCLEAR(f,mtx) \ argument
114 (f)->mutex = (mtx), /* mutex */ \
/titanic_41/usr/src/lib/libast/i386/include/ast/
H A Dsfio_t.h93 #define SFCLEAR(f,mtx) \ argument
114 (f)->mutex = (mtx), /* mutex */ \
/titanic_41/usr/src/lib/libast/sparcv9/include/ast/
H A Dsfio_t.h93 #define SFCLEAR(f,mtx) \ argument
114 (f)->mutex = (mtx), /* mutex */ \
/titanic_41/usr/src/lib/libast/sparc/include/ast/
H A Dsfio_t.h93 #define SFCLEAR(f,mtx) \ argument
114 (f)->mutex = (mtx), /* mutex */ \
/titanic_41/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()
/titanic_41/usr/src/cmd/isns/isnsd/
H A Desi.c181 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 Disns_esi.h69 pthread_mutex_t mtx; member
/titanic_41/usr/src/uts/common/fs/portfs/
H A Dport_fop.c559 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_41/usr/src/cmd/mdb/i86pc/modules/unix/
H A Dunix.c598 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()

12