• 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

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);
87 * release_slot - free up the memory used by a slot
88 * @hotplug_slot: slot to free
92 struct slot *slot = hotplug_slot->private;
96 kfree(slot->hotplug_slot->info);
97 kfree(slot->hotplug_slot);
98 kfree(slot);
101 static void make_slot_name(struct slot *slot)
103 snprintf(slot->hotplug_slot->name, SLOT_NAME_SIZE, "%04d_%04d",
104 slot->bus, slot->number);
109 struct slot *slot;
116 slot = kzalloc(sizeof(*slot), GFP_KERNEL);
117 if (!slot)
123 slot->hotplug_slot = hotplug_slot;
130 hotplug_slot->name = slot->name;
132 slot->hp_slot = i;
133 slot->ctrl = ctrl;
134 slot->bus = ctrl->pci_dev->subordinate->number;
135 slot->device = ctrl->slot_device_offset + i;
136 slot->hpc_ops = ctrl->hpc_ops;
137 slot->number = ctrl->first_slot + (ctrl->slot_num_inc * i);
138 mutex_init(&slot->lock);
139 INIT_DELAYED_WORK(&slot->work, shpchp_queue_pushbutton_work);
141 /* register this slot with the hotplug pci core */
142 hotplug_slot->private = slot;
144 make_slot_name(slot);
153 "slot_device_offset=%x\n", slot->bus, slot->device,
154 slot->hp_slot, slot->number, ctrl->slot_device_offset);
155 retval = pci_hp_register(slot->hotplug_slot);
161 list_add(&slot->slot_list, &ctrl->slot_list);
170 kfree(slot);
179 struct slot *slot;
182 slot = list_entry(tmp, struct slot, slot_list);
183 list_del(&slot->slot_list);
184 cancel_delayed_work(&slot->work);
187 pci_hp_deregister(slot->hotplug_slot);
192 * set_attention_status - Turns the Amber LED for a slot on, off or blink
196 struct slot *slot = get_slot(hotplug_slot);
201 slot->hpc_ops->set_attention_status(slot, status);
208 struct slot *slot = get_slot(hotplug_slot);
212 return shpchp_sysfs_enable_slot(slot);
217 struct slot *slot = get_slot(hotplug_slot);
221 return shpchp_sysfs_disable_slot(slot);
226 struct slot *slot = get_slot(hotplug_slot);
231 retval = slot->hpc_ops->get_power_status(slot, value);
240 struct slot *slot = get_slot(hotplug_slot);
245 retval = slot->hpc_ops->get_attention_status(slot, value);
254 struct slot *slot = get_slot(hotplug_slot);
259 retval = slot->hpc_ops->get_latch_status(slot, value);
268 struct slot *slot = get_slot(hotplug_slot);
273 retval = slot->hpc_ops->get_adapter_status(slot, value);
282 struct slot *slot = get_slot(hotplug_slot);
283 struct pci_bus *bus = slot->ctrl->pci_dev->subordinate;
287 *value = (pci_domain_nr(bus) << 16) | (slot->bus << 8) | slot->device;
294 struct slot *slot = get_slot(hotplug_slot);
299 retval = slot->hpc_ops->get_max_bus_speed(slot, value);
308 struct slot *slot = get_slot(hotplug_slot);
313 retval = slot->hpc_ops->get_cur_bus_speed(slot, value);
355 /* Setup the slot information structures */
358 err("%s: slot initialization failed\n", SHPC_MODULE_NAME);