Lines Matching refs:hp_slot

385 	u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot));  in hpc_get_attention_status()
409 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in hpc_get_power_status()
434 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in hpc_get_latch_status()
444 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in hpc_get_adapter_status()
465 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in hpc_get_adapter_speed()
534 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in hpc_query_power_fault()
558 return shpc_write_cmd(slot, slot->hp_slot, slot_cmd); in hpc_set_attention_status()
564 shpc_write_cmd(slot, slot->hp_slot, SET_PWR_ON); in hpc_set_green_led_on()
569 shpc_write_cmd(slot, slot->hp_slot, SET_PWR_OFF); in hpc_set_green_led_off()
574 shpc_write_cmd(slot, slot->hp_slot, SET_PWR_BLINK); in hpc_set_green_led_blink()
621 retval = shpc_write_cmd(slot, slot->hp_slot, SET_SLOT_PWR); in hpc_power_on_slot()
633 retval = shpc_write_cmd(slot, slot->hp_slot, in hpc_slot_enable()
646 retval = shpc_write_cmd(slot, slot->hp_slot, in hpc_slot_disable()
793 int hp_slot; in shpc_isr() local
832 for (hp_slot = 0; hp_slot < ctrl->num_slots; hp_slot++) { in shpc_isr()
834 if (!(intr_loc & SLOT_INTR_PENDING(hp_slot))) in shpc_isr()
837 slot_reg = shpc_readl(ctrl, SLOT_REG(hp_slot)); in shpc_isr()
839 hp_slot, slot_reg); in shpc_isr()
842 shpchp_handle_switch_change(hp_slot, ctrl); in shpc_isr()
845 shpchp_handle_attention_button(hp_slot, ctrl); in shpc_isr()
848 shpchp_handle_presence_change(hp_slot, ctrl); in shpc_isr()
851 shpchp_handle_power_fault(hp_slot, ctrl); in shpc_isr()
855 shpc_writel(ctrl, SLOT_REG(hp_slot), slot_reg); in shpc_isr()
939 u8 hp_slot; in shpc_init() local
1043 for (hp_slot = 0; hp_slot < ctrl->num_slots; hp_slot++) { in shpc_init()
1044 slot_reg = shpc_readl(ctrl, SLOT_REG(hp_slot)); in shpc_init()
1046 hp_slot, slot_reg); in shpc_init()
1052 shpc_writel(ctrl, SLOT_REG(hp_slot), slot_reg); in shpc_init()
1085 for (hp_slot = 0; hp_slot < ctrl->num_slots; hp_slot++) { in shpc_init()
1086 slot_reg = shpc_readl(ctrl, SLOT_REG(hp_slot)); in shpc_init()
1088 hp_slot, slot_reg); in shpc_init()
1092 shpc_writel(ctrl, SLOT_REG(hp_slot), slot_reg); in shpc_init()