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

67 	struct slot *slot = (struct slot *)hotplug_slot->private;
79 rc = rtas_set_indicator(DR_INDICATOR, slot->index, value);
87 * get_power_status - get power status of a slot
88 * @hotplug_slot: slot to get status
94 struct slot *slot = (struct slot *)hotplug_slot->private;
96 retval = rtas_get_power_level (slot->power_domain, &level);
104 * @hotplug_slot: slot to get status
109 struct slot *slot = (struct slot *)hotplug_slot->private;
110 *value = slot->hotplug_slot->info->attention_status;
116 struct slot *slot = (struct slot *)hotplug_slot->private;
119 rc = rpaphp_get_sensor_state(slot, &state);
128 *value = slot->state;
133 static enum pci_bus_speed get_max_bus_speed(struct slot *slot)
136 switch (slot->type) {
187 /* &drc_names[1] contains NULL terminated slot names */
190 /* &drc_types[1] contains NULL terminated slot types */
259 * is_php_dn() - return 1 if this is a hotpluggable pci slot, else 0
267 * a hotpluggable slot. This routine will return false
289 * rpaphp_add_slot -- declare a hotplug slot to the hotplug subsystem.
290 * @dn: device node of slot
292 * This subroutine will register a hotplugable slot with the
295 * or is called later, by the dlpar add code, if the slot is
298 * If the device node points at an embedded (built-in) slot, this
302 * To remove a slot, it suffices to call rpaphp_deregister_slot().
306 struct slot *slot;
315 /* If this is not a hotplug slot, return without doing anything. */
326 slot = alloc_slot_struct(dn, indexes[i + 1], name, power_domains[i + 1]);
327 if (!slot)
330 slot->type = simple_strtoul(type, NULL, 10);
335 retval = rpaphp_enable_slot(slot);
337 retval = rpaphp_register_slot(slot);
340 dealloc_slot_struct(slot);
353 struct slot *slot;
362 slot = list_entry(tmp, struct slot, rpaphp_slot_list);
363 list_del(&slot->rpaphp_slot_list);
364 pci_hp_deregister(slot->hotplug_slot);
388 struct slot *slot = (struct slot *)hotplug_slot->private;
392 if (slot->state == CONFIGURED)
395 retval = rpaphp_get_sensor_state(slot, &state);
400 pcibios_add_pci_devices(slot->bus);
401 slot->state = CONFIGURED;
403 slot->state = EMPTY;
405 err("%s: slot[%s] is in invalid state\n", __func__, slot->name);
406 slot->state = NOT_VALID;
410 slot->bus->max_bus_speed = get_max_bus_speed(slot);
416 struct slot *slot = (struct slot *)hotplug_slot->private;
417 if (slot->state == NOT_CONFIGURED)
420 pcibios_remove_pci_devices(slot->bus);
423 slot->state = NOT_CONFIGURED;