Lines Matching refs:slot_reg
363 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in hpc_get_attention_status() local
364 u8 state = (slot_reg & ATN_LED_STATE_MASK) >> ATN_LED_STATE_SHIFT; in hpc_get_attention_status()
387 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in hpc_get_power_status() local
388 u8 state = (slot_reg & SLOT_STATE_MASK) >> SLOT_STATE_SHIFT; in hpc_get_power_status()
412 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in hpc_get_latch_status() local
414 *status = !!(slot_reg & MRL_SENSOR); /* 0 -> close; 1 -> open */ in hpc_get_latch_status()
422 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in hpc_get_adapter_status() local
423 u8 state = (slot_reg & PRSNT_MASK) >> PRSNT_SHIFT; in hpc_get_adapter_status()
443 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in hpc_get_adapter_speed() local
444 u8 m66_cap = !!(slot_reg & MHZ66_CAP); in hpc_get_adapter_speed()
453 pcix_cap = (slot_reg & PCIX_CAP_MASK_PI1) >> PCIX_CAP_SHIFT; in hpc_get_adapter_speed()
456 pcix_cap = (slot_reg & PCIX_CAP_MASK_PI2) >> PCIX_CAP_SHIFT; in hpc_get_adapter_speed()
463 __func__, slot_reg, pcix_cap, m66_cap); in hpc_get_adapter_speed()
495 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in hpc_query_power_fault() local
498 return !(slot_reg & POWER_FAULT); in hpc_query_power_fault()
541 u32 slot_reg, serr_int; in hpc_release_ctlr() local
547 slot_reg = shpc_readl(ctrl, SLOT_REG(i)); in hpc_release_ctlr()
548 slot_reg |= (PRSNT_CHANGE_INTR_MASK | ISO_PFAULT_INTR_MASK | in hpc_release_ctlr()
552 slot_reg &= ~SLOT_REG_RSVDZ_MASK; in hpc_release_ctlr()
553 shpc_writel(ctrl, SLOT_REG(i), slot_reg); in hpc_release_ctlr()
753 u32 serr_int, slot_reg, intr_loc, intr_loc2; in shpc_isr() local
798 slot_reg = shpc_readl(ctrl, SLOT_REG(hp_slot)); in shpc_isr()
800 hp_slot, slot_reg); in shpc_isr()
802 if (slot_reg & MRL_CHANGE_DETECTED) in shpc_isr()
805 if (slot_reg & BUTTON_PRESS_DETECTED) in shpc_isr()
808 if (slot_reg & PRSNT_CHANGE_DETECTED) in shpc_isr()
811 if (slot_reg & (ISO_PFAULT_DETECTED | CON_PFAULT_DETECTED)) in shpc_isr()
815 slot_reg &= ~SLOT_REG_RSVDZ_MASK; in shpc_isr()
816 shpc_writel(ctrl, SLOT_REG(hp_slot), slot_reg); in shpc_isr()
901 u32 tempdword, slot_reg, slot_config; in shpc_init() local
1004 slot_reg = shpc_readl(ctrl, SLOT_REG(hp_slot)); in shpc_init()
1006 hp_slot, slot_reg); in shpc_init()
1007 slot_reg |= (PRSNT_CHANGE_INTR_MASK | ISO_PFAULT_INTR_MASK | in shpc_init()
1011 slot_reg &= ~SLOT_REG_RSVDZ_MASK; in shpc_init()
1012 shpc_writel(ctrl, SLOT_REG(hp_slot), slot_reg); in shpc_init()
1048 slot_reg = shpc_readl(ctrl, SLOT_REG(hp_slot)); in shpc_init()
1050 hp_slot, slot_reg); in shpc_init()
1051 slot_reg &= ~(PRSNT_CHANGE_INTR_MASK | ISO_PFAULT_INTR_MASK | in shpc_init()
1054 shpc_writel(ctrl, SLOT_REG(hp_slot), slot_reg); in shpc_init()