Lines Matching full: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) in radeon_sync_create() argument
46 sync->semaphores[i] = NULL; in radeon_sync_create()
49 sync->sync_to[i] = NULL; in radeon_sync_create()
51 sync->last_vm_update = NULL; in radeon_sync_create()
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
62 void radeon_sync_fence(struct radeon_sync *sync, in radeon_sync_fence() argument
70 other = sync->sync_to[fence->ring]; in radeon_sync_fence()
71 sync->sync_to[fence->ring] = radeon_fence_later(fence, other); in radeon_sync_fence()
74 other = sync->last_vm_update; in radeon_sync_fence()
75 sync->last_vm_update = radeon_fence_later(fence, other); in radeon_sync_fence()
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
87 * Sync to the fence using the semaphore objects
90 struct radeon_sync *sync, in radeon_sync_resv() argument
102 radeon_sync_fence(sync, fence); in radeon_sync_resv()
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, in radeon_sync_rings() argument
129 struct radeon_fence *fence = sync->sync_to[i]; in radeon_sync_rings()
132 /* check if we really need to sync */ in radeon_sync_rings()
153 sync->semaphores[count++] = semaphore; in radeon_sync_rings()
155 /* allocate enough space for sync command */ in radeon_sync_rings()
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, in radeon_sync_free() argument
203 radeon_semaphore_free(rdev, &sync->semaphores[i], fence); in radeon_sync_free()