| /freebsd/sys/sys/ |
| H A D | refcount.h | 77 old = atomic_fetchadd_int(count, 1); in refcount_acquire() 91 old = atomic_fetchadd_int(count, n); in refcount_acquiren() 149 old = atomic_fetchadd_int(count, -n); in refcount_releasen()
|
| H A D | blockcount.h | 58 old = atomic_fetchadd_int(&bc->__count, n); in blockcount_acquire() 71 old = atomic_fetchadd_int(&bc->__count, -n); in blockcount_release()
|
| /freebsd/sys/contrib/openzfs/include/os/freebsd/spl/sys/ |
| H A D | ccompat.h | 93 return (atomic_fetchadd_int(&v->counter, 1) + 1); in atomic_inc() 99 return (atomic_fetchadd_int(&v->counter, -1) - 1); in atomic_dec()
|
| /freebsd/sys/compat/linuxkpi/common/include/asm/ |
| H A D | atomic.h | 60 return i + atomic_fetchadd_int(&v->counter, i); in atomic_add_return() 66 return atomic_fetchadd_int(&v->counter, -i) - i; in atomic_sub_return() 96 return atomic_fetchadd_int(&v->counter, 1) + 1; in atomic_inc() 102 return atomic_fetchadd_int(&v->counter, -1) - 1; in atomic_dec()
|
| /freebsd/sys/dev/drm2/ |
| H A D | drm_atomic.h | 51 #define atomic_add_return(v, p) (atomic_fetchadd_int(p, v) + (v)) 52 #define atomic_sub_return(v, p) (atomic_fetchadd_int(p, -(v)) - (v))
|
| H A D | drm_dp_iic_helper.c | 230 idx = atomic_fetchadd_int(&dp_bus_counter, 1); in iic_dp_aux_add_bus()
|
| /freebsd/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/sys/dev/mana/ |
| H A D | gdma_util.h | 97 #define atomic_add_return(v, p) (atomic_fetchadd_int(p, v) + (v)) 98 #define atomic_sub_return(v, p) (atomic_fetchadd_int(p, -(v)) - (v))
|
| /freebsd/sbin/hastd/ |
| H A D | refcnt.h | 57 old = atomic_fetchadd_int(count, -1); in refcnt_release()
|
| /freebsd/sys/netinet/ |
| H A D | sctp_os_bsd.h | 458 #define SCTP_DECREMENT_AND_CHECK_REFCOUNT(addr) (atomic_fetchadd_int(addr, -1) == 1) 463 oldval = atomic_fetchadd_int(addr, -val); \ 472 oldval = atomic_fetchadd_int(addr, -val); \
|
| /freebsd/sys/dev/nvme/ |
| H A D | nvme_test.c | 96 idx = atomic_fetchadd_int(&io_test->td_idx, 1); in nvme_ns_bio_test() 212 tth->idx = atomic_fetchadd_int(&io_test->td_idx, 1); in nvme_ns_io_test()
|
| /freebsd/sys/dev/cxgbe/ |
| H A D | t4_smt.h | 77 if (atomic_fetchadd_int(&e->refcnt, -1) == 1) { in t4_smt_release()
|
| H A D | t4_l2t.h | 105 if (atomic_fetchadd_int(&e->refcnt, -1) == 1) in t4_l2t_release()
|
| /freebsd/sys/arm64/coresight/ |
| H A D | coresight_tmc.c | 243 nev = atomic_fetchadd_int(&sc->nev, 1); in tmc_enable() 272 nev = atomic_fetchadd_int(&sc->nev, -1); in tmc_disable()
|
| /freebsd/libexec/rtld-elf/ |
| H A D | rtld_lock.c | 171 if (atomic_fetchadd_int(&wnested, 1) == 0) in def_lock_acquire() 197 else if (atomic_fetchadd_int(&wnested, -1) == 1) in def_lock_release()
|
| /freebsd/sys/i386/include/ |
| H A D | atomic.h | 181 atomic_fetchadd_int(volatile u_int *p, u_int v) in atomic_fetchadd_int() function 630 return (atomic_fetchadd_int((volatile u_int *)p, (u_int)v)); in atomic_fetchadd_long() 790 #define atomic_fetchadd_32 atomic_fetchadd_int
|
| /freebsd/sys/dev/nvd/ |
| H A D | nvd.c | 197 if (atomic_fetchadd_int(&ndisk->cur_depth, -1) == 1 && in nvd_bio_submit() 218 if (atomic_fetchadd_int(&ndisk->ordered_in_flight, 1) == 0 && in nvd_strategy() 348 if (atomic_fetchadd_int(&ndisk->cur_depth, -1) == 1 && in nvd_done()
|
| /freebsd/sys/i386/linux/ |
| H A D | linux_copyout.c | 81 *st->oldval = atomic_fetchadd_int((int *)kva, st->oparg); in futex_addl_slow0()
|
| /freebsd/sys/amd64/include/ |
| H A D | atomic.h | 191 atomic_fetchadd_int(volatile u_int *p, u_int v) in atomic_fetchadd_int() function 537 #define atomic_fetchadd_32 atomic_fetchadd_int
|
| /freebsd/tools/uma/smrstress/ |
| H A D | smrstress.c | 89 cnt = atomic_fetchadd_int(&cur->count, -1); in smrs_read()
|
| /freebsd/sys/nlm/ |
| H A D | nlm_advlock.c | 797 xid = atomic_fetchadd_int(&nlm_xid, 1); in nlm_setlock() 863 xid = atomic_fetchadd_int(&nlm_xid, 1); in nlm_setlock() 982 xid = atomic_fetchadd_int(&nlm_xid, 1); in nlm_clearlock() 1063 xid = atomic_fetchadd_int(&nlm_xid, 1); in nlm_getlock()
|
| /freebsd/lib/libthr/thread/ |
| H A D | thr_exit.c | 293 if (atomic_fetchadd_int(&_thread_active_threads, -1) == 1) {
|
| /freebsd/sys/dev/hwt/ |
| H A D | hwt_hook.c | 223 thread_id = atomic_fetchadd_int(&ctx->thread_counter, 1); in hwt_hook_thread_create()
|
| /freebsd/sys/vm/ |
| H A D | vm_pagequeue.h | 463 old = atomic_fetchadd_int(&vmd->vmd_free_count, adj); in vm_domain_freecnt_inc()
|
| /freebsd/sys/powerpc/powerpc/ |
| H A D | intr_machdep.c | 211 idx = atomic_fetchadd_int(&intrcnt_index, 1); in intrcnt_add() 269 i->cntindex = atomic_fetchadd_int(&intrcnt_index, 1); in intr_lookup()
|