Lines Matching refs:cb
239 int fence_add_callback(struct fence *fence, struct fence_cb *cb, in fence_add_callback() argument
250 INIT_LIST_HEAD(&cb->node); in fence_add_callback()
270 cb->func = func; in fence_add_callback()
271 list_add_tail(&cb->node, &fence->cb_list); in fence_add_callback()
273 INIT_LIST_HEAD(&cb->node); in fence_add_callback()
296 fence_remove_callback(struct fence *fence, struct fence_cb *cb) in fence_remove_callback() argument
303 ret = !list_empty(&cb->node); in fence_remove_callback()
305 list_del_init(&cb->node); in fence_remove_callback()
323 fence_default_wait_cb(struct fence *fence, struct fence_cb *cb) in fence_default_wait_cb() argument
326 container_of(cb, struct default_wait_cb, base); in fence_default_wait_cb()
344 struct default_wait_cb cb; in fence_default_wait() local
373 cb.base.func = fence_default_wait_cb; in fence_default_wait()
374 cb.task = current; in fence_default_wait()
375 list_add(&cb.base.node, &fence->cb_list); in fence_default_wait()
391 if (!list_empty(&cb.base.node)) in fence_default_wait()
392 list_del(&cb.base.node); in fence_default_wait()