• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/pci/hotplug/

Lines Matching defs:hotplug_slot

65 static int enable_slot(struct hotplug_slot *slot);
66 static int disable_slot(struct hotplug_slot *slot);
67 static int set_attention_status(struct hotplug_slot *slot, u8 value);
68 static int get_power_status(struct hotplug_slot *slot, u8 * value);
69 static int get_attention_status(struct hotplug_slot *slot, u8 * value);
70 static int get_adapter_status(struct hotplug_slot *slot, u8 * value);
71 static int get_latch_status(struct hotplug_slot *slot, u8 * value);
84 update_latch_status(struct hotplug_slot *hotplug_slot, u8 value)
88 memcpy(&info, hotplug_slot->info, sizeof(struct hotplug_slot_info));
90 return pci_hp_change_slot_info(hotplug_slot, &info);
94 update_adapter_status(struct hotplug_slot *hotplug_slot, u8 value)
98 memcpy(&info, hotplug_slot->info, sizeof(struct hotplug_slot_info));
100 return pci_hp_change_slot_info(hotplug_slot, &info);
104 enable_slot(struct hotplug_slot *hotplug_slot)
106 struct slot *slot = hotplug_slot->private;
117 disable_slot(struct hotplug_slot *hotplug_slot)
119 struct slot *slot = hotplug_slot->private;
148 if (update_adapter_status(slot->hotplug_slot, 0))
171 get_power_status(struct hotplug_slot *hotplug_slot, u8 * value)
173 struct slot *slot = hotplug_slot->private;
180 get_attention_status(struct hotplug_slot *hotplug_slot, u8 * value)
182 struct slot *slot = hotplug_slot->private;
189 set_attention_status(struct hotplug_slot *hotplug_slot, u8 status)
191 return cpci_set_attention_status(hotplug_slot->private, status);
195 get_adapter_status(struct hotplug_slot *hotplug_slot, u8 * value)
197 *value = hotplug_slot->info->adapter_status;
202 get_latch_status(struct hotplug_slot *hotplug_slot, u8 * value)
204 *value = hotplug_slot->info->latch_status;
208 static void release_slot(struct hotplug_slot *hotplug_slot)
210 struct slot *slot = hotplug_slot->private;
212 kfree(slot->hotplug_slot->info);
213 kfree(slot->hotplug_slot);
225 struct hotplug_slot *hotplug_slot;
243 hotplug_slot =
244 kzalloc(sizeof (struct hotplug_slot), GFP_KERNEL);
245 if (!hotplug_slot)
247 slot->hotplug_slot = hotplug_slot;
252 hotplug_slot->info = info;
260 hotplug_slot->private = slot;
261 hotplug_slot->release = &release_slot;
262 hotplug_slot->ops = &cpci_hotplug_slot_ops;
273 status = pci_hp_register(slot->hotplug_slot, bus, i, name);
290 kfree(hotplug_slot);
315 status = pci_hp_deregister(slot->hotplug_slot);
372 if (update_adapter_status(slot->hotplug_slot, 1))
374 if (update_latch_status(slot->hotplug_slot, 1))
437 if (update_latch_status(slot->hotplug_slot, 1))
440 if (update_adapter_status(slot->hotplug_slot, 1))
462 if (update_latch_status(slot->hotplug_slot, 0)) {
478 if (update_adapter_status(slot->hotplug_slot, 0))
627 pci_hp_deregister(slot->hotplug_slot);