Lines Matching refs:gconn
61 struct gud_connector *gconn = container_of(work, struct gud_connector, backlight_work); in gud_connector_backlight_update_status_work() local
62 struct drm_connector *connector = &gconn->connector; in gud_connector_backlight_update_status_work()
88 connector_state->tv.brightness = gconn->backlight->props.brightness; in gud_connector_backlight_update_status_work()
112 struct gud_connector *gconn = to_gud_connector(connector); in gud_connector_backlight_update_status() local
115 queue_work(system_long_wq, &gconn->backlight_work); in gud_connector_backlight_update_status()
124 static int gud_connector_backlight_register(struct gud_connector *gconn) in gud_connector_backlight_register() argument
126 struct drm_connector *connector = &gconn->connector; in gud_connector_backlight_register()
133 .brightness = gconn->initial_brightness, in gud_connector_backlight_register()
147 gconn->backlight = bd; in gud_connector_backlight_register()
326 struct gud_connector *gconn = to_gud_connector(connector); in gud_connector_late_register() local
328 if (gconn->initial_brightness < 0) in gud_connector_late_register()
331 return gud_connector_backlight_register(gconn); in gud_connector_late_register()
336 struct gud_connector *gconn = to_gud_connector(connector); in gud_connector_early_unregister() local
338 backlight_device_unregister(gconn->backlight); in gud_connector_early_unregister()
339 cancel_work_sync(&gconn->backlight_work); in gud_connector_early_unregister()
344 struct gud_connector *gconn = to_gud_connector(connector); in gud_connector_destroy() local
347 kfree(gconn->properties); in gud_connector_destroy()
348 kfree(gconn); in gud_connector_destroy()
353 struct gud_connector *gconn = to_gud_connector(connector); in gud_connector_reset() local
356 connector->state->tv = gconn->initial_tv_state; in gud_connector_reset()
359 if (gconn->initial_brightness >= 0) in gud_connector_reset()
360 connector->state->tv.brightness = gconn->initial_brightness; in gud_connector_reset()
475 static int gud_connector_add_properties(struct gud_device *gdrm, struct gud_connector *gconn) in gud_connector_add_properties() argument
477 struct drm_connector *connector = &gconn->connector; in gud_connector_add_properties()
499 gconn->properties = kcalloc(num_properties, sizeof(*gconn->properties), GFP_KERNEL); in gud_connector_add_properties()
500 if (!gconn->properties) { in gud_connector_add_properties()
551 gconn->initial_brightness = val; in gud_connector_add_properties()
559 gconn->properties[gconn->num_properties++] = prop; in gud_connector_add_properties()
568 state_val = gud_connector_tv_state_val(prop, &gconn->initial_tv_state); in gud_connector_add_properties()
584 struct gud_connector *gconn = to_gud_connector(connector_state->connector); in gud_connector_fill_properties() local
587 for (i = 0; i < gconn->num_properties; i++) { in gud_connector_fill_properties()
588 u16 prop = gconn->properties[i]; in gud_connector_fill_properties()
607 return gconn->num_properties; in gud_connector_fill_properties()
614 struct gud_connector *gconn; in gud_connector_create() local
620 gconn = kzalloc(sizeof(*gconn), GFP_KERNEL); in gud_connector_create()
621 if (!gconn) in gud_connector_create()
624 INIT_WORK(&gconn->backlight_work, gud_connector_backlight_update_status_work); in gud_connector_create()
625 gconn->initial_brightness = -ENODEV; in gud_connector_create()
627 connector = &gconn->connector; in gud_connector_create()
678 ret = gud_connector_add_properties(gdrm, gconn); in gud_connector_create()
688 encoder = &gconn->encoder; in gud_connector_create()