Lines Matching refs:mlxsw_sp
15 int mlxsw_sp_kvdl_init(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp_kvdl_init() argument
17 const struct mlxsw_sp_kvdl_ops *kvdl_ops = mlxsw_sp->kvdl_ops; in mlxsw_sp_kvdl_init()
21 kvdl = kzalloc(sizeof(*mlxsw_sp->kvdl) + kvdl_ops->priv_size, 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()
38 void mlxsw_sp_kvdl_fini(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp_kvdl_fini() argument
40 struct mlxsw_sp_kvdl *kvdl = mlxsw_sp->kvdl; in mlxsw_sp_kvdl_fini()
42 kvdl->kvdl_ops->fini(mlxsw_sp, kvdl->priv); in mlxsw_sp_kvdl_fini()
46 int mlxsw_sp_kvdl_alloc(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_kvdl_alloc() argument
50 struct mlxsw_sp_kvdl *kvdl = mlxsw_sp->kvdl; in mlxsw_sp_kvdl_alloc()
52 return kvdl->kvdl_ops->alloc(mlxsw_sp, kvdl->priv, type, in mlxsw_sp_kvdl_alloc()
56 void mlxsw_sp_kvdl_free(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_kvdl_free() argument
60 struct mlxsw_sp_kvdl *kvdl = mlxsw_sp->kvdl; in mlxsw_sp_kvdl_free()
62 kvdl->kvdl_ops->free(mlxsw_sp, kvdl->priv, type, in mlxsw_sp_kvdl_free()
66 int mlxsw_sp_kvdl_alloc_count_query(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_kvdl_alloc_count_query() argument
71 struct mlxsw_sp_kvdl *kvdl = mlxsw_sp->kvdl; in mlxsw_sp_kvdl_alloc_count_query()
73 return kvdl->kvdl_ops->alloc_size_query(mlxsw_sp, kvdl->priv, type, in mlxsw_sp_kvdl_alloc_count_query()