• 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

62 static int set_attention_status (struct hotplug_slot *slot, u8 value);
63 static int enable_slot (struct hotplug_slot *slot);
64 static int disable_slot (struct hotplug_slot *slot);
65 static int get_power_status (struct hotplug_slot *slot, u8 *value);
66 static int get_attention_status (struct hotplug_slot *slot, u8 *value);
67 static int get_latch_status (struct hotplug_slot *slot, u8 *value);
68 static int get_adapter_status (struct hotplug_slot *slot, u8 *value);
81 * release_slot - free up the memory used by a slot
82 * @hotplug_slot: slot to free
86 struct slot *slot = hotplug_slot->private;
88 ctrl_dbg(slot->ctrl, "%s: physical_slot = %s\n",
89 __func__, slot_name(slot));
91 kfree(slot->hotplug_slot->info);
92 kfree(slot->hotplug_slot);
93 kfree(slot);
98 struct slot *slot;
106 slot = kzalloc(sizeof(*slot), GFP_KERNEL);
107 if (!slot)
113 slot->hotplug_slot = hotplug_slot;
120 slot->hp_slot = i;
121 slot->ctrl = ctrl;
122 slot->bus = ctrl->pci_dev->subordinate->number;
123 slot->device = ctrl->slot_device_offset + i;
124 slot->hpc_ops = ctrl->hpc_ops;
125 slot->number = ctrl->first_slot + (ctrl->slot_num_inc * i);
126 mutex_init(&slot->lock);
127 INIT_DELAYED_WORK(&slot->work, shpchp_queue_pushbutton_work);
129 /* register this slot with the hotplug pci core */
130 hotplug_slot->private = slot;
132 snprintf(name, SLOT_NAME_SIZE, "%d", slot->number);
138 slot->bus, slot->device, slot->hp_slot, slot->number,
140 retval = pci_hp_register(slot->hotplug_slot,
141 ctrl->pci_dev->subordinate, slot->device, name);
153 list_add(&slot->slot_list, &ctrl->slot_list);
162 kfree(slot);
171 struct slot *slot;
174 slot = list_entry(tmp, struct slot, slot_list);
175 list_del(&slot->slot_list);
176 cancel_delayed_work(&slot->work);
179 pci_hp_deregister(slot->hotplug_slot);
184 * set_attention_status - Turns the Amber LED for a slot on, off or blink
188 struct slot *slot = get_slot(hotplug_slot);
190 ctrl_dbg(slot->ctrl, "%s: physical_slot = %s\n",
191 __func__, slot_name(slot));
194 slot->hpc_ops->set_attention_status(slot, status);
201 struct slot *slot = get_slot(hotplug_slot);
203 ctrl_dbg(slot->ctrl, "%s: physical_slot = %s\n",
204 __func__, slot_name(slot));
206 return shpchp_sysfs_enable_slot(slot);
211 struct slot *slot = get_slot(hotplug_slot);
213 ctrl_dbg(slot->ctrl, "%s: physical_slot = %s\n",
214 __func__, slot_name(slot));
216 return shpchp_sysfs_disable_slot(slot);
221 struct slot *slot = get_slot(hotplug_slot);
224 ctrl_dbg(slot->ctrl, "%s: physical_slot = %s\n",
225 __func__, slot_name(slot));
227 retval = slot->hpc_ops->get_power_status(slot, value);
236 struct slot *slot = get_slot(hotplug_slot);
239 ctrl_dbg(slot->ctrl, "%s: physical_slot = %s\n",
240 __func__, slot_name(slot));
242 retval = slot->hpc_ops->get_attention_status(slot, value);
251 struct slot *slot = get_slot(hotplug_slot);
254 ctrl_dbg(slot->ctrl, "%s: physical_slot = %s\n",
255 __func__, slot_name(slot));
257 retval = slot->hpc_ops->get_latch_status(slot, value);
266 struct slot *slot = get_slot(hotplug_slot);
269 ctrl_dbg(slot->ctrl, "%s: physical_slot = %s\n",
270 __func__, slot_name(slot));
272 retval = slot->hpc_ops->get_adapter_status(slot, value);
314 /* Setup the slot information structures */