Lines Matching refs:kms
42 struct komeda_kms_dev *kms = to_kdev(drm); in komeda_kms_irq_handler() local
54 for (i = 0; i < kms->n_crtcs; i++) in komeda_kms_irq_handler()
55 komeda_crtc_handle_event(&kms->crtcs[i], &evts); in komeda_kms_irq_handler()
75 struct komeda_kms_dev *kms = to_kdev(dev); in komeda_kms_atomic_commit_hw_done() local
78 for (i = 0; i < kms->n_crtcs; i++) { in komeda_kms_atomic_commit_hw_done()
79 struct komeda_crtc *kcrtc = &kms->crtcs[i]; in komeda_kms_atomic_commit_hw_done()
254 static void komeda_kms_mode_config_init(struct komeda_kms_dev *kms, in komeda_kms_mode_config_init() argument
257 struct drm_mode_config *config = &kms->base.mode_config; in komeda_kms_mode_config_init()
259 drm_mode_config_init(&kms->base); in komeda_kms_mode_config_init()
261 komeda_kms_setup_crtcs(kms, mdev); in komeda_kms_mode_config_init()
275 struct komeda_kms_dev *kms; in komeda_kms_attach() local
279 kms = devm_drm_dev_alloc(mdev->dev, &komeda_kms_driver, in komeda_kms_attach()
281 if (IS_ERR(kms)) in komeda_kms_attach()
282 return kms; in komeda_kms_attach()
284 drm = &kms->base; in komeda_kms_attach()
288 komeda_kms_mode_config_init(kms, mdev); in komeda_kms_attach()
290 err = komeda_kms_add_private_objs(kms, mdev); in komeda_kms_attach()
294 err = komeda_kms_add_planes(kms, mdev); in komeda_kms_attach()
298 err = drm_vblank_init(drm, kms->n_crtcs); in komeda_kms_attach()
302 err = komeda_kms_add_crtcs(kms, mdev); in komeda_kms_attach()
306 err = komeda_kms_add_wb_connectors(kms, mdev); in komeda_kms_attach()
310 err = component_bind_all(mdev->dev, kms); in komeda_kms_attach()
328 return kms; in komeda_kms_attach()
336 komeda_kms_cleanup_private_objs(kms); in komeda_kms_attach()
341 void komeda_kms_detach(struct komeda_kms_dev *kms) in komeda_kms_detach() argument
343 struct drm_device *drm = &kms->base; in komeda_kms_detach()
351 komeda_kms_cleanup_private_objs(kms); in komeda_kms_detach()