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);
87 struct slot *slot = ctrl->slot; in init_slot() local
121 hotplug->private = slot; in init_slot()
124 slot->hotplug_slot = hotplug; in init_slot()
142 pci_hp_deregister(ctrl->slot->hotplug_slot); in cleanup_slot()
150 struct slot *slot = hotplug_slot->private; in set_attention_status() local
152 pciehp_set_attention_status(slot, status); in set_attention_status()
159 struct slot *slot = hotplug_slot->private; in enable_slot() local
161 return pciehp_sysfs_enable_slot(slot); in enable_slot()
167 struct slot *slot = hotplug_slot->private; in disable_slot() local
169 return pciehp_sysfs_disable_slot(slot); in disable_slot()
174 struct slot *slot = hotplug_slot->private; in get_power_status() local
176 pciehp_get_power_status(slot, value); in get_power_status()
182 struct slot *slot = hotplug_slot->private; in get_attention_status() local
184 pciehp_get_attention_status(slot, value); in get_attention_status()
190 struct slot *slot = hotplug_slot->private; in get_latch_status() local
192 pciehp_get_latch_status(slot, value); in get_latch_status()
198 struct slot *slot = hotplug_slot->private; in get_adapter_status() local
200 pciehp_get_adapter_status(slot, value); in get_adapter_status()
206 struct slot *slot = hotplug_slot->private; in reset_slot() local
208 return pciehp_reset_slot(slot, probe); in reset_slot()
215 struct slot *slot; in pciehp_probe() local
254 slot = ctrl->slot; in pciehp_probe()
255 pciehp_get_adapter_status(slot, &occupied); in pciehp_probe()
256 pciehp_get_power_status(slot, &poweron); in pciehp_probe()
258 mutex_lock(&slot->hotplug_lock); in pciehp_probe()
259 pciehp_enable_slot(slot); in pciehp_probe()
260 mutex_unlock(&slot->hotplug_lock); in pciehp_probe()
264 pciehp_power_off_slot(slot); in pciehp_probe()
292 struct slot *slot; in pciehp_resume() local
300 slot = ctrl->slot; in pciehp_resume()
303 pciehp_get_adapter_status(slot, &status); in pciehp_resume()
304 mutex_lock(&slot->hotplug_lock); in pciehp_resume()
306 pciehp_enable_slot(slot); in pciehp_resume()
308 pciehp_disable_slot(slot); in pciehp_resume()
309 mutex_unlock(&slot->hotplug_lock); in pciehp_resume()