Lines Matching refs:sync
40 * radeon_sync_create - zero init sync object
42 * @sync: sync object to initialize
44 * Just clear the sync object for now.
46 void radeon_sync_create(struct radeon_sync *sync)
51 sync->semaphores[i] = NULL;
54 sync->sync_to[i] = NULL;
56 sync->last_vm_update = NULL;
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
67 void radeon_sync_fence(struct radeon_sync *sync,
75 other = sync->sync_to[fence->ring];
76 sync->sync_to[fence->ring] = radeon_fence_later(fence, other);
79 other = sync->last_vm_update;
80 sync->last_vm_update = radeon_fence_later(fence, other);
85 * radeon_sync_resv - use the semaphores to sync to a reservation object
87 * @sync: sync object to add fences from reservation object to
89 * @shared: true if we should only sync to the exclusive fence
91 * Sync to the fence using the semaphore objects
94 struct radeon_sync *sync,
104 /* always sync to the exclusive fence */
108 radeon_sync_fence(sync, fence);
121 radeon_sync_fence(sync, fence);
132 * radeon_sync_rings - sync ring to all registered fences
135 * @sync: sync object to use
136 * @ring: ring that needs sync
142 struct radeon_sync *sync,
149 struct radeon_fence *fence = sync->sync_to[i];
152 /* check if we really need to sync */
173 sync->semaphores[count++] = semaphore;
175 /* allocate enough space for sync command */
208 * radeon_sync_free - free the sync object
211 * @sync: sync object to use
214 * Free the sync object by freeing all semaphores in it.
217 struct radeon_sync *sync,
223 radeon_semaphore_free(rdev, &sync->semaphores[i], fence);