| /freebsd-12.1/lib/libthr/thread/ |
| H A D | thr_list.c | 155 atomic_fetchadd_int(&total_threads, 1); in _thr_alloc() 158 atomic_fetchadd_int(&total_threads, -1); in _thr_alloc() 164 atomic_fetchadd_int(&total_threads, -1); in _thr_alloc() 182 atomic_fetchadd_int(&total_threads, -1); in _thr_alloc() 208 atomic_fetchadd_int(&total_threads, -1); in _thr_free()
|
| H A D | thr_exit.c | 296 if (atomic_fetchadd_int(&_thread_active_threads, -1) == 1) {
|
| /freebsd-12.1/sys/compat/linuxkpi/common/include/asm/ |
| H A D | atomic.h | 63 return i + atomic_fetchadd_int(&v->counter, i); in atomic_add_return() 69 return atomic_fetchadd_int(&v->counter, -i) - i; in atomic_sub_return() 99 return atomic_fetchadd_int(&v->counter, 1) + 1; in atomic_inc() 105 return atomic_fetchadd_int(&v->counter, -1) - 1; in atomic_dec()
|
| /freebsd-12.1/sys/arm64/arm64/ |
| H A D | debug_monitor.c | 339 if (atomic_fetchadd_int(&dbg_ref_count_mde[PCPU_GET(cpuid)], 1) == 0) in dbg_enable_monitor() 343 atomic_fetchadd_int(&dbg_ref_count_kde[PCPU_GET(cpuid)], 1) == 0) in dbg_enable_monitor() 355 if (atomic_fetchadd_int(&dbg_ref_count_mde[PCPU_GET(cpuid)], -1) == 1) in dbg_disable_monitor() 359 atomic_fetchadd_int(&dbg_ref_count_kde[PCPU_GET(cpuid)], -1) == 1) in dbg_disable_monitor()
|
| /freebsd-12.1/sys/dev/drm2/ |
| H A D | drm_atomic.h | 53 #define atomic_add_return(v, p) (atomic_fetchadd_int(p, v) + (v)) 54 #define atomic_sub_return(v, p) (atomic_fetchadd_int(p, -(v)) - (v))
|
| H A D | drm_dp_iic_helper.c | 233 idx = atomic_fetchadd_int(&dp_bus_counter, 1); in iic_dp_aux_add_bus()
|
| /freebsd-12.1/sys/contrib/vchiq/interface/compat/ |
| H A D | vchi_bsd.h | 88 #define atomic_dec_and_test(p) (atomic_fetchadd_int(p, -1) == 1) 99 return i + atomic_fetchadd_int(v, i); in atomic_add_return() 105 return atomic_fetchadd_int(v, -i) - i; in atomic_sub_return()
|
| /freebsd-12.1/sbin/hastd/ |
| H A D | refcnt.h | 60 old = atomic_fetchadd_int(count, -1); in refcnt_release()
|
| /freebsd-12.1/sys/netinet/ |
| H A D | sctp_os_bsd.h | 461 #define SCTP_DECREMENT_AND_CHECK_REFCOUNT(addr) (atomic_fetchadd_int(addr, -1) == 1) 466 oldval = atomic_fetchadd_int(addr, -val); \ 475 oldval = atomic_fetchadd_int(addr, -val); \
|
| H A D | tcp_pcap.c | 106 if (atomic_fetchadd_int(&tcp_pcap_clusters_referenced_cur, 1) >= in tcp_pcap_take_cluster_reference() 318 if (atomic_fetchadd_int( in tcp_pcap_add()
|
| /freebsd-12.1/sys/dev/nvme/ |
| H A D | nvme_test.c | 100 idx = atomic_fetchadd_int(&io_test->td_idx, 1); in nvme_ns_bio_test() 215 tth->idx = atomic_fetchadd_int(&io_test->td_idx, 1); in nvme_ns_io_test()
|
| /freebsd-12.1/sys/amd64/include/ |
| H A D | atomic.h | 113 u_int atomic_fetchadd_int(volatile u_int *p, u_int v); 228 atomic_fetchadd_int(volatile u_int *p, u_int v) in atomic_fetchadd_int() function 625 #define atomic_fetchadd_32 atomic_fetchadd_int
|
| /freebsd-12.1/sys/dev/nvd/ |
| H A D | nvd.c | 203 if (atomic_fetchadd_int(&ndisk->cur_depth, -1) == 1 && in nvd_bio_submit() 224 if (atomic_fetchadd_int(&ndisk->ordered_in_flight, 1) == 0 && in nvd_strategy() 354 if (atomic_fetchadd_int(&ndisk->cur_depth, -1) == 1 && in nvd_done()
|
| /freebsd-12.1/sys/arm/include/ |
| H A D | atomic.h | 93 #define atomic_fetchadd_int atomic_fetchadd_32 macro
|
| /freebsd-12.1/sys/dev/cxgbe/ |
| H A D | t4_smt.h | 79 if (atomic_fetchadd_int(&e->refcnt, -1) == 1) { in t4_smt_release()
|
| H A D | t4_l2t.h | 106 if (atomic_fetchadd_int(&e->refcnt, -1) == 1) in t4_l2t_release()
|
| /freebsd-12.1/sys/sys/ |
| H A D | refcount.h | 79 old = atomic_fetchadd_int(count, -1); in refcount_release()
|
| /freebsd-12.1/libexec/rtld-elf/ |
| H A D | rtld_lock.c | 132 if (atomic_fetchadd_int(&wnested, 1) == 0) in def_wlock_acquire() 147 if (atomic_fetchadd_int(&wnested, -1) == 1) in def_lock_release()
|
| /freebsd-12.1/sys/arm64/coresight/ |
| H A D | coresight-tmc.c | 268 nev = atomic_fetchadd_int(&sc->nev, 1); in tmc_enable() 297 nev = atomic_fetchadd_int(&sc->nev, -1); in tmc_disable()
|
| /freebsd-12.1/sys/i386/include/ |
| H A D | atomic.h | 119 u_int atomic_fetchadd_int(volatile u_int *p, u_int v); 239 atomic_fetchadd_int(volatile u_int *p, u_int v) in atomic_fetchadd_int() function 711 return (atomic_fetchadd_int((volatile u_int *)p, (u_int)v)); in atomic_fetchadd_long() 879 #define atomic_fetchadd_32 atomic_fetchadd_int
|
| /freebsd-12.1/sys/i386/linux/ |
| H A D | linux_copyout.c | 86 *st->oldval = atomic_fetchadd_int((int *)kva, st->oparg); in futex_addl_slow0()
|
| /freebsd-12.1/sys/nlm/ |
| H A D | nlm_advlock.c | 800 xid = atomic_fetchadd_int(&nlm_xid, 1); in nlm_setlock() 866 xid = atomic_fetchadd_int(&nlm_xid, 1); in nlm_setlock() 986 xid = atomic_fetchadd_int(&nlm_xid, 1); in nlm_clearlock() 1067 xid = atomic_fetchadd_int(&nlm_xid, 1); in nlm_getlock()
|
| /freebsd-12.1/sys/powerpc/powerpc/ |
| H A D | intr_machdep.c | 180 idx = atomic_fetchadd_int(&intrcnt_index, 1); in intrcnt_add() 237 i->cntindex = atomic_fetchadd_int(&intrcnt_index, 1); in intr_lookup()
|
| /freebsd-12.1/sys/vm/ |
| H A D | vm_pagequeue.h | 311 old = atomic_fetchadd_int(&vmd->vmd_free_count, adj); in vm_domain_freecnt_inc()
|
| /freebsd-12.1/sys/powerpc/include/ |
| H A D | atomic.h | 793 atomic_fetchadd_int(volatile u_int *p, u_int v) in atomic_fetchadd_int() function 848 #define atomic_fetchadd_32 atomic_fetchadd_int
|