Home
last modified time | relevance | path

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

12

/openbmc/linux/drivers/cpufreq/
H A 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()
H A 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()
H A 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()
H A Dsparc-us3-cpufreq.c96 unsigned long new_bits, new_freq; in us3_freq_target() local
98 new_freq = sparc64_get_clock_tick(cpu) / 1000; in us3_freq_target()
102 new_freq /= 1; in us3_freq_target()
106 new_freq /= 2; in us3_freq_target()
110 new_freq /= 32; in us3_freq_target()
H A 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()
H A Dsparc-us2e-cpufreq.c247 unsigned long new_bits, new_freq; in __us2e_freq_target() local
250 new_freq = clock_tick = sparc64_get_clock_tick(cpu) / 1000; in __us2e_freq_target()
253 new_freq /= divisor; in __us2e_freq_target()
H A 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()
H A Dcpufreq_stats.c266 unsigned int new_freq) in cpufreq_stats_record_transition() argument
278 new_index = freq_table_get_index(stats, new_freq); in cpufreq_stats_record_transition()
H A Dcpufreq.c1755 unsigned int new_freq) in cpufreq_out_of_sync() argument
1760 policy->cur, new_freq); in cpufreq_out_of_sync()
1763 freqs.new = new_freq; in cpufreq_out_of_sync()
1771 unsigned int new_freq; in cpufreq_verify_current_freq() local
1773 new_freq = cpufreq_driver->get(policy->cpu); in cpufreq_verify_current_freq()
1774 if (!new_freq) in cpufreq_verify_current_freq()
1782 return new_freq; in cpufreq_verify_current_freq()
1784 if (policy->cur != new_freq) { in cpufreq_verify_current_freq()
1792 if (abs(policy->cur - new_freq) < KHZ_PER_MHZ) in cpufreq_verify_current_freq()
1795 cpufreq_out_of_sync(policy, new_freq); in cpufreq_verify_current_freq()
[all …]
/openbmc/qemu/hw/audio/
H A Des1370.c283 uint32_t *old_freq, uint32_t *new_freq);
290 uint32_t *new_freq);
369 *new_freq = dac1_samplerate[(ctl & CTRL_WTSRSEL) >> CTRL_SH_WTSRSEL]; in es1370_dac1_calc_freq()
374 uint32_t *new_freq) in es1370_dac2_and_adc_calc_freq() argument
381 *new_freq = DAC2_DIVTOSR (new_pclkdiv); in es1370_dac2_and_adc_calc_freq()
388 uint32_t old_freq, new_freq, old_fmt, new_fmt; in es1370_update_voices() local
397 b->calc_freq (s, ctl, &old_freq, &new_freq); in es1370_update_voices()
399 if ((old_fmt != new_fmt) || (old_freq != new_freq)) { in es1370_update_voices()
401 trace_es1370_stream_format(i, new_freq, in es1370_update_voices()
404 if (new_freq) { in es1370_update_voices()
[all …]
/openbmc/linux/drivers/devfreq/
H A 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()
H A 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()
/openbmc/linux/net/mac80211/
H A 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()
/openbmc/linux/Documentation/translations/zh_TW/cpu-freq/
H A 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代表
/openbmc/linux/Documentation/translations/zh_CN/cpu-freq/
H A 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代表
/openbmc/linux/drivers/clk/st/
H A 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()
H A 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()
/openbmc/linux/drivers/gpu/drm/i915/gt/
H A Dintel_rps.c1830 new_freq = rps->cur_freq; in rps_work()
1839 adj, new_freq, min, max); in rps_work()
1876 new_freq += adj; in rps_work()
1877 new_freq = clamp_t(int, new_freq, min, max); in rps_work()
1944 u8 new_freq; in gen5_rps_irq_handler() local
1959 new_freq = rps->cur_freq; in gen5_rps_irq_handler()
1961 new_freq++; in gen5_rps_irq_handler()
1963 new_freq--; in gen5_rps_irq_handler()
1964 new_freq = clamp(new_freq, in gen5_rps_irq_handler()
1968 if (new_freq != rps->cur_freq && !__gen5_rps_set(rps, new_freq)) in gen5_rps_irq_handler()
[all …]
/openbmc/linux/tools/perf/
H A Dbuiltin-timechart.c401 static void p_state_change(struct timechart *tchart, int cpu, u64 timestamp, u64 new_freq) in p_state_change() argument
405 if (new_freq > 8000000) /* detect invalid data */ in p_state_change()
412 cpus_pstate_state[cpu] = new_freq; in p_state_change()
415 if ((u64)new_freq > tchart->max_freq) in p_state_change()
416 tchart->max_freq = new_freq; in p_state_change()
418 if (new_freq < tchart->min_freq || tchart->min_freq == 0) in p_state_change()
419 tchart->min_freq = new_freq; in p_state_change()
421 if (new_freq == tchart->max_freq - 1000) in p_state_change()
/openbmc/linux/Documentation/cpu-freq/
H A 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
/openbmc/linux/drivers/staging/media/atomisp/pci/
H A Datomisp_cmd.c129 unsigned int new_freq) in write_target_freq_to_hw() argument
147 ratio = (2 * isp->hpll_freq + new_freq / 2) / new_freq - 1; in write_target_freq_to_hw()
183 new_freq); in write_target_freq_to_hw()
200 unsigned int new_freq; in atomisp_freq_scaling() local
215 new_freq = dfs->lowest_freq; in atomisp_freq_scaling()
220 new_freq = dfs->highest_freq; in atomisp_freq_scaling()
228 new_freq = dfs->highest_freq; in atomisp_freq_scaling()
255 new_freq = dfs->max_freq_at_vmin; in atomisp_freq_scaling()
257 new_freq = dfs->dfs_table[i].isp_freq; in atomisp_freq_scaling()
269 isp->running_freq = new_freq; in atomisp_freq_scaling()
[all …]
/openbmc/linux/include/linux/
H A Dcpufreq.h272 unsigned int new_freq);
277 unsigned int new_freq) { } in cpufreq_stats_record_transition() argument
/openbmc/linux/drivers/media/pci/cx88/
H A 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()
/openbmc/linux/drivers/media/usb/cx231xx/
H A Dcx231xx-video.c1131 struct v4l2_frequency new_freq = *f; in cx231xx_s_frequency() local
1158 call_all(dev, tuner, g_frequency, &new_freq); in cx231xx_s_frequency()
1159 dev->ctl_freq = new_freq.frequency; in cx231xx_s_frequency()
/openbmc/qemu/hw/misc/
H A Dtrace-events156 …index, uint32_t old_value, uint32_t new_value) "%s pwm[%u] Update Freq: old_freq: %u, new_freq: %u"
193 …, uint64_t old_freq, uint64_t new_freq) "RCC: PLL %d channel %d update: vco_freq %" PRIu64 " old_f…

12