Home
last modified time | relevance | path

Searched refs:freq (Results 1 – 25 of 722) sorted by relevance

12345678910>>...29

/drivers/net/wireless/broadcom/b43/
Dradio_2059.c73 .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 …]
Dradio_2057.c193 .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 …]
Dradio_2055.c306 .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 …]
Dradio_2056.c3090 { .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/
Dfreq_table.c42 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()
71 unsigned int freq, next_larger = ~0; in cpufreq_frequency_table_verify() local
80 freq = pos->frequency; in cpufreq_frequency_table_verify()
82 if ((freq >= policy->min) && (freq <= policy->max)) { in cpufreq_frequency_table_verify()
[all …]
Ds3c24xx-cpufreq.c69 cfg->freq.fclk = fclk = clk_get_rate(clk_fclk); in s3c_cpufreq_getcur()
70 cfg->freq.hclk = hclk = clk_get_rate(clk_hclk); in s3c_cpufreq_getcur()
71 cfg->freq.pclk = pclk = clk_get_rate(clk_pclk); in s3c_cpufreq_getcur()
72 cfg->freq.armclk = armclk = clk_get_rate(clk_arm); in s3c_cpufreq_getcur()
77 cfg->freq.hclk_tns = 1000000000 / (cfg->freq.hclk / 10); in s3c_cpufreq_getcur()
87 cfg->freq.fclk = pll; in s3c_cpufreq_calc()
88 cfg->freq.hclk = pll / cfg->divs.h_divisor; in s3c_cpufreq_calc()
89 cfg->freq.pclk = pll / cfg->divs.p_divisor; in s3c_cpufreq_calc()
92 cfg->freq.hclk_tns = 1000000000 / (cfg->freq.hclk / 10); in s3c_cpufreq_calc()
107 pfx, cfg->pll.frequency, cfg->freq.fclk, cfg->freq.armclk, in s3c_cpufreq_show()
[all …]
Ds3c64xx-cpufreq.c113 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/thermal/
Ddevfreq_cooling.c87 unsigned int freq = dfc->freq_table[i]; in partition_enable_opps() local
90 opp = dev_pm_opp_find_freq_exact(dev, freq, !want_enable); in partition_enable_opps()
100 ret = dev_pm_opp_enable(dev, freq); in partition_enable_opps()
102 ret = dev_pm_opp_disable(dev, freq); in partition_enable_opps()
165 freq_get_state(struct devfreq_cooling_device *dfc, unsigned long freq) in freq_get_state() argument
170 if (dfc->freq_table[i] == freq) in freq_get_state()
177 static unsigned long get_voltage(struct devfreq *df, unsigned long freq) in get_voltage() argument
183 opp = dev_pm_opp_find_freq_exact(dev, freq, true); in get_voltage()
185 opp = dev_pm_opp_find_freq_exact(dev, freq, false); in get_voltage()
189 freq, PTR_ERR(opp)); in get_voltage()
[all …]
Dcpu_cooling.c124 unsigned int freq) in get_level() argument
130 if (freq > freq_table[level].frequency) in get_level()
231 unsigned long freq = freq_table[i].frequency * 1000; in update_freq_table() local
240 opp = dev_pm_opp_find_freq_ceil(dev, &freq); in update_freq_table()
243 freq); in update_freq_table()
265 u32 freq) in cpu_freq_to_power() argument
271 if (freq > freq_table[i].frequency) in cpu_freq_to_power()
337 struct thermal_zone_device *tz, unsigned long freq, in get_static_power() argument
344 unsigned long freq_hz = freq * 1000; in get_static_power()
384 unsigned long freq) in get_dynamic_power() argument
[all …]
/drivers/media/i2c/cx25840/
Dcx25840-audio.c40 static int cx25840_set_audclk_freq(struct i2c_client *client, u32 freq) in cx25840_set_audclk_freq() argument
45 switch (freq) { in cx25840_set_audclk_freq()
159 switch (freq) { in cx25840_set_audclk_freq()
285 state->audclk_freq = freq; in cx25840_set_audclk_freq()
290 static inline int cx25836_set_audclk_freq(struct i2c_client *client, u32 freq) in cx25836_set_audclk_freq() argument
292 return cx25840_set_audclk_freq(client, freq); in cx25836_set_audclk_freq()
295 static int cx23885_set_audclk_freq(struct i2c_client *client, u32 freq) in cx23885_set_audclk_freq() argument
300 switch (freq) { in cx23885_set_audclk_freq()
310 switch (freq) { in cx23885_set_audclk_freq()
332 state->audclk_freq = freq; in cx23885_set_audclk_freq()
[all …]
/drivers/media/tuners/
Dmt2131.c96 u32 freq; in mt2131_set_params() local
105 freq = c->frequency / 1000; /* Hz -> kHz */ in mt2131_set_params()
106 dprintk(1, "%s() freq=%d\n", __func__, freq); in mt2131_set_params()
108 f_lo1 = freq + MT2131_IF1 * 1000; in mt2131_set_params()
110 f_lo2 = f_lo1 - freq - MT2131_IF2; in mt2131_set_params()
124 if (freq <= 82500) if_band_center = 0x00; else in mt2131_set_params()
125 if (freq <= 137500) if_band_center = 0x01; else in mt2131_set_params()
126 if (freq <= 192500) if_band_center = 0x02; else in mt2131_set_params()
127 if (freq <= 247500) if_band_center = 0x03; else in mt2131_set_params()
128 if (freq <= 302500) if_band_center = 0x04; else in mt2131_set_params()
[all …]
Dmt2266.c130 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 …]
Dtda18271-fe.c87 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 …]
Dfc0013.c189 static int fc0013_set_vhf_track(struct fc0013_priv *priv, u32 freq) in fc0013_set_vhf_track() argument
198 if (freq <= 177500) { /* VHF Track: 7 */ in fc0013_set_vhf_track()
200 } else if (freq <= 184500) { /* VHF Track: 6 */ in fc0013_set_vhf_track()
202 } else if (freq <= 191500) { /* VHF Track: 5 */ in fc0013_set_vhf_track()
204 } else if (freq <= 198500) { /* VHF Track: 4 */ in fc0013_set_vhf_track()
206 } else if (freq <= 205500) { /* VHF Track: 3 */ in fc0013_set_vhf_track()
208 } else if (freq <= 219500) { /* VHF Track: 2 */ in fc0013_set_vhf_track()
210 } else if (freq < 300000) { /* VHF Track: 1 */ in fc0013_set_vhf_track()
224 u32 freq = p->frequency / 1000; in fc0013_set_params() local
233 FC_FE_CALLBACK_VHF_ENABLE, (freq > 300000 ? 0 : 1)); in fc0013_set_params()
[all …]
/drivers/media/radio/
Dtea575x.c155 u32 freq = val & TEA575X_BIT_FREQ_MASK; in snd_tea575x_val_to_freq() local
157 if (freq == 0) in snd_tea575x_val_to_freq()
158 return freq; in snd_tea575x_val_to_freq()
163 freq *= 125; in snd_tea575x_val_to_freq()
164 freq /= 10; in snd_tea575x_val_to_freq()
166 freq -= TEA575X_FMIF; in snd_tea575x_val_to_freq()
170 freq *= 125; in snd_tea575x_val_to_freq()
171 freq /= 10; in snd_tea575x_val_to_freq()
173 freq += TEA575X_FMIF; in snd_tea575x_val_to_freq()
177 freq -= TEA575X_AMIF; in snd_tea575x_val_to_freq()
[all …]
Dradio-tea5777.c172 static u32 tea5777_freq_to_v4l2_freq(struct radio_tea5777 *tea, u32 freq) in tea5777_freq_to_v4l2_freq() argument
176 return (freq * TEA5777_FM_FREQ_STEP + TEA5777_FM_IF) * 16; in tea5777_freq_to_v4l2_freq()
178 return (freq * TEA5777_AM_FREQ_STEP + TEA5777_AM_IF) * 16; in tea5777_freq_to_v4l2_freq()
185 u32 freq; in radio_tea5777_set_freq() local
188 freq = clamp(tea->freq, bands[tea->band].rangelow, in radio_tea5777_set_freq()
190 freq = (freq + 8) / 16; /* to kHz */ in radio_tea5777_set_freq()
195 freq = (freq - TEA5777_FM_IF) / TEA5777_FM_FREQ_STEP; in radio_tea5777_set_freq()
197 tea->write_reg |= (u64)freq << TEA5777_W_FM_PLL_SHIFT; in radio_tea5777_set_freq()
208 freq = (freq - TEA5777_AM_IF) / TEA5777_AM_FREQ_STEP; in radio_tea5777_set_freq()
210 tea->write_reg |= (u64)freq << TEA5777_W_AM_PLL_SHIFT; in radio_tea5777_set_freq()
[all …]
/drivers/misc/
Dics932s401.c191 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/
Ddriver_chipcommon_pmu.c51 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/devfreq/
Dgovernor_passive.c19 unsigned long *freq) in devfreq_passive_get_target_freq() argument
34 ret = p_data->get_target_freq(devfreq, freq); in devfreq_passive_get_target_freq()
62 opp = devfreq_recommended_opp(parent_devfreq->dev.parent, freq, 0); in devfreq_passive_get_target_freq()
75 if (parent_devfreq->profile->freq_table[i] == *freq) in devfreq_passive_get_target_freq()
92 *freq = child_freq; in devfreq_passive_get_target_freq()
98 static int update_devfreq_passive(struct devfreq *devfreq, unsigned long freq) in update_devfreq_passive() argument
107 ret = devfreq->governor->get_target_freq(devfreq, &freq); in update_devfreq_passive()
111 ret = devfreq->profile->target(devfreq->dev.parent, &freq, 0); in update_devfreq_passive()
116 && (devfreq_update_status(devfreq, freq))) in update_devfreq_passive()
120 devfreq->previous_freq = freq; in update_devfreq_passive()
[all …]
Dgovernor_simpleondemand.c22 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()
/drivers/clocksource/
Dfsl_ftm_timer.c201 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/intersil/p54/
Deeprom.c75 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/base/power/opp/
Dcore.c268 unsigned long freq = 0; in dev_pm_opp_get_suspend_opp_freq() local
275 freq = dev_pm_opp_get_freq(opp_table->suspend_opp); in dev_pm_opp_get_suspend_opp_freq()
279 return freq; in dev_pm_opp_get_suspend_opp_freq()
342 unsigned long freq, in dev_pm_opp_find_freq_exact() argument
360 temp_opp->rate == freq) { in dev_pm_opp_find_freq_exact()
377 unsigned long *freq) in _find_freq_ceil() argument
384 if (temp_opp->available && temp_opp->rate >= *freq) { in _find_freq_ceil()
386 *freq = opp->rate; in _find_freq_ceil()
418 unsigned long *freq) in dev_pm_opp_find_freq_ceil() argument
423 if (!dev || !freq) { in dev_pm_opp_find_freq_ceil()
[all …]
/drivers/gpu/drm/nouveau/nvkm/subdev/clk/
Dgf100.c33 u32 freq; member
210 calc_div(struct gf100_clk *clk, int idx, u32 ref, u32 freq, u32 *ddiv) in calc_div() argument
212 u32 div = min((ref * 2) / freq, (u32)65); in calc_div()
221 calc_src(struct gf100_clk *clk, int idx, u32 freq, u32 *dsrc, u32 *ddiv) in calc_src() argument
227 switch (freq) { in calc_src()
231 if (freq == 108000) in calc_src()
233 return freq; in calc_src()
236 return freq; in calc_src()
245 sclk = calc_div(clk, idx, sclk, freq, ddiv); in calc_src()
250 calc_pll(struct gf100_clk *clk, int idx, u32 freq, u32 *coef) in calc_pll() argument
[all …]
/drivers/net/wireless/broadcom/b43legacy/
Dmain.h46 u8 b43legacy_freq_to_channel_bg(int freq) in b43legacy_freq_to_channel_bg() argument
50 if (freq == 2484) in b43legacy_freq_to_channel_bg()
53 channel = (freq - 2407) / 5; in b43legacy_freq_to_channel_bg()
59 int freq) in b43legacy_freq_to_channel() argument
61 return b43legacy_freq_to_channel_bg(freq); in b43legacy_freq_to_channel()
68 int freq; in b43legacy_channel_to_freq_bg() local
71 freq = 2484; in b43legacy_channel_to_freq_bg()
73 freq = 2407 + (5 * channel); in b43legacy_channel_to_freq_bg()
75 return freq; in b43legacy_channel_to_freq_bg()

12345678910>>...29