Home
last modified time | relevance | path

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

1234567891011

/linux-4.19.296/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 …]
Dsh-cpufreq.c35 unsigned int freq; member
51 long freq; in __sh_cpufreq_target() local
59 freq = clk_round_rate(cpuclk, target->freq * 1000); in __sh_cpufreq_target()
61 if (freq < (policy->min * 1000) || freq > (policy->max * 1000)) in __sh_cpufreq_target()
64 dev_dbg(dev, "requested frequency %u Hz\n", target->freq * 1000); in __sh_cpufreq_target()
67 freqs.new = (freq + 500) / 1000; in __sh_cpufreq_target()
71 clk_set_rate(cpuclk, freq); in __sh_cpufreq_target()
74 dev_dbg(dev, "set frequency %lu Hz\n", freq); in __sh_cpufreq_target()
85 struct cpufreq_target data = { .policy = policy, .freq = target_freq }; in sh_cpufreq_target()
Ds3c2412-cpufreq.c49 fclk = cfg->freq.fclk; in s3c2412_cpufreq_calcdivs()
50 armclk = cfg->freq.armclk; in s3c2412_cpufreq_calcdivs()
62 __func__, cfg->freq.fclk, cfg->freq.armclk, in s3c2412_cpufreq_calcdivs()
63 cfg->freq.hclk, cfg->freq.pclk); in s3c2412_cpufreq_calcdivs()
79 cfg->freq.hclk = hclk = armdiv_clk / hdiv; in s3c2412_cpufreq_calcdivs()
85 cfg->freq.armclk = dvs ? hclk : armdiv_clk; in s3c2412_cpufreq_calcdivs()
98 cfg->freq.pclk = hclk / pdiv; in s3c2412_cpufreq_calcdivs()
151 board->refresh, cfg->freq.hclk); in s3c2412_cpufreq_setrefresh()
159 refresh *= (cfg->freq.hclk / 100); in s3c2412_cpufreq_setrefresh()
/linux-4.19.296/include/trace/events/
Dthermal.h96 TP_PROTO(const struct cpumask *cpus, unsigned long freq, u32 *load,
99 TP_ARGS(cpus, freq, load, load_len, dynamic_power),
103 __field(unsigned long, freq )
112 __entry->freq = freq;
120 __get_bitmask(cpumask), __entry->freq,
126 TP_PROTO(const struct cpumask *cpus, unsigned int freq,
129 TP_ARGS(cpus, freq, cdev_state, power),
133 __field(unsigned int, freq )
141 __entry->freq = freq;
147 __get_bitmask(cpumask), __entry->freq, __entry->cdev_state,
[all …]
/linux-4.19.296/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 …]
Dtda18271-priv.h192 u32 *freq, u8 *post_div, u8 *div);
195 u32 *freq, u8 *val);
200 u32 *freq, u8 *rf_band);
203 u32 *freq, u8 *cid_target,
220 extern int tda18271_calc_main_pll(struct dvb_frontend *fe, u32 freq);
221 extern int tda18271_calc_cal_pll(struct dvb_frontend *fe, u32 freq);
223 extern int tda18271_calc_bp_filter(struct dvb_frontend *fe, u32 *freq);
224 extern int tda18271_calc_km(struct dvb_frontend *fe, u32 *freq);
225 extern int tda18271_calc_rf_band(struct dvb_frontend *fe, u32 *freq);
226 extern int tda18271_calc_gain_taper(struct dvb_frontend *fe, u32 *freq);
[all …]
Dqt1010.c58 u32 freq, div, mod1, mod2; in qt1010_set_params() local
115 freq = c->frequency; in qt1010_set_params()
116 div = (freq + QT1010_OFFSET) / QT1010_STEP; in qt1010_set_params()
117 freq = (div * QT1010_STEP) - QT1010_OFFSET; in qt1010_set_params()
118 mod1 = (freq + QT1010_OFFSET) % FREQ1; in qt1010_set_params()
119 mod2 = (freq + QT1010_OFFSET) % FREQ2; in qt1010_set_params()
120 priv->frequency = freq; in qt1010_set_params()
126 if (freq < 290000000) reg05 = 0x14; /* 290 MHz */ in qt1010_set_params()
127 else if (freq < 610000000) reg05 = 0x34; /* 610 MHz */ in qt1010_set_params()
128 else if (freq < 802000000) reg05 = 0x54; /* 802 MHz */ in qt1010_set_params()
[all …]
/linux-4.19.296/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 …]
Dtef6862.c59 unsigned long freq; member
103 unsigned freq = f->frequency; in tef6862_s_frequency() local
111 freq = clamp(freq, TEF6862_LO_FREQ, TEF6862_HI_FREQ); in tef6862_s_frequency()
112 pll = 1964 + ((freq - TEF6862_LO_FREQ) * 20) / FREQ_MUL; in tef6862_s_frequency()
121 state->freq = freq; in tef6862_s_frequency()
132 f->frequency = state->freq; in tef6862_g_frequency()
168 state->freq = TEF6862_LO_FREQ; in tef6862_probe()
Dlm7000.h21 static inline void lm7000_set_freq(u32 freq, void *handle, in lm7000_set_freq() argument
28 freq += 171200; /* Add 10.7 MHz IF */ in lm7000_set_freq()
29 freq /= 400; /* Convert to 25 kHz units */ in lm7000_set_freq()
30 val = freq | LM7000_FM_25 | LM7000_BIT_FM; in lm7000_set_freq()
/linux-4.19.296/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()
229 freq = fs_speeds[fid]; in show_cpu_clock_sel()
231 switch (freq) { in show_cpu_clock_sel()
233 freq = 160000; in show_cpu_clock_sel()
236 freq = 320000; in show_cpu_clock_sel()
[all …]
/linux-4.19.296/include/linux/mfd/
Dsi476x-core.h195 static inline u16 hz_to_si476x(struct si476x_core *core, int freq) in hz_to_si476x() argument
202 result = freq / 10000; in hz_to_si476x()
205 result = freq / 1000; in hz_to_si476x()
212 static inline int si476x_to_hz(struct si476x_core *core, u16 freq) in si476x_to_hz() argument
219 result = freq * 10000; in si476x_to_hz()
222 result = freq * 1000; in si476x_to_hz()
232 static inline int hz_to_v4l2(int freq) in hz_to_v4l2() argument
234 return (freq * 10) / 625; in hz_to_v4l2()
237 static inline int v4l2_to_hz(int freq) in v4l2_to_hz() argument
239 return (freq * 625) / 10; in v4l2_to_hz()
[all …]
/linux-4.19.296/drivers/clk/meson/
Dgxbb-aoclk-32k.c125 const struct cec_32k_freq_table *freq = find_cec_32k_freq(rate, in aoclk_cec_32k_round_rate() local
129 if (!freq) in aoclk_cec_32k_round_rate()
132 return freq->target_rate; in aoclk_cec_32k_round_rate()
143 const struct cec_32k_freq_table *freq = find_cec_32k_freq(rate, in aoclk_cec_32k_set_rate() local
148 if (!freq) in aoclk_cec_32k_set_rate()
155 reg = FIELD_PREP(CLK_CNTL0_N1_MASK, freq->n1 - 1); in aoclk_cec_32k_set_rate()
156 if (freq->dualdiv) in aoclk_cec_32k_set_rate()
158 FIELD_PREP(CLK_CNTL0_N2_MASK, freq->n2 - 1); in aoclk_cec_32k_set_rate()
162 reg = FIELD_PREP(CLK_CNTL1_M1_MASK, freq->m1 - 1); in aoclk_cec_32k_set_rate()
163 if (freq->dualdiv) in aoclk_cec_32k_set_rate()
[all …]
/linux-4.19.296/include/linux/
Dpm_opp.h97 unsigned long freq,
101 unsigned long *freq);
104 unsigned long *freq);
107 int dev_pm_opp_add(struct device *dev, unsigned long freq,
109 void dev_pm_opp_remove(struct device *dev, unsigned long freq);
111 int dev_pm_opp_enable(struct device *dev, unsigned long freq);
113 int dev_pm_opp_disable(struct device *dev, unsigned long freq);
182 unsigned long freq, bool available) in dev_pm_opp_find_freq_exact() argument
188 unsigned long *freq) in dev_pm_opp_find_freq_floor() argument
194 unsigned long *freq) in dev_pm_opp_find_freq_ceil() argument
[all …]
Dcpufreq.h510 unsigned int freq);
663 unsigned int freq);
679 unsigned int freq; in cpufreq_table_find_index_al() local
683 freq = pos->frequency; in cpufreq_table_find_index_al()
685 if (freq >= target_freq) in cpufreq_table_find_index_al()
700 unsigned int freq; in cpufreq_table_find_index_dl() local
704 freq = pos->frequency; in cpufreq_table_find_index_dl()
706 if (freq == target_freq) in cpufreq_table_find_index_dl()
709 if (freq > target_freq) { in cpufreq_table_find_index_dl()
742 unsigned int freq; in cpufreq_table_find_index_ah() local
[all …]
/linux-4.19.296/drivers/media/v4l2-core/
Dtuner-core.c131 static void set_tv_freq(struct i2c_client *c, unsigned int freq);
132 static void set_radio_freq(struct i2c_client *c, unsigned int freq);
813 static void set_freq(struct tuner *t, unsigned int freq) in set_freq() argument
818 if (!freq) in set_freq()
819 freq = t->radio_freq; in set_freq()
820 set_radio_freq(client, freq); in set_freq()
822 if (!freq) in set_freq()
823 freq = t->tv_freq; in set_freq()
824 set_tv_freq(client, freq); in set_freq()
838 static void set_tv_freq(struct i2c_client *c, unsigned int freq) in set_tv_freq() argument
[all …]
/linux-4.19.296/drivers/sh/clk/
Dcore.c46 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 …]
/linux-4.19.296/drivers/clk/hisilicon/
Dclk-hi6220-stub.c73 unsigned int freq; in hi6220_acpu_get_freq() local
75 regmap_read(stub_clk->dfs_map, ACPU_DFS_CUR_FREQ, &freq); in hi6220_acpu_get_freq()
76 return freq; in hi6220_acpu_get_freq()
80 unsigned int freq) in hi6220_acpu_set_freq() argument
85 regmap_write(stub_clk->dfs_map, ACPU_DFS_FREQ_REQ, freq); in hi6220_acpu_set_freq()
98 unsigned int freq) in hi6220_acpu_round_freq() argument
114 if (WARN_ON(freq > max_freq)) in hi6220_acpu_round_freq()
115 freq = max_freq; in hi6220_acpu_round_freq()
117 return freq; in hi6220_acpu_round_freq()
/linux-4.19.296/drivers/clk/ti/
Dfapll.c79 void __iomem *freq; member
338 if (synth->freq) { in ti_fapll_synth_recalc_rate()
341 v = readl_relaxed(synth->freq); in ti_fapll_synth_recalc_rate()
398 v = readl_relaxed(synth->freq); in ti_fapll_synth_set_frac_rate()
403 writel_relaxed(v, synth->freq); in ti_fapll_synth_set_frac_rate()
419 if (!synth->freq) { in ti_fapll_synth_round_rate()
456 if (!synth->freq) in ti_fapll_synth_set_rate()
462 if (!synth->freq && !post_rate) in ti_fapll_synth_set_rate()
467 if ((post_rate != rate) && synth->freq) in ti_fapll_synth_set_rate()
491 void __iomem *freq, in ti_fapll_synth_setup() argument
[all …]

1234567891011