Lines Matching refs:lvds_encoder
75 struct intel_lvds_encoder *lvds_encoder = to_lvds_encoder(&encoder->base); in intel_lvds_get_hw_state() local
78 tmp = I915_READ(lvds_encoder->reg); in intel_lvds_get_hw_state()
97 struct intel_lvds_encoder *lvds_encoder = to_lvds_encoder(&encoder->base); in intel_pre_pll_enable_lvds() local
102 lvds_encoder->attached_connector->base.panel.fixed_mode; in intel_pre_pll_enable_lvds()
106 temp = I915_READ(lvds_encoder->reg); in intel_pre_pll_enable_lvds()
125 if (lvds_encoder->is_dual_link) in intel_pre_pll_enable_lvds()
150 I915_WRITE(lvds_encoder->reg, temp); in intel_pre_pll_enable_lvds()
182 struct intel_lvds_encoder *lvds_encoder = to_lvds_encoder(&encoder->base); in intel_enable_lvds() local
195 I915_WRITE(lvds_encoder->reg, I915_READ(lvds_encoder->reg) | LVDS_PORT_EN); in intel_enable_lvds()
198 POSTING_READ(lvds_encoder->reg); in intel_enable_lvds()
208 struct intel_lvds_encoder *lvds_encoder = to_lvds_encoder(&encoder->base); in intel_disable_lvds() local
226 I915_WRITE(lvds_encoder->reg, I915_READ(lvds_encoder->reg) & ~LVDS_PORT_EN); in intel_disable_lvds()
227 POSTING_READ(lvds_encoder->reg); in intel_disable_lvds()
305 struct intel_lvds_encoder *lvds_encoder = in intel_lvds_compute_config() local
308 &lvds_encoder->attached_connector->base; in intel_lvds_compute_config()
311 struct intel_crtc *intel_crtc = lvds_encoder->base.new_crtc; in intel_lvds_compute_config()
322 if (intel_encoder_check_is_cloned(&lvds_encoder->base)) in intel_lvds_compute_config()
325 if ((I915_READ(lvds_encoder->reg) & LVDS_A3_POWER_MASK) == in intel_lvds_compute_config()
474 if (pfit_control != lvds_encoder->pfit_control || in intel_lvds_compute_config()
475 pfit_pgm_ratios != lvds_encoder->pfit_pgm_ratios) { in intel_lvds_compute_config()
476 lvds_encoder->pfit_control = pfit_control; in intel_lvds_compute_config()
477 lvds_encoder->pfit_pgm_ratios = pfit_pgm_ratios; in intel_lvds_compute_config()
998 struct intel_lvds_encoder *lvds_encoder; in intel_is_dual_link_lvds() local
1003 lvds_encoder = to_lvds_encoder(&encoder->base); in intel_is_dual_link_lvds()
1005 return lvds_encoder->is_dual_link; in intel_is_dual_link_lvds()
1012 static bool compute_is_dual_link_lvds(struct intel_lvds_encoder *lvds_encoder) in compute_is_dual_link_lvds() argument
1014 struct drm_device *dev = lvds_encoder->base.base.dev; in compute_is_dual_link_lvds()
1030 val = I915_READ(lvds_encoder->reg); in compute_is_dual_link_lvds()
1062 struct intel_lvds_encoder *lvds_encoder; in intel_lvds_init() local
1098 lvds_encoder = kzalloc(sizeof(struct intel_lvds_encoder), GFP_KERNEL); in intel_lvds_init()
1099 if (!lvds_encoder) in intel_lvds_init()
1104 kfree(lvds_encoder); in intel_lvds_init()
1108 lvds_encoder->attached_connector = lvds_connector; in intel_lvds_init()
1111 lvds_encoder->pfit_control = I915_READ(PFIT_CONTROL); in intel_lvds_init()
1114 intel_encoder = &lvds_encoder->base; in intel_lvds_init()
1150 lvds_encoder->reg = PCH_LVDS; in intel_lvds_init()
1152 lvds_encoder->reg = LVDS; in intel_lvds_init()
1255 lvds_encoder->is_dual_link = compute_is_dual_link_lvds(lvds_encoder); in intel_lvds_init()
1257 lvds_encoder->is_dual_link ? "dual" : "single"); in intel_lvds_init()
1288 kfree(lvds_encoder); in intel_lvds_init()