/Linux-v6.1/drivers/gpu/drm/amd/display/dc/dcn31/ |
D | dcn31_panel_cntl.c | 32 #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.inst = dcn31_panel_cntl->base.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 …]
|
D | dcn31_panel_cntl.h | 33 struct panel_cntl base;
|
D | dcn31_hwseq.c | 253 if (link->panel_cntl) in dcn31_init_hw() 254 backlight = link->panel_cntl->funcs->hw_init(link->panel_cntl); in dcn31_init_hw()
|
/Linux-v6.1/drivers/gpu/drm/amd/display/dc/dcn301/ |
D | dcn301_panel_cntl.c | 32 #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 …]
|
D | dcn301_panel_cntl.h | 84 struct panel_cntl base; 91 struct dcn301_panel_cntl *panel_cntl,
|
D | dcn301_resource.c | 915 static struct panel_cntl *dcn301_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dcn301_panel_cntl_create() 917 struct dcn301_panel_cntl *panel_cntl = in dcn301_panel_cntl_create() local 920 if (!panel_cntl) in dcn301_panel_cntl_create() 923 dcn301_panel_cntl_construct(panel_cntl, in dcn301_panel_cntl_create() 929 return &panel_cntl->base; in dcn301_panel_cntl_create()
|
/Linux-v6.1/drivers/gpu/drm/amd/display/dc/dce/ |
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 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 …]
|
D | dce_panel_cntl.h | 116 struct panel_cntl base; 123 struct dce_panel_cntl *panel_cntl,
|
/Linux-v6.1/drivers/gpu/drm/amd/display/dc/inc/hw/ |
D | panel_cntl.h | 46 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-v6.1/drivers/gpu/drm/amd/display/dc/dcn21/ |
D | dcn21_hwseq.c | 166 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 …]
|
D | dcn21_resource.c | 1358 static struct panel_cntl *dcn21_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dcn21_panel_cntl_create() 1360 struct dce_panel_cntl *panel_cntl = in dcn21_panel_cntl_create() local 1363 if (!panel_cntl) in dcn21_panel_cntl_create() 1366 dce_panel_cntl_construct(panel_cntl, in dcn21_panel_cntl_create() 1372 return &panel_cntl->base; in dcn21_panel_cntl_create()
|
/Linux-v6.1/drivers/gpu/drm/amd/display/dc/dce110/ |
D | dce110_hw_sequencer.c | 810 if (!link->panel_cntl) in dce110_edp_power_control() 813 link->panel_cntl->funcs->is_panel_powered_on(link->panel_cntl)) { in dce110_edp_power_control() 884 panel_instance = link->panel_cntl->inst; in dce110_edp_power_control() 935 if (!link->panel_cntl) in dce110_edp_wait_for_T12() 938 if (!link->panel_cntl->funcs->is_panel_powered_on(link->panel_cntl) && in dce110_edp_wait_for_T12() 976 if (link->panel_cntl) { in dce110_edp_backlight_control() 977 bool is_backlight_on = link->panel_cntl->funcs->is_panel_backlight_on(link->panel_cntl); in dce110_edp_backlight_control() 1017 panel_instance = link->panel_cntl->inst; in dce110_edp_backlight_control() 2637 if (link->panel_cntl) in init_hw() 2638 backlight = link->panel_cntl->funcs->hw_init(link->panel_cntl); in init_hw() [all …]
|
D | dce110_resource.c | 685 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-v6.1/drivers/gpu/drm/amd/display/dc/dce100/ |
D | dce100_resource.c | 637 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-v6.1/drivers/gpu/drm/amd/display/dc/dce120/ |
D | dce120_resource.c | 724 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-v6.1/drivers/gpu/drm/amd/display/dc/ |
D | dc_link.h | 217 struct panel_cntl *panel_cntl; member
|
/Linux-v6.1/drivers/gpu/drm/amd/display/dc/dce80/ |
D | dce80_resource.c | 738 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-v6.1/drivers/gpu/drm/amd/display/dc/dce112/ |
D | dce112_resource.c | 643 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-v6.1/drivers/gpu/drm/amd/display/dc/dce60/ |
D | dce60_resource.c | 735 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-v6.1/drivers/gpu/drm/amd/display/dc/dcn302/ |
D | dcn302_resource.c | 923 static struct panel_cntl *dcn302_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dcn302_panel_cntl_create() 925 struct dce_panel_cntl *panel_cntl = kzalloc(sizeof(struct dce_panel_cntl), GFP_KERNEL); in dcn302_panel_cntl_create() local 927 if (!panel_cntl) in dcn302_panel_cntl_create() 930 dce_panel_cntl_construct(panel_cntl, init_data, &panel_cntl_regs[init_data->inst], in dcn302_panel_cntl_create() 933 return &panel_cntl->base; in dcn302_panel_cntl_create()
|
/Linux-v6.1/drivers/gpu/drm/amd/display/dc/dcn303/ |
D | dcn303_resource.c | 851 static struct panel_cntl *dcn303_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dcn303_panel_cntl_create() 853 struct dce_panel_cntl *panel_cntl = kzalloc(sizeof(struct dce_panel_cntl), GFP_KERNEL); in dcn303_panel_cntl_create() local 855 if (!panel_cntl) in dcn303_panel_cntl_create() 858 dce_panel_cntl_construct(panel_cntl, init_data, &panel_cntl_regs[init_data->inst], in dcn303_panel_cntl_create() 861 return &panel_cntl->base; in dcn303_panel_cntl_create()
|
/Linux-v6.1/drivers/gpu/drm/amd/display/dc/core/ |
D | dc_link.c | 83 if (link->panel_cntl) in dc_link_destruct() 84 link->panel_cntl->funcs->destroy(&link->panel_cntl); in dc_link_destruct() 1688 link->panel_cntl = in dc_link_construct_legacy() 1693 if (link->panel_cntl == NULL) { in dc_link_construct_legacy() 1813 if (link->panel_cntl != NULL) in dc_link_construct_legacy() 1814 link->panel_cntl->funcs->destroy(&link->panel_cntl); in dc_link_construct_legacy() 3060 struct panel_cntl *panel_cntl = link->panel_cntl; in dc_link_get_backlight_level() local 3068 if (!fw_set_brightness && panel_cntl->funcs->get_current_backlight) in dc_link_get_backlight_level() 3069 return panel_cntl->funcs->get_current_backlight(panel_cntl); in dc_link_get_backlight_level()
|
/Linux-v6.1/drivers/gpu/drm/amd/display/dc/dcn10/ |
D | dcn10_resource.c | 768 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-v6.1/drivers/gpu/drm/amd/display/dc/dcn314/ |
D | dcn314_resource.c | 1173 static struct panel_cntl *dcn31_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dcn31_panel_cntl_create() 1175 struct dcn31_panel_cntl *panel_cntl = in dcn31_panel_cntl_create() local 1178 if (!panel_cntl) in dcn31_panel_cntl_create() 1181 dcn31_panel_cntl_construct(panel_cntl, init_data); in dcn31_panel_cntl_create() 1183 return &panel_cntl->base; in dcn31_panel_cntl_create()
|
/Linux-v6.1/drivers/gpu/drm/amd/display/dc/dcn315/ |
D | dcn315_resource.c | 1143 static struct panel_cntl *dcn31_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dcn31_panel_cntl_create() 1145 struct dcn31_panel_cntl *panel_cntl = in dcn31_panel_cntl_create() local 1148 if (!panel_cntl) in dcn31_panel_cntl_create() 1151 dcn31_panel_cntl_construct(panel_cntl, init_data); in dcn31_panel_cntl_create() 1153 return &panel_cntl->base; in dcn31_panel_cntl_create()
|