Lines Matching defs:slot

288 static int shpc_write_cmd(struct slot *slot, u8 t_slot, u8 cmd)
290 struct controller *ctrl = slot->ctrl;
295 mutex_lock(&slot->ctrl->cmd_lock);
316 retval = shpc_wait_cmd(slot->ctrl);
320 cmd_status = hpc_check_cmd_status(slot->ctrl);
327 mutex_unlock(&slot->ctrl->cmd_lock);
360 static int hpc_get_attention_status(struct slot *slot, u8 *status)
362 struct controller *ctrl = slot->ctrl;
363 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot));
384 static int hpc_get_power_status(struct slot *slot, u8 *status)
386 struct controller *ctrl = slot->ctrl;
387 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot));
409 static int hpc_get_latch_status(struct slot *slot, u8 *status)
411 struct controller *ctrl = slot->ctrl;
412 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot));
419 static int hpc_get_adapter_status(struct slot *slot, u8 *status)
421 struct controller *ctrl = slot->ctrl;
422 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot));
430 static int hpc_get_prog_int(struct slot *slot, u8 *prog_int)
432 struct controller *ctrl = slot->ctrl;
439 static int hpc_get_adapter_speed(struct slot *slot, enum pci_bus_speed *value)
442 struct controller *ctrl = slot->ctrl;
443 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot));
447 retval = hpc_get_prog_int(slot, &pi);
492 static int hpc_query_power_fault(struct slot *slot)
494 struct controller *ctrl = slot->ctrl;
495 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot));
501 static int hpc_set_attention_status(struct slot *slot, u8 value)
519 return shpc_write_cmd(slot, slot->hp_slot, slot_cmd);
523 static void hpc_set_green_led_on(struct slot *slot)
525 shpc_write_cmd(slot, slot->hp_slot, SET_PWR_ON);
528 static void hpc_set_green_led_off(struct slot *slot)
530 shpc_write_cmd(slot, slot->hp_slot, SET_PWR_OFF);
533 static void hpc_set_green_led_blink(struct slot *slot)
535 shpc_write_cmd(slot, slot->hp_slot, SET_PWR_BLINK);
578 static int hpc_power_on_slot(struct slot *slot)
582 retval = shpc_write_cmd(slot, slot->hp_slot, SET_SLOT_PWR);
584 ctrl_err(slot->ctrl, "%s: Write command failed!\n", __func__);
589 static int hpc_slot_enable(struct slot *slot)
594 retval = shpc_write_cmd(slot, slot->hp_slot,
597 ctrl_err(slot->ctrl, "%s: Write command failed!\n", __func__);
602 static int hpc_slot_disable(struct slot *slot)
607 retval = shpc_write_cmd(slot, slot->hp_slot,
610 ctrl_err(slot->ctrl, "%s: Write command failed!\n", __func__);
684 static int hpc_set_bus_speed_mode(struct slot *slot, enum pci_bus_speed value)
687 struct controller *ctrl = slot->ctrl;
741 retval = shpc_write_cmd(slot, 0, cmd);
794 /* To find out which slot has interrupt pending */
799 ctrl_dbg(ctrl, "Slot %x with intr, slot register = %x\n",
814 /* Clear all slot events */
928 ctrl_err(ctrl, "Cannot read slot config\n");
1000 /* Mask the MRL sensor SERR Mask of individual slot in