Home
last modified time | relevance | path

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

12

/linux/drivers/gpu/drm/amd/display/dc/dcn31/
H A Ddcn31_panel_cntl.c33 #define TO_DCN31_PANEL_CNTL(panel_cntl)\
34 container_of(panel_cntl, struct dcn31_panel_cntl, base)
42 static bool dcn31_query_backlight_info(struct panel_cntl *panel_cntl, union dmub_rb_cmd *cmd) in dcn31_query_backlight_info()
44 struct dcn31_panel_cntl *dcn31_panel_cntl = TO_DCN31_PANEL_CNTL(panel_cntl); in dcn31_query_backlight_info()
45 struct dc_dmub_srv *dc_dmub_srv = panel_cntl->ctx->dmub_srv; in dcn31_query_backlight_info()
51 cmd->panel_cntl.header.type = DMUB_CMD__PANEL_CNTL; in dcn31_query_backlight_info()
52 cmd->panel_cntl.header.sub_type = DMUB_CMD__PANEL_CNTL_QUERY_BACKLIGHT_INFO; in dcn31_query_backlight_info()
53 cmd->panel_cntl.header.payload_bytes = sizeof(cmd->panel_cntl in dcn31_query_backlight_info()
32 TO_DCN31_PANEL_CNTL(panel_cntl) global() argument
41 dcn31_query_backlight_info(struct panel_cntl * panel_cntl,union dmub_rb_cmd * cmd) dcn31_query_backlight_info() argument
58 dcn31_get_16_bit_backlight_from_pwm(struct panel_cntl * panel_cntl) dcn31_get_16_bit_backlight_from_pwm() argument
68 dcn31_panel_cntl_hw_init(struct panel_cntl * panel_cntl) dcn31_panel_cntl_hw_init() argument
116 dcn31_panel_cntl_destroy(struct panel_cntl ** panel_cntl) dcn31_panel_cntl_destroy() argument
124 dcn31_is_panel_backlight_on(struct panel_cntl * panel_cntl) dcn31_is_panel_backlight_on() argument
134 dcn31_is_panel_powered_on(struct panel_cntl * panel_cntl) dcn31_is_panel_powered_on() argument
144 dcn31_store_backlight_level(struct panel_cntl * panel_cntl) dcn31_store_backlight_level() argument
[all...]
H A Ddcn31_panel_cntl.h36 struct panel_cntl base;
/linux/drivers/gpu/drm/amd/display/dc/dcn301/
H A Ddcn301_panel_cntl.c33 #define TO_DCN301_PANEL_CNTL(panel_cntl)\
34 container_of(panel_cntl, struct dcn301_panel_cntl, base)
49 static unsigned int dcn301_get_16_bit_backlight_from_pwm(struct panel_cntl *panel_cntl) in dcn301_get_16_bit_backlight_from_pwm()
56 struct dcn301_panel_cntl *dcn301_panel_cntl = TO_DCN301_PANEL_CNTL(panel_cntl); in dcn301_get_16_bit_backlight_from_pwm()
97 static uint32_t dcn301_panel_cntl_hw_init(struct panel_cntl *panel_cntl) in dcn301_panel_cntl_hw_init()
99 struct dcn301_panel_cntl *dcn301_panel_cntl = TO_DCN301_PANEL_CNTL(panel_cntl); in dcn301_panel_cntl_hw_init()
110 if (panel_cntl->stored_backlight_registers.BL_PWM_CNTL != 0) { in dcn301_panel_cntl_hw_init()
112 panel_cntl in dcn301_panel_cntl_hw_init()
32 TO_DCN301_PANEL_CNTL(panel_cntl) global() argument
48 dcn301_get_16_bit_backlight_from_pwm(struct panel_cntl * panel_cntl) dcn301_get_16_bit_backlight_from_pwm() argument
96 dcn301_panel_cntl_hw_init(struct panel_cntl * panel_cntl) dcn301_panel_cntl_hw_init() argument
150 dcn301_panel_cntl_destroy(struct panel_cntl ** panel_cntl) dcn301_panel_cntl_destroy() argument
158 dcn301_is_panel_backlight_on(struct panel_cntl * panel_cntl) dcn301_is_panel_backlight_on() argument
168 dcn301_is_panel_powered_on(struct panel_cntl * panel_cntl) dcn301_is_panel_powered_on() argument
180 dcn301_store_backlight_level(struct panel_cntl * panel_cntl) dcn301_store_backlight_level() argument
[all...]
H A Ddcn301_panel_cntl.h84 struct panel_cntl base;
91 struct dcn301_panel_cntl *panel_cntl,
/linux/drivers/gpu/drm/amd/display/dc/inc/hw/
H A Dpanel_cntl.h47 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/link/
H A Dlink_factory.c419 if (link->panel_cntl) in link_destruct()
420 link->panel_cntl->funcs->destroy(&link->panel_cntl); in link_destruct()
789 link->panel_cntl = in construct_phy()
794 if (link->panel_cntl == NULL) { in construct_phy()
795 DC_ERROR("Failed to create link panel_cntl!\n"); in construct_phy()
906 if (link->panel_cntl) in construct_phy()
907 link->panel_cntl->funcs->destroy(&link->panel_cntl); in construct_phy()
/linux/drivers/gpu/drm/amd/display/dc/dce/
H A Ddce_panel_cntl.h116 struct panel_cntl base;
123 struct dce_panel_cntl *panel_cntl,
/linux/drivers/gpu/drm/amd/display/dc/link/protocols/
H A Dlink_edp_panel_control.c559 if (link->panel_cntl) in edp_set_backlight_level()
560 link->panel_cntl->stored_backlight_registers.USER_LEVEL = backlight_pwm_u16_16; in edp_set_backlight_level()
1232 struct panel_cntl *panel_cntl = link->panel_cntl;
1240 if (!fw_set_brightness && panel_cntl->funcs->get_current_backlight) in is_smartmux_suported()
1241 return (int)panel_cntl->funcs->get_current_backlight(panel_cntl); in is_smartmux_suported()
1207 struct panel_cntl *panel_cntl = link->panel_cntl; edp_get_backlight_level() local
/linux/drivers/gpu/drm/amd/display/dc/resource/dce100/
H A Ddce100_resource.c667 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/dce80/
H A Ddce80_resource.c770 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 Ddce60_resource.c769 static struct panel_cntl *dce60_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dce60_panel_cntl_create()
771 struct dce_panel_cntl *panel_cntl = in dce60_panel_cntl_create() local
774 if (!panel_cntl) in dce60_panel_cntl_create()
777 dce_panel_cntl_construct(panel_cntl, in dce60_panel_cntl_create()
783 return &panel_cntl->base; in dce60_panel_cntl_create()
/linux/drivers/gpu/drm/amd/display/dc/hwss/dcn50/
H A Ddcn50_hwseq.c714 if (link->panel_cntl) { in dcn50_init_hw()
715 backlight = link->panel_cntl->funcs->hw_init(link->panel_cntl); in dcn50_init_hw()
716 user_level = link->panel_cntl->stored_backlight_registers.USER_LEVEL; in dcn50_init_hw()
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn303/
H A Ddcn303_resource.c985 static struct panel_cntl *dcn303_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dcn303_panel_cntl_create()
987 struct dce_panel_cntl *panel_cntl = kzalloc_obj(struct dce_panel_cntl); in dcn303_panel_cntl_create() local
989 if (!panel_cntl) in dcn303_panel_cntl_create()
992 dce_panel_cntl_construct(panel_cntl, init_data, &panel_cntl_regs[init_data->inst], in dcn303_panel_cntl_create()
995 return &panel_cntl->base; in dcn303_panel_cntl_create()
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn302/
H A Ddcn302_resource.c1040 static struct panel_cntl *dcn302_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dcn302_panel_cntl_create()
1042 struct dce_panel_cntl *panel_cntl = kzalloc_obj(struct dce_panel_cntl); in dcn302_panel_cntl_create() local
1044 if (!panel_cntl) in dcn302_panel_cntl_create()
1047 dce_panel_cntl_construct(panel_cntl, init_data, &panel_cntl_regs[init_data->inst], in dcn302_panel_cntl_create()
1050 return &panel_cntl->base; in dcn302_panel_cntl_create()
/linux/drivers/gpu/drm/amd/display/dc/hwss/dcn60/
H A Ddcn60_hwseq.c833 if (link->panel_cntl) { in dcn60_update_cursor_offload_pipe()
834 backlight = link->panel_cntl->funcs->hw_init(link->panel_cntl); in dcn60_update_cursor_offload_pipe()
835 user_level = link->panel_cntl->stored_backlight_registers.USER_LEVEL; in dcn60_update_cursor_offload_pipe()
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn316/
H A Ddcn316_resource.c1205 static struct panel_cntl *dcn31_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dcn31_panel_cntl_create()
1207 struct dcn31_panel_cntl *panel_cntl = in dcn31_panel_cntl_create() local
1210 if (!panel_cntl) in dcn31_panel_cntl_create()
1213 dcn31_panel_cntl_construct(panel_cntl, init_data); in dcn31_panel_cntl_create()
1215 return &panel_cntl->base; in dcn31_panel_cntl_create()
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn314/
H A Ddcn314_resource.c1270 static struct panel_cntl *dcn31_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dcn31_panel_cntl_create()
1272 struct dcn31_panel_cntl *panel_cntl = in dcn31_panel_cntl_create() local
1275 if (!panel_cntl) in dcn31_panel_cntl_create()
1278 dcn31_panel_cntl_construct(panel_cntl, init_data); in dcn31_panel_cntl_create()
1280 return &panel_cntl->base; in dcn31_panel_cntl_create()
/linux/drivers/gpu/drm/amd/display/dc/hwss/dcn30/
H A Ddcn30_hwseq.c791 if (link->panel_cntl) { in dcn30_init_hw()
792 backlight = link->panel_cntl->funcs->hw_init(link->panel_cntl); in dcn30_init_hw()
793 user_level = link->panel_cntl->stored_backlight_registers.USER_LEVEL; in dcn30_init_hw()
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn36/
H A Ddcn36_resource.c1199 static struct panel_cntl *dcn31_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dcn31_panel_cntl_create()
1201 struct dcn31_panel_cntl *panel_cntl = in dcn31_panel_cntl_create() local
1204 if (!panel_cntl) in dcn31_panel_cntl_create()
1207 dcn31_panel_cntl_construct(panel_cntl, init_data); in dcn31_panel_cntl_create()
1209 return &panel_cntl->base; in dcn31_panel_cntl_create()
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn31/
H A Ddcn31_resource.c1213 static struct panel_cntl *dcn31_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dcn31_panel_cntl_create()
1215 struct dcn31_panel_cntl *panel_cntl = in dcn31_panel_cntl_create() local
1218 if (!panel_cntl) in dcn31_panel_cntl_create()
1221 dcn31_panel_cntl_construct(panel_cntl, init_data); in dcn31_panel_cntl_create()
1223 return &panel_cntl->base; in dcn31_panel_cntl_create()
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn35/
H A Ddcn35_resource.c1212 static struct panel_cntl *dcn31_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dcn31_panel_cntl_create()
1214 struct dcn31_panel_cntl *panel_cntl = in dcn31_panel_cntl_create() local
1217 if (!panel_cntl) in dcn31_panel_cntl_create()
1220 dcn31_panel_cntl_construct(panel_cntl, init_data); in dcn31_panel_cntl_create()
1222 return &panel_cntl->base; in dcn31_panel_cntl_create()
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn315/
H A Ddcn315_resource.c1212 static struct panel_cntl *dcn31_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dcn31_panel_cntl_create()
1214 struct dcn31_panel_cntl *panel_cntl = in dcn31_panel_cntl_create() local
1217 if (!panel_cntl) in dcn31_panel_cntl_create()
1220 dcn31_panel_cntl_construct(panel_cntl, init_data); in dcn31_panel_cntl_create()
1222 return &panel_cntl->base; in dcn31_panel_cntl_create()
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn351/
H A Ddcn351_resource.c1192 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/dcn30/
H A Ddcn30_resource.c1018 static struct panel_cntl *dcn30_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dcn30_panel_cntl_create()
1020 struct dce_panel_cntl *panel_cntl = in dcn30_panel_cntl_create() local
1023 if (!panel_cntl) in dcn30_panel_cntl_create()
1026 dce_panel_cntl_construct(panel_cntl, in dcn30_panel_cntl_create()
1032 return &panel_cntl->base; in dcn30_panel_cntl_create()
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn32/
H A Ddcn32_resource.c1157 struct panel_cntl *dcn32_panel_cntl_create(const struct panel_cntl_init_data *init_data) in dcn32_panel_cntl_create()
1159 struct dcn31_panel_cntl *panel_cntl = in dcn32_panel_cntl_create() local
1162 if (!panel_cntl) in dcn32_panel_cntl_create()
1165 dcn31_panel_cntl_construct(panel_cntl, init_data); in dcn32_panel_cntl_create()
1167 return &panel_cntl->base; in dcn32_panel_cntl_create()

12