Lines Matching refs:usecnt
344 !refcount_read(&bo->usecnt)) {
407 refcount_set(&bo->usecnt, 0);
552 if (bo->madv == VC4_MADV_DONTNEED && !refcount_read(&bo->usecnt))
592 /* Reset madv and usecnt before adding the BO to the cache. */
594 refcount_set(&bo->usecnt, 0);
631 if (refcount_inc_not_zero(&bo->usecnt))
637 if (!refcount_inc_not_zero(&bo->usecnt))
638 refcount_set(&bo->usecnt, 1);
643 * someone else retained its content by incrementing usecnt.
670 if (refcount_dec_not_one(&bo->usecnt))
674 if (refcount_dec_and_test(&bo->usecnt) &&
699 * noone ever decrements the usecnt even if the reference held by the
705 DRM_ERROR("Failed to increment BO usecnt\n");