Lines Matching refs:slot_reg
362 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in shpchp_get_attention_status() local
363 u8 state = (slot_reg & ATN_LED_STATE_MASK) >> ATN_LED_STATE_SHIFT; in shpchp_get_attention_status()
386 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in shpchp_get_power_status() local
387 u8 state = (slot_reg & SLOT_STATE_MASK) >> SLOT_STATE_SHIFT; in shpchp_get_power_status()
411 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in shpchp_get_latch_status() local
413 *status = !!(slot_reg & MRL_SENSOR); /* 0 -> close; 1 -> open */ in shpchp_get_latch_status()
421 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in shpchp_get_adapter_status() local
422 u8 state = (slot_reg & PRSNT_MASK) >> PRSNT_SHIFT; in shpchp_get_adapter_status()
442 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in shpchp_get_adapter_speed() local
443 u8 m66_cap = !!(slot_reg & MHZ66_CAP); in shpchp_get_adapter_speed()
452 pcix_cap = (slot_reg & PCIX_CAP_MASK_PI1) >> PCIX_CAP_SHIFT; in shpchp_get_adapter_speed()
455 pcix_cap = (slot_reg & PCIX_CAP_MASK_PI2) >> PCIX_CAP_SHIFT; in shpchp_get_adapter_speed()
462 __func__, slot_reg, pcix_cap, m66_cap); in shpchp_get_adapter_speed()
494 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in shpchp_query_power_fault() local
497 return !(slot_reg & POWER_FAULT); in shpchp_query_power_fault()
540 u32 slot_reg, serr_int; in shpchp_release_ctlr() local
546 slot_reg = shpc_readl(ctrl, SLOT_REG(i)); in shpchp_release_ctlr()
547 slot_reg |= (PRSNT_CHANGE_INTR_MASK | ISO_PFAULT_INTR_MASK | in shpchp_release_ctlr()
551 slot_reg &= ~SLOT_REG_RSVDZ_MASK; in shpchp_release_ctlr()
552 shpc_writel(ctrl, SLOT_REG(i), slot_reg); in shpchp_release_ctlr()
752 u32 serr_int, slot_reg, intr_loc, intr_loc2; in shpc_isr() local
797 slot_reg = shpc_readl(ctrl, SLOT_REG(hp_slot)); in shpc_isr()
799 hp_slot, slot_reg); in shpc_isr()
801 if (slot_reg & MRL_CHANGE_DETECTED) in shpc_isr()
804 if (slot_reg & BUTTON_PRESS_DETECTED) in shpc_isr()
807 if (slot_reg & PRSNT_CHANGE_DETECTED) in shpc_isr()
810 if (slot_reg & (ISO_PFAULT_DETECTED | CON_PFAULT_DETECTED)) in shpc_isr()
814 slot_reg &= ~SLOT_REG_RSVDZ_MASK; in shpc_isr()
815 shpc_writel(ctrl, SLOT_REG(hp_slot), slot_reg); in shpc_isr()
878 u32 tempdword, slot_reg, slot_config; in shpc_init() local
979 slot_reg = shpc_readl(ctrl, SLOT_REG(hp_slot)); in shpc_init()
981 hp_slot, slot_reg); in shpc_init()
982 slot_reg |= (PRSNT_CHANGE_INTR_MASK | ISO_PFAULT_INTR_MASK | in shpc_init()
986 slot_reg &= ~SLOT_REG_RSVDZ_MASK; in shpc_init()
987 shpc_writel(ctrl, SLOT_REG(hp_slot), slot_reg); in shpc_init()
1023 slot_reg = shpc_readl(ctrl, SLOT_REG(hp_slot)); in shpc_init()
1025 hp_slot, slot_reg); in shpc_init()
1026 slot_reg &= ~(PRSNT_CHANGE_INTR_MASK | ISO_PFAULT_INTR_MASK | in shpc_init()
1029 shpc_writel(ctrl, SLOT_REG(hp_slot), slot_reg); in shpc_init()