Lines Matching full:slot
25 static int shpchp_enable_slot(struct slot *p_slot);
26 static int shpchp_disable_slot(struct slot *p_slot);
28 static int queue_interrupt_event(struct slot *p_slot, u32 event_type) in queue_interrupt_event()
47 struct slot *p_slot; in shpchp_handle_attention_button()
59 ctrl_info(ctrl, "Button pressed on Slot(%s)\n", slot_name(p_slot)); in shpchp_handle_attention_button()
70 struct slot *p_slot; in shpchp_handle_switch_change()
87 ctrl_info(ctrl, "Latch open on Slot(%s)\n", slot_name(p_slot)); in shpchp_handle_switch_change()
97 ctrl_info(ctrl, "Latch close on Slot(%s)\n", slot_name(p_slot)); in shpchp_handle_switch_change()
108 struct slot *p_slot; in shpchp_handle_presence_change()
124 ctrl_info(ctrl, "Card present on Slot(%s)\n", in shpchp_handle_presence_change()
131 ctrl_info(ctrl, "Card not present on Slot(%s)\n", in shpchp_handle_presence_change()
143 struct slot *p_slot; in shpchp_handle_power_fault()
155 ctrl_info(ctrl, "Power fault cleared on Slot(%s)\n", in shpchp_handle_power_fault()
163 ctrl_info(ctrl, "Power fault on Slot(%s)\n", slot_name(p_slot)); in shpchp_handle_power_fault()
178 static int change_bus_speed(struct controller *ctrl, struct slot *p_slot, in change_bus_speed()
193 static int fix_bus_speed(struct controller *ctrl, struct slot *pslot, in fix_bus_speed()
224 * @p_slot: target &slot
229 static int board_added(struct slot *p_slot) in board_added()
243 /* Power on slot without connecting to bus */ in board_added()
246 ctrl_err(ctrl, "Failed to power on slot\n"); in board_added()
261 ctrl_err(ctrl, "Issue of Slot Enable command failed\n"); in board_added()
290 ctrl_err(ctrl, "Issue of Slot Enable command failed\n"); in board_added()
297 ctrl_dbg(ctrl, "%s: slot status = %x\n", __func__, p_slot->status); in board_added()
321 /* turn off slot, turn on Amber LED, turn off Green LED */ in board_added()
324 ctrl_err(ctrl, "%s: Issue of Slot Disable command failed\n", in board_added()
334 * remove_board - Turns off slot and LEDs
335 * @p_slot: target &slot
337 static int remove_board(struct slot *p_slot) in remove_board()
354 /* turn off slot, turn on Amber LED, turn off Green LED */ in remove_board()
357 ctrl_err(ctrl, "%s: Issue of Slot Disable command failed\n", in remove_board()
376 struct slot *p_slot;
391 struct slot *p_slot = info->p_slot; in shpchp_pushbutton_thread()
418 struct slot *p_slot = container_of(work, struct slot, work.work); in shpchp_queue_pushbutton_work()
447 static void update_slot_info(struct slot *slot) in update_slot_info() argument
449 shpchp_get_power_status(slot, &slot->pwr_save); in update_slot_info()
450 shpchp_get_attention_status(slot, &slot->attention_save); in update_slot_info()
451 shpchp_get_latch_status(slot, &slot->latch_save); in update_slot_info()
452 shpchp_get_adapter_status(slot, &slot->presence_save); in update_slot_info()
456 * Note: This function must be called with slot->lock held
458 static void handle_button_press_event(struct slot *p_slot) in handle_button_press_event()
468 ctrl_info(ctrl, "PCI slot #%s - powering off due to button press\n", in handle_button_press_event()
472 ctrl_info(ctrl, "PCI slot #%s - powering on due to button press\n", in handle_button_press_event()
488 ctrl_info(ctrl, "Button cancel on Slot(%s)\n", in handle_button_press_event()
496 ctrl_info(ctrl, "PCI slot #%s - action canceled due to button press\n", in handle_button_press_event()
503 * Ignore if the slot is on power-on or power-off state; in handle_button_press_event()
507 ctrl_info(ctrl, "Button ignore on Slot(%s)\n", in handle_button_press_event()
520 struct slot *p_slot = info->p_slot; in interrupt_event_handler()
542 static int shpchp_enable_slot (struct slot *p_slot) in shpchp_enable_slot()
552 ctrl_info(ctrl, "No adapter on slot(%s)\n", slot_name(p_slot)); in shpchp_enable_slot()
557 ctrl_info(ctrl, "Latch open on slot(%s)\n", slot_name(p_slot)); in shpchp_enable_slot()
562 ctrl_info(ctrl, "Already enabled on slot(%s)\n", in shpchp_enable_slot()
598 static int shpchp_disable_slot (struct slot *p_slot) in shpchp_disable_slot()
612 ctrl_info(ctrl, "No adapter on slot(%s)\n", slot_name(p_slot)); in shpchp_disable_slot()
617 ctrl_info(ctrl, "Latch open on slot(%s)\n", slot_name(p_slot)); in shpchp_disable_slot()
622 ctrl_info(ctrl, "Already disabled on slot(%s)\n", in shpchp_disable_slot()
634 int shpchp_sysfs_enable_slot(struct slot *p_slot) in shpchp_sysfs_enable_slot()
652 ctrl_info(ctrl, "Slot %s is already in powering on state\n", in shpchp_sysfs_enable_slot()
657 ctrl_info(ctrl, "Already enabled on slot %s\n", in shpchp_sysfs_enable_slot()
661 ctrl_err(ctrl, "Not a valid state on slot %s\n", in shpchp_sysfs_enable_slot()
670 int shpchp_sysfs_disable_slot(struct slot *p_slot) in shpchp_sysfs_disable_slot()
688 ctrl_info(ctrl, "Slot %s is already in powering off state\n", in shpchp_sysfs_disable_slot()
693 ctrl_info(ctrl, "Already disabled on slot %s\n", in shpchp_sysfs_disable_slot()
697 ctrl_err(ctrl, "Not a valid state on slot %s\n", in shpchp_sysfs_disable_slot()