search for: vfid_to_bdf

Displaying 3 results from an estimated 3 matches for "vfid_to_bdf".

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 *pf, u8...
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 *pf, u8...
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 *pf, u8...