Lines Matching full:handles
272 /* Set the default UVD handles that the firmware can handle */ in amdgpu_uvd_sw_init()
287 * Limit the number of UVD handles depending on microcode major in amdgpu_uvd_sw_init()
347 atomic_set(&adev->uvd.handles[i], 0); in amdgpu_uvd_sw_init()
438 if (atomic_read(&adev->uvd.handles[i])) in amdgpu_uvd_prepare_suspend()
533 uint32_t handle = atomic_read(&adev->uvd.handles[i]); in amdgpu_uvd_free_handles()
549 atomic_set(&adev->uvd.handles[i], 0); in amdgpu_uvd_free_handles()
833 if (atomic_read(&adev->uvd.handles[i]) == handle) { in amdgpu_uvd_cs_msg()
839 if (!atomic_cmpxchg(&adev->uvd.handles[i], 0, handle)) { in amdgpu_uvd_cs_msg()
845 DRM_ERROR("No more free UVD handles!\n"); in amdgpu_uvd_cs_msg()
857 if (atomic_read(&adev->uvd.handles[i]) == handle) { in amdgpu_uvd_cs_msg()
872 atomic_cmpxchg(&adev->uvd.handles[i], handle, 0); in amdgpu_uvd_cs_msg()
1343 * amdgpu_uvd_used_handles - returns used UVD handles
1347 * Returns the number of UVD handles in use
1356 * Handles can be freed in any order, and not in amdgpu_uvd_used_handles()
1358 * all non-zero handles. in amdgpu_uvd_used_handles()
1360 if (atomic_read(&adev->uvd.handles[i])) in amdgpu_uvd_used_handles()