Lines Matching refs:slot

29 static void set_slot_off(struct controller *ctrl, struct slot *pslot)  in set_slot_off()
54 static int board_added(struct slot *p_slot) in board_added()
105 static void remove_board(struct slot *p_slot) in remove_board()
126 static int pciehp_enable_slot(struct slot *slot);
127 static int pciehp_disable_slot(struct slot *slot);
138 struct slot *p_slot = container_of(work, struct slot, work.work); in pciehp_queue_pushbutton_work()
155 void pciehp_handle_button_press(struct slot *p_slot) in pciehp_handle_button_press()
205 void pciehp_handle_disable_request(struct slot *slot) in pciehp_handle_disable_request() argument
207 struct controller *ctrl = slot->ctrl; in pciehp_handle_disable_request()
209 mutex_lock(&slot->lock); in pciehp_handle_disable_request()
210 switch (slot->state) { in pciehp_handle_disable_request()
213 cancel_delayed_work(&slot->work); in pciehp_handle_disable_request()
216 slot->state = POWEROFF_STATE; in pciehp_handle_disable_request()
217 mutex_unlock(&slot->lock); in pciehp_handle_disable_request()
219 ctrl->request_result = pciehp_disable_slot(slot); in pciehp_handle_disable_request()
222 void pciehp_handle_presence_or_link_change(struct slot *slot, u32 events) in pciehp_handle_presence_or_link_change() argument
224 struct controller *ctrl = slot->ctrl; in pciehp_handle_presence_or_link_change()
232 mutex_lock(&slot->lock); in pciehp_handle_presence_or_link_change()
233 switch (slot->state) { in pciehp_handle_presence_or_link_change()
235 cancel_delayed_work(&slot->work); in pciehp_handle_presence_or_link_change()
238 slot->state = POWEROFF_STATE; in pciehp_handle_presence_or_link_change()
239 mutex_unlock(&slot->lock); in pciehp_handle_presence_or_link_change()
242 slot_name(slot)); in pciehp_handle_presence_or_link_change()
245 slot_name(slot)); in pciehp_handle_presence_or_link_change()
246 pciehp_disable_slot(slot); in pciehp_handle_presence_or_link_change()
249 mutex_unlock(&slot->lock); in pciehp_handle_presence_or_link_change()
254 mutex_lock(&slot->lock); in pciehp_handle_presence_or_link_change()
255 pciehp_get_adapter_status(slot, &present); in pciehp_handle_presence_or_link_change()
258 mutex_unlock(&slot->lock); in pciehp_handle_presence_or_link_change()
262 switch (slot->state) { in pciehp_handle_presence_or_link_change()
264 cancel_delayed_work(&slot->work); in pciehp_handle_presence_or_link_change()
267 slot->state = POWERON_STATE; in pciehp_handle_presence_or_link_change()
268 mutex_unlock(&slot->lock); in pciehp_handle_presence_or_link_change()
271 slot_name(slot)); in pciehp_handle_presence_or_link_change()
274 slot_name(slot)); in pciehp_handle_presence_or_link_change()
275 ctrl->request_result = pciehp_enable_slot(slot); in pciehp_handle_presence_or_link_change()
278 mutex_unlock(&slot->lock); in pciehp_handle_presence_or_link_change()
283 static int __pciehp_enable_slot(struct slot *p_slot) in __pciehp_enable_slot()
314 static int pciehp_enable_slot(struct slot *slot) in pciehp_enable_slot() argument
316 struct controller *ctrl = slot->ctrl; in pciehp_enable_slot()
320 ret = __pciehp_enable_slot(slot); in pciehp_enable_slot()
322 pciehp_green_led_off(slot); /* may be blinking */ in pciehp_enable_slot()
325 mutex_lock(&slot->lock); in pciehp_enable_slot()
326 slot->state = ret ? OFF_STATE : ON_STATE; in pciehp_enable_slot()
327 mutex_unlock(&slot->lock); in pciehp_enable_slot()
332 static int __pciehp_disable_slot(struct slot *p_slot) in __pciehp_disable_slot()
350 static int pciehp_disable_slot(struct slot *slot) in pciehp_disable_slot() argument
352 struct controller *ctrl = slot->ctrl; in pciehp_disable_slot()
356 ret = __pciehp_disable_slot(slot); in pciehp_disable_slot()
359 mutex_lock(&slot->lock); in pciehp_disable_slot()
360 slot->state = OFF_STATE; in pciehp_disable_slot()
361 mutex_unlock(&slot->lock); in pciehp_disable_slot()
366 int pciehp_sysfs_enable_slot(struct slot *p_slot) in pciehp_sysfs_enable_slot()
404 int pciehp_sysfs_disable_slot(struct slot *p_slot) in pciehp_sysfs_disable_slot()