search for: nr_virtfn

Displaying 11 results from an estimated 11 matches for "nr_virtfn".

2008 Aug 12
0
SR-IOV: patches are available for Linux kernel [3/4]
...g.h> +#include <linux/pci.h> +#include <linux/delay.h> +#include <asm/page.h> + +#include "pci.h" + +#define VF_PARAM_LEN 128 + +#define notify_phyfn(pf, event, arg) ({ \ + pf->iov->notify ? pf->iov->notify(pf, event, arg) : 0; \ +}) + +static int iov_set_nr_virtfn(struct pci_dev *, int); + + +static inline void vfid_to_bdf(struct pci_dev *pf, int vfid, u8 *bus, u8 *devfn) +{ + u16 bdf; + + bdf = (pf->bus->number << 8) + pf->devfn + + pf->iov->offset + pf->iov->stride * vfid; + *bus = bdf >> 8; + *devfn = bdf & 0xff;...
2008 Aug 12
0
SR-IOV: patches are available for Linux kernel [3/4]
...g.h> +#include <linux/pci.h> +#include <linux/delay.h> +#include <asm/page.h> + +#include "pci.h" + +#define VF_PARAM_LEN 128 + +#define notify_phyfn(pf, event, arg) ({ \ + pf->iov->notify ? pf->iov->notify(pf, event, arg) : 0; \ +}) + +static int iov_set_nr_virtfn(struct pci_dev *, int); + + +static inline void vfid_to_bdf(struct pci_dev *pf, int vfid, u8 *bus, u8 *devfn) +{ + u16 bdf; + + bdf = (pf->bus->number << 8) + pf->devfn + + pf->iov->offset + pf->iov->stride * vfid; + *bus = bdf >> 8; + *devfn = bdf & 0xff;...
2008 Aug 12
0
SR-IOV: patches are available for Linux kernel [3/4]
...g.h> +#include <linux/pci.h> +#include <linux/delay.h> +#include <asm/page.h> + +#include "pci.h" + +#define VF_PARAM_LEN 128 + +#define notify_phyfn(pf, event, arg) ({ \ + pf->iov->notify ? pf->iov->notify(pf, event, arg) : 0; \ +}) + +static int iov_set_nr_virtfn(struct pci_dev *, int); + + +static inline void vfid_to_bdf(struct pci_dev *pf, int vfid, u8 *bus, u8 *devfn) +{ + u16 bdf; + + bdf = (pf->bus->number << 8) + pf->devfn + + pf->iov->offset + pf->iov->stride * vfid; + *bus = bdf >> 8; + *devfn = bdf & 0xff;...
2008 Nov 21
22
[PATCH 0/13 v7] PCI: Linux kernel SR-IOV support
Greetings, Following patches are intended to support SR-IOV capability in the Linux kernel. With these patches, people can turn a PCI device with the capability into multiple ones from software perspective, which will benefit KVM and achieve other purposes such as QoS, security, and etc. The Physical Function and Virtual Function drivers using the SR-IOV APIs will come soon! Major changes from
2008 Nov 21
22
[PATCH 0/13 v7] PCI: Linux kernel SR-IOV support
Greetings, Following patches are intended to support SR-IOV capability in the Linux kernel. With these patches, people can turn a PCI device with the capability into multiple ones from software perspective, which will benefit KVM and achieve other purposes such as QoS, security, and etc. The Physical Function and Virtual Function drivers using the SR-IOV APIs will come soon! Major changes from
2008 Nov 21
22
[PATCH 0/13 v7] PCI: Linux kernel SR-IOV support
Greetings, Following patches are intended to support SR-IOV capability in the Linux kernel. With these patches, people can turn a PCI device with the capability into multiple ones from software perspective, which will benefit KVM and achieve other purposes such as QoS, security, and etc. The Physical Function and Virtual Function drivers using the SR-IOV APIs will come soon! Major changes from
2009 Apr 03
0
[PATCH] PCI: sync up the SR-IOV changes between Dom0 and upstream kernels
...und: pci_write_config_word(dev, pos + PCI_SRIOV_CTRL, ctrl); pci_write_config_word(dev, pos + PCI_SRIOV_NUM_VF, total); pci_read_config_word(dev, pos + PCI_SRIOV_VF_OFFSET, &offset); @@ -507,6 +507,7 @@ /** * pci_enable_sriov - enable the SR-IOV capability * @dev: the PCI device + * @nr_virtfn: number of Virtual Functions to enable * * Returns 0 on success, or negative on failure. */ diff -r 67a7ffcc5067 -r 0e265f73b23a drivers/pci/quirks.c --- a/drivers/pci/quirks.c Wed Apr 01 11:43:01 2009 +0100 +++ b/drivers/pci/quirks.c Fri Apr 03 03:48:47 2009 -0400 @@ -1749,58 +1749,49 @@ #e...
2008 Sep 27
1
[PATCH 6/6 v3] PCI: document the change
...return -EINVAL; + + return err; +} + +static int __devinit dev_probe(struct pci_dev *dev, + const struct pci_device_id *id) +{ + int err; + + err = pci_iov_register(dev, callback, entries); + ... + + err = pci_iov_enable(dev, nr_virtfn, callback); + + ... + + return err; +} + +static void __devexit dev_remove(struct pci_dev *dev) +{ + ... + + pci_iov_disable(dev); + + ... + + pci_iov_unregister(dev); + + ... +} + +#ifdef CONFIG_PM +/* + * If Physical Function supports the power management...
2008 Sep 27
1
[PATCH 6/6 v3] PCI: document the change
...return -EINVAL; + + return err; +} + +static int __devinit dev_probe(struct pci_dev *dev, + const struct pci_device_id *id) +{ + int err; + + err = pci_iov_register(dev, callback, entries); + ... + + err = pci_iov_enable(dev, nr_virtfn, callback); + + ... + + return err; +} + +static void __devexit dev_remove(struct pci_dev *dev) +{ + ... + + pci_iov_disable(dev); + + ... + + pci_iov_unregister(dev); + + ... +} + +#ifdef CONFIG_PM +/* + * If Physical Function supports the power management...
2008 Oct 14
8
[PATCH 0/8 v4] PCI: Linux kernel SR-IOV support
Greetings, Following patches are intended to support SR-IOV capability in the Linux kernel. With these patches, people can turn a PCI device with the capability into multiple ones from software perspective, which will benefit KVM and achieve other purposes such as QoS, security, and etc. [PATCH 1/8 v4] PCI: define PCI resource names in a 'enum' [PATCH 2/8 v4] PCI: export __pci_read_base
2008 Oct 14
8
[PATCH 0/8 v4] PCI: Linux kernel SR-IOV support
Greetings, Following patches are intended to support SR-IOV capability in the Linux kernel. With these patches, people can turn a PCI device with the capability into multiple ones from software perspective, which will benefit KVM and achieve other purposes such as QoS, security, and etc. [PATCH 1/8 v4] PCI: define PCI resource names in a 'enum' [PATCH 2/8 v4] PCI: export __pci_read_base