Home
last modified time | relevance | path

Searched refs:kvdl (Results 1 – 4 of 4) sorted by relevance

/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_kvdl.c20 struct mlxsw_sp_kvdl *kvdl; in mlxsw_sp_kvdl_init() local
23 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 …]
Dspectrum1_kvdl.c71 mlxsw_sp1_kvdl_alloc_size_part(struct mlxsw_sp1_kvdl *kvdl, in mlxsw_sp1_kvdl_alloc_size_part() argument
78 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() argument
95 part = kvdl->parts[i]; in mlxsw_sp1_kvdl_index_part()
151 struct mlxsw_sp1_kvdl *kvdl = priv; in mlxsw_sp1_kvdl_alloc() local
157 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() local
171 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() local
186 part = mlxsw_sp1_kvdl_alloc_size_part(kvdl, entry_count); in mlxsw_sp1_kvdl_alloc_size_query()
[all …]
Dspectrum2_kvdl.c150 struct mlxsw_sp2_kvdl *kvdl = priv; in mlxsw_sp2_kvdl_alloc() local
151 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() local
163 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() argument
229 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 …]
Dspectrum.h159 struct mlxsw_sp_kvdl *kvdl; member