Lines Matching defs:pci_slot

95 static ssize_t power_read_file(struct pci_slot *slot, char *buf)
108 static ssize_t power_write_file(struct pci_slot *pci_slot, const char *buf,
111 struct hotplug_slot *slot = pci_slot->hotplug;
153 static ssize_t attention_read_file(struct pci_slot *slot, char *buf)
167 static ssize_t attention_write_file(struct pci_slot *slot, const char *buf,
199 static ssize_t latch_read_file(struct pci_slot *slot, char *buf)
218 static ssize_t presence_read_file(struct pci_slot *slot, char *buf)
237 static ssize_t test_write_file(struct pci_slot *pci_slot, const char *buf,
240 struct hotplug_slot *slot = pci_slot->hotplug;
268 static bool has_power_file(struct pci_slot *pci_slot)
270 struct hotplug_slot *slot = pci_slot->hotplug;
280 static bool has_attention_file(struct pci_slot *pci_slot)
282 struct hotplug_slot *slot = pci_slot->hotplug;
291 static bool has_latch_file(struct pci_slot *pci_slot)
293 struct hotplug_slot *slot = pci_slot->hotplug;
301 static bool has_adapter_file(struct pci_slot *pci_slot)
303 struct hotplug_slot *slot = pci_slot->hotplug;
311 static bool has_test_file(struct pci_slot *pci_slot)
313 struct hotplug_slot *slot = pci_slot->hotplug;
321 static int fs_add_slot(struct pci_slot *slot)
385 static void fs_remove_slot(struct pci_slot *slot)
439 struct pci_slot *pci_slot;
458 * pci_slot, the interface will simply bump the refcount.
460 pci_slot = pci_create_slot(bus, devnr, name, slot);
461 if (IS_ERR(pci_slot)) {
462 result = PTR_ERR(pci_slot);
466 slot->pci_slot = pci_slot;
467 pci_slot->hotplug = slot;
471 result = fs_add_slot(pci_slot);
472 kobject_uevent(&pci_slot->kobj, KOBJ_ADD);
491 struct pci_slot *slot;
505 slot = hotplug->pci_slot;
530 struct pci_slot *slot;
533 slot = hotplug->pci_slot;