/freebsd-11-stable/sbin/hastd/ |
H A D | refcnt.h | 59 old = atomic_fetchadd_int(count, -1);
|
/freebsd-11-stable/sys/dev/cxgb/ulp/tom/ |
H A D | cxgb_l2t.h | 103 if (atomic_fetchadd_int(&e->refcnt, -1) == 1) /* 1 -> 0 transition */ 110 if (atomic_fetchadd_int(&e->refcnt, 1) == 0) /* 0 -> 1 transition */
|
/freebsd-11-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 | 104 if (atomic_fetchadd_int(&e->refcnt, -1) == 1)
|
/freebsd-11-stable/lib/libthr/thread/ |
H A D | thr_list.c | 153 atomic_fetchadd_int(&total_threads, 1); 156 atomic_fetchadd_int(&total_threads, -1); 162 atomic_fetchadd_int(&total_threads, -1); 180 atomic_fetchadd_int(&total_threads, -1); 206 atomic_fetchadd_int(&total_threads, -1);
|
H A D | thr_exit.c | 296 if (atomic_fetchadd_int(&_thread_active_threads, -1) == 1) {
|
/freebsd-11-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-11-stable/sys/arm/include/ |
H A D | atomic.h | 91 #define atomic_fetchadd_int atomic_fetchadd_32 macro
|
/freebsd-11-stable/sys/compat/linuxkpi/common/include/asm/ |
H A D | atomic.h | 63 return i + atomic_fetchadd_int(&v->counter, i); 69 return atomic_fetchadd_int(&v->counter, -i) - i; 99 return atomic_fetchadd_int(&v->counter, 1) + 1; 105 return atomic_fetchadd_int(&v->counter, -1) - 1;
|
/freebsd-11-stable/sys/sys/ |
H A D | refcount.h | 61 old = atomic_fetchadd_int(count, -1);
|
/freebsd-11-stable/sys/arm64/arm64/ |
H A D | debug_monitor.c | 339 if (atomic_fetchadd_int(&dbg_ref_count_mde[PCPU_GET(cpuid)], 1) == 0) 343 atomic_fetchadd_int(&dbg_ref_count_kde[PCPU_GET(cpuid)], 1) == 0) 355 if (atomic_fetchadd_int(&dbg_ref_count_mde[PCPU_GET(cpuid)], -1) == 1) 359 atomic_fetchadd_int(&dbg_ref_count_kde[PCPU_GET(cpuid)], -1) == 1)
|
/freebsd-11-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-11-stable/sys/netinet/ |
H A D | tcp_pcap.c | 106 if (atomic_fetchadd_int(&tcp_pcap_clusters_referenced_cur, 1) >= 318 if (atomic_fetchadd_int(
|
H A D | sctp_os_bsd.h | 462 #define SCTP_DECREMENT_AND_CHECK_REFCOUNT(addr) (atomic_fetchadd_int(addr, -1) == 1) 467 oldval = atomic_fetchadd_int(addr, -val); \ 476 oldval = atomic_fetchadd_int(addr, -val); \
|
/freebsd-11-stable/libexec/rtld-elf/ |
H A D | rtld_lock.c | 130 if (atomic_fetchadd_int(&wnested, 1) == 0) 145 if (atomic_fetchadd_int(&wnested, -1) == 1)
|
/freebsd-11-stable/sys/dev/nvme/ |
H A D | nvme_test.c | 98 idx = atomic_fetchadd_int(&io_test->td_idx, 1); 213 tth->idx = atomic_fetchadd_int(&io_test->td_idx, 1);
|
/freebsd-11-stable/sys/amd64/include/ |
H A D | atomic.h | 111 u_int atomic_fetchadd_int(volatile u_int *p, u_int v); 226 atomic_fetchadd_int(volatile u_int *p, u_int v) function 232 "# atomic_fetchadd_int" 623 #define atomic_fetchadd_32 atomic_fetchadd_int
|
/freebsd-11-stable/sys/dev/nvd/ |
H A D | nvd.c | 200 if (atomic_fetchadd_int(&ndisk->cur_depth, -1) == 1 && 221 if (atomic_fetchadd_int(&ndisk->ordered_in_flight, 1) == 0 && 306 if (atomic_fetchadd_int(&ndisk->cur_depth, -1) == 1 &&
|
/freebsd-11-stable/sys/i386/include/ |
H A D | atomic.h | 117 u_int atomic_fetchadd_int(volatile u_int *p, u_int v); 237 atomic_fetchadd_int(volatile u_int *p, u_int v) function 243 "# atomic_fetchadd_int" 711 return (atomic_fetchadd_int((volatile u_int *)p, (u_int)v)); 879 #define atomic_fetchadd_32 atomic_fetchadd_int
|
/freebsd-11-stable/sys/powerpc/include/ |
H A D | atomic.h | 803 atomic_fetchadd_int(volatile u_int *p, u_int v) function 858 #define atomic_fetchadd_32 atomic_fetchadd_int
|
/freebsd-11-stable/sys/powerpc/powerpc/ |
H A D | intr_machdep.c | 178 idx = atomic_fetchadd_int(&intrcnt_index, 1); 233 i->cntindex = atomic_fetchadd_int(&intrcnt_index, 1);
|
/freebsd-11-stable/sys/nlm/ |
H A D | nlm_advlock.c | 797 xid = atomic_fetchadd_int(&nlm_xid, 1); 863 xid = atomic_fetchadd_int(&nlm_xid, 1); 983 xid = atomic_fetchadd_int(&nlm_xid, 1); 1064 xid = atomic_fetchadd_int(&nlm_xid, 1);
|
/freebsd-11-stable/sys/arm64/include/ |
H A D | atomic.h | 374 #define atomic_fetchadd_int atomic_fetchadd_32 macro
|
/freebsd-11-stable/sys/cam/ctl/ |
H A D | ctl_tpc_local.c | 329 io->scsiio.tag_num = atomic_fetchadd_int(&tsoftc->cur_tag_num, 1);
|