| /linux/drivers/gpu/drm/amd/display/dc/dcn31/ |
| H A 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.pwrseq_inst = dcn31_panel_cntl->base.pwrseq_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 …]
|
| H A D | dcn31_panel_cntl.h | 36 struct panel_cntl base;
|
| /linux/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 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 …]
|
| H A D | dce_panel_cntl.h | 116 struct panel_cntl base; 123 struct dce_panel_cntl *panel_cntl,
|
| /linux/drivers/gpu/drm/amd/display/dc/dcn301/ |
| H A 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 …]
|
| H A D | dcn301_panel_cntl.h | 84 struct panel_cntl base; 91 struct dcn301_panel_cntl *panel_cntl,
|
| /linux/drivers/gpu/drm/amd/display/dc/inc/hw/ |
| H A D | 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_cntl); 52 void (*driver_set_backlight)(struct panel_cntl *panel_cntl, 54 uint32_t (*get_current_backlight)(struct panel_cntl *panel_cntl); 63 struct panel_cntl { struct
|
| /linux/drivers/gpu/drm/amd/display/dc/hwss/dcn21/ |
| H A D | dcn21_hwseq.c | 182 struct panel_cntl *panel_cntl = pipe_ctx->stream->link->panel_cntl; in dcn21_set_abm_immediate_disable() local 196 if (abm && panel_cntl) { in dcn21_set_abm_immediate_disable() 199 panel_cntl->inst, panel_cntl->pwrseq_inst); in dcn21_set_abm_immediate_disable() 204 panel_cntl->inst, in dcn21_set_abm_immediate_disable() 205 panel_cntl->pwrseq_inst); in dcn21_set_abm_immediate_disable() 207 panel_cntl->funcs->store_backlight_level(panel_cntl); in dcn21_set_abm_immediate_disable() 215 struct panel_cntl *panel_cntl = pipe_ctx->stream->link->panel_cntl; in dcn21_set_pipe() local 219 if (!abm || !tg || !panel_cntl) in dcn21_set_pipe() 233 panel_cntl->inst, in dcn21_set_pipe() 234 panel_cntl->pwrseq_inst); in dcn21_set_pipe() [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/hwss/dce110/ |
| H A D | dce110_hwseq.c | 841 if (!link->panel_cntl) in dce110_edp_power_control() 844 link->panel_cntl->funcs->is_panel_powered_on(link->panel_cntl)) { in dce110_edp_power_control() 915 pwrseq_instance = link->panel_cntl->pwrseq_inst; in dce110_edp_power_control() 968 if (!link->panel_cntl) in dce110_edp_wait_for_T12() 971 if (!link->panel_cntl->funcs->is_panel_powered_on(link->panel_cntl) && in dce110_edp_wait_for_T12() 1010 if (link->panel_cntl && !(link->dpcd_sink_ext_caps.bits.oled || in dce110_edp_backlight_control() 1013 bool is_backlight_on = link->panel_cntl->funcs->is_panel_backlight_on(link->panel_cntl); in dce110_edp_backlight_control() 1053 if (link->panel_cntl) in dce110_edp_backlight_control() 1054 pwrseq_instance = link->panel_cntl->pwrseq_inst; in dce110_edp_backlight_control() 2972 if (link->panel_cntl) { in dce110_init_hw() [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/link/ |
| H A D | link_factory.c | 389 if (link->panel_cntl) in link_destruct() 390 link->panel_cntl->funcs->destroy(&link->panel_cntl); in link_destruct() 741 link->panel_cntl = in construct_phy() 746 if (link->panel_cntl == NULL) { in construct_phy() 841 if (link->panel_cntl) in construct_phy() 842 link->panel_cntl->funcs->destroy(&link->panel_cntl); in construct_phy()
|
| /linux/drivers/gpu/drm/amd/display/dc/resource/dce100/ |
| H A D | dce100_resource.c | 667 static struct panel_cntl *dce100_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dce100_panel_cntl_create() 669 struct dce_panel_cntl *panel_cntl = in dce100_panel_cntl_create() local 672 if (!panel_cntl) in dce100_panel_cntl_create() 675 dce_panel_cntl_construct(panel_cntl, in dce100_panel_cntl_create() 681 return &panel_cntl->base; in dce100_panel_cntl_create()
|
| /linux/drivers/gpu/drm/amd/display/dc/resource/dce120/ |
| H A D | dce120_resource.c | 737 static struct panel_cntl *dce120_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dce120_panel_cntl_create() 739 struct dce_panel_cntl *panel_cntl = in dce120_panel_cntl_create() local 742 if (!panel_cntl) in dce120_panel_cntl_create() 745 dce_panel_cntl_construct(panel_cntl, in dce120_panel_cntl_create() 751 return &panel_cntl->base; in dce120_panel_cntl_create()
|
| /linux/drivers/gpu/drm/amd/display/dc/resource/dce112/ |
| H A D | dce112_resource.c | 652 static struct panel_cntl *dce112_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dce112_panel_cntl_create() 654 struct dce_panel_cntl *panel_cntl = in dce112_panel_cntl_create() local 657 if (!panel_cntl) in dce112_panel_cntl_create() 660 dce_panel_cntl_construct(panel_cntl, in dce112_panel_cntl_create() 666 return &panel_cntl->base; in dce112_panel_cntl_create()
|
| /linux/drivers/gpu/drm/amd/display/dc/resource/dce80/ |
| H A D | dce80_resource.c | 770 static struct panel_cntl *dce80_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dce80_panel_cntl_create() 772 struct dce_panel_cntl *panel_cntl = in dce80_panel_cntl_create() local 775 if (!panel_cntl) in dce80_panel_cntl_create() 778 dce_panel_cntl_construct(panel_cntl, in dce80_panel_cntl_create() 784 return &panel_cntl->base; in dce80_panel_cntl_create()
|
| /linux/drivers/gpu/drm/amd/display/dc/resource/dce60/ |
| H A D | dce60_resource.c | 763 static struct panel_cntl *dce60_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dce60_panel_cntl_create() 765 struct dce_panel_cntl *panel_cntl = in dce60_panel_cntl_create() local 768 if (!panel_cntl) in dce60_panel_cntl_create() 771 dce_panel_cntl_construct(panel_cntl, in dce60_panel_cntl_create() 777 return &panel_cntl->base; in dce60_panel_cntl_create()
|
| /linux/drivers/gpu/drm/amd/display/dc/resource/dcn303/ |
| H A D | dcn303_resource.c | 895 static struct panel_cntl *dcn303_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dcn303_panel_cntl_create() 897 struct dce_panel_cntl *panel_cntl = kzalloc_obj(struct dce_panel_cntl); in dcn303_panel_cntl_create() local 899 if (!panel_cntl) in dcn303_panel_cntl_create() 902 dce_panel_cntl_construct(panel_cntl, init_data, &panel_cntl_regs[init_data->inst], in dcn303_panel_cntl_create() 905 return &panel_cntl->base; in dcn303_panel_cntl_create()
|
| /linux/drivers/gpu/drm/amd/display/dc/resource/dce110/ |
| H A D | dce110_resource.c | 691 static struct panel_cntl *dce110_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dce110_panel_cntl_create() 693 struct dce_panel_cntl *panel_cntl = in dce110_panel_cntl_create() local 696 if (!panel_cntl) in dce110_panel_cntl_create() 699 dce_panel_cntl_construct(panel_cntl, in dce110_panel_cntl_create() 705 return &panel_cntl->base; in dce110_panel_cntl_create()
|
| /linux/drivers/gpu/drm/amd/display/dc/resource/dcn302/ |
| H A D | dcn302_resource.c | 950 static struct panel_cntl *dcn302_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dcn302_panel_cntl_create() 952 struct dce_panel_cntl *panel_cntl = kzalloc_obj(struct dce_panel_cntl); in dcn302_panel_cntl_create() local 954 if (!panel_cntl) in dcn302_panel_cntl_create() 957 dce_panel_cntl_construct(panel_cntl, init_data, &panel_cntl_regs[init_data->inst], in dcn302_panel_cntl_create() 960 return &panel_cntl->base; in dcn302_panel_cntl_create()
|
| /linux/drivers/gpu/drm/amd/display/dc/resource/dcn21/ |
| H A D | dcn21_resource.c | 1351 static struct panel_cntl *dcn21_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dcn21_panel_cntl_create() 1353 struct dce_panel_cntl *panel_cntl = in dcn21_panel_cntl_create() local 1356 if (!panel_cntl) in dcn21_panel_cntl_create() 1359 dce_panel_cntl_construct(panel_cntl, in dcn21_panel_cntl_create() 1365 return &panel_cntl->base; in dcn21_panel_cntl_create()
|
| /linux/drivers/gpu/drm/amd/display/dc/resource/dcn10/ |
| H A D | dcn10_resource.c | 790 static struct panel_cntl *dcn10_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dcn10_panel_cntl_create() 792 struct dce_panel_cntl *panel_cntl = in dcn10_panel_cntl_create() local 795 if (!panel_cntl) in dcn10_panel_cntl_create() 798 dce_panel_cntl_construct(panel_cntl, in dcn10_panel_cntl_create() 804 return &panel_cntl->base; in dcn10_panel_cntl_create()
|
| /linux/drivers/gpu/drm/amd/display/dc/resource/dcn301/ |
| H A D | dcn301_resource.c | 930 static struct panel_cntl *dcn301_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dcn301_panel_cntl_create() 932 struct dcn301_panel_cntl *panel_cntl = in dcn301_panel_cntl_create() local 935 if (!panel_cntl) in dcn301_panel_cntl_create() 938 dcn301_panel_cntl_construct(panel_cntl, in dcn301_panel_cntl_create() 944 return &panel_cntl->base; in dcn301_panel_cntl_create()
|
| /linux/drivers/gpu/drm/amd/display/dc/resource/dcn314/ |
| H A D | dcn314_resource.c | 1224 static struct panel_cntl *dcn31_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dcn31_panel_cntl_create() 1226 struct dcn31_panel_cntl *panel_cntl = in dcn31_panel_cntl_create() local 1229 if (!panel_cntl) in dcn31_panel_cntl_create() 1232 dcn31_panel_cntl_construct(panel_cntl, init_data); in dcn31_panel_cntl_create() 1234 return &panel_cntl->base; in dcn31_panel_cntl_create()
|
| /linux/drivers/gpu/drm/amd/display/dc/resource/dcn316/ |
| H A D | dcn316_resource.c | 1158 static struct panel_cntl *dcn31_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dcn31_panel_cntl_create() 1160 struct dcn31_panel_cntl *panel_cntl = in dcn31_panel_cntl_create() local 1163 if (!panel_cntl) in dcn31_panel_cntl_create() 1166 dcn31_panel_cntl_construct(panel_cntl, init_data); in dcn31_panel_cntl_create() 1168 return &panel_cntl->base; in dcn31_panel_cntl_create()
|
| /linux/drivers/gpu/drm/amd/display/dc/resource/dcn35/ |
| H A D | dcn35_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/drivers/gpu/drm/amd/display/dc/resource/dcn31/ |
| H A D | dcn31_resource.c | 1166 static struct panel_cntl *dcn31_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dcn31_panel_cntl_create() 1168 struct dcn31_panel_cntl *panel_cntl = in dcn31_panel_cntl_create() local 1171 if (!panel_cntl) in dcn31_panel_cntl_create() 1174 dcn31_panel_cntl_construct(panel_cntl, init_data); in dcn31_panel_cntl_create() 1176 return &panel_cntl->base; in dcn31_panel_cntl_create()
|