| /linux/drivers/clocksource/ |
| H A D | timer-econet-en751221.c | 27 u32 freq_hz; member 109 clockevents_config_and_register(cd, econet_timer.freq_hz, in cevt_init_cpu() 183 econet_timer.freq_hz = clk_get_rate(clk); in timer_init() 195 econet_timer.freq_hz, 301, ECONET_BITS, in timer_init() 207 econet_timer.freq_hz); in timer_init() 210 econet_timer.freq_hz / 1000000, in timer_init() 211 (econet_timer.freq_hz / 1000) % 1000); in timer_init()
|
| /linux/drivers/iio/imu/ |
| H A D | adis16550.c | 425 static int adis16550_set_freq_hz(struct adis16550 *st, u32 freq_hz) in adis16550_set_freq_hz() argument 437 if (!freq_hz) in adis16550_set_freq_hz() 443 unsigned long scaled_rate = lcm(st->clk_freq_hz, freq_hz); in adis16550_set_freq_hz() 463 dec = DIV_ROUND_CLOSEST(sample_rate, freq_hz); in adis16550_set_freq_hz() 473 static int adis16550_get_accl_filter_freq(struct adis16550 *st, int *freq_hz) in adis16550_get_accl_filter_freq() argument 483 *freq_hz = 100; in adis16550_get_accl_filter_freq() 485 *freq_hz = 0; in adis16550_get_accl_filter_freq() 490 static int adis16550_set_accl_filter_freq(struct adis16550 *st, int freq_hz) in adis16550_set_accl_filter_freq() argument 492 u8 en = freq_hz ? 1 : 0; in adis16550_set_accl_filter_freq() 499 static int adis16550_get_gyro_filter_freq(struct adis16550 *st, int *freq_hz) in adis16550_get_gyro_filter_freq() argument [all …]
|
| /linux/drivers/media/tuners/ |
| H A D | xc4000.c | 79 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/drivers/input/serio/ |
| H A D | apbps2.c | 134 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()
|
| /linux/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()
|
| H A D | mxl692_defs.h | 516 u32 freq_hz; member
|
| /linux/drivers/memory/samsung/ |
| H A D | exynos5422-dmc.c | 108 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/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
|
| /linux/drivers/iio/imu/inv_mpu6050/ |
| H A D | inv_mpu_core.c | 655 unsigned int freq_hz, period_us, min_sleep_us, max_sleep_us; in inv_mpu6050_read_channel_data() local 660 freq_hz = INV_MPU6050_DIVIDER_TO_FIFO_RATE(st->chip_config.divider); in inv_mpu6050_read_channel_data() 661 period_us = 1000000 / freq_hz; in inv_mpu6050_read_channel_data() 722 if (freq_hz > INV_MPU_MAGN_FREQ_HZ_MAX) { in inv_mpu6050_read_channel_data() 723 freq_hz = INV_MPU_MAGN_FREQ_HZ_MAX; in inv_mpu6050_read_channel_data() 724 period_us = 1000000 / freq_hz; in inv_mpu6050_read_channel_data()
|
| /linux/drivers/iio/accel/ |
| H A D | adxl367.c | 519 int freq_hz = adxl367_samp_freq_tbl[st->odr][0]; in adxl367_time_ms_to_samples() local 522 int freq_dhz = freq_hz * 10 + freq_microhz / 100000; in adxl367_time_ms_to_samples()
|
| /linux/drivers/net/wireless/morsemicro/mm81x/ |
| H A D | command_defs.h | 739 __le32 freq_hz; member 1483 __le32 freq_hz; member
|
| H A D | mac.c | 1443 u64 freq_hz = KHZ_TO_HZ(ieee80211_chandef_to_khz(chandef)); in mm81x_mac_ops_change_channel() local 1449 freq_hz, op_bw_mhz, pri_1mhz_idx, pri_chan_width_mhz); in mm81x_mac_ops_change_channel() 1451 ret = mm81x_mac_set_channel(mors, freq_hz, (u8)pri_1mhz_idx, op_bw_mhz, in mm81x_mac_ops_change_channel()
|
| /linux/drivers/hwmon/ |
| H A D | adt7475.c | 1677 int freq_hz; in _adt7475_pwm_properties_parse_args() local 1683 freq_hz = 1000000000UL / args[1]; in _adt7475_pwm_properties_parse_args() 1690 cfg->freq = find_closest(freq_hz, pwmfreq_table, ARRAY_SIZE(pwmfreq_table)); in _adt7475_pwm_properties_parse_args()
|
| /linux/Documentation/driver-api/ |
| H A D | pwm.rst | 190 use cases freq_hz and duty_percent might be better. Instead of calculating
|
| /linux/drivers/firmware/ |
| H A D | ti_sci.c | 1534 *match_freq = resp->freq_hz; in ti_sci_cmd_clk_get_match_freq() 1672 *freq = resp->freq_hz; in ti_sci_cmd_clk_get_freq()
|
| /linux/drivers/ufs/core/ |
| H A D | ufshcd.c | 9114 unsigned long freq_hz; member 9131 for (i = 0; ufs_ref_clk_freqs[i].freq_hz; i++) in ufs_get_bref_clk_from_hz() 9132 if (ufs_ref_clk_freqs[i].freq_hz == freq) in ufs_get_bref_clk_from_hz() 9175 ufs_ref_clk_freqs[freq].freq_hz); in ufshcd_set_dev_ref_clk() 9180 ufs_ref_clk_freqs[freq].freq_hz); in ufshcd_set_dev_ref_clk()
|