Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/cpufreq/
Dqcom-cpufreq-hw.c75 unsigned long freq_hz = freq_khz * 1000; in qcom_cpufreq_set_bw() local
84 opp = dev_pm_opp_find_freq_exact(dev, freq_hz, true); in qcom_cpufreq_set_bw()
97 unsigned long freq_hz = freq_khz * 1000; in qcom_cpufreq_update_opp() local
102 return dev_pm_opp_add(cpu_dev, freq_hz, volt); in qcom_cpufreq_update_opp()
104 ret = dev_pm_opp_adjust_voltage(cpu_dev, freq_hz, volt, volt, volt); in qcom_cpufreq_update_opp()
110 return dev_pm_opp_enable(cpu_dev, freq_hz); in qcom_cpufreq_update_opp()
330 unsigned long freq_hz, throttled_freq; in qcom_lmh_dcvs_notify() local
337 freq_hz = qcom_lmh_get_throttle_freq(data); in qcom_lmh_dcvs_notify()
339 opp = dev_pm_opp_find_freq_floor(dev, &freq_hz); in qcom_lmh_dcvs_notify()
341 opp = dev_pm_opp_find_freq_ceil(dev, &freq_hz); in qcom_lmh_dcvs_notify()
[all …]
Dimx6q-cpufreq.c63 unsigned long freq_hz, volt, volt_old; in imx6q_set_target() local
69 freq_hz = new_freq * 1000; in imx6q_set_target()
72 opp = dev_pm_opp_find_freq_ceil(cpu_dev, &freq_hz); in imx6q_set_target()
74 dev_err(cpu_dev, "failed to find OPP for %ld\n", freq_hz); in imx6q_set_target()
131 if (freq_hz > clk_get_rate(clks[PLL2_PFD2_396M].clk)) in imx6q_set_target()
139 if (freq_hz > clk_get_rate(clks[PLL2_BUS].clk)) { in imx6q_set_target()
146 if (freq_hz > clk_get_rate(clks[PLL2_PFD2_396M].clk)) { in imx6q_set_target()
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()
/linux-6.12.1/drivers/media/tuners/
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 …]
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 …]
/linux-6.12.1/drivers/input/serio/
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()
/linux-6.12.1/drivers/tty/serial/
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()
/linux-6.12.1/drivers/media/dvb-frontends/
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()
Dmxl692_defs.h516 u32 freq_hz; member
Dmxl692.c1054 tuner_params.freq_hz = p->frequency; in mxl692_set_frontend()
1058 dev_dbg(&dev->i2c_client->dev, " Tuning Freq: %d %s\n", tuner_params.freq_hz, in mxl692_set_frontend()
/linux-6.12.1/drivers/memory/samsung/
Dexynos5422-dmc.c108 u32 freq_hz; member
295 if (dmc->opp[i].freq_hz <= target_rate) in find_target_freq_idx()
369 dmc->opp[idx - i].freq_hz = freq; in exynos5_init_freq_table()
422 if (dmc->opp[idx].freq_hz <= target_rate) in exynos5_dram_change_timings()
1018 aligned_freq = dmc->opp[idx].freq_hz; in exynos5_dmc_align_init_freq()
1020 aligned_freq = dmc->opp[dmc->opp_count - 1].freq_hz; in exynos5_dmc_align_init_freq()
1222 freq_mhz = dmc->opp[idx].freq_hz / 1000000; in of_get_dram_timings()
/linux-6.12.1/drivers/gpu/drm/nouveau/include/nvfw/
Dpmu.h6 u32 freq_hz; member
Dsec2.h5 u32 freq_hz; member
/linux-6.12.1/drivers/firmware/
Dti_sci.h466 u64 freq_hz; member
545 u64 freq_hz; member
Dti_sci.c1508 *match_freq = resp->freq_hz; in ti_sci_cmd_clk_get_match_freq()
1646 *freq = resp->freq_hz; in ti_sci_cmd_clk_get_freq()
/linux-6.12.1/drivers/iio/imu/inv_mpu6050/
Dinv_mpu_core.c627 unsigned int freq_hz, period_us, min_sleep_us, max_sleep_us; in inv_mpu6050_read_channel_data() local
632 freq_hz = INV_MPU6050_DIVIDER_TO_FIFO_RATE(st->chip_config.divider); in inv_mpu6050_read_channel_data()
633 period_us = 1000000 / freq_hz; in inv_mpu6050_read_channel_data()
694 if (freq_hz > INV_MPU_MAGN_FREQ_HZ_MAX) { in inv_mpu6050_read_channel_data()
695 freq_hz = INV_MPU_MAGN_FREQ_HZ_MAX; in inv_mpu6050_read_channel_data()
696 period_us = 1000000 / freq_hz; in inv_mpu6050_read_channel_data()
/linux-6.12.1/drivers/iio/accel/
Dadxl367.c523 int freq_hz = adxl367_samp_freq_tbl[st->odr][0]; in adxl367_time_ms_to_samples() local
526 int freq_dhz = freq_hz * 10 + freq_microhz / 100000; in adxl367_time_ms_to_samples()
/linux-6.12.1/drivers/hwmon/
Dadt7475.c1676 int freq_hz; in _adt7475_pwm_properties_parse_args() local
1682 freq_hz = 1000000000UL / args[1]; in _adt7475_pwm_properties_parse_args()
1689 cfg->freq = find_closest(freq_hz, pwmfreq_table, ARRAY_SIZE(pwmfreq_table)); in _adt7475_pwm_properties_parse_args()
/linux-6.12.1/Documentation/driver-api/
Dpwm.rst185 use cases freq_hz and duty_percent might be better. Instead of calculating
/linux-6.12.1/drivers/ufs/core/
Dufshcd.c8470 unsigned long freq_hz; member
8487 for (i = 0; ufs_ref_clk_freqs[i].freq_hz; i++) in ufs_get_bref_clk_from_hz()
8488 if (ufs_ref_clk_freqs[i].freq_hz == freq) in ufs_get_bref_clk_from_hz()
8531 ufs_ref_clk_freqs[freq].freq_hz); in ufshcd_set_dev_ref_clk()
8536 ufs_ref_clk_freqs[freq].freq_hz); in ufshcd_set_dev_ref_clk()