Lines Matching refs:connector
106 static void cdv_hdmi_save(struct drm_connector *connector) in cdv_hdmi_save() argument
108 struct drm_device *dev = connector->dev; in cdv_hdmi_save()
109 struct gma_encoder *gma_encoder = gma_attached_encoder(connector); in cdv_hdmi_save()
115 static void cdv_hdmi_restore(struct drm_connector *connector) in cdv_hdmi_restore() argument
117 struct drm_device *dev = connector->dev; in cdv_hdmi_restore()
118 struct gma_encoder *gma_encoder = gma_attached_encoder(connector); in cdv_hdmi_restore()
126 struct drm_connector *connector, bool force) in cdv_hdmi_detect() argument
128 struct gma_encoder *gma_encoder = gma_attached_encoder(connector); in cdv_hdmi_detect()
133 edid = drm_get_edid(connector, &gma_encoder->i2c_bus->adapter); in cdv_hdmi_detect()
150 static int cdv_hdmi_set_property(struct drm_connector *connector, in cdv_hdmi_set_property() argument
154 struct drm_encoder *encoder = connector->encoder; in cdv_hdmi_set_property()
175 if (drm_object_property_get_value(&connector->base, in cdv_hdmi_set_property()
182 if (drm_object_property_set_value(&connector->base, in cdv_hdmi_set_property()
209 static int cdv_hdmi_get_modes(struct drm_connector *connector) in cdv_hdmi_get_modes() argument
211 struct gma_encoder *gma_encoder = gma_attached_encoder(connector); in cdv_hdmi_get_modes()
215 edid = drm_get_edid(connector, &gma_encoder->i2c_bus->adapter); in cdv_hdmi_get_modes()
217 drm_connector_update_edid_property(connector, edid); in cdv_hdmi_get_modes()
218 ret = drm_add_edid_modes(connector, edid); in cdv_hdmi_get_modes()
224 static enum drm_mode_status cdv_hdmi_mode_valid(struct drm_connector *connector, in cdv_hdmi_mode_valid() argument
243 static void cdv_hdmi_destroy(struct drm_connector *connector) in cdv_hdmi_destroy() argument
245 struct gma_encoder *gma_encoder = gma_attached_encoder(connector); in cdv_hdmi_destroy()
248 drm_connector_unregister(connector); in cdv_hdmi_destroy()
249 drm_connector_cleanup(connector); in cdv_hdmi_destroy()
250 kfree(connector); in cdv_hdmi_destroy()
280 struct drm_connector *connector; in cdv_hdmi_init() local
301 connector = &gma_connector->base; in cdv_hdmi_init()
302 connector->polled = DRM_CONNECTOR_POLL_HPD; in cdv_hdmi_init()
307 drm_connector_init(dev, connector, in cdv_hdmi_init()
320 drm_connector_helper_add(connector, in cdv_hdmi_init()
322 connector->display_info.subpixel_order = SubPixelHorizontalRGB; in cdv_hdmi_init()
323 connector->interlace_allowed = false; in cdv_hdmi_init()
324 connector->doublescan_allowed = false; in cdv_hdmi_init()
326 drm_object_attach_property(&connector->base, in cdv_hdmi_init()
355 drm_connector_register(connector); in cdv_hdmi_init()
360 drm_connector_cleanup(connector); in cdv_hdmi_init()