Lines Matching refs:slot_reg

385 	u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot));  in hpc_get_attention_status()  local
386 u8 state = (slot_reg & ATN_LED_STATE_MASK) >> ATN_LED_STATE_SHIFT; in hpc_get_attention_status()
409 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in hpc_get_power_status() local
410 u8 state = (slot_reg & SLOT_STATE_MASK) >> SLOT_STATE_SHIFT; in hpc_get_power_status()
434 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in hpc_get_latch_status() local
436 *status = !!(slot_reg & MRL_SENSOR); /* 0 -> close; 1 -> open */ in hpc_get_latch_status()
444 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in hpc_get_adapter_status() local
445 u8 state = (slot_reg & PRSNT_MASK) >> PRSNT_SHIFT; in hpc_get_adapter_status()
465 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in hpc_get_adapter_speed() local
466 u8 m66_cap = !!(slot_reg & MHZ66_CAP); in hpc_get_adapter_speed()
475 pcix_cap = (slot_reg & PCIX_CAP_MASK_PI1) >> PCIX_CAP_SHIFT; in hpc_get_adapter_speed()
478 pcix_cap = (slot_reg & PCIX_CAP_MASK_PI2) >> PCIX_CAP_SHIFT; in hpc_get_adapter_speed()
485 __func__, slot_reg, pcix_cap, m66_cap); in hpc_get_adapter_speed()
534 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in hpc_query_power_fault() local
537 return !(slot_reg & POWER_FAULT); in hpc_query_power_fault()
580 u32 slot_reg, serr_int; in hpc_release_ctlr() local
586 slot_reg = shpc_readl(ctrl, SLOT_REG(i)); in hpc_release_ctlr()
587 slot_reg |= (PRSNT_CHANGE_INTR_MASK | ISO_PFAULT_INTR_MASK | in hpc_release_ctlr()
591 slot_reg &= ~SLOT_REG_RSVDZ_MASK; in hpc_release_ctlr()
592 shpc_writel(ctrl, SLOT_REG(i), slot_reg); in hpc_release_ctlr()
792 u32 serr_int, slot_reg, intr_loc, intr_loc2; in shpc_isr() local
837 slot_reg = shpc_readl(ctrl, SLOT_REG(hp_slot)); in shpc_isr()
839 hp_slot, slot_reg); in shpc_isr()
841 if (slot_reg & MRL_CHANGE_DETECTED) in shpc_isr()
844 if (slot_reg & BUTTON_PRESS_DETECTED) in shpc_isr()
847 if (slot_reg & PRSNT_CHANGE_DETECTED) in shpc_isr()
850 if (slot_reg & (ISO_PFAULT_DETECTED | CON_PFAULT_DETECTED)) in shpc_isr()
854 slot_reg &= ~SLOT_REG_RSVDZ_MASK; in shpc_isr()
855 shpc_writel(ctrl, SLOT_REG(hp_slot), slot_reg); in shpc_isr()
941 u32 tempdword, slot_reg, slot_config; in shpc_init() local
1044 slot_reg = shpc_readl(ctrl, SLOT_REG(hp_slot)); in shpc_init()
1046 hp_slot, slot_reg); in shpc_init()
1047 slot_reg |= (PRSNT_CHANGE_INTR_MASK | ISO_PFAULT_INTR_MASK | in shpc_init()
1051 slot_reg &= ~SLOT_REG_RSVDZ_MASK; in shpc_init()
1052 shpc_writel(ctrl, SLOT_REG(hp_slot), slot_reg); in shpc_init()
1086 slot_reg = shpc_readl(ctrl, SLOT_REG(hp_slot)); in shpc_init()
1088 hp_slot, slot_reg); in shpc_init()
1089 slot_reg &= ~(PRSNT_CHANGE_INTR_MASK | ISO_PFAULT_INTR_MASK | in shpc_init()
1092 shpc_writel(ctrl, SLOT_REG(hp_slot), slot_reg); in shpc_init()