search for: dma_buf_export

Displaying 9 results from an estimated 9 matches for "dma_buf_export".

2020 Sep 10
0
[PATCH v7 1/3] virtio: add dma-buf support for exported objects
...s/virtio/virtio_dma_buf.c > @@ -0,0 +1,85 @@ > +// SPDX-License-Identifier: GPL-2.0-or-later > +/* > + * dma-bufs for virtio exported objects > + * > + * Copyright (C) 2020 Google, Inc. > + */ > + > +#include <linux/virtio_dma_buf.h> > + > +/** > + * virtio_dma_buf_export - Creates a new dma-buf for a virtio exported object > + * @exp_info: [in] see dma_buf_export(). ops MUST refer to a dma_buf_ops > + * struct embedded in a virtio_dma_buf_ops. > + * > + * This wraps dma_buf_export() to allow virtio drivers to create a dma-buf > + * for an virtio expo...
2020 Jun 04
2
[PATCH v4 1/3] virtio: add dma-buf support for exported objects
...s/virtio/virtio_dma_buf.c > @@ -0,0 +1,89 @@ > +// SPDX-License-Identifier: GPL-2.0-or-later > +/* > + * dma-bufs for virtio exported objects > + * > + * Copyright (C) 2020 Google, Inc. > + */ > + > +#include <linux/virtio_dma_buf.h> > + > +/** > + * virtio_dma_buf_export - Creates a new dma-buf for a virtio exported object > + * > + * This wraps dma_buf_export() to allow virtio drivers to create a dma-buf > + * for an virtio exported object that can be queried by other virtio drivers > + * for the object's UUID. > + */ > +struct dma_buf *virti...
2020 Jun 04
2
[PATCH v4 1/3] virtio: add dma-buf support for exported objects
...s/virtio/virtio_dma_buf.c > @@ -0,0 +1,89 @@ > +// SPDX-License-Identifier: GPL-2.0-or-later > +/* > + * dma-bufs for virtio exported objects > + * > + * Copyright (C) 2020 Google, Inc. > + */ > + > +#include <linux/virtio_dma_buf.h> > + > +/** > + * virtio_dma_buf_export - Creates a new dma-buf for a virtio exported object > + * > + * This wraps dma_buf_export() to allow virtio drivers to create a dma-buf > + * for an virtio exported object that can be queried by other virtio drivers > + * for the object's UUID. > + */ > +struct dma_buf *virti...
2012 Nov 22
0
[resend PATCH] drm/nouveau: unpin buffers before releasing to prevent lockdep warnings
...,13 +176,17 @@ struct dma_buf *nouveau_gem_prime_export(struct drm_device *dev, { struct nouveau_bo *nvbo = nouveau_gem_object(obj); int ret = 0; + struct dma_buf *buf; /* pin buffer into GTT */ ret = nouveau_bo_pin(nvbo, TTM_PL_FLAG_TT); if (ret) return ERR_PTR(-EINVAL); - return dma_buf_export(nvbo, &nouveau_dmabuf_ops, obj->size, flags); + buf = dma_buf_export(nvbo, &nouveau_dmabuf_ops, obj->size, flags); + if (IS_ERR(buf)) + nouveau_bo_unpin(nvbo); + return buf; } struct drm_gem_object *nouveau_gem_prime_import(struct drm_device *dev,
2012 Oct 12
0
[PATCH 3/3, resend with fixed to field] drm/nouveau: unpin buffers before releasing to prevent lockdep warnings
...,13 +176,17 @@ struct dma_buf *nouveau_gem_prime_export(struct drm_device *dev, { struct nouveau_bo *nvbo = nouveau_gem_object(obj); int ret = 0; + struct dma_buf *buf; /* pin buffer into GTT */ ret = nouveau_bo_pin(nvbo, TTM_PL_FLAG_TT); if (ret) return ERR_PTR(-EINVAL); - return dma_buf_export(nvbo, &nouveau_dmabuf_ops, obj->size, flags); + buf = dma_buf_export(nvbo, &nouveau_dmabuf_ops, obj->size, flags); + if (IS_ERR(buf)) + nouveau_bo_unpin(nvbo); + return buf; } struct drm_gem_object *nouveau_gem_prime_import(struct drm_device *dev,
2020 Jun 08
0
[PATCH v4 1/3] virtio: add dma-buf support for exported objects
...t (C) 2020 Google, Inc. > > > > > > > + */ > > > > > > > + > > > > > > > +#include <linux/virtio_dma_buf.h> > > > > > > > + > > > > > > > +/** > > > > > > > + * virtio_dma_buf_export - Creates a new dma-buf for a virtio exported object > > > > > > > + * > > > > > > > + * This wraps dma_buf_export() to allow virtio drivers to create a dma-buf > > > > > > > + * for an virtio exported object that can be queried by othe...
2020 Jun 19
0
[PATCH v4 1/3] virtio: add dma-buf support for exported objects
...-bufs for virtio exported objects > > > > + * > > > > + * Copyright (C) 2020 Google, Inc. > > > > + */ > > > > + > > > > +#include <linux/virtio_dma_buf.h> > > > > + > > > > +/** > > > > + * virtio_dma_buf_export - Creates a new dma-buf for a virtio exported object > > > > + * > > > > + * This wraps dma_buf_export() to allow virtio drivers to create a dma-buf > > > > + * for an virtio exported object that can be queried by other virtio drivers > > > > + * for...
2020 Jun 06
0
[PATCH v4 1/3] virtio: add dma-buf support for exported objects
...gt; > > +/* > > > + * dma-bufs for virtio exported objects > > > + * > > > + * Copyright (C) 2020 Google, Inc. > > > + */ > > > + > > > +#include <linux/virtio_dma_buf.h> > > > + > > > +/** > > > + * virtio_dma_buf_export - Creates a new dma-buf for a virtio exported object > > > + * > > > + * This wraps dma_buf_export() to allow virtio drivers to create a dma-buf > > > + * for an virtio exported object that can be queried by other virtio drivers > > > + * for the object's UUI...
2020 Jun 08
0
[PATCH v4 1/3] virtio: add dma-buf support for exported objects
...gt; > > > + * > > > > > + * Copyright (C) 2020 Google, Inc. > > > > > + */ > > > > > + > > > > > +#include <linux/virtio_dma_buf.h> > > > > > + > > > > > +/** > > > > > + * virtio_dma_buf_export - Creates a new dma-buf for a virtio exported object > > > > > + * > > > > > + * This wraps dma_buf_export() to allow virtio drivers to create a dma-buf > > > > > + * for an virtio exported object that can be queried by other virtio drivers > > &gt...