Lines Matching defs:crt
74 struct intel_crt *crt = intel_encoder_to_crt(encoder);
77 tmp = I915_READ(crt->adpa_reg);
94 struct intel_crt *crt = intel_encoder_to_crt(encoder);
97 tmp = I915_READ(crt->adpa_reg);
118 struct intel_crt *crt = intel_encoder_to_crt(encoder);
121 temp = I915_READ(crt->adpa_reg);
140 I915_WRITE(crt->adpa_reg, temp);
150 struct intel_crt *crt = intel_encoder_to_crt(encoder);
152 intel_crt_set_dpms(encoder, crt->connector->base.dpms);
252 struct intel_crt *crt =
282 I915_WRITE(crt->adpa_reg, adpa);
288 struct intel_crt *crt = intel_attached_crt(connector);
294 if (crt->force_hotplug_required) {
298 crt->force_hotplug_required = 0;
300 save_adpa = adpa = I915_READ(crt->adpa_reg);
307 I915_WRITE(crt->adpa_reg, adpa);
309 if (wait_for((I915_READ(crt->adpa_reg) & ADPA_CRT_HOTPLUG_FORCE_TRIGGER) == 0,
314 I915_WRITE(crt->adpa_reg, save_adpa);
315 POSTING_READ(crt->adpa_reg);
320 adpa = I915_READ(crt->adpa_reg);
333 struct intel_crt *crt = intel_attached_crt(connector);
339 save_adpa = adpa = I915_READ(crt->adpa_reg);
344 I915_WRITE(crt->adpa_reg, adpa);
346 if (wait_for((I915_READ(crt->adpa_reg) & ADPA_CRT_HOTPLUG_FORCE_TRIGGER) == 0,
349 I915_WRITE(crt->adpa_reg, save_adpa);
353 adpa = I915_READ(crt->adpa_reg);
459 struct intel_crt *crt = intel_attached_crt(connector);
460 struct drm_i915_private *dev_priv = crt->base.base.dev->dev_private;
464 BUG_ON(crt->base.type != INTEL_OUTPUT_ANALOG);
493 intel_crt_load_detect(struct intel_crt *crt)
495 struct drm_device *dev = crt->base.base.dev;
497 uint32_t pipe = to_intel_crtc(crt->base.base.crtc)->pipe;
616 struct intel_crt *crt = intel_attached_crt(connector);
650 status = intel_crt_load_detect(crt);
696 struct intel_crt *crt = intel_attached_crt(connector);
701 adpa = I915_READ(crt->adpa_reg);
704 I915_WRITE(crt->adpa_reg, adpa);
705 POSTING_READ(crt->adpa_reg);
707 DRM_DEBUG_KMS("pch crt adpa set to 0x%x\n", adpa);
708 crt->force_hotplug_required = 1;
742 struct intel_crt *crt;
748 crt = kzalloc(sizeof(struct intel_crt), GFP_KERNEL);
749 if (!crt)
754 kfree(crt, sizeof(struct intel_crt));
759 crt->connector = intel_connector;
763 (void) drm_encoder_init(dev, &crt->base.base, &intel_crt_enc_funcs,
766 intel_connector_attach_encoder(intel_connector, &crt->base);
768 crt->base.type = INTEL_OUTPUT_ANALOG;
769 crt->base.type_size = sizeof(struct intel_crt);
770 crt->base.cloneable = true;
772 crt->base.crtc_mask = (1 << 0);
774 crt->base.crtc_mask = (1 << 0) | (1 << 1) | (1 << 2);
783 crt->adpa_reg = PCH_ADPA;
785 crt->adpa_reg = VLV_ADPA;
787 crt->adpa_reg = ADPA;
789 crt->base.compute_config = intel_crt_compute_config;
790 crt->base.disable = intel_disable_crt;
791 crt->base.enable = intel_enable_crt;
792 crt->base.get_config = intel_crt_get_config;
794 crt->base.hpd_pin = HPD_CRT;
796 crt->base.get_hw_state = intel_ddi_get_hw_state;
798 crt->base.get_hw_state = intel_crt_get_hw_state;
801 drm_encoder_helper_add(&crt->base.base, &crt_encoder_funcs);
812 crt->force_hotplug_required = 0;