Home
last modified time | relevance | path

Searched refs:atomic_add_return (Results 1 – 13 of 13) sorted by relevance

/freebsd/sys/compat/linuxkpi/common/include/asm/
H A Datomic.h46 #define atomic_add(i, v) atomic_add_return((i), (v))
48 #define atomic_inc_return(v) atomic_add_return(1, (v))
49 #define atomic_add_negative(i, v) (atomic_add_return((i), (v)) < 0)
50 #define atomic_add_and_test(i, v) (atomic_add_return((i), (v)) == 0)
53 #define atomic_inc_and_test(v) (atomic_add_return(1, (v)) == 0)
58 atomic_add_return(int i, atomic_t *v) in atomic_add_return() function
/freebsd/sys/dev/drm2/
H A Ddrm_atomic.h51 #define atomic_add_return(v, p) (atomic_fetchadd_int(p, v) + (v)) macro
53 #define atomic_inc_return(p) atomic_add_return(1, p)
56 #define atomic_add_and_test(v, p) (atomic_add_return(v, p) == 0)
H A Ddrm_irq.c920 if (atomic_add_return(1, &dev->vblank_refcount[crtc]) == 1) { in drm_vblank_get()
/freebsd/sys/dev/mana/
H A Dgdma_util.h97 #define atomic_add_return(v, p) (atomic_fetchadd_int(p, v) + (v)) macro
99 #define atomic_inc_return(p) atomic_add_return(1, p)
101 #define atomic_read(p) atomic_add_return(0, p)
/freebsd/sys/dev/qat/qat_api/qat_kernel/src/
H A Dqat_transport.c301 flight = atomic_add_return(numberRequests, ring->inflights); in icp_adf_getQueueMemory()
328 flight = atomic_add_return(1, ring->inflights); in icp_adf_getSingleQueueAddr()
/freebsd/sys/dev/qat/qat_api/qat_utils/src/
H A DQatUtilsAtomic.c57 return atomic_add_return(inValue, (QatUtilsAtomic *)pAtomicVar); in qatUtilsAtomicAdd()
/freebsd/sys/contrib/vchiq/interface/compat/
H A Dvchi_bsd.h89 #define atomic_inc_return(v) atomic_add_return(1, (v))
97 atomic_add_return(int i, atomic_t *v) in atomic_add_return() function
/freebsd/sys/contrib/openzfs/include/os/linux/spl/sys/
H A Datomic.h48 #define atomic_add_32_nv(v, i) atomic_add_return((i), (atomic_t *)(v))
/freebsd/sys/dev/qat/qat_common/
H A Dadf_dev_mgr.c357 if (atomic_add_return(1, &accel_dev->ref_count) == 1) in adf_dev_get()
H A Dadf_transport.c112 if (atomic_add_return(1, ring->inflights) > ring->max_inflights) { in adf_send_message()
/freebsd/sys/dev/drm2/ttm/
H A Dttm_page_alloc_dma.c1012 unsigned pool_offset = atomic_add_return(1, &start_pool); in ttm_dma_pool_mm_shrink()
/freebsd/sys/dev/irdma/
H A Dirdma_cm.c2924 passive_state = atomic_add_return(1, &cm_node->passive_state); in irdma_cm_reject()
3548 passive_state = atomic_add_return(1, &cm_node->passive_state); in irdma_accept()
/freebsd/sys/dev/mlx5/mlx5_ib/
H A Dmlx5_ib_devx.c1720 if (atomic_add_return(cmd_out_len, &ev_file->ev_queue.bytes_in_use) > in UVERBS_HANDLER()