Displaying 8 results from an estimated 8 matches for "virtio_dma_buf_attach".
2020 Jun 04
2
[PATCH v4 1/3] virtio: add dma-buf support for exported objects
...or 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);
> + }
> +
> + exp_info.exp_name = virtio_exp_info->exp_name;
> + exp_info.owner = virtio_exp_info->owner;
> + exp_info.ops = &virtio_exp_info->ops->ops;
> + exp_info.size = virtio_...
2020 Jun 04
2
[PATCH v4 1/3] virtio: add dma-buf support for exported objects
...or 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);
> + }
> +
> + exp_info.exp_name = virtio_exp_info->exp_name;
> + exp_info.owner = virtio_exp_info->owner;
> + exp_info.ops = &virtio_exp_info->ops->ops;
> + exp_info.size = virtio_...
2020 Sep 10
0
[PATCH v7 1/3] virtio: add dma-buf support for exported objects
...f_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->get_uuid) {
> + return ERR_PTR(-EINVAL);
> + }
> +
> + return dma_buf_export(exp_info);
> +}
> +EXPORT_SYMBOL(virtio_dma_buf_export);
> +
> +/**
> + * virtio_dma_buf_attach - mandatory attach callback for virtio dma-bufs
> + */
> +int...
2020 Jun 19
0
[PATCH v4 1/3] virtio: add dma-buf support for exported objects
...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);
> > > > + }
> > > > +
> > > > + exp_info.exp_name = virtio_exp_info->exp_name;
> > > > + exp_info.owner = vir...
2020 Aug 18
0
[PATCH v6 0/3] Support virtio cross-device resources
...ivers/virtio/virtio_dma_buf.c:22:
+ const struct virtio_dma_buf_ops *virtio_ops = container_of(
-:119: CHECK:LOGICAL_CONTINUATIONS: Logical continuations should be on the previous line
#119: FILE: drivers/virtio/virtio_dma_buf.c:26:
+ if (!exp_info->ops
+ || exp_info->ops->attach != &virtio_dma_buf_attach
-:120: CHECK:LOGICAL_CONTINUATIONS: Logical continuations should be on the previous line
#120: FILE: drivers/virtio/virtio_dma_buf.c:27:
+ || exp_info->ops->attach != &virtio_dma_buf_attach
+ || !virtio_ops->get_uuid) {
-:135: CHECK:OPEN_ENDED_LINE: Lines should not end with a '...
2020 Jun 06
0
[PATCH v4 1/3] virtio: add dma-buf support for exported objects
...> + 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);
> > > + }
> > > +
> > > + exp_info.exp_name = virtio_exp_info->exp_name;
> > > + exp_info.owner = virtio_exp_info->own...
2020 Jun 08
0
[PATCH v4 1/3] virtio: add dma-buf support for exported objects
...port_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);
> > > > > + }
> > > > > +
> > > > > + exp_info.exp_name = virtio_exp_info->exp_name;
> > &...
2020 Jun 08
0
[PATCH v4 1/3] virtio: add dma-buf support for exported objects
...t; > > +{
> > > > > > > + 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);
> > > > > > > + }
> > > > > > > +
> > > > > > > + exp_info.ex...