/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/dcn31/ |
H A D | dcn31_hwseq.c | 228 if (link->panel_cntl) { in dcn31_init_hw() 229 backlight = link->panel_cntl->funcs->hw_init(link->panel_cntl); in dcn31_init_hw() 230 user_level = link->panel_cntl->stored_backlight_registers.USER_LEVEL; in dcn31_init_hw() 675 struct panel_cntl *panel_cntl = pipe_ctx->stream->link->panel_cntl; in dcn31_set_backlight_level() local 678 if (!abm || !tg || !panel_cntl) in dcn31_set_backlight_level() 686 panel_cntl->inst, in dcn31_set_backlight_level() 687 panel_cntl->pwrseq_inst); in dcn31_set_backlight_level() 689 dmub_abm_set_backlight(dc, backlight_level_params, panel_cntl->inst); in dcn31_set_backlight_level()
|
/linux/drivers/gpu/drm/amd/display/dc/hwss/dce110/ |
H A D | dce110_hwseq.c | 796 if (!link->panel_cntl) in dce110_edp_power_control() 799 link->panel_cntl->funcs->is_panel_powered_on(link->panel_cntl)) { in dce110_edp_power_control() 870 pwrseq_instance = link->panel_cntl->pwrseq_inst; in dce110_edp_power_control() 923 if (!link->panel_cntl) in dce110_edp_wait_for_T12() 926 if (!link->panel_cntl->funcs->is_panel_powered_on(link->panel_cntl) && in dce110_edp_wait_for_T12() 963 if (link->panel_cntl && !(link->dpcd_sink_ext_caps.bits.oled || in dce110_edp_backlight_control() 966 bool is_backlight_on = link->panel_cntl->funcs->is_panel_backlight_on(link->panel_cntl); in dce110_edp_backlight_control() 1006 if (link->panel_cntl) in dce110_edp_backlight_control() 1007 pwrseq_instance = link->panel_cntl->pwrseq_inst; in dce110_edp_backlight_control() 2828 if (link->panel_cntl) { in init_hw() [all …]
|
/linux/drivers/gpu/drm/amd/display/dc/link/ |
H A D | link_factory.c | 386 if (link->panel_cntl) in link_destruct() 387 link->panel_cntl->funcs->destroy(&link->panel_cntl); in link_destruct() 638 link->panel_cntl = in construct_phy() 643 if (link->panel_cntl == NULL) { in construct_phy() 732 if (link->panel_cntl != NULL) in construct_phy() 733 link->panel_cntl->funcs->destroy(&link->panel_cntl); in construct_phy()
|
/linux/drivers/gpu/drm/amd/display/dc/link/protocols/ |
H A D | link_edp_panel_control.c | 534 if (link->panel_cntl) in edp_set_backlight_level() 535 link->panel_cntl->stored_backlight_registers.USER_LEVEL = backlight_pwm_u16_16; in edp_set_backlight_level() 1128 struct panel_cntl *panel_cntl = link->panel_cntl; in edp_get_backlight_level() local 1136 if (!fw_set_brightness && panel_cntl->funcs->get_current_backlight) in edp_get_backlight_level() 1137 return panel_cntl->funcs->get_current_backlight(panel_cntl); in edp_get_backlight_level()
|
/linux/drivers/gpu/drm/amd/display/dc/resource/dce112/ |
H A D | dce112_resource.c | 647 static struct panel_cntl *dce112_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dce112_panel_cntl_create() 649 struct dce_panel_cntl *panel_cntl = in dce112_panel_cntl_create() local 652 if (!panel_cntl) in dce112_panel_cntl_create() 655 dce_panel_cntl_construct(panel_cntl, in dce112_panel_cntl_create() 661 return &panel_cntl->base; in dce112_panel_cntl_create()
|
/linux/drivers/gpu/drm/amd/display/dc/resource/dce110/ |
H A D | dce110_resource.c | 686 static struct panel_cntl *dce110_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dce110_panel_cntl_create() 688 struct dce_panel_cntl *panel_cntl = in dce110_panel_cntl_create() local 691 if (!panel_cntl) in dce110_panel_cntl_create() 694 dce_panel_cntl_construct(panel_cntl, in dce110_panel_cntl_create() 700 return &panel_cntl->base; in dce110_panel_cntl_create()
|
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn302/ |
H A D | dcn302_resource.c | 917 static struct panel_cntl *dcn302_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dcn302_panel_cntl_create() 919 struct dce_panel_cntl *panel_cntl = kzalloc(sizeof(struct dce_panel_cntl), GFP_KERNEL); in dcn302_panel_cntl_create() local 921 if (!panel_cntl) in dcn302_panel_cntl_create() 924 dce_panel_cntl_construct(panel_cntl, init_data, &panel_cntl_regs[init_data->inst], in dcn302_panel_cntl_create() 927 return &panel_cntl->base; in dcn302_panel_cntl_create()
|
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn303/ |
H A D | dcn303_resource.c | 863 static struct panel_cntl *dcn303_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dcn303_panel_cntl_create() 865 struct dce_panel_cntl *panel_cntl = kzalloc(sizeof(struct dce_panel_cntl), GFP_KERNEL); in dcn303_panel_cntl_create() local 867 if (!panel_cntl) in dcn303_panel_cntl_create() 870 dce_panel_cntl_construct(panel_cntl, init_data, &panel_cntl_regs[init_data->inst], in dcn303_panel_cntl_create() 873 return &panel_cntl->base; in dcn303_panel_cntl_create()
|
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn10/ |
H A D | dcn10_resource.c | 759 static struct panel_cntl *dcn10_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dcn10_panel_cntl_create() 761 struct dce_panel_cntl *panel_cntl = in dcn10_panel_cntl_create() local 764 if (!panel_cntl) in dcn10_panel_cntl_create() 767 dce_panel_cntl_construct(panel_cntl, in dcn10_panel_cntl_create() 773 return &panel_cntl->base; in dcn10_panel_cntl_create()
|
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn301/ |
H A D | dcn301_resource.c | 900 static struct panel_cntl *dcn301_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dcn301_panel_cntl_create() 902 struct dcn301_panel_cntl *panel_cntl = in dcn301_panel_cntl_create() local 905 if (!panel_cntl) in dcn301_panel_cntl_create() 908 dcn301_panel_cntl_construct(panel_cntl, in dcn301_panel_cntl_create() 914 return &panel_cntl->base; in dcn301_panel_cntl_create()
|
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn21/ |
H A D | dcn21_resource.c | 1318 static struct panel_cntl *dcn21_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dcn21_panel_cntl_create() 1320 struct dce_panel_cntl *panel_cntl = in dcn21_panel_cntl_create() local 1323 if (!panel_cntl) in dcn21_panel_cntl_create() 1326 dce_panel_cntl_construct(panel_cntl, in dcn21_panel_cntl_create() 1332 return &panel_cntl->base; in dcn21_panel_cntl_create()
|
/linux/drivers/gpu/drm/amd/display/dc/hwss/dcn30/ |
H A D | dcn30_hwseq.c | 773 if (link->panel_cntl) { in dcn30_init_hw() 774 backlight = link->panel_cntl->funcs->hw_init(link->panel_cntl); in dcn30_init_hw() 775 user_level = link->panel_cntl->stored_backlight_registers.USER_LEVEL; in dcn30_init_hw()
|
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn316/ |
H A D | dcn316_resource.c | 1128 static struct panel_cntl *dcn31_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dcn31_panel_cntl_create() 1130 struct dcn31_panel_cntl *panel_cntl = in dcn31_panel_cntl_create() local 1133 if (!panel_cntl) in dcn31_panel_cntl_create() 1136 dcn31_panel_cntl_construct(panel_cntl, init_data); in dcn31_panel_cntl_create() 1138 return &panel_cntl->base; in dcn31_panel_cntl_create()
|
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn314/ |
H A D | dcn314_resource.c | 1192 static struct panel_cntl *dcn31_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dcn31_panel_cntl_create() 1194 struct dcn31_panel_cntl *panel_cntl = in dcn31_panel_cntl_create() local 1197 if (!panel_cntl) in dcn31_panel_cntl_create() 1200 dcn31_panel_cntl_construct(panel_cntl, init_data); in dcn31_panel_cntl_create() 1202 return &panel_cntl->base; in dcn31_panel_cntl_create()
|
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn31/ |
H A D | dcn31_resource.c | 1136 static struct panel_cntl *dcn31_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dcn31_panel_cntl_create() 1138 struct dcn31_panel_cntl *panel_cntl = in dcn31_panel_cntl_create() local 1141 if (!panel_cntl) in dcn31_panel_cntl_create() 1144 dcn31_panel_cntl_construct(panel_cntl, init_data); in dcn31_panel_cntl_create() 1146 return &panel_cntl->base; in dcn31_panel_cntl_create()
|
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn35/ |
H A D | dcn35_resource.c | 1141 static struct panel_cntl *dcn31_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dcn31_panel_cntl_create() 1143 struct dcn31_panel_cntl *panel_cntl = in dcn31_panel_cntl_create() local 1146 if (!panel_cntl) in dcn31_panel_cntl_create() 1149 dcn31_panel_cntl_construct(panel_cntl, init_data); in dcn31_panel_cntl_create() 1151 return &panel_cntl->base; in dcn31_panel_cntl_create()
|
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn351/ |
H A D | dcn351_resource.c | 1121 static struct panel_cntl *dcn31_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dcn31_panel_cntl_create() 1123 struct dcn31_panel_cntl *panel_cntl = in dcn31_panel_cntl_create() local 1126 if (!panel_cntl) in dcn31_panel_cntl_create() 1129 dcn31_panel_cntl_construct(panel_cntl, init_data); in dcn31_panel_cntl_create() 1131 return &panel_cntl->base; in dcn31_panel_cntl_create()
|
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn315/ |
H A D | dcn315_resource.c | 1134 static struct panel_cntl *dcn31_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dcn31_panel_cntl_create() 1136 struct dcn31_panel_cntl *panel_cntl = in dcn31_panel_cntl_create() local 1139 if (!panel_cntl) in dcn31_panel_cntl_create() 1142 dcn31_panel_cntl_construct(panel_cntl, init_data); in dcn31_panel_cntl_create() 1144 return &panel_cntl->base; in dcn31_panel_cntl_create()
|