Lines Matching refs:slot_reg

368 	u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot));  in hpc_get_attention_status()  local
369 u8 state = (slot_reg & ATN_LED_STATE_MASK) >> ATN_LED_STATE_SHIFT; in hpc_get_attention_status()
392 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in hpc_get_power_status() local
393 u8 state = (slot_reg & SLOT_STATE_MASK) >> SLOT_STATE_SHIFT; in hpc_get_power_status()
417 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in hpc_get_latch_status() local
419 *status = !!(slot_reg & MRL_SENSOR); /* 0 -> close; 1 -> open */ in hpc_get_latch_status()
427 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in hpc_get_adapter_status() local
428 u8 state = (slot_reg & PRSNT_MASK) >> PRSNT_SHIFT; in hpc_get_adapter_status()
448 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in hpc_get_adapter_speed() local
449 u8 m66_cap = !!(slot_reg & MHZ66_CAP); in hpc_get_adapter_speed()
458 pcix_cap = (slot_reg & PCIX_CAP_MASK_PI1) >> PCIX_CAP_SHIFT; in hpc_get_adapter_speed()
461 pcix_cap = (slot_reg & PCIX_CAP_MASK_PI2) >> PCIX_CAP_SHIFT; in hpc_get_adapter_speed()
468 __func__, slot_reg, pcix_cap, m66_cap); in hpc_get_adapter_speed()
517 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in hpc_query_power_fault() local
520 return !(slot_reg & POWER_FAULT); in hpc_query_power_fault()
563 u32 slot_reg, serr_int; in hpc_release_ctlr() local
569 slot_reg = shpc_readl(ctrl, SLOT_REG(i)); in hpc_release_ctlr()
570 slot_reg |= (PRSNT_CHANGE_INTR_MASK | ISO_PFAULT_INTR_MASK | in hpc_release_ctlr()
574 slot_reg &= ~SLOT_REG_RSVDZ_MASK; in hpc_release_ctlr()
575 shpc_writel(ctrl, SLOT_REG(i), slot_reg); in hpc_release_ctlr()
775 u32 serr_int, slot_reg, intr_loc, intr_loc2; in shpc_isr() local
820 slot_reg = shpc_readl(ctrl, SLOT_REG(hp_slot)); in shpc_isr()
822 hp_slot, slot_reg); in shpc_isr()
824 if (slot_reg & MRL_CHANGE_DETECTED) in shpc_isr()
827 if (slot_reg & BUTTON_PRESS_DETECTED) in shpc_isr()
830 if (slot_reg & PRSNT_CHANGE_DETECTED) in shpc_isr()
833 if (slot_reg & (ISO_PFAULT_DETECTED | CON_PFAULT_DETECTED)) in shpc_isr()
837 slot_reg &= ~SLOT_REG_RSVDZ_MASK; in shpc_isr()
838 shpc_writel(ctrl, SLOT_REG(hp_slot), slot_reg); in shpc_isr()
924 u32 tempdword, slot_reg, slot_config; in shpc_init() local
1027 slot_reg = shpc_readl(ctrl, SLOT_REG(hp_slot)); in shpc_init()
1029 hp_slot, slot_reg); in shpc_init()
1030 slot_reg |= (PRSNT_CHANGE_INTR_MASK | ISO_PFAULT_INTR_MASK | in shpc_init()
1034 slot_reg &= ~SLOT_REG_RSVDZ_MASK; in shpc_init()
1035 shpc_writel(ctrl, SLOT_REG(hp_slot), slot_reg); in shpc_init()
1071 slot_reg = shpc_readl(ctrl, SLOT_REG(hp_slot)); in shpc_init()
1073 hp_slot, slot_reg); in shpc_init()
1074 slot_reg &= ~(PRSNT_CHANGE_INTR_MASK | ISO_PFAULT_INTR_MASK | in shpc_init()
1077 shpc_writel(ctrl, SLOT_REG(hp_slot), slot_reg); in shpc_init()