Lines Matching refs:crt

97 	struct intel_crt *crt = intel_encoder_to_crt(encoder);  in intel_crt_get_hw_state()  local
106 ret = intel_crt_port_enabled(dev_priv, crt->adpa_reg, pipe); in intel_crt_get_hw_state()
116 struct intel_crt *crt = intel_encoder_to_crt(encoder); in intel_crt_get_flags() local
119 tmp = intel_de_read(dev_priv, crt->adpa_reg); in intel_crt_get_flags()
165 struct intel_crt *crt = intel_encoder_to_crt(encoder); in intel_crt_set_dpms() local
206 intel_de_write(dev_priv, crt->adpa_reg, adpa); in intel_crt_set_dpms()
453 struct intel_crt *crt = intel_attached_crt(to_intel_connector(connector)); in ilk_crt_detect_hotplug() local
459 if (crt->force_hotplug_required) { in ilk_crt_detect_hotplug()
463 crt->force_hotplug_required = false; in ilk_crt_detect_hotplug()
465 save_adpa = adpa = intel_de_read(dev_priv, crt->adpa_reg); in ilk_crt_detect_hotplug()
473 intel_de_write(dev_priv, crt->adpa_reg, adpa); in ilk_crt_detect_hotplug()
476 crt->adpa_reg, in ilk_crt_detect_hotplug()
483 intel_de_write(dev_priv, crt->adpa_reg, save_adpa); in ilk_crt_detect_hotplug()
484 intel_de_posting_read(dev_priv, crt->adpa_reg); in ilk_crt_detect_hotplug()
489 adpa = intel_de_read(dev_priv, crt->adpa_reg); in ilk_crt_detect_hotplug()
503 struct intel_crt *crt = intel_attached_crt(to_intel_connector(connector)); in valleyview_crt_detect_hotplug() local
522 reenable_hpd = intel_hpd_disable(dev_priv, crt->base.hpd_pin); in valleyview_crt_detect_hotplug()
524 save_adpa = adpa = intel_de_read(dev_priv, crt->adpa_reg); in valleyview_crt_detect_hotplug()
530 intel_de_write(dev_priv, crt->adpa_reg, adpa); in valleyview_crt_detect_hotplug()
532 if (intel_de_wait_for_clear(dev_priv, crt->adpa_reg, in valleyview_crt_detect_hotplug()
536 intel_de_write(dev_priv, crt->adpa_reg, save_adpa); in valleyview_crt_detect_hotplug()
540 adpa = intel_de_read(dev_priv, crt->adpa_reg); in valleyview_crt_detect_hotplug()
550 intel_hpd_enable(dev_priv, crt->base.hpd_pin); in valleyview_crt_detect_hotplug()
640 struct intel_crt *crt = intel_attached_crt(to_intel_connector(connector)); in intel_crt_detect_ddc() local
641 struct drm_i915_private *dev_priv = to_i915(crt->base.base.dev); in intel_crt_detect_ddc()
646 BUG_ON(crt->base.type != INTEL_OUTPUT_ANALOG); in intel_crt_detect_ddc()
678 intel_crt_load_detect(struct intel_crt *crt, u32 pipe) in intel_crt_load_detect() argument
680 struct drm_device *dev = crt->base.base.dev; in intel_crt_load_detect()
829 struct intel_crt *crt = intel_attached_crt(to_intel_connector(connector)); in intel_crt_detect() local
830 struct intel_encoder *intel_encoder = &crt->base; in intel_crt_detect()
896 status = intel_crt_load_detect(crt, in intel_crt_detect()
925 struct intel_crt *crt = intel_attached_crt(to_intel_connector(connector)); in intel_crt_get_modes() local
926 struct intel_encoder *intel_encoder = &crt->base; in intel_crt_get_modes()
952 struct intel_crt *crt = intel_encoder_to_crt(to_intel_encoder(encoder)); in intel_crt_reset() local
957 adpa = intel_de_read(dev_priv, crt->adpa_reg); in intel_crt_reset()
960 intel_de_write(dev_priv, crt->adpa_reg, adpa); in intel_crt_reset()
961 intel_de_posting_read(dev_priv, crt->adpa_reg); in intel_crt_reset()
964 crt->force_hotplug_required = true; in intel_crt_reset()
996 struct intel_crt *crt; in intel_crt_init() local
1025 crt = kzalloc(sizeof(struct intel_crt), GFP_KERNEL); in intel_crt_init()
1026 if (!crt) in intel_crt_init()
1031 kfree(crt); in intel_crt_init()
1036 crt->connector = intel_connector; in intel_crt_init()
1040 drm_encoder_init(&dev_priv->drm, &crt->base.base, &intel_crt_enc_funcs, in intel_crt_init()
1043 intel_connector_attach_encoder(intel_connector, &crt->base); in intel_crt_init()
1045 crt->base.type = INTEL_OUTPUT_ANALOG; in intel_crt_init()
1046 crt->base.cloneable = (1 << INTEL_OUTPUT_DVO) | (1 << INTEL_OUTPUT_HDMI); in intel_crt_init()
1048 crt->base.pipe_mask = BIT(PIPE_A); in intel_crt_init()
1050 crt->base.pipe_mask = ~0; in intel_crt_init()
1058 crt->adpa_reg = adpa_reg; in intel_crt_init()
1060 crt->base.power_domain = POWER_DOMAIN_PORT_CRT; in intel_crt_init()
1064 crt->base.hpd_pin = HPD_CRT; in intel_crt_init()
1065 crt->base.hotplug = intel_encoder_hotplug; in intel_crt_init()
1072 crt->base.port = PORT_E; in intel_crt_init()
1073 crt->base.get_config = hsw_crt_get_config; in intel_crt_init()
1074 crt->base.get_hw_state = intel_ddi_get_hw_state; in intel_crt_init()
1075 crt->base.compute_config = hsw_crt_compute_config; in intel_crt_init()
1076 crt->base.pre_pll_enable = hsw_pre_pll_enable_crt; in intel_crt_init()
1077 crt->base.pre_enable = hsw_pre_enable_crt; in intel_crt_init()
1078 crt->base.enable = hsw_enable_crt; in intel_crt_init()
1079 crt->base.disable = hsw_disable_crt; in intel_crt_init()
1080 crt->base.post_disable = hsw_post_disable_crt; in intel_crt_init()
1081 crt->base.enable_clock = hsw_ddi_enable_clock; in intel_crt_init()
1082 crt->base.disable_clock = hsw_ddi_disable_clock; in intel_crt_init()
1083 crt->base.is_clock_enabled = hsw_ddi_is_clock_enabled; in intel_crt_init()
1085 intel_ddi_buf_trans_init(&crt->base); in intel_crt_init()
1088 crt->base.compute_config = pch_crt_compute_config; in intel_crt_init()
1089 crt->base.disable = pch_disable_crt; in intel_crt_init()
1090 crt->base.post_disable = pch_post_disable_crt; in intel_crt_init()
1092 crt->base.compute_config = intel_crt_compute_config; in intel_crt_init()
1093 crt->base.disable = intel_disable_crt; in intel_crt_init()
1095 crt->base.port = PORT_NONE; in intel_crt_init()
1096 crt->base.get_config = intel_crt_get_config; in intel_crt_init()
1097 crt->base.get_hw_state = intel_crt_get_hw_state; in intel_crt_init()
1098 crt->base.enable = intel_enable_crt; in intel_crt_init()
1117 intel_crt_reset(&crt->base.base); in intel_crt_init()