Lines Matching refs:e

135 	struct amdgpu_sync_entry *e;  in amdgpu_sync_add_later()  local
137 hash_for_each_possible(sync->fences, e, node, f->context) { in amdgpu_sync_add_later()
138 if (unlikely(e->fence->context != f->context)) in amdgpu_sync_add_later()
141 amdgpu_sync_keep_later(&e->fence, f); in amdgpu_sync_add_later()
157 struct amdgpu_sync_entry *e; in amdgpu_sync_fence() local
165 e = kmem_cache_alloc(amdgpu_sync_slab, GFP_KERNEL); in amdgpu_sync_fence()
166 if (!e) in amdgpu_sync_fence()
169 hash_add(sync->fences, &e->node, f->context); in amdgpu_sync_fence()
170 e->fence = dma_fence_get(f); in amdgpu_sync_fence()
263 static void amdgpu_sync_entry_free(struct amdgpu_sync_entry *e) in amdgpu_sync_entry_free() argument
265 hash_del(&e->node); in amdgpu_sync_entry_free()
266 dma_fence_put(e->fence); in amdgpu_sync_entry_free()
267 kmem_cache_free(amdgpu_sync_slab, e); in amdgpu_sync_entry_free()
282 struct amdgpu_sync_entry *e; in amdgpu_sync_peek_fence() local
286 hash_for_each_safe(sync->fences, i, tmp, e, node) { in amdgpu_sync_peek_fence()
287 struct dma_fence *f = e->fence; in amdgpu_sync_peek_fence()
291 amdgpu_sync_entry_free(e); in amdgpu_sync_peek_fence()
321 struct amdgpu_sync_entry *e; in amdgpu_sync_get_fence() local
326 hash_for_each_safe(sync->fences, i, tmp, e, node) { in amdgpu_sync_get_fence()
328 f = e->fence; in amdgpu_sync_get_fence()
330 hash_del(&e->node); in amdgpu_sync_get_fence()
331 kmem_cache_free(amdgpu_sync_slab, e); in amdgpu_sync_get_fence()
352 struct amdgpu_sync_entry *e; in amdgpu_sync_clone() local
357 hash_for_each_safe(source->fences, i, tmp, e, node) { in amdgpu_sync_clone()
358 f = e->fence; in amdgpu_sync_clone()
364 amdgpu_sync_entry_free(e); in amdgpu_sync_clone()
380 struct amdgpu_sync_entry *e; in amdgpu_sync_push_to_job() local
385 hash_for_each_safe(sync->fences, i, tmp, e, node) { in amdgpu_sync_push_to_job()
386 f = e->fence; in amdgpu_sync_push_to_job()
388 amdgpu_sync_entry_free(e); in amdgpu_sync_push_to_job()
404 struct amdgpu_sync_entry *e; in amdgpu_sync_wait() local
408 hash_for_each_safe(sync->fences, i, tmp, e, node) { in amdgpu_sync_wait()
409 r = dma_fence_wait(e->fence, intr); in amdgpu_sync_wait()
413 amdgpu_sync_entry_free(e); in amdgpu_sync_wait()
428 struct amdgpu_sync_entry *e; in amdgpu_sync_free() local
432 hash_for_each_safe(sync->fences, i, tmp, e, node) in amdgpu_sync_free()
433 amdgpu_sync_entry_free(e); in amdgpu_sync_free()