Searched refs:atomic_dec_and_test (Results 1 – 7 of 7) sorted by relevance
52 # define atomic_dec_and_test(x) (__sync_fetch_and_add (&(x)->atomic, -1) == 1) macro73 # define atomic_dec_and_test(x) (AO_fetch_and_sub1_full(&(x)->atomic) == 1) macro88 # define atomic_dec_and_test(x) (atomic_dec_uint_nv(&(x)->atomic) == 1) macro
150 if (!atomic_dec_and_test(&dev->refcnt)) in fd_device_del_locked()157 if (!atomic_dec_and_test(&dev->refcnt)) in fd_device_del()
285 if (!atomic_dec_and_test(&bo->refcnt)) in fd_bo_del()
126 if (!atomic_dec_and_test(&dev->refcnt)) in omap_device_del()359 if (!atomic_dec_and_test(&bo->refcnt)) in omap_bo_del()
242 if (bo && atomic_dec_and_test(&bo->ref)) in drm_tegra_bo_unref()
522 if (atomic_dec_and_test(&nouveau_bo(ref)->refcnt)) in nouveau_bo_ref()
1243 if (atomic_dec_and_test(&bo_gem->refcount)) in drm_intel_gem_bo_unreference_locked_timed()1262 if (atomic_dec_and_test(&bo_gem->refcount)) { in drm_intel_gem_bo_unreference()3365 if (atomic_dec_and_test(&bufmgr_gem->refcount)) { in drm_intel_bufmgr_gem_unref()