Lines Matching defs:slot_reg

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