Lines Matching refs:connector

51 	struct intel_connector *connector;  member
61 static struct intel_crt *intel_attached_crt(struct drm_connector *connector) in intel_attached_crt() argument
63 return intel_encoder_to_crt(intel_attached_encoder(connector)); in intel_attached_crt()
228 intel_crt_set_dpms(encoder, crt->connector->base.dpms); in intel_enable_crt()
232 static void intel_crt_dpms(struct drm_connector *connector, int mode) in intel_crt_dpms() argument
234 struct drm_device *dev = connector->dev; in intel_crt_dpms()
235 struct intel_encoder *encoder = intel_attached_encoder(connector); in intel_crt_dpms()
243 if (mode == connector->dpms) in intel_crt_dpms()
246 old_dpms = connector->dpms; in intel_crt_dpms()
247 connector->dpms = mode; in intel_crt_dpms()
275 intel_modeset_check_state(connector->dev); in intel_crt_dpms()
279 intel_crt_mode_valid(struct drm_connector *connector, in intel_crt_mode_valid() argument
282 struct drm_device *dev = connector->dev; in intel_crt_mode_valid()
333 static bool intel_ironlake_crt_detect_hotplug(struct drm_connector *connector) in intel_ironlake_crt_detect_hotplug() argument
335 struct drm_device *dev = connector->dev; in intel_ironlake_crt_detect_hotplug()
336 struct intel_crt *crt = intel_attached_crt(connector); in intel_ironlake_crt_detect_hotplug()
378 static bool valleyview_crt_detect_hotplug(struct drm_connector *connector) in valleyview_crt_detect_hotplug() argument
380 struct drm_device *dev = connector->dev; in valleyview_crt_detect_hotplug()
381 struct intel_crt *crt = intel_attached_crt(connector); in valleyview_crt_detect_hotplug()
420 static bool intel_crt_detect_hotplug(struct drm_connector *connector) in intel_crt_detect_hotplug() argument
422 struct drm_device *dev = connector->dev; in intel_crt_detect_hotplug()
429 return intel_ironlake_crt_detect_hotplug(connector); in intel_crt_detect_hotplug()
432 return valleyview_crt_detect_hotplug(connector); in intel_crt_detect_hotplug()
469 static struct edid *intel_crt_get_edid(struct drm_connector *connector, in intel_crt_get_edid() argument
474 edid = drm_get_edid(connector, i2c); in intel_crt_get_edid()
479 edid = drm_get_edid(connector, i2c); in intel_crt_get_edid()
487 static int intel_crt_ddc_get_modes(struct drm_connector *connector, in intel_crt_ddc_get_modes() argument
493 edid = intel_crt_get_edid(connector, adapter); in intel_crt_ddc_get_modes()
497 ret = intel_connector_update_modes(connector, edid); in intel_crt_ddc_get_modes()
503 static bool intel_crt_detect_ddc(struct drm_connector *connector) in intel_crt_detect_ddc() argument
505 struct intel_crt *crt = intel_attached_crt(connector); in intel_crt_detect_ddc()
513 edid = intel_crt_get_edid(connector, i2c); in intel_crt_detect_ddc()
659 intel_crt_detect(struct drm_connector *connector, bool force) in intel_crt_detect() argument
661 struct drm_device *dev = connector->dev; in intel_crt_detect()
663 struct intel_crt *crt = intel_attached_crt(connector); in intel_crt_detect()
671 connector->base.id, connector->name, in intel_crt_detect()
682 if (intel_crt_detect_hotplug(connector)) { in intel_crt_detect()
690 if (intel_crt_detect_ddc(connector)) { in intel_crt_detect()
705 status = connector->status; in intel_crt_detect()
712 if (intel_get_load_detect_pipe(connector, NULL, &tmp, &ctx)) { in intel_crt_detect()
713 if (intel_crt_detect_ddc(connector)) in intel_crt_detect()
719 intel_release_load_detect_pipe(connector, &tmp, &ctx); in intel_crt_detect()
731 static void intel_crt_destroy(struct drm_connector *connector) in intel_crt_destroy() argument
733 drm_connector_cleanup(connector); in intel_crt_destroy()
734 kfree(connector); in intel_crt_destroy()
737 static int intel_crt_get_modes(struct drm_connector *connector) in intel_crt_get_modes() argument
739 struct drm_device *dev = connector->dev; in intel_crt_get_modes()
741 struct intel_crt *crt = intel_attached_crt(connector); in intel_crt_get_modes()
751 ret = intel_crt_ddc_get_modes(connector, i2c); in intel_crt_get_modes()
757 ret = intel_crt_ddc_get_modes(connector, i2c); in intel_crt_get_modes()
765 static int intel_crt_set_property(struct drm_connector *connector, in intel_crt_set_property() argument
772 static void intel_crt_reset(struct drm_connector *connector) in intel_crt_reset() argument
774 struct drm_device *dev = connector->dev; in intel_crt_reset()
776 struct intel_crt *crt = intel_attached_crt(connector); in intel_crt_reset()
847 struct drm_connector *connector; in intel_crt_init() local
866 connector = &intel_connector->base; in intel_crt_init()
867 crt->connector = intel_connector; in intel_crt_init()
884 connector->interlace_allowed = 0; in intel_crt_init()
886 connector->interlace_allowed = 1; in intel_crt_init()
887 connector->doublescan_allowed = 0; in intel_crt_init()
913 drm_connector_helper_add(connector, &intel_crt_connector_helper_funcs); in intel_crt_init()
915 drm_connector_register(connector); in intel_crt_init()
937 intel_crt_reset(connector); in intel_crt_init()