Home
last modified time | relevance | path

Searched refs:abm (Results 1 – 17 of 17) sorted by relevance

/openbsd/src/sys/dev/pci/drm/amd/display/dc/dce/
Ddmub_abm.c32 #define TO_DMUB_ABM(abm)\ argument
33 container_of(abm, struct dce_abm, base)
38 static unsigned int abm_feature_support(struct abm *abm, unsigned int panel_inst) in abm_feature_support() argument
40 struct dc_context *dc = abm->ctx; in abm_feature_support()
60 static void dmub_abm_init_ex(struct abm *abm, uint32_t backlight, uint32_t user_level) in dmub_abm_init_ex() argument
62 dmub_abm_init(abm, backlight, user_level); in dmub_abm_init_ex()
65 static unsigned int dmub_abm_get_current_backlight_ex(struct abm *abm) in dmub_abm_get_current_backlight_ex() argument
67 dc_allow_idle_optimizations(abm->ctx->dc, false); in dmub_abm_get_current_backlight_ex()
69 return dmub_abm_get_current_backlight(abm); in dmub_abm_get_current_backlight_ex()
72 static unsigned int dmub_abm_get_target_backlight_ex(struct abm *abm) in dmub_abm_get_target_backlight_ex() argument
[all …]
Ddmub_abm_lcd.h33 void dmub_abm_init(struct abm *abm, uint32_t backlight, uint32_t user_level);
34 bool dmub_abm_set_level(struct abm *abm, uint32_t level, uint8_t panel_mask);
35 unsigned int dmub_abm_get_current_backlight(struct abm *abm);
36 unsigned int dmub_abm_get_target_backlight(struct abm *abm);
37 void dmub_abm_init_config(struct abm *abm,
42 bool dmub_abm_set_pause(struct abm *abm, bool pause, unsigned int panel_inst, unsigned int stream_i…
47 bool dmub_abm_set_pipe(struct abm *abm, uint32_t otg_inst, uint32_t option, uint32_t panel_inst, ui…
48 bool dmub_abm_set_backlight_level(struct abm *abm,
52 bool dmub_abm_set_event(struct abm *abm, unsigned int scaling_enable, unsigned int scaling_strength…
Ddce_abm.c37 #define TO_DCE_ABM(abm)\ argument
38 container_of(abm, struct dce_abm, base)
48 abm->ctx->logger
58 static bool dce_abm_set_pipe(struct abm *abm, uint32_t controller_id, uint32_t panel_inst) in dce_abm_set_pipe() argument
60 struct dce_abm *abm_dce = TO_DCE_ABM(abm); in dce_abm_set_pipe()
63 if (abm->dmcu_is_running == false) in dce_abm_set_pipe()
138 static void dce_abm_init(struct abm *abm, uint32_t backlight, uint32_t user_level) in dce_abm_init() argument
140 struct dce_abm *abm_dce = TO_DCE_ABM(abm); in dce_abm_init()
177 static unsigned int dce_abm_get_current_backlight(struct abm *abm) in dce_abm_get_current_backlight() argument
179 struct dce_abm *abm_dce = TO_DCE_ABM(abm); in dce_abm_get_current_backlight()
[all …]
Ddmub_abm_lcd.c39 #define TO_DMUB_ABM(abm)\ argument
40 container_of(abm, struct dce_abm, base)
78 void dmub_abm_init(struct abm *abm, uint32_t backlight, uint32_t user_level) in dmub_abm_init() argument
80 struct dce_abm *dce_abm = TO_DMUB_ABM(abm); in dmub_abm_init()
116 dmub_abm_enable_fractional_pwm(abm->ctx); in dmub_abm_init()
119 unsigned int dmub_abm_get_current_backlight(struct abm *abm) in dmub_abm_get_current_backlight() argument
121 struct dce_abm *dce_abm = TO_DMUB_ABM(abm); in dmub_abm_get_current_backlight()
130 unsigned int dmub_abm_get_target_backlight(struct abm *abm) in dmub_abm_get_target_backlight() argument
132 struct dce_abm *dce_abm = TO_DMUB_ABM(abm); in dmub_abm_get_target_backlight()
141 bool dmub_abm_set_level(struct abm *abm, uint32_t level, uint8_t panel_mask) in dmub_abm_set_level() argument
[all …]
Ddmub_abm.h32 struct abm *dmub_abm_create(
38 void dmub_abm_destroy(struct abm **abm);
Ddce_abm.h378 struct abm base;
384 struct abm *dce_abm_create(
390 void dce_abm_destroy(struct abm **abm);
/openbsd/src/sys/dev/pci/drm/amd/display/dc/inc/hw/
Dabm.h32 struct abm { struct
39 void (*abm_init)(struct abm *abm, uint32_t back_light, uint32_t user_level); argument
40 bool (*set_abm_level)(struct abm *abm, unsigned int abm_level);
41 bool (*set_abm_immediate_disable)(struct abm *abm, unsigned int panel_inst);
42 bool (*set_pipe)(struct abm *abm, unsigned int controller_id, unsigned int panel_inst);
47 bool (*set_backlight_level_pwm)(struct abm *abm,
53 unsigned int (*get_current_backlight)(struct abm *abm);
54 unsigned int (*get_target_backlight)(struct abm *abm);
55 bool (*init_abm_config)(struct abm *abm,
59 bool (*set_abm_pause)(struct abm *abm, bool pause, unsigned int panel_inst, unsigned int otg_inst);
[all …]
/openbsd/src/sys/dev/pci/drm/amd/display/dc/inc/
Dcore_types.h303 struct abm *abm; member
308 struct abm *multiple_abms[MAX_PIPES];
342 struct abm *abm; member
/openbsd/src/sys/dev/pci/drm/amd/display/dc/dce60/
Ddce60_resource.c846 if (pool->base.abm != NULL) in dce60_resource_destruct()
847 dce_abm_destroy(&pool->base.abm); in dce60_resource_destruct()
1017 pool->base.abm = dce_abm_create(ctx, in dce60_construct()
1021 if (pool->base.abm == NULL) { in dce60_construct()
1215 pool->base.abm = dce_abm_create(ctx, in dce61_construct()
1219 if (pool->base.abm == NULL) { in dce61_construct()
1409 pool->base.abm = dce_abm_create(ctx, in dce64_construct()
1413 if (pool->base.abm == NULL) { in dce64_construct()
/openbsd/src/sys/dev/pci/drm/radeon/
Dcypress_dpm.h67 bool abm; member
Dbtc_dpm.c2646 eg_pi->abm = true; in btc_dpm_init()
Dcypress_dpm.c2119 eg_pi->abm = true; in cypress_dpm_init()
Dni_dpm.c4178 eg_pi->abm = true; in ni_dpm_init()
/openbsd/src/sys/dev/pci/drm/amd/display/modules/power/
Dpower_helpers.c702 if (res_pool->abm == NULL && res_pool->multiple_abms[inst] == NULL) in dmub_init_abm_config()
760 result = res_pool->abm->funcs->init_abm_config( in dmub_init_abm_config()
761 res_pool->abm, (char *)(&config), sizeof(struct abm_config_table), 0); in dmub_init_abm_config()
/openbsd/src/sys/dev/pci/drm/amd/display/dc/core/
Damdgpu_dc.c3394 if (stream_update->abm_level && pipe_ctx->stream_res.abm) { in commit_planes_do_stream_update()
3406 pipe_ctx->stream_res.abm->funcs->set_abm_level( in commit_planes_do_stream_update()
3407 pipe_ctx->stream_res.abm, stream->abm_level); in commit_planes_do_stream_update()
5897 if (pipe->stream_res.abm && pipe->stream_res.abm->funcs->set_abm_pause) in dc_notify_vsync_int_state()
5898 …pipe->stream_res.abm->funcs->set_abm_pause(pipe->stream_res.abm, !enable, i, pipe->stream_res.tg->… in dc_notify_vsync_int_state()
5946 if (pipe->stream_res.abm && in dc_abm_save_restore()
5947 pipe->stream_res.abm->funcs->save_restore) in dc_abm_save_restore()
5948 return pipe->stream_res.abm->funcs->save_restore( in dc_abm_save_restore()
5949 pipe->stream_res.abm, in dc_abm_save_restore()
Ddc_resource.c3731 if (pool->abm) in resource_map_pool_resources()
3732 pipe_ctx->stream_res.abm = pool->abm; in resource_map_pool_resources()
3734 pipe_ctx->stream_res.abm = pool->multiple_abms[pipe_ctx->stream_res.tg->inst]; in resource_map_pool_resources()
/openbsd/src/sys/dev/pci/drm/amd/display/amdgpu_dm/
Damdgpu_dm.c1160 struct abm *abm = adev->dm.dc->res_pool->abm; in dm_dmub_hw_init() local
1299 if (dmcu && abm) { in dm_dmub_hw_init()
1301 abm->dmcu_is_running = dmcu->funcs->is_dmcu_initialized(dmcu); in dm_dmub_hw_init()