Lines Matching refs:handle
521 uint32_t handle = atomic_read(&adev->uvd.handles[i]); in amdgpu_uvd_free_handles() local
523 if (handle != 0 && adev->uvd.filp[i] == filp) { in amdgpu_uvd_free_handles()
526 r = amdgpu_uvd_get_destroy_msg(ring, handle, false, in amdgpu_uvd_free_handles()
813 int32_t *msg, msg_type, handle; in amdgpu_uvd_cs_msg() local
832 handle = msg[2]; in amdgpu_uvd_cs_msg()
834 if (handle == 0) { in amdgpu_uvd_cs_msg()
847 if (atomic_read(&adev->uvd.handles[i]) == handle) { in amdgpu_uvd_cs_msg()
849 handle); in amdgpu_uvd_cs_msg()
853 if (!atomic_cmpxchg(&adev->uvd.handles[i], 0, handle)) { in amdgpu_uvd_cs_msg()
871 if (atomic_read(&adev->uvd.handles[i]) == handle) { in amdgpu_uvd_cs_msg()
880 DRM_ERROR("Invalid UVD handle 0x%x!\n", handle); in amdgpu_uvd_cs_msg()
886 atomic_cmpxchg(&adev->uvd.handles[i], handle, 0); in amdgpu_uvd_cs_msg()
1194 int amdgpu_uvd_get_create_msg(struct amdgpu_ring *ring, uint32_t handle, in amdgpu_uvd_get_create_msg() argument
1206 msg[2] = cpu_to_le32(handle); in amdgpu_uvd_get_create_msg()
1222 int amdgpu_uvd_get_destroy_msg(struct amdgpu_ring *ring, uint32_t handle, in amdgpu_uvd_get_destroy_msg() argument
1242 msg[2] = cpu_to_le32(handle); in amdgpu_uvd_get_destroy_msg()