Lines Matching defs:pci_slot
21 struct pci_slot *slot = to_pci_slot(kobj);
29 struct pci_slot *slot = to_pci_slot(kobj);
39 static ssize_t address_read_file(struct pci_slot *slot, char *buf)
57 static ssize_t max_speed_read_file(struct pci_slot *slot, char *buf)
62 static ssize_t cur_speed_read_file(struct pci_slot *slot, char *buf)
70 struct pci_slot *slot = to_pci_slot(kobj);
145 static int rename_slot(struct pci_slot *slot, const char *name)
165 struct pci_slot *slot;
174 static struct pci_slot *get_slot(struct pci_bus *parent, int slot_nr)
176 struct pci_slot *slot;
196 * and a &struct pci_slot is used to manage them. This interface will
197 * either return a new &struct pci_slot to the caller, or if the pci_slot
219 * -1. First, we no longer check for an existing %struct pci_slot, as there
226 struct pci_slot *pci_create_slot(struct pci_bus *parent, int slot_nr,
231 struct pci_slot *slot;
307 * @slot: struct pci_slot to decrement
309 * %struct pci_slot is refcounted, so destroying them is really easy; we
313 void pci_destroy_slot(struct pci_slot *slot)
328 * @pci_slot: struct pci_slot
333 void pci_hp_create_module_link(struct pci_slot *pci_slot)
335 struct hotplug_slot *slot = pci_slot->hotplug;
344 ret = sysfs_create_link(&pci_slot->kobj, kobj, "module");
346 dev_err(&pci_slot->bus->dev, "Error creating sysfs link (%d)\n",
355 * @pci_slot: struct pci_slot
360 void pci_hp_remove_module_link(struct pci_slot *pci_slot)
362 sysfs_remove_link(&pci_slot->kobj, "module");