Searched refs:atomic_dec_and_test (Results 1 – 15 of 15) sorted by relevance
49 # define atomic_dec_and_test(x) (__sync_add_and_fetch (&(x)->atomic, -1) == 0) macro71 # define atomic_dec_and_test(x) (AO_fetch_and_sub1_full(&(x)->atomic) == 1) macro93 # define atomic_dec_and_test(x) (atomic_dec_uint_nv(&(x)->atomic) == 0) macro
96 if (!atomic_dec_and_test(&dev->refcnt)) in etna_device_del_locked()104 if (!atomic_dec_and_test(&dev->refcnt)) in etna_device_del()
241 if (!atomic_dec_and_test(&bo->refcnt)) in etna_bo_del()
122 if (!atomic_dec_and_test(&dev->refcnt)) in fd_device_del_locked()129 if (!atomic_dec_and_test(&dev->refcnt)) in fd_device_del()
214 if (!atomic_dec_and_test(&bo->refcnt)) in fd_bo_del()
91 #define atomic_dec_and_test(v) (atomic_dec_return((v)) == 0) macro
118 if (atomic_dec_and_test(&(p)->thread.refcount)) \
76 static inline int atomic_dec_and_test(volatile atomic_t *v) in atomic_dec_and_test() function
122 if (!atomic_dec_and_test(&dev->refcnt)) in omap_device_del()356 if (!atomic_dec_and_test(&bo->refcnt)) in omap_bo_del()
168 return atomic_dec_and_test(dst); in update_references()
200 return atomic_dec_and_test(v); in atomic_long_dec_and_test()
230 if (bo && atomic_dec_and_test(&bo->ref)) in drm_tegra_bo_unref()
330 if (!atomic_dec_and_test(&s->vdq.busy)) { in qbman_swp_pull()
1401 if (atomic_dec_and_test(&bo_gem->refcount)) in drm_intel_gem_bo_unreference_locked_timed()1420 if (atomic_dec_and_test(&bo_gem->refcount)) { in drm_intel_gem_bo_unreference()3448 if (atomic_dec_and_test(&bufmgr_gem->refcount)) { in drm_intel_bufmgr_gem_unref()
783 if (atomic_dec_and_test(&nouveau_bo(ref)->refcnt)) in nouveau_bo_ref()