Home
last modified time | relevance | path

Searched refs:cur_freq (Results 1 – 25 of 25) sorted by relevance

/Linux-v5.15/drivers/cpufreq/
Dpmac32-cpufreq.c55 static unsigned int cur_freq; variable
352 cur_freq = (speed_mode == CPUFREQ_HIGH) ? hi_freq : low_freq; in do_set_cpu_speed()
359 return cur_freq; in pmac_cpufreq_get_speed()
369 ppc_proc_freq = cur_freq * 1000ul; in pmac_cpufreq_target()
408 sleep_freq = cur_freq; in pmac_cpufreq_suspend()
409 if (cur_freq == low_freq && !is_pmu_based) in pmac_cpufreq_suspend()
418 cur_freq = get_speed_proc(); in pmac_cpufreq_resume()
420 cur_freq = 0; in pmac_cpufreq_resume()
429 ppc_proc_freq = cur_freq * 1000ul; in pmac_cpufreq_resume()
513 cur_freq = (rc & 0x01) ? hi_freq : low_freq; in pmac_cpufreq_init_MacRISC3()
[all …]
Dacpi-cpufreq.c397 unsigned int cur_freq; in check_freqs() local
401 cur_freq = extract_freq(policy, get_cur_val(mask, data)); in check_freqs()
402 if (cur_freq == freq) in check_freqs()
Dcpufreq.c744 unsigned int cur_freq = __cpufreq_get(policy); in show_cpuinfo_cur_freq() local
746 if (cur_freq) in show_cpuinfo_cur_freq()
747 return sprintf(buf, "%u\n", cur_freq); in show_cpuinfo_cur_freq()
/Linux-v5.15/sound/pci/lola/
Dlola_clock.c89 chip->clock.cur_freq)) in lola_set_granularity()
168 chip->clock.cur_freq = 48000; in lola_init_clock_widget()
254 chip->clock.cur_freq = lola_sample_rate_convert(val & 0x7f); in lola_update_ext_clock_freq()
267 freq = chip->clock.cur_freq; in lola_set_clock()
288 chip->clock.cur_freq = freq; in lola_set_clock()
298 if (chip->clock.cur_freq == rate && chip->clock.cur_valid) in lola_set_sample_rate()
Dlola.h247 unsigned int cur_freq; member
/Linux-v5.15/drivers/gpu/drm/panfrost/
Dpanfrost_devfreq.c89 unsigned long cur_freq; in panfrost_devfreq_init() local
128 cur_freq = clk_get_rate(pfdev->clock); in panfrost_devfreq_init()
130 opp = devfreq_recommended_opp(dev, &cur_freq, 0); in panfrost_devfreq_init()
134 panfrost_devfreq_profile.initial_freq = cur_freq; in panfrost_devfreq_init()
/Linux-v5.15/drivers/gpu/drm/lima/
Dlima_devfreq.c112 unsigned long cur_freq; in lima_devfreq_init() local
138 cur_freq = clk_get_rate(ldev->clk_gpu); in lima_devfreq_init()
140 opp = devfreq_recommended_opp(dev, &cur_freq, 0); in lima_devfreq_init()
144 lima_devfreq_profile.initial_freq = cur_freq; in lima_devfreq_init()
/Linux-v5.15/drivers/gpu/drm/i915/gt/
Dintel_rps.c124 rps->cur_freq < rps->max_freq_softlimit) { in rps_timer()
129 rps->cur_freq > rps->min_freq_softlimit) { in rps_timer()
586 __gen5_rps_set(rps, rps->cur_freq); in gen5_rps_enable()
737 val > rps->cur_freq) in gen6_rps_set_thresholds()
743 val < rps->cur_freq) in gen6_rps_set_thresholds()
746 val > rps->cur_freq) in gen6_rps_set_thresholds()
752 val < rps->cur_freq) in gen6_rps_set_thresholds()
852 GT_TRACE(rps_to_gt(rps), "unpark:%x\n", rps->cur_freq); in intel_rps_unpark()
862 clamp(rps->cur_freq, in intel_rps_unpark()
929 rps->cur_freq = max_t(int, rps->cur_freq + adj, rps->min_freq); in intel_rps_park()
[all …]
Dintel_rps_types.h69 u8 cur_freq; /* Current frequency (cached, may not == HW) */ member
Ddebugfs_gt_pm.c286 intel_gpu_freq(rps, rps->cur_freq)); in frequency_show()
460 intel_gpu_freq(rps, rps->cur_freq)); in frequency_show()
569 intel_gpu_freq(rps, rps->cur_freq), in rps_boost_show()
Dselftest_rps.c953 if (rps->cur_freq != rps->min_freq) { in __rps_up_interrupt()
997 if (rps->cur_freq != rps->max_freq) { in __rps_down_interrupt()
1266 rps->cur_freq = rps->min_freq; in live_rps_dynamic()
/Linux-v5.15/drivers/devfreq/
Dtegra30-devfreq.c189 unsigned long cur_freq; member
269 u32 val = tegra->cur_freq * tegra->devfreq->profile->polling_ms; in tegra_devfreq_update_wmark()
413 tegra->cur_freq = data->new_rate / KHZ; in tegra_actmon_clk_notify_cb()
506 dev->target_freq = tegra->cur_freq; in tegra_actmon_configure_device()
508 dev->avg_count = tegra->cur_freq * tegra->devfreq->profile->polling_ms; in tegra_actmon_configure_device()
568 tegra->cur_freq = clk_get_rate(tegra->emc_clock) / KHZ; in tegra_actmon_resume()
661 unsigned long cur_freq; in tegra_devfreq_get_dev_status() local
663 cur_freq = READ_ONCE(tegra->cur_freq); in tegra_devfreq_get_dev_status()
669 stat->current_frequency = cur_freq * KHZ; in tegra_devfreq_get_dev_status()
680 stat->total_time = tegra->devfreq->profile->polling_ms * cur_freq; in tegra_devfreq_get_dev_status()
Ddevfreq.c354 unsigned long cur_freq; in devfreq_set_target() local
358 devfreq->profile->get_cur_freq(devfreq->dev.parent, &cur_freq); in devfreq_set_target()
360 cur_freq = devfreq->previous_freq; in devfreq_set_target()
362 freqs.old = cur_freq; in devfreq_set_target()
368 freqs.new = cur_freq; in devfreq_set_target()
378 if (trace_devfreq_frequency_enabled() && new_freq != cur_freq) in devfreq_set_target()
379 trace_devfreq_frequency(devfreq, new_freq, cur_freq); in devfreq_set_target()
1519 static DEVICE_ATTR_RO(cur_freq);
1892 unsigned long cur_freq, min_freq, max_freq; in devfreq_summary_show() local
1931 cur_freq = devfreq->previous_freq; in devfreq_summary_show()
[all …]
/Linux-v5.15/drivers/media/pci/saa7146/
Dmxb.c159 struct v4l2_frequency cur_freq; /* current frequency the tuner is tuned to */ member
362 mxb->cur_freq.tuner = 0; in mxb_init_done()
363 mxb->cur_freq.type = V4L2_TUNER_ANALOG_TV; in mxb_init_done()
364 mxb->cur_freq.frequency = freq; in mxb_init_done()
365 tuner_call(mxb, tuner, s_frequency, &mxb->cur_freq); in mxb_init_done()
581 *f = mxb->cur_freq; in vidioc_g_frequency()
583 DEB_EE("VIDIOC_G_FREQ: freq:0x%08x\n", mxb->cur_freq.frequency); in vidioc_g_frequency()
599 DEB_EE("VIDIOC_S_FREQUENCY: freq:0x%08x\n", mxb->cur_freq.frequency); in vidioc_s_frequency()
604 mxb->cur_freq = *f; in vidioc_s_frequency()
605 tuner_call(mxb, tuner, g_frequency, &mxb->cur_freq); in vidioc_s_frequency()
/Linux-v5.15/sound/soc/img/
Dimg-i2s-in.c189 unsigned int bclk_freq, cur_freq; in img_i2s_in_check_rate() local
193 cur_freq = clk_get_rate(i2s->clk_sys); in img_i2s_in_check_rate()
195 if (cur_freq >= bclk_freq * 8) { in img_i2s_in_check_rate()
198 } else if (cur_freq >= bclk_freq * 7) { in img_i2s_in_check_rate()
201 } else if (cur_freq >= bclk_freq * 6) { in img_i2s_in_check_rate()
207 cur_freq, sample_rate); in img_i2s_in_check_rate()
/Linux-v5.15/drivers/base/
Darch_topology.c128 void topology_set_freq_scale(const struct cpumask *cpus, unsigned long cur_freq, in topology_set_freq_scale() argument
134 if (WARN_ON_ONCE(!cur_freq || !max_freq)) in topology_set_freq_scale()
145 scale = (cur_freq << SCHED_CAPACITY_SHIFT) / max_freq; in topology_set_freq_scale()
/Linux-v5.15/tools/testing/selftests/cpufreq/
Dgovernor.sh105 cur_freq=find_current_freq
/Linux-v5.15/include/linux/
Darch_topology.h33 void topology_set_freq_scale(const struct cpumask *cpus, unsigned long cur_freq,
Dcpufreq.h1095 unsigned long cur_freq, in arch_set_freq_scale() argument
/Linux-v5.15/Documentation/ABI/testing/
Dsysfs-class-devfreq24 What: /sys/class/devfreq/.../cur_freq
28 The /sys/class/devfreq/.../cur_freq shows the current
/Linux-v5.15/drivers/net/wireless/marvell/libertas_tf/
Dmain.c345 if (conf->chandef.chan->center_freq != priv->cur_freq) { in lbtf_op_config()
346 priv->cur_freq = conf->chandef.chan->center_freq; in lbtf_op_config()
506 stats.freq = priv->cur_freq; in lbtf_rx()
Dlibertas_tf.h235 int cur_freq; member
/Linux-v5.15/drivers/gpu/drm/nouveau/nvkm/subdev/clk/
Dgm20b.c575 u32 cur_freq; in gm20b_clk_prog() local
601 cur_freq = nvkm_clk_read(&clk->base.base, nv_clk_src_gpc); in gm20b_clk_prog()
602 if (cur_freq > clk->safe_fmax_vmin) { in gm20b_clk_prog()
/Linux-v5.15/drivers/gpu/drm/i915/
Di915_debugfs.c397 intel_gpu_freq(rps, rps->cur_freq)); in i915_frequency_info()
561 intel_gpu_freq(rps, rps->cur_freq)); in i915_frequency_info()
675 intel_gpu_freq(rps, rps->cur_freq), in i915_rps_boost_info()
Di915_pmu.c402 val = rps->cur_freq; in frequency_sample()