/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dcn31/ |
H A D | dcn31_panel_cntl.c | 32 #define TO_DCN31_PANEL_CNTL(panel_cntl)\ 33 container_of(panel_cntl, struct dcn31_panel_cntl, base) 41 static bool dcn31_query_backlight_info(struct panel_cntl *panel_cntl, union dmub_rb_cmd *cmd) in dcn31_query_backlight_info() argument 43 struct dcn31_panel_cntl *dcn31_panel_cntl = TO_DCN31_PANEL_CNTL(panel_cntl); in dcn31_query_backlight_info() 44 struct dc_dmub_srv *dc_dmub_srv = panel_cntl->ctx->dmub_srv; in dcn31_query_backlight_info() 50 cmd->panel_cntl.header.type = DMUB_CMD__PANEL_CNTL; in dcn31_query_backlight_info() 51 cmd->panel_cntl.header.sub_type = DMUB_CMD__PANEL_CNTL_QUERY_BACKLIGHT_INFO; in dcn31_query_backlight_info() 52 cmd->panel_cntl.header.payload_bytes = sizeof(cmd->panel_cntl in dcn31_query_backlight_info() 58 dcn31_get_16_bit_backlight_from_pwm(struct panel_cntl *panel_cntl) dcn31_get_16_bit_backlight_from_pwm() argument 68 dcn31_panel_cntl_hw_init(struct panel_cntl *panel_cntl) dcn31_panel_cntl_hw_init() argument 102 dcn31_panel_cntl_destroy(struct panel_cntl **panel_cntl) dcn31_panel_cntl_destroy() argument 110 dcn31_is_panel_backlight_on(struct panel_cntl *panel_cntl) dcn31_is_panel_backlight_on() argument 120 dcn31_is_panel_powered_on(struct panel_cntl *panel_cntl) dcn31_is_panel_powered_on() argument 130 dcn31_store_backlight_level(struct panel_cntl *panel_cntl) dcn31_store_backlight_level() argument [all...] |
H A D | dcn31_panel_cntl.h | 29 #include "panel_cntl.h" 33 struct panel_cntl base;
|
H A D | dcn31_hwseq.c | 226 if (link->panel_cntl) in dcn31_init_hw() 227 backlight = link->panel_cntl->funcs->hw_init(link->panel_cntl); in dcn31_init_hw()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dcn301/ |
H A D | dcn301_panel_cntl.c | 32 #define TO_DCN301_PANEL_CNTL(panel_cntl)\ 33 container_of(panel_cntl, struct dcn301_panel_cntl, base) 48 static unsigned int dcn301_get_16_bit_backlight_from_pwm(struct panel_cntl *panel_cntl) in dcn301_get_16_bit_backlight_from_pwm() argument 55 struct dcn301_panel_cntl *dcn301_panel_cntl = TO_DCN301_PANEL_CNTL(panel_cntl); in dcn301_get_16_bit_backlight_from_pwm() 96 static uint32_t dcn301_panel_cntl_hw_init(struct panel_cntl *panel_cntl) in dcn301_panel_cntl_hw_init() argument 98 struct dcn301_panel_cntl *dcn301_panel_cntl = TO_DCN301_PANEL_CNTL(panel_cntl); in dcn301_panel_cntl_hw_init() 109 if (panel_cntl->stored_backlight_registers.BL_PWM_CNTL != 0) { in dcn301_panel_cntl_hw_init() 111 panel_cntl in dcn301_panel_cntl_hw_init() 150 dcn301_panel_cntl_destroy(struct panel_cntl **panel_cntl) dcn301_panel_cntl_destroy() argument 158 dcn301_is_panel_backlight_on(struct panel_cntl *panel_cntl) dcn301_is_panel_backlight_on() argument 168 dcn301_is_panel_powered_on(struct panel_cntl *panel_cntl) dcn301_is_panel_powered_on() argument 180 dcn301_store_backlight_level(struct panel_cntl *panel_cntl) dcn301_store_backlight_level() argument [all...] |
H A D | dcn301_panel_cntl.h | 29 #include "panel_cntl.h" 84 struct panel_cntl base; 91 struct dcn301_panel_cntl *panel_cntl,
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dce/ |
H A D | dce_panel_cntl.c | 29 #include "panel_cntl.h" 33 #define TO_DCE_PANEL_CNTL(panel_cntl)\ 34 container_of(panel_cntl, struct dce_panel_cntl, base) 49 static unsigned int dce_get_16_bit_backlight_from_pwm(struct panel_cntl *panel_cntl) in dce_get_16_bit_backlight_from_pwm() argument 56 struct dce_panel_cntl *dce_panel_cntl = TO_DCE_PANEL_CNTL(panel_cntl); in dce_get_16_bit_backlight_from_pwm() 99 static uint32_t dce_panel_cntl_hw_init(struct panel_cntl *panel_cntl) in dce_panel_cntl_hw_init() argument 101 struct dce_panel_cntl *dce_panel_cntl = TO_DCE_PANEL_CNTL(panel_cntl); in dce_panel_cntl_hw_init() 112 if (panel_cntl in dce_panel_cntl_hw_init() 159 dce_is_panel_backlight_on(struct panel_cntl *panel_cntl) dce_is_panel_backlight_on() argument 173 dce_is_panel_powered_on(struct panel_cntl *panel_cntl) dce_is_panel_powered_on() argument 185 dce_store_backlight_level(struct panel_cntl *panel_cntl) dce_store_backlight_level() argument 200 dce_driver_set_backlight(struct panel_cntl *panel_cntl, uint32_t backlight_pwm_u16_16) dce_driver_set_backlight() argument 266 dce_panel_cntl_destroy(struct panel_cntl **panel_cntl) dce_panel_cntl_destroy() argument [all...] |
H A D | dce_panel_cntl.h | 29 #include "panel_cntl.h" 116 struct panel_cntl base; 123 struct dce_panel_cntl *panel_cntl,
|
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dce/ |
H A D | dce_panel_cntl.c | 29 #include "panel_cntl.h" 33 #define TO_DCE_PANEL_CNTL(panel_cntl)\ 34 container_of(panel_cntl, struct dce_panel_cntl, base) 49 static unsigned int dce_get_16_bit_backlight_from_pwm(struct panel_cntl *panel_cntl) in dce_get_16_bit_backlight_from_pwm() argument 55 struct dce_panel_cntl *dce_panel_cntl = TO_DCE_PANEL_CNTL(panel_cntl); in dce_get_16_bit_backlight_from_pwm() 89 static uint32_t dce_panel_cntl_hw_init(struct panel_cntl *panel_cntl) in dce_panel_cntl_hw_init() argument 91 struct dce_panel_cntl *dce_panel_cntl = TO_DCE_PANEL_CNTL(panel_cntl); in dce_panel_cntl_hw_init() 101 if (panel_cntl in dce_panel_cntl_hw_init() 147 dce_is_panel_backlight_on(struct panel_cntl *panel_cntl) dce_is_panel_backlight_on() argument 161 dce_is_panel_powered_on(struct panel_cntl *panel_cntl) dce_is_panel_powered_on() argument 173 dce_store_backlight_level(struct panel_cntl *panel_cntl) dce_store_backlight_level() argument 188 dce_driver_set_backlight(struct panel_cntl *panel_cntl, uint32_t backlight_pwm_u16_16) dce_driver_set_backlight() argument 254 dce_panel_cntl_destroy(struct panel_cntl **panel_cntl) dce_panel_cntl_destroy() argument [all...] |
H A D | dce_panel_cntl.h | 29 #include "panel_cntl.h" 116 struct panel_cntl base; 123 struct dce_panel_cntl *panel_cntl,
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/inc/hw/ |
H A D | panel_cntl.h | 24 * panel_cntl.h 45 void (*destroy)(struct panel_cntl **panel_cntl); 46 uint32_t (*hw_init)(struct panel_cntl *panel_cntl); 47 bool (*is_panel_backlight_on)(struct panel_cntl *panel_cntl); 48 bool (*is_panel_powered_on)(struct panel_cntl *panel_cntl); 49 void (*store_backlight_level)(struct panel_cntl *panel_cnt 60 struct panel_cntl { global() struct [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/inc/hw/ |
H A D | panel_cntl.h | 24 * panel_cntl.h 46 void (*destroy)(struct panel_cntl **panel_cntl); 47 uint32_t (*hw_init)(struct panel_cntl *panel_cntl); 48 bool (*is_panel_backlight_on)(struct panel_cntl *panel_cntl); 49 bool (*is_panel_powered_on)(struct panel_cntl *panel_cntl); 50 void (*store_backlight_level)(struct panel_cntl *panel_cnt 62 struct panel_cntl { global() struct [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dcn21/ |
H A D | dcn21_hwseq.c | 183 struct panel_cntl *panel_cntl = pipe_ctx->stream->link->panel_cntl; in dcn21_set_abm_immediate_disable() local 191 if (abm && panel_cntl) { in dcn21_set_abm_immediate_disable() 194 panel_cntl->inst, panel_cntl->pwrseq_inst); in dcn21_set_abm_immediate_disable() 199 panel_cntl->inst, in dcn21_set_abm_immediate_disable() 200 panel_cntl->pwrseq_inst); in dcn21_set_abm_immediate_disable() 202 panel_cntl->funcs->store_backlight_level(panel_cntl); in dcn21_set_abm_immediate_disable() 210 struct panel_cntl *panel_cntl = pipe_ctx->stream->link->panel_cntl; dcn21_set_pipe() local 245 struct panel_cntl *panel_cntl = pipe_ctx->stream->link->panel_cntl; dcn21_set_backlight_level() local [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dcn21/ |
H A D | dcn21_hwseq.c | 165 struct panel_cntl *panel_cntl = pipe_ctx->stream->link->panel_cntl; in dcn21_set_abm_immediate_disable() local 174 if (abm && panel_cntl) in dcn21_set_abm_immediate_disable() 176 panel_cntl->inst); in dcn21_set_abm_immediate_disable() 183 struct panel_cntl *panel_cntl = pipe_ctx->stream->link->panel_cntl; in dcn21_set_pipe() local 191 if (abm && panel_cntl) in dcn21_set_pipe() 192 dmub_abm_set_pipe(abm, otg_inst, SET_ABM_PIPE_NORMAL, panel_cntl in dcn21_set_pipe() 203 struct panel_cntl *panel_cntl = pipe_ctx->stream->link->panel_cntl; dcn21_set_backlight_level() local [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dce110/ |
H A D | dce110_hw_sequencer.c | 56 #include "panel_cntl.h" 808 if (!link->panel_cntl) in dce110_edp_power_control() 812 link->panel_cntl->funcs->is_panel_powered_on(link->panel_cntl)) { in dce110_edp_power_control() 942 if (enable && link->panel_cntl && in dce110_edp_backlight_control() 943 link->panel_cntl->funcs->is_panel_backlight_on(link->panel_cntl)) { in dce110_edp_backlight_control() 2495 if (link->panel_cntl) in init_hw() 2496 backlight = link->panel_cntl->funcs->hw_init(link->panel_cntl); in init_hw() 2817 struct panel_cntl *panel_cntl = link->panel_cntl; dce110_set_backlight_level() local 2847 struct panel_cntl *panel_cntl = pipe_ctx->stream->link->panel_cntl; dce110_set_abm_immediate_disable() local 2860 struct panel_cntl *panel_cntl = pipe_ctx->stream->link->panel_cntl; dce110_set_pipe() local [all...] |
H A D | dce110_resource.c | 693 static struct panel_cntl *dce110_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dce110_panel_cntl_create() 695 struct dce_panel_cntl *panel_cntl = in dce110_panel_cntl_create() local 698 if (!panel_cntl) in dce110_panel_cntl_create() 701 dce_panel_cntl_construct(panel_cntl, in dce110_panel_cntl_create() 707 return &panel_cntl->base; in dce110_panel_cntl_create()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/link/ |
H A D | link_factory.c | 403 if (link->panel_cntl) in link_destruct() 404 link->panel_cntl->funcs->destroy(&link->panel_cntl); in link_destruct() 655 link->panel_cntl = in construct_phy() 660 if (link->panel_cntl == NULL) { in construct_phy() 661 DC_ERROR("Failed to create link panel_cntl!\n"); in construct_phy() 747 if (link->panel_cntl != NULL) in construct_phy() 748 link->panel_cntl->funcs->destroy(&link->panel_cntl); in construct_phy()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dce110/ |
H A D | dce110_hw_sequencer.c | 56 #include "panel_cntl.h" 800 if (!link->panel_cntl) in dce110_edp_power_control() 803 link->panel_cntl->funcs->is_panel_powered_on(link->panel_cntl)) { in dce110_edp_power_control() 874 pwrseq_instance = link->panel_cntl->pwrseq_inst; in dce110_edp_power_control() 927 if (!link->panel_cntl) in dce110_edp_wait_for_T12() 930 if (!link->panel_cntl->funcs->is_panel_powered_on(link->panel_cntl) && in dce110_edp_wait_for_T12() 967 if (link->panel_cntl && !(link->dpcd_sink_ext_caps.bits.oled || in dce110_edp_backlight_control() 970 bool is_backlight_on = link->panel_cntl in dce110_edp_backlight_control() 2963 struct panel_cntl *panel_cntl = link->panel_cntl; dce110_set_backlight_level() local 2993 struct panel_cntl *panel_cntl = pipe_ctx->stream->link->panel_cntl; dce110_set_abm_immediate_disable() local 3006 struct panel_cntl *panel_cntl = pipe_ctx->stream->link->panel_cntl; dce110_set_pipe() local [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/link/protocols/ |
H A D | link_edp_panel_control.c | 1056 struct panel_cntl *panel_cntl = link->panel_cntl; in edp_get_backlight_level() local 1064 if (!fw_set_brightness && panel_cntl->funcs->get_current_backlight) in edp_get_backlight_level() 1065 return panel_cntl->funcs->get_current_backlight(panel_cntl); in edp_get_backlight_level()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/ |
H A D | dc_link.h | 137 struct panel_cntl *panel_cntl; member
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dce100/ |
H A D | dce100_resource.c | 643 static struct panel_cntl *dce100_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dce100_panel_cntl_create() 645 struct dce_panel_cntl *panel_cntl = in dce100_panel_cntl_create() local 648 if (!panel_cntl) in dce100_panel_cntl_create() 651 dce_panel_cntl_construct(panel_cntl, in dce100_panel_cntl_create() 657 return &panel_cntl->base; in dce100_panel_cntl_create()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dce100/ |
H A D | dce100_resource.c | 641 static struct panel_cntl *dce100_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dce100_panel_cntl_create() 643 struct dce_panel_cntl *panel_cntl = in dce100_panel_cntl_create() local 646 if (!panel_cntl) in dce100_panel_cntl_create() 649 dce_panel_cntl_construct(panel_cntl, in dce100_panel_cntl_create() 655 return &panel_cntl->base; in dce100_panel_cntl_create()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dce112/ |
H A D | dce112_resource.c | 649 static struct panel_cntl *dce112_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dce112_panel_cntl_create() 651 struct dce_panel_cntl *panel_cntl = in dce112_panel_cntl_create() local 654 if (!panel_cntl) in dce112_panel_cntl_create() 657 dce_panel_cntl_construct(panel_cntl, in dce112_panel_cntl_create() 663 return &panel_cntl->base; in dce112_panel_cntl_create()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dce120/ |
H A D | dce120_resource.c | 732 static struct panel_cntl *dce120_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dce120_panel_cntl_create() 734 struct dce_panel_cntl *panel_cntl = in dce120_panel_cntl_create() local 737 if (!panel_cntl) in dce120_panel_cntl_create() 740 dce_panel_cntl_construct(panel_cntl, in dce120_panel_cntl_create() 746 return &panel_cntl->base; in dce120_panel_cntl_create()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dce80/ |
H A D | dce80_resource.c | 744 static struct panel_cntl *dce80_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dce80_panel_cntl_create() 746 struct dce_panel_cntl *panel_cntl = in dce80_panel_cntl_create() local 749 if (!panel_cntl) in dce80_panel_cntl_create() 752 dce_panel_cntl_construct(panel_cntl, in dce80_panel_cntl_create() 758 return &panel_cntl->base; in dce80_panel_cntl_create()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dcn10/ |
H A D | dcn10_resource.c | 833 static struct panel_cntl *dcn10_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dcn10_panel_cntl_create() 835 struct dce_panel_cntl *panel_cntl = in dcn10_panel_cntl_create() local 838 if (!panel_cntl) in dcn10_panel_cntl_create() 841 dce_panel_cntl_construct(panel_cntl, in dcn10_panel_cntl_create() 847 return &panel_cntl->base; in dcn10_panel_cntl_create()
|