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()
512 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in hpc_query_power_fault() local
515 return !(slot_reg & POWER_FAULT); in hpc_query_power_fault()
558 u32 slot_reg, serr_int; in hpc_release_ctlr() local
564 slot_reg = shpc_readl(ctrl, SLOT_REG(i)); in hpc_release_ctlr()
565 slot_reg |= (PRSNT_CHANGE_INTR_MASK | ISO_PFAULT_INTR_MASK | in hpc_release_ctlr()
569 slot_reg &= ~SLOT_REG_RSVDZ_MASK; in hpc_release_ctlr()
570 shpc_writel(ctrl, SLOT_REG(i), slot_reg); in hpc_release_ctlr()
770 u32 serr_int, slot_reg, intr_loc, intr_loc2; in shpc_isr() local
815 slot_reg = shpc_readl(ctrl, SLOT_REG(hp_slot)); in shpc_isr()
817 hp_slot, slot_reg); in shpc_isr()
819 if (slot_reg & MRL_CHANGE_DETECTED) in shpc_isr()
822 if (slot_reg & BUTTON_PRESS_DETECTED) in shpc_isr()
825 if (slot_reg & PRSNT_CHANGE_DETECTED) in shpc_isr()
828 if (slot_reg & (ISO_PFAULT_DETECTED | CON_PFAULT_DETECTED)) in shpc_isr()
832 slot_reg &= ~SLOT_REG_RSVDZ_MASK; in shpc_isr()
833 shpc_writel(ctrl, SLOT_REG(hp_slot), slot_reg); in shpc_isr()
919 u32 tempdword, slot_reg, slot_config; in shpc_init() local
1022 slot_reg = shpc_readl(ctrl, SLOT_REG(hp_slot)); in shpc_init()
1024 hp_slot, slot_reg); in shpc_init()
1025 slot_reg |= (PRSNT_CHANGE_INTR_MASK | ISO_PFAULT_INTR_MASK | in shpc_init()
1029 slot_reg &= ~SLOT_REG_RSVDZ_MASK; in shpc_init()
1030 shpc_writel(ctrl, SLOT_REG(hp_slot), slot_reg); in shpc_init()
1066 slot_reg = shpc_readl(ctrl, SLOT_REG(hp_slot)); in shpc_init()
1068 hp_slot, slot_reg); in shpc_init()
1069 slot_reg &= ~(PRSNT_CHANGE_INTR_MASK | ISO_PFAULT_INTR_MASK | in shpc_init()
1072 shpc_writel(ctrl, SLOT_REG(hp_slot), slot_reg); in shpc_init()