/drivers/net/wireless/b43/ |
D | radio_2059.c | 73 .freq = 2412, 80 .freq = 2417, 87 .freq = 2422, 94 .freq = 2427, 101 .freq = 2432, 108 .freq = 2437, 115 .freq = 2442, 122 .freq = 2447, 129 .freq = 2452, 136 .freq = 2457, [all …]
|
D | radio_2057.c | 193 .freq = 2412, 200 .freq = 2417, 207 .freq = 2422, 214 .freq = 2427, 221 .freq = 2432, 228 .freq = 2437, 235 .freq = 2442, 242 .freq = 2447, 249 .freq = 2452, 256 .freq = 2457, [all …]
|
D | radio_2055.c | 306 .freq = 4920, /* MHz */ 314 .freq = 4930, /* MHz */ 322 .freq = 4940, /* MHz */ 330 .freq = 4950, /* MHz */ 338 .freq = 4960, /* MHz */ 346 .freq = 4970, /* MHz */ 354 .freq = 4980, /* MHz */ 362 .freq = 4990, /* MHz */ 370 .freq = 5000, /* MHz */ 378 .freq = 5010, /* MHz */ [all …]
|
D | radio_2056.c | 3090 { .freq = 4920, 3098 { .freq = 4930, 3106 { .freq = 4940, 3114 { .freq = 4950, 3122 { .freq = 4960, 3130 { .freq = 4970, 3138 { .freq = 4980, 3146 { .freq = 4990, 3154 { .freq = 5000, 3162 { .freq = 5010, [all …]
|
/drivers/cpufreq/ |
D | freq_table.c | 42 unsigned int freq; in cpufreq_frequency_table_cpuinfo() local 45 freq = pos->frequency; in cpufreq_frequency_table_cpuinfo() 51 pr_debug("table entry %u: %u kHz\n", (int)(pos - table), freq); in cpufreq_frequency_table_cpuinfo() 52 if (freq < min_freq) in cpufreq_frequency_table_cpuinfo() 53 min_freq = freq; in cpufreq_frequency_table_cpuinfo() 54 if (freq > max_freq) in cpufreq_frequency_table_cpuinfo() 55 max_freq = freq; in cpufreq_frequency_table_cpuinfo() 73 unsigned int freq, next_larger = ~0; in cpufreq_frequency_table_verify() local 82 freq = pos->frequency; in cpufreq_frequency_table_verify() 84 if ((freq >= policy->min) && (freq <= policy->max)) { in cpufreq_frequency_table_verify() [all …]
|
D | s3c24xx-cpufreq.c | 67 cfg->freq.fclk = fclk = clk_get_rate(clk_fclk); in s3c_cpufreq_getcur() 68 cfg->freq.hclk = hclk = clk_get_rate(clk_hclk); in s3c_cpufreq_getcur() 69 cfg->freq.pclk = pclk = clk_get_rate(clk_pclk); in s3c_cpufreq_getcur() 70 cfg->freq.armclk = armclk = clk_get_rate(clk_arm); in s3c_cpufreq_getcur() 75 cfg->freq.hclk_tns = 1000000000 / (cfg->freq.hclk / 10); in s3c_cpufreq_getcur() 85 cfg->freq.fclk = pll; in s3c_cpufreq_calc() 86 cfg->freq.hclk = pll / cfg->divs.h_divisor; in s3c_cpufreq_calc() 87 cfg->freq.pclk = pll / cfg->divs.p_divisor; in s3c_cpufreq_calc() 90 cfg->freq.hclk_tns = 1000000000 / (cfg->freq.hclk / 10); in s3c_cpufreq_calc() 105 pfx, cfg->pll.frequency, cfg->freq.fclk, cfg->freq.armclk, in s3c_cpufreq_show() [all …]
|
D | s3c64xx-cpufreq.c | 113 struct cpufreq_frequency_table *freq; in s3c64xx_cpufreq_config_regulator() local 124 cpufreq_for_each_valid_entry(freq, s3c64xx_freq_table) { in s3c64xx_cpufreq_config_regulator() 125 dvfs = &s3c64xx_dvfs_table[freq->driver_data]; in s3c64xx_cpufreq_config_regulator() 136 freq->frequency); in s3c64xx_cpufreq_config_regulator() 137 freq->frequency = CPUFREQ_ENTRY_INVALID; in s3c64xx_cpufreq_config_regulator() 151 struct cpufreq_frequency_table *freq; in s3c64xx_cpufreq_driver_init() local 180 cpufreq_for_each_entry(freq, s3c64xx_freq_table) { in s3c64xx_cpufreq_driver_init() 184 r = clk_round_rate(policy->clk, freq->frequency * 1000); in s3c64xx_cpufreq_driver_init() 186 if (r != freq->frequency) { in s3c64xx_cpufreq_driver_init() 188 freq->frequency); in s3c64xx_cpufreq_driver_init() [all …]
|
/drivers/media/i2c/cx25840/ |
D | cx25840-audio.c | 44 static int cx25840_set_audclk_freq(struct i2c_client *client, u32 freq) in cx25840_set_audclk_freq() argument 49 switch (freq) { in cx25840_set_audclk_freq() 163 switch (freq) { in cx25840_set_audclk_freq() 289 state->audclk_freq = freq; in cx25840_set_audclk_freq() 294 static inline int cx25836_set_audclk_freq(struct i2c_client *client, u32 freq) in cx25836_set_audclk_freq() argument 296 return cx25840_set_audclk_freq(client, freq); in cx25836_set_audclk_freq() 299 static int cx23885_set_audclk_freq(struct i2c_client *client, u32 freq) in cx23885_set_audclk_freq() argument 304 switch (freq) { in cx23885_set_audclk_freq() 314 switch (freq) { in cx23885_set_audclk_freq() 336 state->audclk_freq = freq; in cx23885_set_audclk_freq() [all …]
|
/drivers/media/tuners/ |
D | mt2131.c | 100 u32 freq; in mt2131_set_params() local 109 freq = c->frequency / 1000; /* Hz -> kHz */ in mt2131_set_params() 110 dprintk(1, "%s() freq=%d\n", __func__, freq); in mt2131_set_params() 112 f_lo1 = freq + MT2131_IF1 * 1000; in mt2131_set_params() 114 f_lo2 = f_lo1 - freq - MT2131_IF2; in mt2131_set_params() 128 if (freq <= 82500) if_band_center = 0x00; else in mt2131_set_params() 129 if (freq <= 137500) if_band_center = 0x01; else in mt2131_set_params() 130 if (freq <= 192500) if_band_center = 0x02; else in mt2131_set_params() 131 if (freq <= 247500) if_band_center = 0x03; else in mt2131_set_params() 132 if (freq <= 302500) if_band_center = 0x04; else in mt2131_set_params() [all …]
|
D | mt2266.c | 130 u32 freq; in mt2266_set_params() local 139 freq = priv->frequency / 1000; /* Hz -> kHz */ in mt2266_set_params() 140 if (freq < 470000 && freq > 230000) in mt2266_set_params() 144 tune = 2 * freq * (8192/16) / (FREF/16); in mt2266_set_params() 145 band = (freq < 300000) ? MT2266_VHF : MT2266_UHF; in mt2266_set_params() 179 if (freq <= 495000) in mt2266_set_params() 181 else if (freq <= 525000) in mt2266_set_params() 183 else if (freq <= 550000) in mt2266_set_params() 185 else if (freq <= 580000) in mt2266_set_params() 187 else if (freq <= 605000) in mt2266_set_params() [all …]
|
D | tda18271-fe.c | 87 u32 freq, u32 bw) in tda18271_channel_configuration() argument 133 tda18271_calc_ir_measure(fe, &freq); in tda18271_channel_configuration() 135 tda18271_calc_bp_filter(fe, &freq); in tda18271_channel_configuration() 137 tda18271_calc_rf_band(fe, &freq); in tda18271_channel_configuration() 139 tda18271_calc_gain_taper(fe, &freq); in tda18271_channel_configuration() 166 N = map->if_freq * 1000 + freq; in tda18271_channel_configuration() 255 u32 freq) in tda18271c2_rf_tracking_filters_correction() argument 274 tda18271_calc_rf_cal(fe, &freq); in tda18271c2_rf_tracking_filters_correction() 277 i = tda18271_lookup_rf_band(fe, &freq, NULL); in tda18271c2_rf_tracking_filters_correction() 281 if ((0 == map[i].rf3) || (freq / 1000 < map[i].rf2)) { in tda18271c2_rf_tracking_filters_correction() [all …]
|
D | fc0013.c | 194 static int fc0013_set_vhf_track(struct fc0013_priv *priv, u32 freq) in fc0013_set_vhf_track() argument 203 if (freq <= 177500) { /* VHF Track: 7 */ in fc0013_set_vhf_track() 205 } else if (freq <= 184500) { /* VHF Track: 6 */ in fc0013_set_vhf_track() 207 } else if (freq <= 191500) { /* VHF Track: 5 */ in fc0013_set_vhf_track() 209 } else if (freq <= 198500) { /* VHF Track: 4 */ in fc0013_set_vhf_track() 211 } else if (freq <= 205500) { /* VHF Track: 3 */ in fc0013_set_vhf_track() 213 } else if (freq <= 219500) { /* VHF Track: 2 */ in fc0013_set_vhf_track() 215 } else if (freq < 300000) { /* VHF Track: 1 */ in fc0013_set_vhf_track() 229 u32 freq = p->frequency / 1000; in fc0013_set_params() local 238 FC_FE_CALLBACK_VHF_ENABLE, (freq > 300000 ? 0 : 1)); in fc0013_set_params() [all …]
|
/drivers/thermal/ |
D | devfreq_cooling.c | 113 unsigned int freq = dfc->freq_table[i]; in partition_enable_opps() local 117 opp = dev_pm_opp_find_freq_exact(dev, freq, !want_enable); in partition_enable_opps() 126 ret = dev_pm_opp_enable(dev, freq); in partition_enable_opps() 128 ret = dev_pm_opp_disable(dev, freq); in partition_enable_opps() 191 freq_get_state(struct devfreq_cooling_device *dfc, unsigned long freq) in freq_get_state() argument 196 if (dfc->freq_table[i] == freq) in freq_get_state() 214 get_static_power(struct devfreq_cooling_device *dfc, unsigned long freq) in get_static_power() argument 226 opp = dev_pm_opp_find_freq_exact(dev, freq, true); in get_static_power() 228 opp = dev_pm_opp_find_freq_exact(dev, freq, false); in get_static_power() 237 freq, IS_ERR(opp) ? PTR_ERR(opp) : 0); in get_static_power() [all …]
|
D | cpu_cooling.c | 161 unsigned int freq) in get_level() argument 166 if (freq == cpufreq_dev->freq_table[level]) in get_level() 169 if (freq > cpufreq_dev->freq_table[level]) in get_level() 187 unsigned long cpufreq_cooling_get_level(unsigned int cpu, unsigned int freq) in cpufreq_cooling_get_level() argument 194 unsigned long level = get_level(cpufreq_dev, freq); in cpufreq_cooling_get_level() 278 unsigned long freq; in build_dyn_power_table() local 304 for (freq = 0, i = 0; in build_dyn_power_table() 305 opp = dev_pm_opp_find_freq_ceil(dev, &freq), !IS_ERR(opp); in build_dyn_power_table() 306 freq++, i++) { in build_dyn_power_table() 316 freq_mhz = freq / 1000000; in build_dyn_power_table() [all …]
|
/drivers/media/radio/ |
D | tea575x.c | 159 u32 freq = val & TEA575X_BIT_FREQ_MASK; in snd_tea575x_val_to_freq() local 161 if (freq == 0) in snd_tea575x_val_to_freq() 162 return freq; in snd_tea575x_val_to_freq() 167 freq *= 125; in snd_tea575x_val_to_freq() 168 freq /= 10; in snd_tea575x_val_to_freq() 170 freq -= TEA575X_FMIF; in snd_tea575x_val_to_freq() 174 freq *= 125; in snd_tea575x_val_to_freq() 175 freq /= 10; in snd_tea575x_val_to_freq() 177 freq += TEA575X_FMIF; in snd_tea575x_val_to_freq() 181 freq -= TEA575X_AMIF; in snd_tea575x_val_to_freq() [all …]
|
D | radio-tea5777.c | 176 static u32 tea5777_freq_to_v4l2_freq(struct radio_tea5777 *tea, u32 freq) in tea5777_freq_to_v4l2_freq() argument 180 return (freq * TEA5777_FM_FREQ_STEP + TEA5777_FM_IF) * 16; in tea5777_freq_to_v4l2_freq() 182 return (freq * TEA5777_AM_FREQ_STEP + TEA5777_AM_IF) * 16; in tea5777_freq_to_v4l2_freq() 189 u32 freq; in radio_tea5777_set_freq() local 192 freq = clamp(tea->freq, bands[tea->band].rangelow, in radio_tea5777_set_freq() 194 freq = (freq + 8) / 16; /* to kHz */ in radio_tea5777_set_freq() 199 freq = (freq - TEA5777_FM_IF) / TEA5777_FM_FREQ_STEP; in radio_tea5777_set_freq() 201 tea->write_reg |= (u64)freq << TEA5777_W_FM_PLL_SHIFT; in radio_tea5777_set_freq() 212 freq = (freq - TEA5777_AM_IF) / TEA5777_AM_FREQ_STEP; in radio_tea5777_set_freq() 214 tea->write_reg |= (u64)freq << TEA5777_W_AM_PLL_SHIFT; in radio_tea5777_set_freq() [all …]
|
/drivers/misc/ |
D | ics932s401.c | 191 int m, n, freq; in calculate_cpu_freq() local 200 freq = BASE_CLOCK * (n + 8) / (m + 2); in calculate_cpu_freq() 201 freq /= divisors[data->regs[ICS932S401_REG_CPU_DIVISOR] >> in calculate_cpu_freq() 204 return freq; in calculate_cpu_freq() 221 int freq; in show_cpu_clock_sel() local 224 freq = calculate_cpu_freq(data); in show_cpu_clock_sel() 228 freq = fs_speeds[fid]; in show_cpu_clock_sel() 230 switch (freq) { in show_cpu_clock_sel() 232 freq = 160000; in show_cpu_clock_sel() 235 freq = 320000; in show_cpu_clock_sel() [all …]
|
/drivers/ssb/ |
D | driver_chipcommon_pmu.c | 51 u16 freq; /* Crystal frequency in kHz.*/ member 58 { .freq = 12000, .xf = 1, .wb_int = 73, .wb_frac = 349525, }, 59 { .freq = 13000, .xf = 2, .wb_int = 67, .wb_frac = 725937, }, 60 { .freq = 14400, .xf = 3, .wb_int = 61, .wb_frac = 116508, }, 61 { .freq = 15360, .xf = 4, .wb_int = 57, .wb_frac = 305834, }, 62 { .freq = 16200, .xf = 5, .wb_int = 54, .wb_frac = 336579, }, 63 { .freq = 16800, .xf = 6, .wb_int = 52, .wb_frac = 399457, }, 64 { .freq = 19200, .xf = 7, .wb_int = 45, .wb_frac = 873813, }, 65 { .freq = 19800, .xf = 8, .wb_int = 44, .wb_frac = 466033, }, 66 { .freq = 20000, .xf = 9, .wb_int = 44, .wb_frac = 0, }, [all …]
|
/drivers/clk/sunxi/ |
D | clk-sun9i-core.c | 35 static void sun9i_a80_get_pll4_factors(u32 *freq, u32 parent_rate, in sun9i_a80_get_pll4_factors() argument 43 n = DIV_ROUND_UP(*freq, 6000000); in sun9i_a80_get_pll4_factors() 63 *freq = ((24000000 * n) >> p) / (m + 1); in sun9i_a80_get_pll4_factors() 114 static void sun9i_a80_get_gt_factors(u32 *freq, u32 parent_rate, in sun9i_a80_get_gt_factors() argument 119 if (parent_rate < *freq) in sun9i_a80_get_gt_factors() 120 *freq = parent_rate; in sun9i_a80_get_gt_factors() 122 div = DIV_ROUND_UP(parent_rate, *freq); in sun9i_a80_get_gt_factors() 128 *freq = parent_rate / div; in sun9i_a80_get_gt_factors() 179 static void sun9i_a80_get_ahb_factors(u32 *freq, u32 parent_rate, in sun9i_a80_get_ahb_factors() argument 184 if (parent_rate < *freq) in sun9i_a80_get_ahb_factors() [all …]
|
D | clk-sunxi.c | 249 static void sun4i_get_pll1_factors(u32 *freq, u32 parent_rate, in sun4i_get_pll1_factors() argument 255 div = *freq / 6000000; in sun4i_get_pll1_factors() 256 *freq = 6000000 * div; in sun4i_get_pll1_factors() 266 if (*freq >= 768000000 || *freq == 42000000 || *freq == 54000000) in sun4i_get_pll1_factors() 300 static void sun6i_a31_get_pll1_factors(u32 *freq, u32 parent_rate, in sun6i_a31_get_pll1_factors() argument 307 u32 freq_mhz = *freq / 1000000; in sun6i_a31_get_pll1_factors() 322 *freq = freq_mhz * 1000000; in sun6i_a31_get_pll1_factors() 385 static void sun8i_a23_get_pll1_factors(u32 *freq, u32 parent_rate, in sun8i_a23_get_pll1_factors() argument 391 div = *freq / 6000000; in sun8i_a23_get_pll1_factors() 392 *freq = 6000000 * div; in sun8i_a23_get_pll1_factors() [all …]
|
/drivers/sh/clk/ |
D | core.c | 46 unsigned long freq; in clk_rate_table_build() local 62 freq = CPUFREQ_ENTRY_INVALID; in clk_rate_table_build() 64 freq = clk->parent->rate * mult / div; in clk_rate_table_build() 67 freq_table[i].frequency = freq; in clk_rate_table_build() 84 #define for_each_frequency(pos, r, freq) \ argument 85 for (pos = r->min, freq = r->func(pos, r); \ 86 pos <= r->max; pos++, freq = r->func(pos, r)) \ 87 if (unlikely(freq == 0)) \ 94 unsigned long highest, lowest, freq; in clk_rate_round_helper() local 101 for_each_frequency(i, rounder, freq) { in clk_rate_round_helper() [all …]
|
/drivers/clocksource/ |
D | fsl_ftm_timer.c | 201 static int __init ftm_clockevent_init(unsigned long freq, int irq) in ftm_clockevent_init() argument 220 freq / (1 << priv->ps), in ftm_clockevent_init() 228 static int __init ftm_clocksource_init(unsigned long freq) in ftm_clocksource_init() argument 237 sched_clock_register(ftm_read_sched_clock, 16, freq / (1 << priv->ps)); in ftm_clocksource_init() 239 freq / (1 << priv->ps), 300, 16, in ftm_clocksource_init() 284 long freq; in ftm_clk_init() local 286 freq = __ftm_clk_init(np, "ftm-evt-counter-en", "ftm-evt"); in ftm_clk_init() 287 if (freq <= 0) in ftm_clk_init() 290 freq = __ftm_clk_init(np, "ftm-src-counter-en", "ftm-src"); in ftm_clk_init() 291 if (freq <= 0) in ftm_clk_init() [all …]
|
/drivers/net/wireless/p54/ |
D | eeprom.c | 75 u16 freq; member 89 static int p54_get_band_from_freq(u16 freq) in p54_get_band_from_freq() argument 93 if ((freq >= 2412) && (freq <= 2484)) in p54_get_band_from_freq() 96 if ((freq >= 4920) && (freq <= 5825)) in p54_get_band_from_freq() 102 static int same_band(u16 freq, u16 freq2) in same_band() argument 104 return p54_get_band_from_freq(freq) == p54_get_band_from_freq(freq2); in same_band() 113 return a->freq - b->freq; in p54_compare_channels() 122 return a->freq - b->freq; in p54_compare_rssichan() 190 chan->index, chan->freq); in p54_generate_band() 195 dest->center_freq = chan->freq; in p54_generate_band() [all …]
|
/drivers/gpu/drm/nouveau/nvkm/subdev/clk/ |
D | gf100.c | 33 u32 freq; member 202 calc_div(struct gf100_clk *clk, int idx, u32 ref, u32 freq, u32 *ddiv) in calc_div() argument 204 u32 div = min((ref * 2) / freq, (u32)65); in calc_div() 213 calc_src(struct gf100_clk *clk, int idx, u32 freq, u32 *dsrc, u32 *ddiv) in calc_src() argument 219 switch (freq) { in calc_src() 223 if (freq == 108000) in calc_src() 225 return freq; in calc_src() 228 return freq; in calc_src() 237 sclk = calc_div(clk, idx, sclk, freq, ddiv); in calc_src() 242 calc_pll(struct gf100_clk *clk, int idx, u32 freq, u32 *coef) in calc_pll() argument [all …]
|
/drivers/devfreq/ |
D | governor_simpleondemand.c | 22 unsigned long *freq) in devfreq_simple_ondemand_func() argument 50 *freq = max; in devfreq_simple_ondemand_func() 63 *freq = max; in devfreq_simple_ondemand_func() 69 *freq = max; in devfreq_simple_ondemand_func() 76 *freq = stat->current_frequency; in devfreq_simple_ondemand_func() 86 *freq = (unsigned long) b; in devfreq_simple_ondemand_func() 88 if (df->min_freq && *freq < df->min_freq) in devfreq_simple_ondemand_func() 89 *freq = df->min_freq; in devfreq_simple_ondemand_func() 90 if (df->max_freq && *freq > df->max_freq) in devfreq_simple_ondemand_func() 91 *freq = df->max_freq; in devfreq_simple_ondemand_func()
|