Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_kvdl.c18 struct mlxsw_sp_kvdl *kvdl; in mlxsw_sp_kvdl_init() local
21 kvdl = kzalloc(sizeof(*mlxsw_sp->kvdl) + kvdl_ops->priv_size, in mlxsw_sp_kvdl_init()
23 if (!kvdl) in mlxsw_sp_kvdl_init()
25 kvdl->kvdl_ops = kvdl_ops; in mlxsw_sp_kvdl_init()
26 mlxsw_sp->kvdl = kvdl; in mlxsw_sp_kvdl_init()
28 err = kvdl_ops->init(mlxsw_sp, kvdl->priv); in mlxsw_sp_kvdl_init()
34 kfree(kvdl); in mlxsw_sp_kvdl_init()
40 struct mlxsw_sp_kvdl *kvdl = mlxsw_sp->kvdl; in mlxsw_sp_kvdl_fini() local
42 kvdl->kvdl_ops->fini(mlxsw_sp, kvdl->priv); in mlxsw_sp_kvdl_fini()
43 kfree(kvdl); in mlxsw_sp_kvdl_fini()
[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.c149 struct mlxsw_sp2_kvdl *kvdl = priv; in mlxsw_sp2_kvdl_alloc() local
150 struct mlxsw_sp2_kvdl_part *part = kvdl->parts[type]; in mlxsw_sp2_kvdl_alloc()
161 struct mlxsw_sp2_kvdl *kvdl = priv; in mlxsw_sp2_kvdl_free() local
162 struct mlxsw_sp2_kvdl_part *part = kvdl->parts[type]; in mlxsw_sp2_kvdl_free()
220 struct mlxsw_sp2_kvdl *kvdl) in mlxsw_sp2_kvdl_parts_init() argument
228 kvdl->parts[i] = mlxsw_sp2_kvdl_part_init(mlxsw_sp, info); in mlxsw_sp2_kvdl_parts_init()
229 if (IS_ERR(kvdl->parts[i])) { in mlxsw_sp2_kvdl_parts_init()
230 err = PTR_ERR(kvdl->parts[i]); in mlxsw_sp2_kvdl_parts_init()
238 mlxsw_sp2_kvdl_part_fini(kvdl->parts[i]); in mlxsw_sp2_kvdl_parts_init()
242 static void mlxsw_sp2_kvdl_parts_fini(struct mlxsw_sp2_kvdl *kvdl) in mlxsw_sp2_kvdl_parts_fini() argument
[all …]
Dspectrum.h134 struct mlxsw_sp_kvdl *kvdl; member