| /f-stack/freebsd/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()
|
| H A D | _cscan_atomic.h | 175 #define atomic_fetchadd_int kcsan_atomic_fetchadd_int macro
|
| /f-stack/freebsd/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()
|
| /f-stack/freebsd/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()
|
| /f-stack/freebsd/arm/include/ |
| H A D | atomic.h | 96 #define atomic_fetchadd_int atomic_fetchadd_32 macro
|
| /f-stack/freebsd/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); \
|
| 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()
|
| H A D | tcp_log_buf.c | 514 atomic_fetchadd_int(&tlb->tlb_reqcnt, 1); in tcp_log_increment_reqcnt() 1008 refcnt = atomic_fetchadd_int(&log_entry->tlm_refcnt, 1); in _tcp_log_entry_refcnt_add() 1022 refcnt = atomic_fetchadd_int(&log_entry->tlm_refcnt, -1); in _tcp_log_entry_refcnt_rem()
|
| /f-stack/freebsd/amd64/include/ |
| H A D | atomic.h | 127 u_int atomic_fetchadd_int(volatile u_int *p, u_int v); 240 atomic_fetchadd_int(volatile u_int *p, u_int v) in atomic_fetchadd_int() function 625 #define atomic_fetchadd_32 atomic_fetchadd_int
|
| /f-stack/freebsd/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()
|
| /f-stack/freebsd/i386/linux/ |
| H A D | linux_copyout.c | 86 *st->oldval = atomic_fetchadd_int((int *)kva, st->oparg); in futex_addl_slow0()
|
| /f-stack/freebsd/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() 880 #define atomic_fetchadd_32 atomic_fetchadd_int
|
| /f-stack/freebsd/vm/ |
| H A D | vm_pagequeue.h | 454 old = atomic_fetchadd_int(&vmd->vmd_free_count, adj); in vm_domain_freecnt_inc()
|
| H A D | vm_page.h | 964 old = atomic_fetchadd_int(&m->ref_count, -val); in vm_page_drop()
|
| H A D | vm_pageout.c | 1823 old_vote = atomic_fetchadd_int(&vm_pageout_oom_vote, 1); in vm_pageout_mightbe_oom() 2407 if (atomic_fetchadd_int(&vmd->vmd_pageout_wanted, 1) == 0) { in pagedaemon_wakeup()
|
| /f-stack/freebsd/kern/ |
| H A D | subr_smr.c | 264 return (atomic_fetchadd_int(&s->s_wr.seq, SMR_SEQ_INCR) + SMR_SEQ_INCR); in smr_shared_advance()
|
| H A D | subr_devstat.c | 240 if (atomic_fetchadd_int(&ds->start_count, 1) == ds->end_count) { in devstat_start_transaction()
|
| H A D | kern_rmlock.c | 937 old = atomic_fetchadd_int(&rms->debug_readers, 1); in rms_int_debug_readers_inc() 946 old = atomic_fetchadd_int(&rms->debug_readers, -1); in rms_int_debug_readers_dec()
|
| H A D | kern_clock.c | 506 i = atomic_fetchadd_int(&watchdog_ticks, -newticks); in hardclock()
|
| H A D | subr_intr.c | 275 index = atomic_fetchadd_int(&intrcnt_index, 2); in isrc_setup_counters() 301 index = atomic_fetchadd_int(&intrcnt_index, MAXCPU); in intr_ipi_setup_counters()
|
| H A D | kern_mbuf.c | 1196 if (*refcnt == 1 || atomic_fetchadd_int(refcnt, -1) == 1) { in mb_free_ext() 1272 if (*refcnt == 1 || atomic_fetchadd_int(refcnt, -1) == 1) { in mb_free_extpg()
|
| H A D | vfs_bio.c | 579 num = atomic_fetchadd_int(&bd->bd_numdirtybuffers, -1); in bdirtysub() 603 num = atomic_fetchadd_int(&bd->bd_numdirtybuffers, 1); in bdirtyadd() 622 if (atomic_fetchadd_int(&bd->bd_running, 1) == 0) { in bufspace_daemon_wakeup() 1659 freebufs = atomic_fetchadd_int(&bd->bd_freebuffers, -1); in buf_alloc() 5045 atomic_fetchadd_int(&bufobj_cleanq, 1) % buf_domains; in bufobj_init()
|
| /f-stack/freebsd/arm64/include/ |
| H A D | atomic.h | 500 #define atomic_fetchadd_int atomic_fetchadd_32 macro
|
| /f-stack/freebsd/mips/include/ |
| H A D | atomic.h | 670 #define atomic_fetchadd_int atomic_fetchadd_32 macro
|