Lines Matching full:connector
110 intel_dp_aux_supports_hdr_backlight(struct intel_connector *connector) in intel_dp_aux_supports_hdr_backlight() argument
112 struct intel_display *display = to_intel_display(connector); in intel_dp_aux_supports_hdr_backlight()
113 struct intel_dp *intel_dp = enc_to_intel_dp(connector->encoder); in intel_dp_aux_supports_hdr_backlight()
115 struct intel_panel *panel = &connector->panel; in intel_dp_aux_supports_hdr_backlight()
126 "[CONNECTOR:%d:%s] Detected %s HDR backlight interface version %d\n", in intel_dp_aux_supports_hdr_backlight()
127 connector->base.base.id, connector->base.name, in intel_dp_aux_supports_hdr_backlight()
146 !(connector->base.hdr_sink_metadata.hdmi_type1.metadata_type & in intel_dp_aux_supports_hdr_backlight()
149 …"[CONNECTOR:%d:%s] Panel is missing HDR static metadata. Possible support for Intel HDR backlight … in intel_dp_aux_supports_hdr_backlight()
150 connector->base.base.id, connector->base.name, in intel_dp_aux_supports_hdr_backlight()
172 intel_dp_aux_hdr_get_backlight(struct intel_connector *connector, enum pipe pipe) in intel_dp_aux_hdr_get_backlight() argument
174 struct intel_display *display = to_intel_display(connector); in intel_dp_aux_hdr_get_backlight()
175 struct intel_panel *panel = &connector->panel; in intel_dp_aux_hdr_get_backlight()
176 struct intel_dp *intel_dp = enc_to_intel_dp(connector->encoder); in intel_dp_aux_hdr_get_backlight()
182 "[CONNECTOR:%d:%s] Failed to read current backlight mode from DPCD\n", in intel_dp_aux_hdr_get_backlight()
183 connector->base.base.id, connector->base.name); in intel_dp_aux_hdr_get_backlight()
189 u32 pwm_level = panel->backlight.pwm_funcs->get(connector, pipe); in intel_dp_aux_hdr_get_backlight()
191 return intel_backlight_level_from_pwm(connector, pwm_level); in intel_dp_aux_hdr_get_backlight()
201 "[CONNECTOR:%d:%s] Failed to read brightness from DPCD\n", in intel_dp_aux_hdr_get_backlight()
202 connector->base.base.id, connector->base.name); in intel_dp_aux_hdr_get_backlight()
212 struct intel_connector *connector = to_intel_connector(conn_state->connector); in intel_dp_aux_hdr_set_aux_backlight() local
213 struct drm_device *dev = connector->base.dev; in intel_dp_aux_hdr_set_aux_backlight()
214 struct intel_dp *intel_dp = enc_to_intel_dp(connector->encoder); in intel_dp_aux_hdr_set_aux_backlight()
222 drm_err(dev, "[CONNECTOR:%d:%s] Failed to write brightness level to DPCD\n", in intel_dp_aux_hdr_set_aux_backlight()
223 connector->base.base.id, connector->base.name); in intel_dp_aux_hdr_set_aux_backlight()
242 struct intel_connector *connector = to_intel_connector(conn_state->connector); in intel_dp_aux_hdr_set_backlight() local
243 struct intel_panel *panel = &connector->panel; in intel_dp_aux_hdr_set_backlight()
249 const u32 pwm_level = intel_backlight_level_to_pwm(connector, level); in intel_dp_aux_hdr_set_backlight()
256 intel_dp_aux_write_content_luminance(struct intel_connector *connector, in intel_dp_aux_write_content_luminance() argument
259 struct intel_display *display = to_intel_display(connector); in intel_dp_aux_write_content_luminance()
260 struct intel_dp *intel_dp = enc_to_intel_dp(connector->encoder); in intel_dp_aux_write_content_luminance()
264 if (!intel_dp_has_gamut_metadata_dip(connector->encoder)) in intel_dp_aux_write_content_luminance()
284 struct intel_connector *connector = to_intel_connector(conn_state->connector); in intel_dp_aux_fill_hdr_tcon_params() local
285 struct intel_panel *panel = &connector->panel; in intel_dp_aux_fill_hdr_tcon_params()
286 struct intel_display *display = to_intel_display(connector); in intel_dp_aux_fill_hdr_tcon_params()
307 intel_dp_has_gamut_metadata_dip(connector->encoder)) in intel_dp_aux_fill_hdr_tcon_params()
318 struct intel_connector *connector = to_intel_connector(conn_state->connector); in intel_dp_aux_hdr_enable_backlight() local
319 struct intel_panel *panel = &connector->panel; in intel_dp_aux_hdr_enable_backlight()
320 struct intel_dp *intel_dp = enc_to_intel_dp(connector->encoder); in intel_dp_aux_hdr_enable_backlight()
330 "[CONNECTOR:%d:%s] Failed to read current backlight control mode: %d\n", in intel_dp_aux_hdr_enable_backlight()
331 connector->base.base.id, connector->base.name, ret); in intel_dp_aux_hdr_enable_backlight()
342 u32 pwm_level = intel_backlight_level_to_pwm(connector, level); in intel_dp_aux_hdr_enable_backlight()
354 "[CONNECTOR:%d:%s] Failed to configure DPCD brightness controls\n", in intel_dp_aux_hdr_enable_backlight()
355 connector->base.base.id, connector->base.name); in intel_dp_aux_hdr_enable_backlight()
359 intel_dp_aux_write_content_luminance(connector, hdr_metadata); in intel_dp_aux_hdr_enable_backlight()
366 struct intel_connector *connector = to_intel_connector(conn_state->connector); in intel_dp_aux_hdr_disable_backlight() local
367 struct intel_panel *panel = &connector->panel; in intel_dp_aux_hdr_disable_backlight()
374 panel->backlight.pwm_funcs->disable(conn_state, intel_backlight_invert_pwm_level(connector, 0)); in intel_dp_aux_hdr_disable_backlight()
383 intel_dp_aux_write_panel_luminance_override(struct intel_connector *connector) in intel_dp_aux_write_panel_luminance_override() argument
385 struct intel_display *display = to_intel_display(connector); in intel_dp_aux_write_panel_luminance_override()
386 struct intel_panel *panel = &connector->panel; in intel_dp_aux_write_panel_luminance_override()
387 struct intel_dp *intel_dp = enc_to_intel_dp(connector->encoder); in intel_dp_aux_write_panel_luminance_override()
406 intel_dp_aux_hdr_setup_backlight(struct intel_connector *connector, enum pipe pipe) in intel_dp_aux_hdr_setup_backlight() argument
408 struct intel_display *display = to_intel_display(connector); in intel_dp_aux_hdr_setup_backlight()
409 struct intel_panel *panel = &connector->panel; in intel_dp_aux_hdr_setup_backlight()
411 &connector->base.display_info.luminance_range; in intel_dp_aux_hdr_setup_backlight()
415 "[CONNECTOR:%d:%s] SDR backlight is controlled through %s\n", in intel_dp_aux_hdr_setup_backlight()
416 connector->base.base.id, connector->base.name, in intel_dp_aux_hdr_setup_backlight()
420 ret = panel->backlight.pwm_funcs->setup(connector, pipe); in intel_dp_aux_hdr_setup_backlight()
423 "[CONNECTOR:%d:%s] Failed to setup SDR backlight controls through PWM: %d\n", in intel_dp_aux_hdr_setup_backlight()
424 connector->base.base.id, connector->base.name, ret); in intel_dp_aux_hdr_setup_backlight()
437 intel_dp_aux_write_panel_luminance_override(connector); in intel_dp_aux_hdr_setup_backlight()
440 "[CONNECTOR:%d:%s] Using AUX HDR interface for backlight control (range %d..%d)\n", in intel_dp_aux_hdr_setup_backlight()
441 connector->base.base.id, connector->base.name, in intel_dp_aux_hdr_setup_backlight()
444 panel->backlight.level = intel_dp_aux_hdr_get_backlight(connector, pipe); in intel_dp_aux_hdr_setup_backlight()
451 static u32 intel_dp_aux_vesa_get_backlight(struct intel_connector *connector, enum pipe unused) in intel_dp_aux_vesa_get_backlight() argument
453 return connector->panel.backlight.level; in intel_dp_aux_vesa_get_backlight()
459 struct intel_connector *connector = to_intel_connector(conn_state->connector); in intel_dp_aux_vesa_set_backlight() local
460 struct intel_panel *panel = &connector->panel; in intel_dp_aux_vesa_set_backlight()
461 struct intel_dp *intel_dp = enc_to_intel_dp(connector->encoder); in intel_dp_aux_vesa_set_backlight()
464 const u32 pwm_level = intel_backlight_level_to_pwm(connector, level); in intel_dp_aux_vesa_set_backlight()
476 struct intel_connector *connector = to_intel_connector(conn_state->connector); in intel_dp_aux_vesa_enable_backlight() local
477 struct intel_panel *panel = &connector->panel; in intel_dp_aux_vesa_enable_backlight()
478 struct intel_dp *intel_dp = enc_to_intel_dp(connector->encoder); in intel_dp_aux_vesa_enable_backlight()
484 pwm_level = intel_backlight_level_to_pwm(connector, level); in intel_dp_aux_vesa_enable_backlight()
486 pwm_level = intel_backlight_invert_pwm_level(connector, in intel_dp_aux_vesa_enable_backlight()
498 struct intel_connector *connector = to_intel_connector(old_conn_state->connector); in intel_dp_aux_vesa_disable_backlight() local
499 struct intel_panel *panel = &connector->panel; in intel_dp_aux_vesa_disable_backlight()
500 struct intel_dp *intel_dp = enc_to_intel_dp(connector->encoder); in intel_dp_aux_vesa_disable_backlight()
506 intel_backlight_invert_pwm_level(connector, 0)); in intel_dp_aux_vesa_disable_backlight()
509 static int intel_dp_aux_vesa_setup_backlight(struct intel_connector *connector, enum pipe pipe) in intel_dp_aux_vesa_setup_backlight() argument
511 struct intel_display *display = to_intel_display(connector); in intel_dp_aux_vesa_setup_backlight()
512 struct intel_dp *intel_dp = intel_attached_dp(connector); in intel_dp_aux_vesa_setup_backlight()
513 struct intel_panel *panel = &connector->panel; in intel_dp_aux_vesa_setup_backlight()
525 "[CONNECTOR:%d:%s] AUX VESA backlight enable is controlled through %s\n", in intel_dp_aux_vesa_setup_backlight()
526 connector->base.base.id, connector->base.name, in intel_dp_aux_vesa_setup_backlight()
529 "[CONNECTOR:%d:%s] AUX VESA backlight level is controlled through %s\n", in intel_dp_aux_vesa_setup_backlight()
530 connector->base.base.id, connector->base.name, in intel_dp_aux_vesa_setup_backlight()
534 ret = panel->backlight.pwm_funcs->setup(connector, pipe); in intel_dp_aux_vesa_setup_backlight()
537 "[CONNECTOR:%d:%s] Failed to setup PWM backlight controls for eDP backlight: %d\n", in intel_dp_aux_vesa_setup_backlight()
538 connector->base.base.id, connector->base.name, ret); in intel_dp_aux_vesa_setup_backlight()
557 panel->backlight.level = panel->backlight.pwm_funcs->get(connector, pipe); in intel_dp_aux_vesa_setup_backlight()
566 "[CONNECTOR:%d:%s] Using AUX VESA interface for backlight control\n", in intel_dp_aux_vesa_setup_backlight()
567 connector->base.base.id, connector->base.name); in intel_dp_aux_vesa_setup_backlight()
573 intel_dp_aux_supports_vesa_backlight(struct intel_connector *connector) in intel_dp_aux_supports_vesa_backlight() argument
575 struct intel_display *display = to_intel_display(connector); in intel_dp_aux_supports_vesa_backlight()
576 struct intel_dp *intel_dp = intel_attached_dp(connector); in intel_dp_aux_supports_vesa_backlight()
580 "[CONNECTOR:%d:%s] AUX Backlight Control Supported!\n", in intel_dp_aux_supports_vesa_backlight()
581 connector->base.base.id, connector->base.name); in intel_dp_aux_supports_vesa_backlight()
603 int intel_dp_aux_init_backlight_funcs(struct intel_connector *connector) in intel_dp_aux_init_backlight_funcs() argument
605 struct intel_display *display = to_intel_display(connector); in intel_dp_aux_init_backlight_funcs()
606 struct drm_device *dev = connector->base.dev; in intel_dp_aux_init_backlight_funcs()
607 struct intel_panel *panel = &connector->panel; in intel_dp_aux_init_backlight_funcs()
655 if (try_intel_interface && intel_dp_aux_supports_hdr_backlight(connector)) { in intel_dp_aux_init_backlight_funcs()
656 drm_dbg_kms(dev, "[CONNECTOR:%d:%s] Using Intel proprietary eDP backlight controls\n", in intel_dp_aux_init_backlight_funcs()
657 connector->base.base.id, connector->base.name); in intel_dp_aux_init_backlight_funcs()
662 if (try_vesa_interface && intel_dp_aux_supports_vesa_backlight(connector)) { in intel_dp_aux_init_backlight_funcs()
663 drm_dbg_kms(dev, "[CONNECTOR:%d:%s] Using VESA eDP backlight controls\n", in intel_dp_aux_init_backlight_funcs()
664 connector->base.base.id, connector->base.name); in intel_dp_aux_init_backlight_funcs()