Home
last modified time | relevance | path

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

12

/linux/drivers/gpu/drm/amd/display/dc/dcn31/
H A 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 …]
H A Ddcn31_panel_cntl.h36 struct panel_cntl base;
/linux/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
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 …]
H A Ddce_panel_cntl.h116 struct panel_cntl base;
123 struct dce_panel_cntl *panel_cntl,
/linux/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
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 …]
H A Ddcn301_panel_cntl.h84 struct panel_cntl base;
91 struct dcn301_panel_cntl *panel_cntl,
/linux/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/drivers/gpu/drm/amd/display/dc/hwss/dcn21/
H A Ddcn21_hwseq.c182 struct panel_cntl *panel_cntl = pipe_ctx->stream->link->panel_cntl; in dcn21_set_abm_immediate_disable() local
196 if (abm && panel_cntl) { in dcn21_set_abm_immediate_disable()
199 panel_cntl->inst, panel_cntl->pwrseq_inst); in dcn21_set_abm_immediate_disable()
204 panel_cntl->inst, in dcn21_set_abm_immediate_disable()
205 panel_cntl->pwrseq_inst); in dcn21_set_abm_immediate_disable()
207 panel_cntl->funcs->store_backlight_level(panel_cntl); in dcn21_set_abm_immediate_disable()
215 struct panel_cntl *panel_cntl = pipe_ctx->stream->link->panel_cntl; in dcn21_set_pipe() local
219 if (!abm || !tg || !panel_cntl) in dcn21_set_pipe()
233 panel_cntl->inst, in dcn21_set_pipe()
234 panel_cntl->pwrseq_inst); in dcn21_set_pipe()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/hwss/dce110/
H A Ddce110_hwseq.c779 if (!link->panel_cntl) in dce110_edp_power_control()
782 link->panel_cntl->funcs->is_panel_powered_on(link->panel_cntl)) { in dce110_edp_power_control()
853 pwrseq_instance = link->panel_cntl->pwrseq_inst; in dce110_edp_power_control()
906 if (!link->panel_cntl) in dce110_edp_wait_for_T12()
909 if (!link->panel_cntl->funcs->is_panel_powered_on(link->panel_cntl) && in dce110_edp_wait_for_T12()
946 if (link->panel_cntl && !(link->dpcd_sink_ext_caps.bits.oled || in dce110_edp_backlight_control()
949 bool is_backlight_on = link->panel_cntl->funcs->is_panel_backlight_on(link->panel_cntl); in dce110_edp_backlight_control()
989 if (link->panel_cntl) in dce110_edp_backlight_control()
990 pwrseq_instance = link->panel_cntl->pwrseq_inst; in dce110_edp_backlight_control()
2861 if (link->panel_cntl) { in dce110_init_hw()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/hwss/dcn31/
H A Ddcn31_hwseq.c230 if (link->panel_cntl) { in dcn31_init_hw()
231 backlight = link->panel_cntl->funcs->hw_init(link->panel_cntl); in dcn31_init_hw()
232 user_level = link->panel_cntl->stored_backlight_registers.USER_LEVEL; in dcn31_init_hw()
711 struct panel_cntl *panel_cntl = pipe_ctx->stream->link->panel_cntl; in dcn31_set_backlight_level() local
714 if (!abm || !tg || !panel_cntl) in dcn31_set_backlight_level()
722 panel_cntl->inst, in dcn31_set_backlight_level()
723 panel_cntl->pwrseq_inst); in dcn31_set_backlight_level()
726 dmub_abm_set_backlight(dc, backlight_level_params, panel_cntl->inst); in dcn31_set_backlight_level()
/linux/drivers/gpu/drm/amd/display/dc/link/
H A Dlink_factory.c377 if (link->panel_cntl) in link_destruct()
378 link->panel_cntl->funcs->destroy(&link->panel_cntl); in link_destruct()
713 link->panel_cntl = in construct_phy()
718 if (link->panel_cntl == NULL) { in construct_phy()
812 if (link->panel_cntl) in construct_phy()
813 link->panel_cntl->funcs->destroy(&link->panel_cntl); in construct_phy()
/linux/drivers/gpu/drm/amd/display/dc/resource/dce100/
H A Ddce100_resource.c666 static struct panel_cntl *dce100_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dce100_panel_cntl_create()
668 struct dce_panel_cntl *panel_cntl = in dce100_panel_cntl_create() local
671 if (!panel_cntl) in dce100_panel_cntl_create()
674 dce_panel_cntl_construct(panel_cntl, in dce100_panel_cntl_create()
680 return &panel_cntl->base; in dce100_panel_cntl_create()
/linux/drivers/gpu/drm/amd/display/dc/resource/dce120/
H A Ddce120_resource.c736 static struct panel_cntl *dce120_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dce120_panel_cntl_create()
738 struct dce_panel_cntl *panel_cntl = in dce120_panel_cntl_create() local
741 if (!panel_cntl) in dce120_panel_cntl_create()
744 dce_panel_cntl_construct(panel_cntl, in dce120_panel_cntl_create()
750 return &panel_cntl->base; in dce120_panel_cntl_create()
/linux/drivers/gpu/drm/amd/display/dc/resource/dce60/
H A Ddce60_resource.c762 static struct panel_cntl *dce60_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dce60_panel_cntl_create()
764 struct dce_panel_cntl *panel_cntl = in dce60_panel_cntl_create() local
767 if (!panel_cntl) in dce60_panel_cntl_create()
770 dce_panel_cntl_construct(panel_cntl, in dce60_panel_cntl_create()
776 return &panel_cntl->base; in dce60_panel_cntl_create()
/linux/drivers/gpu/drm/amd/display/dc/resource/dce112/
H A Ddce112_resource.c651 static struct panel_cntl *dce112_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dce112_panel_cntl_create()
653 struct dce_panel_cntl *panel_cntl = in dce112_panel_cntl_create() local
656 if (!panel_cntl) in dce112_panel_cntl_create()
659 dce_panel_cntl_construct(panel_cntl, in dce112_panel_cntl_create()
665 return &panel_cntl->base; in dce112_panel_cntl_create()
/linux/drivers/gpu/drm/amd/display/dc/resource/dce80/
H A Ddce80_resource.c768 static struct panel_cntl *dce80_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dce80_panel_cntl_create()
770 struct dce_panel_cntl *panel_cntl = in dce80_panel_cntl_create() local
773 if (!panel_cntl) in dce80_panel_cntl_create()
776 dce_panel_cntl_construct(panel_cntl, in dce80_panel_cntl_create()
782 return &panel_cntl->base; in dce80_panel_cntl_create()
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn303/
H A Ddcn303_resource.c894 static struct panel_cntl *dcn303_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dcn303_panel_cntl_create()
896 struct dce_panel_cntl *panel_cntl = kzalloc_obj(struct dce_panel_cntl); in dcn303_panel_cntl_create() local
898 if (!panel_cntl) in dcn303_panel_cntl_create()
901 dce_panel_cntl_construct(panel_cntl, init_data, &panel_cntl_regs[init_data->inst], in dcn303_panel_cntl_create()
904 return &panel_cntl->base; in dcn303_panel_cntl_create()
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn302/
H A Ddcn302_resource.c949 static struct panel_cntl *dcn302_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dcn302_panel_cntl_create()
951 struct dce_panel_cntl *panel_cntl = kzalloc_obj(struct dce_panel_cntl); in dcn302_panel_cntl_create() local
953 if (!panel_cntl) in dcn302_panel_cntl_create()
956 dce_panel_cntl_construct(panel_cntl, init_data, &panel_cntl_regs[init_data->inst], in dcn302_panel_cntl_create()
959 return &panel_cntl->base; in dcn302_panel_cntl_create()
/linux/drivers/gpu/drm/amd/display/dc/resource/dce110/
H A Ddce110_resource.c690 static struct panel_cntl *dce110_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dce110_panel_cntl_create()
692 struct dce_panel_cntl *panel_cntl = in dce110_panel_cntl_create() local
695 if (!panel_cntl) in dce110_panel_cntl_create()
698 dce_panel_cntl_construct(panel_cntl, in dce110_panel_cntl_create()
704 return &panel_cntl->base; in dce110_panel_cntl_create()
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn10/
H A Ddcn10_resource.c789 static struct panel_cntl *dcn10_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dcn10_panel_cntl_create()
791 struct dce_panel_cntl *panel_cntl = in dcn10_panel_cntl_create() local
794 if (!panel_cntl) in dcn10_panel_cntl_create()
797 dce_panel_cntl_construct(panel_cntl, in dcn10_panel_cntl_create()
803 return &panel_cntl->base; in dcn10_panel_cntl_create()
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn21/
H A Ddcn21_resource.c1344 static struct panel_cntl *dcn21_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dcn21_panel_cntl_create()
1346 struct dce_panel_cntl *panel_cntl = in dcn21_panel_cntl_create() local
1349 if (!panel_cntl) in dcn21_panel_cntl_create()
1352 dce_panel_cntl_construct(panel_cntl, in dcn21_panel_cntl_create()
1358 return &panel_cntl->base; in dcn21_panel_cntl_create()
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn301/
H A Ddcn301_resource.c929 static struct panel_cntl *dcn301_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dcn301_panel_cntl_create()
931 struct dcn301_panel_cntl *panel_cntl = in dcn301_panel_cntl_create() local
934 if (!panel_cntl) in dcn301_panel_cntl_create()
937 dcn301_panel_cntl_construct(panel_cntl, in dcn301_panel_cntl_create()
943 return &panel_cntl->base; in dcn301_panel_cntl_create()
/linux/drivers/gpu/drm/amd/display/dc/hwss/dcn30/
H A Ddcn30_hwseq.c787 if (link->panel_cntl) { in dcn30_init_hw()
788 backlight = link->panel_cntl->funcs->hw_init(link->panel_cntl); in dcn30_init_hw()
789 user_level = link->panel_cntl->stored_backlight_registers.USER_LEVEL; in dcn30_init_hw()
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn316/
H A Ddcn316_resource.c1157 static struct panel_cntl *dcn31_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dcn31_panel_cntl_create()
1159 struct dcn31_panel_cntl *panel_cntl = in dcn31_panel_cntl_create() local
1162 if (!panel_cntl) in dcn31_panel_cntl_create()
1165 dcn31_panel_cntl_construct(panel_cntl, init_data); in dcn31_panel_cntl_create()
1167 return &panel_cntl->base; in dcn31_panel_cntl_create()
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn314/
H A Ddcn314_resource.c1223 static struct panel_cntl *dcn31_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dcn31_panel_cntl_create()
1225 struct dcn31_panel_cntl *panel_cntl = in dcn31_panel_cntl_create() local
1228 if (!panel_cntl) in dcn31_panel_cntl_create()
1231 dcn31_panel_cntl_construct(panel_cntl, init_data); in dcn31_panel_cntl_create()
1233 return &panel_cntl->base; in dcn31_panel_cntl_create()

12