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()
274 struct amdgpu_sync_entry *e; in amdgpu_sync_peek_fence() local
278 hash_for_each_safe(sync->fences, i, tmp, e, node) { in amdgpu_sync_peek_fence()
279 struct dma_fence *f = e->fence; in amdgpu_sync_peek_fence()
283 hash_del(&e->node); in amdgpu_sync_peek_fence()
285 kmem_cache_free(amdgpu_sync_slab, e); in amdgpu_sync_peek_fence()
315 struct amdgpu_sync_entry *e; in amdgpu_sync_get_fence() local
320 hash_for_each_safe(sync->fences, i, tmp, e, node) { in amdgpu_sync_get_fence()
322 f = e->fence; in amdgpu_sync_get_fence()
324 hash_del(&e->node); in amdgpu_sync_get_fence()
325 kmem_cache_free(amdgpu_sync_slab, e); in amdgpu_sync_get_fence()
346 struct amdgpu_sync_entry *e; in amdgpu_sync_clone() local
351 hash_for_each_safe(source->fences, i, tmp, e, node) { in amdgpu_sync_clone()
352 f = e->fence; in amdgpu_sync_clone()
358 hash_del(&e->node); in amdgpu_sync_clone()
360 kmem_cache_free(amdgpu_sync_slab, e); in amdgpu_sync_clone()
369 struct amdgpu_sync_entry *e; in amdgpu_sync_wait() local
373 hash_for_each_safe(sync->fences, i, tmp, e, node) { in amdgpu_sync_wait()
374 r = dma_fence_wait(e->fence, intr); in amdgpu_sync_wait()
378 hash_del(&e->node); in amdgpu_sync_wait()
379 dma_fence_put(e->fence); in amdgpu_sync_wait()
380 kmem_cache_free(amdgpu_sync_slab, e); in amdgpu_sync_wait()
395 struct amdgpu_sync_entry *e; in amdgpu_sync_free() local
399 hash_for_each_safe(sync->fences, i, tmp, e, node) { in amdgpu_sync_free()
400 hash_del(&e->node); in amdgpu_sync_free()
401 dma_fence_put(e->fence); in amdgpu_sync_free()
402 kmem_cache_free(amdgpu_sync_slab, e); in amdgpu_sync_free()