Displaying 8 results from an estimated 8 matches for "res_device".
Did you mean:
ei_device
2015 Jun 16
2
[PATCH] virtio-pci: alloc only resources actually used.
...ivers/virtio/virtio_pci_common.h
+++ b/drivers/virtio/virtio_pci_common.h
@@ -75,6 +75,11 @@ struct virtio_pci_device {
/* Multiply queue_notify_off by this value. (non-legacy mode). */
u32 notify_offset_multiplier;
+ struct resource *res_common;
+ struct resource *res_isr;
+ struct resource *res_device;
+ struct resource *res_notify;
+
/* Legacy only field */
/* the IO mapping for the PCI config space */
void __iomem *ioaddr;
diff --git a/drivers/virtio/virtio_pci_legacy.c b/drivers/virtio/virtio_pci_legacy.c
index 256a527..48bc979 100644
--- a/drivers/virtio/virtio_pci_legacy.c
+++ b/drive...
2015 Jun 16
2
[PATCH] virtio-pci: alloc only resources actually used.
...ivers/virtio/virtio_pci_common.h
+++ b/drivers/virtio/virtio_pci_common.h
@@ -75,6 +75,11 @@ struct virtio_pci_device {
/* Multiply queue_notify_off by this value. (non-legacy mode). */
u32 notify_offset_multiplier;
+ struct resource *res_common;
+ struct resource *res_isr;
+ struct resource *res_device;
+ struct resource *res_notify;
+
/* Legacy only field */
/* the IO mapping for the PCI config space */
void __iomem *ioaddr;
diff --git a/drivers/virtio/virtio_pci_legacy.c b/drivers/virtio/virtio_pci_legacy.c
index 256a527..48bc979 100644
--- a/drivers/virtio/virtio_pci_legacy.c
+++ b/drive...
2015 Jun 18
2
[PATCH v2] virtio-pci: alloc only resources actually used.
...ivers/virtio/virtio_pci_common.h
+++ b/drivers/virtio/virtio_pci_common.h
@@ -75,6 +75,11 @@ struct virtio_pci_device {
/* Multiply queue_notify_off by this value. (non-legacy mode). */
u32 notify_offset_multiplier;
+ struct resource *res_common;
+ struct resource *res_isr;
+ struct resource *res_device;
+ struct resource *res_notify;
+
/* Legacy only field */
/* the IO mapping for the PCI config space */
void __iomem *ioaddr;
diff --git a/drivers/virtio/virtio_pci_legacy.c b/drivers/virtio/virtio_pci_legacy.c
index 256a527..48bc979 100644
--- a/drivers/virtio/virtio_pci_legacy.c
+++ b/drive...
2015 Jun 18
2
[PATCH v2] virtio-pci: alloc only resources actually used.
...ivers/virtio/virtio_pci_common.h
+++ b/drivers/virtio/virtio_pci_common.h
@@ -75,6 +75,11 @@ struct virtio_pci_device {
/* Multiply queue_notify_off by this value. (non-legacy mode). */
u32 notify_offset_multiplier;
+ struct resource *res_common;
+ struct resource *res_isr;
+ struct resource *res_device;
+ struct resource *res_notify;
+
/* Legacy only field */
/* the IO mapping for the PCI config space */
void __iomem *ioaddr;
diff --git a/drivers/virtio/virtio_pci_legacy.c b/drivers/virtio/virtio_pci_legacy.c
index 256a527..48bc979 100644
--- a/drivers/virtio/virtio_pci_legacy.c
+++ b/drive...
2015 Jun 16
0
[PATCH] virtio-pci: alloc only resources actually used.
...+ b/drivers/virtio/virtio_pci_common.h
> @@ -75,6 +75,11 @@ struct virtio_pci_device {
> /* Multiply queue_notify_off by this value. (non-legacy mode). */
> u32 notify_offset_multiplier;
>
> + struct resource *res_common;
> + struct resource *res_isr;
> + struct resource *res_device;
> + struct resource *res_notify;
> +
> /* Legacy only field */
> /* the IO mapping for the PCI config space */
> void __iomem *ioaddr;
> diff --git a/drivers/virtio/virtio_pci_legacy.c b/drivers/virtio/virtio_pci_legacy.c
> index 256a527..48bc979 100644
> --- a/driver...
2015 Jun 18
0
[PATCH v2] virtio-pci: alloc only resources actually used.
...+ b/drivers/virtio/virtio_pci_common.h
> @@ -75,6 +75,11 @@ struct virtio_pci_device {
> /* Multiply queue_notify_off by this value. (non-legacy mode). */
> u32 notify_offset_multiplier;
>
> + struct resource *res_common;
> + struct resource *res_isr;
> + struct resource *res_device;
> + struct resource *res_notify;
> +
> /* Legacy only field */
> /* the IO mapping for the PCI config space */
> void __iomem *ioaddr;
> diff --git a/drivers/virtio/virtio_pci_legacy.c b/drivers/virtio/virtio_pci_legacy.c
> index 256a527..48bc979 100644
> --- a/driver...
2015 Jun 18
1
[PATCH v2] virtio-pci: alloc only resources actually used.
...>res_isr = request_capability(pci_dev, isr, 0,
> > + "virtio-pci-isr");
>
> And here, 1.
>
> > + vp_dev->res_notify = request_capability(pci_dev, notify, 0,
> > + "virtio-pci-notify");
> > + if (device) {
> > + vp_dev->res_device = request_capability(pci_dev, device,
> > + PAGE_SIZE,
> > + "virtio-pci-device");
> > + }
>
> Please drop {} around a single statement.
I'll fix them for the next version.
cheers,
Gerd
2015 Jun 18
1
[PATCH v2] virtio-pci: alloc only resources actually used.
...>res_isr = request_capability(pci_dev, isr, 0,
> > + "virtio-pci-isr");
>
> And here, 1.
>
> > + vp_dev->res_notify = request_capability(pci_dev, notify, 0,
> > + "virtio-pci-notify");
> > + if (device) {
> > + vp_dev->res_device = request_capability(pci_dev, device,
> > + PAGE_SIZE,
> > + "virtio-pci-device");
> > + }
>
> Please drop {} around a single statement.
I'll fix them for the next version.
cheers,
Gerd