Lines Matching refs:wait
1472 * amdgpu_cs_wait_ioctl - wait for a command submission to finish
1483 union drm_amdgpu_wait_cs *wait = data;
1484 unsigned long timeout = amdgpu_gem_timeout(wait->in.timeout);
1490 ctx = amdgpu_ctx_get(filp->driver_priv, wait->in.ctx_id);
1494 r = amdgpu_ctx_get_entity(ctx, wait->in.ip_type, wait->in.ip_instance,
1495 wait->in.ring, &entity);
1501 fence = amdgpu_ctx_get_fence(ctx, entity, wait->in.handle);
1516 memset(wait, 0, sizeof(*wait));
1517 wait->out.status = (r == 0);
1616 * amdgpu_cs_wait_all_fences - wait on all fences to signal
1620 * @wait: wait parameters
1625 union drm_amdgpu_wait_fences *wait,
1628 uint32_t fence_count = wait->in.fence_count;
1634 unsigned long timeout = amdgpu_gem_timeout(wait->in.timeout_ns);
1654 memset(wait, 0, sizeof(*wait));
1655 wait->out.status = (r > 0);
1661 * amdgpu_cs_wait_any_fence - wait on any fence to signal
1665 * @wait: wait parameters
1670 union drm_amdgpu_wait_fences *wait,
1673 unsigned long timeout = amdgpu_gem_timeout(wait->in.timeout_ns);
1674 uint32_t fence_count = wait->in.fence_count;
1708 memset(wait, 0, sizeof(*wait));
1709 wait->out.status = (r > 0);
1710 wait->out.first_signaled = first;
1726 * amdgpu_cs_wait_fences_ioctl - wait for multiple command submissions to finish
1736 union drm_amdgpu_wait_fences *wait = data;
1737 uint32_t fence_count = wait->in.fence_count;
1748 fences_user = u64_to_user_ptr(wait->in.fences);
1755 if (wait->in.wait_all)
1756 r = amdgpu_cs_wait_all_fences(adev, filp, wait, fences);
1758 r = amdgpu_cs_wait_any_fence(adev, filp, wait, fences);