Lines Matching full:panel
115 struct intel_panel *panel = &connector->panel; in intel_dp_aux_supports_hdr_backlight() local
140 * don't have this data in panel EDID. In case we find panel 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()
155 panel->backlight.edp.intel_cap.sdr_uses_aux = in intel_dp_aux_supports_hdr_backlight()
157 panel->backlight.edp.intel_cap.supports_2084_decode = in intel_dp_aux_supports_hdr_backlight()
159 panel->backlight.edp.intel_cap.supports_2020_gamut = in intel_dp_aux_supports_hdr_backlight()
161 panel->backlight.edp.intel_cap.supports_segmented_backlight = in intel_dp_aux_supports_hdr_backlight()
163 panel->backlight.edp.intel_cap.supports_sdp_colorimetry = in intel_dp_aux_supports_hdr_backlight()
165 panel->backlight.edp.intel_cap.supports_tone_mapping = in intel_dp_aux_supports_hdr_backlight()
175 struct intel_panel *panel = &connector->panel; in intel_dp_aux_hdr_get_backlight() local
188 if (!panel->backlight.edp.intel_cap.sdr_uses_aux) { 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()
195 return panel->backlight.max; in intel_dp_aux_hdr_get_backlight()
243 struct intel_panel *panel = &connector->panel; in intel_dp_aux_hdr_set_backlight() local
246 panel->backlight.edp.intel_cap.sdr_uses_aux) { in intel_dp_aux_hdr_set_backlight()
285 struct intel_panel *panel = &connector->panel; in intel_dp_aux_fill_hdr_tcon_params() local
289 * According to spec segmented backlight needs to be set whenever panel is in in intel_dp_aux_fill_hdr_tcon_params()
300 if (panel->backlight.edp.intel_cap.supports_2020_gamut && in intel_dp_aux_fill_hdr_tcon_params()
306 if (panel->backlight.edp.intel_cap.supports_sdp_colorimetry && in intel_dp_aux_fill_hdr_tcon_params()
319 struct intel_panel *panel = &connector->panel; in intel_dp_aux_hdr_enable_backlight() local
337 panel->backlight.edp.intel_cap.sdr_uses_aux) { in intel_dp_aux_hdr_enable_backlight()
344 panel->backlight.pwm_funcs->enable(crtc_state, conn_state, pwm_level); in intel_dp_aux_hdr_enable_backlight()
367 struct intel_panel *panel = &connector->panel; in intel_dp_aux_hdr_disable_backlight() local
370 if (panel->backlight.edp.intel_cap.sdr_uses_aux) 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()
386 struct intel_panel *panel = &connector->panel; in intel_dp_aux_write_panel_luminance_override() local
391 buf[0] = panel->backlight.min & 0xFF; in intel_dp_aux_write_panel_luminance_override()
392 buf[1] = (panel->backlight.min & 0xFF00) >> 8; in intel_dp_aux_write_panel_luminance_override()
393 buf[2] = panel->backlight.max & 0xFF; in intel_dp_aux_write_panel_luminance_override()
394 buf[3] = (panel->backlight.max & 0xFF00) >> 8; in intel_dp_aux_write_panel_luminance_override()
401 "Panel Luminance DPCD reg write failed, err:-%d\n", in intel_dp_aux_write_panel_luminance_override()
409 struct intel_panel *panel = &connector->panel; in intel_dp_aux_hdr_setup_backlight() local
417 dpcd_vs_pwm_str(panel->backlight.edp.intel_cap.sdr_uses_aux)); in intel_dp_aux_hdr_setup_backlight()
419 if (!panel->backlight.edp.intel_cap.sdr_uses_aux) { in intel_dp_aux_hdr_setup_backlight()
420 ret = panel->backlight.pwm_funcs->setup(connector, pipe); in intel_dp_aux_hdr_setup_backlight()
430 panel->backlight.max = luminance_range->max_luminance; in intel_dp_aux_hdr_setup_backlight()
431 panel->backlight.min = luminance_range->min_luminance; in intel_dp_aux_hdr_setup_backlight()
433 panel->backlight.max = 512; in intel_dp_aux_hdr_setup_backlight()
434 panel->backlight.min = 0; in intel_dp_aux_hdr_setup_backlight()
442 panel->backlight.min, panel->backlight.max); 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()
445 panel->backlight.enabled = panel->backlight.level != 0; in intel_dp_aux_hdr_setup_backlight()
453 return connector->panel.backlight.level; in intel_dp_aux_vesa_get_backlight()
460 struct intel_panel *panel = &connector->panel; in intel_dp_aux_vesa_set_backlight() local
463 if (!panel->backlight.edp.vesa.info.aux_set) { in intel_dp_aux_vesa_set_backlight()
469 drm_edp_backlight_set_level(&intel_dp->aux, &panel->backlight.edp.vesa.info, level); in intel_dp_aux_vesa_set_backlight()
477 struct intel_panel *panel = &connector->panel; in intel_dp_aux_vesa_enable_backlight() local
480 if (!panel->backlight.edp.vesa.info.aux_enable) { in intel_dp_aux_vesa_enable_backlight()
483 if (!panel->backlight.edp.vesa.info.aux_set) in intel_dp_aux_vesa_enable_backlight()
487 panel->backlight.pwm_level_max); in intel_dp_aux_vesa_enable_backlight()
489 panel->backlight.pwm_funcs->enable(crtc_state, conn_state, pwm_level); in intel_dp_aux_vesa_enable_backlight()
492 drm_edp_backlight_enable(&intel_dp->aux, &panel->backlight.edp.vesa.info, level); in intel_dp_aux_vesa_enable_backlight()
499 struct intel_panel *panel = &connector->panel; in intel_dp_aux_vesa_disable_backlight() local
502 drm_edp_backlight_disable(&intel_dp->aux, &panel->backlight.edp.vesa.info); in intel_dp_aux_vesa_disable_backlight()
504 if (!panel->backlight.edp.vesa.info.aux_enable) in intel_dp_aux_vesa_disable_backlight()
505 panel->backlight.pwm_funcs->disable(old_conn_state, in intel_dp_aux_vesa_disable_backlight()
513 struct intel_panel *panel = &connector->panel; in intel_dp_aux_vesa_setup_backlight() local
518 ret = drm_edp_backlight_init(&intel_dp->aux, &panel->backlight.edp.vesa.info, in intel_dp_aux_vesa_setup_backlight()
519 panel->vbt.backlight.pwm_freq_hz, intel_dp->edp_dpcd, in intel_dp_aux_vesa_setup_backlight()
527 dpcd_vs_pwm_str(panel->backlight.edp.vesa.info.aux_enable)); in intel_dp_aux_vesa_setup_backlight()
531 dpcd_vs_pwm_str(panel->backlight.edp.vesa.info.aux_set)); in intel_dp_aux_vesa_setup_backlight()
533 if (!panel->backlight.edp.vesa.info.aux_set || !panel->backlight.edp.vesa.info.aux_enable) { in intel_dp_aux_vesa_setup_backlight()
534 ret = panel->backlight.pwm_funcs->setup(connector, pipe); in intel_dp_aux_vesa_setup_backlight()
543 if (panel->backlight.edp.vesa.info.aux_set) { in intel_dp_aux_vesa_setup_backlight()
544 panel->backlight.max = panel->backlight.edp.vesa.info.max; in intel_dp_aux_vesa_setup_backlight()
545 panel->backlight.min = 0; in intel_dp_aux_vesa_setup_backlight()
547 panel->backlight.level = current_level; in intel_dp_aux_vesa_setup_backlight()
548 panel->backlight.enabled = panel->backlight.level != 0; in intel_dp_aux_vesa_setup_backlight()
550 panel->backlight.level = panel->backlight.max; in intel_dp_aux_vesa_setup_backlight()
551 panel->backlight.enabled = false; in intel_dp_aux_vesa_setup_backlight()
554 panel->backlight.max = panel->backlight.pwm_level_max; in intel_dp_aux_vesa_setup_backlight()
555 panel->backlight.min = panel->backlight.pwm_level_min; 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()
558 panel->backlight.enabled = panel->backlight.pwm_enabled; in intel_dp_aux_vesa_setup_backlight()
560 panel->backlight.level = panel->backlight.max; in intel_dp_aux_vesa_setup_backlight()
561 panel->backlight.enabled = false; in intel_dp_aux_vesa_setup_backlight()
607 struct intel_panel *panel = &connector->panel; in intel_dp_aux_init_backlight_funcs() local
617 switch (panel->vbt.backlight.type) { in intel_dp_aux_init_backlight_funcs()
629 if (panel->vbt.backlight.type != INTEL_BACKLIGHT_VESA_EDP_AUX_INTERFACE) in intel_dp_aux_init_backlight_funcs()
651 * panel with Intel's OUI - which is also required for us to be able to detect Intel's in intel_dp_aux_init_backlight_funcs()
658 panel->backlight.funcs = &intel_dp_hdr_bl_funcs; in intel_dp_aux_init_backlight_funcs()
665 panel->backlight.funcs = &intel_dp_vesa_bl_funcs; in intel_dp_aux_init_backlight_funcs()