Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/gpu/drm/amd/display/dc/dce/
Ddce_abm.c35 #define TO_DCE_ABM(abm)\ argument
36 container_of(abm, struct dce_abm, base)
46 abm->ctx->logger
247 static void dce_abm_init(struct abm *abm) in dce_abm_init() argument
249 struct dce_abm *abm_dce = TO_DCE_ABM(abm); in dce_abm_init()
287 static unsigned int dce_abm_get_current_backlight_8_bit(struct abm *abm) in dce_abm_get_current_backlight_8_bit() argument
289 struct dce_abm *abm_dce = TO_DCE_ABM(abm); in dce_abm_get_current_backlight_8_bit()
295 static bool dce_abm_set_level(struct abm *abm, uint32_t level) in dce_abm_set_level() argument
297 struct dce_abm *abm_dce = TO_DCE_ABM(abm); in dce_abm_set_level()
313 static bool dce_abm_immediate_disable(struct abm *abm) in dce_abm_immediate_disable() argument
[all …]
Ddce_abm.h210 struct abm base;
216 struct abm *dce_abm_create(
222 void dce_abm_destroy(struct abm **abm);
/Linux-v4.19/drivers/gpu/drm/amd/display/dc/inc/hw/
Dabm.h37 struct abm { struct
46 void (*abm_init)(struct abm *abm); argument
47 bool (*set_abm_level)(struct abm *abm, unsigned int abm_level);
48 bool (*set_abm_immediate_disable)(struct abm *abm);
49 bool (*init_backlight)(struct abm *abm);
50 bool (*set_backlight_level)(struct abm *abm,
55 unsigned int (*get_current_backlight_8_bit)(struct abm *abm);
/Linux-v4.19/drivers/net/ethernet/netronome/nfp/abm/
Dctrl.c61 return alink->abm->q_lvls->addr + in nfp_abm_q_lvl_thrs()
70 struct nfp_cpp *cpp = alink->abm->app->cpp; in nfp_abm_ctrl_stat()
116 struct nfp_cpp *cpp = alink->abm->app->cpp; in nfp_abm_ctrl_set_q_lvl()
120 muw = NFP_CPP_ATOMIC_WR(alink->abm->q_lvls->target, in nfp_abm_ctrl_set_q_lvl()
121 alink->abm->q_lvls->domain); in nfp_abm_ctrl_set_q_lvl()
150 if (nfp_abm_ctrl_stat(alink, alink->abm->qm_stats, NFP_QMSTAT_STRIDE, in nfp_abm_ctrl_stat_non_sto()
160 if (nfp_abm_ctrl_stat(alink, alink->abm->qm_stats, NFP_QMSTAT_STRIDE, in nfp_abm_ctrl_stat_sto()
174 err = nfp_abm_ctrl_stat(alink, alink->abm->q_lvls, in nfp_abm_ctrl_read_q_stats()
180 err = nfp_abm_ctrl_stat(alink, alink->abm->q_lvls, in nfp_abm_ctrl_read_q_stats()
186 err = nfp_abm_ctrl_stat(alink, alink->abm->qm_stats, in nfp_abm_ctrl_read_q_stats()
[all …]
Dmain.c134 nfp_warn(alink->abm->app->cpp, in nfp_abm_red_replace()
402 port->pf_id = alink->abm->pf_id; in nfp_abm_spawn_repr()
451 nfp_abm_kill_reprs(struct nfp_abm *abm, struct nfp_abm_link *alink) in nfp_abm_kill_reprs() argument
453 nfp_abm_kill_repr(abm->app, alink, NFP_REPR_TYPE_PF); in nfp_abm_kill_reprs()
454 nfp_abm_kill_repr(abm->app, alink, NFP_REPR_TYPE_PHYS_PORT); in nfp_abm_kill_reprs()
457 static void nfp_abm_kill_reprs_all(struct nfp_abm *abm) in nfp_abm_kill_reprs_all() argument
459 struct nfp_pf *pf = abm->app->pf; in nfp_abm_kill_reprs_all()
463 nfp_abm_kill_reprs(abm, (struct nfp_abm_link *)nn->app_priv); in nfp_abm_kill_reprs_all()
468 struct nfp_abm *abm = app->priv; in nfp_abm_eswitch_mode_get() local
470 return abm->eswitch_mode; in nfp_abm_eswitch_mode_get()
[all …]
Dmain.h115 struct nfp_abm *abm; member
126 int nfp_abm_ctrl_find_addrs(struct nfp_abm *abm);
140 int nfp_abm_ctrl_qm_enable(struct nfp_abm *abm);
141 int nfp_abm_ctrl_qm_disable(struct nfp_abm *abm);
/Linux-v4.19/drivers/gpu/drm/amd/display/dc/inc/
Dcore_types.h169 struct abm *abm; member
194 struct abm *abm; member
/Linux-v4.19/drivers/gpu/drm/amd/display/dc/core/
Ddc_link.c2040 struct abm *abm = link->ctx->dc->res_pool->abm; in dc_link_get_backlight_level() local
2042 if (abm == NULL || abm->funcs->get_current_backlight_8_bit == NULL) in dc_link_get_backlight_level()
2045 return (int) abm->funcs->get_current_backlight_8_bit(abm); in dc_link_get_backlight_level()
2052 struct abm *abm = core_dc->res_pool->abm; in dc_link_set_backlight_level() local
2060 (abm == NULL) || in dc_link_set_backlight_level()
2061 (abm->funcs->set_backlight_level == NULL)) in dc_link_set_backlight_level()
2090 abm->funcs->set_backlight_level( in dc_link_set_backlight_level()
2091 abm, in dc_link_set_backlight_level()
2104 struct abm *abm = core_dc->res_pool->abm; in dc_link_set_abm_disable() local
2106 if ((abm == NULL) || (abm->funcs->set_backlight_level == NULL)) in dc_link_set_abm_disable()
[all …]
Ddc.c1359 if (stream_update && stream_update->abm_level && pipe_ctx->stream_res.abm) { in commit_planes_for_stream()
1363 pipe_ctx->stream_res.abm->funcs->set_abm_level( in commit_planes_for_stream()
1364 pipe_ctx->stream_res.abm, stream->abm_level); in commit_planes_for_stream()
1366 pipe_ctx->stream_res.abm->funcs->set_abm_level( in commit_planes_for_stream()
1367 pipe_ctx->stream_res.abm, stream->abm_level); in commit_planes_for_stream()
Ddc_resource.c1345 free_pipe->stream_res.abm = tail_pipe->stream_res.abm; in dc_add_plane_to_context()
1964 pipe_ctx->stream_res.abm = pool->abm; in resource_map_pool_resources()
/Linux-v4.19/drivers/net/ethernet/netronome/nfp/
DMakefile59 abm/ctrl.o \
60 abm/main.o
/Linux-v4.19/drivers/gpu/drm/amd/display/dc/dce80/
Ddce80_resource.c707 if (pool->base.abm != NULL) in destruct()
708 dce_abm_destroy(&pool->base.abm); in destruct()
881 pool->base.abm = dce_abm_create(ctx, in dce80_construct()
885 if (pool->base.abm == NULL) { in dce80_construct()
1074 pool->base.abm = dce_abm_create(ctx, in dce81_construct()
1078 if (pool->base.abm == NULL) { in dce81_construct()
1256 pool->base.abm = dce_abm_create(ctx, in dce83_construct()
1260 if (pool->base.abm == NULL) { in dce83_construct()
/Linux-v4.19/drivers/gpu/drm/amd/display/dc/dcn10/
Ddcn10_hw_sequencer.c954 struct abm *abm = dc->res_pool->abm; in dcn10_init_hw() local
1071 if (abm != NULL) { in dcn10_init_hw()
1072 abm->funcs->init_backlight(abm); in dcn10_init_hw()
1073 abm->funcs->abm_init(abm); in dcn10_init_hw()
2131 if (stream_res->abm) in dcn10_blank_pixel_data()
2132 stream_res->abm->funcs->set_abm_level(stream_res->abm, stream->abm_level); in dcn10_blank_pixel_data()
2134 if (stream_res->abm) in dcn10_blank_pixel_data()
2135 stream_res->abm->funcs->set_abm_immediate_disable(stream_res->abm); in dcn10_blank_pixel_data()
Ddcn10_resource.c887 if (pool->base.abm != NULL) in destruct()
888 dce_abm_destroy(&pool->base.abm); in destruct()
1034 idle_pipe->stream_res.abm = head_pipe->stream_res.abm; in dcn10_acquire_idle_pipe_for_layer()
1192 pool->base.abm = dce_abm_create(ctx, in construct()
1196 if (pool->base.abm == NULL) { in construct()
/Linux-v4.19/drivers/gpu/drm/amd/display/dc/dce100/
Ddce100_resource.c685 if (pool->base.abm != NULL) in destruct()
686 dce_abm_destroy(&pool->base.abm); in destruct()
888 pool->base.abm = dce_abm_create(ctx, in construct()
892 if (pool->base.abm == NULL) { in construct()
/Linux-v4.19/drivers/gpu/drm/radeon/
Dcypress_dpm.h67 bool abm; member
Dbtc_dpm.c2675 eg_pi->abm = true; in btc_dpm_init()
Dcypress_dpm.c2116 eg_pi->abm = true; in cypress_dpm_init()
Dni_dpm.c4176 eg_pi->abm = true; in ni_dpm_init()
/Linux-v4.19/drivers/gpu/drm/amd/display/dc/dce120/
Ddce120_resource.c526 if (pool->base.abm != NULL) in destruct()
527 dce_abm_destroy(&pool->base.abm); in destruct()
950 pool->base.abm = dce_abm_create(ctx, in construct()
954 if (pool->base.abm == NULL) { in construct()
/Linux-v4.19/drivers/gpu/drm/amd/display/dc/dce110/
Ddce110_hw_sequencer.c2345 struct abm *abm; in init_hw() local
2395 abm = dc->res_pool->abm; in init_hw()
2396 if (abm != NULL) { in init_hw()
2397 abm->funcs->init_backlight(abm); in init_hw()
2398 abm->funcs->abm_init(abm); in init_hw()
Ddce110_resource.c713 if (pool->base.abm != NULL) in destruct()
714 dce_abm_destroy(&pool->base.abm); in destruct()
1233 pool->base.abm = dce_abm_create(ctx, in construct()
1237 if (pool->base.abm == NULL) { in construct()
/Linux-v4.19/drivers/gpu/drm/amd/display/dc/dce112/
Ddce112_resource.c702 if (pool->base.abm != NULL) in destruct()
703 dce_abm_destroy(&pool->base.abm); in destruct()
1178 pool->base.abm = dce_abm_create(ctx, in construct()
1182 if (pool->base.abm == NULL) { in construct()
/Linux-v4.19/drivers/gpu/drm/amd/amdgpu/
Dsi_dpm.h651 bool abm; member