to_mlx5_st
MLX5_SET(qpc, qpc, st, to_mlx5_st(init_attr->qp_type));
err = to_mlx5_st(ibqp->qp_type);
mlx5_st = to_mlx5_st(ibqp->qp_type);