Lines Matching refs:mdrv
21 struct dcss_drv *mdrv = dev_get_drvdata(dev); in dcss_drv_dev_to_dcss() local
23 return mdrv ? mdrv->dcss : NULL; in dcss_drv_dev_to_dcss()
28 struct dcss_drv *mdrv = dev_get_drvdata(dev); in dcss_drv_dev_to_drm() local
30 return mdrv ? &mdrv->kms->base : NULL; in dcss_drv_dev_to_drm()
37 struct dcss_drv *mdrv; in dcss_drv_platform_probe() local
52 mdrv = kzalloc(sizeof(*mdrv), GFP_KERNEL); in dcss_drv_platform_probe()
53 if (!mdrv) in dcss_drv_platform_probe()
56 mdrv->dcss = dcss_dev_create(dev, hdmi_output); in dcss_drv_platform_probe()
57 if (IS_ERR(mdrv->dcss)) { in dcss_drv_platform_probe()
58 err = PTR_ERR(mdrv->dcss); in dcss_drv_platform_probe()
62 dev_set_drvdata(dev, mdrv); in dcss_drv_platform_probe()
64 mdrv->kms = dcss_kms_attach(mdrv->dcss); in dcss_drv_platform_probe()
65 if (IS_ERR(mdrv->kms)) { in dcss_drv_platform_probe()
66 err = PTR_ERR(mdrv->kms); in dcss_drv_platform_probe()
73 dcss_dev_destroy(mdrv->dcss); in dcss_drv_platform_probe()
78 kfree(mdrv); in dcss_drv_platform_probe()
84 struct dcss_drv *mdrv = dev_get_drvdata(&pdev->dev); in dcss_drv_platform_remove() local
86 if (!mdrv) in dcss_drv_platform_remove()
89 dcss_kms_detach(mdrv->kms); in dcss_drv_platform_remove()
90 dcss_dev_destroy(mdrv->dcss); in dcss_drv_platform_remove()
94 kfree(mdrv); in dcss_drv_platform_remove()