/drivers/net/ethernet/netronome/nfp/abm/ |
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 …]
|
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 …]
|
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 …]
|
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()
|
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 …]
|
/drivers/gpu/drm/amd/display/dc/dce/ |
D | dce_abm.c | 37 #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) 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 …]
|
D | dmub_abm.c | 38 #define TO_DMUB_ABM(abm)\ argument 39 container_of(abm, struct dce_abm, base) 79 static void dmub_abm_init(struct abm *abm, uint32_t backlight) in dmub_abm_init() argument 81 struct dce_abm *dce_abm = TO_DMUB_ABM(abm); in dmub_abm_init() 117 dmub_abm_enable_fractional_pwm(abm->ctx); in dmub_abm_init() 120 static unsigned int dmub_abm_get_current_backlight(struct abm *abm) in dmub_abm_get_current_backlight() argument 122 struct dce_abm *dce_abm = TO_DMUB_ABM(abm); in dmub_abm_get_current_backlight() 131 static unsigned int dmub_abm_get_target_backlight(struct abm *abm) in dmub_abm_get_target_backlight() argument 133 struct dce_abm *dce_abm = TO_DMUB_ABM(abm); in dmub_abm_get_target_backlight() 142 static bool dmub_abm_set_level(struct abm *abm, uint32_t level) in dmub_abm_set_level() argument [all …]
|
D | dmub_abm.h | 32 struct abm *dmub_abm_create( 38 void dmub_abm_destroy(struct abm **abm);
|
D | dce_abm.h | 238 struct abm base; 244 struct abm *dce_abm_create( 250 void dce_abm_destroy(struct abm **abm);
|
/drivers/gpu/drm/amd/display/dc/inc/hw/ |
D | abm.h | 30 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,
|
/drivers/gpu/drm/amd/display/dc/dcn21/ |
D | dcn21_hwseq.c | 140 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 …]
|
/drivers/net/ethernet/netronome/nfp/ |
D | Makefile | 69 abm/cls.o \ 70 abm/ctrl.o \ 71 abm/qdisc.o \ 72 abm/main.o
|
/drivers/gpu/drm/amd/display/dc/inc/ |
D | core_types.h | 277 struct abm *abm; member 282 struct abm *multiple_abms[MAX_PIPES]; 306 struct abm *abm; member
|
/drivers/gpu/drm/amd/display/dc/dce110/ |
D | dce110_hw_sequencer.c | 2525 struct abm *abm; in init_hw() local 2582 abm = dc->res_pool->abm; in init_hw() 2583 if (abm != NULL) in init_hw() 2584 abm->funcs->abm_init(abm, backlight); in init_hw() 2587 if (dmcu != NULL && abm != NULL) in init_hw() 2588 abm->dmcu_is_running = dmcu->funcs->is_dmcu_initialized(dmcu); in init_hw() 2899 struct abm *abm = pipe_ctx->stream_res.abm; in dce110_set_backlight_level() local 2908 if (abm == NULL || panel_cntl == NULL || (abm->funcs->set_backlight_level_pwm == NULL)) in dce110_set_backlight_level() 2917 abm->funcs->set_backlight_level_pwm( in dce110_set_backlight_level() 2918 abm, in dce110_set_backlight_level() [all …]
|
/drivers/gpu/drm/amd/display/dc/dce80/ |
D | dce80_resource.c | 850 if (pool->base.abm != NULL) in dce80_resource_destruct() 851 dce_abm_destroy(&pool->base.abm); in dce80_resource_destruct() 1027 pool->base.abm = dce_abm_create(ctx, in dce80_construct() 1031 if (pool->base.abm == NULL) { in dce80_construct() 1227 pool->base.abm = dce_abm_create(ctx, in dce81_construct() 1231 if (pool->base.abm == NULL) { in dce81_construct() 1423 pool->base.abm = dce_abm_create(ctx, in dce83_construct() 1427 if (pool->base.abm == NULL) { in dce83_construct()
|
/drivers/gpu/drm/amd/display/dc/dce60/ |
D | dce60_resource.c | 845 if (pool->base.abm != NULL) in dce60_resource_destruct() 846 dce_abm_destroy(&pool->base.abm); in dce60_resource_destruct() 1016 pool->base.abm = dce_abm_create(ctx, in dce60_construct() 1020 if (pool->base.abm == NULL) { in dce60_construct() 1214 pool->base.abm = dce_abm_create(ctx, in dce61_construct() 1218 if (pool->base.abm == NULL) { in dce61_construct() 1408 pool->base.abm = dce_abm_create(ctx, in dce64_construct() 1412 if (pool->base.abm == NULL) { in dce64_construct()
|
/drivers/gpu/drm/amd/display/dc/core/ |
D | dc_link.c | 2560 static struct abm *get_abm_from_stream_res(const struct dc_link *link) in get_abm_from_stream_res() 2564 struct abm *abm = NULL; in get_abm_from_stream_res() local 2576 abm = pipe_ctx.stream_res.abm; in get_abm_from_stream_res() 2580 return abm; in get_abm_from_stream_res() 2585 struct abm *abm = get_abm_from_stream_res(link); in dc_link_get_backlight_level() local 2596 else if (abm != NULL && abm->funcs->get_current_backlight != NULL) in dc_link_get_backlight_level() 2597 return (int) abm->funcs->get_current_backlight(abm); in dc_link_get_backlight_level() 2604 struct abm *abm = get_abm_from_stream_res(link); in dc_link_get_target_backlight_pwm() local 2606 if (abm == NULL || abm->funcs->get_target_backlight == NULL) in dc_link_get_target_backlight_pwm() 2609 return (int) abm->funcs->get_target_backlight(abm); in dc_link_get_target_backlight_pwm()
|
D | dc_resource.c | 1401 free_pipe->stream_res.abm = tail_pipe->stream_res.abm; in dc_add_plane_to_context() 2082 if (pool->abm) in resource_map_pool_resources() 2083 pipe_ctx->stream_res.abm = pool->abm; in resource_map_pool_resources() 2085 pipe_ctx->stream_res.abm = pool->multiple_abms[pipe_ctx->stream_res.tg->inst]; in resource_map_pool_resources() 2087 pipe_ctx->stream_res.abm = pool->abm; in resource_map_pool_resources()
|
/drivers/gpu/drm/amd/display/dc/dce100/ |
D | dce100_resource.c | 809 if (pool->base.abm != NULL) in dce100_resource_destruct() 810 dce_abm_destroy(&pool->base.abm); in dce100_resource_destruct() 1043 pool->base.abm = dce_abm_create(ctx, in dce100_resource_construct() 1047 if (pool->base.abm == NULL) { in dce100_resource_construct()
|
/drivers/gpu/drm/amd/display/dc/dcn10/ |
D | dcn10_resource.c | 1041 if (pool->base.abm != NULL) in dcn10_resource_destruct() 1042 dce_abm_destroy(&pool->base.abm); in dcn10_resource_destruct() 1169 idle_pipe->stream_res.abm = head_pipe->stream_res.abm; in dcn10_acquire_idle_pipe_for_layer() 1523 pool->base.abm = dce_abm_create(ctx, in dcn10_resource_construct() 1527 if (pool->base.abm == NULL) { in dcn10_resource_construct()
|
D | dcn10_hw_sequencer.c | 973 if (pipe_ctx->stream_res.abm) in dcn10_reset_back_end_for_pipe() 1335 struct abm *abm = dc->res_pool->abm; in dcn10_init_hw() local 1501 if (abm != NULL) in dcn10_init_hw() 1502 abm->funcs->abm_init(abm, backlight); in dcn10_init_hw() 1508 if (abm != NULL && dmcu != NULL) in dcn10_init_hw() 1509 abm->dmcu_is_running = dmcu->funcs->is_dmcu_initialized(dmcu); in dcn10_init_hw() 2762 if (stream_res->abm) { in dcn10_blank_pixel_data() 2764 stream_res->abm->funcs->set_abm_level(stream_res->abm, stream->abm_level); in dcn10_blank_pixel_data()
|
/drivers/gpu/drm/amd/display/modules/power/ |
D | power_helpers.c | 673 if (res_pool->abm == NULL && res_pool->multiple_abms[inst] == NULL) in dmub_init_abm_config() 676 if (res_pool->abm == NULL) in dmub_init_abm_config() 737 result = res_pool->abm->funcs->init_abm_config( in dmub_init_abm_config() 738 res_pool->abm, (char *)(&config), sizeof(struct abm_config_table), 0); in dmub_init_abm_config()
|
/drivers/gpu/drm/radeon/ |
D | cypress_dpm.h | 67 bool abm; member
|
/drivers/gpu/drm/amd/display/dc/dce120/ |
D | dce120_resource.c | 658 if (pool->base.abm != NULL) in dce120_resource_destruct() 659 dce_abm_destroy(&pool->base.abm); in dce120_resource_destruct() 1138 pool->base.abm = dce_abm_create(ctx, in dce120_resource_construct() 1142 if (pool->base.abm == NULL) { in dce120_resource_construct()
|
/drivers/gpu/drm/amd/display/dc/dce112/ |
D | dce112_resource.c | 832 if (pool->base.abm != NULL) in dce112_resource_destruct() 833 dce_abm_destroy(&pool->base.abm); in dce112_resource_destruct() 1303 pool->base.abm = dce_abm_create(ctx, in dce112_resource_construct() 1307 if (pool->base.abm == NULL) { in dce112_resource_construct()
|