Lines Matching refs:hp_slot

368 	u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot));  in hpc_get_attention_status()
392 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in hpc_get_power_status()
417 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in hpc_get_latch_status()
427 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in hpc_get_adapter_status()
448 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in hpc_get_adapter_speed()
517 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in hpc_query_power_fault()
541 return shpc_write_cmd(slot, slot->hp_slot, slot_cmd); in hpc_set_attention_status()
547 shpc_write_cmd(slot, slot->hp_slot, SET_PWR_ON); in hpc_set_green_led_on()
552 shpc_write_cmd(slot, slot->hp_slot, SET_PWR_OFF); in hpc_set_green_led_off()
557 shpc_write_cmd(slot, slot->hp_slot, SET_PWR_BLINK); in hpc_set_green_led_blink()
604 retval = shpc_write_cmd(slot, slot->hp_slot, SET_SLOT_PWR); in hpc_power_on_slot()
616 retval = shpc_write_cmd(slot, slot->hp_slot, in hpc_slot_enable()
629 retval = shpc_write_cmd(slot, slot->hp_slot, in hpc_slot_disable()
776 int hp_slot; in shpc_isr() local
815 for (hp_slot = 0; hp_slot < ctrl->num_slots; hp_slot++) { in shpc_isr()
817 if (!(intr_loc & SLOT_INTR_PENDING(hp_slot))) in shpc_isr()
820 slot_reg = shpc_readl(ctrl, SLOT_REG(hp_slot)); in shpc_isr()
822 hp_slot, slot_reg); in shpc_isr()
825 shpchp_handle_switch_change(hp_slot, ctrl); in shpc_isr()
828 shpchp_handle_attention_button(hp_slot, ctrl); in shpc_isr()
831 shpchp_handle_presence_change(hp_slot, ctrl); in shpc_isr()
834 shpchp_handle_power_fault(hp_slot, ctrl); in shpc_isr()
838 shpc_writel(ctrl, SLOT_REG(hp_slot), slot_reg); in shpc_isr()
922 u8 hp_slot; in shpc_init() local
1026 for (hp_slot = 0; hp_slot < ctrl->num_slots; hp_slot++) { in shpc_init()
1027 slot_reg = shpc_readl(ctrl, SLOT_REG(hp_slot)); in shpc_init()
1029 hp_slot, slot_reg); in shpc_init()
1035 shpc_writel(ctrl, SLOT_REG(hp_slot), slot_reg); in shpc_init()
1070 for (hp_slot = 0; hp_slot < ctrl->num_slots; hp_slot++) { in shpc_init()
1071 slot_reg = shpc_readl(ctrl, SLOT_REG(hp_slot)); in shpc_init()
1073 hp_slot, slot_reg); in shpc_init()
1077 shpc_writel(ctrl, SLOT_REG(hp_slot), slot_reg); in shpc_init()