Lines Matching +full:reference +full:- +full:sync
29 #include <linux/dma-fence.h>
30 #include <linux/dma-fence-chain.h>
35 * struct drm_syncobj - sync object.
37 * This structure defines a generic sync object which wraps a &dma_fence.
41 * @refcount: Reference count of this object.
61 * @lock: Protects &cb_list and &ev_fd_list, and write-locks &fence.
73 * drm_syncobj_get - acquire a syncobj reference
74 * @obj: sync object
76 * This acquires an additional reference to @obj. It is illegal to call this
77 * without already holding a reference. No locks required.
82 kref_get(&obj->refcount); in drm_syncobj_get()
86 * drm_syncobj_put - release a reference to a sync object.
87 * @obj: sync object.
92 kref_put(&obj->refcount, drm_syncobj_free); in drm_syncobj_put()
96 * drm_syncobj_fence_get - get a reference to a fence in a sync object
97 * @syncobj: sync object.
99 * This acquires additional reference to &drm_syncobj.fence contained in @obj,
100 * if not NULL. It is illegal to call this without already holding a reference.
112 fence = dma_fence_get_rcu_safe(&syncobj->fence); in drm_syncobj_fence_get()