| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dce/ |
| H A D | dce_panel_cntl.c | 33 #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 …]
|
| H A D | dce_panel_cntl.h | 116 struct panel_cntl base; 123 struct dce_panel_cntl *panel_cntl,
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/inc/hw/ |
| H A D | panel_cntl.h | 45 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
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dcn21/ |
| H A D | dcn21_hwseq.c | 165 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()
|
| H A D | dcn21_resource.c | 1719 static struct panel_cntl *dcn21_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dcn21_panel_cntl_create() 1721 struct dce_panel_cntl *panel_cntl = in dcn21_panel_cntl_create() local 1724 if (!panel_cntl) in dcn21_panel_cntl_create() 1727 dce_panel_cntl_construct(panel_cntl, in dcn21_panel_cntl_create() 1733 return &panel_cntl->base; in dcn21_panel_cntl_create()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dce110/ |
| H A D | dce110_hw_sequencer.c | 808 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() 2492 if (link->panel_cntl) in init_hw() 2493 backlight = link->panel_cntl->funcs->hw_init(link->panel_cntl); in init_hw() 2814 struct panel_cntl *panel_cntl = link->panel_cntl; in dce110_set_backlight_level() local 2822 if (abm == NULL || panel_cntl == NULL || (abm->funcs->set_backlight_level_pwm == NULL)) in dce110_set_backlight_level() 2828 if (!fw_set_brightness && panel_cntl->funcs->driver_set_backlight) in dce110_set_backlight_level() 2829 panel_cntl->funcs->driver_set_backlight(panel_cntl, backlight_pwm_u16_16); in dce110_set_backlight_level() [all …]
|
| H A D | dce110_resource.c | 693 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()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/ |
| H A D | dc_link.h | 137 struct panel_cntl *panel_cntl; member
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dce100/ |
| H A D | dce100_resource.c | 643 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()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dce120/ |
| H A D | dce120_resource.c | 732 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()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dce60/ |
| H A D | dce60_resource.c | 739 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()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dce80/ |
| H A D | dce80_resource.c | 744 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()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dce112/ |
| H A D | dce112_resource.c | 649 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()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dcn10/ |
| H A D | dcn10_resource.c | 833 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()
|
| H A D | dcn10_hw_sequencer.c | 1416 if (link->panel_cntl) in dcn10_init_hw() 1417 backlight = link->panel_cntl->funcs->hw_init(link->panel_cntl); in dcn10_init_hw()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dcn30/ |
| H A D | dcn30_hwseq.c | 609 if (link->panel_cntl) in dcn30_init_hw() 610 backlight = link->panel_cntl->funcs->hw_init(link->panel_cntl); in dcn30_init_hw()
|
| H A D | dcn30_resource.c | 1075 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()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/core/ |
| H A D | dc_link.c | 91 if (link->panel_cntl) in dc_link_destruct() 92 link->panel_cntl->funcs->destroy(&link->panel_cntl); in dc_link_destruct() 1489 link->panel_cntl = in dc_link_construct() 1493 if (link->panel_cntl == NULL) { in dc_link_construct() 1584 if (link->panel_cntl != NULL) in dc_link_construct() 1585 link->panel_cntl->funcs->destroy(&link->panel_cntl); in dc_link_construct()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/inc/ |
| H A D | core_types.h | 96 struct panel_cntl*(*panel_cntl_create)(
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dcn20/ |
| H A D | dcn20_resource.c | 1310 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()
|