Lines Matching refs:slot

65 static int set_attention_status (struct hotplug_slot *slot, u8 value);
66 static int enable_slot (struct hotplug_slot *slot);
67 static int disable_slot (struct hotplug_slot *slot);
68 static int get_power_status (struct hotplug_slot *slot, u8 *value);
69 static int get_attention_status (struct hotplug_slot *slot, u8 *value);
70 static int get_latch_status (struct hotplug_slot *slot, u8 *value);
71 static int get_adapter_status (struct hotplug_slot *slot, u8 *value);
72 static int reset_slot (struct hotplug_slot *slot, int probe);
80 struct slot *slot = hotplug_slot->private; in release_slot() local
82 ctrl_dbg(slot->ctrl, "%s: physical_slot = %s\n", in release_slot()
92 struct slot *slot = ctrl->slot; in init_slot() local
126 hotplug->private = slot; in init_slot()
129 slot->hotplug_slot = hotplug; in init_slot()
151 pci_hp_deregister(ctrl->slot->hotplug_slot); in cleanup_slot()
159 struct slot *slot = hotplug_slot->private; in set_attention_status() local
161 ctrl_dbg(slot->ctrl, "%s: physical_slot = %s\n", in set_attention_status()
162 __func__, slot_name(slot)); in set_attention_status()
164 pciehp_set_attention_status(slot, status); in set_attention_status()
171 struct slot *slot = hotplug_slot->private; in enable_slot() local
173 ctrl_dbg(slot->ctrl, "%s: physical_slot = %s\n", in enable_slot()
174 __func__, slot_name(slot)); in enable_slot()
176 return pciehp_sysfs_enable_slot(slot); in enable_slot()
182 struct slot *slot = hotplug_slot->private; in disable_slot() local
184 ctrl_dbg(slot->ctrl, "%s: physical_slot = %s\n", in disable_slot()
185 __func__, slot_name(slot)); in disable_slot()
187 return pciehp_sysfs_disable_slot(slot); in disable_slot()
192 struct slot *slot = hotplug_slot->private; in get_power_status() local
194 ctrl_dbg(slot->ctrl, "%s: physical_slot = %s\n", in get_power_status()
195 __func__, slot_name(slot)); in get_power_status()
197 pciehp_get_power_status(slot, value); in get_power_status()
203 struct slot *slot = hotplug_slot->private; in get_attention_status() local
205 ctrl_dbg(slot->ctrl, "%s: physical_slot = %s\n", in get_attention_status()
206 __func__, slot_name(slot)); in get_attention_status()
208 pciehp_get_attention_status(slot, value); in get_attention_status()
214 struct slot *slot = hotplug_slot->private; in get_latch_status() local
216 ctrl_dbg(slot->ctrl, "%s: physical_slot = %s\n", in get_latch_status()
217 __func__, slot_name(slot)); in get_latch_status()
219 pciehp_get_latch_status(slot, value); in get_latch_status()
225 struct slot *slot = hotplug_slot->private; in get_adapter_status() local
227 ctrl_dbg(slot->ctrl, "%s: physical_slot = %s\n", in get_adapter_status()
228 __func__, slot_name(slot)); in get_adapter_status()
230 pciehp_get_adapter_status(slot, value); in get_adapter_status()
236 struct slot *slot = hotplug_slot->private; in reset_slot() local
238 ctrl_dbg(slot->ctrl, "%s: physical_slot = %s\n", in reset_slot()
239 __func__, slot_name(slot)); in reset_slot()
241 return pciehp_reset_slot(slot, probe); in reset_slot()
248 struct slot *slot; in pciehp_probe() local
290 slot = ctrl->slot; in pciehp_probe()
291 pciehp_get_adapter_status(slot, &occupied); in pciehp_probe()
292 pciehp_get_power_status(slot, &poweron); in pciehp_probe()
294 mutex_lock(&slot->hotplug_lock); in pciehp_probe()
295 pciehp_enable_slot(slot); in pciehp_probe()
296 mutex_unlock(&slot->hotplug_lock); in pciehp_probe()
300 pciehp_power_off_slot(slot); in pciehp_probe()
329 struct slot *slot; in pciehp_resume() local
337 slot = ctrl->slot; in pciehp_resume()
340 pciehp_get_adapter_status(slot, &status); in pciehp_resume()
341 mutex_lock(&slot->hotplug_lock); in pciehp_resume()
343 pciehp_enable_slot(slot); in pciehp_resume()
345 pciehp_disable_slot(slot); in pciehp_resume()
346 mutex_unlock(&slot->hotplug_lock); in pciehp_resume()