1089N/A drm_intel_bo_gem *bo_gem = (drm_intel_bo_gem *) bo;
1089N/A- atomic_inc(&bo_gem->refcount);
1089N/A- atomic_set(&bo_gem->refcount, 1);
1089N/A bo_gem->validate_index = -1;
1089N/A bo_gem->reloc_tree_fences = 0;
1089N/A bo_gem->used_as_reloc_target = 0;
1089N/A- atomic_set(&bo_gem->refcount, 1);
1089N/A bo_gem->validate_index = -1;
1089N/A bo_gem->global_name = handle;
1089N/A drm_intel_bo_gem *bo_gem = (drm_intel_bo_gem *) bo;
1089N/A- assert(atomic_read(&bo_gem->refcount) > 0);
1089N/A- if (atomic_dec_and_test(&bo_gem->refcount))
1089N/A+ assert(bo_gem->refcount > 0);
1089N/A+ if (--bo_gem->refcount == 0)
1089N/A drm_intel_gem_bo_unreference_final(bo, time);
1089N/A drm_intel_bo_gem *bo_gem = (drm_intel_bo_gem *) bo;
1089N/A- assert(atomic_read(&bo_gem->refcount) > 0);
1089N/A- if (atomic_dec_and_test(&bo_gem->refcount)) {
1089N/A+ assert(bo_gem->refcount > 0);
1089N/A+ if (--bo_gem->refcount == 0) {
1089N/A drm_intel_bufmgr_gem *bufmgr_gem =
1089N/A (drm_intel_bufmgr_gem *) bo->bufmgr;
1351N/A bo_gem->gem_handle = handle;
1351N/A- atomic_set(&bo_gem->refcount, 1);
1351N/A bo_gem->validate_index = -1;