search for: virtgpu_gem_map_dma_buf

Displaying 4 results from an estimated 4 matches for "virtgpu_gem_map_dma_buf".

2019 Sep 17
0
[RFC PATCH] drm/virtio: Export resource handles via DMA-buf API
...lude <linux/dma-buf.h> > +#include <linux/dma-direction.h> > + > #include <drm/drm_prime.h> > > #include "virtgpu_drv.h" > @@ -30,6 +33,84 @@ > * device that might share buffers with virtgpu > */ > > +static struct sg_table * > +virtgpu_gem_map_dma_buf(struct dma_buf_attachment *attach, > + enum dma_data_direction dir) > +{ > + struct drm_gem_object *obj = attach->dmabuf->priv; > + struct virtio_gpu_object *bo = gem_to_virtio_gpu_obj(obj); > + struct sg_table *sgt; > + int ret; > + > + sgt = kzalloc(sizeof(*sgt), G...
2019 Oct 08
0
[RFC PATCH] drm/virtio: Export resource handles via DMA-buf API
...> > #include <drm/drm_prime.h> > > > > > > #include "virtgpu_drv.h" > > > @@ -30,6 +33,84 @@ > > > * device that might share buffers with virtgpu > > > */ > > > > > > +static struct sg_table * > > > +virtgpu_gem_map_dma_buf(struct dma_buf_attachment *attach, > > > + enum dma_data_direction dir) > > > +{ > > > + struct drm_gem_object *obj = attach->dmabuf->priv; > > > + struct virtio_gpu_object *bo = gem_to_virtio_gpu_obj(obj); > > > + s...
2019 Oct 08
0
[RFC PATCH] drm/virtio: Export resource handles via DMA-buf API
...gt; > > #include "virtgpu_drv.h" > > > > > @@ -30,6 +33,84 @@ > > > > > * device that might share buffers with virtgpu > > > > > */ > > > > > > > > > > +static struct sg_table * > > > > > +virtgpu_gem_map_dma_buf(struct dma_buf_attachment *attach, > > > > > + enum dma_data_direction dir) > > > > > +{ > > > > > + struct drm_gem_object *obj = attach->dmabuf->priv; > > > > > + struct virtio_gpu_object *bo = gem_to_vir...
2019 Oct 16
0
[RFC PATCH] drm/virtio: Export resource handles via DMA-buf API
...> > > > > @@ -30,6 +33,84 @@ > > > > > > > * device that might share buffers with virtgpu > > > > > > > */ > > > > > > > > > > > > > > +static struct sg_table * > > > > > > > +virtgpu_gem_map_dma_buf(struct dma_buf_attachment *attach, > > > > > > > + enum dma_data_direction dir) > > > > > > > +{ > > > > > > > + struct drm_gem_object *obj = attach->dmabuf->priv; > > > > > > > + s...