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()
512 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in hpc_query_power_fault()
536 return shpc_write_cmd(slot, slot->hp_slot, slot_cmd); in hpc_set_attention_status()
542 shpc_write_cmd(slot, slot->hp_slot, SET_PWR_ON); in hpc_set_green_led_on()
547 shpc_write_cmd(slot, slot->hp_slot, SET_PWR_OFF); in hpc_set_green_led_off()
552 shpc_write_cmd(slot, slot->hp_slot, SET_PWR_BLINK); in hpc_set_green_led_blink()
599 retval = shpc_write_cmd(slot, slot->hp_slot, SET_SLOT_PWR); in hpc_power_on_slot()
611 retval = shpc_write_cmd(slot, slot->hp_slot, in hpc_slot_enable()
624 retval = shpc_write_cmd(slot, slot->hp_slot, in hpc_slot_disable()
771 int hp_slot; in shpc_isr() local
810 for (hp_slot = 0; hp_slot < ctrl->num_slots; hp_slot++) { in shpc_isr()
812 if (!(intr_loc & SLOT_INTR_PENDING(hp_slot))) in shpc_isr()
815 slot_reg = shpc_readl(ctrl, SLOT_REG(hp_slot)); in shpc_isr()
817 hp_slot, slot_reg); in shpc_isr()
820 shpchp_handle_switch_change(hp_slot, ctrl); in shpc_isr()
823 shpchp_handle_attention_button(hp_slot, ctrl); in shpc_isr()
826 shpchp_handle_presence_change(hp_slot, ctrl); in shpc_isr()
829 shpchp_handle_power_fault(hp_slot, ctrl); in shpc_isr()
833 shpc_writel(ctrl, SLOT_REG(hp_slot), slot_reg); in shpc_isr()
917 u8 hp_slot; in shpc_init() local
1021 for (hp_slot = 0; hp_slot < ctrl->num_slots; hp_slot++) { in shpc_init()
1022 slot_reg = shpc_readl(ctrl, SLOT_REG(hp_slot)); in shpc_init()
1024 hp_slot, slot_reg); in shpc_init()
1030 shpc_writel(ctrl, SLOT_REG(hp_slot), slot_reg); in shpc_init()
1065 for (hp_slot = 0; hp_slot < ctrl->num_slots; hp_slot++) { in shpc_init()
1066 slot_reg = shpc_readl(ctrl, SLOT_REG(hp_slot)); in shpc_init()
1068 hp_slot, slot_reg); in shpc_init()
1072 shpc_writel(ctrl, SLOT_REG(hp_slot), slot_reg); in shpc_init()