| /freebsd-13.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-13.1/sys/sys/ |
| H A D | refcount.h | 80 old = atomic_fetchadd_int(count, 1); in refcount_acquire() 94 old = atomic_fetchadd_int(count, n); in refcount_acquiren() 152 old = atomic_fetchadd_int(count, -n); in refcount_releasen()
|
| H A D | blockcount.h | 60 old = atomic_fetchadd_int(&bc->__count, n); in blockcount_acquire() 73 old = atomic_fetchadd_int(&bc->__count, -n); in blockcount_release()
|
| /freebsd-13.1/sys/compat/linuxkpi/common/include/asm/ |
| H A D | atomic.h | 62 return i + atomic_fetchadd_int(&v->counter, i); in atomic_add_return() 68 return atomic_fetchadd_int(&v->counter, -i) - i; in atomic_sub_return() 98 return atomic_fetchadd_int(&v->counter, 1) + 1; in atomic_inc() 104 return atomic_fetchadd_int(&v->counter, -1) - 1; in atomic_dec()
|
| /freebsd-13.1/sys/contrib/openzfs/include/os/freebsd/spl/sys/ |
| H A D | ccompat.h | 145 return (atomic_fetchadd_int(&v->counter, 1) + 1); in atomic_inc() 151 return (atomic_fetchadd_int(&v->counter, -1) - 1); in atomic_dec()
|
| /freebsd-13.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-13.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-13.1/sbin/hastd/ |
| H A D | refcnt.h | 59 old = atomic_fetchadd_int(count, -1); in refcnt_release()
|
| /freebsd-13.1/sys/netinet/ |
| H A D | sctp_os_bsd.h | 459 #define SCTP_DECREMENT_AND_CHECK_REFCOUNT(addr) (atomic_fetchadd_int(addr, -1) == 1) 464 oldval = atomic_fetchadd_int(addr, -val); \ 473 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() 322 if (atomic_fetchadd_int( in tcp_pcap_add()
|
| /freebsd-13.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 | 109 if (atomic_fetchadd_int(&e->refcnt, -1) == 1) in t4_l2t_release()
|
| /freebsd-13.1/sys/dev/nvme/ |
| H A D | nvme_test.c | 98 idx = atomic_fetchadd_int(&io_test->td_idx, 1); in nvme_ns_bio_test() 214 tth->idx = atomic_fetchadd_int(&io_test->td_idx, 1); in nvme_ns_io_test()
|
| /freebsd-13.1/sys/arm/include/ |
| H A D | atomic.h | 96 #define atomic_fetchadd_int atomic_fetchadd_32 macro
|
| /freebsd-13.1/sys/amd64/include/ |
| H A D | atomic.h | 127 u_int atomic_fetchadd_int(volatile u_int *p, u_int v); 232 atomic_fetchadd_int(volatile u_int *p, u_int v) in atomic_fetchadd_int() function 590 #define atomic_fetchadd_32 atomic_fetchadd_int
|
| /freebsd-13.1/sys/i386/include/ |
| H A D | atomic.h | 111 u_int atomic_fetchadd_int(volatile u_int *p, u_int v); 223 atomic_fetchadd_int(volatile u_int *p, u_int v) in atomic_fetchadd_int() function 683 return (atomic_fetchadd_int((volatile u_int *)p, (u_int)v)); in atomic_fetchadd_long() 852 #define atomic_fetchadd_32 atomic_fetchadd_int
|
| /freebsd-13.1/sys/arm64/coresight/ |
| H A D | coresight_tmc.c | 246 nev = atomic_fetchadd_int(&sc->nev, 1); in tmc_enable() 275 nev = atomic_fetchadd_int(&sc->nev, -1); in tmc_disable()
|
| /freebsd-13.1/sys/dev/nvd/ |
| H A D | nvd.c | 207 if (atomic_fetchadd_int(&ndisk->cur_depth, -1) == 1 && in nvd_bio_submit() 228 if (atomic_fetchadd_int(&ndisk->ordered_in_flight, 1) == 0 && in nvd_strategy() 358 if (atomic_fetchadd_int(&ndisk->cur_depth, -1) == 1 && in nvd_done()
|
| /freebsd-13.1/libexec/rtld-elf/ |
| H A D | rtld_lock.c | 169 if (atomic_fetchadd_int(&wnested, 1) == 0) in def_wlock_acquire() 186 else if (atomic_fetchadd_int(&wnested, -1) == 1) in def_lock_release()
|
| /freebsd-13.1/sys/i386/linux/ |
| H A D | linux_copyout.c | 85 *st->oldval = atomic_fetchadd_int((int *)kva, st->oparg); in futex_addl_slow0()
|
| /freebsd-13.1/tools/uma/smrstress/ |
| H A D | smrstress.c | 92 cnt = atomic_fetchadd_int(&cur->count, -1); in smrs_read()
|
| /freebsd-13.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() 985 xid = atomic_fetchadd_int(&nlm_xid, 1); in nlm_clearlock() 1066 xid = atomic_fetchadd_int(&nlm_xid, 1); in nlm_getlock()
|
| /freebsd-13.1/sys/vm/ |
| H A D | vm_pagequeue.h | 454 old = atomic_fetchadd_int(&vmd->vmd_free_count, adj); in vm_domain_freecnt_inc()
|