Lines Matching defs:fence
27 /* Small library of different fence types useful for writing tests */
30 nop_fence_notify(struct i915_sw_fence *fence, enum i915_sw_fence_notify state)
35 void __onstack_fence_init(struct i915_sw_fence *fence,
39 debug_fence_init_onstack(fence);
41 __init_waitqueue_head(&fence->wait, name, key);
42 atomic_set(&fence->pending, 1);
43 fence->error = 0;
44 fence->fn = nop_fence_notify;
47 void onstack_fence_fini(struct i915_sw_fence *fence)
49 if (!fence->fn)
52 i915_sw_fence_commit(fence);
53 i915_sw_fence_fini(fence);
60 i915_sw_fence_commit(&tf->fence);
65 onstack_fence_init(&tf->fence);
72 i915_sw_fence_commit(&tf->fence);
78 i915_sw_fence_commit(&tf->fence);
81 i915_sw_fence_fini(&tf->fence);
85 struct i915_sw_fence fence;
93 heap_fence_notify(struct i915_sw_fence *fence, enum i915_sw_fence_notify state)
95 struct heap_fence *h = container_of(fence, typeof(*h), fence);
102 heap_fence_put(&h->fence);
116 i915_sw_fence_init(&h->fence, heap_fence_notify);
119 return &h->fence;
126 i915_sw_fence_fini(&h->fence);
131 void heap_fence_put(struct i915_sw_fence *fence)
133 struct heap_fence *h = container_of(fence, typeof(*h), fence);