kvdl 157 drivers/net/ethernet/mellanox/mlxsw/spectrum.h struct mlxsw_sp_kvdl *kvdl; kvdl 71 drivers/net/ethernet/mellanox/mlxsw/spectrum1_kvdl.c mlxsw_sp1_kvdl_alloc_size_part(struct mlxsw_sp1_kvdl *kvdl, kvdl 78 drivers/net/ethernet/mellanox/mlxsw/spectrum1_kvdl.c part = kvdl->parts[i]; kvdl 89 drivers/net/ethernet/mellanox/mlxsw/spectrum1_kvdl.c mlxsw_sp1_kvdl_index_part(struct mlxsw_sp1_kvdl *kvdl, u32 kvdl_index) kvdl 95 drivers/net/ethernet/mellanox/mlxsw/spectrum1_kvdl.c part = kvdl->parts[i]; kvdl 151 drivers/net/ethernet/mellanox/mlxsw/spectrum1_kvdl.c struct mlxsw_sp1_kvdl *kvdl = priv; kvdl 157 drivers/net/ethernet/mellanox/mlxsw/spectrum1_kvdl.c part = mlxsw_sp1_kvdl_alloc_size_part(kvdl, entry_count); kvdl 168 drivers/net/ethernet/mellanox/mlxsw/spectrum1_kvdl.c struct mlxsw_sp1_kvdl *kvdl = priv; kvdl 171 drivers/net/ethernet/mellanox/mlxsw/spectrum1_kvdl.c part = mlxsw_sp1_kvdl_index_part(kvdl, entry_index); kvdl 183 drivers/net/ethernet/mellanox/mlxsw/spectrum1_kvdl.c struct mlxsw_sp1_kvdl *kvdl = priv; kvdl 186 drivers/net/ethernet/mellanox/mlxsw/spectrum1_kvdl.c part = mlxsw_sp1_kvdl_alloc_size_part(kvdl, entry_count); kvdl 246 drivers/net/ethernet/mellanox/mlxsw/spectrum1_kvdl.c struct mlxsw_sp1_kvdl *kvdl) kvdl 254 drivers/net/ethernet/mellanox/mlxsw/spectrum1_kvdl.c kvdl->parts[i] = mlxsw_sp1_kvdl_part_init(mlxsw_sp, info, kvdl 256 drivers/net/ethernet/mellanox/mlxsw/spectrum1_kvdl.c if (IS_ERR(kvdl->parts[i])) { kvdl 257 drivers/net/ethernet/mellanox/mlxsw/spectrum1_kvdl.c err = PTR_ERR(kvdl->parts[i]); kvdl 260 drivers/net/ethernet/mellanox/mlxsw/spectrum1_kvdl.c part_prev = kvdl->parts[i]; kvdl 266 drivers/net/ethernet/mellanox/mlxsw/spectrum1_kvdl.c mlxsw_sp1_kvdl_part_fini(kvdl->parts[i]); kvdl 270 drivers/net/ethernet/mellanox/mlxsw/spectrum1_kvdl.c static void mlxsw_sp1_kvdl_parts_fini(struct mlxsw_sp1_kvdl *kvdl) kvdl 275 drivers/net/ethernet/mellanox/mlxsw/spectrum1_kvdl.c mlxsw_sp1_kvdl_part_fini(kvdl->parts[i]); kvdl 296 drivers/net/ethernet/mellanox/mlxsw/spectrum1_kvdl.c const struct mlxsw_sp1_kvdl *kvdl = priv; kvdl 301 drivers/net/ethernet/mellanox/mlxsw/spectrum1_kvdl.c occ += mlxsw_sp1_kvdl_part_occ(kvdl->parts[i]); kvdl 308 drivers/net/ethernet/mellanox/mlxsw/spectrum1_kvdl.c const struct mlxsw_sp1_kvdl *kvdl = priv; kvdl 311 drivers/net/ethernet/mellanox/mlxsw/spectrum1_kvdl.c part = kvdl->parts[MLXSW_SP1_KVDL_PART_ID_SINGLE]; kvdl 317 drivers/net/ethernet/mellanox/mlxsw/spectrum1_kvdl.c const struct mlxsw_sp1_kvdl *kvdl = priv; kvdl 320 drivers/net/ethernet/mellanox/mlxsw/spectrum1_kvdl.c part = kvdl->parts[MLXSW_SP1_KVDL_PART_ID_CHUNKS]; kvdl 326 drivers/net/ethernet/mellanox/mlxsw/spectrum1_kvdl.c const struct mlxsw_sp1_kvdl *kvdl = priv; kvdl 329 drivers/net/ethernet/mellanox/mlxsw/spectrum1_kvdl.c part = kvdl->parts[MLXSW_SP1_KVDL_PART_ID_LARGE_CHUNKS]; kvdl 336 drivers/net/ethernet/mellanox/mlxsw/spectrum1_kvdl.c struct mlxsw_sp1_kvdl *kvdl = priv; kvdl 339 drivers/net/ethernet/mellanox/mlxsw/spectrum1_kvdl.c err = mlxsw_sp1_kvdl_parts_init(mlxsw_sp, kvdl); kvdl 345 drivers/net/ethernet/mellanox/mlxsw/spectrum1_kvdl.c kvdl); kvdl 349 drivers/net/ethernet/mellanox/mlxsw/spectrum1_kvdl.c kvdl); kvdl 353 drivers/net/ethernet/mellanox/mlxsw/spectrum1_kvdl.c kvdl); kvdl 357 drivers/net/ethernet/mellanox/mlxsw/spectrum1_kvdl.c kvdl); kvdl 364 drivers/net/ethernet/mellanox/mlxsw/spectrum1_kvdl.c struct mlxsw_sp1_kvdl *kvdl = priv; kvdl 374 drivers/net/ethernet/mellanox/mlxsw/spectrum1_kvdl.c mlxsw_sp1_kvdl_parts_fini(kvdl); kvdl 150 drivers/net/ethernet/mellanox/mlxsw/spectrum2_kvdl.c struct mlxsw_sp2_kvdl *kvdl = priv; kvdl 151 drivers/net/ethernet/mellanox/mlxsw/spectrum2_kvdl.c struct mlxsw_sp2_kvdl_part *part = kvdl->parts[type]; kvdl 162 drivers/net/ethernet/mellanox/mlxsw/spectrum2_kvdl.c struct mlxsw_sp2_kvdl *kvdl = priv; kvdl 163 drivers/net/ethernet/mellanox/mlxsw/spectrum2_kvdl.c struct mlxsw_sp2_kvdl_part *part = kvdl->parts[type]; kvdl 221 drivers/net/ethernet/mellanox/mlxsw/spectrum2_kvdl.c struct mlxsw_sp2_kvdl *kvdl) kvdl 229 drivers/net/ethernet/mellanox/mlxsw/spectrum2_kvdl.c kvdl->parts[i] = mlxsw_sp2_kvdl_part_init(mlxsw_sp, info); kvdl 230 drivers/net/ethernet/mellanox/mlxsw/spectrum2_kvdl.c if (IS_ERR(kvdl->parts[i])) { kvdl 231 drivers/net/ethernet/mellanox/mlxsw/spectrum2_kvdl.c err = PTR_ERR(kvdl->parts[i]); kvdl 239 drivers/net/ethernet/mellanox/mlxsw/spectrum2_kvdl.c mlxsw_sp2_kvdl_part_fini(kvdl->parts[i]); kvdl 243 drivers/net/ethernet/mellanox/mlxsw/spectrum2_kvdl.c static void mlxsw_sp2_kvdl_parts_fini(struct mlxsw_sp2_kvdl *kvdl) kvdl 248 drivers/net/ethernet/mellanox/mlxsw/spectrum2_kvdl.c mlxsw_sp2_kvdl_part_fini(kvdl->parts[i]); kvdl 253 drivers/net/ethernet/mellanox/mlxsw/spectrum2_kvdl.c struct mlxsw_sp2_kvdl *kvdl = priv; kvdl 255 drivers/net/ethernet/mellanox/mlxsw/spectrum2_kvdl.c return mlxsw_sp2_kvdl_parts_init(mlxsw_sp, kvdl); kvdl 260 drivers/net/ethernet/mellanox/mlxsw/spectrum2_kvdl.c struct mlxsw_sp2_kvdl *kvdl = priv; kvdl 262 drivers/net/ethernet/mellanox/mlxsw/spectrum2_kvdl.c mlxsw_sp2_kvdl_parts_fini(kvdl); kvdl 18 drivers/net/ethernet/mellanox/mlxsw/spectrum_kvdl.c struct mlxsw_sp_kvdl *kvdl; kvdl 21 drivers/net/ethernet/mellanox/mlxsw/spectrum_kvdl.c kvdl = kzalloc(sizeof(*mlxsw_sp->kvdl) + kvdl_ops->priv_size, kvdl 23 drivers/net/ethernet/mellanox/mlxsw/spectrum_kvdl.c if (!kvdl) kvdl 25 drivers/net/ethernet/mellanox/mlxsw/spectrum_kvdl.c kvdl->kvdl_ops = kvdl_ops; kvdl 26 drivers/net/ethernet/mellanox/mlxsw/spectrum_kvdl.c mlxsw_sp->kvdl = kvdl; kvdl 28 drivers/net/ethernet/mellanox/mlxsw/spectrum_kvdl.c err = kvdl_ops->init(mlxsw_sp, kvdl->priv); kvdl 34 drivers/net/ethernet/mellanox/mlxsw/spectrum_kvdl.c kfree(kvdl); kvdl 40 drivers/net/ethernet/mellanox/mlxsw/spectrum_kvdl.c struct mlxsw_sp_kvdl *kvdl = mlxsw_sp->kvdl; kvdl 42 drivers/net/ethernet/mellanox/mlxsw/spectrum_kvdl.c kvdl->kvdl_ops->fini(mlxsw_sp, kvdl->priv); kvdl 43 drivers/net/ethernet/mellanox/mlxsw/spectrum_kvdl.c kfree(kvdl); kvdl 50 drivers/net/ethernet/mellanox/mlxsw/spectrum_kvdl.c struct mlxsw_sp_kvdl *kvdl = mlxsw_sp->kvdl; kvdl 52 drivers/net/ethernet/mellanox/mlxsw/spectrum_kvdl.c return kvdl->kvdl_ops->alloc(mlxsw_sp, kvdl->priv, type, kvdl 60 drivers/net/ethernet/mellanox/mlxsw/spectrum_kvdl.c struct mlxsw_sp_kvdl *kvdl = mlxsw_sp->kvdl; kvdl 62 drivers/net/ethernet/mellanox/mlxsw/spectrum_kvdl.c kvdl->kvdl_ops->free(mlxsw_sp, kvdl->priv, type, kvdl 71 drivers/net/ethernet/mellanox/mlxsw/spectrum_kvdl.c struct mlxsw_sp_kvdl *kvdl = mlxsw_sp->kvdl; kvdl 73 drivers/net/ethernet/mellanox/mlxsw/spectrum_kvdl.c return kvdl->kvdl_ops->alloc_size_query(mlxsw_sp, kvdl->priv, type,