Home
last modified time | relevance | path

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

12

/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dcn31/
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
80 cmd.panel_cntl.header.payload_bytes = sizeof(cmd.panel_cntl.data); in dcn31_panel_cntl_hw_init()
82 cmd.panel_cntl.data.bl_pwm_cntl = panel_cntl->stored_backlight_registers.BL_PWM_CNTL; in dcn31_panel_cntl_hw_init()
91 panel_cntl->stored_backlight_registers.BL_PWM_CNTL = cmd.panel_cntl.data.bl_pwm_cntl; in dcn31_panel_cntl_hw_init()
102 static void dcn31_panel_cntl_destroy(struct panel_cntl **panel_cntl) in dcn31_panel_cntl_destroy() argument
107 *panel_cntl = NULL; in dcn31_panel_cntl_destroy()
110 static bool dcn31_is_panel_backlight_on(struct panel_cntl *panel_cntl) in dcn31_is_panel_backlight_on() argument
120 static bool dcn31_is_panel_powered_on(struct panel_cntl *panel_cntl) in dcn31_is_panel_powered_on() argument
[all …]
A Ddcn31_panel_cntl.h33 struct panel_cntl base;
A Ddcn31_hwseq.c254 if (link->panel_cntl) in dcn31_init_hw()
255 backlight = link->panel_cntl->funcs->hw_init(link->panel_cntl); in dcn31_init_hw()
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dcn301/
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 …]
A Ddcn301_panel_cntl.h84 struct panel_cntl base;
91 struct dcn301_panel_cntl *panel_cntl,
A Ddcn301_resource.c916 static struct panel_cntl *dcn301_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dcn301_panel_cntl_create()
918 struct dcn301_panel_cntl *panel_cntl = in dcn301_panel_cntl_create() local
921 if (!panel_cntl) in dcn301_panel_cntl_create()
924 dcn301_panel_cntl_construct(panel_cntl, in dcn301_panel_cntl_create()
930 return &panel_cntl->base; in dcn301_panel_cntl_create()
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dce/
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 …]
A Ddce_panel_cntl.h116 struct panel_cntl base;
123 struct dce_panel_cntl *panel_cntl,
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/inc/hw/
A 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);
61 struct panel_cntl { struct
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dcn21/
A Ddcn21_hwseq.c166 struct panel_cntl *panel_cntl = pipe_ctx->stream->link->panel_cntl; in dcn21_set_abm_immediate_disable() local
175 if (abm && panel_cntl) { in dcn21_set_abm_immediate_disable()
177 panel_cntl->inst); in dcn21_set_abm_immediate_disable()
178 panel_cntl->funcs->store_backlight_level(panel_cntl); in dcn21_set_abm_immediate_disable()
186 struct panel_cntl *panel_cntl = pipe_ctx->stream->link->panel_cntl; in dcn21_set_pipe() local
194 if (abm && panel_cntl) in dcn21_set_pipe()
195 dmub_abm_set_pipe(abm, otg_inst, SET_ABM_PIPE_NORMAL, panel_cntl->inst); in dcn21_set_pipe()
206 struct panel_cntl *panel_cntl = pipe_ctx->stream->link->panel_cntl; in dcn21_set_backlight_level() local
213 if (abm && panel_cntl) in dcn21_set_backlight_level()
214 dmub_abm_set_pipe(abm, otg_inst, SET_ABM_PIPE_NORMAL, panel_cntl->inst); in dcn21_set_backlight_level()
[all …]
A Ddcn21_resource.c1359 static struct panel_cntl *dcn21_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dcn21_panel_cntl_create()
1361 struct dce_panel_cntl *panel_cntl = in dcn21_panel_cntl_create() local
1364 if (!panel_cntl) in dcn21_panel_cntl_create()
1367 dce_panel_cntl_construct(panel_cntl, in dcn21_panel_cntl_create()
1373 return &panel_cntl->base; in dcn21_panel_cntl_create()
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/link/
A Dlink_factory.c118 if (link->panel_cntl) in link_destruct()
119 link->panel_cntl->funcs->destroy(&link->panel_cntl); in link_destruct()
337 link->panel_cntl = in dc_link_construct_phy()
342 if (link->panel_cntl == NULL) { in dc_link_construct_phy()
460 if (link->panel_cntl != NULL) in dc_link_construct_phy()
461 link->panel_cntl->funcs->destroy(&link->panel_cntl); in dc_link_construct_phy()
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dce110/
A Ddce110_hw_sequencer.c802 if (!link->panel_cntl) in dce110_edp_power_control()
805 link->panel_cntl->funcs->is_panel_powered_on(link->panel_cntl)) { in dce110_edp_power_control()
929 if (!link->panel_cntl) in dce110_edp_wait_for_T12()
932 if (!link->panel_cntl->funcs->is_panel_powered_on(link->panel_cntl) && in dce110_edp_wait_for_T12()
969 if (link->panel_cntl) { in dce110_edp_backlight_control()
2619 backlight = link->panel_cntl->funcs->hw_init(link->panel_cntl); in init_hw()
2940 struct panel_cntl *panel_cntl = link->panel_cntl; in dce110_set_backlight_level() local
2970 struct panel_cntl *panel_cntl = pipe_ctx->stream->link->panel_cntl; in dce110_set_abm_immediate_disable() local
2976 if (panel_cntl) in dce110_set_abm_immediate_disable()
2977 panel_cntl->funcs->store_backlight_level(panel_cntl); in dce110_set_abm_immediate_disable()
[all …]
A Ddce110_resource.c685 static struct panel_cntl *dce110_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dce110_panel_cntl_create()
687 struct dce_panel_cntl *panel_cntl = in dce110_panel_cntl_create() local
690 if (!panel_cntl) in dce110_panel_cntl_create()
693 dce_panel_cntl_construct(panel_cntl, in dce110_panel_cntl_create()
699 return &panel_cntl->base; in dce110_panel_cntl_create()
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/link/protocols/
A Dlink_edp_panel_control.c809 struct panel_cntl *panel_cntl = link->panel_cntl; in dc_link_get_backlight_level() local
817 if (!fw_set_brightness && panel_cntl->funcs->get_current_backlight) in dc_link_get_backlight_level()
818 return panel_cntl->funcs->get_current_backlight(panel_cntl); in dc_link_get_backlight_level()
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dce100/
A Ddce100_resource.c637 static struct panel_cntl *dce100_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dce100_panel_cntl_create()
639 struct dce_panel_cntl *panel_cntl = in dce100_panel_cntl_create() local
642 if (!panel_cntl) in dce100_panel_cntl_create()
645 dce_panel_cntl_construct(panel_cntl, in dce100_panel_cntl_create()
651 return &panel_cntl->base; in dce100_panel_cntl_create()
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/
A Ddc_link.h243 struct panel_cntl *panel_cntl; member
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dce120/
A Ddce120_resource.c724 static struct panel_cntl *dce120_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dce120_panel_cntl_create()
726 struct dce_panel_cntl *panel_cntl = in dce120_panel_cntl_create() local
729 if (!panel_cntl) in dce120_panel_cntl_create()
732 dce_panel_cntl_construct(panel_cntl, in dce120_panel_cntl_create()
738 return &panel_cntl->base; in dce120_panel_cntl_create()
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dce112/
A Ddce112_resource.c643 static struct panel_cntl *dce112_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dce112_panel_cntl_create()
645 struct dce_panel_cntl *panel_cntl = in dce112_panel_cntl_create() local
648 if (!panel_cntl) in dce112_panel_cntl_create()
651 dce_panel_cntl_construct(panel_cntl, in dce112_panel_cntl_create()
657 return &panel_cntl->base; in dce112_panel_cntl_create()
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dce60/
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.3-rc2/drivers/gpu/drm/amd/display/dc/dce80/
A Ddce80_resource.c738 static struct panel_cntl *dce80_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dce80_panel_cntl_create()
740 struct dce_panel_cntl *panel_cntl = in dce80_panel_cntl_create() local
743 if (!panel_cntl) in dce80_panel_cntl_create()
746 dce_panel_cntl_construct(panel_cntl, in dce80_panel_cntl_create()
752 return &panel_cntl->base; in dce80_panel_cntl_create()
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dcn10/
A Ddcn10_resource.c768 static struct panel_cntl *dcn10_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dcn10_panel_cntl_create()
770 struct dce_panel_cntl *panel_cntl = in dcn10_panel_cntl_create() local
773 if (!panel_cntl) in dcn10_panel_cntl_create()
776 dce_panel_cntl_construct(panel_cntl, in dcn10_panel_cntl_create()
782 return &panel_cntl->base; in dcn10_panel_cntl_create()
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dcn303/
A Ddcn303_resource.c860 static struct panel_cntl *dcn303_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dcn303_panel_cntl_create()
862 struct dce_panel_cntl *panel_cntl = kzalloc(sizeof(struct dce_panel_cntl), GFP_KERNEL); in dcn303_panel_cntl_create() local
864 if (!panel_cntl) in dcn303_panel_cntl_create()
867 dce_panel_cntl_construct(panel_cntl, init_data, &panel_cntl_regs[init_data->inst], in dcn303_panel_cntl_create()
870 return &panel_cntl->base; in dcn303_panel_cntl_create()
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dcn302/
A Ddcn302_resource.c933 static struct panel_cntl *dcn302_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dcn302_panel_cntl_create()
935 struct dce_panel_cntl *panel_cntl = kzalloc(sizeof(struct dce_panel_cntl), GFP_KERNEL); in dcn302_panel_cntl_create() local
937 if (!panel_cntl) in dcn302_panel_cntl_create()
940 dce_panel_cntl_construct(panel_cntl, init_data, &panel_cntl_regs[init_data->inst], in dcn302_panel_cntl_create()
943 return &panel_cntl->base; in dcn302_panel_cntl_create()
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dcn316/
A Ddcn316_resource.c1147 static struct panel_cntl *dcn31_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dcn31_panel_cntl_create()
1149 struct dcn31_panel_cntl *panel_cntl = in dcn31_panel_cntl_create() local
1152 if (!panel_cntl) in dcn31_panel_cntl_create()
1155 dcn31_panel_cntl_construct(panel_cntl, init_data); in dcn31_panel_cntl_create()
1157 return &panel_cntl->base; in dcn31_panel_cntl_create()

Completed in 55 milliseconds

12