Lines Matching refs:kms
91 struct msm_kms *kms = priv->kms; in msm_irq() local
93 BUG_ON(!kms); in msm_irq()
95 return kms->funcs->irq(kms); in msm_irq()
101 struct msm_kms *kms = priv->kms; in msm_irq_preinstall() local
103 BUG_ON(!kms); in msm_irq_preinstall()
105 kms->funcs->irq_preinstall(kms); in msm_irq_preinstall()
111 struct msm_kms *kms = priv->kms; in msm_irq_postinstall() local
113 BUG_ON(!kms); in msm_irq_postinstall()
115 if (kms->funcs->irq_postinstall) in msm_irq_postinstall()
116 return kms->funcs->irq_postinstall(kms); in msm_irq_postinstall()
124 struct msm_kms *kms = priv->kms; in msm_irq_install() local
136 kms->irq_requested = true; in msm_irq_install()
150 struct msm_kms *kms = priv->kms; in msm_irq_uninstall() local
152 kms->funcs->irq_uninstall(kms); in msm_irq_uninstall()
153 if (kms->irq_requested) in msm_irq_uninstall()
154 free_irq(kms->irq, dev); in msm_irq_uninstall()
169 struct msm_kms *kms = priv->kms; in vblank_ctrl_worker() local
172 kms->funcs->enable_vblank(kms, priv->crtcs[vbl_work->crtc_id]); in vblank_ctrl_worker()
174 kms->funcs->disable_vblank(kms, priv->crtcs[vbl_work->crtc_id]); in vblank_ctrl_worker()
204 struct msm_kms *kms = priv->kms; in msm_drm_uninit() local
256 if (kms && kms->funcs) in msm_drm_uninit()
257 kms->funcs->destroy(kms); in msm_drm_uninit()
408 struct msm_kms *kms; in msm_drm_init() local
461 priv->kms = NULL; in msm_drm_init()
464 kms = priv->kms; in msm_drm_init()
468 kms = NULL; in msm_drm_init()
474 if (kms) { in msm_drm_init()
475 kms->dev = ddev; in msm_drm_init()
476 ret = kms->funcs->hw_init(kms); in msm_drm_init()
510 if (kms) { in msm_drm_init()
512 ret = msm_irq_install(ddev, kms->irq); in msm_drm_init()
524 if (kms) { in msm_drm_init()
532 if (kms && fbdev) in msm_drm_init()
626 struct msm_kms *kms = priv->kms; in msm_crtc_enable_vblank() local
627 if (!kms) in msm_crtc_enable_vblank()
638 struct msm_kms *kms = priv->kms; in msm_crtc_disable_vblank() local
639 if (!kms) in msm_crtc_disable_vblank()
1084 if (!priv || !priv->kms) in msm_pm_prepare()
1095 if (!priv || !priv->kms) in msm_pm_complete()
1274 if (drm && drm->registered && priv->kms) in msm_drv_shutdown()