Lines Matching refs:connector
239 static void cdv_intel_lvds_save(struct drm_connector *connector) in cdv_intel_lvds_save() argument
243 static void cdv_intel_lvds_restore(struct drm_connector *connector) in cdv_intel_lvds_restore() argument
247 static int cdv_intel_lvds_mode_valid(struct drm_connector *connector, in cdv_intel_lvds_mode_valid() argument
250 struct drm_device *dev = connector->dev; in cdv_intel_lvds_mode_valid()
397 struct drm_connector *connector, bool force) in cdv_intel_lvds_detect() argument
405 static int cdv_intel_lvds_get_modes(struct drm_connector *connector) in cdv_intel_lvds_get_modes() argument
407 struct drm_device *dev = connector->dev; in cdv_intel_lvds_get_modes()
409 struct gma_encoder *gma_encoder = gma_attached_encoder(connector); in cdv_intel_lvds_get_modes()
413 ret = psb_intel_ddc_get_modes(connector, &gma_encoder->i2c_bus->adapter); in cdv_intel_lvds_get_modes()
422 connector->display_info.min_vfreq = 0; in cdv_intel_lvds_get_modes()
423 connector->display_info.max_vfreq = 200; in cdv_intel_lvds_get_modes()
424 connector->display_info.min_hfreq = 0; in cdv_intel_lvds_get_modes()
425 connector->display_info.max_hfreq = 200; in cdv_intel_lvds_get_modes()
429 drm_mode_probed_add(connector, mode); in cdv_intel_lvds_get_modes()
443 static void cdv_intel_lvds_destroy(struct drm_connector *connector) in cdv_intel_lvds_destroy() argument
445 struct gma_encoder *gma_encoder = gma_attached_encoder(connector); in cdv_intel_lvds_destroy()
449 drm_connector_unregister(connector); in cdv_intel_lvds_destroy()
450 drm_connector_cleanup(connector); in cdv_intel_lvds_destroy()
451 kfree(connector); in cdv_intel_lvds_destroy()
454 static int cdv_intel_lvds_set_property(struct drm_connector *connector, in cdv_intel_lvds_set_property() argument
458 struct drm_encoder *encoder = connector->encoder; in cdv_intel_lvds_set_property()
478 if (drm_object_property_get_value(&connector->base, in cdv_intel_lvds_set_property()
486 if (drm_object_property_set_value(&connector->base, in cdv_intel_lvds_set_property()
501 if (drm_object_property_set_value(&connector->base, in cdv_intel_lvds_set_property()
614 struct drm_connector *connector; in cdv_intel_lvds_init() local
645 connector = &gma_connector->base; in cdv_intel_lvds_init()
649 drm_connector_init(dev, connector, in cdv_intel_lvds_init()
662 drm_connector_helper_add(connector, in cdv_intel_lvds_init()
664 connector->display_info.subpixel_order = SubPixelHorizontalRGB; in cdv_intel_lvds_init()
665 connector->interlace_allowed = false; in cdv_intel_lvds_init()
666 connector->doublescan_allowed = false; in cdv_intel_lvds_init()
669 drm_object_attach_property(&connector->base, in cdv_intel_lvds_init()
672 drm_object_attach_property(&connector->base, in cdv_intel_lvds_init()
716 psb_intel_ddc_get_modes(connector, in cdv_intel_lvds_init()
718 list_for_each_entry(scan, &connector->probed_modes, head) { in cdv_intel_lvds_init()
777 drm_connector_register(connector); in cdv_intel_lvds_init()
792 drm_connector_cleanup(connector); in cdv_intel_lvds_init()