Lines Matching refs:lvds_encoder

106 	struct intel_lvds_encoder *lvds_encoder = to_lvds_encoder(&encoder->base);  in intel_lvds_get_hw_state()  local
113 ret = intel_lvds_port_enabled(dev_priv, lvds_encoder->reg, pipe); in intel_lvds_get_hw_state()
124 struct intel_lvds_encoder *lvds_encoder = to_lvds_encoder(&encoder->base); in intel_lvds_get_config() local
129 tmp = I915_READ(lvds_encoder->reg); in intel_lvds_get_config()
236 struct intel_lvds_encoder *lvds_encoder = to_lvds_encoder(&encoder->base); in intel_pre_enable_lvds() local
251 intel_lvds_pps_init_hw(dev_priv, &lvds_encoder->init_pps); in intel_pre_enable_lvds()
253 temp = lvds_encoder->init_lvds_val; in intel_pre_enable_lvds()
272 if (lvds_encoder->is_dual_link) in intel_pre_enable_lvds()
284 temp |= lvds_encoder->a3_power; in intel_pre_enable_lvds()
307 I915_WRITE(lvds_encoder->reg, temp); in intel_pre_enable_lvds()
318 struct intel_lvds_encoder *lvds_encoder = to_lvds_encoder(&encoder->base); in intel_enable_lvds() local
321 I915_WRITE(lvds_encoder->reg, I915_READ(lvds_encoder->reg) | LVDS_PORT_EN); in intel_enable_lvds()
324 POSTING_READ(lvds_encoder->reg); in intel_enable_lvds()
336 struct intel_lvds_encoder *lvds_encoder = to_lvds_encoder(&encoder->base); in intel_disable_lvds() local
343 I915_WRITE(lvds_encoder->reg, I915_READ(lvds_encoder->reg) & ~LVDS_PORT_EN); in intel_disable_lvds()
344 POSTING_READ(lvds_encoder->reg); in intel_disable_lvds()
396 struct intel_lvds_encoder *lvds_encoder = in intel_lvds_compute_config() local
399 &lvds_encoder->attached_connector->base; in intel_lvds_compute_config()
410 if (lvds_encoder->a3_power == LVDS_A3_POWER_UP) in intel_lvds_compute_config()
794 static bool compute_is_dual_link_lvds(struct intel_lvds_encoder *lvds_encoder) in compute_is_dual_link_lvds() argument
796 struct drm_device *dev = lvds_encoder->base.base.dev; in compute_is_dual_link_lvds()
805 if (lvds_encoder->attached_connector->base.panel.fixed_mode->clock in compute_is_dual_link_lvds()
818 val = I915_READ(lvds_encoder->reg); in compute_is_dual_link_lvds()
859 struct intel_lvds_encoder *lvds_encoder; in intel_lvds_init() local
910 lvds_encoder = kzalloc(sizeof(*lvds_encoder), GFP_KERNEL); in intel_lvds_init()
911 if (!lvds_encoder) in intel_lvds_init()
916 kfree(lvds_encoder); in intel_lvds_init()
922 kfree(lvds_encoder); in intel_lvds_init()
926 lvds_encoder->attached_connector = lvds_connector; in intel_lvds_init()
928 intel_encoder = &lvds_encoder->base; in intel_lvds_init()
969 lvds_encoder->reg = lvds_reg; in intel_lvds_init()
978 intel_lvds_pps_get_hw_state(dev_priv, &lvds_encoder->init_pps); in intel_lvds_init()
979 lvds_encoder->init_lvds_val = lvds; in intel_lvds_init()
1060 lvds_encoder->is_dual_link = compute_is_dual_link_lvds(lvds_encoder); in intel_lvds_init()
1062 lvds_encoder->is_dual_link ? "dual" : "single"); in intel_lvds_init()
1064 lvds_encoder->a3_power = lvds & LVDS_A3_POWER_MASK; in intel_lvds_init()
1074 kfree(lvds_encoder); in intel_lvds_init()