/illumos-gate/usr/src/uts/sun4v/io/ |
H A D | ds_snmp.c | 91 kmutex_t lock; member 572 mutex_enter(&sp->lock); in ds_snmp_read() 575 mutex_exit(&sp->lock); in ds_snmp_read() 635 mutex_exit(&sp->lock); in ds_snmp_read() 682 mutex_enter(&sp->lock); in ds_snmp_write() 685 mutex_exit(&sp->lock); in ds_snmp_write() 729 mutex_exit(&sp->lock); in ds_snmp_write() 837 mutex_exit(&sp->lock); in ds_snmp_ioctl() 862 mutex_exit(&sp->lock); in ds_snmp_ioctl() 968 mutex_enter(&sp->lock); in ds_snmp_data_handler() [all …]
|
H A D | ds_common.c | 269 mutex_enter(&port->lock); in ds_handle_down_reset_events() 281 mutex_exit(&port->lock); in ds_handle_down_reset_events() 282 mutex_exit(&ds_svcs.lock); in ds_handle_down_reset_events() 297 mutex_enter(&port->lock); in ds_handle_up_event() 301 mutex_exit(&port->lock); in ds_handle_up_event() 472 mutex_exit(&port->lock); in ds_recv_msg() 557 mutex_exit(&port->lock); in ds_handle_recv() 709 mutex_exit(&port->lock); in ds_send_msg() 856 mutex_exit(&port->lock); in ds_handle_init_ack() 929 mutex_exit(&port->lock); in ds_handle_init_nack() [all …]
|
H A D | ldc.c | 433 mutex_exit(&ldcssp->lock); in _init() 1031 mutex_enter(&ldcp->lock); in i_ldc_rx_hdlr() 1056 mutex_exit(&ldcp->lock); in i_ldc_rx_hdlr() 1088 mutex_exit(&ldcp->lock); in i_ldc_rx_hdlr() 2175 mutex_exit(&ldcp->lock); in i_ldc_tx_hdlr() 2915 mutex_exit(&ldcp->lock); in ldc_fini() 3063 mutex_exit(&ldcp->lock); in ldc_open() 3245 mutex_exit(&ldcp->lock); in ldc_close() 3300 mutex_exit(&ldcp->lock); in ldc_reg_callback() 3345 mutex_exit(&ldcp->lock); in ldc_unreg_callback() [all …]
|
/illumos-gate/usr/src/cmd/sendmail/db/btree/ |
H A D | bt_rsearch.c | 74 DB_LOCK lock; local 108 (void)__BT_LPUT(dbc, lock); 124 (void)__BT_LPUT(dbc, lock); 128 (void)__BT_LPUT(dbc, lock); 158 (void)__BT_LPUT(dbc, lock); 201 BT_STK_ENTER(cp, h, recno * P_INDX, lock, ret); 217 BT_STK_ENTER(cp, h, recno, lock, ret); 236 BT_STK_ENTER(cp, h, indx, lock, ret); 239 BT_STK_PUSH(cp, h, indx, lock, ret); 333 DB_LOCK lock; local [all …]
|
H A D | bt_stat.c | 42 DB_LOCK lock; local 71 if ((ret = __bam_lget(dbc, 0, pgno, DB_LOCK_READ, &lock)) != 0) 79 (void)__BT_LPUT(dbc, lock); 85 if ((ret = __bam_lget(dbc, 0, pgno, DB_LOCK_READ, &lock)) != 0) 117 (void)__BT_TLPUT(dbc, lock); 126 (void)__BT_TLPUT(dbc, lock); 138 (void)__BT_LPUT(dbc, lock); 175 (void)__BT_LPUT(dbc, lock); 180 (void)__BT_LPUT(dbc, lock); 184 if (__bam_lget(dbc, 0, pgno, DB_LOCK_READ, &lock)) [all …]
|
/illumos-gate/usr/src/lib/smbclnt/libfknsmb/common/ |
H A D | fake_softc.c | 37 kmutex_t lock; /* serialize access to this struct */ member 52 mutex_enter(&ss->lock); in ddi_get_soft_state() 57 mutex_exit(&ss->lock); in ddi_get_soft_state() 72 mutex_init(&ss->lock, NULL, MUTEX_DRIVER, NULL); in ddi_soft_state_init() 106 mutex_enter(&ss->lock); in ddi_soft_state_zalloc() 108 mutex_exit(&ss->lock); in ddi_soft_state_zalloc() 121 mutex_exit(&ss->lock); in ddi_soft_state_zalloc() 181 mutex_exit(&ss->lock); in ddi_soft_state_zalloc() 201 mutex_enter(&ss->lock); in ddi_soft_state_free() 214 mutex_exit(&ss->lock); in ddi_soft_state_free() [all …]
|
/illumos-gate/usr/src/cmd/sendmail/db/include/ |
H A D | hash.h | 62 DB_LOCK lock; /* Lock held on the current bucket. */ member 96 (COPY)->lock != 0 && (ORIG)->lock != (COPY)->lock) \ 97 (void)lock_put((D)->dbenv->lk_info, (COPY)->lock); \ 100 (ORIG)->lock != 0 && (ORIG)->lock != (COPY)->lock) \ 101 (void)lock_put((D)->dbenv->lk_info, (ORIG)->lock); \ 112 (I)->dbc->lock.pgno = BUCKET_INVALID; \ 141 (I)->dbc->lock.pgno = BUCKET_INVALID; \
|
/illumos-gate/usr/src/lib/sun_fc/common/ |
H A D | Handle.cc | 79 lock(&staticLock); in Handle() 121 lock(&staticLock); 166 lock(&staticLock); in ~Handle() 177 lock(); in ~Handle() 266 lock(); in refresh() 304 lock(); in getHandle() 345 lock(); in getHandlePort() 369 lock(); in getHBAAttributes() 387 lock(); in doForceLip() 400 lock(); in npivGetHBAAttributes() [all …]
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | cpudrv.c | 337 mutex_exit(&cpudsp->lock); in cpudrv_attach() 370 mutex_enter(&cpudsp->lock); in cpudrv_attach() 378 mutex_exit(&cpudsp->lock); in cpudrv_attach() 425 mutex_enter(&cpudsp->lock); in cpudrv_detach() 431 mutex_exit(&cpudsp->lock); in cpudrv_detach() 553 mutex_enter(&cpudsp->lock); in cpudrv_power() 578 mutex_exit(&cpudsp->lock); in cpudrv_power() 605 mutex_exit(&cpudsp->lock); in cpudrv_power() 616 mutex_exit(&cpudsp->lock); in cpudrv_power() 644 mutex_exit(&cpudsp->lock); in cpudrv_power() [all …]
|
/illumos-gate/usr/src/lib/libmapmalloc/common/ |
H A D | textmem.c | 97 (void) mutex_lock(&lock); in malloc() 99 (void) mutex_unlock(&lock); in malloc() 161 (void) mutex_lock(&lock); in realloc() 164 (void) mutex_unlock(&lock); in realloc() 181 (void) mutex_unlock(&lock); in realloc() 189 (void) mutex_unlock(&lock); in realloc() 198 (void) mutex_lock(&lock); in free() 200 (void) mutex_unlock(&lock); in free() 207 (void) mutex_unlock(&lock); in free() 280 (void) mutex_lock(&lock); in malloc_prepare() [all …]
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/profile/ |
H A D | prof_set.c | 52 retval = k5_mutex_init(&new_data->lock); in rw_setup() 101 retval = k5_mutex_lock(&profile->first_file->data->lock); in profile_update_relation() 110 k5_mutex_unlock(&profile->first_file->data->lock); in profile_update_relation() 125 k5_mutex_unlock(&profile->first_file->data->lock); in profile_update_relation() 205 k5_mutex_unlock(&profile->first_file->data->lock); in profile_rename_section() 220 k5_mutex_unlock(&profile->first_file->data->lock); in profile_rename_section() 260 k5_mutex_unlock(&profile->first_file->data->lock); in profile_add_relation() 268 k5_mutex_unlock(&profile->first_file->data->lock); in profile_add_relation() 271 k5_mutex_unlock(&profile->first_file->data->lock); in profile_add_relation() 278 k5_mutex_unlock(&profile->first_file->data->lock); in profile_add_relation() [all …]
|
/illumos-gate/usr/src/uts/common/io/ib/clients/of/sol_uverbs/ |
H A D | sol_uverbs_event.c | 143 mutex_enter(&ufile->lock); in sol_uverbs_event_file_read() 153 mutex_exit(&ufile->lock); in sol_uverbs_event_file_read() 160 mutex_exit(&ufile->lock); in sol_uverbs_event_file_read() 169 mutex_exit(&ufile->lock); in sol_uverbs_event_file_read() 176 mutex_exit(&ufile->lock); in sol_uverbs_event_file_read() 209 mutex_exit(&ufile->lock); in sol_uverbs_event_file_read() 269 mutex_enter(&ufile->lock); in sol_uverbs_event_file_poll() 293 mutex_exit(&ufile->lock); in sol_uverbs_event_file_poll() 391 mutex_enter(&ufile->lock); in uverbs_release_event_file() 409 mutex_exit(&ufile->lock); in uverbs_release_event_file() [all …]
|
/illumos-gate/usr/src/uts/common/io/cxgbe/t4nex/ |
H A D | t4_l2t.c | 127 krwlock_t lock; member 265 rw_destroy(&d->lock); in t4_free_l2t() 362 mutex_enter(&e->lock); in t4_l2t_send() 370 mutex_exit(&e->lock); in t4_l2t_send() 409 mutex_enter(&e->lock); in t4_l2e_free() 419 mutex_exit(&e->lock); in t4_l2e_free() 503 mutex_exit(&e->lock); in t4_l2t_get() 509 rw_exit(&d->lock); in t4_l2t_get() 528 mutex_enter(&e->lock); in t4_l2t_update() 532 mutex_exit(&e->lock); in t4_l2t_update() [all …]
|
H A D | adapter.h | 96 kmutex_t lock; member 208 kmutex_t lock; /* Rx access lock */ member 244 kmutex_t lock; member 275 kmutex_t lock; member 563 kmutex_t lock; member 604 #define IQ_LOCK(iq) mutex_enter(&(iq)->lock) 605 #define IQ_UNLOCK(iq) mutex_exit(&(iq)->lock) 609 #define FL_LOCK(fl) mutex_enter(&(fl)->lock) 624 #define EQ_LOCK(eq) mutex_enter(&(eq)->lock) 656 mutex_enter(lock); in t4_os_lock() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/aso/ |
H A D | aso.c | 412 lock(state.data, k, p); 437 lock(state.data, k, p); 462 lock(state.data, k, p); 489 lock(state.data, k, p); 520 lock(state.data, k, p); 545 lock(state.data, k, p); 570 lock(state.data, k, p); 597 lock(state.data, k, p); 702 lock(state.data, k, p); 774 lock(state.data, k, p); [all …]
|
/illumos-gate/usr/src/uts/common/io/zyd/ |
H A D | zyd.c | 1095 ASSERT(lock != NULL); in zyd_cb_lock_init() 1098 lock->done = B_FALSE; in zyd_cb_lock_init() 1105 ASSERT(lock != NULL); in zyd_cb_lock_destroy() 1107 cv_destroy(&lock->cv); in zyd_cb_lock_destroy() 1121 ASSERT(lock != NULL); in zyd_cb_lock_wait() 1128 (void) cv_wait(&lock->cv, &lock->mutex); in zyd_cb_lock_wait() 1134 cv_timedwait_sig(&lock->cv, &lock->mutex, etime); in zyd_cb_lock_wait() 1142 mutex_exit(&lock->mutex); in zyd_cb_lock_wait() 1151 ASSERT(lock != NULL); in zyd_cb_lock_signal() 1155 lock->done = B_TRUE; in zyd_cb_lock_signal() [all …]
|
/illumos-gate/usr/src/lib/libnisdb/ |
H A D | nis_hashitem.c | 111 (void) pthread_mutex_lock(&table->lock); in __nis_lock_hash_table() 121 &table->lock); in __nis_lock_hash_table() 281 (void) pthread_cond_init(&item->lock, 0); in __nis_insert_item_mt() 380 (void) pthread_cond_wait(&item->lock, &table->lock); in __nis_find_item_mt() 422 (void) pthread_cond_wait(&item->lock, &table->lock); in __nis_pop_item_mt() 469 (void) pthread_cond_signal(&item->lock); in __nis_pop_item_mt() 470 (void) pthread_cond_destroy(&item->lock); in __nis_pop_item_mt() 515 (void) pthread_cond_wait(&nl->lock, &table->lock); in __nis_remove_item_mt() 553 (void) pthread_cond_signal(&nl->lock); in __nis_remove_item_mt() 554 (void) pthread_cond_destroy(&nl->lock); in __nis_remove_item_mt() [all …]
|
/illumos-gate/usr/src/uts/sun4u/opl/io/oplmsu/ |
H A D | oplmsu_ioctl_lrp.c | 87 rw_exit(&oplmsu_uinst->lock); in oplmsu_lrioctl_termios() 150 rw_exit(&oplmsu_uinst->lock); in oplmsu_lrioctl_termios() 159 rw_exit(&oplmsu_uinst->lock); in oplmsu_lrioctl_termios() 237 rw_exit(&oplmsu_uinst->lock); in oplmsu_lrioctl_termios() 467 rw_exit(&oplmsu_uinst->lock); in oplmsu_lrioctl_termios() 499 rw_exit(&oplmsu_uinst->lock); in oplmsu_lrmsg_error() 516 rw_exit(&oplmsu_uinst->lock); in oplmsu_lrmsg_error() 527 rw_exit(&oplmsu_uinst->lock); in oplmsu_lrmsg_error() 532 rw_exit(&oplmsu_uinst->lock); in oplmsu_lrmsg_error() 599 rw_exit(&oplmsu_uinst->lock); in oplmsu_lrmsg_error() [all …]
|
/illumos-gate/usr/src/uts/common/io/ib/clients/rds/ |
H A D | rdssubr.c | 68 rds_increment_kstat(kstat_named_t *ksnp, boolean_t lock, uint_t num) in rds_increment_kstat() argument 70 if (lock) in rds_increment_kstat() 73 if (lock) in rds_increment_kstat() 80 if (lock) in rds_decrement_kstat() 83 if (lock) in rds_decrement_kstat() 88 rds_set_kstat(kstat_named_t *ksnp, boolean_t lock, ulong_t num) in rds_set_kstat() argument 90 if (lock) in rds_set_kstat() 93 if (lock) in rds_set_kstat() 98 rds_get_kstat(kstat_named_t *ksnp, boolean_t lock) in rds_get_kstat() argument 102 if (lock) in rds_get_kstat() [all …]
|
/illumos-gate/usr/src/uts/intel/sys/ |
H A D | synch32.h | 42 #define mutex_lockword lock.lock32.lockword 44 #define mutex_lockword64 lock.owner64 46 #define mutex_lockw lock.lock64.pad[7] 47 #define mutex_waiters lock.lock64.pad[6] 48 #define mutex_spinners lock.lock64.pad[5] 51 #define mutex_ownerpid lock.lock32.ownerpid
|
/illumos-gate/usr/src/uts/sparc/sys/ |
H A D | synch32.h | 42 #define mutex_lockword lock.lock32.lockword 44 #define mutex_lockword64 lock.owner64 46 #define mutex_lockw lock.lock64.pad[4] 47 #define mutex_waiters lock.lock64.pad[7] 48 #define mutex_spinners lock.lock64.pad[5] 51 #define mutex_ownerpid lock.lock32.ownerpid
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | msg.c | 444 kmutex_t *lock; in msgctl() local 554 mutex_exit(lock); in msgctl() 558 mutex_exit(lock); in msgctl() 596 kmutex_t *lock; in msgget() local 661 mutex_exit(lock); in msgget() 670 kmutex_t *lock; in msgrcv() local 972 kmutex_t *lock; in msgsnap() local 1036 mutex_exit(lock); in msgsnap() 1186 lock = ipc_relock(msq_svc, qp->msg_perm.ipc_id, lock); in msgsnd() 1247 if (lock) in msgsnd() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/features/ |
H A D | asometh | 10 struct flock lock; 12 lock.l_type = F_WRLCK; 13 lock.l_whence = SEEK_SET; 14 lock.l_start = 0; 15 lock.l_len = 1; 16 return fcntl(1, F_SETLKW, &lock) < 0;
|
/illumos-gate/usr/src/lib/udapl/udapl_tavor/common/ |
H A D | dapl_ep_connect.c | 155 dapl_os_lock(&ep_ptr->header.lock); in dapl_ep_connect() 162 dapl_os_unlock(&ep_ptr->header.lock); in dapl_ep_connect() 178 dapl_os_unlock(&ep_ptr->header.lock); in dapl_ep_connect() 185 dapl_os_lock(&ep_ptr->header.lock); in dapl_ep_connect() 209 dapl_os_unlock(&ep_ptr->header.lock); in dapl_ep_connect() 224 dapl_os_unlock(&ep_ptr->header.lock); in dapl_ep_connect() 232 dapl_os_unlock(&ep_ptr->header.lock); in dapl_ep_connect() 243 dapl_os_unlock(&ep_ptr->header.lock); in dapl_ep_connect() 252 dapl_os_unlock(&ep_ptr->header.lock); in dapl_ep_connect() 267 dapl_os_unlock(&ep_ptr->header.lock); in dapl_ep_connect()
|
/illumos-gate/usr/src/uts/common/fs/nfs/ |
H A D | nfs4_acache.c | 77 rw_enter(&hp->lock, RW_READER); in nfs4_access_check() 95 rw_exit(&hp->lock); in nfs4_access_check() 100 rw_exit(&hp->lock); in nfs4_access_check() 133 rw_enter(&hp->lock, RW_WRITER); in nfs4_access_cache() 142 rw_exit(&hp->lock); in nfs4_access_cache() 168 rw_exit(&hp->lock); in nfs4_access_cache() 195 rw_enter(&ap->hashq->lock, RW_WRITER); in nfs4_access_purge_rp() 198 rw_exit(&ap->hashq->lock); in nfs4_access_purge_rp() 231 rw_init(&acache4[i].lock, NULL, RW_DEFAULT, NULL); in nfs4_acache_init() 250 rw_destroy(&acache4[i].lock); in nfs4_acache_fini()
|