Lines Matching refs:policer
6638 const struct devlink_trap_policer *policer; member
6688 if (policer_item->policer->id == id) in devlink_trap_policer_item_lookup()
7074 group_item->policer_item->policer->id)) in devlink_nl_trap_group_fill()
7240 const struct devlink_trap_policer *policer; in devlink_trap_group_set() local
7262 policer = policer_item ? policer_item->policer : NULL; in devlink_trap_group_set()
7264 err = devlink->ops->trap_group_set(devlink, group_item->group, policer, in devlink_trap_group_set()
7324 const struct devlink_trap_policer *policer) in devlink_trap_policer_stats_put() argument
7333 err = devlink->ops->trap_policer_counter_get(devlink, policer, &drops); in devlink_trap_policer_stats_put()
7371 policer_item->policer->id)) in devlink_nl_trap_policer_fill()
7383 policer_item->policer); in devlink_nl_trap_policer_fill()
7492 if (rate < policer_item->policer->min_rate) { in devlink_trap_policer_set()
7497 if (rate > policer_item->policer->max_rate) { in devlink_trap_policer_set()
7502 if (burst < policer_item->policer->min_burst) { in devlink_trap_policer_set()
7507 if (burst > policer_item->policer->max_burst) { in devlink_trap_policer_set()
7512 err = devlink->ops->trap_policer_set(devlink, policer_item->policer, in devlink_trap_policer_set()
10075 const struct devlink_trap_policer *policer) in devlink_trap_policer_register() argument
10080 if (devlink_trap_policer_item_lookup(devlink, policer->id)) in devlink_trap_policer_register()
10087 policer_item->policer = policer; in devlink_trap_policer_register()
10088 policer_item->rate = policer->init_rate; in devlink_trap_policer_register()
10089 policer_item->burst = policer->init_burst; in devlink_trap_policer_register()
10092 err = devlink->ops->trap_policer_init(devlink, policer); in devlink_trap_policer_register()
10110 const struct devlink_trap_policer *policer) in devlink_trap_policer_unregister() argument
10114 policer_item = devlink_trap_policer_item_lookup(devlink, policer->id); in devlink_trap_policer_unregister()
10122 devlink->ops->trap_policer_fini(devlink, policer); in devlink_trap_policer_unregister()
10143 const struct devlink_trap_policer *policer = &policers[i]; in devlink_trap_policers_register() local
10145 if (WARN_ON(policer->id == 0 || in devlink_trap_policers_register()
10146 policer->max_rate < policer->min_rate || in devlink_trap_policers_register()
10147 policer->max_burst < policer->min_burst)) { in devlink_trap_policers_register()
10152 err = devlink_trap_policer_register(devlink, policer); in devlink_trap_policers_register()