Displaying 8 results from an estimated 8 matches for "exp_info".
2020 Jun 04
2
[PATCH v4 1/3] virtio: add dma-buf support for exported objects
...is 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);
> + }
> +
> + exp_info.exp_na...
2020 Jun 04
2
[PATCH v4 1/3] virtio: add dma-buf support for exported objects
...is 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);
> + }
> +
> + exp_info.exp_na...
2020 Jun 06
0
[PATCH v4 1/3] virtio: add dma-buf support for exported objects
...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->o...
2020 Jun 08
0
[PATCH v4 1/3] virtio: add dma-buf support for exported objects
...o 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
>...
2020 Jun 19
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_dma_buf_attach
> > > > + ||...
2020 Sep 10
0
[PATCH v7 1/3] virtio: add dma-buf support for exported objects
...er: 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 exported object that can be queried by other virtio drivers
> + * for the...
2020 Jun 08
0
[PATCH v4 1/3] virtio: add dma-buf support for exported objects
...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...
2020 Aug 18
0
[PATCH v6 0/3] Support virtio cross-device resources
...INE: Lines should not end with a '('
#115: FILE: drivers/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...