• Home
  • Raw
  • Download

Lines Matching refs:ddev

369 	struct drm_device *ddev = arg;  in ltdc_irq_thread()  local
370 struct ltdc_device *ldev = ddev->dev_private; in ltdc_irq_thread()
371 struct drm_crtc *crtc = drm_crtc_from_index(ddev, 0); in ltdc_irq_thread()
390 struct drm_device *ddev = arg; in ltdc_irq() local
391 struct ltdc_device *ldev = ddev->dev_private; in ltdc_irq()
427 struct drm_device *ddev = crtc->dev; in ltdc_crtc_atomic_enable() local
431 pm_runtime_get_sync(ddev->dev); in ltdc_crtc_atomic_enable()
449 struct drm_device *ddev = crtc->dev; in ltdc_crtc_atomic_disable() local
461 pm_runtime_put_sync(ddev->dev); in ltdc_crtc_atomic_disable()
528 struct drm_device *ddev = crtc->dev; in ltdc_crtc_mode_set_nofb() local
541 drm_for_each_encoder(en_iter, ddev) in ltdc_crtc_mode_set_nofb()
556 drm_connector_list_iter_begin(ddev, &iter); in ltdc_crtc_mode_set_nofb()
568 if (!pm_runtime_active(ddev->dev)) { in ltdc_crtc_mode_set_nofb()
569 ret = pm_runtime_get_sync(ddev->dev); in ltdc_crtc_mode_set_nofb()
637 struct drm_device *ddev = crtc->dev; in ltdc_crtc_atomic_flush() local
650 spin_lock_irq(&ddev->event_lock); in ltdc_crtc_atomic_flush()
655 spin_unlock_irq(&ddev->event_lock); in ltdc_crtc_atomic_flush()
665 struct drm_device *ddev = crtc->dev; in ltdc_crtc_get_scanout_position() local
666 struct ltdc_device *ldev = ddev->dev_private; in ltdc_crtc_get_scanout_position()
686 if (pm_runtime_active(ddev->dev)) { in ltdc_crtc_get_scanout_position()
959 static struct drm_plane *ltdc_plane_create(struct drm_device *ddev, in ltdc_plane_create() argument
963 struct ltdc_device *ldev = ddev->dev_private; in ltdc_plane_create()
964 struct device *dev = ddev->dev; in ltdc_plane_create()
996 ret = drm_universal_plane_init(ddev, plane, possible_crtcs, in ltdc_plane_create()
1009 static void ltdc_plane_destroy_all(struct drm_device *ddev) in ltdc_plane_destroy_all() argument
1014 &ddev->mode_config.plane_list, head) in ltdc_plane_destroy_all()
1018 static int ltdc_crtc_init(struct drm_device *ddev, struct drm_crtc *crtc) in ltdc_crtc_init() argument
1020 struct ltdc_device *ldev = ddev->dev_private; in ltdc_crtc_init()
1025 primary = ltdc_plane_create(ddev, DRM_PLANE_TYPE_PRIMARY); in ltdc_crtc_init()
1031 ret = drm_crtc_init_with_planes(ddev, crtc, primary, NULL, in ltdc_crtc_init()
1047 overlay = ltdc_plane_create(ddev, DRM_PLANE_TYPE_OVERLAY); in ltdc_crtc_init()
1058 ltdc_plane_destroy_all(ddev); in ltdc_crtc_init()
1064 struct drm_device *ddev = encoder->dev; in ltdc_encoder_disable() local
1065 struct ltdc_device *ldev = ddev->dev_private; in ltdc_encoder_disable()
1073 pinctrl_pm_select_sleep_state(ddev->dev); in ltdc_encoder_disable()
1078 struct drm_device *ddev = encoder->dev; in ltdc_encoder_enable() local
1079 struct ltdc_device *ldev = ddev->dev_private; in ltdc_encoder_enable()
1091 struct drm_device *ddev = encoder->dev; in ltdc_encoder_mode_set() local
1101 pinctrl_pm_select_default_state(ddev->dev); in ltdc_encoder_mode_set()
1110 static int ltdc_encoder_init(struct drm_device *ddev, struct drm_bridge *bridge) in ltdc_encoder_init() argument
1115 encoder = devm_kzalloc(ddev->dev, sizeof(*encoder), GFP_KERNEL); in ltdc_encoder_init()
1122 drm_simple_encoder_init(ddev, encoder, DRM_MODE_ENCODER_DPI); in ltdc_encoder_init()
1138 static int ltdc_get_caps(struct drm_device *ddev) in ltdc_get_caps() argument
1140 struct ltdc_device *ldev = ddev->dev_private; in ltdc_get_caps()
1189 void ltdc_suspend(struct drm_device *ddev) in ltdc_suspend() argument
1191 struct ltdc_device *ldev = ddev->dev_private; in ltdc_suspend()
1197 int ltdc_resume(struct drm_device *ddev) in ltdc_resume() argument
1199 struct ltdc_device *ldev = ddev->dev_private; in ltdc_resume()
1213 int ltdc_load(struct drm_device *ddev) in ltdc_load() argument
1215 struct platform_device *pdev = to_platform_device(ddev->dev); in ltdc_load()
1216 struct ltdc_device *ldev = ddev->dev_private; in ltdc_load()
1217 struct device *dev = ddev->dev; in ltdc_load()
1271 ret = ltdc_encoder_init(ddev, bridge); in ltdc_load()
1302 ret = ltdc_get_caps(ddev); in ltdc_load()
1320 dev_name(dev), ddev); in ltdc_load()
1335 ret = ltdc_crtc_init(ddev, crtc); in ltdc_load()
1341 ret = drm_vblank_init(ddev, NB_CRTC); in ltdc_load()
1349 pinctrl_pm_select_sleep_state(ddev->dev); in ltdc_load()
1351 pm_runtime_enable(ddev->dev); in ltdc_load()
1356 drm_of_panel_bridge_remove(ddev->dev->of_node, 0, i); in ltdc_load()
1363 void ltdc_unload(struct drm_device *ddev) in ltdc_unload() argument
1365 struct device *dev = ddev->dev; in ltdc_unload()
1373 drm_of_panel_bridge_remove(ddev->dev->of_node, 0, i); in ltdc_unload()
1375 pm_runtime_disable(ddev->dev); in ltdc_unload()