Home
last modified time | relevance | path

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

/kernel/linux/linux-5.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 …]
Dmr.c51 static int create_direct_mr(struct mlx5_vdpa_dev *mvdev, struct mlx5_vdpa_direct_mr *mr) in create_direct_mr() argument
63 MLX5_SET(create_mkey_in, in, uid, mvdev->res.uid); in create_direct_mr()
69 MLX5_SET(mkc, mkc, pd, mvdev->res.pdn); in create_direct_mr()
78 err = mlx5_vdpa_create_mkey(mvdev, &mr->mr, in, inlen); in create_direct_mr()
81 mlx5_vdpa_warn(mvdev, "Failed to create direct MR\n"); in create_direct_mr()
88 static void destroy_direct_mr(struct mlx5_vdpa_dev *mvdev, struct mlx5_vdpa_direct_mr *mr) in destroy_direct_mr() argument
90 mlx5_vdpa_destroy_mkey(mvdev, &mr->mr); in destroy_direct_mr()
144 static void fill_indir(struct mlx5_vdpa_dev *mvdev, struct mlx5_vdpa_mr *mkey, void *in) in fill_indir() argument
168 klm->key = cpu_to_be32(mvdev->res.null_mkey); in fill_indir()
181 static int create_indirect_key(struct mlx5_vdpa_dev *mvdev, struct mlx5_vdpa_mr *mr) in create_indirect_key() argument
[all …]
Dmlx5_vdpa.h66 int mlx5_vdpa_create_tis(struct mlx5_vdpa_dev *mvdev, void *in, u32 *tisn);
67 void mlx5_vdpa_destroy_tis(struct mlx5_vdpa_dev *mvdev, u32 tisn);
68 int mlx5_vdpa_create_rqt(struct mlx5_vdpa_dev *mvdev, void *in, int inlen, u32 *rqtn);
69 void mlx5_vdpa_destroy_rqt(struct mlx5_vdpa_dev *mvdev, u32 rqtn);
70 int mlx5_vdpa_create_tir(struct mlx5_vdpa_dev *mvdev, void *in, u32 *tirn);
71 void mlx5_vdpa_destroy_tir(struct mlx5_vdpa_dev *mvdev, u32 tirn);
72 int mlx5_vdpa_alloc_transport_domain(struct mlx5_vdpa_dev *mvdev, u32 *tdn);
73 void mlx5_vdpa_dealloc_transport_domain(struct mlx5_vdpa_dev *mvdev, u32 tdn);
74 int mlx5_vdpa_alloc_resources(struct mlx5_vdpa_dev *mvdev);
75 void mlx5_vdpa_free_resources(struct mlx5_vdpa_dev *mvdev);
[all …]
/kernel/linux/linux-5.10/drivers/vdpa/mlx5/net/
Dmlx5_vnet.c129 struct mlx5_vdpa_dev mvdev; member
156 mlx5_vdpa_info(mvdev, "%s\n", #_feature); \
162 mlx5_vdpa_info(mvdev, "%s\n", #_status); \
165 static void print_status(struct mlx5_vdpa_dev *mvdev, u8 status, bool set) in print_status() argument
168 mlx5_vdpa_warn(mvdev, "Warning: there are invalid status bits 0x%x\n", in print_status()
174 mlx5_vdpa_info(mvdev, "driver status %s", set ? "set" : "get"); in print_status()
176 mlx5_vdpa_info(mvdev, "driver resets the device\n"); in print_status()
188 static void print_features(struct mlx5_vdpa_dev *mvdev, u64 features, bool set) in print_features() argument
191 mlx5_vdpa_warn(mvdev, "There are invalid feature bits 0x%llx\n", in print_features()
197 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);