Searched refs:atomic_dec_and_test (Results 1 – 16 of 16) sorted by relevance
49 # define atomic_dec_and_test(x) (__sync_add_and_fetch (&(x)->atomic, -1) == 0) macro72 # define atomic_dec_and_test(x) (AO_fetch_and_sub1_full(&(x)->atomic) == 1) macro94 # 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()
233 if (!atomic_dec_and_test(&bo->refcnt)) in etna_bo_del()
123 if (!atomic_dec_and_test(&dev->refcnt)) in fd_device_del_locked()130 if (!atomic_dec_and_test(&dev->refcnt)) in fd_device_del()
82 if (!atomic_dec_and_test(&pipe->refcnt)) in fd_pipe_del()
76 if (!atomic_dec_and_test(&ring->refcnt)) in fd_ringbuffer_del()
234 if (!atomic_dec_and_test(&bo->refcnt)) in fd_bo_del()
124 if (!atomic_dec_and_test(&dev->refcnt)) in fd_device_del_locked()131 if (!atomic_dec_and_test(&dev->refcnt)) in fd_device_del()
80 if (!atomic_dec_and_test(&pipe->refcnt)) in fd_pipe_del()
53 #define atomic_dec_and_test(x) (__sync_add_and_fetch (x, -1) == 0) macro
254 if (!atomic_dec_and_test(&bo->refcnt)) in fd_bo_del()
170 return atomic_dec_and_test(dst); in update_references()
122 if (!atomic_dec_and_test(&dev->refcnt)) in omap_device_del()353 if (!atomic_dec_and_test(&bo->refcnt)) in omap_bo_del()
171 if (bo && atomic_dec_and_test(&bo->ref)) in drm_tegra_bo_unref()
1375 if (atomic_dec_and_test(&bo_gem->refcount)) in drm_intel_gem_bo_unreference_locked_timed()1394 if (atomic_dec_and_test(&bo_gem->refcount)) { in drm_intel_gem_bo_unreference()3383 if (atomic_dec_and_test(&bufmgr_gem->refcount)) { in drm_intel_bufmgr_gem_unref()
796 if (atomic_dec_and_test(&nouveau_bo(ref)->refcnt)) in nouveau_bo_ref()