ips 527 drivers/gpu/drm/i915/gvt/gtt.c struct intel_gvt_gtt_entry *entry, bool ips) ips 536 drivers/gpu/drm/i915/gvt/gtt.c if (ips) ips 1050 drivers/gpu/drm/i915/gvt/gtt.c u32 ips = vgpu_vreg_t(vgpu, GEN8_GAMW_ECO_DEV_RW_IA) & ips 1053 drivers/gpu/drm/i915/gvt/gtt.c return ips == GAMW_ECO_ENABLE_64K_IPS_FIELD; ips 1068 drivers/gpu/drm/i915/gvt/gtt.c bool ips = false; ips 1074 drivers/gpu/drm/i915/gvt/gtt.c ips = vgpu_ips_enabled(vgpu) && ops->test_ips(we); ips 1080 drivers/gpu/drm/i915/gvt/gtt.c if (ips != spt->guest_page.pde_ips) { ips 1081 drivers/gpu/drm/i915/gvt/gtt.c spt->guest_page.pde_ips = ips; ips 1099 drivers/gpu/drm/i915/gvt/gtt.c spt = ppgtt_alloc_spt_gfn(vgpu, type, ops->get_pfn(we), ips); ips 218 drivers/gpu/drm/i915/gvt/handlers.c u32 ips = (*(u32 *)p_data) & GAMW_ECO_ENABLE_64K_IPS_FIELD; ips 221 drivers/gpu/drm/i915/gvt/handlers.c if (ips == GAMW_ECO_ENABLE_64K_IPS_FIELD) ips 223 drivers/gpu/drm/i915/gvt/handlers.c else if (!ips) ips 231 drivers/gpu/drm/i915/gvt/handlers.c ips); ips 1507 drivers/gpu/drm/i915/i915_drv.h struct intel_ilk_power_mgmt ips; ips 1087 drivers/gpu/drm/i915/i915_irq.c new_delay = dev_priv->ips.cur_delay; ips 1097 drivers/gpu/drm/i915/i915_irq.c if (dev_priv->ips.cur_delay != dev_priv->ips.max_delay) ips 1098 drivers/gpu/drm/i915/i915_irq.c new_delay = dev_priv->ips.cur_delay - 1; ips 1099 drivers/gpu/drm/i915/i915_irq.c if (new_delay < dev_priv->ips.max_delay) ips 1100 drivers/gpu/drm/i915/i915_irq.c new_delay = dev_priv->ips.max_delay; ips 1102 drivers/gpu/drm/i915/i915_irq.c if (dev_priv->ips.cur_delay != dev_priv->ips.min_delay) ips 1103 drivers/gpu/drm/i915/i915_irq.c new_delay = dev_priv->ips.cur_delay + 1; ips 1104 drivers/gpu/drm/i915/i915_irq.c if (new_delay > dev_priv->ips.min_delay) ips 1105 drivers/gpu/drm/i915/i915_irq.c new_delay = dev_priv->ips.min_delay; ips 1109 drivers/gpu/drm/i915/i915_irq.c dev_priv->ips.cur_delay = new_delay; ips 227 drivers/gpu/drm/i915/intel_pm.c dev_priv->ips.r_t = dev_priv->mem_freq; ips 259 drivers/gpu/drm/i915/intel_pm.c dev_priv->ips.c_m = 0; ips 261 drivers/gpu/drm/i915/intel_pm.c dev_priv->ips.c_m = 1; ips 263 drivers/gpu/drm/i915/intel_pm.c dev_priv->ips.c_m = 2; ips 6462 drivers/gpu/drm/i915/intel_pm.c dev_priv->ips.fmax = fmax; /* IPS callback will increase this */ ips 6463 drivers/gpu/drm/i915/intel_pm.c dev_priv->ips.fstart = fstart; ips 6465 drivers/gpu/drm/i915/intel_pm.c dev_priv->ips.max_delay = fstart; ips 6466 drivers/gpu/drm/i915/intel_pm.c dev_priv->ips.min_delay = fmin; ips 6467 drivers/gpu/drm/i915/intel_pm.c dev_priv->ips.cur_delay = fstart; ips 6493 drivers/gpu/drm/i915/intel_pm.c dev_priv->ips.last_count1 = ips 6497 drivers/gpu/drm/i915/intel_pm.c dev_priv->ips.last_time1 = jiffies_to_msecs(jiffies); ips 6498 drivers/gpu/drm/i915/intel_pm.c dev_priv->ips.last_count2 = intel_uncore_read(uncore, GFXEC); ips 6499 drivers/gpu/drm/i915/intel_pm.c dev_priv->ips.last_time2 = ktime_get_raw_ns(); ips 6528 drivers/gpu/drm/i915/intel_pm.c ironlake_set_drps(i915, i915->ips.fstart); ips 8114 drivers/gpu/drm/i915/intel_pm.c diff1 = now - dev_priv->ips.last_time1; ips 8122 drivers/gpu/drm/i915/intel_pm.c return dev_priv->ips.chipset_power; ips 8131 drivers/gpu/drm/i915/intel_pm.c if (total_count < dev_priv->ips.last_count1) { ips 8132 drivers/gpu/drm/i915/intel_pm.c diff = ~0UL - dev_priv->ips.last_count1; ips 8135 drivers/gpu/drm/i915/intel_pm.c diff = total_count - dev_priv->ips.last_count1; ips 8139 drivers/gpu/drm/i915/intel_pm.c if (cparams[i].i == dev_priv->ips.c_m && ips 8140 drivers/gpu/drm/i915/intel_pm.c cparams[i].t == dev_priv->ips.r_t) { ips 8151 drivers/gpu/drm/i915/intel_pm.c dev_priv->ips.last_count1 = total_count; ips 8152 drivers/gpu/drm/i915/intel_pm.c dev_priv->ips.last_time1 = now; ips 8154 drivers/gpu/drm/i915/intel_pm.c dev_priv->ips.chipset_power = ret; ips 8221 drivers/gpu/drm/i915/intel_pm.c diffms = now - dev_priv->ips.last_time2; ips 8230 drivers/gpu/drm/i915/intel_pm.c if (count < dev_priv->ips.last_count2) { ips 8231 drivers/gpu/drm/i915/intel_pm.c diff = ~0UL - dev_priv->ips.last_count2; ips 8234 drivers/gpu/drm/i915/intel_pm.c diff = count - dev_priv->ips.last_count2; ips 8237 drivers/gpu/drm/i915/intel_pm.c dev_priv->ips.last_count2 = count; ips 8238 drivers/gpu/drm/i915/intel_pm.c dev_priv->ips.last_time2 = now; ips 8243 drivers/gpu/drm/i915/intel_pm.c dev_priv->ips.gfx_power = diff; ips 8287 drivers/gpu/drm/i915/intel_pm.c corr2 = (corr * dev_priv->ips.corr); ips 8294 drivers/gpu/drm/i915/intel_pm.c return dev_priv->ips.gfx_power + state2; ips 8372 drivers/gpu/drm/i915/intel_pm.c if (i915->ips.max_delay > i915->ips.fmax) ips 8373 drivers/gpu/drm/i915/intel_pm.c i915->ips.max_delay--; ips 8396 drivers/gpu/drm/i915/intel_pm.c if (i915->ips.max_delay < i915->ips.min_delay) ips 8397 drivers/gpu/drm/i915/intel_pm.c i915->ips.max_delay++; ips 8442 drivers/gpu/drm/i915/intel_pm.c i915->ips.max_delay = i915->ips.fstart; ips 8443 drivers/gpu/drm/i915/intel_pm.c ret = ironlake_set_drps(i915, i915->ips.fstart); ips 8552 drivers/gpu/drm/i915/intel_pm.c dev_priv->ips.corr = (lcfuse & LCFUSE_HIV_MASK); ips 233 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.h struct offload_ip_info ips; ips 2134 drivers/net/wireless/ath/ath6kl/cfg80211.c __be32 ips[MAX_IP_ADDRS]; ips 2198 drivers/net/wireless/ath/ath6kl/cfg80211.c memset(&ips, 0, sizeof(ips)); ips 2202 drivers/net/wireless/ath/ath6kl/cfg80211.c ips[index] = ifa->ifa_local; ips 2212 drivers/net/wireless/ath/ath6kl/cfg80211.c ret = ath6kl_wmi_set_ip_cmd(ar->wmi, vif->fw_vif_idx, ips[0], ips[1]); ips 2710 drivers/net/wireless/ath/ath6kl/wmi.c cmd->ips[0] = ips0; ips 2711 drivers/net/wireless/ath/ath6kl/wmi.c cmd->ips[1] = ips1; ips 2087 drivers/net/wireless/ath/ath6kl/wmi.h __be32 ips[MAX_IP_ADDRS]; ips 3257 drivers/net/wireless/marvell/mwifiex/cfg80211.c __be32 ips[MWIFIEX_MAX_SUPPORTED_IPADDR]; ips 3264 drivers/net/wireless/marvell/mwifiex/cfg80211.c memset(ips, 0, sizeof(ips)); ips 3273 drivers/net/wireless/marvell/mwifiex/cfg80211.c ips[i] = ifa->ifa_local; ips 3279 drivers/net/wireless/marvell/mwifiex/cfg80211.c if (!ips[i]) ips 3283 drivers/net/wireless/marvell/mwifiex/cfg80211.c (u8 *)&ips[i], sizeof(ips[i])); ips 3286 drivers/net/wireless/marvell/mwifiex/cfg80211.c sizeof(ips[i]); ips 368 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/sw.c module_param_named(ips, rtl88ee_mod_params.inactiveps, bool, 0444); ips 376 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/sw.c MODULE_PARM_DESC(ips, "Set to 0 to not use link power save (default 1)\n"); ips 353 drivers/net/wireless/realtek/rtlwifi/rtl8192ce/sw.c module_param_named(ips, rtl92ce_mod_params.inactiveps, bool, 0444); ips 358 drivers/net/wireless/realtek/rtlwifi/rtl8192ce/sw.c MODULE_PARM_DESC(ips, "Set to 0 to not use link power save (default 1)\n"); ips 350 drivers/net/wireless/realtek/rtlwifi/rtl8192de/sw.c module_param_named(ips, rtl92de_mod_params.inactiveps, bool, 0444); ips 356 drivers/net/wireless/realtek/rtlwifi/rtl8192de/sw.c MODULE_PARM_DESC(ips, "Set to 0 to not use link power save (default 1)\n"); ips 355 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/sw.c module_param_named(ips, rtl92ee_mod_params.inactiveps, bool, 0444); ips 364 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/sw.c MODULE_PARM_DESC(ips, "Set to 0 to not use link power save (default 1)\n"); ips 400 drivers/net/wireless/realtek/rtlwifi/rtl8192se/sw.c module_param_named(ips, rtl92se_mod_params.inactiveps, bool, 0444); ips 405 drivers/net/wireless/realtek/rtlwifi/rtl8192se/sw.c MODULE_PARM_DESC(ips, "Set to 0 to not use link power save (default 1)\n"); ips 363 drivers/net/wireless/realtek/rtlwifi/rtl8723ae/sw.c module_param_named(ips, rtl8723e_mod_params.inactiveps, bool, 0444); ips 371 drivers/net/wireless/realtek/rtlwifi/rtl8723ae/sw.c MODULE_PARM_DESC(ips, "Set to 0 to not use link power save (default 1)\n"); ips 369 drivers/net/wireless/realtek/rtlwifi/rtl8723be/sw.c module_param_named(ips, rtl8723be_mod_params.inactiveps, bool, 0444); ips 378 drivers/net/wireless/realtek/rtlwifi/rtl8723be/sw.c MODULE_PARM_DESC(ips, "Set to 0 to not use link power save (default 1)\n"); ips 419 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/sw.c module_param_named(ips, rtl8821ae_mod_params.inactiveps, bool, 0444); ips 428 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/sw.c MODULE_PARM_DESC(ips, "Set to 0 to not use link power save (default 1)\n"); ips 228 drivers/platform/x86/intel_ips.c #define thm_readb(off) readb(ips->regmap + (off)) ips 229 drivers/platform/x86/intel_ips.c #define thm_readw(off) readw(ips->regmap + (off)) ips 230 drivers/platform/x86/intel_ips.c #define thm_readl(off) readl(ips->regmap + (off)) ips 231 drivers/platform/x86/intel_ips.c #define thm_readq(off) readq(ips->regmap + (off)) ips 233 drivers/platform/x86/intel_ips.c #define thm_writeb(off, val) writeb((val), ips->regmap + (off)) ips 234 drivers/platform/x86/intel_ips.c #define thm_writew(off, val) writew((val), ips->regmap + (off)) ips 235 drivers/platform/x86/intel_ips.c #define thm_writel(off, val) writel((val), ips->regmap + (off)) ips 335 drivers/platform/x86/intel_ips.c ips_gpu_turbo_enabled(struct ips_driver *ips); ips 346 drivers/platform/x86/intel_ips.c static bool ips_cpu_busy(struct ips_driver *ips) ips 364 drivers/platform/x86/intel_ips.c static void ips_cpu_raise(struct ips_driver *ips) ips 369 drivers/platform/x86/intel_ips.c if (!ips->cpu_turbo_enabled) ips 378 drivers/platform/x86/intel_ips.c if (((new_tdp_limit * 10) / 8) > ips->core_power_limit) ips 402 drivers/platform/x86/intel_ips.c static void ips_cpu_lower(struct ips_driver *ips) ips 413 drivers/platform/x86/intel_ips.c if (new_limit < (ips->orig_turbo_limit & TURBO_TDP_MASK)) ips 414 drivers/platform/x86/intel_ips.c new_limit = ips->orig_turbo_limit & TURBO_TDP_MASK; ips 453 drivers/platform/x86/intel_ips.c static void ips_enable_cpu_turbo(struct ips_driver *ips) ips 456 drivers/platform/x86/intel_ips.c if (ips->__cpu_turbo_on) ips 459 drivers/platform/x86/intel_ips.c if (ips->turbo_toggle_allowed) ips 460 drivers/platform/x86/intel_ips.c on_each_cpu(do_enable_cpu_turbo, ips, 1); ips 462 drivers/platform/x86/intel_ips.c ips->__cpu_turbo_on = true; ips 491 drivers/platform/x86/intel_ips.c static void ips_disable_cpu_turbo(struct ips_driver *ips) ips 494 drivers/platform/x86/intel_ips.c if (!ips->__cpu_turbo_on) ips 497 drivers/platform/x86/intel_ips.c if (ips->turbo_toggle_allowed) ips 498 drivers/platform/x86/intel_ips.c on_each_cpu(do_disable_cpu_turbo, ips, 1); ips 500 drivers/platform/x86/intel_ips.c ips->__cpu_turbo_on = false; ips 513 drivers/platform/x86/intel_ips.c static bool ips_gpu_busy(struct ips_driver *ips) ips 515 drivers/platform/x86/intel_ips.c if (!ips_gpu_turbo_enabled(ips)) ips 518 drivers/platform/x86/intel_ips.c return ips->gpu_busy(); ips 528 drivers/platform/x86/intel_ips.c static void ips_gpu_raise(struct ips_driver *ips) ips 530 drivers/platform/x86/intel_ips.c if (!ips_gpu_turbo_enabled(ips)) ips 533 drivers/platform/x86/intel_ips.c if (!ips->gpu_raise()) ips 534 drivers/platform/x86/intel_ips.c ips->gpu_turbo_enabled = false; ips 545 drivers/platform/x86/intel_ips.c static void ips_gpu_lower(struct ips_driver *ips) ips 547 drivers/platform/x86/intel_ips.c if (!ips_gpu_turbo_enabled(ips)) ips 550 drivers/platform/x86/intel_ips.c if (!ips->gpu_lower()) ips 551 drivers/platform/x86/intel_ips.c ips->gpu_turbo_enabled = false; ips 563 drivers/platform/x86/intel_ips.c static void ips_enable_gpu_turbo(struct ips_driver *ips) ips 565 drivers/platform/x86/intel_ips.c if (ips->__gpu_turbo_on) ips 567 drivers/platform/x86/intel_ips.c ips->__gpu_turbo_on = true; ips 576 drivers/platform/x86/intel_ips.c static void ips_disable_gpu_turbo(struct ips_driver *ips) ips 579 drivers/platform/x86/intel_ips.c if (!ips->__gpu_turbo_on) ips 582 drivers/platform/x86/intel_ips.c if (!ips->gpu_turbo_disable()) ips 583 drivers/platform/x86/intel_ips.c dev_err(ips->dev, "failed to disable graphics turbo\n"); ips 585 drivers/platform/x86/intel_ips.c ips->__gpu_turbo_on = false; ips 594 drivers/platform/x86/intel_ips.c static bool mcp_exceeded(struct ips_driver *ips) ips 601 drivers/platform/x86/intel_ips.c spin_lock_irqsave(&ips->turbo_status_lock, flags); ips 603 drivers/platform/x86/intel_ips.c temp_limit = ips->mcp_temp_limit * 100; ips 604 drivers/platform/x86/intel_ips.c if (ips->mcp_avg_temp > temp_limit) ips 607 drivers/platform/x86/intel_ips.c avg_power = ips->cpu_avg_power + ips->mch_avg_power; ips 608 drivers/platform/x86/intel_ips.c if (avg_power > ips->mcp_power_limit) ips 611 drivers/platform/x86/intel_ips.c spin_unlock_irqrestore(&ips->turbo_status_lock, flags); ips 623 drivers/platform/x86/intel_ips.c static bool cpu_exceeded(struct ips_driver *ips, int cpu) ips 629 drivers/platform/x86/intel_ips.c spin_lock_irqsave(&ips->turbo_status_lock, flags); ips 630 drivers/platform/x86/intel_ips.c avg = cpu ? ips->ctv2_avg_temp : ips->ctv1_avg_temp; ips 631 drivers/platform/x86/intel_ips.c if (avg > (ips->limits->core_temp_limit * 100)) ips 633 drivers/platform/x86/intel_ips.c if (ips->cpu_avg_power > ips->core_power_limit * 100) ips 635 drivers/platform/x86/intel_ips.c spin_unlock_irqrestore(&ips->turbo_status_lock, flags); ips 638 drivers/platform/x86/intel_ips.c dev_info(ips->dev, "CPU power or thermal limit exceeded\n"); ips 649 drivers/platform/x86/intel_ips.c static bool mch_exceeded(struct ips_driver *ips) ips 654 drivers/platform/x86/intel_ips.c spin_lock_irqsave(&ips->turbo_status_lock, flags); ips 655 drivers/platform/x86/intel_ips.c if (ips->mch_avg_temp > (ips->limits->mch_temp_limit * 100)) ips 657 drivers/platform/x86/intel_ips.c if (ips->mch_avg_power > ips->mch_power_limit) ips 659 drivers/platform/x86/intel_ips.c spin_unlock_irqrestore(&ips->turbo_status_lock, flags); ips 672 drivers/platform/x86/intel_ips.c static void verify_limits(struct ips_driver *ips) ips 674 drivers/platform/x86/intel_ips.c if (ips->mcp_power_limit < ips->limits->mcp_power_limit || ips 675 drivers/platform/x86/intel_ips.c ips->mcp_power_limit > 35000) ips 676 drivers/platform/x86/intel_ips.c ips->mcp_power_limit = ips->limits->mcp_power_limit; ips 678 drivers/platform/x86/intel_ips.c if (ips->mcp_temp_limit < ips->limits->core_temp_limit || ips 679 drivers/platform/x86/intel_ips.c ips->mcp_temp_limit < ips->limits->mch_temp_limit || ips 680 drivers/platform/x86/intel_ips.c ips->mcp_temp_limit > 150) ips 681 drivers/platform/x86/intel_ips.c ips->mcp_temp_limit = min(ips->limits->core_temp_limit, ips 682 drivers/platform/x86/intel_ips.c ips->limits->mch_temp_limit); ips 698 drivers/platform/x86/intel_ips.c static void update_turbo_limits(struct ips_driver *ips) ips 702 drivers/platform/x86/intel_ips.c ips->cpu_turbo_enabled = !(hts & HTS_PCTD_DIS); ips 707 drivers/platform/x86/intel_ips.c ips->cpu_turbo_enabled = false; ips 709 drivers/platform/x86/intel_ips.c if (ips->gpu_busy) ips 710 drivers/platform/x86/intel_ips.c ips->gpu_turbo_enabled = !(hts & HTS_GTD_DIS); ips 712 drivers/platform/x86/intel_ips.c ips->core_power_limit = thm_readw(THM_MPCPC); ips 713 drivers/platform/x86/intel_ips.c ips->mch_power_limit = thm_readw(THM_MMGPC); ips 714 drivers/platform/x86/intel_ips.c ips->mcp_temp_limit = thm_readw(THM_PTL); ips 715 drivers/platform/x86/intel_ips.c ips->mcp_power_limit = thm_readw(THM_MPPC); ips 717 drivers/platform/x86/intel_ips.c verify_limits(ips); ips 754 drivers/platform/x86/intel_ips.c struct ips_driver *ips = data; ips 757 drivers/platform/x86/intel_ips.c dev_dbg(ips->dev, "starting ips-adjust thread\n"); ips 764 drivers/platform/x86/intel_ips.c bool cpu_busy = ips_cpu_busy(ips); ips 765 drivers/platform/x86/intel_ips.c bool gpu_busy = ips_gpu_busy(ips); ips 767 drivers/platform/x86/intel_ips.c spin_lock_irqsave(&ips->turbo_status_lock, flags); ips 768 drivers/platform/x86/intel_ips.c if (ips->poll_turbo_status) ips 769 drivers/platform/x86/intel_ips.c update_turbo_limits(ips); ips 770 drivers/platform/x86/intel_ips.c spin_unlock_irqrestore(&ips->turbo_status_lock, flags); ips 773 drivers/platform/x86/intel_ips.c if (ips->cpu_turbo_enabled) ips 774 drivers/platform/x86/intel_ips.c ips_enable_cpu_turbo(ips); ips 776 drivers/platform/x86/intel_ips.c ips_disable_cpu_turbo(ips); ips 778 drivers/platform/x86/intel_ips.c if (ips->gpu_turbo_enabled) ips 779 drivers/platform/x86/intel_ips.c ips_enable_gpu_turbo(ips); ips 781 drivers/platform/x86/intel_ips.c ips_disable_gpu_turbo(ips); ips 784 drivers/platform/x86/intel_ips.c if (mcp_exceeded(ips)) { ips 785 drivers/platform/x86/intel_ips.c ips_cpu_lower(ips); ips 786 drivers/platform/x86/intel_ips.c ips_gpu_lower(ips); ips 790 drivers/platform/x86/intel_ips.c if (!cpu_exceeded(ips, 0) && cpu_busy) ips 791 drivers/platform/x86/intel_ips.c ips_cpu_raise(ips); ips 793 drivers/platform/x86/intel_ips.c ips_cpu_lower(ips); ips 795 drivers/platform/x86/intel_ips.c if (!mch_exceeded(ips) && gpu_busy) ips 796 drivers/platform/x86/intel_ips.c ips_gpu_raise(ips); ips 798 drivers/platform/x86/intel_ips.c ips_gpu_lower(ips); ips 804 drivers/platform/x86/intel_ips.c dev_dbg(ips->dev, "ips-adjust thread stopped\n"); ips 814 drivers/platform/x86/intel_ips.c static u16 calc_avg_temp(struct ips_driver *ips, u16 *array) ips 830 drivers/platform/x86/intel_ips.c static u16 read_mgtv(struct ips_driver *ips) ips 848 drivers/platform/x86/intel_ips.c static u16 read_ptv(struct ips_driver *ips) ips 857 drivers/platform/x86/intel_ips.c static u16 read_ctv(struct ips_driver *ips, int cpu) ips 871 drivers/platform/x86/intel_ips.c static u32 get_cpu_power(struct ips_driver *ips, u32 *last, int period) ips 912 drivers/platform/x86/intel_ips.c static u32 calc_avg_power(struct ips_driver *ips, u32 *array) ips 929 drivers/platform/x86/intel_ips.c struct ips_driver *ips = from_timer(ips, t, timer); ips 930 drivers/platform/x86/intel_ips.c wake_up_process(ips->monitor); ips 946 drivers/platform/x86/intel_ips.c struct ips_driver *ips = data; ips 961 drivers/platform/x86/intel_ips.c dev_err(ips->dev, ips 984 drivers/platform/x86/intel_ips.c mcp_samples[i] = read_ptv(ips); ips 986 drivers/platform/x86/intel_ips.c val = read_ctv(ips, 0); ips 989 drivers/platform/x86/intel_ips.c val = read_ctv(ips, 1); ips 992 drivers/platform/x86/intel_ips.c val = read_mgtv(ips); ips 995 drivers/platform/x86/intel_ips.c cpu_power = get_cpu_power(ips, &old_cpu_power, ips 999 drivers/platform/x86/intel_ips.c if (ips->read_mch_val) { ips 1000 drivers/platform/x86/intel_ips.c mchp = ips->read_mch_val(); ips 1009 drivers/platform/x86/intel_ips.c ips->mcp_avg_temp = calc_avg_temp(ips, mcp_samples); ips 1010 drivers/platform/x86/intel_ips.c ips->ctv1_avg_temp = calc_avg_temp(ips, ctv1_samples); ips 1011 drivers/platform/x86/intel_ips.c ips->ctv2_avg_temp = calc_avg_temp(ips, ctv2_samples); ips 1012 drivers/platform/x86/intel_ips.c ips->mch_avg_temp = calc_avg_temp(ips, mch_samples); ips 1013 drivers/platform/x86/intel_ips.c ips->cpu_avg_power = calc_avg_power(ips, cpu_samples); ips 1014 drivers/platform/x86/intel_ips.c ips->mch_avg_power = calc_avg_power(ips, mchp_samples); ips 1023 drivers/platform/x86/intel_ips.c wake_up_process(ips->adjust); ips 1034 drivers/platform/x86/intel_ips.c timer_setup(&ips->timer, monitor_timeout, TIMER_DEFERRABLE); ips 1040 drivers/platform/x86/intel_ips.c val = read_ptv(ips); ips 1041 drivers/platform/x86/intel_ips.c ips->mcp_avg_temp = update_average_temp(ips->mcp_avg_temp, val); ips 1044 drivers/platform/x86/intel_ips.c val = read_ctv(ips, 0); ips 1045 drivers/platform/x86/intel_ips.c ips->ctv1_avg_temp = ips 1046 drivers/platform/x86/intel_ips.c update_average_temp(ips->ctv1_avg_temp, val); ips 1048 drivers/platform/x86/intel_ips.c cpu_val = get_cpu_power(ips, &old_cpu_power, ips 1050 drivers/platform/x86/intel_ips.c ips->cpu_avg_power = ips 1051 drivers/platform/x86/intel_ips.c update_average_power(ips->cpu_avg_power, cpu_val); ips 1053 drivers/platform/x86/intel_ips.c if (ips->second_cpu) { ips 1055 drivers/platform/x86/intel_ips.c val = read_ctv(ips, 1); ips 1056 drivers/platform/x86/intel_ips.c ips->ctv2_avg_temp = ips 1057 drivers/platform/x86/intel_ips.c update_average_temp(ips->ctv2_avg_temp, val); ips 1061 drivers/platform/x86/intel_ips.c val = read_mgtv(ips); ips 1062 drivers/platform/x86/intel_ips.c ips->mch_avg_temp = update_average_temp(ips->mch_avg_temp, val); ips 1064 drivers/platform/x86/intel_ips.c if (ips->read_mch_val) { ips 1065 drivers/platform/x86/intel_ips.c mch_val = ips->read_mch_val(); ips 1066 drivers/platform/x86/intel_ips.c ips->mch_avg_power = ips 1067 drivers/platform/x86/intel_ips.c update_average_power(ips->mch_avg_power, ips 1081 drivers/platform/x86/intel_ips.c dev_warn(ips->dev, ips 1092 drivers/platform/x86/intel_ips.c mod_timer(&ips->timer, expire); ips 1101 drivers/platform/x86/intel_ips.c del_timer_sync(&ips->timer); ips 1103 drivers/platform/x86/intel_ips.c dev_dbg(ips->dev, "ips-monitor thread stopped\n"); ips 1112 drivers/platform/x86/intel_ips.c dev_dbg(ips->dev, #reg ": 0x%04x\n", val); \ ips 1117 drivers/platform/x86/intel_ips.c dev_dbg(ips->dev, #reg ": 0x%08x\n", val); \ ips 1122 drivers/platform/x86/intel_ips.c dev_dbg(ips->dev, #reg ": 0x%016x\n", val); \ ips 1125 drivers/platform/x86/intel_ips.c static void dump_thermal_info(struct ips_driver *ips) ips 1130 drivers/platform/x86/intel_ips.c dev_dbg(ips->dev, "Processor temp limit: %d\n", ptl); ips 1152 drivers/platform/x86/intel_ips.c struct ips_driver *ips = arg; ips 1159 drivers/platform/x86/intel_ips.c dev_info(ips->dev, "TSES: 0x%02x\n", tses); ips 1160 drivers/platform/x86/intel_ips.c dev_info(ips->dev, "TES: 0x%02x\n", tes); ips 1170 drivers/platform/x86/intel_ips.c spin_lock(&ips->turbo_status_lock); ips 1171 drivers/platform/x86/intel_ips.c ips->core_power_limit = (sts & STS_PCPL_MASK) >> ips 1173 drivers/platform/x86/intel_ips.c ips->mch_power_limit = (sts & STS_GPL_MASK) >> ips 1176 drivers/platform/x86/intel_ips.c ips->cpu_turbo_enabled = !(sts & STS_PCTD_DIS); ips 1181 drivers/platform/x86/intel_ips.c ips->cpu_turbo_enabled = false; ips 1182 drivers/platform/x86/intel_ips.c if (ips->gpu_busy) ips 1183 drivers/platform/x86/intel_ips.c ips->gpu_turbo_enabled = !(sts & STS_GTD_DIS); ips 1184 drivers/platform/x86/intel_ips.c ips->mcp_temp_limit = (sts & STS_PTL_MASK) >> ips 1186 drivers/platform/x86/intel_ips.c ips->mcp_power_limit = (tc1 & STS_PPL_MASK) >> ips 1188 drivers/platform/x86/intel_ips.c verify_limits(ips); ips 1189 drivers/platform/x86/intel_ips.c spin_unlock(&ips->turbo_status_lock); ips 1198 drivers/platform/x86/intel_ips.c dev_warn(ips->dev, "thermal trip occurred, tses: 0x%04x\n", ips 1207 drivers/platform/x86/intel_ips.c static void ips_debugfs_init(struct ips_driver *ips) { return; } ips 1208 drivers/platform/x86/intel_ips.c static void ips_debugfs_cleanup(struct ips_driver *ips) { return; } ips 1215 drivers/platform/x86/intel_ips.c struct ips_driver *ips = m->private; ips 1217 drivers/platform/x86/intel_ips.c seq_printf(m, "%d.%02d\n", ips->ctv1_avg_temp / 100, ips 1218 drivers/platform/x86/intel_ips.c ips->ctv1_avg_temp % 100); ips 1226 drivers/platform/x86/intel_ips.c struct ips_driver *ips = m->private; ips 1228 drivers/platform/x86/intel_ips.c seq_printf(m, "%dmW\n", ips->cpu_avg_power); ips 1258 drivers/platform/x86/intel_ips.c struct ips_driver *ips = m->private; ips 1260 drivers/platform/x86/intel_ips.c seq_printf(m, "%d.%02d\n", ips->mch_avg_temp / 100, ips 1261 drivers/platform/x86/intel_ips.c ips->mch_avg_temp % 100); ips 1269 drivers/platform/x86/intel_ips.c struct ips_driver *ips = m->private; ips 1271 drivers/platform/x86/intel_ips.c seq_printf(m, "%dmW\n", ips->mch_avg_power); ips 1277 drivers/platform/x86/intel_ips.c static void ips_debugfs_cleanup(struct ips_driver *ips) ips 1279 drivers/platform/x86/intel_ips.c debugfs_remove_recursive(ips->debug_root); ips 1282 drivers/platform/x86/intel_ips.c static void ips_debugfs_init(struct ips_driver *ips) ips 1284 drivers/platform/x86/intel_ips.c ips->debug_root = debugfs_create_dir("ips", NULL); ips 1286 drivers/platform/x86/intel_ips.c debugfs_create_file("cpu_temp", 0444, ips->debug_root, ips, &cpu_temp_fops); ips 1287 drivers/platform/x86/intel_ips.c debugfs_create_file("cpu_power", 0444, ips->debug_root, ips, &cpu_power_fops); ips 1288 drivers/platform/x86/intel_ips.c debugfs_create_file("cpu_clamp", 0444, ips->debug_root, ips, &cpu_clamp_fops); ips 1289 drivers/platform/x86/intel_ips.c debugfs_create_file("mch_temp", 0444, ips->debug_root, ips, &mch_temp_fops); ips 1290 drivers/platform/x86/intel_ips.c debugfs_create_file("mch_power", 0444, ips->debug_root, ips, &mch_power_fops); ips 1300 drivers/platform/x86/intel_ips.c static struct ips_mcp_limits *ips_detect_cpu(struct ips_driver *ips) ips 1307 drivers/platform/x86/intel_ips.c dev_info(ips->dev, "Non-IPS CPU detected.\n"); ips 1318 drivers/platform/x86/intel_ips.c ips->turbo_toggle_allowed = true; ips 1320 drivers/platform/x86/intel_ips.c ips->turbo_toggle_allowed = false; ips 1329 drivers/platform/x86/intel_ips.c dev_info(ips->dev, "No CPUID match found.\n"); ips 1338 drivers/platform/x86/intel_ips.c dev_info(ips->dev, ips 1356 drivers/platform/x86/intel_ips.c static bool ips_get_i915_syms(struct ips_driver *ips) ips 1358 drivers/platform/x86/intel_ips.c ips->read_mch_val = symbol_get(i915_read_mch_val); ips 1359 drivers/platform/x86/intel_ips.c if (!ips->read_mch_val) ips 1361 drivers/platform/x86/intel_ips.c ips->gpu_raise = symbol_get(i915_gpu_raise); ips 1362 drivers/platform/x86/intel_ips.c if (!ips->gpu_raise) ips 1364 drivers/platform/x86/intel_ips.c ips->gpu_lower = symbol_get(i915_gpu_lower); ips 1365 drivers/platform/x86/intel_ips.c if (!ips->gpu_lower) ips 1367 drivers/platform/x86/intel_ips.c ips->gpu_busy = symbol_get(i915_gpu_busy); ips 1368 drivers/platform/x86/intel_ips.c if (!ips->gpu_busy) ips 1370 drivers/platform/x86/intel_ips.c ips->gpu_turbo_disable = symbol_get(i915_gpu_turbo_disable); ips 1371 drivers/platform/x86/intel_ips.c if (!ips->gpu_turbo_disable) ips 1389 drivers/platform/x86/intel_ips.c ips_gpu_turbo_enabled(struct ips_driver *ips) ips 1391 drivers/platform/x86/intel_ips.c if (!ips->gpu_busy && late_i915_load) { ips 1392 drivers/platform/x86/intel_ips.c if (ips_get_i915_syms(ips)) { ips 1393 drivers/platform/x86/intel_ips.c dev_info(ips->dev, ips 1395 drivers/platform/x86/intel_ips.c ips->gpu_turbo_enabled = !(thm_readl(THM_HTS) & HTS_GTD_DIS); ips 1399 drivers/platform/x86/intel_ips.c return ips->gpu_turbo_enabled; ips 1441 drivers/platform/x86/intel_ips.c struct ips_driver *ips; ips 1450 drivers/platform/x86/intel_ips.c ips = devm_kzalloc(&dev->dev, sizeof(*ips), GFP_KERNEL); ips 1451 drivers/platform/x86/intel_ips.c if (!ips) ips 1454 drivers/platform/x86/intel_ips.c spin_lock_init(&ips->turbo_status_lock); ips 1455 drivers/platform/x86/intel_ips.c ips->dev = &dev->dev; ips 1457 drivers/platform/x86/intel_ips.c ips->limits = ips_detect_cpu(ips); ips 1458 drivers/platform/x86/intel_ips.c if (!ips->limits) { ips 1474 drivers/platform/x86/intel_ips.c ips->regmap = pcim_iomap_table(dev)[0]; ips 1476 drivers/platform/x86/intel_ips.c pci_set_drvdata(dev, ips); ips 1492 drivers/platform/x86/intel_ips.c ips->second_cpu = true; ips 1494 drivers/platform/x86/intel_ips.c update_turbo_limits(ips); ips 1496 drivers/platform/x86/intel_ips.c ips->mcp_power_limit / 10); ips 1498 drivers/platform/x86/intel_ips.c ips->core_power_limit / 10); ips 1501 drivers/platform/x86/intel_ips.c ips->poll_turbo_status = true; ips 1503 drivers/platform/x86/intel_ips.c if (!ips_get_i915_syms(ips)) { ips 1505 drivers/platform/x86/intel_ips.c ips->gpu_turbo_enabled = false; ips 1508 drivers/platform/x86/intel_ips.c ips->gpu_turbo_enabled = true; ips 1529 drivers/platform/x86/intel_ips.c ips->irq = pci_irq_vector(dev, 0); ips 1531 drivers/platform/x86/intel_ips.c ret = request_irq(ips->irq, ips_irq_handler, IRQF_SHARED, "ips", ips); ips 1543 drivers/platform/x86/intel_ips.c ips->cta_val = thm_readw(THM_CTA); ips 1544 drivers/platform/x86/intel_ips.c ips->pta_val = thm_readw(THM_PTA); ips 1545 drivers/platform/x86/intel_ips.c ips->mgta_val = thm_readw(THM_MGTA); ips 1548 drivers/platform/x86/intel_ips.c rdmsrl(TURBO_POWER_CURRENT_LIMIT, ips->orig_turbo_limit); ips 1550 drivers/platform/x86/intel_ips.c ips_disable_cpu_turbo(ips); ips 1551 drivers/platform/x86/intel_ips.c ips->cpu_turbo_enabled = false; ips 1554 drivers/platform/x86/intel_ips.c ips->adjust = kthread_create(ips_adjust, ips, "ips-adjust"); ips 1555 drivers/platform/x86/intel_ips.c if (IS_ERR(ips->adjust)) { ips 1567 drivers/platform/x86/intel_ips.c ips->monitor = kthread_run(ips_monitor, ips, "ips-monitor"); ips 1568 drivers/platform/x86/intel_ips.c if (IS_ERR(ips->monitor)) { ips 1575 drivers/platform/x86/intel_ips.c hts = (ips->core_power_limit << HTS_PCPL_SHIFT) | ips 1576 drivers/platform/x86/intel_ips.c (ips->mcp_temp_limit << HTS_PTL_SHIFT) | HTS_NVV; ips 1582 drivers/platform/x86/intel_ips.c ips_debugfs_init(ips); ips 1585 drivers/platform/x86/intel_ips.c ips->mcp_temp_limit); ips 1589 drivers/platform/x86/intel_ips.c kthread_stop(ips->adjust); ips 1591 drivers/platform/x86/intel_ips.c free_irq(ips->irq, ips); ips 1598 drivers/platform/x86/intel_ips.c struct ips_driver *ips = pci_get_drvdata(dev); ips 1601 drivers/platform/x86/intel_ips.c ips_debugfs_cleanup(ips); ips 1604 drivers/platform/x86/intel_ips.c if (ips->read_mch_val) ips 1606 drivers/platform/x86/intel_ips.c if (ips->gpu_raise) ips 1608 drivers/platform/x86/intel_ips.c if (ips->gpu_lower) ips 1610 drivers/platform/x86/intel_ips.c if (ips->gpu_busy) ips 1612 drivers/platform/x86/intel_ips.c if (ips->gpu_turbo_disable) ips 1618 drivers/platform/x86/intel_ips.c wrmsrl(TURBO_POWER_CURRENT_LIMIT, ips->orig_turbo_limit); ips 1620 drivers/platform/x86/intel_ips.c free_irq(ips->irq, ips); ips 1622 drivers/platform/x86/intel_ips.c if (ips->adjust) ips 1623 drivers/platform/x86/intel_ips.c kthread_stop(ips->adjust); ips 1624 drivers/platform/x86/intel_ips.c if (ips->monitor) ips 1625 drivers/platform/x86/intel_ips.c kthread_stop(ips->monitor); ips 199 drivers/scsi/ips.c static char *ips = NULL; ips 200 drivers/scsi/ips.c module_param(ips, charp, 0); ips 560 drivers/scsi/ips.c if (ips) ips 561 drivers/scsi/ips.c ips_setup(ips); ips 438 fs/xfs/xfs_inode.c struct xfs_inode **ips, ips 452 fs/xfs/xfs_inode.c ASSERT(ips && inodes >= 2 && inodes <= 5); ips 471 fs/xfs/xfs_inode.c ASSERT(ips[i]); ips 473 fs/xfs/xfs_inode.c if (i && (ips[i] == ips[i - 1])) /* Already locked */ ips 482 fs/xfs/xfs_inode.c lp = &ips[j]->i_itemp->ili_item; ips 495 fs/xfs/xfs_inode.c xfs_ilock(ips[i], xfs_lock_inumorder(lock_mode, i)); ips 501 fs/xfs/xfs_inode.c if (xfs_ilock_nowait(ips[i], xfs_lock_inumorder(lock_mode, i))) ips 515 fs/xfs/xfs_inode.c if (j != (i - 1) && ips[j] == ips[j + 1]) ips 518 fs/xfs/xfs_inode.c xfs_iunlock(ips[j], lock_mode); ips 283 kernel/bpf/stackmap.c u64 *ips, u32 trace_nr, bool user) ips 312 kernel/bpf/stackmap.c id_offs[i].ip = ips[i]; ips 319 kernel/bpf/stackmap.c vma = find_vma(current->mm, ips[i]); ips 323 kernel/bpf/stackmap.c id_offs[i].ip = ips[i]; ips 327 kernel/bpf/stackmap.c id_offs[i].offset = (vma->vm_pgoff << PAGE_SHIFT) + ips[i] ips 359 kernel/bpf/stackmap.c u64 *ips; ips 384 kernel/bpf/stackmap.c ips = trace->ip + skip + init_nr; ips 385 kernel/bpf/stackmap.c hash = jhash2((u32 *)ips, trace_len / sizeof(u32), 0); ips 403 kernel/bpf/stackmap.c ips, trace_nr, user); ips 416 kernel/bpf/stackmap.c memcmp(bucket->data, ips, trace_len) == 0) ips 425 kernel/bpf/stackmap.c memcpy(new_bucket->data, ips, trace_len); ips 456 kernel/bpf/stackmap.c u64 *ips; ips 486 kernel/bpf/stackmap.c ips = trace->ip + skip + init_nr; ips 488 kernel/bpf/stackmap.c stack_map_get_build_id_offset(buf, ips, trace_nr, user); ips 490 kernel/bpf/stackmap.c memcpy(buf, ips, copy_len); ips 1564 net/iucv/iucv.c struct iucv_path_severed *ips = (void *) data; ips 1565 net/iucv/iucv.c struct iucv_path *path = iucv_path_table[ips->ippathid]; ips 1570 net/iucv/iucv.c path->handler->path_severed(path, ips->ipuser); ips 253 tools/perf/arch/powerpc/util/skip-callchain-idx.c ip = chain->ips[1]; ips 504 tools/perf/builtin-timechart.c ip = chain->ips[i]; ips 506 tools/perf/builtin-timechart.c ip = chain->ips[chain->nr - i - 1]; ips 89 tools/perf/tests/sample-parsing.c COMP(callchain->ips[i]); ips 562 tools/perf/util/data-convert-bt.c ((u64 *)(callchain->ips))[i]); ips 82 tools/perf/util/event.h u64 ips[0]; ips 2181 tools/perf/util/machine.c if (chain->ips[i] == PERF_CONTEXT_USER) ips 2210 tools/perf/util/machine.c ip = chain->ips[j]; ips 2231 tools/perf/util/machine.c ip = chain->ips[i + 1 - (j - lbr_nr)]; ips 2263 tools/perf/util/machine.c u64 ip = chain->ips[ent]; ips 2344 tools/perf/util/machine.c chain->ips[first_call] >= PERF_CONTEXT_MAX) ips 2346 tools/perf/util/machine.c else if (be[i].from < chain->ips[first_call] && ips 2347 tools/perf/util/machine.c be[i].from >= chain->ips[first_call] - 8) ips 2400 tools/perf/util/machine.c ip = chain->ips[j]; ips 1009 tools/perf/util/session.c if (callchain->ips[i] == PERF_CONTEXT_USER) ips 1038 tools/perf/util/session.c i, callchain->ips[i]); ips 1061 tools/perf/util/session.c i, callchain->ips[i]); ips 475 tools/perf/util/thread-stack.c chain->ips[0] = context; ips 476 tools/perf/util/thread-stack.c chain->ips[1] = ip; ips 491 tools/perf/util/thread-stack.c chain->ips[i++] = context; ips 494 tools/perf/util/thread-stack.c chain->ips[i] = ip; ips 644 tools/perf/util/unwind-libunwind-local.c unw_word_t ips[max_stack]; ips 654 tools/perf/util/unwind-libunwind-local.c ips[i++] = (unw_word_t) val; ips 672 tools/perf/util/unwind-libunwind-local.c unw_get_reg(&c, UNW_REG_IP, &ips[i]); ips 682 tools/perf/util/unwind-libunwind-local.c --ips[i]; ips 698 tools/perf/util/unwind-libunwind-local.c ret = ips[j] ? entry(ips[j], ui->thread, cb, arg) : 0;