Lines Matching refs:encoder
144 /* DDC bus used by this SDVO encoder */
207 static struct intel_sdvo *to_intel_sdvo(struct drm_encoder *encoder)
209 return container_of(encoder, struct intel_sdvo, base.base);
902 intel_sdvo_get_value(encoder, SDVO_CMD_GET_HBUF_AV_SPLIT, &av_split, 1);
906 intel_sdvo_write_cmd(encoder, SDVO_CMD_SET_HBUF_INDEX,
908 intel_sdvo_write_cmd(encoder, SDVO_CMD_GET_HBUF_INFO, NULL, 0);
909 intel_sdvo_read_response(encoder, &buf_size, 1);
913 intel_sdvo_write_cmd(encoder, SDVO_CMD_GET_HBUF_DATA,
915 intel_sdvo_read_response(encoder, pos, 8);
1080 static bool intel_sdvo_compute_config(struct intel_encoder *encoder,
1083 struct intel_sdvo *intel_sdvo = to_intel_sdvo(&encoder->base);
1090 if (HAS_PCH_SPLIT(encoder->base.dev))
1288 static bool intel_sdvo_get_hw_state(struct intel_encoder *encoder,
1291 struct drm_device *dev = encoder->base.dev;
1293 struct intel_sdvo *intel_sdvo = to_intel_sdvo(&encoder->base);
1311 static void intel_sdvo_get_config(struct intel_encoder *encoder,
1314 struct drm_device *dev = encoder->base.dev;
1316 struct intel_sdvo *intel_sdvo = to_intel_sdvo(&encoder->base);
1347 * encoder->get_config we so already have a valid pixel multplier on all
1357 /* Cross check the port pixel multiplier with the sdvo encoder state. */
1375 DRM_ERROR("SDVO pixel multiplier mismatch, port: %i, encoder: %i\n",
1379 static void intel_disable_sdvo(struct intel_encoder *encoder)
1381 struct drm_i915_private *dev_priv = encoder->base.dev->dev_private;
1382 struct intel_sdvo *intel_sdvo = to_intel_sdvo(&encoder->base);
1394 if (HAS_PCH_IBX(encoder->base.dev)) {
1395 struct drm_crtc *crtc = encoder->base.crtc;
1410 intel_wait_for_vblank(encoder->base.dev, pipe);
1420 static void intel_enable_sdvo(struct intel_encoder *encoder)
1422 struct drm_device *dev = encoder->base.dev;
1424 struct intel_sdvo *intel_sdvo = to_intel_sdvo(&encoder->base);
1425 struct intel_crtc *intel_crtc = to_intel_crtc(encoder->base.crtc);
1581 static void intel_sdvo_enable_hotplug(struct intel_encoder *encoder)
1583 struct intel_sdvo *intel_sdvo = to_intel_sdvo(&encoder->base);
1737 /* May update encoder flag for like clock for SDVO TV, etc.*/
2184 static void intel_sdvo_enc_destroy(struct drm_encoder *encoder)
2186 struct intel_sdvo *intel_sdvo = to_intel_sdvo(encoder);
2189 drm_mode_destroy(encoder->dev,
2193 intel_encoder_destroy(encoder);
2337 struct intel_sdvo *encoder)
2339 (void) drm_connector_init(encoder->base.base.dev,
2352 intel_connector_attach_encoder(&connector->base, &encoder->base);
2371 struct drm_encoder *encoder = &intel_sdvo->base.base;
2373 struct intel_encoder *intel_encoder = to_intel_encoder(encoder);
2402 encoder->encoder_type = DRM_MODE_ENCODER_TMDS;
2420 struct drm_encoder *encoder = &intel_sdvo->base.base;
2431 encoder->encoder_type = DRM_MODE_ENCODER_TVDAC;
2457 struct drm_encoder *encoder = &intel_sdvo->base.base;
2469 encoder->encoder_type = DRM_MODE_ENCODER_DAC;
2488 struct drm_encoder *encoder = &intel_sdvo->base.base;
2499 encoder->encoder_type = DRM_MODE_ENCODER_LVDS;
2867 /* encoder type will be decided later */
2913 * encoder can request a special input timing mode. And even if that's