| /linux/drivers/net/ethernet/netronome/nfp/abm/ |
| H A D | ctrl.c | 52 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 …]
|
| H A D | main.c | 114 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 …]
|
| H A D | main.h | 207 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 …]
|
| H A D | cls.c | 21 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()
|
| H A D | qdisc.c | 48 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/drivers/gpu/drm/amd/display/dc/dce/ |
| H A D | dmub_abm_lcd.h | 33 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…
|
| H A D | dmub_abm.h | 32 struct abm *dmub_abm_create( 38 void dmub_abm_destroy(struct abm **abm);
|
| /linux/drivers/net/ethernet/netronome/nfp/ |
| H A D | Makefile | 77 abm/cls.o \ 78 abm/ctrl.o \ 79 abm/qdisc.o \ 80 abm/main.o
|
| /linux/drivers/gpu/drm/amd/display/dc/resource/dce60/ |
| H A D | dce60_resource.c | 874 if (pool->base.abm != NULL) in dce60_resource_destruct() 875 dce_abm_destroy(&pool->base.abm); in dce60_resource_destruct() 993 pool->base.abm = dce_abm_create(ctx, in dce60_construct() 997 if (pool->base.abm == NULL) { in dce60_construct() 1191 pool->base.abm = dce_abm_create(ctx, in dce61_construct() 1195 if (pool->base.abm == NULL) { in dce61_construct() 1388 pool->base.abm = dce_abm_create(ctx, in dce64_construct() 1392 if (pool->base.abm == NULL) { in dce64_construct()
|
| /linux/drivers/gpu/drm/radeon/ |
| H A D | cypress_dpm.h | 67 bool abm; member
|
| H A D | btc_dpm.c | 2644 eg_pi->abm = true; in btc_dpm_init()
|
| H A D | cypress_dpm.c | 2119 eg_pi->abm = true; in cypress_dpm_init()
|
| H A D | ni_dpm.c | 4175 eg_pi->abm = true; in ni_dpm_init()
|
| /linux/drivers/gpu/drm/amd/display/dc/resource/dce100/ |
| H A D | dce100_resource.c | 838 if (pool->base.abm != NULL) in dce100_resource_destruct() 839 dce_abm_destroy(&pool->base.abm); in dce100_resource_destruct() 1103 pool->base.abm = dce_abm_create(ctx, in dce100_resource_construct() 1107 if (pool->base.abm == NULL) { in dce100_resource_construct()
|
| /linux/drivers/gpu/drm/amd/display/dc/core/ |
| H A D | dc.c | 4320 if (stream_update->abm_level && pipe_ctx->stream_res.abm) { in commit_planes_do_stream_update_sequence() 4332 hwss_add_abm_set_level(&seq_state, pipe_ctx->stream_res.abm, stream->abm_level); in commit_planes_do_stream_update_sequence() 4492 if (stream_update->abm_level && pipe_ctx->stream_res.abm) { in commit_planes_do_stream_update() 4504 pipe_ctx->stream_res.abm->funcs->set_abm_level( in commit_planes_do_stream_update() 4505 pipe_ctx->stream_res.abm, stream->abm_level); in commit_planes_do_stream_update() 7332 if (pipe->stream_res.abm && pipe->stream_res.abm->funcs->set_abm_pause) in dc_notify_vsync_int_state() 7333 …pipe->stream_res.abm->funcs->set_abm_pause(pipe->stream_res.abm, !enable, i, pipe->stream_res.tg->… in dc_notify_vsync_int_state() 7380 if (pipe->stream_res.abm && in dc_abm_save_restore() 7381 pipe->stream_res.abm->funcs->save_restore) in dc_abm_save_restore() 7382 return pipe->stream_res.abm->funcs->save_restore( in dc_abm_save_restore() [all …]
|
| /linux/tools/arch/x86/kcpuid/ |
| H A D | cpuid.csv | 672 0x80000001, 0, ecx, 5, abm , LZCNT advanced bit manipulation
|