Lines Matching refs:bss_hotplug_slot
159 static int sn_hp_slot_private_alloc(struct hotplug_slot *bss_hotplug_slot, in sn_hp_slot_private_alloc() argument
171 bss_hotplug_slot->private = slot; in sn_hp_slot_private_alloc()
182 slot->hotplug_slot = bss_hotplug_slot; in sn_hp_slot_private_alloc()
192 struct hotplug_slot *bss_hotplug_slot = NULL; in sn_hp_destroy() local
195 bss_hotplug_slot = slot->hotplug_slot; in sn_hp_destroy()
196 pci_slot = bss_hotplug_slot->pci_slot; in sn_hp_destroy()
197 list_del(&((struct slot *)bss_hotplug_slot->private)-> in sn_hp_destroy()
203 return bss_hotplug_slot; in sn_hp_destroy()
227 static int sn_slot_enable(struct hotplug_slot *bss_hotplug_slot, in sn_slot_enable() argument
230 struct slot *slot = bss_hotplug_slot->private; in sn_slot_enable()
267 static int sn_slot_disable(struct hotplug_slot *bss_hotplug_slot, in sn_slot_disable() argument
270 struct slot *slot = bss_hotplug_slot->private; in sn_slot_disable()
324 static int enable_slot(struct hotplug_slot *bss_hotplug_slot) in enable_slot() argument
326 struct slot *slot = bss_hotplug_slot->private; in enable_slot()
343 rc = sn_slot_enable(bss_hotplug_slot, slot->device_num, &ssdt); in enable_slot()
470 static int disable_slot(struct hotplug_slot *bss_hotplug_slot) in disable_slot() argument
472 struct slot *slot = bss_hotplug_slot->private; in disable_slot()
481 rc = sn_slot_disable(bss_hotplug_slot, slot->device_num, in disable_slot()
562 rc = sn_slot_disable(bss_hotplug_slot, slot->device_num, in disable_slot()
571 static inline int get_power_status(struct hotplug_slot *bss_hotplug_slot, in get_power_status() argument
574 struct slot *slot = bss_hotplug_slot->private; in get_power_status()
586 static void sn_release_slot(struct hotplug_slot *bss_hotplug_slot) in sn_release_slot() argument
588 kfree(bss_hotplug_slot->info); in sn_release_slot()
589 kfree(bss_hotplug_slot->private); in sn_release_slot()
590 kfree(bss_hotplug_slot); in sn_release_slot()
597 struct hotplug_slot *bss_hotplug_slot; in sn_hotplug_slot_register() local
610 bss_hotplug_slot = kzalloc(sizeof(*bss_hotplug_slot), in sn_hotplug_slot_register()
612 if (!bss_hotplug_slot) { in sn_hotplug_slot_register()
617 bss_hotplug_slot->info = in sn_hotplug_slot_register()
620 if (!bss_hotplug_slot->info) { in sn_hotplug_slot_register()
625 if (sn_hp_slot_private_alloc(bss_hotplug_slot, in sn_hotplug_slot_register()
630 bss_hotplug_slot->ops = &sn_hotplug_slot_ops; in sn_hotplug_slot_register()
632 rc = pci_hp_register(bss_hotplug_slot, pci_bus, device, name); in sn_hotplug_slot_register()
636 pci_slot = bss_hotplug_slot->pci_slot; in sn_hotplug_slot_register()
654 if (bss_hotplug_slot) in sn_hotplug_slot_register()
655 sn_release_slot(bss_hotplug_slot); in sn_hotplug_slot_register()
658 while ((bss_hotplug_slot = sn_hp_destroy())) { in sn_hotplug_slot_register()
659 pci_hp_deregister(bss_hotplug_slot); in sn_hotplug_slot_register()
660 sn_release_slot(bss_hotplug_slot); in sn_hotplug_slot_register()
705 struct hotplug_slot *bss_hotplug_slot; in sn_pci_hotplug_exit() local
707 while ((bss_hotplug_slot = sn_hp_destroy())) { in sn_pci_hotplug_exit()
708 pci_hp_deregister(bss_hotplug_slot); in sn_pci_hotplug_exit()
709 sn_release_slot(bss_hotplug_slot); in sn_pci_hotplug_exit()