Home
last modified time | relevance | path

Searched refs:group_items_arr (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_trap.h14 struct mlxsw_sp_trap_group_item *group_items_arr; member
H A Dspectrum_trap.c1211 if (trap->group_items_arr[i].group.id == id) in mlxsw_sp_trap_group_item_lookup()
1212 return &trap->group_items_arr[i]; in mlxsw_sp_trap_group_item_lookup()
1377 trap->group_items_arr = kcalloc(groups_count, elem_size, GFP_KERNEL); in mlxsw_sp_trap_group_items_arr_init()
1378 if (!trap->group_items_arr) in mlxsw_sp_trap_group_items_arr_init()
1381 memcpy(trap->group_items_arr, mlxsw_sp_trap_group_items_arr, in mlxsw_sp_trap_group_items_arr_init()
1383 memcpy(trap->group_items_arr + common_groups_count, in mlxsw_sp_trap_group_items_arr_init()
1393 kfree(mlxsw_sp->trap->group_items_arr); in mlxsw_sp_trap_group_items_arr_fini()
1408 group_item = &trap->group_items_arr[i]; in mlxsw_sp_trap_groups_init()
1418 group_item = &trap->group_items_arr[i]; in mlxsw_sp_trap_groups_init()
1434 group_item = &trap->group_items_arr[i]; in mlxsw_sp_trap_groups_fini()