Searched refs:kvdl (Results 1 – 4 of 4) sorted by relevance
18 struct mlxsw_sp_kvdl *kvdl; in mlxsw_sp_kvdl_init() local21 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() local42 kvdl->kvdl_ops->fini(mlxsw_sp, kvdl->priv); in mlxsw_sp_kvdl_fini()43 kfree(kvdl); in mlxsw_sp_kvdl_fini()[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 …]
149 struct mlxsw_sp2_kvdl *kvdl = priv; in mlxsw_sp2_kvdl_alloc() local150 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() local162 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() argument228 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 …]
134 struct mlxsw_sp_kvdl *kvdl; member