Searched refs:traps_count (Results 1 – 2 of 2) sorted by relevance
18 size_t traps_count; /* Number of registered traps */ member
1046 for (i = 0; i < trap->traps_count; i++) { in mlxsw_sp_trap_item_lookup()1275 size_t traps_count, spec_traps_count; in mlxsw_sp_trap_items_arr_init() local1286 traps_count = common_traps_count + spec_traps_count; in mlxsw_sp_trap_items_arr_init()1287 trap->trap_items_arr = kcalloc(traps_count, elem_size, GFP_KERNEL); in mlxsw_sp_trap_items_arr_init()1296 trap->traps_count = traps_count; in mlxsw_sp_trap_items_arr_init()1317 for (i = 0; i < trap->traps_count; i++) { in mlxsw_sp_traps_init()1342 for (i = trap->traps_count - 1; i >= 0; i--) { in mlxsw_sp_traps_fini()