search for: iov_set_vf

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

Did you mean: iov_set_vfe
2008 Aug 12
0
SR-IOV: patches are available for Linux kernel [3/4]
..._base(pf, pci_bar_unknown, res, reg); + } + + return 0; +} + +static void iov_free_res(struct pci_dev *pf) +{ + int i; + struct resource *res; + + for (i = 0; i < PCI_IOV_NUM_BAR; i++) { + res = pf->iov->resource + i; + if (res->parent) + release_resource(res); + } +} + +static void iov_set_vfe(struct pci_dev *pf, int enable) +{ + u16 reg; + + pci_read_config_word(pf, pf->iov->cap + PCI_IOV_CTRL, &reg); + + if (enable) { + reg |= (PCI_IOV_CTRL_VFE | PCI_IOV_CTRL_MSE); + + if (pci_ari_fwd_enabled(pf)) + reg |= PCI_IOV_CTRL_ARI; + else + reg &= ~PCI_IOV_CTRL_ARI; + } e...
2008 Aug 12
0
SR-IOV: patches are available for Linux kernel [3/4]
..._base(pf, pci_bar_unknown, res, reg); + } + + return 0; +} + +static void iov_free_res(struct pci_dev *pf) +{ + int i; + struct resource *res; + + for (i = 0; i < PCI_IOV_NUM_BAR; i++) { + res = pf->iov->resource + i; + if (res->parent) + release_resource(res); + } +} + +static void iov_set_vfe(struct pci_dev *pf, int enable) +{ + u16 reg; + + pci_read_config_word(pf, pf->iov->cap + PCI_IOV_CTRL, &reg); + + if (enable) { + reg |= (PCI_IOV_CTRL_VFE | PCI_IOV_CTRL_MSE); + + if (pci_ari_fwd_enabled(pf)) + reg |= PCI_IOV_CTRL_ARI; + else + reg &= ~PCI_IOV_CTRL_ARI; + } e...
2008 Aug 12
0
SR-IOV: patches are available for Linux kernel [3/4]
..._base(pf, pci_bar_unknown, res, reg); + } + + return 0; +} + +static void iov_free_res(struct pci_dev *pf) +{ + int i; + struct resource *res; + + for (i = 0; i < PCI_IOV_NUM_BAR; i++) { + res = pf->iov->resource + i; + if (res->parent) + release_resource(res); + } +} + +static void iov_set_vfe(struct pci_dev *pf, int enable) +{ + u16 reg; + + pci_read_config_word(pf, pf->iov->cap + PCI_IOV_CTRL, &reg); + + if (enable) { + reg |= (PCI_IOV_CTRL_VFE | PCI_IOV_CTRL_MSE); + + if (pci_ari_fwd_enabled(pf)) + reg |= PCI_IOV_CTRL_ARI; + else + reg &= ~PCI_IOV_CTRL_ARI; + } e...