Searched refs:kvdl (Results 1 – 4 of 4) sorted by relevance
20 struct mlxsw_sp_kvdl *kvdl; in mlxsw_sp_kvdl_init() local23 kvdl = kzalloc(sizeof(*mlxsw_sp->kvdl) + kvdl_ops->priv_size, in mlxsw_sp_kvdl_init()25 if (!kvdl) in mlxsw_sp_kvdl_init()27 mutex_init(&kvdl->kvdl_lock); in mlxsw_sp_kvdl_init()28 kvdl->kvdl_ops = kvdl_ops; in mlxsw_sp_kvdl_init()29 mlxsw_sp->kvdl = kvdl; in mlxsw_sp_kvdl_init()31 err = kvdl_ops->init(mlxsw_sp, kvdl->priv); in mlxsw_sp_kvdl_init()37 mutex_destroy(&kvdl->kvdl_lock); in mlxsw_sp_kvdl_init()38 kfree(kvdl); in mlxsw_sp_kvdl_init()44 struct mlxsw_sp_kvdl *kvdl = mlxsw_sp->kvdl; in mlxsw_sp_kvdl_fini() local[all …]
71 mlxsw_sp1_kvdl_alloc_size_part(struct mlxsw_sp1_kvdl *kvdl, in mlxsw_sp1_kvdl_alloc_size_part() argument78 part = kvdl->parts[i]; in mlxsw_sp1_kvdl_alloc_size_part()89 mlxsw_sp1_kvdl_index_part(struct mlxsw_sp1_kvdl *kvdl, u32 kvdl_index) in mlxsw_sp1_kvdl_index_part() argument95 part = kvdl->parts[i]; in mlxsw_sp1_kvdl_index_part()151 struct mlxsw_sp1_kvdl *kvdl = priv; in mlxsw_sp1_kvdl_alloc() local157 part = mlxsw_sp1_kvdl_alloc_size_part(kvdl, entry_count); in mlxsw_sp1_kvdl_alloc()168 struct mlxsw_sp1_kvdl *kvdl = priv; in mlxsw_sp1_kvdl_free() local171 part = mlxsw_sp1_kvdl_index_part(kvdl, entry_index); in mlxsw_sp1_kvdl_free()183 struct mlxsw_sp1_kvdl *kvdl = priv; in mlxsw_sp1_kvdl_alloc_size_query() local186 part = mlxsw_sp1_kvdl_alloc_size_part(kvdl, entry_count); in mlxsw_sp1_kvdl_alloc_size_query()[all …]
150 struct mlxsw_sp2_kvdl *kvdl = priv; in mlxsw_sp2_kvdl_alloc() local151 struct mlxsw_sp2_kvdl_part *part = kvdl->parts[type]; in mlxsw_sp2_kvdl_alloc()162 struct mlxsw_sp2_kvdl *kvdl = priv; in mlxsw_sp2_kvdl_free() local163 struct mlxsw_sp2_kvdl_part *part = kvdl->parts[type]; in mlxsw_sp2_kvdl_free()221 struct mlxsw_sp2_kvdl *kvdl) in mlxsw_sp2_kvdl_parts_init() argument229 kvdl->parts[i] = mlxsw_sp2_kvdl_part_init(mlxsw_sp, info); in mlxsw_sp2_kvdl_parts_init()230 if (IS_ERR(kvdl->parts[i])) { in mlxsw_sp2_kvdl_parts_init()231 err = PTR_ERR(kvdl->parts[i]); in mlxsw_sp2_kvdl_parts_init()239 mlxsw_sp2_kvdl_part_fini(kvdl->parts[i]); in mlxsw_sp2_kvdl_parts_init()243 static void mlxsw_sp2_kvdl_parts_fini(struct mlxsw_sp2_kvdl *kvdl) in mlxsw_sp2_kvdl_parts_fini() argument[all …]
159 struct mlxsw_sp_kvdl *kvdl; member