Lines Matching defs: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)
47 struct slot *p_slot;
70 struct slot *p_slot;
108 struct slot *p_slot;
143 struct slot *p_slot;
178 static int change_bus_speed(struct controller *ctrl, struct slot *p_slot,
193 static int fix_bus_speed(struct controller *ctrl, struct slot *pslot,
224 * @p_slot: target &slot
229 static int board_added(struct slot *p_slot)
243 /* Power on slot without connecting to bus */
246 ctrl_err(ctrl, "Failed to power on slot\n");
297 ctrl_dbg(ctrl, "%s: slot status = %x\n", __func__, p_slot->status);
321 /* turn off slot, turn on Amber LED, turn off Green LED */
334 * remove_board - Turns off slot and LEDs
335 * @p_slot: target &slot
337 static int remove_board(struct slot *p_slot)
354 /* turn off slot, turn on Amber LED, turn off Green LED */
376 struct slot *p_slot;
391 struct slot *p_slot = info->p_slot;
418 struct slot *p_slot = container_of(work, struct slot, work.work);
447 static void update_slot_info(struct slot *slot)
449 slot->hpc_ops->get_power_status(slot, &slot->pwr_save);
450 slot->hpc_ops->get_attention_status(slot, &slot->attention_save);
451 slot->hpc_ops->get_latch_status(slot, &slot->latch_save);
452 slot->hpc_ops->get_adapter_status(slot, &slot->presence_save);
456 * Note: This function must be called with slot->lock held
458 static void handle_button_press_event(struct slot *p_slot)
468 ctrl_info(ctrl, "PCI slot #%s - powering off due to button press\n",
472 ctrl_info(ctrl, "PCI slot #%s - powering on due to button press\n",
496 ctrl_info(ctrl, "PCI slot #%s - action canceled due to button press\n",
503 * Ignore if the slot is on power-on or power-off state;
520 struct slot *p_slot = info->p_slot;
542 static int shpchp_enable_slot (struct slot *p_slot)
552 ctrl_info(ctrl, "No adapter on slot(%s)\n", slot_name(p_slot));
557 ctrl_info(ctrl, "Latch open on slot(%s)\n", slot_name(p_slot));
562 ctrl_info(ctrl, "Already enabled on slot(%s)\n",
599 static int shpchp_disable_slot (struct slot *p_slot)
613 ctrl_info(ctrl, "No adapter on slot(%s)\n", slot_name(p_slot));
618 ctrl_info(ctrl, "Latch open on slot(%s)\n", slot_name(p_slot));
623 ctrl_info(ctrl, "Already disabled on slot(%s)\n",
635 int shpchp_sysfs_enable_slot(struct slot *p_slot)
658 ctrl_info(ctrl, "Already enabled on slot %s\n",
662 ctrl_err(ctrl, "Not a valid state on slot %s\n",
671 int shpchp_sysfs_disable_slot(struct slot *p_slot)
694 ctrl_info(ctrl, "Already disabled on slot %s\n",
698 ctrl_err(ctrl, "Not a valid state on slot %s\n",