Lines Matching refs:e
109 struct amdgpu_sync_entry *e; in amdgpu_sync_fence() local
121 hash_for_each_possible(sync->fences, e, node, f->context) { in amdgpu_sync_fence()
122 if (unlikely(e->fence->context != f->context)) in amdgpu_sync_fence()
125 amdgpu_sync_keep_later(&e->fence, f); in amdgpu_sync_fence()
129 e = kmalloc(sizeof(struct amdgpu_sync_entry), GFP_KERNEL); in amdgpu_sync_fence()
130 if (!e) in amdgpu_sync_fence()
133 hash_add(sync->fences, &e->node, f->context); in amdgpu_sync_fence()
134 e->fence = fence_get(f); in amdgpu_sync_fence()
217 struct amdgpu_sync_entry *e; in amdgpu_sync_get_fence() local
222 hash_for_each_safe(sync->fences, i, tmp, e, node) { in amdgpu_sync_get_fence()
224 f = e->fence; in amdgpu_sync_get_fence()
226 hash_del(&e->node); in amdgpu_sync_get_fence()
227 kfree(e); in amdgpu_sync_get_fence()
239 struct amdgpu_sync_entry *e; in amdgpu_sync_wait() local
243 hash_for_each_safe(sync->fences, i, tmp, e, node) { in amdgpu_sync_wait()
244 r = fence_wait(e->fence, false); in amdgpu_sync_wait()
248 hash_del(&e->node); in amdgpu_sync_wait()
249 fence_put(e->fence); in amdgpu_sync_wait()
250 kfree(e); in amdgpu_sync_wait()
371 struct amdgpu_sync_entry *e; in amdgpu_sync_free() local
375 hash_for_each_safe(sync->fences, i, tmp, e, node) { in amdgpu_sync_free()
376 hash_del(&e->node); in amdgpu_sync_free()
377 fence_put(e->fence); in amdgpu_sync_free()
378 kfree(e); in amdgpu_sync_free()