Lines Matching refs:slot

40 struct slot {  struct
75 static int enable_slot (struct hotplug_slot *slot);
76 static int disable_slot (struct hotplug_slot *slot);
77 static int set_attention_status (struct hotplug_slot *slot, u8 value);
78 static int hardware_test (struct hotplug_slot *slot, u32 value);
79 static int get_power_status (struct hotplug_slot *slot, u8 *value);
80 static int get_attention_status (struct hotplug_slot *slot, u8 *value);
81 static int get_latch_status (struct hotplug_slot *slot, u8 *value);
82 static int get_adapter_status (struct hotplug_slot *slot, u8 *value);
97 struct slot *slot = hotplug_slot->private; in enable_slot() local
111 struct slot *slot = hotplug_slot->private; in disable_slot() local
125 struct slot *slot = hotplug_slot->private; in set_attention_status() local
150 struct slot *slot = hotplug_slot->private; in hardware_test() local
169 struct slot *slot = hotplug_slot->private; in get_power_status() local
184 struct slot *slot = hotplug_slot->private; in get_attention_status() local
199 struct slot *slot = hotplug_slot->private; in get_latch_status() local
214 struct slot *slot = hotplug_slot->private; in get_adapter_status() local
229 struct slot *slot = hotplug_slot->private; in release_slot() local
232 kfree(slot->hotplug_slot->info); in release_slot()
233 kfree(slot->hotplug_slot); in release_slot()
234 kfree(slot); in release_slot()
237 static void make_slot_name(struct slot *slot) in make_slot_name() argument
243 snprintf(slot->hotplug_slot->name, SLOT_NAME_SIZE, "%d", slot->number); in make_slot_name()
252 struct slot *slot; in init_slots() local
263 slot = kzalloc(sizeof(*slot), GFP_KERNEL); in init_slots()
264 if (!slot) { in init_slots()
274 slot->hotplug_slot = hotplug_slot; in init_slots()
283 slot->number = i; in init_slots()
285 hotplug_slot->name = slot->name; in init_slots()
286 hotplug_slot->private = slot; in init_slots()
288 make_slot_name(slot); in init_slots()
301 retval = pci_hp_register(slot->hotplug_slot); in init_slots()
308 list_add(&slot->slot_list, &slot_list); in init_slots()
317 kfree(slot); in init_slots()
326 struct slot *slot; in cleanup_slots() local
334 slot = list_entry(tmp, struct slot, slot_list); in cleanup_slots()
335 list_del(&slot->slot_list); in cleanup_slots()
336 pci_hp_deregister(slot->hotplug_slot); in cleanup_slots()