Lines Matching defs:fence
60 * radeon_sync_fence - use the semaphore to sync to a fence
62 * @sync: sync object to add fence to
63 * @fence: fence to sync to
65 * Sync to the fence using the semaphore objects
68 struct radeon_fence *fence)
72 if (!fence)
75 other = sync->sync_to[fence->ring];
76 sync->sync_to[fence->ring] = radeon_fence_later(fence, other);
78 if (fence->is_vm_update) {
80 sync->last_vm_update = radeon_fence_later(fence, other);
88 * @resv: reservation object with embedded fence
89 * @shared: true if we should only sync to the exclusive fence
91 * Sync to the fence using the semaphore objects
100 struct radeon_fence *fence;
104 /* always sync to the exclusive fence */
106 fence = f ? to_radeon_fence(f) : NULL;
107 if (fence && fence->rdev == rdev)
108 radeon_sync_fence(sync, fence);
119 fence = to_radeon_fence(f);
120 if (fence && fence->rdev == rdev)
121 radeon_sync_fence(sync, fence);
149 struct radeon_fence *fence = sync->sync_to[i];
153 if (!radeon_fence_need_sync(fence, ring))
164 r = radeon_fence_wait(fence, false);
184 r = radeon_fence_wait(fence, false);
194 r = radeon_fence_wait(fence, false);
201 radeon_fence_note_sync(fence, ring);
212 * @fence: fence to use for the free
218 struct radeon_fence *fence)
223 radeon_semaphore_free(rdev, &sync->semaphores[i], fence);