search for: nvfs

Displaying 9 results from an estimated 9 matches for "nvfs".

Did you mean: ntfs
2008 Aug 12
0
SR-IOV: patches are available for Linux kernel [3/4]
...t; len; i++) { + if (j == 0 && isspace(str[i])) + continue; + + if (str[i] == '\n') + break; + + if (j >= VF_PARAM_LEN - 1) + return -E2BIG; + + buf[j++] = str[i]; + } + + buf[j] = '\0'; + + return j ? i : 0; +} + +static int parse_line(char *str, u16 *bdf, u16 *nvfs, char **ptr) +{ + u8 b, d, f, val; + int err; + char *p; + + + err = sscanf(str, "NumVFs=%hu", nvfs); + if (err == 1) + return 1; + + err = sscanf(str, "%2hhx:%2hhx.%1hhu=%1hhu", &b, &d, &f, &val); + if (err != 4) + return -EINVAL; + + *bdf = (b << 8) + P...
2008 Aug 12
0
SR-IOV: patches are available for Linux kernel [3/4]
...t; len; i++) { + if (j == 0 && isspace(str[i])) + continue; + + if (str[i] == '\n') + break; + + if (j >= VF_PARAM_LEN - 1) + return -E2BIG; + + buf[j++] = str[i]; + } + + buf[j] = '\0'; + + return j ? i : 0; +} + +static int parse_line(char *str, u16 *bdf, u16 *nvfs, char **ptr) +{ + u8 b, d, f, val; + int err; + char *p; + + + err = sscanf(str, "NumVFs=%hu", nvfs); + if (err == 1) + return 1; + + err = sscanf(str, "%2hhx:%2hhx.%1hhu=%1hhu", &b, &d, &f, &val); + if (err != 4) + return -EINVAL; + + *bdf = (b << 8) + P...
2008 Aug 12
0
SR-IOV: patches are available for Linux kernel [3/4]
...t; len; i++) { + if (j == 0 && isspace(str[i])) + continue; + + if (str[i] == '\n') + break; + + if (j >= VF_PARAM_LEN - 1) + return -E2BIG; + + buf[j++] = str[i]; + } + + buf[j] = '\0'; + + return j ? i : 0; +} + +static int parse_line(char *str, u16 *bdf, u16 *nvfs, char **ptr) +{ + u8 b, d, f, val; + int err; + char *p; + + + err = sscanf(str, "NumVFs=%hu", nvfs); + if (err == 1) + return 1; + + err = sscanf(str, "%2hhx:%2hhx.%1hhu=%1hhu", &b, &d, &f, &val); + if (err != 4) + return -EINVAL; + + *bdf = (b << 8) + P...
2008 Aug 12
1
SR-IOV: patches are available for Linux kernel [4/4]
...el, +so they should be able to work in the same way as real PCI devices. +NOTE: Virtual Function device driver must be loaded to make it work. + + +3. Developer Guide + +3.1 SR-IOV APIs + +To enable SR-IOV, Physical Function device driver needs to call: + int pci_iov_enable(struct pci_dev *dev, int nvfs, + int (*cb)(struct pci_dev *, int, int)) +NOTE: this function sleeps 2 seconds waiting on hardware transaction +completion according to SR-IOV specification. + +To disable SR-IOV, Physical Function device driver needs to call: + void pci_iov_disable(struct pci_dev *dev) +NOTE: this function sle...
2008 Aug 12
1
SR-IOV: patches are available for Linux kernel [4/4]
...el, +so they should be able to work in the same way as real PCI devices. +NOTE: Virtual Function device driver must be loaded to make it work. + + +3. Developer Guide + +3.1 SR-IOV APIs + +To enable SR-IOV, Physical Function device driver needs to call: + int pci_iov_enable(struct pci_dev *dev, int nvfs, + int (*cb)(struct pci_dev *, int, int)) +NOTE: this function sleeps 2 seconds waiting on hardware transaction +completion according to SR-IOV specification. + +To disable SR-IOV, Physical Function device driver needs to call: + void pci_iov_disable(struct pci_dev *dev) +NOTE: this function sle...
2008 Aug 12
1
SR-IOV: patches are available for Linux kernel [4/4]
...el, +so they should be able to work in the same way as real PCI devices. +NOTE: Virtual Function device driver must be loaded to make it work. + + +3. Developer Guide + +3.1 SR-IOV APIs + +To enable SR-IOV, Physical Function device driver needs to call: + int pci_iov_enable(struct pci_dev *dev, int nvfs, + int (*cb)(struct pci_dev *, int, int)) +NOTE: this function sleeps 2 seconds waiting on hardware transaction +completion according to SR-IOV specification. + +To disable SR-IOV, Physical Function device driver needs to call: + void pci_iov_disable(struct pci_dev *dev) +NOTE: this function sle...
2008 Sep 01
2
[PATCH 4/4 v2] PCI: document the change
...dapter is in the\ + * power-saving mode. + * The SR-IOV can be enabled again after the adapter wakes up. + */ +static int dev_suspend(struct pci_dev *dev, pm_message_t state) +{ + ... + + pci_iov_disable(dev); + + ... +} + +static int dev_resume(struct pci_dev *dev) +{ + ... + + pci_iov_enable(dev, nvfs, callback); + + ... +} +#endif + +static struct pci_driver dev_driver = { + .name = "SR-IOV PF driver", + .id_table = dev_id_table, + .probe = dev_probe, + .remove = __devexit_p(dev_remove), +#ifdef CONFIG_PM + .suspend = dev_suspend, + .resume = dev_resume, +#endif +}; -- 1.5.6.4
2008 Sep 01
2
[PATCH 4/4 v2] PCI: document the change
...dapter is in the\ + * power-saving mode. + * The SR-IOV can be enabled again after the adapter wakes up. + */ +static int dev_suspend(struct pci_dev *dev, pm_message_t state) +{ + ... + + pci_iov_disable(dev); + + ... +} + +static int dev_resume(struct pci_dev *dev) +{ + ... + + pci_iov_enable(dev, nvfs, callback); + + ... +} +#endif + +static struct pci_driver dev_driver = { + .name = "SR-IOV PF driver", + .id_table = dev_id_table, + .probe = dev_probe, + .remove = __devexit_p(dev_remove), +#ifdef CONFIG_PM + .suspend = dev_suspend, + .resume = dev_resume, +#endif +}; -- 1.5.6.4
2008 Sep 01
2
[PATCH 4/4 v2] PCI: document the change
...dapter is in the\ + * power-saving mode. + * The SR-IOV can be enabled again after the adapter wakes up. + */ +static int dev_suspend(struct pci_dev *dev, pm_message_t state) +{ + ... + + pci_iov_disable(dev); + + ... +} + +static int dev_resume(struct pci_dev *dev) +{ + ... + + pci_iov_enable(dev, nvfs, callback); + + ... +} +#endif + +static struct pci_driver dev_driver = { + .name = "SR-IOV PF driver", + .id_table = dev_id_table, + .probe = dev_probe, + .remove = __devexit_p(dev_remove), +#ifdef CONFIG_PM + .suspend = dev_suspend, + .resume = dev_resume, +#endif +}; -- 1.5.6.4