Lines Matching refs:scon
18 struct shmob_drm_connector *scon = bl_get_data(bdev); in shmob_drm_backlight_update() local
19 struct shmob_drm_device *sdev = scon->connector.dev->dev_private; in shmob_drm_backlight_update()
32 struct shmob_drm_connector *scon = bl_get_data(bdev); in shmob_drm_backlight_get_brightness() local
33 struct shmob_drm_device *sdev = scon->connector.dev->dev_private; in shmob_drm_backlight_get_brightness()
45 void shmob_drm_backlight_dpms(struct shmob_drm_connector *scon, int mode) in shmob_drm_backlight_dpms() argument
47 if (scon->backlight == NULL) in shmob_drm_backlight_dpms()
50 scon->backlight->props.power = mode == DRM_MODE_DPMS_ON in shmob_drm_backlight_dpms()
52 backlight_update_status(scon->backlight); in shmob_drm_backlight_dpms()
55 int shmob_drm_backlight_init(struct shmob_drm_connector *scon) in shmob_drm_backlight_init() argument
57 struct shmob_drm_device *sdev = scon->connector.dev->dev_private; in shmob_drm_backlight_init()
59 struct drm_connector *connector = &scon->connector; in shmob_drm_backlight_init()
66 backlight = backlight_device_register(bdata->name, dev->dev, scon, in shmob_drm_backlight_init()
79 scon->backlight = backlight; in shmob_drm_backlight_init()
83 void shmob_drm_backlight_exit(struct shmob_drm_connector *scon) in shmob_drm_backlight_exit() argument
85 backlight_device_unregister(scon->backlight); in shmob_drm_backlight_exit()