Lines Matching refs:refcnt
409 p_atomic_set(&bo->refcnt, 1);
425 ASSERTED int count = p_atomic_inc_return(&bo->refcnt);
437 if (p_atomic_dec_return(&bo->refcnt))
447 if (p_atomic_read(&bo->refcnt) == 0) {
496 p_atomic_set(&bo->refcnt, 1);
498 /* bo->refcnt == 0 can happen if the BO
500 * lock before panfrost_bo_unreference(). In that case, refcnt
502 * have to re-initialize the refcnt().
504 * refcnt value just after acquiring the lock to
508 if (p_atomic_read(&bo->refcnt) == 0)
509 p_atomic_set(&bo->refcnt, 1);