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()
238 struct intel_lvds_encoder *lvds_encoder = to_lvds_encoder(encoder); in intel_pre_enable_lvds() local
252 intel_lvds_pps_init_hw(i915, &lvds_encoder->init_pps); in intel_pre_enable_lvds()
254 temp = lvds_encoder->init_lvds_val; in intel_pre_enable_lvds()
273 if (lvds_encoder->is_dual_link) in intel_pre_enable_lvds()
285 temp |= lvds_encoder->a3_power; in intel_pre_enable_lvds()
308 intel_de_write(i915, lvds_encoder->reg, temp); in intel_pre_enable_lvds()
319 struct intel_lvds_encoder *lvds_encoder = to_lvds_encoder(encoder); in intel_enable_lvds() local
322 intel_de_rmw(dev_priv, lvds_encoder->reg, 0, LVDS_PORT_EN); in intel_enable_lvds()
325 intel_de_posting_read(dev_priv, lvds_encoder->reg); in intel_enable_lvds()
339 struct intel_lvds_encoder *lvds_encoder = to_lvds_encoder(encoder); in intel_disable_lvds() local
347 intel_de_rmw(dev_priv, lvds_encoder->reg, LVDS_PORT_EN, 0); in intel_disable_lvds()
348 intel_de_posting_read(dev_priv, lvds_encoder->reg); in intel_disable_lvds()
415 struct intel_lvds_encoder *lvds_encoder = to_lvds_encoder(encoder); in intel_lvds_compute_config() local
416 struct intel_connector *connector = lvds_encoder->attached_connector; in intel_lvds_compute_config()
428 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_i915_private *i915 = to_i915(lvds_encoder->base.base.dev); in compute_is_dual_link_lvds()
787 struct intel_connector *connector = lvds_encoder->attached_connector; in compute_is_dual_link_lvds()
809 val = intel_de_read(i915, lvds_encoder->reg); in compute_is_dual_link_lvds()
834 struct intel_lvds_encoder *lvds_encoder; in intel_lvds_init() local
878 lvds_encoder = kzalloc(sizeof(*lvds_encoder), GFP_KERNEL); in intel_lvds_init()
879 if (!lvds_encoder) in intel_lvds_init()
884 kfree(lvds_encoder); in intel_lvds_init()
888 lvds_encoder->attached_connector = connector; in intel_lvds_init()
889 encoder = &lvds_encoder->base; in intel_lvds_init()
926 lvds_encoder->reg = lvds_reg; in intel_lvds_init()
930 intel_lvds_pps_get_hw_state(i915, &lvds_encoder->init_pps); in intel_lvds_init()
931 lvds_encoder->init_lvds_val = lvds; in intel_lvds_init()
991 lvds_encoder->is_dual_link = compute_is_dual_link_lvds(lvds_encoder); in intel_lvds_init()
993 lvds_encoder->is_dual_link ? "dual" : "single"); in intel_lvds_init()
995 lvds_encoder->a3_power = lvds & LVDS_A3_POWER_MASK; in intel_lvds_init()
1003 kfree(lvds_encoder); in intel_lvds_init()