Lines Matching refs:kms
42 struct komeda_kms_dev *kms = to_kdev(drm); in komeda_kms_irq_handler() local
52 for (i = 0; i < kms->n_crtcs; i++) in komeda_kms_irq_handler()
53 komeda_crtc_handle_event(&kms->crtcs[i], &evts); in komeda_kms_irq_handler()
239 static void komeda_kms_mode_config_init(struct komeda_kms_dev *kms, in komeda_kms_mode_config_init() argument
242 struct drm_mode_config *config = &kms->base.mode_config; in komeda_kms_mode_config_init()
244 drm_mode_config_init(&kms->base); in komeda_kms_mode_config_init()
246 komeda_kms_setup_crtcs(kms, mdev); in komeda_kms_mode_config_init()
261 struct komeda_kms_dev *kms = kzalloc(sizeof(*kms), GFP_KERNEL); in komeda_kms_attach() local
265 if (!kms) in komeda_kms_attach()
268 drm = &kms->base; in komeda_kms_attach()
275 komeda_kms_mode_config_init(kms, mdev); in komeda_kms_attach()
277 err = komeda_kms_add_private_objs(kms, mdev); in komeda_kms_attach()
281 err = komeda_kms_add_planes(kms, mdev); in komeda_kms_attach()
285 err = drm_vblank_init(drm, kms->n_crtcs); in komeda_kms_attach()
289 err = komeda_kms_add_crtcs(kms, mdev); in komeda_kms_attach()
293 err = komeda_kms_add_wb_connectors(kms, mdev); in komeda_kms_attach()
297 err = component_bind_all(mdev->dev, kms); in komeda_kms_attach()
321 return kms; in komeda_kms_attach()
331 komeda_kms_cleanup_private_objs(kms); in komeda_kms_attach()
335 kfree(kms); in komeda_kms_attach()
339 void komeda_kms_detach(struct komeda_kms_dev *kms) in komeda_kms_detach() argument
341 struct drm_device *drm = &kms->base; in komeda_kms_detach()
351 komeda_kms_cleanup_private_objs(kms); in komeda_kms_detach()