Lines Matching defs:limit
183 /* Leave the max instantaneous current limit (12:0) to default */
289 * Program PMSYNC_TPR_CONFIG PCH power limit values
304 * Program PMSYNC_TPR_CONFIG2 Extended PCH power limit values
561 msr_t limit;
597 /* Set long term power limit to TDP */
598 limit.lo = 0;
599 limit.lo |= tdp & PKG_POWER_LIMIT_MASK;
600 limit.lo |= PKG_POWER_LIMIT_EN;
601 limit.lo |= (power_limit_1_val & PKG_POWER_LIMIT_TIME_MASK) <<
604 /* Set short term power limit to 1.25 * TDP */
605 limit.hi = 0;
606 limit.hi |= ((tdp * 125) / 100) & PKG_POWER_LIMIT_MASK;
607 limit.hi |= PKG_POWER_LIMIT_EN;
608 /* Power limit 2 time is only programmable on server SKU */
610 msr_write(MSR_PKG_POWER_LIMIT, limit);
612 /* Set power limit values in MCHBAR as well */
613 writel(limit.lo, MCHBAR_REG(MCH_PKG_POWER_LIMIT_LO));
614 writel(limit.hi, MCHBAR_REG(MCH_PKG_POWER_LIMIT_HI));
616 /* Set DDR RAPL power limit by copying from MMIO to MSR */
624 limit.hi = 0;
625 limit.lo = msr.lo & 0xff;
626 msr_write(MSR_TURBO_ACTIVATION_RATIO, limit);