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()
294 static void amdgpu_sync_entry_free(struct amdgpu_sync_entry *e) in amdgpu_sync_entry_free() argument
296 hash_del(&e->node); in amdgpu_sync_entry_free()
297 dma_fence_put(e->fence); in amdgpu_sync_entry_free()
298 kmem_cache_free(amdgpu_sync_slab, e); in amdgpu_sync_entry_free()
313 struct amdgpu_sync_entry *e; in amdgpu_sync_peek_fence() local
317 hash_for_each_safe(sync->fences, i, tmp, e, node) { in amdgpu_sync_peek_fence()
318 struct dma_fence *f = e->fence; in amdgpu_sync_peek_fence()
322 amdgpu_sync_entry_free(e); in amdgpu_sync_peek_fence()
352 struct amdgpu_sync_entry *e; in amdgpu_sync_get_fence() local
357 hash_for_each_safe(sync->fences, i, tmp, e, node) { in amdgpu_sync_get_fence()
359 f = e->fence; in amdgpu_sync_get_fence()
361 hash_del(&e->node); in amdgpu_sync_get_fence()
362 kmem_cache_free(amdgpu_sync_slab, e); in amdgpu_sync_get_fence()
383 struct amdgpu_sync_entry *e; in amdgpu_sync_clone() local
388 hash_for_each_safe(source->fences, i, tmp, e, node) { in amdgpu_sync_clone()
389 f = e->fence; in amdgpu_sync_clone()
395 amdgpu_sync_entry_free(e); in amdgpu_sync_clone()
411 struct amdgpu_sync_entry *e; in amdgpu_sync_push_to_job() local
416 hash_for_each_safe(sync->fences, i, tmp, e, node) { in amdgpu_sync_push_to_job()
417 f = e->fence; in amdgpu_sync_push_to_job()
419 amdgpu_sync_entry_free(e); in amdgpu_sync_push_to_job()
435 struct amdgpu_sync_entry *e; in amdgpu_sync_wait() local
439 hash_for_each_safe(sync->fences, i, tmp, e, node) { in amdgpu_sync_wait()
440 r = dma_fence_wait(e->fence, intr); in amdgpu_sync_wait()
444 amdgpu_sync_entry_free(e); in amdgpu_sync_wait()
459 struct amdgpu_sync_entry *e; in amdgpu_sync_free() local
463 hash_for_each_safe(sync->fences, i, tmp, e, node) in amdgpu_sync_free()
464 amdgpu_sync_entry_free(e); in amdgpu_sync_free()