Lines Matching refs: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);
144 static int rename_slot(struct pci_slot *slot, const char *name)
164 struct pci_slot *slot;
173 static struct pci_slot *get_slot(struct pci_bus *parent, int slot_nr)
175 struct pci_slot *slot;
195 * and a &struct pci_slot is used to manage them. This interface will
196 * either return a new &struct pci_slot to the caller, or if the pci_slot
218 * -1. First, we no longer check for an existing %struct pci_slot, as there
225 struct pci_slot *pci_create_slot(struct pci_bus *parent, int slot_nr,
230 struct pci_slot *slot;
306 * @slot: struct pci_slot to decrement
308 * %struct pci_slot is refcounted, so destroying them is really easy; we
312 void pci_destroy_slot(struct pci_slot *slot)
327 * @pci_slot: struct pci_slot
332 void pci_hp_create_module_link(struct pci_slot *pci_slot)
334 struct hotplug_slot *slot = pci_slot->hotplug;
343 ret = sysfs_create_link(&pci_slot->kobj, kobj, "module");
345 dev_err(&pci_slot->bus->dev, "Error creating sysfs link (%d)\n",
353 * @pci_slot: struct pci_slot
358 void pci_hp_remove_module_link(struct pci_slot *pci_slot)
360 sysfs_remove_link(&pci_slot->kobj, "module");