Home
last modified time | relevance | path

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

12345678910>>...56

/Linux-v5.4/drivers/net/wireless/broadcom/b43/
Dradio_2059.c60 .freq = 2412,
67 .freq = 2417,
74 .freq = 2422,
81 .freq = 2427,
88 .freq = 2432,
95 .freq = 2437,
102 .freq = 2442,
109 .freq = 2447,
116 .freq = 2452,
123 .freq = 2457,
[all …]
Dradio_2057.c180 .freq = 2412,
187 .freq = 2417,
194 .freq = 2422,
201 .freq = 2427,
208 .freq = 2432,
215 .freq = 2437,
222 .freq = 2442,
229 .freq = 2447,
236 .freq = 2452,
243 .freq = 2457,
[all …]
Dradio_2055.c293 .freq = 4920, /* MHz */
301 .freq = 4930, /* MHz */
309 .freq = 4940, /* MHz */
317 .freq = 4950, /* MHz */
325 .freq = 4960, /* MHz */
333 .freq = 4970, /* MHz */
341 .freq = 4980, /* MHz */
349 .freq = 4990, /* MHz */
357 .freq = 5000, /* MHz */
365 .freq = 5010, /* MHz */
[all …]
Dradio_2056.c3077 { .freq = 4920,
3085 { .freq = 4930,
3093 { .freq = 4940,
3101 { .freq = 4950,
3109 { .freq = 4960,
3117 { .freq = 4970,
3125 { .freq = 4980,
3133 { .freq = 4990,
3141 { .freq = 5000,
3149 { .freq = 5010,
[all …]
/Linux-v5.4/sound/pci/lola/
Dlola_clock.c17 unsigned int freq; in lola_sample_rate_convert() local
21 case 0: freq = 48000; break; in lola_sample_rate_convert()
22 case 1: freq = 44100; break; in lola_sample_rate_convert()
23 case 2: freq = 32000; break; in lola_sample_rate_convert()
31 case (1 << 2): freq *= 2; break; in lola_sample_rate_convert()
32 case (2 << 2): freq *= 4; break; in lola_sample_rate_convert()
33 case (5 << 2): freq /= 2; break; in lola_sample_rate_convert()
34 case (6 << 2): freq /= 4; break; in lola_sample_rate_convert()
41 case (1 << 5): freq = (freq * 999) / 1000; break; in lola_sample_rate_convert()
42 case (2 << 5): freq = (freq * 1001) / 1000; break; in lola_sample_rate_convert()
[all …]
/Linux-v5.4/sound/drivers/vx/
Dvx_uer.c94 int val, freq; in vx_read_uer_status() local
97 freq = 0; in vx_read_uer_status()
110 freq = 32000; in vx_read_uer_status()
113 freq = 44100; in vx_read_uer_status()
116 freq = 48000; in vx_read_uer_status()
127 return freq; in vx_read_uer_status()
148 static int vx_calc_clock_from_freq(struct vx_core *chip, int freq) in vx_calc_clock_from_freq() argument
152 if (snd_BUG_ON(freq <= 0)) in vx_calc_clock_from_freq()
155 hexfreq = (28224000 * 10) / freq; in vx_calc_clock_from_freq()
193 void vx_set_internal_clock(struct vx_core *chip, unsigned int freq) in vx_set_internal_clock() argument
[all …]
/Linux-v5.4/drivers/cpufreq/
Dfreq_table.c38 unsigned int freq; in cpufreq_frequency_table_cpuinfo() local
41 freq = pos->frequency; in cpufreq_frequency_table_cpuinfo()
47 pr_debug("table entry %u: %u kHz\n", (int)(pos - table), freq); in cpufreq_frequency_table_cpuinfo()
48 if (freq < min_freq) in cpufreq_frequency_table_cpuinfo()
49 min_freq = freq; in cpufreq_frequency_table_cpuinfo()
50 if (freq > max_freq) in cpufreq_frequency_table_cpuinfo()
51 max_freq = freq; in cpufreq_frequency_table_cpuinfo()
67 unsigned int freq, next_larger = ~0; in cpufreq_frequency_table_verify() local
76 freq = pos->frequency; in cpufreq_frequency_table_verify()
78 if ((freq >= policy->min) && (freq <= policy->max)) { in cpufreq_frequency_table_verify()
[all …]
Ds3c24xx-cpufreq.c66 cfg->freq.fclk = fclk = clk_get_rate(clk_fclk); in s3c_cpufreq_getcur()
67 cfg->freq.hclk = hclk = clk_get_rate(clk_hclk); in s3c_cpufreq_getcur()
68 cfg->freq.pclk = pclk = clk_get_rate(clk_pclk); in s3c_cpufreq_getcur()
69 cfg->freq.armclk = armclk = clk_get_rate(clk_arm); in s3c_cpufreq_getcur()
74 cfg->freq.hclk_tns = 1000000000 / (cfg->freq.hclk / 10); in s3c_cpufreq_getcur()
84 cfg->freq.fclk = pll; in s3c_cpufreq_calc()
85 cfg->freq.hclk = pll / cfg->divs.h_divisor; in s3c_cpufreq_calc()
86 cfg->freq.pclk = pll / cfg->divs.p_divisor; in s3c_cpufreq_calc()
89 cfg->freq.hclk_tns = 1000000000 / (cfg->freq.hclk / 10); in s3c_cpufreq_calc()
104 pfx, cfg->pll.frequency, cfg->freq.fclk, cfg->freq.armclk, in s3c_cpufreq_show()
[all …]
Ds3c64xx-cpufreq.c110 struct cpufreq_frequency_table *freq; in s3c64xx_cpufreq_config_regulator() local
121 cpufreq_for_each_valid_entry(freq, s3c64xx_freq_table) { in s3c64xx_cpufreq_config_regulator()
122 dvfs = &s3c64xx_dvfs_table[freq->driver_data]; in s3c64xx_cpufreq_config_regulator()
133 freq->frequency); in s3c64xx_cpufreq_config_regulator()
134 freq->frequency = CPUFREQ_ENTRY_INVALID; in s3c64xx_cpufreq_config_regulator()
147 struct cpufreq_frequency_table *freq; in s3c64xx_cpufreq_driver_init() local
175 cpufreq_for_each_entry(freq, s3c64xx_freq_table) { in s3c64xx_cpufreq_driver_init()
179 r = clk_round_rate(policy->clk, freq->frequency * 1000); in s3c64xx_cpufreq_driver_init()
181 if (r != freq->frequency) { in s3c64xx_cpufreq_driver_init()
183 freq->frequency); in s3c64xx_cpufreq_driver_init()
[all …]
/Linux-v5.4/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 …]
/Linux-v5.4/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-v5.4/drivers/media/i2c/cx25840/
Dcx25840-audio.c31 static int cx25840_set_audclk_freq(struct i2c_client *client, u32 freq) in cx25840_set_audclk_freq() argument
36 switch (freq) { in cx25840_set_audclk_freq()
150 switch (freq) { in cx25840_set_audclk_freq()
276 state->audclk_freq = freq; in cx25840_set_audclk_freq()
281 static inline int cx25836_set_audclk_freq(struct i2c_client *client, u32 freq) in cx25836_set_audclk_freq() argument
283 return cx25840_set_audclk_freq(client, freq); in cx25836_set_audclk_freq()
286 static int cx23885_set_audclk_freq(struct i2c_client *client, u32 freq) in cx23885_set_audclk_freq() argument
291 switch (freq) { in cx23885_set_audclk_freq()
301 switch (freq) { in cx23885_set_audclk_freq()
323 state->audclk_freq = freq; in cx23885_set_audclk_freq()
[all …]
/Linux-v5.4/arch/mips/mti-malta/
Dmalta-time.c51 static unsigned int freqround(unsigned int freq, unsigned int amount) in freqround() argument
53 freq += amount; in freqround()
54 freq -= freq % (amount*2); in freqround()
55 return freq; in freqround()
186 unsigned char freq, ctrl; in init_rtc() local
189 freq = CMOS_READ(RTC_FREQ_SELECT); in init_rtc()
190 if ((freq & RTC_DIV_CTL) != RTC_REF_CLCK_32KHZ) in init_rtc()
229 unsigned int freq; in plat_time_init() local
234 freq = mips_hpt_frequency; in plat_time_init()
237 freq *= 2; in plat_time_init()
[all …]
/Linux-v5.4/drivers/media/tuners/
Dmt2131.c86 u32 freq; in mt2131_set_params() local
95 freq = c->frequency / 1000; /* Hz -> kHz */ in mt2131_set_params()
96 dprintk(1, "%s() freq=%d\n", __func__, freq); in mt2131_set_params()
98 f_lo1 = freq + MT2131_IF1 * 1000; in mt2131_set_params()
100 f_lo2 = f_lo1 - freq - MT2131_IF2; in mt2131_set_params()
114 if (freq <= 82500) if_band_center = 0x00; else in mt2131_set_params()
115 if (freq <= 137500) if_band_center = 0x01; else in mt2131_set_params()
116 if (freq <= 192500) if_band_center = 0x02; else in mt2131_set_params()
117 if (freq <= 247500) if_band_center = 0x03; else in mt2131_set_params()
118 if (freq <= 302500) if_band_center = 0x04; else in mt2131_set_params()
[all …]
Dmt2266.c121 u32 freq; in mt2266_set_params() local
130 freq = priv->frequency / 1000; /* Hz -> kHz */ in mt2266_set_params()
131 if (freq < 470000 && freq > 230000) in mt2266_set_params()
135 tune = 2 * freq * (8192/16) / (FREF/16); in mt2266_set_params()
136 band = (freq < 300000) ? MT2266_VHF : MT2266_UHF; in mt2266_set_params()
170 if (freq <= 495000) in mt2266_set_params()
172 else if (freq <= 525000) in mt2266_set_params()
174 else if (freq <= 550000) in mt2266_set_params()
176 else if (freq <= 580000) in mt2266_set_params()
178 else if (freq <= 605000) in mt2266_set_params()
[all …]
/Linux-v5.4/drivers/media/radio/
Dtea575x.c144 u32 freq = val & TEA575X_BIT_FREQ_MASK; in snd_tea575x_val_to_freq() local
146 if (freq == 0) in snd_tea575x_val_to_freq()
147 return freq; in snd_tea575x_val_to_freq()
152 freq *= 125; in snd_tea575x_val_to_freq()
153 freq /= 10; in snd_tea575x_val_to_freq()
155 freq -= TEA575X_FMIF; in snd_tea575x_val_to_freq()
159 freq *= 125; in snd_tea575x_val_to_freq()
160 freq /= 10; in snd_tea575x_val_to_freq()
162 freq += TEA575X_FMIF; in snd_tea575x_val_to_freq()
166 freq -= TEA575X_AMIF; in snd_tea575x_val_to_freq()
[all …]
Dradio-tea5777.c162 static u32 tea5777_freq_to_v4l2_freq(struct radio_tea5777 *tea, u32 freq) in tea5777_freq_to_v4l2_freq() argument
166 return (freq * TEA5777_FM_FREQ_STEP + TEA5777_FM_IF) * 16; in tea5777_freq_to_v4l2_freq()
168 return (freq * TEA5777_AM_FREQ_STEP + TEA5777_AM_IF) * 16; in tea5777_freq_to_v4l2_freq()
175 u32 freq; in radio_tea5777_set_freq() local
178 freq = clamp(tea->freq, bands[tea->band].rangelow, in radio_tea5777_set_freq()
180 freq = (freq + 8) / 16; /* to kHz */ in radio_tea5777_set_freq()
185 freq = (freq - TEA5777_FM_IF) / TEA5777_FM_FREQ_STEP; in radio_tea5777_set_freq()
187 tea->write_reg |= (u64)freq << TEA5777_W_FM_PLL_SHIFT; in radio_tea5777_set_freq()
198 freq = (freq - TEA5777_AM_IF) / TEA5777_AM_FREQ_STEP; in radio_tea5777_set_freq()
200 tea->write_reg |= (u64)freq << TEA5777_W_AM_PLL_SHIFT; in radio_tea5777_set_freq()
[all …]
/Linux-v5.4/drivers/devfreq/
Dgovernor_passive.c16 unsigned long *freq) in devfreq_passive_get_target_freq() argument
31 ret = p_data->get_target_freq(devfreq, freq); in devfreq_passive_get_target_freq()
59 opp = devfreq_recommended_opp(parent_devfreq->dev.parent, freq, 0); in devfreq_passive_get_target_freq()
72 if (parent_devfreq->profile->freq_table[i] == *freq) in devfreq_passive_get_target_freq()
89 *freq = child_freq; in devfreq_passive_get_target_freq()
95 static int update_devfreq_passive(struct devfreq *devfreq, unsigned long freq) in update_devfreq_passive() argument
104 ret = devfreq->governor->get_target_freq(devfreq, &freq); in update_devfreq_passive()
108 ret = devfreq->profile->target(devfreq->dev.parent, &freq, 0); in update_devfreq_passive()
113 && (devfreq_update_status(devfreq, freq))) in update_devfreq_passive()
117 devfreq->previous_freq = freq; in update_devfreq_passive()
[all …]
/Linux-v5.4/drivers/misc/
Dics932s401.c180 int m, n, freq; in calculate_cpu_freq() local
189 freq = BASE_CLOCK * (n + 8) / (m + 2); in calculate_cpu_freq()
190 freq /= divisors[data->regs[ICS932S401_REG_CPU_DIVISOR] >> in calculate_cpu_freq()
193 return freq; in calculate_cpu_freq()
210 int freq; in show_cpu_clock_sel() local
213 freq = calculate_cpu_freq(data); in show_cpu_clock_sel()
218 freq = fs_speeds[fid]; in show_cpu_clock_sel()
220 switch (freq) { in show_cpu_clock_sel()
222 freq = 160000; in show_cpu_clock_sel()
225 freq = 320000; in show_cpu_clock_sel()
[all …]
/Linux-v5.4/drivers/clocksource/
Dtimer-fsl-ftm.c186 static int __init ftm_clockevent_init(unsigned long freq, int irq) in ftm_clockevent_init() argument
205 freq / (1 << priv->ps), in ftm_clockevent_init()
213 static int __init ftm_clocksource_init(unsigned long freq) in ftm_clocksource_init() argument
222 sched_clock_register(ftm_read_sched_clock, 16, freq / (1 << priv->ps)); in ftm_clocksource_init()
224 freq / (1 << priv->ps), 300, 16, in ftm_clocksource_init()
269 long freq; in ftm_clk_init() local
271 freq = __ftm_clk_init(np, "ftm-evt-counter-en", "ftm-evt"); in ftm_clk_init()
272 if (freq <= 0) in ftm_clk_init()
275 freq = __ftm_clk_init(np, "ftm-src-counter-en", "ftm-src"); in ftm_clk_init()
276 if (freq <= 0) in ftm_clk_init()
[all …]
/Linux-v5.4/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 …]
/Linux-v5.4/net/wireless/
Dchan.c17 static bool cfg80211_valid_60g_freq(u32 freq) in cfg80211_valid_60g_freq() argument
19 return freq >= 58320 && freq <= 70200; in cfg80211_valid_60g_freq()
348 u32 freq; in cfg80211_set_chans_dfs_state() local
350 for (freq = center_freq - bandwidth/2 + 10; in cfg80211_set_chans_dfs_state()
351 freq <= center_freq + bandwidth/2 - 10; in cfg80211_set_chans_dfs_state()
352 freq += 20) { in cfg80211_set_chans_dfs_state()
353 c = ieee80211_get_channel(wiphy, freq); in cfg80211_set_chans_dfs_state()
415 u32 freq, start_freq, end_freq; in cfg80211_get_chans_dfs_required() local
420 for (freq = start_freq; freq <= end_freq; freq += 20) { in cfg80211_get_chans_dfs_required()
421 c = ieee80211_get_channel(wiphy, freq); in cfg80211_get_chans_dfs_required()
[all …]
/Linux-v5.4/tools/testing/selftests/intel_pstate/
Drun.sh95 [ $EVALUATE_ONLY -eq 0 ] && for freq in `seq $max_freq -100 $min_freq`
97 echo "Setting maximum frequency to $freq"
98 cpupower frequency-set -g powersave --max=${freq}MHz >& /dev/null
99 run_test $freq
111 for freq in `seq $max_freq -100 $min_freq`
113 …result_freq=$(cat /tmp/result.${freq} | grep "cpu MHz" | awk ' { print $4 } ' | awk -F "." ' { pri…
114 msr=$(cat /tmp/result.${freq} | grep "msr" | awk ' { print $3 } ')
115 max_perf_pct=$(cat /tmp/result.${freq} | grep "max_perf_pct" | awk ' { print $2 } ' )
117 $freq
119 $((result_freq - freq))
/Linux-v5.4/arch/mips/kernel/
Dcsrc-ioasic.c35 unsigned int freq; in dec_ioasic_clocksource_init() local
51 freq = (end - start) * 8; in dec_ioasic_clocksource_init()
54 if (!freq) in dec_ioasic_clocksource_init()
57 printk(KERN_INFO "I/O ASIC clock frequency %dHz\n", freq); in dec_ioasic_clocksource_init()
59 clocksource_dec.rating = 200 + freq / 10000000; in dec_ioasic_clocksource_init()
60 clocksource_register_hz(&clocksource_dec, freq); in dec_ioasic_clocksource_init()
62 sched_clock_register(dec_ioasic_read_sched_clock, 32, freq); in dec_ioasic_clocksource_init()
/Linux-v5.4/net/ipv6/
Dip6_flowlabel.c373 fl_create(struct net *net, struct sock *sk, struct in6_flowlabel_req *freq, in fl_create() argument
381 olen = optlen - CMSG_ALIGN(sizeof(*freq)); in fl_create()
404 if (copy_from_user(fl->opt+1, optval+CMSG_ALIGN(sizeof(*freq)), olen)) in fl_create()
426 err = fl6_renew(fl, freq->flr_linger, freq->flr_expires); in fl_create()
429 fl->share = freq->flr_share; in fl_create()
430 addr_type = ipv6_addr_type(&freq->flr_dst); in fl_create()
436 fl->dst = freq->flr_dst; in fl_create()
499 int ipv6_flowlabel_opt_get(struct sock *sk, struct in6_flowlabel_req *freq, in ipv6_flowlabel_opt_get() argument
506 freq->flr_label = np->rcv_flowinfo & IPV6_FLOWLABEL_MASK; in ipv6_flowlabel_opt_get()
511 freq->flr_label = np->flow_label; in ipv6_flowlabel_opt_get()
[all …]

12345678910>>...56