Searched refs:policer_item (Results 1 – 2 of 2) sorted by relevance
46 struct devlink_trap_policer_item *policer_item; member75 struct devlink_trap_policer_item *policer_item; in devlink_trap_policer_item_lookup() local77 list_for_each_entry(policer_item, &devlink->trap_policer_list, list) { in devlink_trap_policer_item_lookup()78 if (policer_item->policer->id == id) in devlink_trap_policer_item_lookup()79 return policer_item; in devlink_trap_policer_item_lookup()498 if (group_item->policer_item && in devlink_nl_trap_group_fill()500 group_item->policer_item->policer->id)) in devlink_nl_trap_group_fill()656 struct devlink_trap_policer_item *policer_item; in devlink_trap_group_set() local670 policer_item = devlink_trap_policer_item_lookup(devlink, policer_id); in devlink_trap_group_set()671 if (policer_id && !policer_item) { in devlink_trap_group_set()[all …]
1293 const struct mlxsw_sp_trap_policer_item *policer_item; in mlxsw_sp_trap_policer_items_arr_init() local1298 policer_item = &mlxsw_sp_trap_policer_items_arr[0]; in mlxsw_sp_trap_policer_items_arr_init()1299 trap->policer_items_arr[i] = *policer_item; in mlxsw_sp_trap_policer_items_arr_init()1316 const struct mlxsw_sp_trap_policer_item *policer_item; in mlxsw_sp_trap_policers_init() local1325 policer_item = &trap->policer_items_arr[i]; in mlxsw_sp_trap_policers_init()1327 &policer_item->policer, 1); in mlxsw_sp_trap_policers_init()1336 policer_item = &trap->policer_items_arr[i]; in mlxsw_sp_trap_policers_init()1338 &policer_item->policer, 1); in mlxsw_sp_trap_policers_init()1347 const struct mlxsw_sp_trap_policer_item *policer_item; in mlxsw_sp_trap_policers_fini() local1352 policer_item = &trap->policer_items_arr[i]; in mlxsw_sp_trap_policers_fini()[all …]