Lines Matching refs:policer

16 	struct devlink_trap_policer policer;  member
454 .policer = MLXSW_SP_TRAP_POLICER(1, 10 * 1024, 4096),
457 .policer = MLXSW_SP_TRAP_POLICER(2, 128, 128),
460 .policer = MLXSW_SP_TRAP_POLICER(3, 128, 128),
463 .policer = MLXSW_SP_TRAP_POLICER(4, 128, 128),
466 .policer = MLXSW_SP_TRAP_POLICER(5, 16 * 1024, 8192),
469 .policer = MLXSW_SP_TRAP_POLICER(6, 128, 128),
472 .policer = MLXSW_SP_TRAP_POLICER(7, 1024, 512),
475 .policer = MLXSW_SP_TRAP_POLICER(8, 20 * 1024, 8192),
478 .policer = MLXSW_SP_TRAP_POLICER(9, 128, 128),
481 .policer = MLXSW_SP_TRAP_POLICER(10, 1024, 512),
484 .policer = MLXSW_SP_TRAP_POLICER(11, 256, 128),
487 .policer = MLXSW_SP_TRAP_POLICER(12, 128, 128),
490 .policer = MLXSW_SP_TRAP_POLICER(13, 128, 128),
493 .policer = MLXSW_SP_TRAP_POLICER(14, 1024, 512),
496 .policer = MLXSW_SP_TRAP_POLICER(15, 1024, 512),
499 .policer = MLXSW_SP_TRAP_POLICER(16, 24 * 1024, 16384),
502 .policer = MLXSW_SP_TRAP_POLICER(17, 19 * 1024, 8192),
505 .policer = MLXSW_SP_TRAP_POLICER(18, 1024, 512),
508 .policer = MLXSW_SP_TRAP_POLICER(19, 1024, 512),
511 .policer = MLXSW_SP_TRAP_POLICER(20, 10240, 4096),
1172 if (trap->policer_items_arr[i].policer.id == id) in mlxsw_sp_trap_policer_item_lookup()
1266 last_id = mlxsw_sp_trap_policer_items_arr[arr_size - 1].policer.id; in mlxsw_sp_trap_policer_items_arr_init()
1275 trap->policer_items_arr[i].policer.id = ++last_id; in mlxsw_sp_trap_policer_items_arr_init()
1276 trap->policer_items_arr[i].policer.init_rate = 1; in mlxsw_sp_trap_policer_items_arr_init()
1277 trap->policer_items_arr[i].policer.init_burst = 16; in mlxsw_sp_trap_policer_items_arr_init()
1302 &policer_item->policer, 1); in mlxsw_sp_trap_policers_init()
1313 &policer_item->policer, 1); in mlxsw_sp_trap_policers_init()
1329 &policer_item->policer, 1); in mlxsw_sp_trap_policers_fini()
1678 const struct devlink_trap_policer *policer, in mlxsw_sp_trap_group_set() argument
1681 u32 policer_id = policer ? policer->id : 0; in mlxsw_sp_trap_group_set()
1749 const struct devlink_trap_policer *policer) in mlxsw_sp_trap_policer_init() argument
1755 policer_item = mlxsw_sp_trap_policer_item_lookup(mlxsw_sp, policer->id); in mlxsw_sp_trap_policer_init()
1764 policer->init_rate, in mlxsw_sp_trap_policer_init()
1765 policer->init_burst, true, NULL); in mlxsw_sp_trap_policer_init()
1777 const struct devlink_trap_policer *policer) in mlxsw_sp_trap_policer_fini() argument
1782 policer_item = mlxsw_sp_trap_policer_item_lookup(mlxsw_sp, policer->id); in mlxsw_sp_trap_policer_fini()
1790 const struct devlink_trap_policer *policer, in mlxsw_sp_trap_policer_set() argument
1797 policer_item = mlxsw_sp_trap_policer_item_lookup(mlxsw_sp, policer->id); in mlxsw_sp_trap_policer_set()
1807 const struct devlink_trap_policer *policer, in mlxsw_sp_trap_policer_counter_get() argument
1815 policer_item = mlxsw_sp_trap_policer_item_lookup(mlxsw_sp, policer->id); in mlxsw_sp_trap_policer_counter_get()