Lines Matching refs:e
134 struct amdgpu_sync_entry *e; in amdgpu_sync_add_later() local
136 hash_for_each_possible(sync->fences, e, node, f->context) { in amdgpu_sync_add_later()
137 if (unlikely(e->fence->context != f->context)) in amdgpu_sync_add_later()
140 amdgpu_sync_keep_later(&e->fence, f); in amdgpu_sync_add_later()
143 e->explicit |= explicit; in amdgpu_sync_add_later()
160 struct amdgpu_sync_entry *e; in amdgpu_sync_fence() local
171 e = kmem_cache_alloc(amdgpu_sync_slab, GFP_KERNEL); in amdgpu_sync_fence()
172 if (!e) in amdgpu_sync_fence()
175 e->explicit = explicit; in amdgpu_sync_fence()
177 hash_add(sync->fences, &e->node, f->context); in amdgpu_sync_fence()
178 e->fence = dma_fence_get(f); in amdgpu_sync_fence()
261 struct amdgpu_sync_entry *e; in amdgpu_sync_peek_fence() local
265 hash_for_each_safe(sync->fences, i, tmp, e, node) { in amdgpu_sync_peek_fence()
266 struct dma_fence *f = e->fence; in amdgpu_sync_peek_fence()
270 hash_del(&e->node); in amdgpu_sync_peek_fence()
272 kmem_cache_free(amdgpu_sync_slab, e); in amdgpu_sync_peek_fence()
303 struct amdgpu_sync_entry *e; in amdgpu_sync_get_fence() local
307 hash_for_each_safe(sync->fences, i, tmp, e, node) { in amdgpu_sync_get_fence()
309 f = e->fence; in amdgpu_sync_get_fence()
311 *explicit = e->explicit; in amdgpu_sync_get_fence()
313 hash_del(&e->node); in amdgpu_sync_get_fence()
314 kmem_cache_free(amdgpu_sync_slab, e); in amdgpu_sync_get_fence()
335 struct amdgpu_sync_entry *e; in amdgpu_sync_clone() local
340 hash_for_each_safe(source->fences, i, tmp, e, node) { in amdgpu_sync_clone()
341 f = e->fence; in amdgpu_sync_clone()
343 r = amdgpu_sync_fence(NULL, clone, f, e->explicit); in amdgpu_sync_clone()
347 hash_del(&e->node); in amdgpu_sync_clone()
349 kmem_cache_free(amdgpu_sync_slab, e); in amdgpu_sync_clone()
361 struct amdgpu_sync_entry *e; in amdgpu_sync_wait() local
365 hash_for_each_safe(sync->fences, i, tmp, e, node) { in amdgpu_sync_wait()
366 r = dma_fence_wait(e->fence, intr); in amdgpu_sync_wait()
370 hash_del(&e->node); in amdgpu_sync_wait()
371 dma_fence_put(e->fence); in amdgpu_sync_wait()
372 kmem_cache_free(amdgpu_sync_slab, e); in amdgpu_sync_wait()
387 struct amdgpu_sync_entry *e; in amdgpu_sync_free() local
391 hash_for_each_safe(sync->fences, i, tmp, e, node) { in amdgpu_sync_free()
392 hash_del(&e->node); in amdgpu_sync_free()
393 dma_fence_put(e->fence); in amdgpu_sync_free()
394 kmem_cache_free(amdgpu_sync_slab, e); in amdgpu_sync_free()