search for: is_virtio_device

Displaying 10 results from an estimated 10 matches for "is_virtio_device".

2020 Jun 04
2
[PATCH v4 1/3] virtio: add dma-buf support for exported objects
...o.c b/drivers/virtio/virtio.c > index a977e32a88f2..5d46f0ded92d 100644 > --- a/drivers/virtio/virtio.c > +++ b/drivers/virtio/virtio.c > @@ -357,6 +357,12 @@ int register_virtio_device(struct virtio_device *dev) > } > EXPORT_SYMBOL_GPL(register_virtio_device); > > +bool is_virtio_device(struct device *dev) > +{ > + return dev->bus == &virtio_bus; > +} > +EXPORT_SYMBOL_GPL(is_virtio_device); > + > void unregister_virtio_device(struct virtio_device *dev) > { > int index = dev->index; /* save for after device release */ > diff --git a/drivers/...
2020 Jun 04
2
[PATCH v4 1/3] virtio: add dma-buf support for exported objects
...o.c b/drivers/virtio/virtio.c > index a977e32a88f2..5d46f0ded92d 100644 > --- a/drivers/virtio/virtio.c > +++ b/drivers/virtio/virtio.c > @@ -357,6 +357,12 @@ int register_virtio_device(struct virtio_device *dev) > } > EXPORT_SYMBOL_GPL(register_virtio_device); > > +bool is_virtio_device(struct device *dev) > +{ > + return dev->bus == &virtio_bus; > +} > +EXPORT_SYMBOL_GPL(is_virtio_device); > + > void unregister_virtio_device(struct virtio_device *dev) > { > int index = dev->index; /* save for after device release */ > diff --git a/drivers/...
2020 Sep 10
0
[PATCH v7 1/3] virtio: add dma-buf support for exported objects
...o.c b/drivers/virtio/virtio.c > index a977e32a88f2..5d46f0ded92d 100644 > --- a/drivers/virtio/virtio.c > +++ b/drivers/virtio/virtio.c > @@ -357,6 +357,12 @@ int register_virtio_device(struct virtio_device *dev) > } > EXPORT_SYMBOL_GPL(register_virtio_device); > > +bool is_virtio_device(struct device *dev) > +{ > + return dev->bus == &virtio_bus; > +} > +EXPORT_SYMBOL_GPL(is_virtio_device); > + > void unregister_virtio_device(struct virtio_device *dev) > { > int index = dev->index; /* save for after device release */ > diff --git a/drivers/...
2020 Jun 19
0
[PATCH v4 1/3] virtio: add dma-buf support for exported objects
...ivers/virtio/virtio.c > > > > +++ b/drivers/virtio/virtio.c > > > > @@ -357,6 +357,12 @@ int register_virtio_device(struct virtio_device *dev) > > > > } > > > > EXPORT_SYMBOL_GPL(register_virtio_device); > > > > > > > > +bool is_virtio_device(struct device *dev) > > > > +{ > > > > + return dev->bus == &virtio_bus; > > > > +} > > > > +EXPORT_SYMBOL_GPL(is_virtio_device); > > > > + > > > > void unregister_virtio_device(struct virtio_device *dev) > > &g...
2020 Jun 06
0
[PATCH v4 1/3] virtio: add dma-buf support for exported objects
...100644 > > > --- a/drivers/virtio/virtio.c > > > +++ b/drivers/virtio/virtio.c > > > @@ -357,6 +357,12 @@ int register_virtio_device(struct virtio_device *dev) > > > } > > > EXPORT_SYMBOL_GPL(register_virtio_device); > > > > > > +bool is_virtio_device(struct device *dev) > > > +{ > > > + return dev->bus == &virtio_bus; > > > +} > > > +EXPORT_SYMBOL_GPL(is_virtio_device); > > > + > > > void unregister_virtio_device(struct virtio_device *dev) > > > { > > > i...
2020 Jun 08
0
[PATCH v4 1/3] virtio: add dma-buf support for exported objects
...; > > > +++ b/drivers/virtio/virtio.c > > > > > @@ -357,6 +357,12 @@ int register_virtio_device(struct virtio_device *dev) > > > > > } > > > > > EXPORT_SYMBOL_GPL(register_virtio_device); > > > > > > > > > > +bool is_virtio_device(struct device *dev) > > > > > +{ > > > > > + return dev->bus == &virtio_bus; > > > > > +} > > > > > +EXPORT_SYMBOL_GPL(is_virtio_device); > > > > > + > > > > > void unregister_virtio_device(struct...
2020 Jun 08
0
[PATCH v4 1/3] virtio: add dma-buf support for exported objects
...; > > > > > > @@ -357,6 +357,12 @@ int register_virtio_device(struct virtio_device *dev) > > > > > > > } > > > > > > > EXPORT_SYMBOL_GPL(register_virtio_device); > > > > > > > > > > > > > > +bool is_virtio_device(struct device *dev) > > > > > > > +{ > > > > > > > + return dev->bus == &virtio_bus; > > > > > > > +} > > > > > > > +EXPORT_SYMBOL_GPL(is_virtio_device); > > > > > > > + > > &gt...
2023 Apr 30
1
[RFC PATCH net 1/3] virtio: re-negotiate features if probe fails and features are blocked
...g; struct list_head vqs; u64 features; + u64 blocked_features; void *priv; }; @@ -133,6 +135,7 @@ void virtio_add_status(struct virtio_device *dev, unsigned int status); int register_virtio_device(struct virtio_device *dev); void unregister_virtio_device(struct virtio_device *dev); bool is_virtio_device(struct device *dev); +void virtio_block_feature(struct virtio_device *dev, unsigned int f); void virtio_break_device(struct virtio_device *dev); void __virtio_unbreak_device(struct virtio_device *dev); -- 2.34.1
2023 Apr 30
1
[RFC PATCH net 1/3] virtio: re-negotiate features if probe fails and features are blocked
...plain purpose and rules of use > void *priv; > }; > > @@ -133,6 +135,7 @@ void virtio_add_status(struct virtio_device *dev, unsigned int status); > int register_virtio_device(struct virtio_device *dev); > void unregister_virtio_device(struct virtio_device *dev); > bool is_virtio_device(struct device *dev); > +void virtio_block_feature(struct virtio_device *dev, unsigned int f); > > void virtio_break_device(struct virtio_device *dev); > void __virtio_unbreak_device(struct virtio_device *dev); > -- > 2.34.1
2023 Apr 30
5
[RFC PATCH net 0/3] virtio-net: allow usage of small vrings
At the moment, if a virtio network device uses vrings with less than MAX_SKB_FRAGS + 2 entries, the device won't be functional. The following condition vq->num_free >= 2 + MAX_SKB_FRAGS will always evaluate to false, leading to TX timeouts. This patchset attempts this fix this bug, and to allow small rings down to 4 entries. The first patch introduces a new mechanism in virtio core -