• 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

61 static int set_attention_status (struct hotplug_slot *slot, u8 value);
62 static int enable_slot (struct hotplug_slot *slot);
63 static int disable_slot (struct hotplug_slot *slot);
64 static int get_power_status (struct hotplug_slot *slot, u8 *value);
65 static int get_attention_status (struct hotplug_slot *slot, u8 *value);
66 static int get_latch_status (struct hotplug_slot *slot, u8 *value);
67 static int get_adapter_status (struct hotplug_slot *slot, u8 *value);
68 static int get_address (struct hotplug_slot *slot, u32 *value);
69 static int get_max_bus_speed (struct hotplug_slot *slot, enum pci_bus_speed *value);
70 static int get_cur_bus_speed (struct hotplug_slot *slot, enum pci_bus_speed *value);
88 * @hotplug_slot: slot to free
90 static void release_slot(struct hotplug_slot *hotplug_slot)
92 struct slot *slot = hotplug_slot->private;
94 dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name);
96 kfree(slot->hotplug_slot->info);
97 kfree(slot->hotplug_slot);
103 snprintf(slot->hotplug_slot->name, SLOT_NAME_SIZE, "%04d_%04d",
110 struct hotplug_slot *hotplug_slot;
120 hotplug_slot = kzalloc(sizeof(*hotplug_slot), GFP_KERNEL);
121 if (!hotplug_slot)
123 slot->hotplug_slot = hotplug_slot;
128 hotplug_slot->info = info;
130 hotplug_slot->name = slot->name;
142 hotplug_slot->private = slot;
143 hotplug_slot->release = &release_slot;
145 hotplug_slot->ops = &shpchp_hotplug_slot_ops;
147 get_power_status(hotplug_slot, &info->power_status);
148 get_attention_status(hotplug_slot, &info->attention_status);
149 get_latch_status(hotplug_slot, &info->latch_status);
150 get_adapter_status(hotplug_slot, &info->adapter_status);
155 retval = pci_hp_register(slot->hotplug_slot);
168 kfree(hotplug_slot);
187 pci_hp_deregister(slot->hotplug_slot);
194 static int set_attention_status (struct hotplug_slot *hotplug_slot, u8 status)
196 struct slot *slot = get_slot(hotplug_slot);
198 dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name);
200 hotplug_slot->info->attention_status = status;
206 static int enable_slot (struct hotplug_slot *hotplug_slot)
208 struct slot *slot = get_slot(hotplug_slot);
210 dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name);
215 static int disable_slot (struct hotplug_slot *hotplug_slot)
217 struct slot *slot = get_slot(hotplug_slot);
219 dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name);
224 static int get_power_status (struct hotplug_slot *hotplug_slot, u8 *value)
226 struct slot *slot = get_slot(hotplug_slot);
229 dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name);
233 *value = hotplug_slot->info->power_status;
238 static int get_attention_status (struct hotplug_slot *hotplug_slot, u8 *value)
240 struct slot *slot = get_slot(hotplug_slot);
243 dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name);
247 *value = hotplug_slot->info->attention_status;
252 static int get_latch_status (struct hotplug_slot *hotplug_slot, u8 *value)
254 struct slot *slot = get_slot(hotplug_slot);
257 dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name);
261 *value = hotplug_slot->info->latch_status;
266 static int get_adapter_status (struct hotplug_slot *hotplug_slot, u8 *value)
268 struct slot *slot = get_slot(hotplug_slot);
271 dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name);
275 *value = hotplug_slot->info->adapter_status;
280 static int get_address (struct hotplug_slot *hotplug_slot, u32 *value)
282 struct slot *slot = get_slot(hotplug_slot);
285 dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name);
292 static int get_max_bus_speed (struct hotplug_slot *hotplug_slot, enum pci_bus_speed *value)
294 struct slot *slot = get_slot(hotplug_slot);
297 dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name);
306 static int get_cur_bus_speed (struct hotplug_slot *hotplug_slot, enum pci_bus_speed *value)
308 struct slot *slot = get_slot(hotplug_slot);
311 dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name);