Lines Matching defs:fence
36 #include <linux/dma-fence.h>
168 static struct drm_crtc *fence_to_crtc(struct dma_fence *fence)
170 BUG_ON(fence->ops != &drm_crtc_fence_ops);
171 return container_of(fence->lock, struct drm_crtc, fence_lock);
174 static const char *drm_crtc_fence_get_driver_name(struct dma_fence *fence)
176 struct drm_crtc *crtc = fence_to_crtc(fence);
181 static const char *drm_crtc_fence_get_timeline_name(struct dma_fence *fence)
183 struct drm_crtc *crtc = fence_to_crtc(fence);
195 struct dma_fence *fence;
197 fence = kzalloc(sizeof(*fence), GFP_KERNEL);
198 if (!fence)
201 dma_fence_init(fence, &drm_crtc_fence_ops, &crtc->fence_lock,
204 return fence;