Lines Matching refs:uid
8 static int alloc_pd(struct mlx5_vdpa_dev *dev, u32 *pdn, u16 uid) in alloc_pd() argument
17 MLX5_SET(alloc_pd_in, in, uid, uid); in alloc_pd()
26 static int dealloc_pd(struct mlx5_vdpa_dev *dev, u32 pdn, u16 uid) in dealloc_pd() argument
33 MLX5_SET(dealloc_pd_in, in, uid, uid); in dealloc_pd()
51 static int create_uctx(struct mlx5_vdpa_dev *mvdev, u16 *uid) in create_uctx() argument
76 *uid = MLX5_GET(create_uctx_out, out, uid); in create_uctx()
81 static void destroy_uctx(struct mlx5_vdpa_dev *mvdev, u32 uid) in destroy_uctx() argument
86 if (!uid) in destroy_uctx()
90 MLX5_SET(destroy_uctx_in, in, uid, uid); in destroy_uctx()
101 MLX5_SET(create_tis_in, in, uid, mvdev->res.uid); in mlx5_vdpa_create_tis()
114 MLX5_SET(destroy_tis_in, in, uid, mvdev->res.uid); in mlx5_vdpa_destroy_tis()
136 MLX5_SET(modify_rqt_in, in, uid, mvdev->res.uid); in mlx5_vdpa_modify_rqt()
147 MLX5_SET(destroy_rqt_in, in, uid, mvdev->res.uid); in mlx5_vdpa_destroy_rqt()
170 MLX5_SET(destroy_tir_in, in, uid, mvdev->res.uid); in mlx5_vdpa_destroy_tir()
182 MLX5_SET(alloc_transport_domain_in, in, uid, mvdev->res.uid); in mlx5_vdpa_alloc_transport_domain()
196 MLX5_SET(dealloc_transport_domain_in, in, uid, mvdev->res.uid); in mlx5_vdpa_dealloc_transport_domain()
209 MLX5_SET(create_mkey_in, in, uid, mvdev->res.uid); in mlx5_vdpa_create_mkey()
224 MLX5_SET(destroy_mkey_in, in, uid, mvdev->res.uid); in mlx5_vdpa_destroy_mkey()
266 err = create_uctx(mvdev, &res->uid); in mlx5_vdpa_alloc_resources()
270 err = alloc_pd(mvdev, &res->pdn, res->uid); in mlx5_vdpa_alloc_resources()
298 dealloc_pd(mvdev, res->pdn, res->uid); in mlx5_vdpa_alloc_resources()
300 destroy_uctx(mvdev, res->uid); in mlx5_vdpa_alloc_resources()
318 dealloc_pd(mvdev, res->pdn, res->uid); in mlx5_vdpa_free_resources()
319 destroy_uctx(mvdev, res->uid); in mlx5_vdpa_free_resources()