Searched refs:p_rif_index (Results 1 – 1 of 1) sorted by relevance
8347 static int mlxsw_sp_rif_index_alloc(struct mlxsw_sp *mlxsw_sp, u16 *p_rif_index, in mlxsw_sp_rif_index_alloc() argument8350 *p_rif_index = gen_pool_alloc(mlxsw_sp->router->rifs_table, in mlxsw_sp_rif_index_alloc()8352 if (*p_rif_index == 0) in mlxsw_sp_rif_index_alloc()8354 *p_rif_index -= MLXSW_SP_ROUTER_GENALLOC_OFFSET; in mlxsw_sp_rif_index_alloc()8357 WARN_ON_ONCE(*p_rif_index % rif_entries); in mlxsw_sp_rif_index_alloc()