Home
last modified time | relevance | path

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

12

/openbmc/linux/drivers/cpufreq/
H A Dqcom-cpufreq-hw.c74 unsigned long freq_hz = freq_khz * 1000; in qcom_cpufreq_set_bw() local
83 opp = dev_pm_opp_find_freq_exact(dev, freq_hz, true); in qcom_cpufreq_set_bw()
96 unsigned long freq_hz = freq_khz * 1000; in qcom_cpufreq_update_opp() local
101 return dev_pm_opp_add(cpu_dev, freq_hz, volt); in qcom_cpufreq_update_opp()
103 ret = dev_pm_opp_adjust_voltage(cpu_dev, freq_hz, volt, volt, volt); in qcom_cpufreq_update_opp()
109 return dev_pm_opp_enable(cpu_dev, freq_hz); in qcom_cpufreq_update_opp()
329 unsigned long freq_hz, throttled_freq; in qcom_lmh_dcvs_notify() local
336 freq_hz = qcom_lmh_get_throttle_freq(data); in qcom_lmh_dcvs_notify()
338 opp = dev_pm_opp_find_freq_floor(dev, &freq_hz); in qcom_lmh_dcvs_notify()
340 opp = dev_pm_opp_find_freq_ceil(dev, &freq_hz); in qcom_lmh_dcvs_notify()
[all …]
H A Dimx6q-cpufreq.c61 unsigned long freq_hz, volt, volt_old; in imx6q_set_target() local
67 freq_hz = new_freq * 1000; in imx6q_set_target()
70 opp = dev_pm_opp_find_freq_ceil(cpu_dev, &freq_hz); in imx6q_set_target()
72 dev_err(cpu_dev, "failed to find OPP for %ld\n", freq_hz); in imx6q_set_target()
129 if (freq_hz > clk_get_rate(clks[PLL2_PFD2_396M].clk)) in imx6q_set_target()
137 if (freq_hz > clk_get_rate(clks[PLL2_BUS].clk)) { in imx6q_set_target()
144 if (freq_hz > clk_get_rate(clks[PLL2_PFD2_396M].clk)) { in imx6q_set_target()
H A Dmediatek-cpufreq.c209 long freq_hz, pre_freq_hz; in mtk_cpufreq_set_target() local
229 freq_hz = freq_table[index].frequency * 1000; in mtk_cpufreq_set_target()
231 opp = dev_pm_opp_find_freq_ceil(cpu_dev, &freq_hz); in mtk_cpufreq_set_target()
234 policy->cpu, freq_hz); in mtk_cpufreq_set_target()
274 ret = clk_set_rate(armpll, freq_hz); in mtk_cpufreq_set_target()
308 info->current_freq = freq_hz; in mtk_cpufreq_set_target()
/openbmc/linux/drivers/media/tuners/
H A Dxc5000.c45 u32 freq_hz, freq_offset; member
447 static int xc_set_rf_frequency(struct xc5000_priv *priv, u32 freq_hz) in xc_set_rf_frequency() argument
451 dprintk(1, "%s(%u)\n", __func__, freq_hz); in xc_set_rf_frequency()
453 if ((freq_hz > xc5000_tuner_ops.info.frequency_max_hz) || in xc_set_rf_frequency()
454 (freq_hz < xc5000_tuner_ops.info.frequency_min_hz)) in xc_set_rf_frequency()
457 freq_code = (u16)(freq_hz / 15625); in xc_set_rf_frequency()
560 static int xc_tune_channel(struct xc5000_priv *priv, u32 freq_hz, int mode) in xc_tune_channel() argument
562 dprintk(1, "%s(%u)\n", __func__, freq_hz); in xc_tune_channel()
564 if (xc_set_rf_frequency(priv, freq_hz) != 0) in xc_tune_channel()
716 xc_tune_channel(priv, priv->freq_hz, XC_TUNE_DIGITAL); in xc5000_tune_digital()
[all …]
H A Dxc4000.c79 u32 freq_hz, freq_offset; member
384 static int xc_set_rf_frequency(struct xc4000_priv *priv, u32 freq_hz) in xc_set_rf_frequency() argument
388 dprintk(1, "%s(%u)\n", __func__, freq_hz); in xc_set_rf_frequency()
390 if ((freq_hz > xc4000_tuner_ops.info.frequency_max_hz) || in xc_set_rf_frequency()
391 (freq_hz < xc4000_tuner_ops.info.frequency_min_hz)) in xc_set_rf_frequency()
394 freq_code = (u16)(freq_hz / 15625); in xc_set_rf_frequency()
496 static int xc_tune_channel(struct xc4000_priv *priv, u32 freq_hz) in xc_tune_channel() argument
501 dprintk(1, "%s(%u)\n", __func__, freq_hz); in xc_tune_channel()
505 result = xc_set_rf_frequency(priv, freq_hz); in xc_tune_channel()
1196 priv->freq_hz = c->frequency - priv->freq_offset; in xc4000_set_params()
[all …]
/openbmc/qemu/hw/timer/
H A Dgrlib_gptimer.c84 uint32_t freq_hz; /* System frequency */ member
147 value = unit->freq_hz / (scaler + 1); in grlib_gptimer_set_scaler()
149 value = unit->freq_hz; in grlib_gptimer_set_scaler()
367 ptimer_set_freq(timer->ptimer, unit->freq_hz); in grlib_gptimer_reset()
395 ptimer_set_freq(timer->ptimer, unit->freq_hz); in grlib_gptimer_realize()
407 DEFINE_PROP_UINT32("frequency", GPTimerUnit, freq_hz, 40000000),
H A Dxilinx_timer.c75 uint32_t freq_hz; member
228 ptimer_set_freq(xt->ptimer, t->freq_hz); in xilinx_timer_realize()
246 DEFINE_PROP_UINT32("clock-frequency", XpsTimerState, freq_hz, 62 * 1000000),
H A Dmss-timer.c237 ptimer_set_freq(st->ptimer, t->freq_hz); in mss_timer_init()
275 VMSTATE_UINT32(freq_hz, MSSTimerState),
284 DEFINE_PROP_UINT32("clock-frequency", MSSTimerState, freq_hz,
H A Dstm32f2xx_timer.c71 return muldiv64(t, s->freq_hz, 1000000000ULL) / (s->tim_psc + 1); in stm32f2xx_ns_to_ticks()
91 1000000000ULL, s->freq_hz); in stm32f2xx_timer_set_alarm()
303 freq_hz, 1000000000),
H A Davr_timer16.c170 t16->freq_hz = t16->cpu_freq_hz / divider; in avr_timer16_clksrc_update()
171 t16->period_ns = NANOSECONDS_PER_SECOND / t16->freq_hz; in avr_timer16_clksrc_update()
172 trace_avr_timer16_clksrc_update(t16->freq_hz, t16->period_ns, in avr_timer16_clksrc_update()
173 (uint64_t)(1e6 / t16->freq_hz)); in avr_timer16_clksrc_update()
H A Dsifive_pwm.c72 return muldiv64(time, s->freq_hz, NANOSECONDS_PER_SECOND); in sifive_pwm_ns_to_ticks()
78 return muldiv64(ticks, NANOSECONDS_PER_SECOND, s->freq_hz); in sifive_pwm_ticks_to_ns()
410 freq_hz, 500000000ULL),
/openbmc/linux/drivers/input/serio/
H A Dapbps2.c134 u32 freq_hz; in apbps2_of_probe() local
160 if (of_property_read_u32(ofdev->dev.of_node, "freq", &freq_hz)) { in apbps2_of_probe()
166 iowrite32be(freq_hz / 10000, &priv->regs->reload); in apbps2_of_probe()
/openbmc/linux/drivers/tty/serial/
H A Dapbuart.c571 const u32 *freq_hz; in grlib_apbuart_configure() local
581 freq_hz = of_get_property(np, "freq", NULL); in grlib_apbuart_configure()
583 if (!regs || !freq_hz || (*freq_hz == 0)) in grlib_apbuart_configure()
600 port->uartclk = *freq_hz; in grlib_apbuart_configure()
/openbmc/u-boot/drivers/clk/rockchip/
H A Dclk_rk3128.c76 static int pll_para_config(u32 freq_hz, struct pll_div *div) in pll_para_config() argument
85 u32 freq_khz = freq_hz / 1000; in pll_para_config()
87 if (!freq_hz) { in pll_para_config()
103 __func__, freq_hz); in pll_para_config()
133 __func__, freq_hz, in pll_para_config()
H A Dclk_rk3288.c227 static int pll_para_config(ulong freq_hz, struct pll_div *div, uint *ext_div) in pll_para_config() argument
235 uint freq_khz = freq_hz / 1000; in pll_para_config()
237 if (!freq_hz) { in pll_para_config()
258 __func__, freq_hz); in pll_para_config()
291 __func__, freq_hz, best_diff_khz * 1000); in pll_para_config()
/openbmc/qemu/include/hw/timer/
H A Dmss-timer.h59 uint32_t freq_hz; member
H A Dsifive_pwm.h54 uint64_t freq_hz; member
H A Davr_timer16.h87 uint64_t freq_hz; member
H A Dstm32f2xx_timer.h80 uint64_t freq_hz; member
/openbmc/linux/drivers/media/dvb-frontends/
H A Dcx24113.c296 s32 freq_hz = state->frequency * 1000; in cx24113_calc_pll_nf() local
316 dprintk("calculating N/F for %dHz with vcodiv %d\n", freq_hz, vcodiv); in cx24113_calc_pll_nf()
322 N = (freq_hz / 100 * vcodiv) * R; in cx24113_calc_pll_nf()
333 F = freq_hz; in cx24113_calc_pll_nf()
/openbmc/u-boot/drivers/firmware/
H A Dti_sci.h432 u64 freq_hz; member
505 u64 freq_hz; member
/openbmc/linux/drivers/memory/samsung/
H A Dexynos5422-dmc.c107 u32 freq_hz; member
294 if (dmc->opp[i].freq_hz <= target_rate) in find_target_freq_idx()
367 dmc->opp[idx - i].freq_hz = freq; in exynos5_init_freq_table()
420 if (dmc->opp[idx].freq_hz <= target_rate) in exynos5_dram_change_timings()
1016 aligned_freq = dmc->opp[idx].freq_hz; in exynos5_dmc_align_init_freq()
1018 aligned_freq = dmc->opp[dmc->opp_count - 1].freq_hz; in exynos5_dmc_align_init_freq()
1227 freq_mhz = dmc->opp[idx].freq_hz / 1000000; in of_get_dram_timings()
/openbmc/linux/drivers/gpu/drm/nouveau/include/nvfw/
H A Dsec2.h5 u32 freq_hz; member
H A Dpmu.h6 u32 freq_hz; member
/openbmc/u-boot/arch/x86/include/asm/
H A Dsfi.h106 u32 freq_hz; /* in HZ */ member

12