• 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:slot

40 struct slot {
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);
98 struct slot *slot = hotplug_slot->private;
104 * Fill in code here to enable the specified slot
112 struct slot *slot = hotplug_slot->private;
118 * Fill in code here to disable the specified slot
126 struct slot *slot = hotplug_slot->private;
151 struct slot *slot = hotplug_slot->private;
170 struct slot *slot = hotplug_slot->private;
177 * slot and store it in the *value location.
185 struct slot *slot = hotplug_slot->private;
192 * slot and store it in the *value location.
200 struct slot *slot = hotplug_slot->private;
207 * slot and store it in the *value location.
215 struct slot *slot = hotplug_slot->private;
222 * slot and store it in the *value location.
230 struct slot *slot = hotplug_slot->private;
233 kfree(slot->hotplug_slot->info);
234 kfree(slot->hotplug_slot);
235 kfree(slot);
238 static void make_slot_name(struct slot *slot)
241 * Stupid way to make a filename out of the slot name.
244 snprintf(slot->hotplug_slot->name, SLOT_NAME_SIZE, "%d", slot->number);
248 * init_slots - initialize 'struct slot' structures for each slot
253 struct slot *slot;
260 * Create a structure for each slot, and register that slot
264 slot = kzalloc(sizeof(*slot), GFP_KERNEL);
265 if (!slot)
271 slot->hotplug_slot = hotplug_slot;
278 slot->number = i;
280 hotplug_slot->name = slot->name;
281 hotplug_slot->private = slot;
283 make_slot_name(slot);
287 * Initialize the slot info structure with some known
295 dbg("registering slot %d\n", i);
296 retval = pci_hp_register(slot->hotplug_slot);
302 /* add slot to our internal list */
303 list_add(&slot->slot_list, &slot_list);
312 kfree(slot);
321 struct slot *slot;
325 * Memory will be freed in release_slot() callback after slot's
329 slot = list_entry(tmp, struct slot, slot_list);
330 list_del(&slot->slot_list);
331 pci_hp_deregister(slot->hotplug_slot);