Searched refs:group_items_arr (Results 1 – 2 of 2) sorted by relevance
14 struct mlxsw_sp_trap_group_item *group_items_arr; member
1033 if (trap->group_items_arr[i].group.id == id) in mlxsw_sp_trap_group_item_lookup()1034 return &trap->group_items_arr[i]; in mlxsw_sp_trap_group_item_lookup()1199 trap->group_items_arr = kcalloc(groups_count, elem_size, GFP_KERNEL); in mlxsw_sp_trap_group_items_arr_init()1200 if (!trap->group_items_arr) in mlxsw_sp_trap_group_items_arr_init()1203 memcpy(trap->group_items_arr, mlxsw_sp_trap_group_items_arr, in mlxsw_sp_trap_group_items_arr_init()1205 memcpy(trap->group_items_arr + common_groups_count, in mlxsw_sp_trap_group_items_arr_init()1215 kfree(mlxsw_sp->trap->group_items_arr); in mlxsw_sp_trap_group_items_arr_fini()1230 group_item = &trap->group_items_arr[i]; in mlxsw_sp_trap_groups_init()1241 group_item = &trap->group_items_arr[i]; in mlxsw_sp_trap_groups_init()1257 group_item = &trap->group_items_arr[i]; in mlxsw_sp_trap_groups_fini()