Lines Matching refs:cycle_counter
98 if (drm_WARN_ON(pfdev->ddev, atomic_read(&pfdev->cycle_counter.use_count) != 0))
99 atomic_set(&pfdev->cycle_counter.use_count, 0);
351 if (atomic_inc_not_zero(&pfdev->cycle_counter.use_count))
354 spin_lock(&pfdev->cycle_counter.lock);
355 if (atomic_inc_return(&pfdev->cycle_counter.use_count) == 1)
357 spin_unlock(&pfdev->cycle_counter.lock);
362 if (atomic_add_unless(&pfdev->cycle_counter.use_count, -1, 1))
365 spin_lock(&pfdev->cycle_counter.lock);
366 if (atomic_dec_return(&pfdev->cycle_counter.use_count) == 0)
368 spin_unlock(&pfdev->cycle_counter.lock);