Home
last modified time | relevance | path

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

/Linux-v5.10/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
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->stored_backlight_registers.BL_PWM_CNTL != 0) { in dce_panel_cntl_hw_init()
114 panel_cntl->stored_backlight_registers.BL_PWM_CNTL); in dce_panel_cntl_hw_init()
116 panel_cntl->stored_backlight_registers.BL_PWM_CNTL2); in dce_panel_cntl_hw_init()
118 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,
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/inc/hw/
Dpanel_cntl.h45 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_cntl);
50 void (*driver_set_backlight)(struct panel_cntl *panel_cntl,
52 uint32_t (*get_current_backlight)(struct panel_cntl *panel_cntl);
60 struct panel_cntl { struct
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/dcn21/
Ddcn21_hwseq.c165 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->inst); in dcn21_set_pipe()
203 struct panel_cntl *panel_cntl = pipe_ctx->stream->link->panel_cntl; in dcn21_set_backlight_level() local
210 if (abm && panel_cntl) in dcn21_set_backlight_level()
211 dmub_abm_set_pipe(abm, otg_inst, SET_ABM_PIPE_NORMAL, panel_cntl->inst); in dcn21_set_backlight_level()
Ddcn21_resource.c1704 static struct panel_cntl *dcn21_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dcn21_panel_cntl_create()
1706 struct dce_panel_cntl *panel_cntl = in dcn21_panel_cntl_create() local
1709 if (!panel_cntl) in dcn21_panel_cntl_create()
1712 dce_panel_cntl_construct(panel_cntl, in dcn21_panel_cntl_create()
1718 return &panel_cntl->base; in dcn21_panel_cntl_create()
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/dce110/
Ddce110_hw_sequencer.c808 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()
2490 if (link->panel_cntl) in init_hw()
2491 backlight = link->panel_cntl->funcs->hw_init(link->panel_cntl); in init_hw()
2812 struct panel_cntl *panel_cntl = link->panel_cntl; in dce110_set_backlight_level() local
2820 if (abm == NULL || panel_cntl == NULL || (abm->funcs->set_backlight_level_pwm == NULL)) in dce110_set_backlight_level()
2826 if (!fw_set_brightness && panel_cntl->funcs->driver_set_backlight) in dce110_set_backlight_level()
2827 panel_cntl->funcs->driver_set_backlight(panel_cntl, backlight_pwm_u16_16); in dce110_set_backlight_level()
[all …]
Ddce110_resource.c693 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()
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/
Ddc_link.h137 struct panel_cntl *panel_cntl; member
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/dce100/
Ddce100_resource.c643 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()
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/dce120/
Ddce120_resource.c731 static struct panel_cntl *dce120_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dce120_panel_cntl_create()
733 struct dce_panel_cntl *panel_cntl = in dce120_panel_cntl_create() local
736 if (!panel_cntl) in dce120_panel_cntl_create()
739 dce_panel_cntl_construct(panel_cntl, in dce120_panel_cntl_create()
745 return &panel_cntl->base; in dce120_panel_cntl_create()
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/dce112/
Ddce112_resource.c649 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()
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/dce60/
Ddce60_resource.c739 static struct panel_cntl *dce60_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dce60_panel_cntl_create()
741 struct dce_panel_cntl *panel_cntl = in dce60_panel_cntl_create() local
744 if (!panel_cntl) in dce60_panel_cntl_create()
747 dce_panel_cntl_construct(panel_cntl, in dce60_panel_cntl_create()
753 return &panel_cntl->base; in dce60_panel_cntl_create()
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/dce80/
Ddce80_resource.c744 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()
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/dcn30/
Ddcn30_hwseq.c597 if (link->panel_cntl) in dcn30_init_hw()
598 backlight = link->panel_cntl->funcs->hw_init(link->panel_cntl); in dcn30_init_hw()
Ddcn30_resource.c1075 static struct panel_cntl *dcn30_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dcn30_panel_cntl_create()
1077 struct dce_panel_cntl *panel_cntl = in dcn30_panel_cntl_create() local
1080 if (!panel_cntl) in dcn30_panel_cntl_create()
1083 dce_panel_cntl_construct(panel_cntl, in dcn30_panel_cntl_create()
1089 return &panel_cntl->base; in dcn30_panel_cntl_create()
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/dcn10/
Ddcn10_resource.c833 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()
Ddcn10_hw_sequencer.c1406 if (link->panel_cntl) in dcn10_init_hw()
1407 backlight = link->panel_cntl->funcs->hw_init(link->panel_cntl); in dcn10_init_hw()
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/core/
Ddc_link.c91 if (link->panel_cntl) in dc_link_destruct()
92 link->panel_cntl->funcs->destroy(&link->panel_cntl); in dc_link_destruct()
1466 link->panel_cntl = in dc_link_construct()
1470 if (link->panel_cntl == NULL) { in dc_link_construct()
1561 if (link->panel_cntl != NULL) in dc_link_construct()
1562 link->panel_cntl->funcs->destroy(&link->panel_cntl); in dc_link_construct()
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/inc/
Dcore_types.h96 struct panel_cntl*(*panel_cntl_create)(
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/dcn20/
Ddcn20_resource.c1310 static struct panel_cntl *dcn20_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dcn20_panel_cntl_create()
1312 struct dce_panel_cntl *panel_cntl = in dcn20_panel_cntl_create() local
1315 if (!panel_cntl) in dcn20_panel_cntl_create()
1318 dce_panel_cntl_construct(panel_cntl, in dcn20_panel_cntl_create()
1324 return &panel_cntl->base; in dcn20_panel_cntl_create()