search for: hotplug_slot

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

2011 Jun 02
0
[PATCH] pci: Use pr_<level> and pr_fmt
...tplug/acpiphp_core.c +++ b/drivers/pci/hotplug/acpiphp_core.c @@ -31,6 +31,8 @@ * */ +#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt + #include <linux/init.h> #include <linux/module.h> #include <linux/moduleparam.h> @@ -137,7 +139,7 @@ static int enable_slot(struct hotplug_slot *hotplug_slot) { struct slot *slot = hotplug_slot->private; - dbg("%s - physical_slot = %s\n", __func__, slot_name(slot)); + dbg("%s: physical_slot = %s\n", __func__, slot_name(slot)); /* enable the specified slot */ return acpiphp_enable_slot(slot->acpi_slot);...
2011 Jun 02
0
[PATCH] pci: Use pr_<level> and pr_fmt
...tplug/acpiphp_core.c +++ b/drivers/pci/hotplug/acpiphp_core.c @@ -31,6 +31,8 @@ * */ +#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt + #include <linux/init.h> #include <linux/module.h> #include <linux/moduleparam.h> @@ -137,7 +139,7 @@ static int enable_slot(struct hotplug_slot *hotplug_slot) { struct slot *slot = hotplug_slot->private; - dbg("%s - physical_slot = %s\n", __func__, slot_name(slot)); + dbg("%s: physical_slot = %s\n", __func__, slot_name(slot)); /* enable the specified slot */ return acpiphp_enable_slot(slot->acpi_slot);...
2011 Jun 02
0
[PATCH] pci: Use pr_<level> and pr_fmt
...tplug/acpiphp_core.c +++ b/drivers/pci/hotplug/acpiphp_core.c @@ -31,6 +31,8 @@ * */ +#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt + #include <linux/init.h> #include <linux/module.h> #include <linux/moduleparam.h> @@ -137,7 +139,7 @@ static int enable_slot(struct hotplug_slot *hotplug_slot) { struct slot *slot = hotplug_slot->private; - dbg("%s - physical_slot = %s\n", __func__, slot_name(slot)); + dbg("%s: physical_slot = %s\n", __func__, slot_name(slot)); /* enable the specified slot */ return acpiphp_enable_slot(slot->acpi_slot);...
2008 Sep 01
2
[PATCH 3/4 v2] PCI: support SR-IOV capability
...;pci.h" + + +#define PCI_IOV_SLOTNAME_LEN 24 + +#define notify(dev, event, id, param) ({ \ + dev->iov->cb ? dev->iov->cb(dev, event, id, param) : 0; \ +}) + + +struct virtfn_slot { + int id; + char name[PCI_IOV_SLOTNAME_LEN]; + struct pci_dev *dev; + struct list_head node; + struct hotplug_slot *slot; +}; + +static int enable_virtfn(struct hotplug_slot *); +static int disable_virtfn(struct hotplug_slot *); +static int set_virtfn_param(struct hotplug_slot *, const char *, int); +static int get_virtfn_param(struct hotplug_slot *, const char **); + +static struct hotplug_slot_ops virtfn_slot...
2008 Sep 01
2
[PATCH 3/4 v2] PCI: support SR-IOV capability
...;pci.h" + + +#define PCI_IOV_SLOTNAME_LEN 24 + +#define notify(dev, event, id, param) ({ \ + dev->iov->cb ? dev->iov->cb(dev, event, id, param) : 0; \ +}) + + +struct virtfn_slot { + int id; + char name[PCI_IOV_SLOTNAME_LEN]; + struct pci_dev *dev; + struct list_head node; + struct hotplug_slot *slot; +}; + +static int enable_virtfn(struct hotplug_slot *); +static int disable_virtfn(struct hotplug_slot *); +static int set_virtfn_param(struct hotplug_slot *, const char *, int); +static int get_virtfn_param(struct hotplug_slot *, const char **); + +static struct hotplug_slot_ops virtfn_slot...
2008 Sep 01
2
[PATCH 3/4 v2] PCI: support SR-IOV capability
...;pci.h" + + +#define PCI_IOV_SLOTNAME_LEN 24 + +#define notify(dev, event, id, param) ({ \ + dev->iov->cb ? dev->iov->cb(dev, event, id, param) : 0; \ +}) + + +struct virtfn_slot { + int id; + char name[PCI_IOV_SLOTNAME_LEN]; + struct pci_dev *dev; + struct list_head node; + struct hotplug_slot *slot; +}; + +static int enable_virtfn(struct hotplug_slot *); +static int disable_virtfn(struct hotplug_slot *); +static int set_virtfn_param(struct hotplug_slot *, const char *, int); +static int get_virtfn_param(struct hotplug_slot *, const char **); + +static struct hotplug_slot_ops virtfn_slot...
2008 Sep 01
1
[PATCH 1/4 v2] PCI: introduce new base functions
..., continuing...\n"); } } diff --git a/drivers/pci/hotplug/pci_hotplug_core.c b/drivers/pci/hotplug/pci_hotplug_core.c index 5f85b1b..96f99c7 100644 --- a/drivers/pci/hotplug/pci_hotplug_core.c +++ b/drivers/pci/hotplug/pci_hotplug_core.c @@ -102,13 +102,13 @@ static int get_##name (struct hotplug_slot *slot, type *value) \ { \ struct hotplug_slot_ops *ops = slot->ops; \ int retval = 0; \ - if (try_module_get(ops->owner)) { \ - if (ops->get_##name) \ - retval = ops->get_##name(slot, value); \ - else \ - *value = slot->info->name; \ -...
2008 Sep 01
1
[PATCH 1/4 v2] PCI: introduce new base functions
..., continuing...\n"); } } diff --git a/drivers/pci/hotplug/pci_hotplug_core.c b/drivers/pci/hotplug/pci_hotplug_core.c index 5f85b1b..96f99c7 100644 --- a/drivers/pci/hotplug/pci_hotplug_core.c +++ b/drivers/pci/hotplug/pci_hotplug_core.c @@ -102,13 +102,13 @@ static int get_##name (struct hotplug_slot *slot, type *value) \ { \ struct hotplug_slot_ops *ops = slot->ops; \ int retval = 0; \ - if (try_module_get(ops->owner)) { \ - if (ops->get_##name) \ - retval = ops->get_##name(slot, value); \ - else \ - *value = slot->info->name; \ -...
2008 Sep 01
1
[PATCH 1/4 v2] PCI: introduce new base functions
..., continuing...\n"); } } diff --git a/drivers/pci/hotplug/pci_hotplug_core.c b/drivers/pci/hotplug/pci_hotplug_core.c index 5f85b1b..96f99c7 100644 --- a/drivers/pci/hotplug/pci_hotplug_core.c +++ b/drivers/pci/hotplug/pci_hotplug_core.c @@ -102,13 +102,13 @@ static int get_##name (struct hotplug_slot *slot, type *value) \ { \ struct hotplug_slot_ops *ops = slot->ops; \ int retval = 0; \ - if (try_module_get(ops->owner)) { \ - if (ops->get_##name) \ - retval = ops->get_##name(slot, value); \ - else \ - *value = slot->info->name; \ -...
2008 Jul 02
0
[PATCH][2/3] XenAPI: Add Direct PCI Assignment (DPCI) Support
Add direct pci device assignment support. This patch depends on the previous patch (1/3). ----------------------------------------- Fields for DPCI class: (RO_inst) VM PPCI hotplug_slot <- same as vslot param of pci-attach/detach. (RO_run) virtual_domain virtual_bus virtual_slot virtual_func virtual_name <- domain:bus:slot:func that is seen from guest. RPCs for DPCI class: create(session_id, dpci_record) destroy(se...
2013 Oct 28
0
Re: [Qemu-devel] Hvmloader: Modify ACPI to only supply _EJ0 methods for PCIslots that support hotplug by runtime patching
...a/tools/firmware/hvmloader/acpi/mk_dsdt.c > b/tools/firmware/hvmloader/acpi/mk_dsdt.c > index 996f30b..4180801 100644 > --- a/tools/firmware/hvmloader/acpi/mk_dsdt.c > +++ b/tools/firmware/hvmloader/acpi/mk_dsdt.c > @@ -368,7 +368,9 @@ int main(int argc, char **argv) > /* hotplug_slot */ > for (slot = 1; slot <= 31; slot++) { > push_block("Device", "S%i", slot); { > + printf("ACPI_EXTRACT_NAME_DWORD_CONST > aml_adr_dword\n"); > stmt("Name", "_ADR, %#06x0000",...