• 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

65 	struct slot *slot = (struct slot *)hotplug_slot->private;
77 rc = rtas_set_indicator(DR_INDICATOR, slot->index, value);
85 * get_power_status - get power status of a slot
86 * @hotplug_slot: slot to get status
92 struct slot *slot = (struct slot *)hotplug_slot->private;
94 retval = rtas_get_power_level (slot->power_domain, &level);
105 struct slot *slot = (struct slot *)hotplug_slot->private;
106 *value = slot->hotplug_slot->info->attention_status;
112 struct slot *slot = (struct slot *)hotplug_slot->private;
115 rc = rpaphp_get_sensor_state(slot, &state);
124 *value = slot->state;
131 struct slot *slot = (struct slot *)hotplug_slot->private;
133 switch (slot->type) {
184 /* &drc_names[1] contains NULL terminated slot names */
187 /* &drc_types[1] contains NULL terminated slot types */
256 * is_php_dn() - return 1 if this is a hotpluggable pci slot, else 0
259 * a hotpluggable slot. This routine will return false
281 * rpaphp_add_slot -- declare a hotplug slot to the hotplug subsystem.
282 * @dn device node of slot
284 * This subroutine will register a hotplugable slot with the
287 * or is called later, by the dlpar add code, if the slot is
290 * If the device node points at an embedded (built-in) slot, this
294 * To remove a slot, it suffices to call rpaphp_deregister_slot()
298 struct slot *slot;
307 /* If this is not a hotplug slot, return without doing anything. */
318 slot = alloc_slot_struct(dn, indexes[i + 1], name, power_domains[i + 1]);
319 if (!slot)
322 slot->type = simple_strtoul(type, NULL, 10);
327 retval = rpaphp_enable_slot(slot);
329 retval = rpaphp_register_slot(slot);
332 dealloc_slot_struct(slot);
345 struct slot *slot;
354 slot = list_entry(tmp, struct slot, rpaphp_slot_list);
355 list_del(&slot->rpaphp_slot_list);
356 pci_hp_deregister(slot->hotplug_slot);
380 struct slot *slot = (struct slot *)hotplug_slot->private;
384 if (slot->state == CONFIGURED)
387 retval = rpaphp_get_sensor_state(slot, &state);
392 pcibios_add_pci_devices(slot->bus);
393 slot->state = CONFIGURED;
395 slot->state = EMPTY;
397 err("%s: slot[%s] is in invalid state\n", __FUNCTION__, slot->name);
398 slot->state = NOT_VALID;
406 struct slot *slot = (struct slot *)hotplug_slot->private;
407 if (slot->state == NOT_CONFIGURED)
410 pcibios_remove_pci_devices(slot->bus);
411 slot->state = NOT_CONFIGURED;