Home
last modified time | relevance | path

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

12

/linux-6.15/drivers/gpu/drm/amd/display/dc/dcn31/
H A Ddcn31_panel_cntl.c52 cmd->panel_cntl.header.payload_bytes = sizeof(cmd->panel_cntl.data); 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
68 static uint32_t dcn31_panel_cntl_hw_init(struct panel_cntl *panel_cntl) in dcn31_panel_cntl_hw_init() argument
81 cmd.panel_cntl.header.payload_bytes = sizeof(cmd.panel_cntl.data); in dcn31_panel_cntl_hw_init()
83 cmd.panel_cntl.data.bl_pwm_cntl = panel_cntl->stored_backlight_registers.BL_PWM_CNTL; in dcn31_panel_cntl_hw_init()
106 cmd.panel_cntl.header.payload_bytes = sizeof(cmd.panel_cntl.data); in dcn31_panel_cntl_hw_init()
116 static void dcn31_panel_cntl_destroy(struct panel_cntl **panel_cntl) in dcn31_panel_cntl_destroy() argument
121 *panel_cntl = NULL; in dcn31_panel_cntl_destroy()
124 static bool dcn31_is_panel_backlight_on(struct panel_cntl *panel_cntl) in dcn31_is_panel_backlight_on() argument
134 static bool dcn31_is_panel_powered_on(struct panel_cntl *panel_cntl) in dcn31_is_panel_powered_on() argument
[all …]
H A Ddcn31_panel_cntl.h36 struct panel_cntl base;
/linux-6.15/drivers/gpu/drm/amd/display/dc/dcn301/
H A 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
96 static uint32_t dcn301_panel_cntl_hw_init(struct panel_cntl *panel_cntl) in dcn301_panel_cntl_hw_init() argument
127 panel_cntl->stored_backlight_registers.BL_PWM_CNTL = in dcn301_panel_cntl_hw_init()
150 static void dcn301_panel_cntl_destroy(struct panel_cntl **panel_cntl) in dcn301_panel_cntl_destroy() argument
155 *panel_cntl = NULL; in dcn301_panel_cntl_destroy()
158 static bool dcn301_is_panel_backlight_on(struct panel_cntl *panel_cntl) in dcn301_is_panel_backlight_on() argument
168 static bool dcn301_is_panel_powered_on(struct panel_cntl *panel_cntl) in dcn301_is_panel_powered_on() argument
180 static void dcn301_store_backlight_level(struct panel_cntl *panel_cntl) in dcn301_store_backlight_level() argument
[all …]
H A Ddcn301_panel_cntl.h84 struct panel_cntl base;
91 struct dcn301_panel_cntl *panel_cntl,
/linux-6.15/drivers/gpu/drm/amd/display/dc/dce/
H A 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
89 static uint32_t dce_panel_cntl_hw_init(struct panel_cntl *panel_cntl) in dce_panel_cntl_hw_init() argument
147 static bool dce_is_panel_backlight_on(struct panel_cntl *panel_cntl) in dce_is_panel_backlight_on() argument
161 static bool dce_is_panel_powered_on(struct panel_cntl *panel_cntl) in dce_is_panel_powered_on() argument
173 static void dce_store_backlight_level(struct panel_cntl *panel_cntl) in dce_store_backlight_level() argument
188 static void dce_driver_set_backlight(struct panel_cntl *panel_cntl, in dce_driver_set_backlight() argument
254 static void dce_panel_cntl_destroy(struct panel_cntl **panel_cntl) in dce_panel_cntl_destroy() argument
259 *panel_cntl = NULL; in dce_panel_cntl_destroy()
[all …]
H A Ddce_panel_cntl.h116 struct panel_cntl base;
123 struct dce_panel_cntl *panel_cntl,
/linux-6.15/drivers/gpu/drm/amd/display/dc/inc/hw/
H A Dpanel_cntl.h47 void (*destroy)(struct panel_cntl **panel_cntl);
48 uint32_t (*hw_init)(struct panel_cntl *panel_cntl);
49 bool (*is_panel_backlight_on)(struct panel_cntl *panel_cntl);
50 bool (*is_panel_powered_on)(struct panel_cntl *panel_cntl);
51 void (*store_backlight_level)(struct panel_cntl *panel_cntl);
52 void (*driver_set_backlight)(struct panel_cntl *panel_cntl,
54 uint32_t (*get_current_backlight)(struct panel_cntl *panel_cntl);
63 struct panel_cntl { struct
/linux-6.15/drivers/gpu/drm/amd/display/dc/hwss/dcn21/
H A Ddcn21_hwseq.c183 struct panel_cntl *panel_cntl = pipe_ctx->stream->link->panel_cntl; in dcn21_set_abm_immediate_disable() local
197 if (abm && panel_cntl) { in dcn21_set_abm_immediate_disable()
200 panel_cntl->inst, panel_cntl->pwrseq_inst); in dcn21_set_abm_immediate_disable()
205 panel_cntl->inst, in dcn21_set_abm_immediate_disable()
208 panel_cntl->funcs->store_backlight_level(panel_cntl); in dcn21_set_abm_immediate_disable()
216 struct panel_cntl *panel_cntl = pipe_ctx->stream->link->panel_cntl; in dcn21_set_pipe() local
234 panel_cntl->inst, in dcn21_set_pipe()
239 panel_cntl->inst, in dcn21_set_pipe()
250 struct panel_cntl *panel_cntl = pipe_ctx->stream->link->panel_cntl; in dcn21_set_backlight_level() local
269 panel_cntl->inst, in dcn21_set_backlight_level()
[all …]
/linux-6.15/drivers/gpu/drm/amd/display/dc/hwss/dcn31/
H A Ddcn31_hwseq.c228 if (link->panel_cntl) { in dcn31_init_hw()
229 backlight = link->panel_cntl->funcs->hw_init(link->panel_cntl); in dcn31_init_hw()
230 user_level = link->panel_cntl->stored_backlight_registers.USER_LEVEL; in dcn31_init_hw()
679 struct panel_cntl *panel_cntl = pipe_ctx->stream->link->panel_cntl; in dcn31_set_backlight_level() local
682 if (!abm || !tg || !panel_cntl) in dcn31_set_backlight_level()
690 panel_cntl->inst, in dcn31_set_backlight_level()
691 panel_cntl->pwrseq_inst); in dcn31_set_backlight_level()
693 dmub_abm_set_backlight(dc, backlight_level_params, panel_cntl->inst); in dcn31_set_backlight_level()
/linux-6.15/drivers/gpu/drm/amd/display/dc/hwss/dce110/
H A Ddce110_hwseq.c797 if (!link->panel_cntl) in dce110_edp_power_control()
800 link->panel_cntl->funcs->is_panel_powered_on(link->panel_cntl)) { in dce110_edp_power_control()
924 if (!link->panel_cntl) in dce110_edp_wait_for_T12()
927 if (!link->panel_cntl->funcs->is_panel_powered_on(link->panel_cntl) && in dce110_edp_wait_for_T12()
1007 if (link->panel_cntl) in dce110_edp_backlight_control()
2831 backlight = link->panel_cntl->funcs->hw_init(link->panel_cntl); in init_hw()
3155 struct panel_cntl *panel_cntl = link->panel_cntl; in dce110_set_backlight_level() local
3185 struct panel_cntl *panel_cntl = pipe_ctx->stream->link->panel_cntl; in dce110_set_abm_immediate_disable() local
3191 if (panel_cntl) in dce110_set_abm_immediate_disable()
3192 panel_cntl->funcs->store_backlight_level(panel_cntl); in dce110_set_abm_immediate_disable()
[all …]
/linux-6.15/drivers/gpu/drm/amd/display/dc/link/
H A Dlink_factory.c385 if (link->panel_cntl) in link_destruct()
386 link->panel_cntl->funcs->destroy(&link->panel_cntl); in link_destruct()
637 link->panel_cntl = in construct_phy()
642 if (link->panel_cntl == NULL) { in construct_phy()
731 if (link->panel_cntl != NULL) in construct_phy()
732 link->panel_cntl->funcs->destroy(&link->panel_cntl); in construct_phy()
/linux-6.15/drivers/gpu/drm/amd/display/dc/link/protocols/
H A Dlink_edp_panel_control.c534 if (link->panel_cntl) in edp_set_backlight_level()
535 link->panel_cntl->stored_backlight_registers.USER_LEVEL = backlight_pwm_u16_16; in edp_set_backlight_level()
1147 struct panel_cntl *panel_cntl = link->panel_cntl; in edp_get_backlight_level() local
1155 if (!fw_set_brightness && panel_cntl->funcs->get_current_backlight) in edp_get_backlight_level()
1156 return panel_cntl->funcs->get_current_backlight(panel_cntl); in edp_get_backlight_level()
/linux-6.15/drivers/gpu/drm/amd/display/dc/resource/dce100/
H A 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()
/linux-6.15/drivers/gpu/drm/amd/display/dc/resource/dce120/
H A Ddce120_resource.c732 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()
/linux-6.15/drivers/gpu/drm/amd/display/dc/resource/dce112/
H A 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()
/linux-6.15/drivers/gpu/drm/amd/display/dc/resource/dce80/
H A Ddce80_resource.c741 static struct panel_cntl *dce80_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dce80_panel_cntl_create()
743 struct dce_panel_cntl *panel_cntl = in dce80_panel_cntl_create() local
746 if (!panel_cntl) in dce80_panel_cntl_create()
749 dce_panel_cntl_construct(panel_cntl, in dce80_panel_cntl_create()
755 return &panel_cntl->base; in dce80_panel_cntl_create()
/linux-6.15/drivers/gpu/drm/amd/display/dc/dce60/
H A 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()
/linux-6.15/drivers/gpu/drm/amd/display/dc/resource/dcn303/
H A Ddcn303_resource.c863 static struct panel_cntl *dcn303_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dcn303_panel_cntl_create()
865 struct dce_panel_cntl *panel_cntl = kzalloc(sizeof(struct dce_panel_cntl), GFP_KERNEL); in dcn303_panel_cntl_create() local
867 if (!panel_cntl) in dcn303_panel_cntl_create()
870 dce_panel_cntl_construct(panel_cntl, init_data, &panel_cntl_regs[init_data->inst], in dcn303_panel_cntl_create()
873 return &panel_cntl->base; in dcn303_panel_cntl_create()
/linux-6.15/drivers/gpu/drm/amd/display/dc/resource/dcn302/
H A Ddcn302_resource.c917 static struct panel_cntl *dcn302_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dcn302_panel_cntl_create()
919 struct dce_panel_cntl *panel_cntl = kzalloc(sizeof(struct dce_panel_cntl), GFP_KERNEL); in dcn302_panel_cntl_create() local
921 if (!panel_cntl) in dcn302_panel_cntl_create()
924 dce_panel_cntl_construct(panel_cntl, init_data, &panel_cntl_regs[init_data->inst], in dcn302_panel_cntl_create()
927 return &panel_cntl->base; in dcn302_panel_cntl_create()
/linux-6.15/drivers/gpu/drm/amd/display/dc/resource/dce110/
H A 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()
/linux-6.15/drivers/gpu/drm/amd/display/dc/resource/dcn10/
H A Ddcn10_resource.c759 static struct panel_cntl *dcn10_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dcn10_panel_cntl_create()
761 struct dce_panel_cntl *panel_cntl = in dcn10_panel_cntl_create() local
764 if (!panel_cntl) in dcn10_panel_cntl_create()
767 dce_panel_cntl_construct(panel_cntl, in dcn10_panel_cntl_create()
773 return &panel_cntl->base; in dcn10_panel_cntl_create()
/linux-6.15/drivers/gpu/drm/amd/display/dc/resource/dcn301/
H A Ddcn301_resource.c900 static struct panel_cntl *dcn301_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dcn301_panel_cntl_create()
902 struct dcn301_panel_cntl *panel_cntl = in dcn301_panel_cntl_create() local
905 if (!panel_cntl) in dcn301_panel_cntl_create()
908 dcn301_panel_cntl_construct(panel_cntl, in dcn301_panel_cntl_create()
914 return &panel_cntl->base; in dcn301_panel_cntl_create()
/linux-6.15/drivers/gpu/drm/amd/display/dc/resource/dcn21/
H A Ddcn21_resource.c1318 static struct panel_cntl *dcn21_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dcn21_panel_cntl_create()
1320 struct dce_panel_cntl *panel_cntl = in dcn21_panel_cntl_create() local
1323 if (!panel_cntl) in dcn21_panel_cntl_create()
1326 dce_panel_cntl_construct(panel_cntl, in dcn21_panel_cntl_create()
1332 return &panel_cntl->base; in dcn21_panel_cntl_create()
/linux-6.15/drivers/gpu/drm/amd/display/dc/hwss/dcn30/
H A Ddcn30_hwseq.c773 if (link->panel_cntl) { in dcn30_init_hw()
774 backlight = link->panel_cntl->funcs->hw_init(link->panel_cntl); in dcn30_init_hw()
775 user_level = link->panel_cntl->stored_backlight_registers.USER_LEVEL; in dcn30_init_hw()
/linux-6.15/drivers/gpu/drm/amd/display/dc/resource/dcn316/
H A Ddcn316_resource.c1128 static struct panel_cntl *dcn31_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dcn31_panel_cntl_create()
1130 struct dcn31_panel_cntl *panel_cntl = in dcn31_panel_cntl_create() local
1133 if (!panel_cntl) in dcn31_panel_cntl_create()
1136 dcn31_panel_cntl_construct(panel_cntl, init_data); in dcn31_panel_cntl_create()
1138 return &panel_cntl->base; in dcn31_panel_cntl_create()

12