Home
last modified time | relevance | path

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

12

/linux-6.1.9/drivers/cpufreq/
Ds3c64xx-cpufreq.c55 unsigned int old_freq, new_freq; in s3c64xx_cpufreq_set_target() local
59 new_freq = s3c64xx_freq_table[index].frequency; in s3c64xx_cpufreq_set_target()
63 if (vddarm && new_freq > old_freq) { in s3c64xx_cpufreq_set_target()
69 new_freq, ret); in s3c64xx_cpufreq_set_target()
75 ret = clk_set_rate(policy->clk, new_freq * 1000); in s3c64xx_cpufreq_set_target()
78 new_freq, ret); in s3c64xx_cpufreq_set_target()
83 if (vddarm && new_freq < old_freq) { in s3c64xx_cpufreq_set_target()
89 new_freq, ret); in s3c64xx_cpufreq_set_target()
Dsa1100-cpufreq.c167 unsigned int new_freq; in sa1100_target() local
169 new_freq = sa11x0_freq_table[ppcr].frequency; in sa1100_target()
171 if (new_freq > cur) in sa1100_target()
172 sa1100_update_dram_timings(cur, new_freq); in sa1100_target()
176 if (new_freq < cur) in sa1100_target()
177 sa1100_update_dram_timings(cur, new_freq); in sa1100_target()
Domap-cpufreq.c47 unsigned int old_freq, new_freq; in omap_target() local
50 new_freq = freq_table[index].frequency; in omap_target()
52 freq = new_freq * 1000; in omap_target()
66 __func__, new_freq); in omap_target()
77 new_freq / 1000, volt ? volt / 1000 : -1); in omap_target()
80 if (mpu_reg && (new_freq > old_freq)) { in omap_target()
89 ret = clk_set_rate(policy->clk, new_freq * 1000); in omap_target()
92 if (mpu_reg && (new_freq < old_freq)) { in omap_target()
Ddavinci-cpufreq.c39 unsigned int old_freq, new_freq; in davinci_target() local
43 new_freq = pdata->freq_table[idx].frequency; in davinci_target()
46 if (pdata->set_voltage && new_freq > old_freq) { in davinci_target()
52 ret = clk_set_rate(armclk, new_freq * 1000); in davinci_target()
63 if (pdata->set_voltage && new_freq < old_freq) in davinci_target()
Dsparc-us3-cpufreq.c98 unsigned long new_bits, new_freq; in us3_freq_target() local
100 new_freq = sparc64_get_clock_tick(cpu) / 1000; in us3_freq_target()
104 new_freq /= 1; in us3_freq_target()
108 new_freq /= 2; in us3_freq_target()
112 new_freq /= 32; in us3_freq_target()
Dimx6q-cpufreq.c62 unsigned int old_freq, new_freq; in imx6q_set_target() local
66 new_freq = freq_table[index].frequency; in imx6q_set_target()
67 freq_hz = new_freq * 1000; in imx6q_set_target()
83 new_freq / 1000, volt / 1000); in imx6q_set_target()
86 if (new_freq > old_freq) { in imx6q_set_target()
138 clk_set_rate(clks[PLL1_SYS].clk, new_freq * 1000); in imx6q_set_target()
145 clk_set_rate(clks[PLL1_SYS].clk, new_freq * 1000); in imx6q_set_target()
155 ret = clk_set_rate(clks[ARM].clk, new_freq * 1000); in imx6q_set_target()
172 if (new_freq < old_freq) { in imx6q_set_target()
Dloongson1-cpufreq.c53 unsigned int old_freq, new_freq; in ls1x_cpufreq_target() local
56 new_freq = policy->freq_table[index].frequency; in ls1x_cpufreq_target()
72 clk_set_rate(cpufreq->mux_clk, new_freq * 1000); in ls1x_cpufreq_target()
74 dev_dbg(cpu_dev, "%u KHz --> %u KHz\n", old_freq, new_freq); in ls1x_cpufreq_target()
Ds3c2416-cpufreq.c220 unsigned int new_freq; in s3c2416_cpufreq_set_target() local
241 new_freq = (s3c_freq->is_dvs && !to_dvs) in s3c2416_cpufreq_set_target()
252 pr_debug("cpufreq: change armdiv to %dkHz\n", new_freq); in s3c2416_cpufreq_set_target()
253 ret = s3c2416_cpufreq_set_armdiv(s3c_freq, new_freq); in s3c2416_cpufreq_set_target()
Dsparc-us2e-cpufreq.c249 unsigned long new_bits, new_freq; in __us2e_freq_target() local
252 new_freq = clock_tick = sparc64_get_clock_tick(cpu) / 1000; in __us2e_freq_target()
255 new_freq /= divisor; in __us2e_freq_target()
Ds5pv210-cpufreq.c229 unsigned int old_freq, new_freq; in s5pv210_target() local
243 new_freq = s5pv210_freq_table[index].frequency; in s5pv210_target()
251 if (new_freq > old_freq) { in s5pv210_target()
473 if (new_freq < old_freq) { in s5pv210_target()
Dcpufreq.c1693 unsigned int new_freq) in cpufreq_out_of_sync() argument
1698 policy->cur, new_freq); in cpufreq_out_of_sync()
1701 freqs.new = new_freq; in cpufreq_out_of_sync()
1709 unsigned int new_freq; in cpufreq_verify_current_freq() local
1711 new_freq = cpufreq_driver->get(policy->cpu); in cpufreq_verify_current_freq()
1712 if (!new_freq) in cpufreq_verify_current_freq()
1720 return new_freq; in cpufreq_verify_current_freq()
1722 if (policy->cur != new_freq) { in cpufreq_verify_current_freq()
1730 if (abs(policy->cur - new_freq) < HZ_PER_MHZ) in cpufreq_verify_current_freq()
1733 cpufreq_out_of_sync(policy, new_freq); in cpufreq_verify_current_freq()
[all …]
Dcpufreq_stats.c267 unsigned int new_freq) in cpufreq_stats_record_transition() argument
279 new_index = freq_table_get_index(stats, new_freq); in cpufreq_stats_record_transition()
/linux-6.1.9/drivers/devfreq/
Dimx8m-ddrc.c235 unsigned long old_freq, new_freq; in imx8m_ddrc_target() local
260 new_freq = clk_get_rate(priv->dram_core); in imx8m_ddrc_target()
263 *freq, old_freq, ret, new_freq); in imx8m_ddrc_target()
264 else if (*freq != new_freq) in imx8m_ddrc_target()
266 *freq, old_freq, new_freq); in imx8m_ddrc_target()
Ddevfreq.c347 static int devfreq_set_target(struct devfreq *devfreq, unsigned long new_freq, in devfreq_set_target() argument
360 freqs.new = new_freq; in devfreq_set_target()
363 err = devfreq->profile->target(devfreq->dev.parent, &new_freq, flags); in devfreq_set_target()
375 if (trace_devfreq_frequency_enabled() && new_freq != cur_freq) in devfreq_set_target()
376 trace_devfreq_frequency(devfreq, new_freq, cur_freq); in devfreq_set_target()
378 freqs.new = new_freq; in devfreq_set_target()
381 if (devfreq_update_status(devfreq, new_freq)) in devfreq_set_target()
385 devfreq->previous_freq = new_freq; in devfreq_set_target()
388 devfreq->resume_freq = new_freq; in devfreq_set_target()
/linux-6.1.9/net/mac80211/
Dspectmgmt.c30 int new_freq; in ieee80211_parse_ch_switch_ie() local
85 new_freq = ieee80211_channel_to_frequency(new_chan_no, new_band); in ieee80211_parse_ch_switch_ie()
86 new_chan = ieee80211_get_channel(sdata->local->hw.wiphy, new_freq); in ieee80211_parse_ch_switch_ie()
90 bssid, new_freq); in ieee80211_parse_ch_switch_ie()
/linux-6.1.9/drivers/gpu/drm/i915/gt/
Dintel_rps.c1797 int new_freq, adj, min, max; in rps_work() local
1818 new_freq = rps->cur_freq; in rps_work()
1827 adj, new_freq, min, max); in rps_work()
1829 if (client_boost && new_freq < rps->boost_freq) { in rps_work()
1830 new_freq = rps->boost_freq; in rps_work()
1838 if (new_freq >= rps->max_freq_softlimit) in rps_work()
1844 new_freq = rps->efficient_freq; in rps_work()
1846 new_freq = rps->min_freq_softlimit; in rps_work()
1854 if (new_freq <= rps->min_freq_softlimit) in rps_work()
1864 new_freq += adj; in rps_work()
[all …]
/linux-6.1.9/Documentation/translations/zh_CN/cpu-freq/
Dcpu-drivers.rst180 - policy->min <= new_freq <= policy->max (这必须是有效的!!!)
181 - 如果 relation==CPUFREQ_REL_L,尝试选择一个高于或等于 target_freq 的 new_freq。("L代表
183 - 如果 relation==CPUFREQ_REL_H,尝试选择一个低于或等于 target_freq 的 new_freq。("H代表
/linux-6.1.9/Documentation/translations/zh_TW/cpu-freq/
Dcpu-drivers.rst179 - policy->min <= new_freq <= policy->max (這必須是有效的!!!)
180 - 如果 relation==CPUFREQ_REL_L,嘗試選擇一個高於或等於 target_freq 的 new_freq。("L代表
182 - 如果 relation==CPUFREQ_REL_H,嘗試選擇一個低於或等於 target_freq 的 new_freq。("H代表
/linux-6.1.9/drivers/clk/st/
Dclkgen-pll.c320 unsigned long new_freq; in clk_pll3200c32_get_params() local
344 new_freq = (input * 2 * n) / i; in clk_pll3200c32_get_params()
346 new_deviation = abs(new_freq - output); in clk_pll3200c32_get_params()
482 unsigned long new_freq, new_deviation; in clk_pll4600c28_get_params() local
502 new_freq = infin * 2 * n; in clk_pll4600c28_get_params()
503 if (new_freq < output) in clk_pll4600c28_get_params()
506 new_deviation = new_freq - output; in clk_pll4600c28_get_params()
Dclkgen-fsyn.c650 unsigned long new_freq, new_deviation; in clk_fs660c32_get_pe() local
668 clk_fs660c32_dig_get_rate(input, &fs_tmp, &new_freq); in clk_fs660c32_get_pe()
670 new_deviation = abs(output - new_freq); in clk_fs660c32_get_pe()
687 unsigned long new_freq, new_deviation; in clk_fs660c32_dig_get_params() local
731 clk_fs660c32_dig_get_rate(input, &fs_tmp, &new_freq); in clk_fs660c32_dig_get_params()
733 new_deviation = abs(output - new_freq); in clk_fs660c32_dig_get_params()
/linux-6.1.9/tools/perf/
Dbuiltin-timechart.c400 static void p_state_change(struct timechart *tchart, int cpu, u64 timestamp, u64 new_freq) in p_state_change() argument
404 if (new_freq > 8000000) /* detect invalid data */ in p_state_change()
411 cpus_pstate_state[cpu] = new_freq; in p_state_change()
414 if ((u64)new_freq > tchart->max_freq) in p_state_change()
415 tchart->max_freq = new_freq; in p_state_change()
417 if (new_freq < tchart->min_freq || tchart->min_freq == 0) in p_state_change()
418 tchart->min_freq = new_freq; in p_state_change()
420 if (new_freq == tchart->max_freq - 1000) in p_state_change()
/linux-6.1.9/Documentation/cpu-freq/
Dcpu-drivers.rst187 - policy->min <= new_freq <= policy->max (THIS MUST BE VALID!!!)
188 - if relation==CPUFREQ_REL_L, try to select a new_freq higher than or equal
190 - if relation==CPUFREQ_REL_H, try to select a new_freq lower than or equal
/linux-6.1.9/drivers/staging/media/atomisp/pci/
Datomisp_cmd.c132 unsigned int new_freq) in write_target_freq_to_hw() argument
150 ratio = (2 * isp->hpll_freq + new_freq / 2) / new_freq - 1; in write_target_freq_to_hw()
186 new_freq); in write_target_freq_to_hw()
206 unsigned int new_freq; in atomisp_freq_scaling() local
230 new_freq = dfs->lowest_freq; in atomisp_freq_scaling()
235 new_freq = dfs->highest_freq; in atomisp_freq_scaling()
243 new_freq = dfs->highest_freq; in atomisp_freq_scaling()
282 new_freq = dfs->max_freq_at_vmin; in atomisp_freq_scaling()
284 new_freq = dfs->dfs_table[i].isp_freq; in atomisp_freq_scaling()
287 dev_dbg(isp->dev, "DFS target frequency=%d.\n", new_freq); in atomisp_freq_scaling()
[all …]
/linux-6.1.9/include/linux/
Dcpufreq.h268 unsigned int new_freq);
273 unsigned int new_freq) { } in cpufreq_stats_record_transition() argument
/linux-6.1.9/drivers/media/pci/cx88/
Dcx88-video.c966 struct v4l2_frequency new_freq = *f; in cx88_set_freq() local
975 call_all(core, tuner, g_frequency, &new_freq); in cx88_set_freq()
976 core->freq = new_freq.frequency; in cx88_set_freq()

12