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