Searched refs:freq (Results 1 - 25 of 437) sorted by relevance

1234567891011>>

/drivers/devfreq/
H A Dgovernor_performance.c16 unsigned long *freq)
23 *freq = UINT_MAX;
25 *freq = df->max_freq;
15 devfreq_performance_func(struct devfreq *df, unsigned long *freq) argument
H A Dgovernor_powersave.c16 unsigned long *freq)
22 *freq = df->min_freq;
15 devfreq_powersave_func(struct devfreq *df, unsigned long *freq) argument
H A Dgovernor_simpleondemand.c20 unsigned long *freq)
45 *freq = max;
58 *freq = max;
64 *freq = max;
71 *freq = stat.current_frequency;
81 *freq = (unsigned long) b;
83 if (df->min_freq && *freq < df->min_freq)
84 *freq = df->min_freq;
85 if (df->max_freq && *freq > df->max_freq)
86 *freq
19 devfreq_simple_ondemand_func(struct devfreq *df, unsigned long *freq) argument
[all...]
/drivers/video/matrox/
H A Dmatroxfb_misc.h7 int matroxfb_PLL_calcclock(const struct matrox_pll_features* pll, unsigned int freq, unsigned int fmax,
10 unsigned int freq, unsigned int fmax,
14 return matroxfb_PLL_calcclock(&minfo->features.pll, freq, fmax, in, feed, post);
9 PLL_calcclock(const struct matrox_fb_info *minfo, unsigned int freq, unsigned int fmax, unsigned int *in, unsigned int *feed, unsigned int *post) argument
/drivers/cpufreq/
H A Dfreq_table.c29 unsigned int freq = table[i].frequency; local
30 if (freq == CPUFREQ_ENTRY_INVALID) {
36 i, freq, table[i].index);
37 if (freq < min_freq)
38 min_freq = freq;
39 if (freq > max_freq)
40 max_freq = freq;
71 unsigned int freq = table[i].frequency; local
72 if (freq == CPUFREQ_ENTRY_INVALID)
74 if ((freq >
126 unsigned int freq = table[i].frequency; local
[all...]
H A Dcpufreq_userspace.c32 static DEFINE_PER_CPU(unsigned int, cpu_cur_freq); /* current CPU freq */
33 static DEFINE_PER_CPU(unsigned int, cpu_set_freq); /* CPU freq desired by
45 struct cpufreq_freqs *freq = data; local
47 if (!per_cpu(cpu_is_managed, freq->cpu))
52 freq->cpu, freq->new);
53 per_cpu(cpu_cur_freq, freq->cpu) = freq->new;
66 * @policy: pointer to policy struct where freq is being set
67 * @freq
71 cpufreq_set(struct cpufreq_policy *policy, unsigned int freq) argument
[all...]
H A Ds3c64xx-cpufreq.c153 struct cpufreq_frequency_table *freq; local
161 freq = s3c64xx_freq_table;
162 while (count > 0 && freq->frequency != CPUFREQ_TABLE_END) {
163 if (freq->frequency == CPUFREQ_ENTRY_INVALID)
166 dvfs = &s3c64xx_dvfs_table[freq->index];
177 freq->frequency);
178 freq->frequency = CPUFREQ_ENTRY_INVALID;
181 freq++;
193 struct cpufreq_frequency_table *freq; local
222 freq
[all...]
H A Ds3c2416-cpufreq.c115 unsigned int freq)
119 if (clk_get_rate(s3c_freq->armdiv) / 1000 != freq) {
120 ret = clk_set_rate(s3c_freq->armdiv, freq * 1000);
123 freq, ret);
302 struct cpufreq_frequency_table *freq; local
311 freq = s3c_freq->freq_table;
312 while (count > 0 && freq->frequency != CPUFREQ_TABLE_END) {
313 if (freq->frequency == CPUFREQ_ENTRY_INVALID)
316 dvfs = &s3c2416_dvfs_table[freq->index];
328 freq
114 s3c2416_cpufreq_set_armdiv(struct s3c2416_data *s3c_freq, unsigned int freq) argument
374 struct cpufreq_frequency_table *freq; local
[all...]
/drivers/net/wireless/b43legacy/
H A Dmain.h46 u8 b43legacy_freq_to_channel_bg(int freq) argument
50 if (freq == 2484)
53 channel = (freq - 2407) / 5;
59 int freq)
61 return b43legacy_freq_to_channel_bg(freq);
68 int freq; local
71 freq = 2484;
73 freq = 2407 + (5 * channel);
75 return freq;
58 b43legacy_freq_to_channel(struct b43legacy_wldev *dev, int freq) argument
/drivers/net/ethernet/stmicro/stmmac/
H A Dstmmac_timer.h28 unsigned int freq; member in struct:stmmac_timer
H A Dstmmac_timer.c36 #define STMMAC_TIMER_MSG(timer, freq) \
37 printk(KERN_INFO "stmmac_timer: %s Timer ON (freq %dHz)\n", timer, freq);
69 if ((rtc_irq_set_freq(stmmac_rtc, &stmmac_task, tm->freq) < 0)) {
76 STMMAC_TIMER_MSG(CONFIG_RTC_HCTOSYS_DEVICE, tm->freq);
120 STMMAC_TIMER_MSG("TMU2", tm->freq);
/drivers/net/wireless/b43/
H A Dmain.h63 static inline u8 b43_freq_to_channel_5ghz(int freq) argument
65 return ((freq - 5000) / 5);
67 static inline u8 b43_freq_to_channel_2ghz(int freq) argument
71 if (freq == 2484)
74 channel = (freq - 2407) / 5;
86 int freq; local
89 freq = 2484;
91 freq = 2407 + (5 * channel);
93 return freq;
/drivers/media/common/tuners/
H A Dmt2131.c100 u32 freq; local
109 freq = c->frequency / 1000; /* Hz -> kHz */
110 dprintk(1, "%s() freq=%d\n", __func__, freq);
112 f_lo1 = freq + MT2131_IF1 * 1000;
114 f_lo2 = f_lo1 - freq - MT2131_IF2;
128 if (freq <= 82500) if_band_center = 0x00; else
129 if (freq <= 137500) if_band_center = 0x01; else
130 if (freq <= 192500) if_band_center = 0x02; else
131 if (freq <
[all...]
H A Dmt2266.c130 u32 freq; local
139 freq = priv->frequency / 1000; /* Hz -> kHz */
140 if (freq < 470000 && freq > 230000)
144 tune = 2 * freq * (8192/16) / (FREF/16);
145 band = (freq < 300000) ? MT2266_VHF : MT2266_UHF;
179 if (freq <= 495000)
181 else if (freq <= 525000)
183 else if (freq <= 550000)
185 else if (freq <
[all...]
H A Dtda18271-fe.c86 u32 freq, u32 bw)
132 tda18271_calc_ir_measure(fe, &freq);
134 tda18271_calc_bp_filter(fe, &freq);
136 tda18271_calc_rf_band(fe, &freq);
138 tda18271_calc_gain_taper(fe, &freq);
165 N = map->if_freq * 1000 + freq;
254 u32 freq)
273 tda18271_calc_rf_cal(fe, &freq);
276 i = tda18271_lookup_rf_band(fe, &freq, NULL);
280 if ((0 == map[i].rf3) || (freq / 100
84 tda18271_channel_configuration(struct dvb_frontend *fe, struct tda18271_std_map_item *map, u32 freq, u32 bw) argument
253 tda18271c2_rf_tracking_filters_correction(struct dvb_frontend *fe, u32 freq) argument
337 tda18271_calibrate_rf(struct dvb_frontend *fe, u32 freq) argument
448 u32 freq; local
570 tda18271_rf_tracking_filters_init(struct dvb_frontend *fe, u32 freq) argument
704 tda18271c1_rf_tracking_filter_calibration(struct dvb_frontend *fe, u32 freq, u32 bw) argument
895 tda18271_tune(struct dvb_frontend *fe, struct tda18271_std_map_item *map, u32 freq, u32 bw) argument
936 u32 freq = c->frequency; local
1002 u32 freq = params->frequency * 125 * local
[all...]
/drivers/media/video/cx25840/
H A Dcx25840-audio.c30 * NTSC Color subcarrier freq * 8 = 4.5 MHz/286 * 455/2 * 8 = 28.63636363... MHz
44 static int cx25840_set_audclk_freq(struct i2c_client *client, u32 freq) argument
49 switch (freq) {
163 switch (freq) {
289 state->audclk_freq = freq;
294 static inline int cx25836_set_audclk_freq(struct i2c_client *client, u32 freq) argument
296 return cx25840_set_audclk_freq(client, freq);
299 static int cx23885_set_audclk_freq(struct i2c_client *client, u32 freq) argument
304 switch (freq) {
314 switch (freq) {
341 cx231xx_set_audclk_freq(struct i2c_client *client, u32 freq) argument
417 set_audclk_freq(struct i2c_client *client, u32 freq) argument
517 cx25840_s_clock_freq(struct v4l2_subdev *sd, u32 freq) argument
[all...]
/drivers/sh/clk/
H A Dcore.c46 unsigned long freq; local
62 freq = CPUFREQ_ENTRY_INVALID;
64 freq = clk->parent->rate * mult / div;
67 freq_table[i].frequency = freq;
84 #define for_each_frequency(pos, r, freq) \
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; local
101 for_each_frequency(i, rounder, freq) {
129 unsigned long freq = freq_table[pos].frequency; local
202 unsigned long freq = freq_table[i].frequency; local
568 struct cpufreq_frequency_table *freq, *best = NULL; local
[all...]
/drivers/clocksource/
H A Dscx200_hrt.c33 MODULE_PARM_DESC(ppm, "+-adjust to actual XO freq (ppm)");
63 u32 freq; local
80 freq = (HRT_FREQ + ppm);
82 freq *= 27;
86 return clocksource_register_hz(&cs_hrt, freq);
/drivers/net/can/softing/
H A Dsofting_platform.h22 unsigned int freq; /* operating frequency in Hz */ member in struct:softing_platform_data
/drivers/misc/
H A Dics932s401.c191 int m, n, freq; local
200 freq = BASE_CLOCK * (n + 8) / (m + 2);
201 freq /= divisors[data->regs[ICS932S401_REG_CPU_DIVISOR] >>
204 return freq;
221 int freq; local
224 freq = calculate_cpu_freq(data);
228 freq = fs_speeds[fid];
230 switch (freq) {
232 freq = 160000;
235 freq
247 int m, n, freq; local
277 int freq; local
295 int m, n, freq; local
325 int freq; local
[all...]
/drivers/base/power/
H A Dopp.c31 * | |- opp 1 (availability, freq, voltage)
227 * @freq: frequency to search for
243 * returned will remain valid for use with opp_get_{voltage, freq} only while
247 struct opp *opp_find_freq_exact(struct device *dev, unsigned long freq, argument
262 temp_opp->rate == freq) {
272 * opp_find_freq_ceil() - Search for an rounded ceil freq
274 * @freq: Start frequency
276 * Search for the matching ceil *available* OPP from a starting freq
279 * Returns matching *opp and refreshes *freq accordingly, else returns
284 * returned will remain valid for use with opp_get_{voltage, freq} onl
288 opp_find_freq_ceil(struct device *dev, unsigned long *freq) argument
330 opp_find_freq_floor(struct device *dev, unsigned long *freq) argument
375 opp_add(struct device *dev, unsigned long freq, unsigned long u_volt) argument
462 opp_set_availability(struct device *dev, unsigned long freq, bool availability_req) argument
550 opp_enable(struct device *dev, unsigned long freq) argument
571 opp_disable(struct device *dev, unsigned long freq) argument
[all...]
/drivers/usb/gadget/
H A Dfsl_mxc_udc.c33 unsigned long freq; local
59 freq = clk_get_rate(mxc_usb_clk);
61 (freq < 59999000 || freq > 60001000)) {
62 dev_err(&pdev->dev, "USB_CLK=%lu, should be 60MHz\n", freq);
/drivers/ssb/
H A Ddriver_chipcommon_pmu.c51 u16 freq; /* Crystal frequency in kHz.*/ member in struct:pmu0_plltab_entry
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
178 u16 freq; /* Crystal frequency in kHz.*/ member in struct:pmu1_plltab_entry
[all...]
/drivers/net/can/mscan/
H A Dmpc5xxx_can.c58 unsigned int freq; local
76 freq = mpc5xxx_get_bus_frequency(ofdev->dev.of_node);
77 if (!freq)
81 return freq;
92 freq *= 2;
95 freq *= (val & (1 << 5)) ? 8 : 4;
96 freq /= (val & (1 << 6)) ? 12 : 16;
101 return freq;
140 u32 sys_freq, val, clockdiv = 1, freq = 0; local
171 freq
[all...]
/drivers/gpu/drm/nouveau/
H A Dnvc0_pm.c158 u32 freq; member in struct:nvc0_pm_clock
171 calc_div(struct drm_device *dev, int clk, u32 ref, u32 freq, u32 *ddiv) argument
173 u32 div = min((ref * 2) / freq, (u32)65);
182 calc_src(struct drm_device *dev, int clk, u32 freq, u32 *dsrc, u32 *ddiv) argument
188 switch (freq) {
192 if (freq == 108000)
194 return freq;
197 return freq;
206 sclk = calc_div(dev, clk, sclk, freq, ddiv);
211 calc_pll(struct drm_device *dev, int clk, u32 freq, u3 argument
258 calc_clk(struct drm_device *dev, int clk, struct nvc0_pm_clock *info, u32 freq) argument
[all...]

Completed in 1144 milliseconds

1234567891011>>