Lines Matching refs:bss_hotplug_slot

162 static int sn_hp_slot_private_alloc(struct hotplug_slot *bss_hotplug_slot,  in sn_hp_slot_private_alloc()  argument
174 bss_hotplug_slot->private = slot; in sn_hp_slot_private_alloc()
185 slot->hotplug_slot = bss_hotplug_slot; in sn_hp_slot_private_alloc()
195 struct hotplug_slot *bss_hotplug_slot = NULL; in sn_hp_destroy() local
198 bss_hotplug_slot = slot->hotplug_slot; in sn_hp_destroy()
199 pci_slot = bss_hotplug_slot->pci_slot; in sn_hp_destroy()
200 list_del(&((struct slot *)bss_hotplug_slot->private)-> in sn_hp_destroy()
206 return bss_hotplug_slot; in sn_hp_destroy()
230 static int sn_slot_enable(struct hotplug_slot *bss_hotplug_slot, in sn_slot_enable() argument
233 struct slot *slot = bss_hotplug_slot->private; in sn_slot_enable()
270 static int sn_slot_disable(struct hotplug_slot *bss_hotplug_slot, in sn_slot_disable() argument
273 struct slot *slot = bss_hotplug_slot->private; in sn_slot_disable()
327 static int enable_slot(struct hotplug_slot *bss_hotplug_slot) in enable_slot() argument
329 struct slot *slot = bss_hotplug_slot->private; in enable_slot()
346 rc = sn_slot_enable(bss_hotplug_slot, slot->device_num, &ssdt); in enable_slot()
473 static int disable_slot(struct hotplug_slot *bss_hotplug_slot) in disable_slot() argument
475 struct slot *slot = bss_hotplug_slot->private; in disable_slot()
484 rc = sn_slot_disable(bss_hotplug_slot, slot->device_num, in disable_slot()
565 rc = sn_slot_disable(bss_hotplug_slot, slot->device_num, in disable_slot()
574 static inline int get_power_status(struct hotplug_slot *bss_hotplug_slot, in get_power_status() argument
577 struct slot *slot = bss_hotplug_slot->private; in get_power_status()
589 static void sn_release_slot(struct hotplug_slot *bss_hotplug_slot) in sn_release_slot() argument
591 kfree(bss_hotplug_slot->info); in sn_release_slot()
592 kfree(bss_hotplug_slot->private); in sn_release_slot()
593 kfree(bss_hotplug_slot); in sn_release_slot()
600 struct hotplug_slot *bss_hotplug_slot; in sn_hotplug_slot_register() local
613 bss_hotplug_slot = kzalloc(sizeof(*bss_hotplug_slot), in sn_hotplug_slot_register()
615 if (!bss_hotplug_slot) { in sn_hotplug_slot_register()
620 bss_hotplug_slot->info = in sn_hotplug_slot_register()
623 if (!bss_hotplug_slot->info) { in sn_hotplug_slot_register()
628 if (sn_hp_slot_private_alloc(bss_hotplug_slot, in sn_hotplug_slot_register()
633 bss_hotplug_slot->ops = &sn_hotplug_slot_ops; in sn_hotplug_slot_register()
634 bss_hotplug_slot->release = &sn_release_slot; in sn_hotplug_slot_register()
636 rc = pci_hp_register(bss_hotplug_slot, pci_bus, device, name); in sn_hotplug_slot_register()
640 pci_slot = bss_hotplug_slot->pci_slot; in sn_hotplug_slot_register()
658 if (bss_hotplug_slot) in sn_hotplug_slot_register()
659 sn_release_slot(bss_hotplug_slot); in sn_hotplug_slot_register()
662 while ((bss_hotplug_slot = sn_hp_destroy())) in sn_hotplug_slot_register()
663 pci_hp_deregister(bss_hotplug_slot); in sn_hotplug_slot_register()
707 struct hotplug_slot *bss_hotplug_slot; in sn_pci_hotplug_exit() local
709 while ((bss_hotplug_slot = sn_hp_destroy())) in sn_pci_hotplug_exit()
710 pci_hp_deregister(bss_hotplug_slot); in sn_pci_hotplug_exit()