Lines Matching refs:slot

310 static int shpc_write_cmd(struct slot *slot, u8 t_slot, u8 cmd)  in shpc_write_cmd()  argument
312 struct controller *ctrl = slot->ctrl; in shpc_write_cmd()
317 mutex_lock(&slot->ctrl->cmd_lock); in shpc_write_cmd()
338 retval = shpc_wait_cmd(slot->ctrl); in shpc_write_cmd()
342 cmd_status = hpc_check_cmd_status(slot->ctrl); in shpc_write_cmd()
349 mutex_unlock(&slot->ctrl->cmd_lock); in shpc_write_cmd()
382 static int hpc_get_attention_status(struct slot *slot, u8 *status) in hpc_get_attention_status() argument
384 struct controller *ctrl = slot->ctrl; in hpc_get_attention_status()
385 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in hpc_get_attention_status()
406 static int hpc_get_power_status(struct slot *slot, u8 *status) in hpc_get_power_status() argument
408 struct controller *ctrl = slot->ctrl; in hpc_get_power_status()
409 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in hpc_get_power_status()
431 static int hpc_get_latch_status(struct slot *slot, u8 *status) in hpc_get_latch_status() argument
433 struct controller *ctrl = slot->ctrl; in hpc_get_latch_status()
434 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in hpc_get_latch_status()
441 static int hpc_get_adapter_status(struct slot *slot, u8 *status) in hpc_get_adapter_status() argument
443 struct controller *ctrl = slot->ctrl; in hpc_get_adapter_status()
444 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in hpc_get_adapter_status()
452 static int hpc_get_prog_int(struct slot *slot, u8 *prog_int) in hpc_get_prog_int() argument
454 struct controller *ctrl = slot->ctrl; in hpc_get_prog_int()
461 static int hpc_get_adapter_speed(struct slot *slot, enum pci_bus_speed *value) in hpc_get_adapter_speed() argument
464 struct controller *ctrl = slot->ctrl; in hpc_get_adapter_speed()
465 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in hpc_get_adapter_speed()
469 retval = hpc_get_prog_int(slot, &pi); in hpc_get_adapter_speed()
514 static int hpc_get_mode1_ECC_cap(struct slot *slot, u8 *mode) in hpc_get_mode1_ECC_cap() argument
517 struct controller *ctrl = slot->ctrl; in hpc_get_mode1_ECC_cap()
531 static int hpc_query_power_fault(struct slot *slot) in hpc_query_power_fault() argument
533 struct controller *ctrl = slot->ctrl; in hpc_query_power_fault()
534 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in hpc_query_power_fault()
540 static int hpc_set_attention_status(struct slot *slot, u8 value) in hpc_set_attention_status() argument
558 return shpc_write_cmd(slot, slot->hp_slot, slot_cmd); in hpc_set_attention_status()
562 static void hpc_set_green_led_on(struct slot *slot) in hpc_set_green_led_on() argument
564 shpc_write_cmd(slot, slot->hp_slot, SET_PWR_ON); in hpc_set_green_led_on()
567 static void hpc_set_green_led_off(struct slot *slot) in hpc_set_green_led_off() argument
569 shpc_write_cmd(slot, slot->hp_slot, SET_PWR_OFF); in hpc_set_green_led_off()
572 static void hpc_set_green_led_blink(struct slot *slot) in hpc_set_green_led_blink() argument
574 shpc_write_cmd(slot, slot->hp_slot, SET_PWR_BLINK); in hpc_set_green_led_blink()
617 static int hpc_power_on_slot(struct slot *slot) in hpc_power_on_slot() argument
621 retval = shpc_write_cmd(slot, slot->hp_slot, SET_SLOT_PWR); in hpc_power_on_slot()
623 ctrl_err(slot->ctrl, "%s: Write command failed!\n", __func__); in hpc_power_on_slot()
628 static int hpc_slot_enable(struct slot *slot) in hpc_slot_enable() argument
633 retval = shpc_write_cmd(slot, slot->hp_slot, in hpc_slot_enable()
636 ctrl_err(slot->ctrl, "%s: Write command failed!\n", __func__); in hpc_slot_enable()
641 static int hpc_slot_disable(struct slot *slot) in hpc_slot_disable() argument
646 retval = shpc_write_cmd(slot, slot->hp_slot, in hpc_slot_disable()
649 ctrl_err(slot->ctrl, "%s: Write command failed!\n", __func__); in hpc_slot_disable()
723 static int hpc_set_bus_speed_mode(struct slot *slot, enum pci_bus_speed value) in hpc_set_bus_speed_mode() argument
726 struct controller *ctrl = slot->ctrl; in hpc_set_bus_speed_mode()
780 retval = shpc_write_cmd(slot, 0, cmd); in hpc_set_bus_speed_mode()