Searched refs:lock (Results 201 - 225 of 1904) sorted by relevance

1234567891011>>

/freebsd-9.3-release/sys/kern/
H A Dkern_mutex.c53 #include <sys/lock.h>
82 PMC_SOFT_DEFINE( , , lock, failed);
94 static void assert_mtx(struct lock_object *lock, int what);
96 static void db_show_mtx(struct lock_object *lock);
98 static void lock_mtx(struct lock_object *lock, int how);
99 static void lock_spin(struct lock_object *lock, int how);
101 static int owner_mtx(struct lock_object *lock, struct thread **owner);
103 static int unlock_mtx(struct lock_object *lock);
104 static int unlock_spin(struct lock_object *lock);
143 assert_mtx(struct lock_object *lock, in argument
150 lock_mtx(struct lock_object *lock, int how) argument
157 lock_spin(struct lock_object *lock, int how) argument
164 unlock_mtx(struct lock_object *lock) argument
175 unlock_spin(struct lock_object *lock) argument
183 owner_mtx(struct lock_object *lock, struct thread **owner) argument
655 struct mtx *lock; local
676 struct mtx *lock; local
915 db_show_mtx(struct lock_object *lock) argument
[all...]
/freebsd-9.3-release/contrib/ntp/lib/isc/
H A Dstats.c61 isc_mutex_t lock; member in struct:isc_stats
62 unsigned int references; /* locked by lock */
74 * We don't want to lock the counters while we are dumping, so we first
98 result = isc_mutex_init(&stats->lock);
141 DESTROYLOCK(&stats->lock);
154 LOCK(&stats->lock);
156 UNLOCK(&stats->lock);
170 LOCK(&stats->lock);
172 UNLOCK(&stats->lock);
179 DESTROYLOCK(&stats->lock);
[all...]
H A Dentropy.c103 isc_mutex_t lock; member in struct:isc_entropy
309 * Requires that the lock is held on the entropy pool.
550 LOCK(&ent->lock);
638 UNLOCK(&ent->lock);
650 UNLOCK(&ent->lock);
686 * We need a lock.
688 result = isc_mutex_init(&ent->lock);
793 LOCK(&ent->lock);
820 UNLOCK(&ent->lock);
822 DESTROYLOCK(&ent->lock);
[all...]
/freebsd-9.3-release/sys/contrib/rdma/
H A Drdma_cache.c48 #include <sys/lock.h>
103 mtx_lock(&device->cache.lock);
112 mtx_unlock(&device->cache.lock);
130 mtx_lock(&device->cache.lock);
145 mtx_unlock(&device->cache.lock);
161 mtx_lock(&device->cache.lock);
170 mtx_unlock(&device->cache.lock);
187 mtx_lock(&device->cache.lock);
200 mtx_unlock(&device->cache.lock);
214 mtx_lock(&device->cache.lock);
[all...]
/freebsd-9.3-release/sys/geom/
H A Dgeom_fox.c45 #include <sys/lock.h>
62 struct mtx lock; member in struct:g_fox_softc
148 mtx_lock(&sc->lock);
158 mtx_unlock(&sc->lock);
174 mtx_lock(&sc->lock);
183 mtx_unlock(&sc->lock);
195 mtx_destroy(&sc->lock);
218 mtx_lock(&sc->lock);
229 mtx_unlock(&sc->lock);
257 mtx_lock(&sc->lock);
[all...]
/freebsd-9.3-release/sys/dev/mlx/
H A Dmlxvar.h192 mlx_lock_tas(struct mlx_softc *sc, int lock) argument
194 if ((sc)->mlx_locks & (lock))
196 atomic_set_int(&sc->mlx_locks, lock);
201 mlx_lock_clr(struct mlx_softc *sc, int lock) argument
203 atomic_clear_int(&sc->mlx_locks, lock);
/freebsd-9.3-release/sys/dev/sfxge/
H A Dsfxge_port.c51 mtx_lock(&port->lock);
85 mtx_unlock(&port->lock);
173 mtx_lock(&port->lock);
194 mtx_unlock(&port->lock);
210 mtx_lock(&port->lock);
216 mtx_unlock(&port->lock);
265 mtx_lock(&port->lock);
275 mtx_unlock(&port->lock);
325 mtx_lock(&port->lock);
327 mtx_unlock(&port->lock);
[all...]
/freebsd-9.3-release/sys/dev/sound/midi/
H A Dmidi.c43 #include <sys/lock.h>
102 struct mtx lock; /* Protects all but queues */ member in struct:snd_midi
292 mtx_lock(&m->lock);
295 mtx_unlock(&m->lock);
305 mtx_unlock(&m->lock);
327 mtx_init(&m->lock, "raw midi", NULL, 0);
330 mtx_lock(&m->lock);
362 mtx_unlock(&m->lock);
377 mtx_destroy(&m->lock);
403 mtx_lock(&m->lock);
[all...]
/freebsd-9.3-release/contrib/bind9/lib/isc/
H A Dentropy.c103 isc_mutex_t lock; member in struct:isc_entropy
309 * Requires that the lock is held on the entropy pool.
550 LOCK(&ent->lock);
638 UNLOCK(&ent->lock);
650 UNLOCK(&ent->lock);
686 * We need a lock.
688 result = isc_mutex_init(&ent->lock);
793 LOCK(&ent->lock);
820 UNLOCK(&ent->lock);
822 DESTROYLOCK(&ent->lock);
[all...]
/freebsd-9.3-release/sys/ofed/drivers/infiniband/hw/mthca/
H A Dmthca_srq.c259 spin_lock_init(&srq->lock);
282 spin_lock_irq(&dev->srq_table.lock);
286 spin_unlock_irq(&dev->srq_table.lock);
289 spin_unlock_irq(&dev->srq_table.lock);
332 spin_lock_irq(&dev->srq_table.lock);
334 spin_unlock_irq(&dev->srq_table.lock);
357 spin_lock_irq(&dev->srq_table.lock);
361 spin_unlock_irq(&dev->srq_table.lock);
447 spin_lock(&dev->srq_table.lock);
451 spin_unlock(&dev->srq_table.lock);
[all...]
/freebsd-9.3-release/contrib/ofed/management/opensm/complib/
H A Dcl_event_wheel.c83 * The external lock goes first.
87 cl_spinlock_acquire(&p_event_wheel->lock);
182 /* release the lock */
184 cl_spinlock_release(&p_event_wheel->lock);
194 cl_spinlock_construct(&(p_event_wheel->lock));
206 cl_status = cl_spinlock_init(&(p_event_wheel->lock));
256 /* we need to get a lock */
257 cl_spinlock_acquire(&p_event_wheel->lock);
282 /* destroy the lock (this should be done without releasing - we don't want
283 any other run to grab the lock a
[all...]
/freebsd-9.3-release/sys/ofed/drivers/infiniband/core/
H A Dcache.c84 read_lock_irqsave(&device->cache.lock, flags);
93 read_unlock_irqrestore(&device->cache.lock, flags);
113 read_lock_irqsave(&device->cache.lock, flags);
128 read_unlock_irqrestore(&device->cache.lock, flags);
146 read_lock_irqsave(&device->cache.lock, flags);
155 read_unlock_irqrestore(&device->cache.lock, flags);
174 read_lock_irqsave(&device->cache.lock, flags);
187 read_unlock_irqrestore(&device->cache.lock, flags);
203 read_lock_irqsave(&device->cache.lock, flags);
205 read_unlock_irqrestore(&device->cache.lock, flag
[all...]
/freebsd-9.3-release/contrib/bind9/lib/dns/
H A Dcache.c92 isc_mutex_t lock; member in struct:cache_cleaner
95 * while holding this lock - that could lead to deadlock since
96 * the lock is take by water() which is called from the memory
124 isc_mutex_t lock; member in struct:dns_cache
130 /* Locked by 'lock'. */
228 result = isc_mutex_init(&cache->lock);
329 DESTROYLOCK(&cache->lock);
359 DESTROYLOCK(&cache->cleaner.lock);
390 DESTROYLOCK(&cache->lock);
405 LOCK(&cache->lock);
[all...]
H A Ddbtable.c43 isc_mutex_t lock; member in struct:dns_dbtable
45 /* Locked by lock. */
83 result = isc_mutex_init(&dbtable->lock);
103 DESTROYLOCK(&dbtable->lock);
141 LOCK(&source->lock);
147 UNLOCK(&source->lock);
161 LOCK(&dbtable->lock);
168 UNLOCK(&dbtable->lock);
H A Dclient.c77 isc_mutex_t lock; member in struct:dns_client
123 isc_mutex_t lock; member in struct:resctx
150 isc_mutex_t lock; member in struct:resarg
166 isc_mutex_t lock; member in struct:reqctx
185 isc_mutex_t lock; member in struct:reqarg
200 isc_mutex_t lock; member in struct:updatearg
214 isc_mutex_t lock; member in struct:updatectx
459 result = isc_mutex_init(&client->lock);
587 DESTROYLOCK(&client->lock);
604 LOCK(&client->lock);
[all...]
/freebsd-9.3-release/sys/dev/sound/pci/
H A Dvia82c686.c93 struct mtx *lock; member in struct:via_info
252 snd_mtxlock(via->lock);
275 snd_mtxunlock(via->lock);
297 snd_mtxlock(via->lock);
302 snd_mtxunlock(via->lock);
355 snd_mtxlock(via->lock);
362 snd_mtxunlock(via->lock);
378 snd_mtxlock(via->lock);
384 snd_mtxunlock(via->lock);
437 snd_mtxlock(via->lock);
[all...]
H A Dcmi.c119 struct mtx *lock; member in struct:sc_info
365 snd_mtxlock(sc->lock);
371 snd_mtxunlock(sc->lock);
398 snd_mtxlock(sc->lock);
412 snd_mtxunlock(sc->lock);
426 snd_mtxlock(sc->lock);
454 snd_mtxunlock(sc->lock);
488 snd_mtxlock(sc->lock);
510 snd_mtxunlock(sc->lock);
521 snd_mtxlock(sc->lock);
[all...]
/freebsd-9.3-release/contrib/ntp/sntp/libevent/test/
H A Dregress_thread.c70 void *lock; member in struct:cond_wait
78 EVLOCK_LOCK(cw->lock, 0);
80 EVLOCK_UNLOCK(cw->lock, 0);
88 EVLOCK_LOCK(cw->lock, 0);
90 EVLOCK_UNLOCK(cw->lock, 0);
106 EVTHREAD_ALLOC_LOCK(cw.lock, 0);
108 assert(cw.lock);
118 EVLOCK_LOCK(cw.lock, 0);
123 assert(EVTHREAD_COND_WAIT(cw.cond, cw.lock) == 0);
124 EVLOCK_UNLOCK(cw.lock,
[all...]
/freebsd-9.3-release/contrib/ofed/management/opensm/opensm/
H A Dosm_log.c144 cl_spinlock_acquire(&p_log->lock);
198 cl_spinlock_release(&p_log->lock);
205 cl_spinlock_acquire(&p_log->lock);
207 cl_spinlock_release(&p_log->lock);
292 cl_spinlock_acquire(&p_log->lock);
295 cl_spinlock_release(&p_log->lock);
323 if (cl_spinlock_init(&p_log->lock) == CL_SUCCESS)
/freebsd-9.3-release/sys/dev/cxgb/ulp/iw_cxgb/
H A Diw_cxgb_cm.h155 struct mtx lock; member in struct:iwch_ep_common
211 iwch_wait(struct cv *cv, struct mtx *lock, int *rpl_done) argument
213 mtx_lock(lock);
216 cv_wait_unlock(cv, lock);
222 iwch_wakeup(struct cv *cv, struct mtx *lock, int *rpl_done) argument
224 mtx_lock(lock);
228 mtx_unlock(lock);
/freebsd-9.3-release/sys/ofed/drivers/net/mlx4/
H A Dcq.c97 spin_lock(&cq_table->lock);
103 spin_unlock(&cq_table->lock);
235 spin_lock_irq(&cq_table->lock);
237 spin_unlock_irq(&cq_table->lock);
275 spin_lock_irq(&cq_table->lock);
277 spin_unlock_irq(&cq_table->lock);
305 spin_lock_irq(&cq_table->lock);
307 spin_unlock_irq(&cq_table->lock);
323 spin_lock_init(&cq_table->lock);
/freebsd-9.3-release/contrib/libc++/src/
H A Dmemory.cpp98 __shared_weak_count::lock() _NOEXCEPT
141 __sp_mut::lock() _NOEXCEPT
149 m.lock();
/freebsd-9.3-release/crypto/openssh/contrib/redhat/
H A Dsshd.init.old132 touch /var/lock/subsys/sshd
144 [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/sshd
155 if [ -f /var/lock/subsys/sshd ] ; then
/freebsd-9.3-release/sys/contrib/octeon-sdk/
H A Docteon-pci-console.c306 cvmx_spinlock_t *lock; local
315 lock = (cvmx_spinlock_t *)&cons_ptr->lock;
319 cvmx_spinlock_lock(lock);
353 cvmx_spinlock_unlock(lock);
361 cvmx_spinlock_t *lock; local
374 lock = (cvmx_spinlock_t *)&cons_ptr->lock;
375 cvmx_spinlock_lock(lock);
398 cvmx_spinlock_unlock(lock);
[all...]
/freebsd-9.3-release/sys/mips/rmi/
H A Dfmn.c35 #include <sys/lock.h>
88 struct mtx lock; /* for changing running/active */ member in struct:msgring_thread
299 mtx_lock_spin(&mthd->lock);
303 mtx_unlock_spin(&mthd->lock);
315 mtx_unlock_spin(&mthd->lock);
351 mtx_lock_spin(&mthd->lock);
353 mtx_unlock_spin(&mthd->lock);
357 mtx_lock_spin(&mthd->lock);
360 mtx_unlock_spin(&mthd->lock);
366 mtx_lock_spin(&mthd->lock);
[all...]

Completed in 496 milliseconds

1234567891011>>