Lines Matching refs:connector
65 static struct intel_lvds_connector *to_lvds_connector(struct drm_connector *connector) in to_lvds_connector() argument
67 return container_of(connector, struct intel_lvds_connector, base.base); in to_lvds_connector()
266 intel_lvds_mode_valid(struct drm_connector *connector, in intel_lvds_mode_valid() argument
269 struct intel_connector *intel_connector = to_intel_connector(connector); in intel_lvds_mode_valid()
346 intel_lvds_detect(struct drm_connector *connector, bool force) in intel_lvds_detect() argument
348 struct drm_device *dev = connector->dev; in intel_lvds_detect()
352 connector->base.id, connector->name); in intel_lvds_detect()
364 static int intel_lvds_get_modes(struct drm_connector *connector) in intel_lvds_get_modes() argument
366 struct intel_lvds_connector *lvds_connector = to_lvds_connector(connector); in intel_lvds_get_modes()
367 struct drm_device *dev = connector->dev; in intel_lvds_get_modes()
372 return drm_add_edid_modes(connector, lvds_connector->base.edid); in intel_lvds_get_modes()
378 drm_mode_probed_add(connector, mode); in intel_lvds_get_modes()
417 struct drm_connector *connector = &lvds_connector->base.base; in intel_lid_notify() local
418 struct drm_device *dev = connector->dev; in intel_lid_notify()
431 connector->status = connector->funcs->detect(connector, false); in intel_lid_notify()
473 static void intel_lvds_destroy(struct drm_connector *connector) in intel_lvds_destroy() argument
476 to_lvds_connector(connector); in intel_lvds_destroy()
486 drm_connector_cleanup(connector); in intel_lvds_destroy()
487 kfree(connector); in intel_lvds_destroy()
490 static int intel_lvds_set_property(struct drm_connector *connector, in intel_lvds_set_property() argument
494 struct intel_connector *intel_connector = to_intel_connector(connector); in intel_lvds_set_property()
495 struct drm_device *dev = connector->dev; in intel_lvds_set_property()
511 crtc = intel_attached_encoder(connector)->base.crtc; in intel_lvds_set_property()
916 struct drm_connector *connector; in intel_lvds_init() local
981 connector = &intel_connector->base; in intel_lvds_init()
1008 drm_connector_helper_add(connector, &intel_lvds_connector_helper_funcs); in intel_lvds_init()
1009 connector->display_info.subpixel_order = SubPixelHorizontalRGB; in intel_lvds_init()
1010 connector->interlace_allowed = false; in intel_lvds_init()
1011 connector->doublescan_allowed = false; in intel_lvds_init()
1021 drm_object_attach_property(&connector->base, in intel_lvds_init()
1040 edid = drm_get_edid(connector, intel_gmbus_get_adapter(dev_priv, pin)); in intel_lvds_init()
1042 if (drm_add_edid_modes(connector, edid)) { in intel_lvds_init()
1043 drm_mode_connector_update_edid_property(connector, in intel_lvds_init()
1059 connector->display_info.min_vfreq = 0; in intel_lvds_init()
1060 connector->display_info.max_vfreq = 200; in intel_lvds_init()
1061 connector->display_info.min_hfreq = 0; in intel_lvds_init()
1062 connector->display_info.max_hfreq = 200; in intel_lvds_init()
1065 list_for_each_entry(scan, &connector->probed_modes, head) { in intel_lvds_init()
1074 fixed_mode, connector); in intel_lvds_init()
1149 drm_connector_register(connector); in intel_lvds_init()
1151 intel_panel_setup_backlight(connector, INVALID_PIPE); in intel_lvds_init()
1159 drm_connector_cleanup(connector); in intel_lvds_init()