Lines Matching refs:slot

58 struct slot {  struct
82 static int enable_slot(struct hotplug_slot *slot); argument
83 static int disable_slot(struct hotplug_slot *slot);
84 static inline int get_power_status(struct hotplug_slot *slot, u8 *value);
97 struct slot *slot = pci_slot->hotplug->private; in path_show() local
99 if (!slot) in path_show()
102 retval = sprintf (buf, "%s\n", slot->physical_path); in path_show()
167 struct slot *slot; in sn_hp_slot_private_alloc() local
171 slot = kzalloc(sizeof(*slot), GFP_KERNEL); in sn_hp_slot_private_alloc()
172 if (!slot) in sn_hp_slot_private_alloc()
174 bss_hotplug_slot->private = slot; in sn_hp_slot_private_alloc()
176 slot->device_num = device; in sn_hp_slot_private_alloc()
177 slot->pci_bus = pci_bus; in sn_hp_slot_private_alloc()
183 sn_generate_path(pci_bus, slot->physical_path); in sn_hp_slot_private_alloc()
185 slot->hotplug_slot = bss_hotplug_slot; in sn_hp_slot_private_alloc()
186 list_add(&slot->hp_list, &sn_hp_list); in sn_hp_slot_private_alloc()
193 struct slot *slot; in sn_hp_destroy() local
197 list_for_each_entry(slot, &sn_hp_list, hp_list) { in sn_hp_destroy()
198 bss_hotplug_slot = slot->hotplug_slot; in sn_hp_destroy()
200 list_del(&((struct slot *)bss_hotplug_slot->private)-> in sn_hp_destroy()
233 struct slot *slot = bss_hotplug_slot->private; in sn_slot_enable() local
238 pcibus_info = SN_PCIBUS_BUSSOFT_INFO(slot->pci_bus); in sn_slot_enable()
248 dev_dbg(&slot->pci_bus->self->dev, "is already active\n"); in sn_slot_enable()
253 dev_dbg(&slot->pci_bus->self->dev, "L1 failure %d with message: %s", in sn_slot_enable()
259 dev_dbg(&slot->pci_bus->self->dev, "insert failed with error %d sub-error %d\n", in sn_slot_enable()
264 pcibus_info = SN_PCIBUS_BUSSOFT_INFO(slot->pci_bus); in sn_slot_enable()
273 struct slot *slot = bss_hotplug_slot->private; in sn_slot_disable() local
278 pcibus_info = SN_PCIBUS_BUSSOFT_INFO(slot->pci_bus); in sn_slot_disable()
284 dev_dbg(&slot->pci_bus->self->dev, "Slot %s already inactive\n", slot->physical_path); in sn_slot_disable()
289 dev_dbg(&slot->pci_bus->self->dev, "Cannot remove last 33MHz card\n"); in sn_slot_disable()
294 dev_dbg(&slot->pci_bus->self->dev, "L1 failure %d with message \n%s\n", in sn_slot_disable()
300 dev_dbg(&slot->pci_bus->self->dev, "remove failed with error %d sub-error %d\n", in sn_slot_disable()
309 pcibus_info = SN_PCIBUS_BUSSOFT_INFO(slot->pci_bus); in sn_slot_disable()
311 dev_dbg(&slot->pci_bus->self->dev, "remove successful\n"); in sn_slot_disable()
316 dev_dbg(&slot->pci_bus->self->dev,"remove failed rc = %d\n", rc); in sn_slot_disable()
329 struct slot *slot = bss_hotplug_slot->private; in enable_slot() local
346 rc = sn_slot_enable(bss_hotplug_slot, slot->device_num, &ssdt); in enable_slot()
366 num_funcs = pci_scan_slot(slot->pci_bus, in enable_slot()
367 PCI_DEVFN(slot->device_num + 1, 0)); in enable_slot()
369 dev_dbg(&slot->pci_bus->self->dev, "no device in slot\n"); in enable_slot()
379 list_for_each_entry(dev, &slot->pci_bus->devices, bus_list) { in enable_slot()
380 if (PCI_SLOT(dev->devfn) != slot->device_num + 1) in enable_slot()
412 phandle = acpi_device_handle(PCI_CONTROLLER(slot->pci_bus)->companion); in enable_slot()
415 dev_dbg(&slot->pci_bus->self->dev, "no parent device, assuming NULL\n"); in enable_slot()
440 (adr>>16) == (slot->device_num + 1)) { in enable_slot()
457 pci_bus_add_devices(slot->pci_bus); in enable_slot()
466 dev_dbg(&slot->pci_bus->self->dev, "insert operation successful\n"); in enable_slot()
468 dev_dbg(&slot->pci_bus->self->dev, "insert operation failed rc = %d\n", rc); in enable_slot()
475 struct slot *slot = bss_hotplug_slot->private; in disable_slot() local
484 rc = sn_slot_disable(bss_hotplug_slot, slot->device_num, in disable_slot()
491 PCI_CONTROLLER(slot->pci_bus)->companion) { in disable_slot()
500 phandle = acpi_device_handle(PCI_CONTROLLER(slot->pci_bus)->companion); in disable_slot()
523 (adr>>16) == (slot->device_num + 1)) { in disable_slot()
538 list_for_each_entry_safe(dev, temp, &slot->pci_bus->devices, bus_list) { in disable_slot()
539 if (PCI_SLOT(dev->devfn) != slot->device_num + 1) in disable_slot()
565 rc = sn_slot_disable(bss_hotplug_slot, slot->device_num, in disable_slot()
577 struct slot *slot = bss_hotplug_slot->private; in get_power_status() local
581 pcibus_info = SN_PCIBUS_BUSSOFT_INFO(slot->pci_bus); in get_power_status()
583 power = pcibus_info->pbi_enabled_devices & (1 << slot->device_num); in get_power_status()