Searched refs:atomic_sub_return (Results 1 – 8 of 8) sorted by relevance
/freebsd/sys/compat/linuxkpi/common/include/asm/ |
H A D | atomic.h | 47 #define atomic_sub(i, v) atomic_sub_return((i), (v)) 51 #define atomic_sub_and_test(i, v) (atomic_sub_return((i), (v)) == 0) 52 #define atomic_dec_and_test(v) (atomic_sub_return(1, (v)) == 0) 54 #define atomic_dec_return(v) atomic_sub_return(1, (v)) 64 atomic_sub_return(int i, atomic_t *v) in atomic_sub_return() function
|
/freebsd/sys/dev/drm2/ |
H A D | drm_atomic.h | 52 #define atomic_sub_return(v, p) (atomic_fetchadd_int(p, -(v)) - (v)) macro 54 #define atomic_dec_return(p) atomic_sub_return(1, p) 57 #define atomic_sub_and_test(v, p) (atomic_sub_return(v, p) == 0)
|
/freebsd/sys/dev/mana/ |
H A D | gdma_util.h | 98 #define atomic_sub_return(v, p) (atomic_fetchadd_int(p, -(v)) - (v)) macro 100 #define atomic_dec_return(p) atomic_sub_return(1, p)
|
H A D | mana_en.c | 1586 if (atomic_sub_return(pkt_transmitted, &txq->pending_sends) < 0) in mana_poll_tx_cq()
|
/freebsd/sys/dev/qat/qat_api/qat_utils/src/ |
H A D | QatUtilsAtomic.c | 63 return atomic_sub_return(inValue, (QatUtilsAtomic *)pAtomicVar); in qatUtilsAtomicSub()
|
/freebsd/sys/contrib/vchiq/interface/compat/ |
H A D | vchi_bsd.h | 90 #define atomic_dec_return(v) atomic_sub_return(1, (v)) 103 atomic_sub_return(int i, atomic_t *v) in atomic_sub_return() function
|
/freebsd/sys/contrib/openzfs/include/os/linux/spl/sys/ |
H A D | atomic.h | 49 #define atomic_sub_32_nv(v, i) atomic_sub_return((i), (atomic_t *)(v))
|
/freebsd/sys/dev/qat/qat_common/ |
H A D | adf_dev_mgr.c | 375 if (atomic_sub_return(1, &accel_dev->ref_count) == 0) in adf_dev_put()
|