| /OK3568_Linux_fs/kernel/drivers/media/tuners/ |
| H A D | xc5000.c | 45 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 D | xc4000.c | 79 u32 freq_hz, freq_offset; member 386 static int xc_set_rf_frequency(struct xc4000_priv *priv, u32 freq_hz) in xc_set_rf_frequency() argument 390 dprintk(1, "%s(%u)\n", __func__, freq_hz); in xc_set_rf_frequency() 392 if ((freq_hz > xc4000_tuner_ops.info.frequency_max_hz) || in xc_set_rf_frequency() 393 (freq_hz < xc4000_tuner_ops.info.frequency_min_hz)) in xc_set_rf_frequency() 396 freq_code = (u16)(freq_hz / 15625); in xc_set_rf_frequency() 498 static int xc_tune_channel(struct xc4000_priv *priv, u32 freq_hz) in xc_tune_channel() argument 503 dprintk(1, "%s(%u)\n", __func__, freq_hz); in xc_tune_channel() 507 result = xc_set_rf_frequency(priv, freq_hz); in xc_tune_channel() 1198 priv->freq_hz = c->frequency - priv->freq_offset; in xc4000_set_params() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/cpufreq/ |
| H A D | imx6q-cpufreq.c | 61 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 D | qcom-cpufreq-hw.c | 45 unsigned long freq_hz = freq_khz * 1000; in qcom_cpufreq_set_bw() local 54 opp = dev_pm_opp_find_freq_exact(dev, freq_hz, true); in qcom_cpufreq_set_bw() 67 unsigned long freq_hz = freq_khz * 1000; in qcom_cpufreq_update_opp() local 72 return dev_pm_opp_add(cpu_dev, freq_hz, volt); in qcom_cpufreq_update_opp() 74 ret = dev_pm_opp_adjust_voltage(cpu_dev, freq_hz, volt, volt, volt); in qcom_cpufreq_update_opp() 80 return dev_pm_opp_enable(cpu_dev, freq_hz); in qcom_cpufreq_update_opp()
|
| H A D | mediatek-cpufreq.c | 213 long freq_hz, old_freq_hz; in mtk_cpufreq_set_target() local 225 freq_hz = freq_table[index].frequency * 1000; in mtk_cpufreq_set_target() 227 opp = dev_pm_opp_find_freq_ceil(cpu_dev, &freq_hz); in mtk_cpufreq_set_target() 230 policy->cpu, freq_hz); in mtk_cpufreq_set_target() 262 ret = clk_set_rate(armpll, freq_hz); in mtk_cpufreq_set_target()
|
| /OK3568_Linux_fs/kernel/drivers/watchdog/ |
| H A D | intel_scu_watchdog.c | 202 timer_margin * watchdog_device.timer_tbl_ptr->freq_hz; in intel_scu_set_heartbeat() 205 * watchdog_device.timer_tbl_ptr->freq_hz; in intel_scu_set_heartbeat() 208 watchdog_device.timer_tbl_ptr->freq_hz); in intel_scu_set_heartbeat() 484 timer_margin * watchdog_device.timer_tbl_ptr->freq_hz; in intel_scu_watchdog_init() 487 * watchdog_device.timer_tbl_ptr->freq_hz; in intel_scu_watchdog_init()
|
| /OK3568_Linux_fs/kernel/drivers/input/serio/ |
| H A D | apbps2.c | 135 u32 freq_hz; in apbps2_of_probe() local 163 if (of_property_read_u32(ofdev->dev.of_node, "freq", &freq_hz)) { in apbps2_of_probe() 169 iowrite32be(freq_hz / 10000, &priv->regs->reload); in apbps2_of_probe()
|
| /OK3568_Linux_fs/kernel/drivers/tty/serial/ |
| H A D | apbuart.c | 599 const u32 *freq_hz; in grlib_apbuart_configure() local 609 freq_hz = of_get_property(np, "freq", NULL); in grlib_apbuart_configure() 611 if (!regs || !freq_hz || (*freq_hz == 0)) in grlib_apbuart_configure() 628 port->uartclk = *freq_hz; in grlib_apbuart_configure()
|
| /OK3568_Linux_fs/u-boot/drivers/clk/rockchip/ |
| H A D | clk_rk3288.c | 223 struct pll_div *rkclk_get_pll_config(ulong freq_hz) in rkclk_get_pll_config() argument 229 if (freq_hz == rk3288_pll_rates[i].rate) in rkclk_get_pll_config() 355 static int pll_para_config(ulong freq_hz, struct pll_div *div, uint *ext_div) in pll_para_config() argument 364 uint freq_khz = freq_hz / 1000; in pll_para_config() 366 if (!freq_hz) { in pll_para_config() 373 *ext_div = DIV_ROUND_UP(PLL_LIMIT_FREQ, freq_hz); in pll_para_config() 377 best_div = rkclk_get_pll_config(freq_hz * (*ext_div)); in pll_para_config() 396 __func__, freq_hz); in pll_para_config() 429 __func__, freq_hz, best_diff_khz * 1000); in pll_para_config()
|
| H A D | clk_rk3368.c | 129 struct pll_div *rkclk_get_pll_config(ulong freq_hz) in rkclk_get_pll_config() argument 135 if (freq_hz == rk3368_pll_rates[i].rate) in rkclk_get_pll_config() 141 static int pll_para_config(ulong freq_hz, struct pll_div *div, uint *ext_div) in pll_para_config() argument 150 uint freq_khz = freq_hz / 1000; in pll_para_config() 152 if (!freq_hz) { in pll_para_config() 159 *ext_div = DIV_ROUND_UP(PLL_LIMIT_FREQ, freq_hz); in pll_para_config() 163 best_div = rkclk_get_pll_config(freq_hz * (*ext_div)); in pll_para_config() 182 __func__, freq_hz); in pll_para_config() 215 __func__, freq_hz, best_diff_khz * 1000); in pll_para_config()
|
| H A D | clk_rk3399.c | 445 static int pll_para_config(u32 freq_hz, struct pll_div *div) in pll_para_config() argument 454 u32 freq_khz = freq_hz / KHz; in pll_para_config() 456 if (!freq_hz) { in pll_para_config() 472 " for Frequency (%uHz).\n", __func__, freq_hz); in pll_para_config() 502 "difference is %u Hz,exceed 4MHZ\n", __func__, freq_hz, in pll_para_config()
|
| /OK3568_Linux_fs/kernel/drivers/media/dvb-frontends/ |
| H A D | cx24113.c | 296 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()
|
| /OK3568_Linux_fs/kernel/drivers/memory/samsung/ |
| H A D | exynos5422-dmc.c | 107 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() 425 if (dmc->opp[idx].freq_hz <= target_rate) in exynos5_dram_change_timings() 1021 aligned_freq = dmc->opp[idx].freq_hz; in exynos5_dmc_align_init_freq() 1023 aligned_freq = dmc->opp[dmc->opp_count - 1].freq_hz; in exynos5_dmc_align_init_freq() 1232 freq_mhz = dmc->opp[idx].freq_hz / 1000000; in of_get_dram_timings()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/nouveau/include/nvfw/ |
| H A D | sec2.h | 5 u32 freq_hz; member
|
| H A D | pmu.h | 6 u32 freq_hz; member
|
| /OK3568_Linux_fs/kernel/drivers/iio/imu/inv_mpu6050/ |
| H A D | inv_mpu_core.c | 557 unsigned int freq_hz, period_us, min_sleep_us, max_sleep_us; in inv_mpu6050_read_channel_data() local 562 freq_hz = INV_MPU6050_DIVIDER_TO_FIFO_RATE(st->chip_config.divider); in inv_mpu6050_read_channel_data() 563 period_us = 1000000 / freq_hz; in inv_mpu6050_read_channel_data() 626 if (freq_hz > INV_MPU_MAGN_FREQ_HZ_MAX) { in inv_mpu6050_read_channel_data() 627 freq_hz = INV_MPU_MAGN_FREQ_HZ_MAX; in inv_mpu6050_read_channel_data() 628 period_us = 1000000 / freq_hz; in inv_mpu6050_read_channel_data()
|
| /OK3568_Linux_fs/kernel/include/linux/ |
| H A D | sfi.h | 143 u32 freq_hz; /* in HZ */ member
|
| /OK3568_Linux_fs/u-boot/arch/x86/include/asm/ |
| H A D | sfi.h | 107 u32 freq_hz; /* in HZ */ member
|
| /OK3568_Linux_fs/kernel/drivers/firmware/ |
| H A D | ti_sci.h | 467 u64 freq_hz; member 546 u64 freq_hz; member
|
| H A D | ti_sci.c | 1505 *match_freq = resp->freq_hz; in ti_sci_cmd_clk_get_match_freq() 1643 *freq = resp->freq_hz; in ti_sci_cmd_clk_get_freq()
|
| /OK3568_Linux_fs/kernel/arch/x86/kernel/ |
| H A D | apb_timer.c | 104 apbt_freq = mtmr->freq_hz; in apbt_set_mapping()
|
| /OK3568_Linux_fs/kernel/drivers/scsi/ufs/ |
| H A D | ufs.h | 402 unsigned long freq_hz; member
|
| H A D | ufshcd.c | 7740 for (i = 0; ufs_ref_clk_freqs[i].freq_hz; i++) in ufs_get_bref_clk_from_hz() 7741 if (ufs_ref_clk_freqs[i].freq_hz == freq) in ufs_get_bref_clk_from_hz() 7784 ufs_ref_clk_freqs[freq].freq_hz); in ufshcd_set_dev_ref_clk() 7789 ufs_ref_clk_freqs[freq].freq_hz); in ufshcd_set_dev_ref_clk()
|
| /OK3568_Linux_fs/kernel/arch/x86/platform/intel-mid/ |
| H A D | sfi.c | 92 pentry->freq_hz, pentry->irq); in sfi_parse_mtmr()
|
| /OK3568_Linux_fs/kernel/Documentation/driver-api/ |
| H A D | pwm.rst | 164 use cases freq_hz and duty_percent might be better. Instead of calculating
|