Lines Matching refs:sync

52 void amdgpu_sync_create(struct amdgpu_sync *sync)  in amdgpu_sync_create()  argument
54 hash_init(sync->fences); in amdgpu_sync_create()
133 static bool amdgpu_sync_add_later(struct amdgpu_sync *sync, struct dma_fence *f) in amdgpu_sync_add_later() argument
137 hash_for_each_possible(sync->fences, e, node, f->context) { in amdgpu_sync_add_later()
155 int amdgpu_sync_fence(struct amdgpu_sync *sync, struct dma_fence *f) in amdgpu_sync_fence() argument
162 if (amdgpu_sync_add_later(sync, f)) in amdgpu_sync_fence()
169 hash_add(sync->fences, &e->node, f->context); in amdgpu_sync_fence()
235 int amdgpu_sync_resv(struct amdgpu_device *adev, struct amdgpu_sync *sync, in amdgpu_sync_resv() argument
252 r = amdgpu_sync_fence(sync, f); in amdgpu_sync_resv()
280 struct dma_fence *amdgpu_sync_peek_fence(struct amdgpu_sync *sync, in amdgpu_sync_peek_fence() argument
287 hash_for_each_safe(sync->fences, i, tmp, e, node) { in amdgpu_sync_peek_fence()
320 struct dma_fence *amdgpu_sync_get_fence(struct amdgpu_sync *sync) in amdgpu_sync_get_fence() argument
327 hash_for_each_safe(sync->fences, i, tmp, e, node) { in amdgpu_sync_get_fence()
379 int amdgpu_sync_push_to_job(struct amdgpu_sync *sync, struct amdgpu_job *job) in amdgpu_sync_push_to_job() argument
386 hash_for_each_safe(sync->fences, i, tmp, e, node) { in amdgpu_sync_push_to_job()
403 int amdgpu_sync_wait(struct amdgpu_sync *sync, bool intr) in amdgpu_sync_wait() argument
409 hash_for_each_safe(sync->fences, i, tmp, e, node) { in amdgpu_sync_wait()
427 void amdgpu_sync_free(struct amdgpu_sync *sync) in amdgpu_sync_free() argument
433 hash_for_each_safe(sync->fences, i, tmp, e, node) in amdgpu_sync_free()