Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/mellanox/mlxsw/
H A 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 …]
H A 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 …]
H A Dspectrum2_kvdl.c151 struct mlxsw_sp2_kvdl *kvdl = priv; in mlxsw_sp2_kvdl_alloc() local
152 struct mlxsw_sp2_kvdl_part *part = kvdl->parts[type]; in mlxsw_sp2_kvdl_alloc()
163 struct mlxsw_sp2_kvdl *kvdl = priv; in mlxsw_sp2_kvdl_free() local
164 struct mlxsw_sp2_kvdl_part *part = kvdl->parts[type]; in mlxsw_sp2_kvdl_free()
222 struct mlxsw_sp2_kvdl *kvdl) in mlxsw_sp2_kvdl_parts_init() argument
230 kvdl->parts[i] = mlxsw_sp2_kvdl_part_init(mlxsw_sp, info); in mlxsw_sp2_kvdl_parts_init()
231 if (IS_ERR(kvdl->parts[i])) { in mlxsw_sp2_kvdl_parts_init()
232 err = PTR_ERR(kvdl->parts[i]); in mlxsw_sp2_kvdl_parts_init()
240 mlxsw_sp2_kvdl_part_fini(kvdl->parts[i]); in mlxsw_sp2_kvdl_parts_init()
244 static void mlxsw_sp2_kvdl_parts_fini(struct mlxsw_sp2_kvdl *kvdl) in mlxsw_sp2_kvdl_parts_fini() argument
[all …]
H A Dspectrum.h177 struct mlxsw_sp_kvdl *kvdl; member