Lines Matching refs:lvds_encoder
103 struct intel_lvds_encoder *lvds_encoder = to_lvds_encoder(&encoder->base); in intel_lvds_get_hw_state() local
112 ret = intel_lvds_port_enabled(dev_priv, lvds_encoder->reg, pipe); in intel_lvds_get_hw_state()
123 struct intel_lvds_encoder *lvds_encoder = to_lvds_encoder(&encoder->base); in intel_lvds_get_config() local
128 tmp = intel_de_read(dev_priv, lvds_encoder->reg); in intel_lvds_get_config()
229 struct intel_lvds_encoder *lvds_encoder = to_lvds_encoder(&encoder->base); in intel_pre_enable_lvds() local
244 intel_lvds_pps_init_hw(dev_priv, &lvds_encoder->init_pps); in intel_pre_enable_lvds()
246 temp = lvds_encoder->init_lvds_val; in intel_pre_enable_lvds()
265 if (lvds_encoder->is_dual_link) in intel_pre_enable_lvds()
277 temp |= lvds_encoder->a3_power; in intel_pre_enable_lvds()
300 intel_de_write(dev_priv, lvds_encoder->reg, temp); in intel_pre_enable_lvds()
312 struct intel_lvds_encoder *lvds_encoder = to_lvds_encoder(&encoder->base); in intel_enable_lvds() local
315 intel_de_write(dev_priv, lvds_encoder->reg, in intel_enable_lvds()
316 intel_de_read(dev_priv, lvds_encoder->reg) | LVDS_PORT_EN); in intel_enable_lvds()
320 intel_de_posting_read(dev_priv, lvds_encoder->reg); in intel_enable_lvds()
334 struct intel_lvds_encoder *lvds_encoder = to_lvds_encoder(&encoder->base); in intel_disable_lvds() local
343 intel_de_write(dev_priv, lvds_encoder->reg, in intel_disable_lvds()
344 intel_de_read(dev_priv, lvds_encoder->reg) & ~LVDS_PORT_EN); in intel_disable_lvds()
345 intel_de_posting_read(dev_priv, lvds_encoder->reg); in intel_disable_lvds()
409 struct intel_lvds_encoder *lvds_encoder = in intel_lvds_compute_config() local
412 lvds_encoder->attached_connector; in intel_lvds_compute_config()
424 if (lvds_encoder->a3_power == LVDS_A3_POWER_UP) in intel_lvds_compute_config()
784 static bool compute_is_dual_link_lvds(struct intel_lvds_encoder *lvds_encoder) in compute_is_dual_link_lvds() argument
786 struct drm_device *dev = lvds_encoder->base.base.dev; in compute_is_dual_link_lvds()
795 if (lvds_encoder->attached_connector->panel.fixed_mode->clock > 112999) in compute_is_dual_link_lvds()
807 val = intel_de_read(dev_priv, lvds_encoder->reg); in compute_is_dual_link_lvds()
828 struct intel_lvds_encoder *lvds_encoder; in intel_lvds_init() local
877 lvds_encoder = kzalloc(sizeof(*lvds_encoder), GFP_KERNEL); in intel_lvds_init()
878 if (!lvds_encoder) in intel_lvds_init()
883 kfree(lvds_encoder); in intel_lvds_init()
887 lvds_encoder->attached_connector = intel_connector; in intel_lvds_init()
889 intel_encoder = &lvds_encoder->base; in intel_lvds_init()
929 lvds_encoder->reg = lvds_reg; in intel_lvds_init()
938 intel_lvds_pps_get_hw_state(dev_priv, &lvds_encoder->init_pps); in intel_lvds_init()
939 lvds_encoder->init_lvds_val = lvds; in intel_lvds_init()
1004 lvds_encoder->is_dual_link = compute_is_dual_link_lvds(lvds_encoder); in intel_lvds_init()
1006 lvds_encoder->is_dual_link ? "dual" : "single"); in intel_lvds_init()
1008 lvds_encoder->a3_power = lvds & LVDS_A3_POWER_MASK; in intel_lvds_init()
1018 kfree(lvds_encoder); in intel_lvds_init()