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

12

/linux-master/drivers/gpu/drm/amd/display/dc/inc/hw/
H A Dpanel_cntl.h24 * panel_cntl.h
47 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_cnt
63 struct panel_cntl { struct
[all...]
/linux-master/drivers/gpu/drm/amd/display/dc/dcn31/
H A Ddcn31_panel_cntl.c32 #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) argument
43 struct dcn31_panel_cntl *dcn31_panel_cntl = TO_DCN31_PANEL_CNTL(panel_cntl);
44 struct dc_dmub_srv *dc_dmub_srv = panel_cntl->ctx->dmub_srv;
50 cmd->panel_cntl.header.type = DMUB_CMD__PANEL_CNTL;
51 cmd->panel_cntl.header.sub_type = DMUB_CMD__PANEL_CNTL_QUERY_BACKLIGHT_INFO;
52 cmd->panel_cntl.header.payload_bytes = sizeof(cmd->panel_cntl
58 dcn31_get_16_bit_backlight_from_pwm(struct panel_cntl *panel_cntl) argument
68 dcn31_panel_cntl_hw_init(struct panel_cntl *panel_cntl) argument
102 dcn31_panel_cntl_destroy(struct panel_cntl **panel_cntl) argument
110 dcn31_is_panel_backlight_on(struct panel_cntl *panel_cntl) argument
120 dcn31_is_panel_powered_on(struct panel_cntl *panel_cntl) argument
130 dcn31_store_backlight_level(struct panel_cntl *panel_cntl) argument
[all...]
H A Ddcn31_panel_cntl.h29 #include "panel_cntl.h"
33 struct panel_cntl base;
/linux-master/drivers/gpu/drm/amd/display/dc/dcn301/
H A Ddcn301_panel_cntl.c32 #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) argument
55 struct dcn301_panel_cntl *dcn301_panel_cntl = TO_DCN301_PANEL_CNTL(panel_cntl);
96 static uint32_t dcn301_panel_cntl_hw_init(struct panel_cntl *panel_cntl) argument
98 struct dcn301_panel_cntl *dcn301_panel_cntl = TO_DCN301_PANEL_CNTL(panel_cntl);
109 if (panel_cntl->stored_backlight_registers.BL_PWM_CNTL != 0) {
111 panel_cntl
150 dcn301_panel_cntl_destroy(struct panel_cntl **panel_cntl) argument
158 dcn301_is_panel_backlight_on(struct panel_cntl *panel_cntl) argument
168 dcn301_is_panel_powered_on(struct panel_cntl *panel_cntl) argument
180 dcn301_store_backlight_level(struct panel_cntl *panel_cntl) argument
[all...]
H A Ddcn301_panel_cntl.h29 #include "panel_cntl.h"
84 struct panel_cntl base;
91 struct dcn301_panel_cntl *panel_cntl,
/linux-master/drivers/gpu/drm/amd/display/dc/dce/
H A Ddce_panel_cntl.c29 #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) argument
55 struct dce_panel_cntl *dce_panel_cntl = TO_DCE_PANEL_CNTL(panel_cntl);
89 static uint32_t dce_panel_cntl_hw_init(struct panel_cntl *panel_cntl) argument
91 struct dce_panel_cntl *dce_panel_cntl = TO_DCE_PANEL_CNTL(panel_cntl);
101 if (panel_cntl
147 dce_is_panel_backlight_on(struct panel_cntl *panel_cntl) argument
161 dce_is_panel_powered_on(struct panel_cntl *panel_cntl) argument
173 dce_store_backlight_level(struct panel_cntl *panel_cntl) argument
188 dce_driver_set_backlight(struct panel_cntl *panel_cntl, uint32_t backlight_pwm_u16_16) argument
254 dce_panel_cntl_destroy(struct panel_cntl **panel_cntl) argument
[all...]
H A Ddce_panel_cntl.h29 #include "panel_cntl.h"
116 struct panel_cntl base;
123 struct dce_panel_cntl *panel_cntl,
/linux-master/drivers/gpu/drm/amd/display/dc/hwss/dcn21/
H A Ddcn21_hwseq.c183 struct panel_cntl *panel_cntl = pipe_ctx->stream->link->panel_cntl; local
191 if (abm && panel_cntl) {
194 panel_cntl->inst, panel_cntl->pwrseq_inst);
199 panel_cntl->inst,
200 panel_cntl->pwrseq_inst);
202 panel_cntl->funcs->store_backlight_level(panel_cntl);
210 struct panel_cntl *panel_cntl = pipe_ctx->stream->link->panel_cntl; local
245 struct panel_cntl *panel_cntl = pipe_ctx->stream->link->panel_cntl; local
[all...]
/linux-master/drivers/gpu/drm/amd/display/dc/hwss/dce110/
H A Ddce110_hwseq.c57 #include "panel_cntl.h"
803 if (!link->panel_cntl)
806 link->panel_cntl->funcs->is_panel_powered_on(link->panel_cntl)) {
877 pwrseq_instance = link->panel_cntl->pwrseq_inst;
930 if (!link->panel_cntl)
933 if (!link->panel_cntl->funcs->is_panel_powered_on(link->panel_cntl) &&
970 if (link->panel_cntl && !(link->dpcd_sink_ext_caps.bits.oled ||
973 bool is_backlight_on = link->panel_cntl
3025 struct panel_cntl *panel_cntl = link->panel_cntl; local
3055 struct panel_cntl *panel_cntl = pipe_ctx->stream->link->panel_cntl; local
3068 struct panel_cntl *panel_cntl = pipe_ctx->stream->link->panel_cntl; local
[all...]
/linux-master/drivers/gpu/drm/amd/display/dc/link/
H A Dlink_factory.c385 if (link->panel_cntl)
386 link->panel_cntl->funcs->destroy(&link->panel_cntl);
637 link->panel_cntl =
642 if (link->panel_cntl == NULL) {
643 DC_ERROR("Failed to create link panel_cntl!\n");
729 if (link->panel_cntl != NULL)
730 link->panel_cntl->funcs->destroy(&link->panel_cntl);
/linux-master/drivers/gpu/drm/amd/display/dc/link/protocols/
H A Dlink_edp_panel_control.c532 if (link->panel_cntl)
533 link->panel_cntl->stored_backlight_registers.USER_LEVEL = backlight_pwm_u16_16;
1123 struct panel_cntl *panel_cntl = link->panel_cntl; local
1131 if (!fw_set_brightness && panel_cntl->funcs->get_current_backlight)
1132 return panel_cntl->funcs->get_current_backlight(panel_cntl);
/linux-master/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)
643 struct dce_panel_cntl *panel_cntl = local
646 if (!panel_cntl)
649 dce_panel_cntl_construct(panel_cntl,
655 return &panel_cntl->base;
/linux-master/drivers/gpu/drm/amd/display/dc/resource/dce120/
H A Ddce120_resource.c725 static struct panel_cntl *dce120_panel_cntl_create(const struct panel_cntl_init_data *init_data)
727 struct dce_panel_cntl *panel_cntl = local
730 if (!panel_cntl)
733 dce_panel_cntl_construct(panel_cntl,
739 return &panel_cntl->base;
/linux-master/drivers/gpu/drm/amd/display/dc/hwss/dcn31/
H A Ddcn31_hwseq.c226 if (link->panel_cntl) {
227 backlight = link->panel_cntl->funcs->hw_init(link->panel_cntl);
228 user_level = link->panel_cntl->stored_backlight_registers.USER_LEVEL;
/linux-master/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)
737 struct dce_panel_cntl *panel_cntl = local
740 if (!panel_cntl)
743 dce_panel_cntl_construct(panel_cntl,
749 return &panel_cntl->base;
/linux-master/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)
688 struct dce_panel_cntl *panel_cntl = local
691 if (!panel_cntl)
694 dce_panel_cntl_construct(panel_cntl,
700 return &panel_cntl->base;
/linux-master/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)
649 struct dce_panel_cntl *panel_cntl = local
652 if (!panel_cntl)
655 dce_panel_cntl_construct(panel_cntl,
661 return &panel_cntl->base;
/linux-master/drivers/gpu/drm/amd/display/dc/resource/dce80/
H A Ddce80_resource.c742 static struct panel_cntl *dce80_panel_cntl_create(const struct panel_cntl_init_data *init_data)
744 struct dce_panel_cntl *panel_cntl = local
747 if (!panel_cntl)
750 dce_panel_cntl_construct(panel_cntl,
756 return &panel_cntl->base;
/linux-master/drivers/gpu/drm/amd/display/dc/resource/dcn10/
H A Ddcn10_resource.c771 static struct panel_cntl *dcn10_panel_cntl_create(const struct panel_cntl_init_data *init_data)
773 struct dce_panel_cntl *panel_cntl = local
776 if (!panel_cntl)
779 dce_panel_cntl_construct(panel_cntl,
785 return &panel_cntl->base;
/linux-master/drivers/gpu/drm/amd/display/dc/resource/dcn302/
H A Ddcn302_resource.c918 static struct panel_cntl *dcn302_panel_cntl_create(const struct panel_cntl_init_data *init_data)
920 struct dce_panel_cntl *panel_cntl = kzalloc(sizeof(struct dce_panel_cntl), GFP_KERNEL); local
922 if (!panel_cntl)
925 dce_panel_cntl_construct(panel_cntl, init_data, &panel_cntl_regs[init_data->inst],
928 return &panel_cntl->base;
/linux-master/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)
865 struct dce_panel_cntl *panel_cntl = kzalloc(sizeof(struct dce_panel_cntl), GFP_KERNEL); local
867 if (!panel_cntl)
870 dce_panel_cntl_construct(panel_cntl, init_data, &panel_cntl_regs[init_data->inst],
873 return &panel_cntl->base;
/linux-master/drivers/gpu/drm/amd/display/dc/hwss/dcn30/
H A Ddcn30_hwseq.c765 if (link->panel_cntl) {
766 backlight = link->panel_cntl->funcs->hw_init(link->panel_cntl);
767 user_level = link->panel_cntl->stored_backlight_registers.USER_LEVEL;
/linux-master/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)
1346 struct dce_panel_cntl *panel_cntl = local
1349 if (!panel_cntl)
1352 dce_panel_cntl_construct(panel_cntl,
1358 return &panel_cntl->base;
/linux-master/drivers/gpu/drm/amd/display/dc/resource/dcn314/
H A Ddcn314_resource.c1210 static struct panel_cntl *dcn31_panel_cntl_create(const struct panel_cntl_init_data *init_data)
1212 struct dcn31_panel_cntl *panel_cntl = local
1215 if (!panel_cntl)
1218 dcn31_panel_cntl_construct(panel_cntl, init_data);
1220 return &panel_cntl->base;
/linux-master/drivers/gpu/drm/amd/display/dc/resource/dcn315/
H A Ddcn315_resource.c1134 static struct panel_cntl *dcn31_panel_cntl_create(const struct panel_cntl_init_data *init_data)
1136 struct dcn31_panel_cntl *panel_cntl = local
1139 if (!panel_cntl)
1142 dcn31_panel_cntl_construct(panel_cntl, init_data);
1144 return &panel_cntl->base;

Completed in 252 milliseconds

12