Lines Matching refs:lvds_encoder
109 struct intel_lvds_encoder *lvds_encoder = to_lvds_encoder(encoder); in intel_lvds_get_hw_state() local
117 ret = intel_lvds_port_enabled(i915, lvds_encoder->reg, pipe); in intel_lvds_get_hw_state()
128 struct intel_lvds_encoder *lvds_encoder = to_lvds_encoder(encoder); in intel_lvds_get_config() local
133 tmp = intel_de_read(dev_priv, lvds_encoder->reg); in intel_lvds_get_config()
239 struct intel_lvds_encoder *lvds_encoder = to_lvds_encoder(encoder); in intel_pre_enable_lvds() local
253 intel_lvds_pps_init_hw(i915, &lvds_encoder->init_pps); in intel_pre_enable_lvds()
255 temp = lvds_encoder->init_lvds_val; in intel_pre_enable_lvds()
274 if (lvds_encoder->is_dual_link) in intel_pre_enable_lvds()
286 temp |= lvds_encoder->a3_power; in intel_pre_enable_lvds()
309 intel_de_write(i915, lvds_encoder->reg, temp); in intel_pre_enable_lvds()
320 struct intel_lvds_encoder *lvds_encoder = to_lvds_encoder(encoder); in intel_enable_lvds() local
323 intel_de_rmw(dev_priv, lvds_encoder->reg, 0, LVDS_PORT_EN); in intel_enable_lvds()
326 intel_de_posting_read(dev_priv, lvds_encoder->reg); in intel_enable_lvds()
340 struct intel_lvds_encoder *lvds_encoder = to_lvds_encoder(encoder); in intel_disable_lvds() local
348 intel_de_rmw(dev_priv, lvds_encoder->reg, LVDS_PORT_EN, 0); in intel_disable_lvds()
349 intel_de_posting_read(dev_priv, lvds_encoder->reg); in intel_disable_lvds()
418 struct intel_lvds_encoder *lvds_encoder = to_lvds_encoder(encoder); in intel_lvds_compute_config() local
419 struct intel_connector *connector = lvds_encoder->attached_connector; in intel_lvds_compute_config()
437 if (lvds_encoder->a3_power == LVDS_A3_POWER_UP) in intel_lvds_compute_config()
791 static bool compute_is_dual_link_lvds(struct intel_lvds_encoder *lvds_encoder) in compute_is_dual_link_lvds() argument
793 struct drm_i915_private *i915 = to_i915(lvds_encoder->base.base.dev); in compute_is_dual_link_lvds()
794 struct intel_connector *connector = lvds_encoder->attached_connector; in compute_is_dual_link_lvds()
816 val = intel_de_read(i915, lvds_encoder->reg); in compute_is_dual_link_lvds()
842 struct intel_lvds_encoder *lvds_encoder; in intel_lvds_init() local
886 lvds_encoder = kzalloc(sizeof(*lvds_encoder), GFP_KERNEL); in intel_lvds_init()
887 if (!lvds_encoder) in intel_lvds_init()
892 kfree(lvds_encoder); in intel_lvds_init()
896 lvds_encoder->attached_connector = connector; in intel_lvds_init()
897 encoder = &lvds_encoder->base; in intel_lvds_init()
936 lvds_encoder->reg = lvds_reg; in intel_lvds_init()
940 intel_lvds_pps_get_hw_state(i915, &lvds_encoder->init_pps); in intel_lvds_init()
941 lvds_encoder->init_lvds_val = lvds; in intel_lvds_init()
998 lvds_encoder->is_dual_link = compute_is_dual_link_lvds(lvds_encoder); in intel_lvds_init()
1000 lvds_encoder->is_dual_link ? "dual" : "single"); in intel_lvds_init()
1002 lvds_encoder->a3_power = lvds & LVDS_A3_POWER_MASK; in intel_lvds_init()
1010 kfree(lvds_encoder); in intel_lvds_init()