/dragonfly/sys/sys/ |
H A D | spinlock2.h | 58 #define spin_lock(spin) _spin_lock(spin, __func__) argument 59 #define spin_lock_quick(spin) _spin_lock_quick(spin, __func__) argument 60 #define spin_lock_shared(spin) _spin_lock_shared(spin, __func__) argument 61 #define spin_lock_shared_quick(spin) _spin_lock_shared_quick(spin, __func__) argument 301 spin->lock = 0; in spin_init() 302 spin->update = 0; in spin_init() 304 spin->descr = descr; in spin_init() 348 spin_lock(spin); in spin_lock_update() 351 KKASSERT_UNSPIN((spin->update & 1), spin); in spin_lock_update() 359 KKASSERT_UNSPIN(((spin->update & 1) == 0), spin); in spin_unlock_update() [all …]
|
H A D | _malloc.h | 61 struct spinlock spin; member 105 struct spinlock spin; member
|
/dragonfly/sys/kern/ |
H A D | kern_spinlock.c | 81 KTR_INFO_MASTER(spin); 87 #define logspin(name, spin, type) \ argument 88 KTR_LOG(spin_ ## name, spin, type) 236 ovalue = spin->lock; in _spin_lock_contested() 369 ovalue = spin->lock; in _spin_lock_shared_contested() 404 struct spinlock spin; in sysctl_spin_lock_test() local 418 spin_init(&spin, "sysctllock"); in sysctl_spin_lock_test() 421 spin_lock(&spin); in sysctl_spin_lock_test() 423 spin_unlock(&spin); in sysctl_spin_lock_test() 433 spin_init(&spin, "sysctllocktest"); in sysctl_spin_lock_test() [all …]
|
H A D | kern_timeout.c | 132 struct spinlock spin; member 637 spin_lock(&c->spin); in softclock_handler() 719 spin_lock(&c->spin); in _callout_gettoc() 731 spin_lock(&c->spin); in _callout_gettoc() 734 spin_unlock(&c->spin); in _callout_gettoc() 813 spin_unlock(&c->spin); in callout_reset() 845 spin_unlock(&c->spin); in callout_reset_bycpu() 876 spin_unlock(&c->spin); in _callout_cancel_or_stop() 888 spin_lock(&c->spin); in _callout_cancel_or_stop() 917 spin_unlock(&c->spin); in _callout_cancel_or_stop() [all …]
|
H A D | vfs_lock.c | 187 spin_lock(&vi->spin); in _vactivate() 191 spin_unlock(&vi->spin); in _vactivate() 205 spin_unlock(&vi->spin); in _vactivate() 226 spin_lock(&vi->spin); in _vinactive() 237 spin_unlock(&vi->spin); in _vinactive() 257 spin_unlock(&vi->spin); in _vinactive() 806 spin_lock(&vi->spin); in cleanfreevnode() 894 spin_unlock(&vi->spin); in cleanfreevnode() 911 spin_lock(&vi->spin); in cleanfreevnode() 1025 spin_lock(&vi->spin); in cleanfreevnode() [all …]
|
H A D | kern_objcache.c | 81 struct spinlock spin; member 366 spin_lock(&depot->spin); in objcache_set_cluster_limit() 470 spin_lock(&depot->spin); in objcache_get() 522 spin_lock(&depot->spin); in objcache_get() 563 spin_unlock(&depot->spin); in objcache_get() 676 spin_lock(&depot->spin); in objcache_put() 712 spin_unlock(&depot->spin); in objcache_put() 731 spin_lock(&depot->spin); in objcache_dtor() 733 spin_unlock(&depot->spin); in objcache_dtor() 890 spin_lock(&depot->spin); in objcache_reclaimlist() [all …]
|
H A D | usched_dfly.c | 390 spin_lock(&dd->spin); in dfly_acquire_curproc() 556 spin_unlock(&dd->spin); in dfly_acquire_curproc() 610 spin_lock(&dd->spin); in dfly_release_curproc() 657 spin_lock(&dd->spin); in dfly_select_curproc() 670 spin_unlock(&dd->spin); in dfly_select_curproc() 748 spin_lock(&dd->spin); in dfly_setrunqueue() 804 spin_lock(&rdd->spin); in dfly_setrunqueue_dd() 942 spin_lock(&dd->spin); in dfly_schedulerclock() 1112 spin_lock(&rdd->spin); in dfly_resetpriority() 1309 spin_lock(&dd->spin); in dfly_changedcpu() [all …]
|
H A D | subr_rbtree.c | 52 rb_spin_lock(struct spinlock *spin) in rb_spin_lock() argument 54 spin_lock(spin); in rb_spin_lock() 58 rb_spin_unlock(struct spinlock *spin) in rb_spin_unlock() argument 60 spin_unlock(spin); in rb_spin_unlock()
|
H A D | kern_sysref.c | 71 struct spinlock spin; member 82 spin_init(&sa->spin, "sysrefbootinit"); in sysrefbootinit() 121 spin_lock(&sa->spin); in sysref_init() 123 spin_unlock(&sa->spin); in sysref_init() 224 spin_lock(&sa->spin); in sysref_ctor() 226 spin_unlock(&sa->spin); in sysref_ctor() 258 spin_lock(&sa->spin); in sysref_dtor() 260 spin_unlock(&sa->spin); in sysref_dtor()
|
H A D | kern_kmalloc.c | 277 spin_init(&mgt->spin, "kmmgt"); in malloc_mgt_init() 328 spin_init(&dst->spin, "kmmgt"); in malloc_mgt_relocate() 356 spin_uninit(&mgt->spin); in malloc_mgt_uninit() 534 spin_lock(&ggm->spin); in malloc_mgt_poll() 595 spin_unlock(&ggm->spin); in malloc_mgt_poll() 781 spin_lock(&ggm->spin); in _kmalloc_obj_debug() 797 spin_unlock(&ggm->spin); in _kmalloc_obj_debug() 815 spin_unlock(&ggm->spin); in _kmalloc_obj_debug() 834 spin_unlock(&ggm->spin); in _kmalloc_obj_debug() 877 spin_lock(&ggm->spin); in _kmalloc_obj_debug() [all …]
|
H A D | vfs_cache.c | 160 struct spinlock spin; member 912 spin_unlock(&nchpp->spin); in _cache_unlink_parent() 2111 spin_lock(&nchpp->spin); in cache_rename() 2134 spin_lock(&nchpp->spin); in cache_rename() 3625 spin_lock(&nchpp->spin); in cache_nlookup_nonblock() 3986 spinlk = &ncc->spin; in cache_findmount() 4055 spin_lock(&ncc->spin); in cache_findmount() 4137 spin_lock(&ncc->spin); in cache_ismounting() 4170 spin_lock(&ncc->spin); in cache_ismounting() 4191 spin_unlock(&ncc->spin); in cache_ismounting() [all …]
|
H A D | kern_nrandom.c | 574 spin_lock(&state->spin); in add_keyboard_randomness() 579 spin_unlock(&state->spin); in add_keyboard_randomness() 612 spin_lock(&state->spin); in add_buffer_randomness_state() 628 spin_unlock(&state->spin); in add_buffer_randomness_state() 699 spin_lock(&state->spin); in read_random() 715 spin_unlock(&state->spin); in read_random() 866 spin_lock(&state->spin); in rand_thread_loop() 868 spin_unlock(&state->spin); in rand_thread_loop()
|
H A D | kern_ktr.c | 347 struct spinlock spin; in ktr_resync_callback() local 349 spin_init(&spin, "ktrresync"); in ktr_resync_callback() 350 spin_lock(&spin); in ktr_resync_callback() 351 spin_unlock(&spin); in ktr_resync_callback() 354 spin_lock(&spin); in ktr_resync_callback() 355 spin_unlock(&spin); in ktr_resync_callback()
|
H A D | subr_csprng.c | 147 ssleep(state, &state->spin, 0, "csprngrsd", 0); in csprng_get_random() 248 spin_lock(&state->spin); 250 spin_unlock(&state->spin);
|
H A D | vfs_bio.c | 91 struct spinlock spin; member 836 spin_lock(&pcpu->spin); in bremfree() 838 spin_unlock(&pcpu->spin); in bremfree() 1536 spin_lock(&pcpu->spin); in brelse() 1603 spin_unlock(&pcpu->spin); in brelse() 1662 spin_lock(&pcpu->spin); in bqrelse() 1693 spin_unlock(&pcpu->spin); in bqrelse() 1926 spin_lock(&pcpu->spin); in getnewbuf() 2353 spin_lock(&pcpu->spin); in flushbufqueues() 2388 spin_lock(&pcpu->spin); in flushbufqueues() [all …]
|
/dragonfly/sys/vfs/hammer2/ |
H A D | hammer2_ccms.c | 93 hammer2_spin_ex(&cst->spin); in ccms_thread_lock() 109 hammer2_spin_unex(&cst->spin); in ccms_thread_lock() 112 hammer2_spin_unex(&cst->spin); in ccms_thread_lock() 128 hammer2_spin_ex(&cst->spin); in ccms_thread_lock_nonblock() 144 hammer2_spin_unex(&cst->spin); in ccms_thread_lock_nonblock() 147 hammer2_spin_unex(&cst->spin); in ccms_thread_lock_nonblock() 192 hammer2_spin_ex(&cst->spin); in ccms_thread_lock_upgrade() 215 hammer2_spin_ex(&cst->spin); in ccms_thread_lock_downgrade() 246 hammer2_spin_ex(&cst->spin); in ccms_thread_unlock() 261 hammer2_spin_ex(&cst->spin); in ccms_thread_unlock() [all …]
|
H A D | hammer2_chain.c | 152 hammer2_spin_sh(&chain->core.spin); in hammer2_chain_setflush() 159 hammer2_spin_sh(&parent->core.spin); in hammer2_chain_setflush() 160 hammer2_spin_unsh(&chain->core.spin); in hammer2_chain_setflush() 163 hammer2_spin_unsh(&chain->core.spin); in hammer2_chain_setflush() 299 hammer2_spin_ex(&parent->core.spin); in hammer2_chain_insert() 464 hammer2_spin_ex(&chain->core.spin); in hammer2_chain_lastdrop() 594 hammer2_spin_ex(&parent->core.spin); in hammer2_chain_lastdrop() 1293 hammer2_spin_ex(&chain->core.spin); in hammer2_chain_countbrefs() 2268 hammer2_spin_ex(&reptrack.spin); in hammer2_chain_repparent() 2271 hammer2_spin_unex(&reptrack.spin); in hammer2_chain_repparent() [all …]
|
H A D | hammer2_flush.c | 610 hammer2_spin_ex(&chain->core.spin); in hammer2_flush_core() 618 hammer2_spin_unex(&chain->core.spin); in hammer2_flush_core() 1118 hammer2_spin_ex(&parent->core.spin); in hammer2_flush_core() 1121 hammer2_spin_unex(&parent->core.spin); in hammer2_flush_core() 1129 hammer2_spin_ex(&parent->core.spin); in hammer2_flush_core() 1132 hammer2_spin_unex(&parent->core.spin); in hammer2_flush_core() 1193 hammer2_spin_unex(&parent->core.spin); in hammer2_flush_recurse() 1273 hammer2_spin_ex(&parent->core.spin); in hammer2_flush_recurse()
|
/dragonfly/sys/vfs/procfs/ |
H A D | procfs_subr.c | 55 struct spinlock spin; member 98 spin_lock(&ph->spin); in procfs_allocvp() 104 spin_unlock(&ph->spin); in procfs_allocvp() 115 spin_lock(&ph->spin); in procfs_allocvp() 130 spin_unlock(&ph->spin); in procfs_allocvp() 135 spin_unlock(&ph->spin); in procfs_allocvp() 236 spin_lock(&ph->spin); in procfs_allocvp() 239 spin_unlock(&ph->spin); in procfs_allocvp() 259 spin_lock(&ph->spin); in procfs_freevp() 266 spin_unlock(&ph->spin); in procfs_freevp() [all …]
|
/dragonfly/usr.sbin/makefs/hammer2/ |
H A D | hammer2_chain.c | 158 hammer2_spin_sh(&chain->core.spin); in hammer2_chain_setflush() 165 hammer2_spin_sh(&parent->core.spin); in hammer2_chain_setflush() 166 hammer2_spin_unsh(&chain->core.spin); in hammer2_chain_setflush() 169 hammer2_spin_unsh(&chain->core.spin); in hammer2_chain_setflush() 305 hammer2_spin_ex(&parent->core.spin); in hammer2_chain_insert() 470 hammer2_spin_ex(&chain->core.spin); in hammer2_chain_lastdrop() 600 hammer2_spin_ex(&parent->core.spin); in hammer2_chain_lastdrop() 1299 hammer2_spin_ex(&chain->core.spin); in hammer2_chain_countbrefs() 2274 hammer2_spin_ex(&reptrack.spin); in hammer2_chain_repparent() 2277 hammer2_spin_unex(&reptrack.spin); in hammer2_chain_repparent() [all …]
|
H A D | hammer2_flush.c | 614 hammer2_spin_ex(&chain->core.spin); in hammer2_flush_core() 622 hammer2_spin_unex(&chain->core.spin); in hammer2_flush_core() 1122 hammer2_spin_ex(&parent->core.spin); in hammer2_flush_core() 1125 hammer2_spin_unex(&parent->core.spin); in hammer2_flush_core() 1133 hammer2_spin_ex(&parent->core.spin); in hammer2_flush_core() 1136 hammer2_spin_unex(&parent->core.spin); in hammer2_flush_core() 1197 hammer2_spin_unex(&parent->core.spin); in hammer2_flush_recurse() 1277 hammer2_spin_ex(&parent->core.spin); in hammer2_flush_recurse()
|
/dragonfly/sys/dev/acpica/Osd/ |
H A D | OsdSynch.c | 341 ACPI_SPINLOCK spin; in AcpiOsCreateLock() local 345 spin = kmalloc(sizeof(*spin), M_ACPISEM, M_INTWAIT|M_ZERO); in AcpiOsCreateLock() 346 spin_init(&spin->slock, "AcpiOsLock"); in AcpiOsCreateLock() 347 lockinit(&spin->lock, "AcpiOsLock", 0, 0); in AcpiOsCreateLock() 349 spin->owner = NULL; in AcpiOsCreateLock() 350 spin->func = ""; in AcpiOsCreateLock() 351 spin->line = 0; in AcpiOsCreateLock() 353 *OutHandle = spin; in AcpiOsCreateLock()
|
/dragonfly/sys/dev/netif/plip/ |
H A D | if_plip.c | 394 if (--spin == 0) { in clpoutbyte() 399 if (--spin == 0) { in clpoutbyte() 406 clpinbyte (int spin, device_t ppbus) in clpinbyte() argument 411 if(!--spin) { in clpinbyte() 418 if(!--spin) { in clpinbyte() 574 lpoutbyte (u_char byte, int spin, device_t ppbus) in lpoutbyte() argument 578 if (--spin == 0) in lpoutbyte() 582 if (--spin == 0) in lpoutbyte() 598 int i, len, spin; in lpoutput() local 619 spin = LPMAXSPIN1; in lpoutput() [all …]
|
/dragonfly/sys/platform/vkernel64/platform/ |
H A D | pmap_inval.c | 177 int spin = 0; in pmap_clean_pte() local 207 spin = 1; in pmap_clean_pte() 230 if (spin) in pmap_clean_pte()
|
/dragonfly/sys/vm/ |
H A D | vm_page.c | 474 spin_init(&m->spin, "vm_page"); in vm_page_startup() 2023 spin_lock(&pq->spin); in _vm_page_list_find() 2031 spin_unlock(&pq->spin); in _vm_page_list_find() 2091 spin_lock(&pq[pqi].spin); in _vm_page_list_find_wide() 2105 spin_unlock(&pq[pqi].spin); in _vm_page_list_find_wide() 2137 spin_lock(&pq1->spin); in _vm_page_list_find2() 2146 spin_unlock(&pq1->spin); in _vm_page_list_find2() 2221 spin_lock(&pq1[pqi].spin); in _vm_page_list_find2_wide() 2235 spin_unlock(&pq1[pqi].spin); in _vm_page_list_find2_wide() 2257 spin_lock(&pq2[pqi].spin); in _vm_page_list_find2_wide() [all …]
|