Home
last modified time | relevance | path

Searched refs:traps_count (Results 1 – 5 of 5) sorted by relevance

/linux-6.1.9/drivers/net/ethernet/marvell/prestera/
Dprestera_devlink.c129 u32 traps_count; member
468 const u32 traps_count = ARRAY_SIZE(prestera_trap_items_arr); in prestera_devlink_traps_register() local
478 trap_data->trap_items_arr = kcalloc(traps_count, in prestera_devlink_traps_register()
487 trap_data->traps_count = traps_count; in prestera_devlink_traps_register()
495 for (i = 0; i < traps_count; i++) { in prestera_devlink_traps_register()
526 for (i = 0; i < trap_data->traps_count; i++) { in prestera_get_trap_item_by_cpu_code()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_trap.h18 size_t traps_count; /* Number of registered traps */ member
Dspectrum_trap.c1199 for (i = 0; i < trap->traps_count; i++) { in mlxsw_sp_trap_item_lookup()
1427 size_t traps_count, spec_traps_count; in mlxsw_sp_trap_items_arr_init() local
1438 traps_count = common_traps_count + spec_traps_count; in mlxsw_sp_trap_items_arr_init()
1439 trap->trap_items_arr = kcalloc(traps_count, elem_size, GFP_KERNEL); in mlxsw_sp_trap_items_arr_init()
1448 trap->traps_count = traps_count; in mlxsw_sp_trap_items_arr_init()
1469 for (i = 0; i < trap->traps_count; i++) { in mlxsw_sp_traps_init()
1494 for (i = trap->traps_count - 1; i >= 0; i--) { in mlxsw_sp_traps_fini()
/linux-6.1.9/include/net/
Ddevlink.h1820 size_t traps_count, void *priv);
1823 size_t traps_count, void *priv);
1826 size_t traps_count);
1829 size_t traps_count);
/linux-6.1.9/net/core/
Ddevlink.c11902 size_t traps_count, void *priv) in devl_traps_register() argument
11910 for (i = 0; i < traps_count; i++) { in devl_traps_register()
11945 size_t traps_count, void *priv) in devlink_traps_register() argument
11950 err = devl_traps_register(devlink, traps, traps_count, priv); in devlink_traps_register()
11964 size_t traps_count) in devl_traps_unregister() argument
11972 for (i = traps_count - 1; i >= 0; i--) in devl_traps_unregister()
11975 for (i = traps_count - 1; i >= 0; i--) in devl_traps_unregister()
11990 size_t traps_count) in devlink_traps_unregister() argument
11993 devl_traps_unregister(devlink, traps, traps_count); in devlink_traps_unregister()