#include "rsc_dump.h"
#include "lib/mlx5.h"
#define MLX5_SGMT_TYPE(SGMT) …
#define MLX5_SGMT_STR_ASSING(SGMT) …
static const char *const mlx5_rsc_sgmt_name[] = …;
struct mlx5_rsc_dump { … };
struct mlx5_rsc_dump_cmd { … };
static int mlx5_rsc_dump_sgmt_get_by_name(char *name)
{ … }
#define MLX5_RSC_DUMP_MENU_HEADER_SIZE …
static int mlx5_rsc_dump_read_menu_sgmt(struct mlx5_rsc_dump *rsc_dump, struct page *page,
int read_size, int start_idx)
{ … }
static int mlx5_rsc_dump_trigger(struct mlx5_core_dev *dev, struct mlx5_rsc_dump_cmd *cmd,
struct page *page)
{ … }
struct mlx5_rsc_dump_cmd *mlx5_rsc_dump_cmd_create(struct mlx5_core_dev *dev,
struct mlx5_rsc_key *key)
{ … }
EXPORT_SYMBOL(…);
void mlx5_rsc_dump_cmd_destroy(struct mlx5_rsc_dump_cmd *cmd)
{ … }
EXPORT_SYMBOL(…);
int mlx5_rsc_dump_next(struct mlx5_core_dev *dev, struct mlx5_rsc_dump_cmd *cmd,
struct page *page, int *size)
{ … }
EXPORT_SYMBOL(…);
#define MLX5_RSC_DUMP_MENU_SEGMENT …
static int mlx5_rsc_dump_menu(struct mlx5_core_dev *dev)
{ … }
static int mlx5_rsc_dump_create_mkey(struct mlx5_core_dev *mdev, u32 pdn,
u32 *mkey)
{ … }
struct mlx5_rsc_dump *mlx5_rsc_dump_create(struct mlx5_core_dev *dev)
{ … }
void mlx5_rsc_dump_destroy(struct mlx5_core_dev *dev)
{ … }
int mlx5_rsc_dump_init(struct mlx5_core_dev *dev)
{ … }
void mlx5_rsc_dump_cleanup(struct mlx5_core_dev *dev)
{ … }