Displaying 6 results from an estimated 6 matches for "vfid".
Did you mean:
fid
2008 Aug 12
0
SR-IOV: patches are available for Linux kernel [3/4]
...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;
+}
+
+static inline int bdf_to_vfid(struct pci_dev *...
2008 Aug 12
0
SR-IOV: patches are available for Linux kernel [3/4]
...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;
+}
+
+static inline int bdf_to_vfid(struct pci_dev *...
2008 Aug 12
0
SR-IOV: patches are available for Linux kernel [3/4]
...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;
+}
+
+static inline int bdf_to_vfid(struct pci_dev *...
2008 Aug 12
1
SR-IOV: patches are available for Linux kernel [4/4]
...Following function can be used to query maximum number of Virtual Functions
+that a Physical Function can support:
+ int pci_iov_max_virtfn(struct pci_dev *dev)
+
+Following function can be used to retrieve parameter of a Virtual Function:
+ const char *pci_iov_virtfn_param(struct pci_dev *dev, int vfid)
+
+3.2 Usage example
+
+Following piece of codes illustrates the usage of APIs above.
+
+static int callback(struct pci_dev *dev, int event, int arg)
+{
+ int err;
+ const char *param;
+
+ switch (event) {
+ case PCI_IOV_VF_ENA: /* request to enable a VF */
+ param = pci_iov_virtfn_param(dev, arg...
2008 Aug 12
1
SR-IOV: patches are available for Linux kernel [4/4]
...Following function can be used to query maximum number of Virtual Functions
+that a Physical Function can support:
+ int pci_iov_max_virtfn(struct pci_dev *dev)
+
+Following function can be used to retrieve parameter of a Virtual Function:
+ const char *pci_iov_virtfn_param(struct pci_dev *dev, int vfid)
+
+3.2 Usage example
+
+Following piece of codes illustrates the usage of APIs above.
+
+static int callback(struct pci_dev *dev, int event, int arg)
+{
+ int err;
+ const char *param;
+
+ switch (event) {
+ case PCI_IOV_VF_ENA: /* request to enable a VF */
+ param = pci_iov_virtfn_param(dev, arg...
2008 Aug 12
1
SR-IOV: patches are available for Linux kernel [4/4]
...Following function can be used to query maximum number of Virtual Functions
+that a Physical Function can support:
+ int pci_iov_max_virtfn(struct pci_dev *dev)
+
+Following function can be used to retrieve parameter of a Virtual Function:
+ const char *pci_iov_virtfn_param(struct pci_dev *dev, int vfid)
+
+3.2 Usage example
+
+Following piece of codes illustrates the usage of APIs above.
+
+static int callback(struct pci_dev *dev, int event, int arg)
+{
+ int err;
+ const char *param;
+
+ switch (event) {
+ case PCI_IOV_VF_ENA: /* request to enable a VF */
+ param = pci_iov_virtfn_param(dev, arg...