Lines Matching refs:slot
55 struct slot { struct
79 static int enable_slot(struct hotplug_slot *slot); argument
80 static int disable_slot(struct hotplug_slot *slot);
81 static inline int get_power_status(struct hotplug_slot *slot, u8 *value);
94 struct slot *slot = pci_slot->hotplug->private; in path_show() local
96 if (!slot) in path_show()
99 retval = sprintf(buf, "%s\n", slot->physical_path); in path_show()
164 struct slot *slot; in sn_hp_slot_private_alloc() local
168 slot = kzalloc(sizeof(*slot), GFP_KERNEL); in sn_hp_slot_private_alloc()
169 if (!slot) in sn_hp_slot_private_alloc()
171 bss_hotplug_slot->private = slot; in sn_hp_slot_private_alloc()
173 slot->device_num = device; in sn_hp_slot_private_alloc()
174 slot->pci_bus = pci_bus; in sn_hp_slot_private_alloc()
180 sn_generate_path(pci_bus, slot->physical_path); in sn_hp_slot_private_alloc()
182 slot->hotplug_slot = bss_hotplug_slot; in sn_hp_slot_private_alloc()
183 list_add(&slot->hp_list, &sn_hp_list); in sn_hp_slot_private_alloc()
190 struct slot *slot; in sn_hp_destroy() local
194 list_for_each_entry(slot, &sn_hp_list, hp_list) { in sn_hp_destroy()
195 bss_hotplug_slot = slot->hotplug_slot; in sn_hp_destroy()
197 list_del(&((struct slot *)bss_hotplug_slot->private)-> in sn_hp_destroy()
230 struct slot *slot = bss_hotplug_slot->private; in sn_slot_enable() local
235 pcibus_info = SN_PCIBUS_BUSSOFT_INFO(slot->pci_bus); in sn_slot_enable()
245 pci_dbg(slot->pci_bus->self, "is already active\n"); in sn_slot_enable()
250 pci_dbg(slot->pci_bus->self, "L1 failure %d with message: %s", in sn_slot_enable()
256 pci_dbg(slot->pci_bus->self, "insert failed with error %d sub-error %d\n", in sn_slot_enable()
261 pcibus_info = SN_PCIBUS_BUSSOFT_INFO(slot->pci_bus); in sn_slot_enable()
270 struct slot *slot = bss_hotplug_slot->private; in sn_slot_disable() local
275 pcibus_info = SN_PCIBUS_BUSSOFT_INFO(slot->pci_bus); in sn_slot_disable()
281 pci_dbg(slot->pci_bus->self, "Slot %s already inactive\n", slot->physical_path); in sn_slot_disable()
286 pci_dbg(slot->pci_bus->self, "Cannot remove last 33MHz card\n"); in sn_slot_disable()
291 pci_dbg(slot->pci_bus->self, "L1 failure %d with message \n%s\n", in sn_slot_disable()
297 pci_dbg(slot->pci_bus->self, "remove failed with error %d sub-error %d\n", in sn_slot_disable()
306 pcibus_info = SN_PCIBUS_BUSSOFT_INFO(slot->pci_bus); in sn_slot_disable()
308 pci_dbg(slot->pci_bus->self, "remove successful\n"); in sn_slot_disable()
313 pci_dbg(slot->pci_bus->self, "remove failed rc = %d\n", rc); in sn_slot_disable()
326 struct slot *slot = bss_hotplug_slot->private; in enable_slot() local
343 rc = sn_slot_enable(bss_hotplug_slot, slot->device_num, &ssdt); in enable_slot()
363 num_funcs = pci_scan_slot(slot->pci_bus, in enable_slot()
364 PCI_DEVFN(slot->device_num + 1, 0)); in enable_slot()
366 pci_dbg(slot->pci_bus->self, "no device in slot\n"); in enable_slot()
376 list_for_each_entry(dev, &slot->pci_bus->devices, bus_list) { in enable_slot()
377 if (PCI_SLOT(dev->devfn) != slot->device_num + 1) in enable_slot()
409 phandle = acpi_device_handle(PCI_CONTROLLER(slot->pci_bus)->companion); in enable_slot()
412 pci_dbg(slot->pci_bus->self, "no parent device, assuming NULL\n"); in enable_slot()
437 (adr>>16) == (slot->device_num + 1)) { in enable_slot()
454 pci_bus_add_devices(slot->pci_bus); in enable_slot()
463 pci_dbg(slot->pci_bus->self, "insert operation successful\n"); in enable_slot()
465 pci_dbg(slot->pci_bus->self, "insert operation failed rc = %d\n", rc); in enable_slot()
472 struct slot *slot = bss_hotplug_slot->private; in disable_slot() local
481 rc = sn_slot_disable(bss_hotplug_slot, slot->device_num, in disable_slot()
488 PCI_CONTROLLER(slot->pci_bus)->companion) { in disable_slot()
497 phandle = acpi_device_handle(PCI_CONTROLLER(slot->pci_bus)->companion); in disable_slot()
520 (adr>>16) == (slot->device_num + 1)) { in disable_slot()
535 list_for_each_entry_safe(dev, temp, &slot->pci_bus->devices, bus_list) { in disable_slot()
536 if (PCI_SLOT(dev->devfn) != slot->device_num + 1) in disable_slot()
562 rc = sn_slot_disable(bss_hotplug_slot, slot->device_num, in disable_slot()
574 struct slot *slot = bss_hotplug_slot->private; in get_power_status() local
578 pcibus_info = SN_PCIBUS_BUSSOFT_INFO(slot->pci_bus); in get_power_status()
580 power = pcibus_info->pbi_enabled_devices & (1 << slot->device_num); in get_power_status()