Lines Matching full:handles
232 /* Set the default UVD handles that the firmware can handle */ in amdgpu_uvd_sw_init()
247 * Limit the number of UVD handles depending on microcode major in amdgpu_uvd_sw_init()
296 atomic_set(&adev->uvd.handles[i], 0); in amdgpu_uvd_sw_init()
386 if (atomic_read(&adev->uvd.handles[i])) in amdgpu_uvd_suspend()
464 uint32_t handle = atomic_read(&adev->uvd.handles[i]); in amdgpu_uvd_free_handles()
480 atomic_set(&adev->uvd.handles[i], 0); in amdgpu_uvd_free_handles()
786 if (atomic_read(&adev->uvd.handles[i]) == handle) { in amdgpu_uvd_cs_msg()
792 if (!atomic_cmpxchg(&adev->uvd.handles[i], 0, handle)) { in amdgpu_uvd_cs_msg()
798 DRM_ERROR("No more free UVD handles!\n"); in amdgpu_uvd_cs_msg()
810 if (atomic_read(&adev->uvd.handles[i]) == handle) { in amdgpu_uvd_cs_msg()
825 atomic_cmpxchg(&adev->uvd.handles[i], handle, 0); in amdgpu_uvd_cs_msg()
1311 * amdgpu_uvd_used_handles - returns used UVD handles
1315 * Returns the number of UVD handles in use
1324 * Handles can be freed in any order, and not in amdgpu_uvd_used_handles()
1326 * all non-zero handles. in amdgpu_uvd_used_handles()
1328 if (atomic_read(&adev->uvd.handles[i])) in amdgpu_uvd_used_handles()