Home
last modified time | relevance | path

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

12345678910>>...64

/linux-5.19.10/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-5.19.10/drivers/devfreq/
Dimx8m-ddrc.c82 struct imx8m_ddrc_freq *freq; in imx8m_ddrc_find_freq() local
91 freq = &priv->freq_table[i]; in imx8m_ddrc_find_freq()
92 if (freq->rate == rate || in imx8m_ddrc_find_freq()
93 freq->rate + 1 == rate || in imx8m_ddrc_find_freq()
94 freq->rate - 1 == rate) in imx8m_ddrc_find_freq()
95 return freq; in imx8m_ddrc_find_freq()
128 static int imx8m_ddrc_set_freq(struct device *dev, struct imx8m_ddrc_freq *freq) in imx8m_ddrc_set_freq() argument
143 priv->dram_core, freq->dram_core_parent_index - 1); in imx8m_ddrc_set_freq()
148 if (freq->dram_alt_parent_index) { in imx8m_ddrc_set_freq()
151 freq->dram_alt_parent_index - 1); in imx8m_ddrc_set_freq()
[all …]
/linux-5.19.10/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-5.19.10/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-5.19.10/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()
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 …]
Ds3c24xx-cpufreq.c62 cfg->freq.fclk = fclk = clk_get_rate(clk_fclk); in s3c_cpufreq_getcur()
63 cfg->freq.hclk = hclk = clk_get_rate(clk_hclk); in s3c_cpufreq_getcur()
64 cfg->freq.pclk = pclk = clk_get_rate(clk_pclk); in s3c_cpufreq_getcur()
65 cfg->freq.armclk = armclk = clk_get_rate(clk_arm); in s3c_cpufreq_getcur()
70 cfg->freq.hclk_tns = 1000000000 / (cfg->freq.hclk / 10); in s3c_cpufreq_getcur()
80 cfg->freq.fclk = pll; in s3c_cpufreq_calc()
81 cfg->freq.hclk = pll / cfg->divs.h_divisor; in s3c_cpufreq_calc()
82 cfg->freq.pclk = pll / cfg->divs.p_divisor; in s3c_cpufreq_calc()
85 cfg->freq.hclk_tns = 1000000000 / (cfg->freq.hclk / 10); in s3c_cpufreq_calc()
100 pfx, cfg->pll.frequency, cfg->freq.fclk, cfg->freq.armclk, in s3c_cpufreq_show()
[all …]
Ds3c64xx-cpufreq.c108 struct cpufreq_frequency_table *freq; in s3c64xx_cpufreq_config_regulator() local
119 cpufreq_for_each_valid_entry(freq, s3c64xx_freq_table) { in s3c64xx_cpufreq_config_regulator()
120 dvfs = &s3c64xx_dvfs_table[freq->driver_data]; in s3c64xx_cpufreq_config_regulator()
131 freq->frequency); in s3c64xx_cpufreq_config_regulator()
132 freq->frequency = CPUFREQ_ENTRY_INVALID; in s3c64xx_cpufreq_config_regulator()
145 struct cpufreq_frequency_table *freq; in s3c64xx_cpufreq_driver_init() local
168 cpufreq_for_each_entry(freq, s3c64xx_freq_table) { in s3c64xx_cpufreq_driver_init()
172 r = clk_round_rate(policy->clk, freq->frequency * 1000); in s3c64xx_cpufreq_driver_init()
174 if (r != freq->frequency) { in s3c64xx_cpufreq_driver_init()
176 freq->frequency); in s3c64xx_cpufreq_driver_init()
[all …]
/linux-5.19.10/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-5.19.10/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-5.19.10/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 …]
/linux-5.19.10/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()
181 unsigned char freq, ctrl; in init_rtc() local
184 freq = CMOS_READ(RTC_FREQ_SELECT); in init_rtc()
185 if ((freq & RTC_DIV_CTL) != RTC_REF_CLCK_32KHZ) in init_rtc()
226 unsigned int freq; in plat_time_init() local
231 freq = mips_hpt_frequency; in plat_time_init()
234 freq *= 2; in plat_time_init()
[all …]
/linux-5.19.10/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-5.19.10/arch/mips/kernel/
Dtime.c39 struct cpufreq_freqs *freq = data; in cpufreq_callback() local
40 struct cpumask *cpus = freq->policy->cpus; in cpufreq_callback()
48 if (freq->flags & CPUFREQ_CONST_LOOPS) in cpufreq_callback()
54 glb_lpj_ref_freq = freq->old; in cpufreq_callback()
59 per_cpu(pcp_lpj_ref_freq, cpu) = freq->old; in cpufreq_callback()
67 if ((val == CPUFREQ_PRECHANGE && freq->old < freq->new) || in cpufreq_callback()
68 (val == CPUFREQ_POSTCHANGE && freq->old > freq->new)) { in cpufreq_callback()
71 freq->new); in cpufreq_callback()
76 freq->new); in cpufreq_callback()
/linux-5.19.10/drivers/gpu/drm/i915/gt/
Dselftest_rps.c150 static u8 wait_for_freq(struct intel_rps *rps, u8 freq, int timeout_ms) in wait_for_freq() argument
157 memset(history, freq, sizeof(history)); in wait_for_freq()
170 if (act == freq) in wait_for_freq()
187 static u8 rps_set_check(struct intel_rps *rps, u8 freq) in rps_set_check() argument
191 if (wait_for(!intel_rps_set(rps, freq), 50)) { in rps_set_check()
195 GEM_BUG_ON(rps->last_freq != freq); in rps_set_check()
198 return wait_for_freq(rps, freq, 50); in rps_set_check()
549 static u64 measure_frequency_at(struct intel_rps *rps, u32 *cntr, int *freq) in measure_frequency_at() argument
554 *freq = rps_set_check(rps, *freq); in measure_frequency_at()
557 *freq = (*freq + read_cagf(rps)) / 2; in measure_frequency_at()
[all …]
/linux-5.19.10/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-5.19.10/drivers/media/platform/qcom/venus/
Dhfi_platform.c25 unsigned long freq = 0; in hfi_platform_get_codec_vpp_freq() local
32 freq = plat->codec_vpp_freq(session_type, codec); in hfi_platform_get_codec_vpp_freq()
34 return freq; in hfi_platform_get_codec_vpp_freq()
41 unsigned long freq = 0; in hfi_platform_get_codec_vsp_freq() local
48 freq = plat->codec_vsp_freq(session_type, codec); in hfi_platform_get_codec_vsp_freq()
50 return freq; in hfi_platform_get_codec_vsp_freq()
57 unsigned long freq = 0; in hfi_platform_get_codec_lp_freq() local
64 freq = plat->codec_lp_freq(session_type, codec); in hfi_platform_get_codec_lp_freq()
66 return freq; in hfi_platform_get_codec_lp_freq()
/linux-5.19.10/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()
405 CMSG_ALIGN(sizeof(*freq)), olen)) in fl_create()
427 err = fl6_renew(fl, freq->flr_linger, freq->flr_expires); in fl_create()
430 fl->share = freq->flr_share; in fl_create()
431 addr_type = ipv6_addr_type(&freq->flr_dst); in fl_create()
437 fl->dst = freq->flr_dst; in fl_create()
502 int ipv6_flowlabel_opt_get(struct sock *sk, struct in6_flowlabel_req *freq, in ipv6_flowlabel_opt_get() argument
509 freq->flr_label = np->rcv_flowinfo & IPV6_FLOWLABEL_MASK; in ipv6_flowlabel_opt_get()
514 freq->flr_label = np->flow_label; in ipv6_flowlabel_opt_get()
[all …]
/linux-5.19.10/drivers/clocksource/
Dtimer-fsl-ftm.c179 static int __init ftm_clockevent_init(unsigned long freq, int irq) in ftm_clockevent_init() argument
199 freq / (1 << priv->ps), in ftm_clockevent_init()
207 static int __init ftm_clocksource_init(unsigned long freq) in ftm_clocksource_init() argument
216 sched_clock_register(ftm_read_sched_clock, 16, freq / (1 << priv->ps)); in ftm_clocksource_init()
218 freq / (1 << priv->ps), 300, 16, in ftm_clocksource_init()
263 long freq; in ftm_clk_init() local
265 freq = __ftm_clk_init(np, "ftm-evt-counter-en", "ftm-evt"); in ftm_clk_init()
266 if (freq <= 0) in ftm_clk_init()
269 freq = __ftm_clk_init(np, "ftm-src-counter-en", "ftm-src"); in ftm_clk_init()
270 if (freq <= 0) in ftm_clk_init()
[all …]
/linux-5.19.10/tools/perf/util/
Drecord.c76 attr->freq = 0; in evsel__config_leader_sampling()
171 opts->freq = opts->user_freq; in record_opts__config_freq()
177 opts->freq = 0; in record_opts__config_freq()
178 else if (opts->freq) { in record_opts__config_freq()
179 opts->default_interval = opts->freq; in record_opts__config_freq()
191 if (user_freq && (max_rate < opts->freq)) { in record_opts__config_freq()
203 max_rate, opts->freq, max_rate); in record_opts__config_freq()
205 opts->freq = max_rate; in record_opts__config_freq()
212 if (max_rate < opts->freq) { in record_opts__config_freq()
216 opts->freq, max_rate); in record_opts__config_freq()
[all …]
/linux-5.19.10/drivers/thermal/
Ddevfreq_cooling.c88 unsigned long freq; in devfreq_cooling_set_cur_state() local
101 freq = dfc->em_pd->table[perf_idx].frequency * 1000; in devfreq_cooling_set_cur_state()
103 freq = dfc->freq_table[state]; in devfreq_cooling_set_cur_state()
107 DIV_ROUND_UP(freq, HZ_PER_KHZ)); in devfreq_cooling_set_cur_state()
122 static int get_perf_idx(struct em_perf_domain *em_pd, unsigned long freq) in get_perf_idx() argument
127 if (em_pd->table[i].frequency == freq) in get_perf_idx()
134 static unsigned long get_voltage(struct devfreq *df, unsigned long freq) in get_voltage() argument
140 opp = dev_pm_opp_find_freq_exact(dev, freq, true); in get_voltage()
142 opp = dev_pm_opp_find_freq_exact(dev, freq, false); in get_voltage()
146 freq, PTR_ERR(opp)); in get_voltage()
[all …]
/linux-5.19.10/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 …]

12345678910>>...64