Lines Matching refs:connector

51 	/* DPMS state is stored in the connector, which we need in the
53 struct intel_connector *connector;
58 static struct intel_crt *intel_attached_crt(struct drm_connector *connector)
60 return container_of(intel_attached_encoder(connector),
152 intel_crt_set_dpms(encoder, crt->connector->base.dpms);
156 static void intel_crt_dpms(struct drm_connector *connector, int mode)
158 struct drm_device *dev = connector->dev;
159 struct intel_encoder *encoder = intel_attached_encoder(connector);
167 if (mode == connector->dpms)
170 old_dpms = connector->dpms;
171 connector->dpms = mode;
186 /* We call connector dpms manually below in case pipe dpms doesn't
199 intel_modeset_check_state(connector->dev);
202 static int intel_crt_mode_valid(struct drm_connector *connector,
205 struct drm_device *dev = connector->dev;
285 static bool intel_ironlake_crt_detect_hotplug(struct drm_connector *connector)
287 struct drm_device *dev = connector->dev;
288 struct intel_crt *crt = intel_attached_crt(connector);
330 static bool valleyview_crt_detect_hotplug(struct drm_connector *connector)
332 struct drm_device *dev = connector->dev;
333 struct intel_crt *crt = intel_attached_crt(connector);
375 static bool intel_crt_detect_hotplug(struct drm_connector *connector)
377 struct drm_device *dev = connector->dev;
384 return intel_ironlake_crt_detect_hotplug(connector);
387 return valleyview_crt_detect_hotplug(connector);
424 static struct edid *intel_crt_get_edid(struct drm_connector *connector,
429 edid = drm_get_edid(connector, i2c);
434 edid = drm_get_edid(connector, i2c);
442 static int intel_crt_ddc_get_modes(struct drm_connector *connector,
448 edid = intel_crt_get_edid(connector, adapter);
452 ret = intel_connector_update_modes(connector, edid);
457 static bool intel_crt_detect_ddc(struct drm_connector *connector)
459 struct intel_crt *crt = intel_attached_crt(connector);
467 edid = intel_crt_get_edid(connector, i2c);
474 * This may be a DVI-I connector with a shared DDC
613 intel_crt_detect(struct drm_connector *connector, bool force)
615 struct drm_device *dev = connector->dev;
616 struct intel_crt *crt = intel_attached_crt(connector);
625 if (intel_crt_detect_hotplug(connector)) {
632 if (intel_crt_detect_ddc(connector))
643 return connector->status;
646 if (intel_get_load_detect_pipe(connector, NULL, &tmp)) {
647 if (intel_crt_detect_ddc(connector))
651 intel_release_load_detect_pipe(connector, &tmp);
658 static void intel_crt_destroy(struct drm_connector *connector)
660 /* OSOL_i915: drm_sysfs_connector_remove(connector); */
661 drm_connector_cleanup(connector);
662 kfree(connector, sizeof (struct intel_connector));
665 static int intel_crt_get_modes(struct drm_connector *connector)
667 struct drm_device *dev = connector->dev;
673 ret = intel_crt_ddc_get_modes(connector, i2c);
679 return intel_crt_ddc_get_modes(connector, i2c);
683 static int intel_crt_set_property(struct drm_connector *connector,
692 static void intel_crt_reset(struct drm_connector *connector)
694 struct drm_device *dev = connector->dev;
696 struct intel_crt *crt = intel_attached_crt(connector);
741 struct drm_connector *connector;
758 connector = &intel_connector->base;
759 crt->connector = intel_connector;
777 connector->interlace_allowed = 0;
779 connector->interlace_allowed = 1;
780 connector->doublescan_allowed = 0;
802 (void) drm_connector_helper_add(connector, &intel_crt_connector_helper_funcs);
804 /* OSOL_i915: drm_sysfs_connector_add(connector); */