Lines Matching full:cb
37 struct dma_fence_cb cb; member
41 static void mock_wakeup(struct dma_fence *f, struct dma_fence_cb *cb) in mock_wakeup() argument
43 wake_up_process(container_of(cb, struct wait_cb, cb)->task); in mock_wakeup()
49 struct wait_cb cb = { .task = current }; in mock_wait() local
51 if (dma_fence_add_callback(f, &cb.cb, mock_wakeup)) in mock_wait()
67 if (!dma_fence_remove_callback(f, &cb.cb)) in mock_wait()
151 struct dma_fence_cb cb; member
155 static void simple_callback(struct dma_fence *f, struct dma_fence_cb *cb) in simple_callback() argument
157 smp_store_mb(container_of(cb, struct simple_cb, cb)->seen, true); in simple_callback()
162 struct simple_cb cb = {}; in test_add_callback() local
170 if (dma_fence_add_callback(f, &cb.cb, simple_callback)) { in test_add_callback()
176 if (!cb.seen) { in test_add_callback()
189 struct simple_cb cb = {}; in test_late_add_callback() local
201 if (!dma_fence_add_callback(f, &cb.cb, simple_callback)) { in test_late_add_callback()
207 if (cb.seen) { in test_late_add_callback()
220 struct simple_cb cb = {}; in test_rm_callback() local
228 if (dma_fence_add_callback(f, &cb.cb, simple_callback)) { in test_rm_callback()
233 if (!dma_fence_remove_callback(f, &cb.cb)) { in test_rm_callback()
239 if (cb.seen) { in test_rm_callback()
252 struct simple_cb cb = {}; in test_late_rm_callback() local
260 if (dma_fence_add_callback(f, &cb.cb, simple_callback)) { in test_late_rm_callback()
266 if (!cb.seen) { in test_late_rm_callback()
271 if (dma_fence_remove_callback(f, &cb.cb)) { in test_late_rm_callback()
467 struct simple_cb cb; in thread_signal_callback() local
489 smp_store_mb(cb.seen, false); in thread_signal_callback()
491 dma_fence_add_callback(f2, &cb.cb, simple_callback)) { in thread_signal_callback()
493 cb.seen = true; in thread_signal_callback()
499 if (!cb.seen) { in thread_signal_callback()
504 if (!READ_ONCE(cb.seen)) { in thread_signal_callback()