Lines Matching refs:handles
164 * Limit the number of UVD handles depending on
222 atomic_set(&rdev->uvd.handles[i], 0);
259 uint32_t handle = atomic_read(&rdev->uvd.handles[i]);
276 atomic_set(&rdev->uvd.handles[i], 0);
333 uint32_t handle = atomic_read(&rdev->uvd.handles[i]);
350 atomic_set(&rdev->uvd.handles[i], 0);
508 if (atomic_read(&p->rdev->uvd.handles[i]) == handle) {
513 if (!atomic_cmpxchg(&p->rdev->uvd.handles[i], 0, handle)) {
520 DRM_ERROR("No more free UVD handles!\n");
534 if (atomic_read(&p->rdev->uvd.handles[i]) == handle) {
549 atomic_cmpxchg(&p->rdev->uvd.handles[i], handle, 0);
849 if (!atomic_read(&rdev->uvd.handles[i]))