search for: dma_buf_export_info

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

2020 Jun 04
2
[PATCH v4 1/3] virtio: add dma-buf support for exported objects
...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 *virtio_dma_buf_export( > + const struct virtio_dma_buf_export_info *virtio_exp_info) > +{ > + struct dma_buf_export_info exp_info; > + > + if (!virtio_exp_info->ops > + || virtio_exp_info->ops->ops.attach != &virtio_dma_buf_attach > + || !virtio_exp_info->ops->get_uuid) { > + return ERR_PTR(-EINVAL); > + } > + >...
2020 Jun 04
2
[PATCH v4 1/3] virtio: add dma-buf support for exported objects
...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 *virtio_dma_buf_export( > + const struct virtio_dma_buf_export_info *virtio_exp_info) > +{ > + struct dma_buf_export_info exp_info; > + > + if (!virtio_exp_info->ops > + || virtio_exp_info->ops->ops.attach != &virtio_dma_buf_attach > + || !virtio_exp_info->ops->get_uuid) { > + return ERR_PTR(-EINVAL); > + } > + >...
2020 Jun 06
0
[PATCH v4 1/3] virtio: add dma-buf support for exported objects
...w 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 *virtio_dma_buf_export( > > > + const struct virtio_dma_buf_export_info *virtio_exp_info) > > > +{ > > > + struct dma_buf_export_info exp_info; > > > + > > > + if (!virtio_exp_info->ops > > > + || virtio_exp_info->ops->ops.attach != &virtio_dma_buf_attach > > > + || !virt...
2020 Jun 08
0
[PATCH v4 1/3] virtio: add dma-buf support for exported objects
...bject that can be queried by other virtio drivers > > > > > > > + * for the object's UUID. > > > > > > > + */ > > > > > > > +struct dma_buf *virtio_dma_buf_export( > > > > > > > + const struct virtio_dma_buf_export_info *virtio_exp_info) > > > > > > > +{ > > > > > > > + struct dma_buf_export_info exp_info; > > > > > > > + > > > > > > > + if (!virtio_exp_info->ops > > > > > > > + || virtio...
2020 Jun 08
0
[PATCH v4 1/3] virtio: add dma-buf support for exported objects
...; > > + * for an virtio exported object that can be queried by other virtio drivers > > > > > + * for the object's UUID. > > > > > + */ > > > > > +struct dma_buf *virtio_dma_buf_export( > > > > > + const struct virtio_dma_buf_export_info *virtio_exp_info) > > > > > +{ > > > > > + struct dma_buf_export_info exp_info; > > > > > + > > > > > + if (!virtio_exp_info->ops > > > > > + || virtio_exp_info->ops->ops.attach != &virtio_dm...
2020 Jun 19
0
[PATCH v4 1/3] virtio: add dma-buf support for exported objects
...ate a dma-buf > > > > + * for an virtio exported object that can be queried by other virtio drivers > > > > + * for the object's UUID. > > > > + */ > > > > +struct dma_buf *virtio_dma_buf_export( > > > > + const struct virtio_dma_buf_export_info *virtio_exp_info) > > > > +{ > > > > + struct dma_buf_export_info exp_info; > > > > + > > > > + if (!virtio_exp_info->ops > > > > + || virtio_exp_info->ops->ops.attach != &virtio_dma_buf_attach > > > &gt...
2020 Sep 10
0
[PATCH v7 1/3] virtio: add dma-buf support for exported objects
...io_dma_buf_ops. > + * > + * 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 *virtio_dma_buf_export > + (const struct dma_buf_export_info *exp_info) > +{ > + const struct virtio_dma_buf_ops *virtio_ops = > + container_of(exp_info->ops, > + const struct virtio_dma_buf_ops, ops); > + > + if (!exp_info->ops || > + exp_info->ops->attach != &virtio_dma_buf_attach || > + !virtio_ops-&...
2018 Jan 11
0
[PATCH 2/5] drm/prime: Export more helpers for drivers
...rm_prime.h b/include/drm/drm_prime.h index 59ccab402e85..3a9706815773 100644 --- a/include/drm/drm_prime.h +++ b/include/drm/drm_prime.h @@ -50,8 +50,10 @@ struct drm_prime_file_private { struct rb_root handles; }; +enum dma_data_direction; struct device; +struct dma_buf_attachment; struct dma_buf_export_info; struct dma_buf; @@ -59,6 +61,16 @@ struct drm_device; struct drm_gem_object; struct drm_file; +int drm_gem_map_attach(struct dma_buf *dma_buf, struct device *target_dev, + struct dma_buf_attachment *attach); +void drm_gem_map_detach(struct dma_buf *dma_buf, + struct dma_buf_attach...
2018 Jan 11
5
[PATCH 1/5] drm/prime: Remove duplicate forward declaration
From: Thierry Reding <treding at nvidia.com> struct device is forward-declared twice. Remove the second instance. Reviewed-by: Chris Wilson <chris at chris-wilson.co.uk> Signed-off-by: Thierry Reding <treding at nvidia.com> --- include/drm/drm_prime.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/drm/drm_prime.h b/include/drm/drm_prime.h index