Home
last modified time | relevance | path

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

12

/linux-6.3-rc2/drivers/net/ethernet/netronome/nfp/abm/
A Dctrl.c290 struct nfp_abm *abm = alink->abm; in nfp_abm_ctrl_prio_check_params() local
354 abm->pf_id, nfp_abm_has_prio(abm) ? "_per_band" : ""); in nfp_abm_ctrl_find_q_rtsym()
391 abm->prio_map_len = nfp_abm_ctrl_prio_map_size(abm); in nfp_abm_ctrl_find_addrs()
392 abm->dscp_mask = GENMASK(7, 8 - order_base_2(abm->num_prios)); in nfp_abm_ctrl_find_addrs()
395 if (!is_power_of_2(abm->num_bands) || !is_power_of_2(abm->num_prios) || in nfp_abm_ctrl_find_addrs()
396 abm->num_bands > U16_MAX || abm->num_prios > U16_MAX || in nfp_abm_ctrl_find_addrs()
397 (abm->num_bands == 1) != (abm->num_prios == 1)) { in nfp_abm_ctrl_find_addrs()
400 abm->num_bands, abm->num_prios); in nfp_abm_ctrl_find_addrs()
412 abm->q_lvls = sym; in nfp_abm_ctrl_find_addrs()
418 abm->qm_stats = sym; in nfp_abm_ctrl_find_addrs()
[all …]
A Dmain.c324 alink->abm = abm; in nfp_abm_vnic_alloc()
464 abm = kzalloc(sizeof(*abm), GFP_KERNEL); in nfp_abm_init()
465 if (!abm) in nfp_abm_init()
467 app->priv = abm; in nfp_abm_init()
468 abm->app = app; in nfp_abm_init()
476 abm->threshold_undef = bitmap_zalloc(abm->num_thresholds, GFP_KERNEL); in nfp_abm_init()
480 abm->thresholds = kvcalloc(abm->num_thresholds, in nfp_abm_init()
485 abm->actions = kvcalloc(abm->num_thresholds, sizeof(*abm->actions), in nfp_abm_init()
487 if (!abm->actions) in nfp_abm_init()
517 kfree(abm); in nfp_abm_init()
[all …]
A Dmain.h207 struct nfp_abm *abm; member
225 static inline bool nfp_abm_has_prio(struct nfp_abm *abm) in nfp_abm_has_prio() argument
227 return abm->num_bands > 1; in nfp_abm_has_prio()
230 static inline bool nfp_abm_has_drop(struct nfp_abm *abm) in nfp_abm_has_drop() argument
232 return abm->action_mask & BIT(NFP_ABM_ACT_DROP); in nfp_abm_has_drop()
235 static inline bool nfp_abm_has_mark(struct nfp_abm *abm) in nfp_abm_has_mark() argument
237 return abm->action_mask & BIT(NFP_ABM_ACT_MARK_DROP); in nfp_abm_has_mark()
253 int nfp_abm_ctrl_find_addrs(struct nfp_abm *abm);
269 int nfp_abm_ctrl_qm_enable(struct nfp_abm *abm);
270 int nfp_abm_ctrl_qm_disable(struct nfp_abm *abm);
[all …]
A Dcls.c21 nfp_abm_u32_check_knode(struct nfp_abm *abm, struct tc_cls_u32_knode *knode, in nfp_abm_u32_check_knode() argument
57 if (knode->res && knode->res->classid >= abm->num_bands) { in nfp_abm_u32_check_knode()
92 if (be32_to_cpu(k->mask) >> tos_off & ~abm->dscp_mask) { in nfp_abm_u32_check_knode()
94 nfp_err(abm->app->cpp, in nfp_abm_u32_check_knode()
96 be32_to_cpu(k->mask) >> tos_off, abm->dscp_mask); in nfp_abm_u32_check_knode()
122 struct nfp_abm *abm = alink->abm; in nfp_abm_update_band_map() local
127 bits_per_prio = roundup_pow_of_two(order_base_2(abm->num_bands)); in nfp_abm_update_band_map()
132 base_shift = 8 - order_base_2(abm->num_prios); in nfp_abm_update_band_map()
134 for (i = 0; i < abm->num_prios; i++) { in nfp_abm_update_band_map()
179 if (!nfp_abm_u32_check_knode(alink->abm, knode, proto, extack)) in nfp_abm_u32_knode_replace()
A Dqdisc.c48 struct nfp_cpp *cpp = alink->abm->app->cpp; in nfp_abm_stats_update_red()
153 nfp_err(alink->abm->app->cpp, in __nfp_abm_stats_init()
161 nfp_err(alink->abm->app->cpp, in __nfp_abm_stats_init()
247 struct nfp_abm *abm = alink->abm; in nfp_abm_qdisc_offload_update() local
254 for (i = 0; i < abm->num_bands; i++) in nfp_abm_qdisc_offload_update()
255 __bitmap_set(abm->threshold_undef, in nfp_abm_qdisc_offload_update()
278 if (test_bit(i, abm->threshold_undef)) in nfp_abm_qdisc_offload_update()
365 nfp_err(alink->abm->app->cpp, in nfp_abm_qdisc_alloc()
520 struct nfp_abm *abm = alink->abm; in nfp_abm_gred_check_params() local
539 for (i = 0; i < abm->num_bands; i++) { in nfp_abm_gred_check_params()
[all …]
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/inc/hw/
A Dabm.h30 struct abm { struct
37 void (*abm_init)(struct abm *abm, uint32_t back_light); argument
38 bool (*set_abm_level)(struct abm *abm, unsigned int abm_level);
39 bool (*set_abm_immediate_disable)(struct abm *abm, unsigned int panel_inst);
40 bool (*set_pipe)(struct abm *abm, unsigned int controller_id, unsigned int panel_inst);
45 bool (*set_backlight_level_pwm)(struct abm *abm,
51 unsigned int (*get_current_backlight)(struct abm *abm);
52 unsigned int (*get_target_backlight)(struct abm *abm);
53 bool (*init_abm_config)(struct abm *abm,
57 bool (*set_abm_pause)(struct abm *abm, bool pause, unsigned int panel_inst, unsigned int otg_inst);
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dce/
A Ddce_abm.c37 #define TO_DCE_ABM(abm)\ argument
48 abm->ctx->logger
138 static void dce_abm_init(struct abm *abm, uint32_t backlight) in dce_abm_init() argument
177 static unsigned int dce_abm_get_current_backlight(struct abm *abm) in dce_abm_get_current_backlight() argument
188 static unsigned int dce_abm_get_target_backlight(struct abm *abm) in dce_abm_get_target_backlight() argument
199 static bool dce_abm_set_level(struct abm *abm, uint32_t level) in dce_abm_set_level() argument
220 static bool dce_abm_immediate_disable(struct abm *abm, uint32_t panel_inst) in dce_abm_immediate_disable() argument
231 struct abm *abm, in dce_abm_set_backlight_level_pwm() argument
280 struct abm *dce_abm_create( in dce_abm_create()
300 void dce_abm_destroy(struct abm **abm) in dce_abm_destroy() argument
[all …]
A Ddmub_abm.c38 #define TO_DMUB_ABM(abm)\ argument
79 static void dmub_abm_init(struct abm *abm, uint32_t backlight) in dmub_abm_init() argument
120 static unsigned int dmub_abm_get_current_backlight(struct abm *abm) in dmub_abm_get_current_backlight() argument
131 static unsigned int dmub_abm_get_target_backlight(struct abm *abm) in dmub_abm_get_target_backlight() argument
142 static bool dmub_abm_set_level(struct abm *abm, uint32_t level) in dmub_abm_set_level() argument
145 struct dc_context *dc = abm->ctx; in dmub_abm_set_level()
173 static bool dmub_abm_init_config(struct abm *abm, in dmub_abm_init_config() argument
179 struct dc_context *dc = abm->ctx; in dmub_abm_init_config()
253 struct abm *dmub_abm_create( in dmub_abm_create()
271 void dmub_abm_destroy(struct abm **abm) in dmub_abm_destroy() argument
[all …]
A Ddmub_abm.h32 struct abm *dmub_abm_create(
38 void dmub_abm_destroy(struct abm **abm);
A Ddce_abm.h299 struct abm base;
305 struct abm *dce_abm_create(
311 void dce_abm_destroy(struct abm **abm);
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dcn21/
A Ddcn21_hwseq.c140 static bool dmub_abm_set_pipe(struct abm *abm, uint32_t otg_inst, uint32_t option, uint32_t panel_i… in dmub_abm_set_pipe() argument
143 struct dc_context *dc = abm->ctx; in dmub_abm_set_pipe()
164 struct abm *abm = pipe_ctx->stream_res.abm; in dcn21_set_abm_immediate_disable() local
175 if (abm && panel_cntl) { in dcn21_set_abm_immediate_disable()
176 dmub_abm_set_pipe(abm, otg_inst, SET_ABM_PIPE_IMMEDIATELY_DISABLE, in dcn21_set_abm_immediate_disable()
184 struct abm *abm = pipe_ctx->stream_res.abm; in dcn21_set_pipe() local
194 if (abm && panel_cntl) in dcn21_set_pipe()
195 dmub_abm_set_pipe(abm, otg_inst, SET_ABM_PIPE_NORMAL, panel_cntl->inst); in dcn21_set_pipe()
204 struct abm *abm = pipe_ctx->stream_res.abm; in dcn21_set_backlight_level() local
213 if (abm && panel_cntl) in dcn21_set_backlight_level()
[all …]
A Ddcn21_resource.c789 if (pool->base.abm != NULL) { in dcn21_resource_destruct()
790 if (pool->base.abm->ctx->dc->config.disable_dmcu) in dcn21_resource_destruct()
791 dmub_abm_destroy(&pool->base.abm); in dcn21_resource_destruct()
793 dce_abm_destroy(&pool->base.abm); in dcn21_resource_destruct()
1591 pool->base.abm = dmub_abm_create(ctx, in dcn21_resource_construct()
1596 pool->base.abm = dce_abm_create(ctx, in dcn21_resource_construct()
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/link/protocols/
A Dlink_edp_panel_control.c788 static struct abm *get_abm_from_stream_res(const struct dc_link *link) in get_abm_from_stream_res()
792 struct abm *abm = NULL; in get_abm_from_stream_res() local
799 abm = pipe_ctx.stream_res.abm; in get_abm_from_stream_res()
803 return abm; in get_abm_from_stream_res()
808 struct abm *abm = get_abm_from_stream_res(link); in dc_link_get_backlight_level() local
819 else if (abm != NULL && abm->funcs->get_current_backlight != NULL) in dc_link_get_backlight_level()
820 return (int) abm->funcs->get_current_backlight(abm); in dc_link_get_backlight_level()
827 struct abm *abm = get_abm_from_stream_res(link); in dc_link_get_target_backlight_pwm() local
829 if (abm == NULL || abm->funcs->get_target_backlight == NULL) in dc_link_get_target_backlight_pwm()
832 return (int) abm->funcs->get_target_backlight(abm); in dc_link_get_target_backlight_pwm()
/linux-6.3-rc2/drivers/net/ethernet/netronome/nfp/
A DMakefile77 abm/cls.o \
78 abm/ctrl.o \
79 abm/qdisc.o \
80 abm/main.o
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/inc/
A Dcore_types.h304 struct abm *abm; member
308 struct abm *multiple_abms[MAX_PIPES];
332 struct abm *abm; member
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dce110/
A Ddce110_hw_sequencer.c2565 struct abm *abm; in init_hw() local
2622 abm = dc->res_pool->abm; in init_hw()
2623 if (abm != NULL) in init_hw()
2624 abm->funcs->abm_init(abm, backlight); in init_hw()
2939 struct abm *abm = pipe_ctx->stream_res.abm; in dce110_set_backlight_level() local
2958 abm, in dce110_set_backlight_level()
2969 struct abm *abm = pipe_ctx->stream_res.abm; in dce110_set_abm_immediate_disable() local
2972 if (abm) in dce110_set_abm_immediate_disable()
2973 abm->funcs->set_abm_immediate_disable(abm, in dce110_set_abm_immediate_disable()
2982 struct abm *abm = pipe_ctx->stream_res.abm; in dce110_set_pipe() local
[all …]
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dce60/
A 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()
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dce80/
A Ddce80_resource.c849 if (pool->base.abm != NULL) in dce80_resource_destruct()
850 dce_abm_destroy(&pool->base.abm); in dce80_resource_destruct()
1026 pool->base.abm = dce_abm_create(ctx, in dce80_construct()
1030 if (pool->base.abm == NULL) { in dce80_construct()
1226 pool->base.abm = dce_abm_create(ctx, in dce81_construct()
1230 if (pool->base.abm == NULL) { in dce81_construct()
1422 pool->base.abm = dce_abm_create(ctx, in dce83_construct()
1426 if (pool->base.abm == NULL) { in dce83_construct()
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dcn10/
A Ddcn10_resource.c985 if (pool->base.abm != NULL) in dcn10_resource_destruct()
986 dce_abm_destroy(&pool->base.abm); in dcn10_resource_destruct()
1113 idle_pipe->stream_res.abm = head_pipe->stream_res.abm; in dcn10_acquire_idle_pipe_for_layer()
1458 pool->base.abm = dce_abm_create(ctx, in dcn10_resource_construct()
1462 if (pool->base.abm == NULL) { in dcn10_resource_construct()
A Ddcn10_hw_sequencer.c1045 if (pipe_ctx->stream_res.abm) in dcn10_reset_back_end_for_pipe()
1473 struct abm *abm = dc->res_pool->abm; in dcn10_init_hw() local
1602 if (abm != NULL) in dcn10_init_hw()
1603 abm->funcs->abm_init(abm, backlight); in dcn10_init_hw()
1609 if (abm != NULL && dmcu != NULL) in dcn10_init_hw()
1610 abm->dmcu_is_running = dmcu->funcs->is_dmcu_initialized(dmcu); in dcn10_init_hw()
2898 if (stream_res->abm) { in dcn10_blank_pixel_data()
2900 stream_res->abm->funcs->set_abm_level(stream_res->abm, stream->abm_level); in dcn10_blank_pixel_data()
/linux-6.3-rc2/drivers/gpu/drm/radeon/
A Dcypress_dpm.h67 bool abm; member
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dce100/
A Ddce100_resource.c808 if (pool->base.abm != NULL) in dce100_resource_destruct()
809 dce_abm_destroy(&pool->base.abm); in dce100_resource_destruct()
1042 pool->base.abm = dce_abm_create(ctx, in dce100_resource_construct()
1046 if (pool->base.abm == NULL) { in dce100_resource_construct()
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dce120/
A Ddce120_resource.c656 if (pool->base.abm != NULL) in dce120_resource_destruct()
657 dce_abm_destroy(&pool->base.abm); in dce120_resource_destruct()
1137 pool->base.abm = dce_abm_create(ctx, in dce120_resource_construct()
1141 if (pool->base.abm == NULL) { in dce120_resource_construct()
/linux-6.3-rc2/drivers/gpu/drm/amd/display/modules/power/
A Dpower_helpers.c682 if (res_pool->abm == NULL && res_pool->multiple_abms[inst] == NULL) in dmub_init_abm_config()
685 if (res_pool->abm == NULL) in dmub_init_abm_config()
746 result = res_pool->abm->funcs->init_abm_config( in dmub_init_abm_config()
747 res_pool->abm, (char *)(&config), sizeof(struct abm_config_table), 0); in dmub_init_abm_config()
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dce112/
A Ddce112_resource.c831 if (pool->base.abm != NULL) in dce112_resource_destruct()
832 dce_abm_destroy(&pool->base.abm); in dce112_resource_destruct()
1302 pool->base.abm = dce_abm_create(ctx, in dce112_resource_construct()
1306 if (pool->base.abm == NULL) { in dce112_resource_construct()

Completed in 64 milliseconds

12