Lines Matching defs:fence
55 * radeon_sync_fence - use the semaphore to sync to a fence
57 * @sync: sync object to add fence to
58 * @fence: fence to sync to
60 * Sync to the fence using the semaphore objects
63 struct radeon_fence *fence)
67 if (!fence)
70 other = sync->sync_to[fence->ring];
71 sync->sync_to[fence->ring] = radeon_fence_later(fence, other);
73 if (fence->is_vm_update) {
75 sync->last_vm_update = radeon_fence_later(fence, other);
84 * @resv: reservation object with embedded fence
85 * @shared: true if we should only sync to the exclusive fence
87 * Sync to the fence using the semaphore objects
95 struct radeon_fence *fence;
100 fence = to_radeon_fence(f);
101 if (fence && fence->rdev == rdev)
102 radeon_sync_fence(sync, fence);
129 struct radeon_fence *fence = sync->sync_to[i];
133 if (!radeon_fence_need_sync(fence, ring))
144 r = radeon_fence_wait(fence, false);
164 r = radeon_fence_wait(fence, false);
174 r = radeon_fence_wait(fence, false);
181 radeon_fence_note_sync(fence, ring);
192 * @fence: fence to use for the free
198 struct radeon_fence *fence)
203 radeon_semaphore_free(rdev, &sync->semaphores[i], fence);