Displaying 5 results from an estimated 5 matches for "mlx5_cmd_exec_in".
2020 Sep 28
0
[PATCH V1 vhost-next] vdpa/mlx5: Make vdpa core driver a distinct module
...return err;
> }
> +EXPORT_SYMBOL(mlx5_vdpa_create_tis);
>
> void mlx5_vdpa_destroy_tis(struct mlx5_vdpa_dev *mvdev, u32 tisn)
> {
> @@ -108,6 +109,7 @@ void mlx5_vdpa_destroy_tis(struct mlx5_vdpa_dev *mvdev, u32 tisn)
> MLX5_SET(destroy_tis_in, in, tisn, tisn);
> mlx5_cmd_exec_in(mvdev->mdev, destroy_tis, in);
> }
> +EXPORT_SYMBOL(mlx5_vdpa_destroy_tis);
>
> int mlx5_vdpa_create_rqt(struct mlx5_vdpa_dev *mvdev, void *in, int inlen, u32 *rqtn)
> {
> @@ -121,6 +123,7 @@ int mlx5_vdpa_create_rqt(struct mlx5_vdpa_dev *mvdev, void *in, int inlen, u32 *...
2020 Sep 29
0
[PATCH V1 vhost-next] vdpa/mlx5: Make vdpa core driver a distinct module
...tis);
> > >
> > > void mlx5_vdpa_destroy_tis(struct mlx5_vdpa_dev *mvdev, u32 tisn)
> > > {
> > > @@ -108,6 +109,7 @@ void mlx5_vdpa_destroy_tis(struct mlx5_vdpa_dev *mvdev, u32 tisn)
> > > MLX5_SET(destroy_tis_in, in, tisn, tisn);
> > > mlx5_cmd_exec_in(mvdev->mdev, destroy_tis, in);
> > > }
> > > +EXPORT_SYMBOL(mlx5_vdpa_destroy_tis);
> > >
> > > int mlx5_vdpa_create_rqt(struct mlx5_vdpa_dev *mvdev, void *in, int inlen, u32 *rqtn)
> > > {
> > > @@ -121,6 +123,7 @@ int mlx5_vdpa_create_...
2020 Sep 29
0
[PATCH V1 vhost-next] vdpa/mlx5: Make vdpa core driver a distinct module
...oid mlx5_vdpa_destroy_tis(struct mlx5_vdpa_dev *mvdev, u32 tisn)
> > > > > {
> > > > > @@ -108,6 +109,7 @@ void mlx5_vdpa_destroy_tis(struct mlx5_vdpa_dev *mvdev, u32 tisn)
> > > > > MLX5_SET(destroy_tis_in, in, tisn, tisn);
> > > > > mlx5_cmd_exec_in(mvdev->mdev, destroy_tis, in);
> > > > > }
> > > > > +EXPORT_SYMBOL(mlx5_vdpa_destroy_tis);
> > > > >
> > > > > int mlx5_vdpa_create_rqt(struct mlx5_vdpa_dev *mvdev, void *in, int inlen, u32 *rqtn)
> > > > > {
> &...
2020 Sep 29
0
[PATCH V1 vhost-next] vdpa/mlx5: Make vdpa core driver a distinct module
...pa_dev *mvdev, u32 tisn)
> > > > > > > {
> > > > > > > @@ -108,6 +109,7 @@ void mlx5_vdpa_destroy_tis(struct mlx5_vdpa_dev *mvdev, u32 tisn)
> > > > > > > MLX5_SET(destroy_tis_in, in, tisn, tisn);
> > > > > > > mlx5_cmd_exec_in(mvdev->mdev, destroy_tis, in);
> > > > > > > }
> > > > > > > +EXPORT_SYMBOL(mlx5_vdpa_destroy_tis);
> > > > > > >
> > > > > > > int mlx5_vdpa_create_rqt(struct mlx5_vdpa_dev *mvdev, void *in, int inlen, u32 *...
2020 Jul 16
0
[PATCH vhost next 10/10] vdpa/mlx5: Add VDPA driver for supported mlx5 devices
...*ndev, struct mlx5_vdpa_qp *vqp)
> +{
> + u32 in[MLX5_ST_SZ_DW(destroy_qp_in)] = {};
> +
> + MLX5_SET(destroy_qp_in, in, opcode, MLX5_CMD_OP_DESTROY_QP);
> + MLX5_SET(destroy_qp_in, in, qpn, vqp->mqp.qpn);
> + MLX5_SET(destroy_qp_in, in, uid, ndev->mvdev.res.uid);
> + if (mlx5_cmd_exec_in(ndev->mvdev.mdev, destroy_qp, in))
> + mlx5_vdpa_warn(&ndev->mvdev, "destroy qp 0x%x\n", vqp->mqp.qpn);
> + if (!vqp->fw) {
> + mlx5_db_free(ndev->mvdev.mdev, &vqp->db);
> + rq_buf_free(ndev, vqp);
> + }
> +}
> +
> +static void *next_cq...