Lines Matching refs:hp_slot
363 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in hpc_get_attention_status()
387 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in hpc_get_power_status()
412 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in hpc_get_latch_status()
422 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in hpc_get_adapter_status()
443 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in hpc_get_adapter_speed()
495 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in hpc_query_power_fault()
519 return shpc_write_cmd(slot, slot->hp_slot, slot_cmd); in hpc_set_attention_status()
525 shpc_write_cmd(slot, slot->hp_slot, SET_PWR_ON); in hpc_set_green_led_on()
530 shpc_write_cmd(slot, slot->hp_slot, SET_PWR_OFF); in hpc_set_green_led_off()
535 shpc_write_cmd(slot, slot->hp_slot, SET_PWR_BLINK); in hpc_set_green_led_blink()
582 retval = shpc_write_cmd(slot, slot->hp_slot, SET_SLOT_PWR); in hpc_power_on_slot()
594 retval = shpc_write_cmd(slot, slot->hp_slot, in hpc_slot_enable()
607 retval = shpc_write_cmd(slot, slot->hp_slot, in hpc_slot_disable()
754 int hp_slot; in shpc_isr() local
793 for (hp_slot = 0; hp_slot < ctrl->num_slots; hp_slot++) { in shpc_isr()
795 if (!(intr_loc & SLOT_INTR_PENDING(hp_slot))) in shpc_isr()
798 slot_reg = shpc_readl(ctrl, SLOT_REG(hp_slot)); in shpc_isr()
800 hp_slot, slot_reg); in shpc_isr()
803 shpchp_handle_switch_change(hp_slot, ctrl); in shpc_isr()
806 shpchp_handle_attention_button(hp_slot, ctrl); in shpc_isr()
809 shpchp_handle_presence_change(hp_slot, ctrl); in shpc_isr()
812 shpchp_handle_power_fault(hp_slot, ctrl); in shpc_isr()
816 shpc_writel(ctrl, SLOT_REG(hp_slot), slot_reg); in shpc_isr()
899 u8 hp_slot; in shpc_init() local
1003 for (hp_slot = 0; hp_slot < ctrl->num_slots; hp_slot++) { in shpc_init()
1004 slot_reg = shpc_readl(ctrl, SLOT_REG(hp_slot)); in shpc_init()
1006 hp_slot, slot_reg); in shpc_init()
1012 shpc_writel(ctrl, SLOT_REG(hp_slot), slot_reg); in shpc_init()
1047 for (hp_slot = 0; hp_slot < ctrl->num_slots; hp_slot++) { in shpc_init()
1048 slot_reg = shpc_readl(ctrl, SLOT_REG(hp_slot)); in shpc_init()
1050 hp_slot, slot_reg); in shpc_init()
1054 shpc_writel(ctrl, SLOT_REG(hp_slot), slot_reg); in shpc_init()