Displaying 4 results from an estimated 4 matches for "virtgpu_gem_unmap_dma_buf".
Did you mean:
virtgpu_gem_map_dma_buf
2019 Sep 17
0
[RFC PATCH] drm/virtio: Export resource handles via DMA-buf API
...(sgt, 1, GFP_KERNEL);
> + if (ret) {
> + kfree(sgt);
> + return ERR_PTR(-ENOMEM);
> + }
> +
> + sg_dma_address(sgt->sgl) = bo->hw_res_handle;
> + sg_dma_len(sgt->sgl) = obj->size;
> + sgt->nents = 1;
> +
> + return sgt;
> +}
> +
> +static void virtgpu_gem_unmap_dma_buf(struct dma_buf_attachment *attach,
> + struct sg_table *sgt,
> + enum dma_data_direction dir)
> +{
> + sg_free_table(sgt);
> + kfree(sgt);
> +}
> +
> +static const struct dma_buf_ops virtgpu_dmabuf_ops = {
> + .cache_sgt_mapping = true,
> + .attach =...
2019 Oct 08
0
[RFC PATCH] drm/virtio: Export resource handles via DMA-buf API
...> > +
> > > + sg_dma_address(sgt->sgl) = bo->hw_res_handle;
> > > + sg_dma_len(sgt->sgl) = obj->size;
> > > + sgt->nents = 1;
> > > +
> > > + return sgt;
> > > +}
> > > +
> > > +static void virtgpu_gem_unmap_dma_buf(struct dma_buf_attachment *attach,
> > > + struct sg_table *sgt,
> > > + enum dma_data_direction dir)
> > > +{
> > > + sg_free_table(sgt);
> > > + kfree(sgt);
> > > +}
&...
2019 Oct 08
0
[RFC PATCH] drm/virtio: Export resource handles via DMA-buf API
...;hw_res_handle;
> > > > > + sg_dma_len(sgt->sgl) = obj->size;
> > > > > + sgt->nents = 1;
> > > > > +
> > > > > + return sgt;
> > > > > +}
> > > > > +
> > > > > +static void virtgpu_gem_unmap_dma_buf(struct dma_buf_attachment *attach,
> > > > > + struct sg_table *sgt,
> > > > > + enum dma_data_direction dir)
> > > > > +{
> > > > > + sg_free_table(sgt);
> > &g...
2019 Oct 16
0
[RFC PATCH] drm/virtio: Export resource handles via DMA-buf API
...t->sgl) = obj->size;
> > > > > > > + sgt->nents = 1;
> > > > > > > +
> > > > > > > + return sgt;
> > > > > > > +}
> > > > > > > +
> > > > > > > +static void virtgpu_gem_unmap_dma_buf(struct dma_buf_attachment *attach,
> > > > > > > + struct sg_table *sgt,
> > > > > > > + enum dma_data_direction dir)
> > > > > > > +{
> > > > > > >...