Home
last modified time | relevance | path

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

12

/Linux-v5.4/drivers/net/ethernet/netronome/nfp/abm/
Dctrl.c52 struct nfp_cpp *cpp = alink->abm->app->cpp; in nfp_abm_ctrl_stat()
75 int __nfp_abm_ctrl_set_q_lvl(struct nfp_abm *abm, unsigned int id, u32 val) in __nfp_abm_ctrl_set_q_lvl() argument
77 struct nfp_cpp *cpp = abm->app->cpp; in __nfp_abm_ctrl_set_q_lvl()
81 __clear_bit(id, abm->threshold_undef); in __nfp_abm_ctrl_set_q_lvl()
82 if (abm->thresholds[id] == val) in __nfp_abm_ctrl_set_q_lvl()
86 err = __nfp_rtsym_writel(cpp, abm->q_lvls, 4, 0, sym_offset, val); in __nfp_abm_ctrl_set_q_lvl()
94 abm->thresholds[id] = val; in __nfp_abm_ctrl_set_q_lvl()
105 return __nfp_abm_ctrl_set_q_lvl(alink->abm, threshold, val); in nfp_abm_ctrl_set_q_lvl()
108 int __nfp_abm_ctrl_set_q_act(struct nfp_abm *abm, unsigned int id, in __nfp_abm_ctrl_set_q_act() argument
111 struct nfp_cpp *cpp = abm->app->cpp; in __nfp_abm_ctrl_set_q_act()
[all …]
Dmain.c114 port->pf_id = alink->abm->pf_id; in nfp_abm_spawn_repr()
167 nfp_abm_kill_reprs(struct nfp_abm *abm, struct nfp_abm_link *alink) in nfp_abm_kill_reprs() argument
169 nfp_abm_kill_repr(abm->app, alink, NFP_REPR_TYPE_PF); in nfp_abm_kill_reprs()
170 nfp_abm_kill_repr(abm->app, alink, NFP_REPR_TYPE_PHYS_PORT); in nfp_abm_kill_reprs()
173 static void nfp_abm_kill_reprs_all(struct nfp_abm *abm) in nfp_abm_kill_reprs_all() argument
175 struct nfp_pf *pf = abm->app->pf; in nfp_abm_kill_reprs_all()
179 nfp_abm_kill_reprs(abm, (struct nfp_abm_link *)nn->app_priv); in nfp_abm_kill_reprs_all()
184 struct nfp_abm *abm = app->priv; in nfp_abm_eswitch_mode_get() local
186 return abm->eswitch_mode; in nfp_abm_eswitch_mode_get()
189 static int nfp_abm_eswitch_set_legacy(struct nfp_abm *abm) in nfp_abm_eswitch_set_legacy() argument
[all …]
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);
254 int __nfp_abm_ctrl_set_q_lvl(struct nfp_abm *abm, unsigned int id, u32 val);
257 int __nfp_abm_ctrl_set_q_act(struct nfp_abm *abm, unsigned int id,
[all …]
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()
Dqdisc.c48 struct nfp_cpp *cpp = alink->abm->app->cpp; in nfp_abm_stats_update_red()
125 nfp_warn(alink->abm->app->cpp, "Offload of '%08x' stopped\n", in nfp_abm_qdisc_offload_stop()
153 nfp_err(alink->abm->app->cpp, in __nfp_abm_stats_init()
161 nfp_err(alink->abm->app->cpp, in __nfp_abm_stats_init()
215 for (i = 0; i < alink->abm->num_bands; i++) { in nfp_abm_offload_compile_red()
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()
277 for (i = 0; i < abm->num_thresholds; i++) in nfp_abm_qdisc_offload_update()
278 if (test_bit(i, abm->threshold_undef)) in nfp_abm_qdisc_offload_update()
[all …]
/Linux-v5.4/drivers/gpu/drm/amd/display/dc/dce/
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) 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()
248 static void dce_abm_init(struct abm *abm) in dce_abm_init() argument
250 struct dce_abm *abm_dce = TO_DCE_ABM(abm); in dce_abm_init()
288 static unsigned int dce_abm_get_current_backlight(struct abm *abm) in dce_abm_get_current_backlight() argument
290 struct dce_abm *abm_dce = TO_DCE_ABM(abm); in dce_abm_get_current_backlight()
[all …]
Ddce_abm.h230 struct abm base;
236 struct abm *dce_abm_create(
242 void dce_abm_destroy(struct abm **abm);
/Linux-v5.4/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 (*set_pipe)(struct abm *abm, unsigned int controller_id);
50 bool (*init_backlight)(struct abm *abm);
55 bool (*set_backlight_level_pwm)(struct abm *abm,
61 unsigned int (*get_current_backlight)(struct abm *abm);
62 unsigned int (*get_target_backlight)(struct abm *abm);
/Linux-v5.4/drivers/net/ethernet/netronome/nfp/
DMakefile68 abm/cls.o \
69 abm/ctrl.o \
70 abm/qdisc.o \
71 abm/main.o
/Linux-v5.4/drivers/gpu/drm/amd/display/dc/inc/
Dcore_types.h225 struct abm *abm; member
248 struct abm *abm; member
/Linux-v5.4/drivers/gpu/drm/amd/display/dc/core/
Ddc_link.c2308 struct abm *abm = link->ctx->dc->res_pool->abm; in dc_link_get_backlight_level() local
2310 if (abm == NULL || abm->funcs->get_current_backlight == NULL) in dc_link_get_backlight_level()
2313 return (int) abm->funcs->get_current_backlight(abm); in dc_link_get_backlight_level()
2321 struct abm *abm = core_dc->res_pool->abm; in dc_link_set_backlight_level() local
2329 (abm == NULL) || in dc_link_set_backlight_level()
2330 (abm->funcs->set_backlight_level_pwm == NULL)) in dc_link_set_backlight_level()
2360 abm->funcs->set_backlight_level_pwm( in dc_link_set_backlight_level()
2361 abm, in dc_link_set_backlight_level()
2374 struct abm *abm = core_dc->res_pool->abm; in dc_link_set_abm_disable() local
2376 if ((abm == NULL) || (abm->funcs->set_backlight_level_pwm == NULL)) in dc_link_set_abm_disable()
[all …]
Ddc.c1954 if (stream_update->abm_level && pipe_ctx->stream_res.abm) { in commit_planes_do_stream_update()
1958 pipe_ctx->stream_res.abm->funcs->set_abm_level( in commit_planes_do_stream_update()
1959 pipe_ctx->stream_res.abm, stream->abm_level); in commit_planes_do_stream_update()
1961 pipe_ctx->stream_res.abm->funcs->set_abm_level( in commit_planes_do_stream_update()
1962 pipe_ctx->stream_res.abm, stream->abm_level); in commit_planes_do_stream_update()
2327 struct abm *abm = dc->res_pool->abm; in dc_get_current_backlight_pwm() local
2329 if (abm) in dc_get_current_backlight_pwm()
2330 return abm->funcs->get_current_backlight(abm); in dc_get_current_backlight_pwm()
2337 struct abm *abm = dc->res_pool->abm; in dc_get_target_backlight_pwm() local
2339 if (abm) in dc_get_target_backlight_pwm()
[all …]
Ddc_resource.c1290 free_pipe->stream_res.abm = tail_pipe->stream_res.abm; in dc_add_plane_to_context()
1988 pipe_ctx->stream_res.abm = pool->abm; in resource_map_pool_resources()
/Linux-v5.4/drivers/gpu/drm/amd/display/dc/dce80/
Ddce80_resource.c779 if (pool->base.abm != NULL) in destruct()
780 dce_abm_destroy(&pool->base.abm); in destruct()
952 pool->base.abm = dce_abm_create(ctx, in dce80_construct()
956 if (pool->base.abm == NULL) { in dce80_construct()
1149 pool->base.abm = dce_abm_create(ctx, in dce81_construct()
1153 if (pool->base.abm == NULL) { in dce81_construct()
1342 pool->base.abm = dce_abm_create(ctx, in dce83_construct()
1346 if (pool->base.abm == NULL) { in dce83_construct()
/Linux-v5.4/drivers/gpu/drm/amd/display/dc/dcn10/
Ddcn10_hw_sequencer.c1178 struct abm *abm = dc->res_pool->abm; in dcn10_init_hw() local
1279 if (abm != NULL) { in dcn10_init_hw()
1280 abm->funcs->init_backlight(abm); in dcn10_init_hw()
1281 abm->funcs->abm_init(abm); in dcn10_init_hw()
1287 if (abm != NULL && dmcu != NULL) in dcn10_init_hw()
1288 abm->dmcu_is_running = dmcu->funcs->is_dmcu_initialized(dmcu); in dcn10_init_hw()
2440 if (stream_res->abm) { in dcn10_blank_pixel_data()
2441 stream_res->abm->funcs->set_pipe(stream_res->abm, stream_res->tg->inst + 1); in dcn10_blank_pixel_data()
2442 stream_res->abm->funcs->set_abm_level(stream_res->abm, stream->abm_level); in dcn10_blank_pixel_data()
2445 if (stream_res->abm) in dcn10_blank_pixel_data()
[all …]
Ddcn10_resource.c961 if (pool->base.abm != NULL) in destruct()
962 dce_abm_destroy(&pool->base.abm); in destruct()
1107 idle_pipe->stream_res.abm = head_pipe->stream_res.abm; in dcn10_acquire_idle_pipe_for_layer()
1372 pool->base.abm = dce_abm_create(ctx, in construct()
1376 if (pool->base.abm == NULL) { in construct()
/Linux-v5.4/drivers/gpu/drm/amd/display/dc/dce100/
Ddce100_resource.c738 if (pool->base.abm != NULL) in destruct()
739 dce_abm_destroy(&pool->base.abm); in destruct()
971 pool->base.abm = dce_abm_create(ctx, in construct()
975 if (pool->base.abm == NULL) { in construct()
/Linux-v5.4/drivers/gpu/drm/radeon/
Dcypress_dpm.h67 bool abm; member
/Linux-v5.4/drivers/gpu/drm/amd/display/dc/dce110/
Ddce110_hw_sequencer.c2371 struct abm *abm; in init_hw() local
2419 abm = dc->res_pool->abm; in init_hw()
2420 if (abm != NULL) { in init_hw()
2421 abm->funcs->init_backlight(abm); in init_hw()
2422 abm->funcs->abm_init(abm); in init_hw()
2426 if (dmcu != NULL && abm != NULL) in init_hw()
2427 abm->dmcu_is_running = dmcu->funcs->is_dmcu_initialized(dmcu); in init_hw()
Ddce110_resource.c797 if (pool->base.abm != NULL) in destruct()
798 dce_abm_destroy(&pool->base.abm); in destruct()
1343 pool->base.abm = dce_abm_create(ctx, in construct()
1347 if (pool->base.abm == NULL) { in construct()
/Linux-v5.4/drivers/gpu/drm/amd/display/dc/dce120/
Ddce120_resource.c609 if (pool->base.abm != NULL) in destruct()
610 dce_abm_destroy(&pool->base.abm); in destruct()
1065 pool->base.abm = dce_abm_create(ctx, in construct()
1069 if (pool->base.abm == NULL) { in construct()
/Linux-v5.4/drivers/gpu/drm/amd/display/dc/dcn20/
Ddcn20_hwseq.c873 if (stream_res->abm) in dcn20_blank_pixel_data()
874 stream_res->abm->funcs->set_abm_immediate_disable(stream_res->abm); in dcn20_blank_pixel_data()
902 if (stream_res->abm) { in dcn20_blank_pixel_data()
903 stream_res->abm->funcs->set_pipe(stream_res->abm, stream_res->tg->inst + 1); in dcn20_blank_pixel_data()
904 stream_res->abm->funcs->set_abm_level(stream_res->abm, stream->abm_level); in dcn20_blank_pixel_data()
/Linux-v5.4/drivers/gpu/drm/amd/display/dc/dce112/
Ddce112_resource.c759 if (pool->base.abm != NULL) in destruct()
760 dce_abm_destroy(&pool->base.abm); in destruct()
1227 pool->base.abm = dce_abm_create(ctx, in construct()
1231 if (pool->base.abm == NULL) { in construct()
/Linux-v5.4/drivers/gpu/drm/amd/amdgpu/
Dsi_dpm.h651 bool abm; member
/Linux-v5.4/drivers/gpu/drm/amd/display/dc/dcn21/
Ddcn21_resource.c927 if (pool->base.abm != NULL) in destruct()
928 dce_abm_destroy(&pool->base.abm); in destruct()

12