Lines Matching refs: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
82 * @sync: sync object to add fences from reservation object to
84 * @shared: true if we should only sync to the exclusive fence
89 struct radeon_sync *sync,
99 /* always sync to the exclusive fence */
103 radeon_sync_fence(sync, fence);
116 radeon_sync_fence(sync, fence);
127 * radeon_sync_rings - sync ring to all registered fences
130 * @sync: sync object to use
131 * @ring: ring that needs sync
137 struct radeon_sync *sync,
144 struct radeon_fence *fence = sync->sync_to[i];
147 /* check if we really need to sync */
168 sync->semaphores[count++] = semaphore;
170 /* allocate enough space for sync command */
203 * radeon_sync_free - free the sync object
206 * @sync: sync object to use
209 * Free the sync object by freeing all semaphores in it.
212 struct radeon_sync *sync,
218 radeon_semaphore_free(rdev, &sync->semaphores[i], fence);