Lines Matching refs:connector
107 static void cdv_hdmi_save(struct drm_connector *connector) in cdv_hdmi_save() argument
109 struct drm_device *dev = connector->dev; in cdv_hdmi_save()
110 struct gma_encoder *gma_encoder = gma_attached_encoder(connector); in cdv_hdmi_save()
116 static void cdv_hdmi_restore(struct drm_connector *connector) in cdv_hdmi_restore() argument
118 struct drm_device *dev = connector->dev; in cdv_hdmi_restore()
119 struct gma_encoder *gma_encoder = gma_attached_encoder(connector); in cdv_hdmi_restore()
127 struct drm_connector *connector, bool force) in cdv_hdmi_detect() argument
129 struct gma_encoder *gma_encoder = gma_attached_encoder(connector); in cdv_hdmi_detect()
134 edid = drm_get_edid(connector, connector->ddc); in cdv_hdmi_detect()
151 static int cdv_hdmi_set_property(struct drm_connector *connector, in cdv_hdmi_set_property() argument
155 struct drm_encoder *encoder = connector->encoder; in cdv_hdmi_set_property()
176 if (drm_object_property_get_value(&connector->base, in cdv_hdmi_set_property()
183 if (drm_object_property_set_value(&connector->base, in cdv_hdmi_set_property()
210 static int cdv_hdmi_get_modes(struct drm_connector *connector) in cdv_hdmi_get_modes() argument
215 edid = drm_get_edid(connector, connector->ddc); 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_connector *gma_connector = to_gma_connector(connector); in cdv_hdmi_destroy()
246 struct gma_i2c_chan *ddc_bus = to_gma_i2c_chan(connector->ddc); in cdv_hdmi_destroy()
249 drm_connector_cleanup(connector); in cdv_hdmi_destroy()
280 struct drm_connector *connector; in cdv_hdmi_init() local
298 connector = &gma_connector->base; in cdv_hdmi_init()
299 connector->polled = DRM_CONNECTOR_POLL_HPD; in cdv_hdmi_init()
324 ret = drm_connector_init_with_ddc(dev, connector, in cdv_hdmi_init()
343 drm_connector_helper_add(connector, in cdv_hdmi_init()
345 connector->display_info.subpixel_order = SubPixelHorizontalRGB; in cdv_hdmi_init()
346 connector->interlace_allowed = false; in cdv_hdmi_init()
347 connector->doublescan_allowed = false; in cdv_hdmi_init()
349 drm_object_attach_property(&connector->base, in cdv_hdmi_init()
357 drm_connector_cleanup(connector); in cdv_hdmi_init()