Lines Matching defs:handle
319 uint32_t handle = atomic_read(&rdev->vce.handles[i]);
320 if (!handle || rdev->vce.filp[i] != filp)
326 handle, NULL);
328 DRM_ERROR("Error destroying VCE handle (%d)!\n", r);
340 * @handle: VCE session handle to use
346 uint32_t handle, struct radeon_fence **fence)
365 ib.ptr[ib.length_dw++] = cpu_to_le32(handle);
407 * @handle: VCE session handle to use
413 uint32_t handle, struct radeon_fence **fence)
432 ib.ptr[ib.length_dw++] = cpu_to_le32(handle);
509 * radeon_vce_validate_handle - validate stream handle
512 * @handle: handle to validate
513 * @allocated: allocated a new handle?
515 * Validates the handle and return the found session index or -EINVAL
519 uint32_t handle, bool *allocated)
525 /* validate the handle */
527 if (atomic_read(&p->rdev->vce.handles[i]) == handle) {
529 DRM_ERROR("VCE handle collision detected!\n");
536 /* handle not found try to alloc a new one */
538 if (!atomic_cmpxchg(&p->rdev->vce.handles[i], 0, handle)) {
560 uint32_t tmp, handle = 0;
582 handle = radeon_get_ib_value(p, p->idx + 2);
583 session_idx = radeon_vce_validate_handle(p, handle,
676 * handle and got an error, anyway free the handle
679 atomic_cmpxchg(&p->rdev->vce.handles[i], handle, 0);