/freebsd-13-stable/sbin/hastd/ |
H A D | refcnt.h | 59 old = atomic_fetchadd_int(count, -1);
|
/freebsd-13-stable/sys/sys/ |
H A D | blockcount.h | 60 old = atomic_fetchadd_int(&bc->__count, n); 73 old = atomic_fetchadd_int(&bc->__count, -n);
|
H A D | refcount.h | 80 old = atomic_fetchadd_int(count, 1); 94 old = atomic_fetchadd_int(count, n); 152 old = atomic_fetchadd_int(count, -n);
|
/freebsd-13-stable/sys/dev/cxgbe/ |
H A D | t4_smt.h | 79 if (atomic_fetchadd_int(&e->refcnt, -1) == 1) {
|
H A D | t4_l2t.h | 109 if (atomic_fetchadd_int(&e->refcnt, -1) == 1)
|
/freebsd-13-stable/lib/libthr/thread/ |
H A D | thr_list.c | 155 atomic_fetchadd_int(&total_threads, 1); 158 atomic_fetchadd_int(&total_threads, -1); 164 atomic_fetchadd_int(&total_threads, -1); 182 atomic_fetchadd_int(&total_threads, -1); 208 atomic_fetchadd_int(&total_threads, -1);
|
H A D | thr_exit.c | 296 if (atomic_fetchadd_int(&_thread_active_threads, -1) == 1) {
|
/freebsd-13-stable/sys/contrib/openzfs/include/os/freebsd/spl/sys/ |
H A D | ccompat.h | 145 return (atomic_fetchadd_int(&v->counter, 1) + 1); 151 return (atomic_fetchadd_int(&v->counter, -1) - 1);
|
/freebsd-13-stable/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);
|
/freebsd-13-stable/sys/arm/include/ |
H A D | atomic.h | 96 #define atomic_fetchadd_int atomic_fetchadd_32 macro
|
/freebsd-13-stable/sys/compat/linuxkpi/common/include/asm/ |
H A D | atomic.h | 62 return i + atomic_fetchadd_int(&v->counter, i); 68 return atomic_fetchadd_int(&v->counter, -i) - i; 98 return atomic_fetchadd_int(&v->counter, 1) + 1; 104 return atomic_fetchadd_int(&v->counter, -1) - 1;
|
/freebsd-13-stable/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); 105 return atomic_fetchadd_int(v, -i) - i;
|
/freebsd-13-stable/sys/dev/nvme/ |
H A D | nvme_test.c | 98 idx = atomic_fetchadd_int(&io_test->td_idx, 1); 214 tth->idx = atomic_fetchadd_int(&io_test->td_idx, 1);
|
/freebsd-13-stable/sys/netinet/ |
H A D | tcp_pcap.c | 106 if (atomic_fetchadd_int(&tcp_pcap_clusters_referenced_cur, 1) >= 322 if (atomic_fetchadd_int(
|
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-13-stable/sys/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) function 246 "# atomic_fetchadd_int" 625 #define atomic_fetchadd_32 atomic_fetchadd_int
|
/freebsd-13-stable/sys/i386/linux/ |
H A D | linux_copyout.c | 86 *st->oldval = atomic_fetchadd_int((int *)kva, st->oparg);
|
/freebsd-13-stable/tools/uma/smrstress/ |
H A D | smrstress.c | 92 cnt = atomic_fetchadd_int(&cur->count, -1);
|
/freebsd-13-stable/libexec/rtld-elf/ |
H A D | rtld_lock.c | 169 if (atomic_fetchadd_int(&wnested, 1) == 0) 186 else if (atomic_fetchadd_int(&wnested, -1) == 1)
|
/freebsd-13-stable/sys/arm64/coresight/ |
H A D | coresight_tmc.c | 246 nev = atomic_fetchadd_int(&sc->nev, 1); 275 nev = atomic_fetchadd_int(&sc->nev, -1);
|
/freebsd-13-stable/sys/dev/nvd/ |
H A D | nvd.c | 207 if (atomic_fetchadd_int(&ndisk->cur_depth, -1) == 1 && 228 if (atomic_fetchadd_int(&ndisk->ordered_in_flight, 1) == 0 && 358 if (atomic_fetchadd_int(&ndisk->cur_depth, -1) == 1 &&
|
/freebsd-13-stable/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) function 245 "# atomic_fetchadd_int" 711 return (atomic_fetchadd_int((volatile u_int *)p, (u_int)v)); 880 #define atomic_fetchadd_32 atomic_fetchadd_int
|
/freebsd-13-stable/sys/vm/ |
H A D | vm_pagequeue.h | 454 old = atomic_fetchadd_int(&vmd->vmd_free_count, adj);
|
/freebsd-13-stable/sys/powerpc/powerpc/ |
H A D | intr_machdep.c | 218 idx = atomic_fetchadd_int(&intrcnt_index, 1); 277 i->cntindex = atomic_fetchadd_int(&intrcnt_index, 1);
|