Lines Matching defs:connector
116 intel_dp_aux_supports_hdr_backlight(struct intel_connector *connector)
118 struct drm_i915_private *i915 = to_i915(connector->base.dev);
119 struct intel_dp *intel_dp = enc_to_intel_dp(connector->encoder);
121 struct intel_panel *panel = &connector->panel;
135 connector->base.base.id, connector->base.name,
151 !(connector->base.hdr_sink_metadata.hdmi_type1.metadata_type &
155 connector->base.base.id, connector->base.name,
167 intel_dp_aux_hdr_get_backlight(struct intel_connector *connector, enum pipe pipe)
169 struct drm_i915_private *i915 = to_i915(connector->base.dev);
170 struct intel_panel *panel = &connector->panel;
171 struct intel_dp *intel_dp = enc_to_intel_dp(connector->encoder);
177 connector->base.base.id, connector->base.name);
183 u32 pwm_level = panel->backlight.pwm_funcs->get(connector, pipe);
185 return intel_backlight_level_from_pwm(connector, pwm_level);
195 connector->base.base.id, connector->base.name);
205 struct intel_connector *connector = to_intel_connector(conn_state->connector);
206 struct drm_device *dev = connector->base.dev;
207 struct intel_dp *intel_dp = enc_to_intel_dp(connector->encoder);
216 connector->base.base.id, connector->base.name);
222 struct intel_connector *connector = to_intel_connector(conn_state->connector);
223 struct intel_panel *panel = &connector->panel;
228 const u32 pwm_level = intel_backlight_level_to_pwm(connector, level);
238 struct intel_connector *connector = to_intel_connector(conn_state->connector);
239 struct intel_panel *panel = &connector->panel;
240 struct drm_i915_private *i915 = to_i915(connector->base.dev);
241 struct intel_dp *intel_dp = enc_to_intel_dp(connector->encoder);
250 connector->base.base.id, connector->base.name, ret);
259 u32 pwm_level = intel_backlight_level_to_pwm(connector, level);
269 connector->base.base.id, connector->base.name);
275 struct intel_connector *connector = to_intel_connector(conn_state->connector);
276 struct intel_panel *panel = &connector->panel;
283 panel->backlight.pwm_funcs->disable(conn_state, intel_backlight_invert_pwm_level(connector, 0));
292 intel_dp_aux_hdr_setup_backlight(struct intel_connector *connector, enum pipe pipe)
294 struct drm_i915_private *i915 = to_i915(connector->base.dev);
295 struct intel_panel *panel = &connector->panel;
297 &connector->base.display_info.luminance_range;
301 connector->base.base.id, connector->base.name,
305 ret = panel->backlight.pwm_funcs->setup(connector, pipe);
309 connector->base.base.id, connector->base.name, ret);
323 connector->base.base.id, connector->base.name,
327 panel->backlight.level = intel_dp_aux_hdr_get_backlight(connector, pipe);
334 static u32 intel_dp_aux_vesa_get_backlight(struct intel_connector *connector, enum pipe unused)
336 return connector->panel.backlight.level;
342 struct intel_connector *connector = to_intel_connector(conn_state->connector);
343 struct intel_panel *panel = &connector->panel;
344 struct intel_dp *intel_dp = enc_to_intel_dp(connector->encoder);
347 const u32 pwm_level = intel_backlight_level_to_pwm(connector, level);
359 struct intel_connector *connector = to_intel_connector(conn_state->connector);
360 struct intel_panel *panel = &connector->panel;
361 struct intel_dp *intel_dp = enc_to_intel_dp(connector->encoder);
367 pwm_level = intel_backlight_level_to_pwm(connector, level);
369 pwm_level = intel_backlight_invert_pwm_level(connector,
381 struct intel_connector *connector = to_intel_connector(old_conn_state->connector);
382 struct intel_panel *panel = &connector->panel;
383 struct intel_dp *intel_dp = enc_to_intel_dp(connector->encoder);
389 intel_backlight_invert_pwm_level(connector, 0));
392 static int intel_dp_aux_vesa_setup_backlight(struct intel_connector *connector, enum pipe pipe)
394 struct intel_dp *intel_dp = intel_attached_dp(connector);
395 struct intel_panel *panel = &connector->panel;
408 connector->base.base.id, connector->base.name,
411 connector->base.base.id, connector->base.name,
415 ret = panel->backlight.pwm_funcs->setup(connector, pipe);
419 connector->base.base.id, connector->base.name, ret);
438 panel->backlight.level = panel->backlight.pwm_funcs->get(connector, pipe);
447 connector->base.base.id, connector->base.name);
453 intel_dp_aux_supports_vesa_backlight(struct intel_connector *connector)
455 struct intel_dp *intel_dp = intel_attached_dp(connector);
460 connector->base.base.id, connector->base.name);
482 int intel_dp_aux_init_backlight_funcs(struct intel_connector *connector)
484 struct drm_device *dev = connector->base.dev;
485 struct intel_panel *panel = &connector->panel;
486 struct intel_dp *intel_dp = enc_to_intel_dp(connector->encoder);
535 if (try_intel_interface && intel_dp_aux_supports_hdr_backlight(connector)) {
537 connector->base.base.id, connector->base.name);
542 if (try_vesa_interface && intel_dp_aux_supports_vesa_backlight(connector)) {
544 connector->base.base.id, connector->base.name);