Home
last modified time | relevance | path

Searched refs:panel_cntl (Results 1 – 25 of 37) sorted by relevance

12

/drivers/gpu/drm/amd/display/dc/dcn31/
Ddcn31_panel_cntl.c32 #define TO_DCN31_PANEL_CNTL(panel_cntl)\ argument
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.data); in dcn31_query_backlight_info()
53 cmd->panel_cntl.data.pwrseq_inst = dcn31_panel_cntl->base.pwrseq_inst; in dcn31_query_backlight_info()
58 static uint32_t dcn31_get_16_bit_backlight_from_pwm(struct panel_cntl *panel_cntl) in dcn31_get_16_bit_backlight_from_pwm() argument
[all …]
Ddcn31_panel_cntl.h33 struct panel_cntl base;
Ddcn31_hwseq.c226 if (link->panel_cntl) in dcn31_init_hw()
227 backlight = link->panel_cntl->funcs->hw_init(link->panel_cntl); in dcn31_init_hw()
/drivers/gpu/drm/amd/display/dc/dcn301/
Ddcn301_panel_cntl.c32 #define TO_DCN301_PANEL_CNTL(panel_cntl)\ argument
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->stored_backlight_registers.BL_PWM_CNTL); in dcn301_panel_cntl_hw_init()
113 panel_cntl->stored_backlight_registers.BL_PWM_CNTL2); in dcn301_panel_cntl_hw_init()
115 panel_cntl->stored_backlight_registers.BL_PWM_PERIOD_CNTL); in dcn301_panel_cntl_hw_init()
[all …]
Ddcn301_panel_cntl.h84 struct panel_cntl base;
91 struct dcn301_panel_cntl *panel_cntl,
Ddcn301_resource.c897 static struct panel_cntl *dcn301_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dcn301_panel_cntl_create()
899 struct dcn301_panel_cntl *panel_cntl = in dcn301_panel_cntl_create() local
902 if (!panel_cntl) in dcn301_panel_cntl_create()
905 dcn301_panel_cntl_construct(panel_cntl, in dcn301_panel_cntl_create()
911 return &panel_cntl->base; in dcn301_panel_cntl_create()
/drivers/gpu/drm/amd/display/dc/dce/
Ddce_panel_cntl.c33 #define TO_DCE_PANEL_CNTL(panel_cntl)\ argument
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->stored_backlight_registers.BL_PWM_CNTL != 0) { in dce_panel_cntl_hw_init()
103 panel_cntl->stored_backlight_registers.BL_PWM_CNTL); in dce_panel_cntl_hw_init()
105 panel_cntl->stored_backlight_registers.BL_PWM_CNTL2); in dce_panel_cntl_hw_init()
107 panel_cntl->stored_backlight_registers.BL_PWM_PERIOD_CNTL); in dce_panel_cntl_hw_init()
[all …]
Ddce_panel_cntl.h116 struct panel_cntl base;
123 struct dce_panel_cntl *panel_cntl,
/drivers/gpu/drm/amd/display/dc/inc/hw/
Dpanel_cntl.h46 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_cntl);
51 void (*driver_set_backlight)(struct panel_cntl *panel_cntl,
53 uint32_t (*get_current_backlight)(struct panel_cntl *panel_cntl);
62 struct panel_cntl { struct
/drivers/gpu/drm/amd/display/dc/dcn21/
Ddcn21_hwseq.c183 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; in dcn21_set_pipe() local
214 if (!abm && !tg && !panel_cntl) in dcn21_set_pipe()
228 panel_cntl->inst, in dcn21_set_pipe()
229 panel_cntl->pwrseq_inst); in dcn21_set_pipe()
[all …]
Ddcn21_resource.c1336 static struct panel_cntl *dcn21_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dcn21_panel_cntl_create()
1338 struct dce_panel_cntl *panel_cntl = in dcn21_panel_cntl_create() local
1341 if (!panel_cntl) in dcn21_panel_cntl_create()
1344 dce_panel_cntl_construct(panel_cntl, in dcn21_panel_cntl_create()
1350 return &panel_cntl->base; in dcn21_panel_cntl_create()
/drivers/gpu/drm/amd/display/dc/dce110/
Ddce110_hw_sequencer.c800 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->funcs->is_panel_backlight_on(link->panel_cntl); in dce110_edp_backlight_control()
1010 pwrseq_instance = link->panel_cntl->pwrseq_inst; in dce110_edp_backlight_control()
2641 if (link->panel_cntl) in init_hw()
2642 backlight = link->panel_cntl->funcs->hw_init(link->panel_cntl); in init_hw()
[all …]
Ddce110_resource.c686 static struct panel_cntl *dce110_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dce110_panel_cntl_create()
688 struct dce_panel_cntl *panel_cntl = in dce110_panel_cntl_create() local
691 if (!panel_cntl) in dce110_panel_cntl_create()
694 dce_panel_cntl_construct(panel_cntl, in dce110_panel_cntl_create()
700 return &panel_cntl->base; in dce110_panel_cntl_create()
/drivers/gpu/drm/amd/display/dc/link/
Dlink_factory.c403 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()
747 if (link->panel_cntl != NULL) in construct_phy()
748 link->panel_cntl->funcs->destroy(&link->panel_cntl); in construct_phy()
/drivers/gpu/drm/amd/display/dc/link/protocols/
Dlink_edp_panel_control.c1056 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()
/drivers/gpu/drm/amd/display/dc/dce100/
Ddce100_resource.c641 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()
/drivers/gpu/drm/amd/display/dc/dce120/
Ddce120_resource.c725 static struct panel_cntl *dce120_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dce120_panel_cntl_create()
727 struct dce_panel_cntl *panel_cntl = in dce120_panel_cntl_create() local
730 if (!panel_cntl) in dce120_panel_cntl_create()
733 dce_panel_cntl_construct(panel_cntl, in dce120_panel_cntl_create()
739 return &panel_cntl->base; in dce120_panel_cntl_create()
/drivers/gpu/drm/amd/display/dc/dce80/
Ddce80_resource.c742 static struct panel_cntl *dce80_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dce80_panel_cntl_create()
744 struct dce_panel_cntl *panel_cntl = in dce80_panel_cntl_create() local
747 if (!panel_cntl) in dce80_panel_cntl_create()
750 dce_panel_cntl_construct(panel_cntl, in dce80_panel_cntl_create()
756 return &panel_cntl->base; in dce80_panel_cntl_create()
/drivers/gpu/drm/amd/display/dc/dce112/
Ddce112_resource.c647 static struct panel_cntl *dce112_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dce112_panel_cntl_create()
649 struct dce_panel_cntl *panel_cntl = in dce112_panel_cntl_create() local
652 if (!panel_cntl) in dce112_panel_cntl_create()
655 dce_panel_cntl_construct(panel_cntl, in dce112_panel_cntl_create()
661 return &panel_cntl->base; in dce112_panel_cntl_create()
/drivers/gpu/drm/amd/display/dc/dce60/
Ddce60_resource.c735 static struct panel_cntl *dce60_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dce60_panel_cntl_create()
737 struct dce_panel_cntl *panel_cntl = in dce60_panel_cntl_create() local
740 if (!panel_cntl) in dce60_panel_cntl_create()
743 dce_panel_cntl_construct(panel_cntl, in dce60_panel_cntl_create()
749 return &panel_cntl->base; in dce60_panel_cntl_create()
/drivers/gpu/drm/amd/display/dc/dcn303/
Ddcn303_resource.c842 static struct panel_cntl *dcn303_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dcn303_panel_cntl_create()
844 struct dce_panel_cntl *panel_cntl = kzalloc(sizeof(struct dce_panel_cntl), GFP_KERNEL); in dcn303_panel_cntl_create() local
846 if (!panel_cntl) in dcn303_panel_cntl_create()
849 dce_panel_cntl_construct(panel_cntl, init_data, &panel_cntl_regs[init_data->inst], in dcn303_panel_cntl_create()
852 return &panel_cntl->base; in dcn303_panel_cntl_create()
/drivers/gpu/drm/amd/display/dc/dcn302/
Ddcn302_resource.c915 static struct panel_cntl *dcn302_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dcn302_panel_cntl_create()
917 struct dce_panel_cntl *panel_cntl = kzalloc(sizeof(struct dce_panel_cntl), GFP_KERNEL); in dcn302_panel_cntl_create() local
919 if (!panel_cntl) in dcn302_panel_cntl_create()
922 dce_panel_cntl_construct(panel_cntl, init_data, &panel_cntl_regs[init_data->inst], in dcn302_panel_cntl_create()
925 return &panel_cntl->base; in dcn302_panel_cntl_create()
/drivers/gpu/drm/amd/display/dc/dcn10/
Ddcn10_resource.c767 static struct panel_cntl *dcn10_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dcn10_panel_cntl_create()
769 struct dce_panel_cntl *panel_cntl = in dcn10_panel_cntl_create() local
772 if (!panel_cntl) in dcn10_panel_cntl_create()
775 dce_panel_cntl_construct(panel_cntl, in dcn10_panel_cntl_create()
781 return &panel_cntl->base; in dcn10_panel_cntl_create()
/drivers/gpu/drm/amd/display/dc/dcn316/
Ddcn316_resource.c1129 static struct panel_cntl *dcn31_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dcn31_panel_cntl_create()
1131 struct dcn31_panel_cntl *panel_cntl = in dcn31_panel_cntl_create() local
1134 if (!panel_cntl) in dcn31_panel_cntl_create()
1137 dcn31_panel_cntl_construct(panel_cntl, init_data); in dcn31_panel_cntl_create()
1139 return &panel_cntl->base; in dcn31_panel_cntl_create()
/drivers/gpu/drm/amd/display/dc/dcn314/
Ddcn314_resource.c1207 static struct panel_cntl *dcn31_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dcn31_panel_cntl_create()
1209 struct dcn31_panel_cntl *panel_cntl = in dcn31_panel_cntl_create() local
1212 if (!panel_cntl) in dcn31_panel_cntl_create()
1215 dcn31_panel_cntl_construct(panel_cntl, init_data); in dcn31_panel_cntl_create()
1217 return &panel_cntl->base; in dcn31_panel_cntl_create()

12