Lines Matching refs:hotplug_slot

76 static int set_attention_status (struct hotplug_slot *slot, u8 value);
77 static int process_SI (struct hotplug_slot *slot);
78 static int process_SS (struct hotplug_slot *slot);
79 static int hardware_test (struct hotplug_slot *slot, u32 value);
80 static int get_power_status (struct hotplug_slot *slot, u8 *value);
81 static int get_attention_status (struct hotplug_slot *slot, u8 *value);
82 static int get_latch_status (struct hotplug_slot *slot, u8 *value);
83 static int get_adapter_status (struct hotplug_slot *slot, u8 *value);
84 static int get_max_bus_speed (struct hotplug_slot *slot, enum pci_bus_speed *value);
85 static int get_cur_bus_speed (struct hotplug_slot *slot, enum pci_bus_speed *value);
337 new_slot->hotplug_slot = kmalloc (sizeof (struct hotplug_slot), GFP_KERNEL); in ctrl_slot_setup()
338 if (!new_slot->hotplug_slot) { in ctrl_slot_setup()
342 memset(new_slot->hotplug_slot, 0, sizeof (struct hotplug_slot)); in ctrl_slot_setup()
344 new_slot->hotplug_slot->info = kmalloc (sizeof (struct hotplug_slot_info), GFP_KERNEL); in ctrl_slot_setup()
345 if (!new_slot->hotplug_slot->info) { in ctrl_slot_setup()
346 kfree (new_slot->hotplug_slot); in ctrl_slot_setup()
350 memset(new_slot->hotplug_slot->info, 0, sizeof (struct hotplug_slot_info)); in ctrl_slot_setup()
351 new_slot->hotplug_slot->name = kmalloc (SLOT_NAME_SIZE, GFP_KERNEL); in ctrl_slot_setup()
352 if (!new_slot->hotplug_slot->name) { in ctrl_slot_setup()
353 kfree (new_slot->hotplug_slot->info); in ctrl_slot_setup()
354 kfree (new_slot->hotplug_slot); in ctrl_slot_setup()
400 new_slot->hotplug_slot->private = new_slot; in ctrl_slot_setup()
401 make_slot_name (new_slot->hotplug_slot->name, SLOT_NAME_SIZE, new_slot); in ctrl_slot_setup()
402 new_slot->hotplug_slot->ops = &cpqphp_hotplug_slot_ops; in ctrl_slot_setup()
404 new_slot->hotplug_slot->info->power_status = get_slot_enabled(ctrl, new_slot); in ctrl_slot_setup()
405 new_slot->hotplug_slot->info->attention_status = cpq_get_attention_status(ctrl, new_slot); in ctrl_slot_setup()
406 new_slot->hotplug_slot->info->latch_status = cpq_get_latch_status(ctrl, new_slot); in ctrl_slot_setup()
407 new_slot->hotplug_slot->info->adapter_status = get_presence_status(ctrl, new_slot); in ctrl_slot_setup()
411 result = pci_hp_register (new_slot->hotplug_slot); in ctrl_slot_setup()
414 kfree (new_slot->hotplug_slot->info); in ctrl_slot_setup()
415 kfree (new_slot->hotplug_slot->name); in ctrl_slot_setup()
416 kfree (new_slot->hotplug_slot); in ctrl_slot_setup()
442 pci_hp_deregister (old_slot->hotplug_slot); in ctrl_slot_cleanup()
443 kfree(old_slot->hotplug_slot->info); in ctrl_slot_cleanup()
444 kfree(old_slot->hotplug_slot->name); in ctrl_slot_cleanup()
445 kfree(old_slot->hotplug_slot); in ctrl_slot_cleanup()
588 static int set_attention_status (struct hotplug_slot *hotplug_slot, u8 status) in set_attention_status() argument
591 struct slot *slot = get_slot (hotplug_slot, __FUNCTION__); in set_attention_status()
601 dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name); in set_attention_status()
623 static int process_SI (struct hotplug_slot *hotplug_slot) in process_SI() argument
626 struct slot *slot = get_slot (hotplug_slot, __FUNCTION__); in process_SI()
636 dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name); in process_SI()
663 static int process_SS (struct hotplug_slot *hotplug_slot) in process_SS() argument
666 struct slot *slot = get_slot (hotplug_slot, __FUNCTION__); in process_SS()
676 dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name); in process_SS()
699 static int hardware_test (struct hotplug_slot *hotplug_slot, u32 value) in hardware_test() argument
701 struct slot *slot = get_slot (hotplug_slot, __FUNCTION__); in hardware_test()
717 static int get_power_status (struct hotplug_slot *hotplug_slot, u8 *value) in get_power_status() argument
719 struct slot *slot = get_slot (hotplug_slot, __FUNCTION__); in get_power_status()
725 dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name); in get_power_status()
735 static int get_attention_status (struct hotplug_slot *hotplug_slot, u8 *value) in get_attention_status() argument
737 struct slot *slot = get_slot (hotplug_slot, __FUNCTION__); in get_attention_status()
743 dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name); in get_attention_status()
753 static int get_latch_status (struct hotplug_slot *hotplug_slot, u8 *value) in get_latch_status() argument
755 struct slot *slot = get_slot (hotplug_slot, __FUNCTION__); in get_latch_status()
761 dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name); in get_latch_status()
772 static int get_adapter_status (struct hotplug_slot *hotplug_slot, u8 *value) in get_adapter_status() argument
774 struct slot *slot = get_slot (hotplug_slot, __FUNCTION__); in get_adapter_status()
780 dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name); in get_adapter_status()
791 static int get_max_bus_speed (struct hotplug_slot *hotplug_slot, enum pci_bus_speed *value) in get_max_bus_speed() argument
793 struct slot *slot = get_slot (hotplug_slot, __FUNCTION__); in get_max_bus_speed()
799 dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name); in get_max_bus_speed()
810 static int get_cur_bus_speed (struct hotplug_slot *hotplug_slot, enum pci_bus_speed *value) in get_cur_bus_speed() argument
812 struct slot *slot = get_slot (hotplug_slot, __FUNCTION__); in get_cur_bus_speed()
818 dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name); in get_cur_bus_speed()