Home
last modified time | relevance | path

Searched refs:mvdev (Results 1 – 5 of 5) sorted by relevance

/Linux-v5.10/drivers/vdpa/mlx5/core/
Dresources.c50 static int create_uctx(struct mlx5_vdpa_dev *mvdev, u16 *uid) in create_uctx() argument
58 if (!MLX5_CAP_GEN(mvdev->mdev, log_max_uctx)) in create_uctx()
69 err = mlx5_cmd_exec(mvdev->mdev, in, inlen, out, sizeof(out)); in create_uctx()
77 static void destroy_uctx(struct mlx5_vdpa_dev *mvdev, u32 uid) in destroy_uctx() argument
85 mlx5_cmd_exec(mvdev->mdev, in, sizeof(in), out, sizeof(out)); in destroy_uctx()
88 int mlx5_vdpa_create_tis(struct mlx5_vdpa_dev *mvdev, void *in, u32 *tisn) in mlx5_vdpa_create_tis() argument
94 MLX5_SET(create_tis_in, in, uid, mvdev->res.uid); in mlx5_vdpa_create_tis()
95 err = mlx5_cmd_exec_inout(mvdev->mdev, create_tis, in, out); in mlx5_vdpa_create_tis()
102 void mlx5_vdpa_destroy_tis(struct mlx5_vdpa_dev *mvdev, u32 tisn) in mlx5_vdpa_destroy_tis() argument
107 MLX5_SET(destroy_tis_in, in, uid, mvdev->res.uid); in mlx5_vdpa_destroy_tis()
[all …]
Dmlx5_vdpa.h61 int mlx5_vdpa_create_tis(struct mlx5_vdpa_dev *mvdev, void *in, u32 *tisn);
62 void mlx5_vdpa_destroy_tis(struct mlx5_vdpa_dev *mvdev, u32 tisn);
63 int mlx5_vdpa_create_rqt(struct mlx5_vdpa_dev *mvdev, void *in, int inlen, u32 *rqtn);
64 void mlx5_vdpa_destroy_rqt(struct mlx5_vdpa_dev *mvdev, u32 rqtn);
65 int mlx5_vdpa_create_tir(struct mlx5_vdpa_dev *mvdev, void *in, u32 *tirn);
66 void mlx5_vdpa_destroy_tir(struct mlx5_vdpa_dev *mvdev, u32 tirn);
67 int mlx5_vdpa_alloc_transport_domain(struct mlx5_vdpa_dev *mvdev, u32 *tdn);
68 void mlx5_vdpa_dealloc_transport_domain(struct mlx5_vdpa_dev *mvdev, u32 tdn);
69 int mlx5_vdpa_alloc_resources(struct mlx5_vdpa_dev *mvdev);
70 void mlx5_vdpa_free_resources(struct mlx5_vdpa_dev *mvdev);
[all …]
Dmr.c54 static int create_direct_mr(struct mlx5_vdpa_dev *mvdev, struct mlx5_vdpa_direct_mr *mr) in create_direct_mr() argument
66 MLX5_SET(create_mkey_in, in, uid, mvdev->res.uid); in create_direct_mr()
73 MLX5_SET(mkc, mkc, pd, mvdev->res.pdn); in create_direct_mr()
82 err = mlx5_vdpa_create_mkey(mvdev, &mr->mr, in, inlen); in create_direct_mr()
85 mlx5_vdpa_warn(mvdev, "Failed to create direct MR\n"); in create_direct_mr()
92 static void destroy_direct_mr(struct mlx5_vdpa_dev *mvdev, struct mlx5_vdpa_direct_mr *mr) in destroy_direct_mr() argument
94 mlx5_vdpa_destroy_mkey(mvdev, &mr->mr); in destroy_direct_mr()
148 static void fill_indir(struct mlx5_vdpa_dev *mvdev, struct mlx5_vdpa_mr *mkey, void *in) in fill_indir() argument
172 klm->key = cpu_to_be32(mvdev->res.null_mkey); in fill_indir()
185 static int create_indirect_key(struct mlx5_vdpa_dev *mvdev, struct mlx5_vdpa_mr *mr) in create_indirect_key() argument
[all …]
/Linux-v5.10/drivers/vdpa/mlx5/net/
Dmlx5_vnet.c126 struct mlx5_vdpa_dev mvdev; member
153 mlx5_vdpa_info(mvdev, "%s\n", #_feature); \
159 mlx5_vdpa_info(mvdev, "%s\n", #_status); \
162 static void print_status(struct mlx5_vdpa_dev *mvdev, u8 status, bool set) in print_status() argument
165 mlx5_vdpa_warn(mvdev, "Warning: there are invalid status bits 0x%x\n", in print_status()
171 mlx5_vdpa_info(mvdev, "driver status %s", set ? "set" : "get"); in print_status()
173 mlx5_vdpa_info(mvdev, "driver resets the device\n"); in print_status()
185 static void print_features(struct mlx5_vdpa_dev *mvdev, u64 features, bool set) in print_features() argument
188 mlx5_vdpa_warn(mvdev, "There are invalid feature bits 0x%llx\n", in print_features()
194 mlx5_vdpa_info(mvdev, "driver %s feature bits:\n", set ? "sets" : "reads"); in print_features()
[all …]
Dmlx5_vnet.h20 #define to_mlx5_vdpa_ndev(__mvdev) container_of(__mvdev, struct mlx5_vdpa_net, mvdev)
22 void mlx5_vdpa_remove_dev(struct mlx5_vdpa_dev *mvdev);