Lines Matching refs:usecnt
333 !refcount_read(&bo->usecnt)) {
395 refcount_set(&bo->usecnt, 0);
532 if (bo->madv == VC4_MADV_DONTNEED && !refcount_read(&bo->usecnt))
572 /* Reset madv and usecnt before adding the BO to the cache. */
574 refcount_set(&bo->usecnt, 0);
607 if (refcount_inc_not_zero(&bo->usecnt))
613 if (!refcount_inc_not_zero(&bo->usecnt))
614 refcount_set(&bo->usecnt, 1);
619 * someone else retained its content by incrementing usecnt.
641 if (refcount_dec_not_one(&bo->usecnt))
645 if (refcount_dec_and_test(&bo->usecnt) &&
670 * noone ever decrements the usecnt even if the reference held by the
676 DRM_ERROR("Failed to increment BO usecnt\n");