Lines Matching defs:sync
35 * radeon_sync_create - zero init sync object
37 * @sync: sync object to initialize
39 * Just clear the sync object for now.
41 void radeon_sync_create(struct radeon_sync *sync)
46 sync->semaphores[i] = NULL;
49 sync->sync_to[i] = NULL;
51 sync->last_vm_update = NULL;
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
62 void radeon_sync_fence(struct radeon_sync *sync,
70 other = sync->sync_to[fence->ring];
71 sync->sync_to[fence->ring] = radeon_fence_later(fence, other);
74 other = sync->last_vm_update;
75 sync->last_vm_update = radeon_fence_later(fence, other);
80 * radeon_sync_resv - use the semaphores to sync to a reservation object
83 * @sync: sync object to add fences from reservation object to
85 * @shared: true if we should only sync to the exclusive fence
90 struct radeon_sync *sync,
102 radeon_sync_fence(sync, fence);
112 * radeon_sync_rings - sync ring to all registered fences
115 * @sync: sync object to use
116 * @ring: ring that needs sync
122 struct radeon_sync *sync,
129 struct radeon_fence *fence = sync->sync_to[i];
132 /* check if we really need to sync */
153 sync->semaphores[count++] = semaphore;
155 /* allocate enough space for sync command */
188 * radeon_sync_free - free the sync object
191 * @sync: sync object to use
194 * Free the sync object by freeing all semaphores in it.
197 struct radeon_sync *sync,
203 radeon_semaphore_free(rdev, &sync->semaphores[i], fence);