• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/pci/hotplug/

Lines Matching refs:hotplug_slot

66 static int enable_slot(struct hotplug_slot *slot);
67 static int disable_slot(struct hotplug_slot *slot);
68 static int set_attention_status(struct hotplug_slot *slot, u8 value);
69 static int get_power_status(struct hotplug_slot *slot, u8 * value);
70 static int get_attention_status(struct hotplug_slot *slot, u8 * value);
71 static int get_adapter_status(struct hotplug_slot *slot, u8 * value);
72 static int get_latch_status(struct hotplug_slot *slot, u8 * value);
86 update_latch_status(struct hotplug_slot *hotplug_slot, u8 value)
90 memcpy(&info, hotplug_slot->info, sizeof(struct hotplug_slot_info));
92 return pci_hp_change_slot_info(hotplug_slot, &info);
96 update_adapter_status(struct hotplug_slot *hotplug_slot, u8 value)
100 memcpy(&info, hotplug_slot->info, sizeof(struct hotplug_slot_info));
102 return pci_hp_change_slot_info(hotplug_slot, &info);
106 enable_slot(struct hotplug_slot *hotplug_slot)
108 struct slot *slot = hotplug_slot->private;
111 dbg("%s - physical_slot = %s", __FUNCTION__, hotplug_slot->name);
119 disable_slot(struct hotplug_slot *hotplug_slot)
121 struct slot *slot = hotplug_slot->private;
124 dbg("%s - physical_slot = %s", __FUNCTION__, hotplug_slot->name);
130 __FUNCTION__, slot->hotplug_slot->name);
133 __FUNCTION__, slot->hotplug_slot->name);
137 __FUNCTION__, slot->hotplug_slot->name);
142 __FUNCTION__, slot->hotplug_slot->name);
152 if (update_adapter_status(slot->hotplug_slot, 0))
175 get_power_status(struct hotplug_slot *hotplug_slot, u8 * value)
177 struct slot *slot = hotplug_slot->private;
184 get_attention_status(struct hotplug_slot *hotplug_slot, u8 * value)
186 struct slot *slot = hotplug_slot->private;
193 set_attention_status(struct hotplug_slot *hotplug_slot, u8 status)
195 return cpci_set_attention_status(hotplug_slot->private, status);
199 get_adapter_status(struct hotplug_slot *hotplug_slot, u8 * value)
201 *value = hotplug_slot->info->adapter_status;
206 get_latch_status(struct hotplug_slot *hotplug_slot, u8 * value)
208 *value = hotplug_slot->info->latch_status;
212 static void release_slot(struct hotplug_slot *hotplug_slot)
214 struct slot *slot = hotplug_slot->private;
216 kfree(slot->hotplug_slot->info);
217 kfree(slot->hotplug_slot->name);
218 kfree(slot->hotplug_slot);
228 snprintf(slot->hotplug_slot->name,
236 struct hotplug_slot *hotplug_slot;
254 hotplug_slot =
255 kzalloc(sizeof (struct hotplug_slot), GFP_KERNEL);
256 if (!hotplug_slot)
258 slot->hotplug_slot = hotplug_slot;
263 hotplug_slot->info = info;
268 hotplug_slot->name = name;
274 hotplug_slot->private = slot;
275 hotplug_slot->release = &release_slot;
277 hotplug_slot->ops = &cpci_hotplug_slot_ops;
283 dbg("initializing slot %s", slot->hotplug_slot->name);
287 dbg("registering slot %s", slot->hotplug_slot->name);
288 status = pci_hp_register(slot->hotplug_slot);
306 kfree(hotplug_slot);
330 dbg("deregistering slot %s", slot->hotplug_slot->name);
331 status = pci_hp_deregister(slot->hotplug_slot);
385 __FUNCTION__, slot->hotplug_slot->name);
388 __FUNCTION__, slot->hotplug_slot->name);
391 if (update_adapter_status(slot->hotplug_slot, 1))
393 if (update_latch_status(slot->hotplug_slot, 1))
420 __FUNCTION__, slot->hotplug_slot->name);
428 slot->hotplug_slot->name);
435 __FUNCTION__, slot->hotplug_slot->name);
440 __FUNCTION__, slot->hotplug_slot->name, hs_csr);
444 __FUNCTION__, slot->hotplug_slot->name);
447 __FUNCTION__, slot->hotplug_slot->name);
451 __FUNCTION__, slot->hotplug_slot->name);
456 __FUNCTION__, slot->hotplug_slot->name, hs_csr);
458 if (update_latch_status(slot->hotplug_slot, 1))
461 if (update_adapter_status(slot->hotplug_slot, 1))
469 __FUNCTION__, slot->hotplug_slot->name, hs_csr);
475 __FUNCTION__, slot->hotplug_slot->name);
480 __FUNCTION__, slot->hotplug_slot->name, hs_csr);
483 if (update_latch_status(slot->hotplug_slot, 0)) {
498 slot->hotplug_slot->name);
499 if (update_adapter_status(slot->hotplug_slot, 0))
670 pci_hp_deregister(slot->hotplug_slot);