Lines Matching defs:drm
17 #include <drm/drm_atomic_helper.h>
18 #include <drm/drm_blend.h>
19 #include <drm/drm_fb_dma_helper.h>
20 #include <drm/drm_framebuffer.h>
21 #include <drm/drm_gem_dma_helper.h>
22 #include <drm/drm_gem_framebuffer_helper.h>
143 drm_err(dpu->drm, "dpu wait for stop done time out!\n");
161 drm_err(dpu->drm, "dpu wait for reg update done time out!\n");
586 static struct sprd_plane *sprd_planes_init(struct drm_device *drm)
596 plane = drmm_universal_plane_alloc(drm, struct sprd_plane, base,
601 drm_err(drm, "failed to init drm plane: %d\n", i);
652 struct drm_device *drm = dpu->base.dev;
658 spin_lock_irq(&drm->event_lock);
663 spin_unlock_irq(&drm->event_lock);
671 struct drm_device *drm = dpu->base.dev;
675 spin_lock_irq(&drm->event_lock);
680 spin_unlock_irq(&drm->event_lock);
717 static struct sprd_dpu *sprd_crtc_init(struct drm_device *drm,
723 dpu = drmm_crtc_alloc_with_planes(drm, struct sprd_dpu, base,
727 drm_err(drm, "failed to init crtc\n");
737 drm_err(drm, "failed to found crtc output port for %s\n",
758 drm_warn(dpu->drm, "Warning: dpu underflow!\n");
824 struct drm_device *drm = data;
829 plane = sprd_planes_init(drm);
833 dpu = sprd_crtc_init(drm, &plane->base, dev);
837 dpu->drm = drm;