Home
last modified time | relevance | path

Searched full:freq (Results 1 – 25 of 2098) sorted by relevance

12345678910>>...84

/linux-6.12.1/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, prev_smaller = 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 …]
/linux-6.12.1/drivers/gpu/drm/xe/
Dxe_gt_freq.c32 * Xe's Freq provides a sysfs API for frequency management:
63 u32 freq; in act_freq_show() local
66 freq = xe_guc_pc_get_act_freq(pc); in act_freq_show()
69 return sysfs_emit(buf, "%d\n", freq); in act_freq_show()
77 u32 freq; in cur_freq_show() local
81 ret = xe_guc_pc_get_cur_freq(pc, &freq); in cur_freq_show()
86 return sysfs_emit(buf, "%d\n", freq); in cur_freq_show()
94 u32 freq; in rp0_freq_show() local
97 freq = xe_guc_pc_get_rp0_freq(pc); in rp0_freq_show()
100 return sysfs_emit(buf, "%d\n", freq); in rp0_freq_show()
[all …]
Dxe_guc_pc.c243 static u32 encode_freq(u32 freq) in encode_freq() argument
245 return DIV_ROUND_CLOSEST(freq * GT_FREQUENCY_SCALER, in encode_freq()
251 u32 freq; in pc_get_min_freq() local
253 freq = FIELD_GET(SLPC_MIN_UNSLICE_FREQ_MASK, in pc_get_min_freq()
254 slpc_shared_data_read(pc, task_state_data.freq)); in pc_get_min_freq()
256 return decode_freq(freq); in pc_get_min_freq()
264 /* Allow/Disallow punit to process software freq requests */ in pc_set_manual_rp_ctrl()
268 static void pc_set_cur_freq(struct xe_guc_pc *pc, u32 freq) in pc_set_cur_freq() argument
275 /* Req freq is in units of 16.66 Mhz */ in pc_set_cur_freq()
276 rpnswreq = REG_FIELD_PREP(REQ_RATIO_MASK, encode_freq(freq)); in pc_set_cur_freq()
[all …]
/linux-6.12.1/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 …]
Dgovernor_passive.c53 unsigned long *freq) in get_target_freq_by_required_opp() argument
58 if (!p_dev || !p_opp_table || !opp_table || !freq) in get_target_freq_by_required_opp()
61 p_opp = devfreq_recommended_opp(p_dev, freq, 0); in get_target_freq_by_required_opp()
86 unsigned long freq = 0; in get_target_freq_with_cpufreq() local
102 /* Get target freq via required opps */ in get_target_freq_with_cpufreq()
104 freq = get_target_freq_by_required_opp(parent_cpu_data->dev, in get_target_freq_with_cpufreq()
107 if (freq) { in get_target_freq_with_cpufreq()
108 *target_freq = max(freq, *target_freq); in get_target_freq_with_cpufreq()
121 freq = dev_min + mult_frac(dev_max - dev_min, cpu_percent, 100); in get_target_freq_with_cpufreq()
123 *target_freq = max(freq, *target_freq); in get_target_freq_with_cpufreq()
[all …]
/linux-6.12.1/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()
158 /* max freq = 55125 Hz */ in vx_calc_clock_from_freq()
[all …]
/linux-6.12.1/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-6.12.1/drivers/net/wireless/mediatek/mt76/mt76x0/
Dinitvals_phy.h15 { MT_RF(0, 3), 0x73 }, /* VCO Freq Cal */
321 …x3F, 0x28, 0xDD, 0xE2, 0x40, 0x02, 0x40, 0x02, 0, 0, 1, 0x28, 0, 0x30, 0, 0, 0x3 }, /* Freq 2412 */
322 …x3F, 0x3C, 0xDD, 0xE4, 0x40, 0x07, 0x40, 0x02, 0, 0, 1, 0xA1, 0, 0x30, 0, 0, 0x1 }, /* Freq 2417 */
323 …x3F, 0x3C, 0xDD, 0xE2, 0x40, 0x07, 0x40, 0x0B, 0, 0, 1, 0x50, 0, 0x30, 0, 0, 0x0 }, /* Freq 2422 */
324 …x3F, 0x28, 0xDD, 0xD4, 0x40, 0x02, 0x40, 0x09, 0, 0, 1, 0x50, 0, 0x30, 0, 0, 0x0 }, /* Freq 2427 */
325 …x3F, 0x3C, 0xDD, 0xD4, 0x40, 0x07, 0x40, 0x02, 0, 0, 1, 0xA2, 0, 0x30, 0, 0, 0x1 }, /* Freq 2432 */
326 …x3F, 0x3C, 0xDD, 0xD4, 0x40, 0x07, 0x40, 0x07, 0, 0, 1, 0xA2, 0, 0x30, 0, 0, 0x1 }, /* Freq 2437 */
327 …x3F, 0x28, 0xDD, 0xE2, 0x40, 0x02, 0x40, 0x07, 0, 0, 1, 0x28, 0, 0x30, 0, 0, 0x3 }, /* Freq 2442 */
328 …x3F, 0x3C, 0xDD, 0xD4, 0x40, 0x07, 0x40, 0x02, 0, 0, 1, 0xA3, 0, 0x30, 0, 0, 0x1 }, /* Freq 2447 */
329 …x3F, 0x3C, 0xDD, 0xF2, 0x40, 0x07, 0x40, 0x0D, 0, 0, 1, 0x28, 0, 0x30, 0, 0, 0x3 }, /* Freq 2452 */
[all …]
/linux-6.12.1/drivers/thermal/
Dthermal_trace.h116 TP_PROTO(const struct cpumask *cpus, unsigned int freq,
119 TP_ARGS(cpus, freq, cdev_state, power),
123 __field(unsigned int, freq )
131 __entry->freq = freq;
136 TP_printk("cpus=%s freq=%u cdev_state=%lu power=%u",
137 __get_bitmask(cpumask), __entry->freq, __entry->cdev_state,
145 struct devfreq_dev_status *status, unsigned long freq,
148 TP_ARGS(cdev, status, freq, power),
152 __field(unsigned long, freq )
160 __entry->freq = freq;
[all …]
/linux-6.12.1/drivers/gpu/drm/i915/gt/
Dselftest_slpc.c26 static int slpc_set_min_freq(struct intel_guc_slpc *slpc, u32 freq) in slpc_set_min_freq() argument
30 ret = intel_guc_slpc_set_min_freq(slpc, freq); in slpc_set_min_freq()
32 pr_err("Could not set min frequency to [%u]\n", freq); in slpc_set_min_freq()
39 static int slpc_set_max_freq(struct intel_guc_slpc *slpc, u32 freq) in slpc_set_max_freq() argument
43 ret = intel_guc_slpc_set_max_freq(slpc, freq); in slpc_set_max_freq()
46 freq); in slpc_set_max_freq()
53 static int slpc_set_freq(struct intel_gt *gt, u32 freq) in slpc_set_freq() argument
58 err = slpc_set_max_freq(slpc, freq); in slpc_set_freq()
60 pr_err("Unable to update max freq"); in slpc_set_freq()
64 err = slpc_set_min_freq(slpc, freq); in slpc_set_freq()
[all …]
Dselftest_rps.c151 static u8 wait_for_freq(struct intel_rps *rps, u8 freq, int timeout_ms) in wait_for_freq() argument
158 memset(history, freq, sizeof(history)); in wait_for_freq()
171 if (act == freq) in wait_for_freq()
188 static u8 rps_set_check(struct intel_rps *rps, u8 freq) in rps_set_check() argument
192 if (wait_for(!intel_rps_set(rps, freq), 50)) { in rps_set_check()
196 GEM_BUG_ON(rps->last_freq != freq); in rps_set_check()
199 return wait_for_freq(rps, freq, 50); in rps_set_check()
552 static u64 measure_frequency_at(struct intel_rps *rps, u32 *cntr, int *freq) in measure_frequency_at() argument
557 *freq = rps_set_check(rps, *freq); in measure_frequency_at()
560 *freq = (*freq + read_cagf(rps)) / 2; in measure_frequency_at()
[all …]
/linux-6.12.1/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()
151 /* freq *= 12.5 */ 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()
158 /* freq *= 12.5 */ in snd_tea575x_val_to_freq()
159 freq *= 125; in snd_tea575x_val_to_freq()
160 freq /= 10; 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-6.12.1/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 …]
Dfc0013.c179 static int fc0013_set_vhf_track(struct fc0013_priv *priv, u32 freq) in fc0013_set_vhf_track() argument
188 if (freq <= 177500) { /* VHF Track: 7 */ in fc0013_set_vhf_track()
190 } else if (freq <= 184500) { /* VHF Track: 6 */ in fc0013_set_vhf_track()
192 } else if (freq <= 191500) { /* VHF Track: 5 */ in fc0013_set_vhf_track()
194 } else if (freq <= 198500) { /* VHF Track: 4 */ in fc0013_set_vhf_track()
196 } else if (freq <= 205500) { /* VHF Track: 3 */ in fc0013_set_vhf_track()
198 } else if (freq <= 219500) { /* VHF Track: 2 */ in fc0013_set_vhf_track()
200 } else if (freq < 300000) { /* VHF Track: 1 */ in fc0013_set_vhf_track()
214 u32 freq = p->frequency / 1000; in fc0013_set_params() local
223 FC_FE_CALLBACK_VHF_ENABLE, (freq > 300000 ? 0 : 1)); in fc0013_set_params()
[all …]
/linux-6.12.1/drivers/misc/
Dics932s401.c179 int m, n, freq; in calculate_cpu_freq() local
188 freq = BASE_CLOCK * (n + 8) / (m + 2); in calculate_cpu_freq()
189 freq /= divisors[data->regs[ICS932S401_REG_CPU_DIVISOR] >> in calculate_cpu_freq()
192 return freq; in calculate_cpu_freq()
209 int freq; in show_cpu_clock_sel() local
212 freq = calculate_cpu_freq(data); in show_cpu_clock_sel()
214 /* Freq is neatly wrapped up for us */ in show_cpu_clock_sel()
217 freq = fs_speeds[fid]; in show_cpu_clock_sel()
219 switch (freq) { in show_cpu_clock_sel()
221 freq = 160000; in show_cpu_clock_sel()
[all …]
/linux-6.12.1/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 …]
/linux-6.12.1/net/ipv6/
Dip6_flowlabel.c376 fl_create(struct net *net, struct sock *sk, struct in6_flowlabel_req *freq, in fl_create() argument
384 olen = optlen - CMSG_ALIGN(sizeof(*freq)); in fl_create()
408 CMSG_ALIGN(sizeof(*freq)), olen)) in fl_create()
430 err = fl6_renew(fl, freq->flr_linger, freq->flr_expires); in fl_create()
433 fl->share = freq->flr_share; in fl_create()
434 addr_type = ipv6_addr_type(&freq->flr_dst); in fl_create()
440 fl->dst = freq->flr_dst; in fl_create()
505 int ipv6_flowlabel_opt_get(struct sock *sk, struct in6_flowlabel_req *freq, in ipv6_flowlabel_opt_get() argument
512 freq->flr_label = np->rcv_flowinfo & IPV6_FLOWLABEL_MASK; in ipv6_flowlabel_opt_get()
517 freq->flr_label = np->flow_label; in ipv6_flowlabel_opt_get()
[all …]
/linux-6.12.1/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-6.12.1/include/trace/events/
Ddevfreq.h12 TP_PROTO(struct devfreq *devfreq, unsigned long freq,
15 TP_ARGS(devfreq, freq, prev_freq),
19 __field(unsigned long, freq)
27 __entry->freq = freq;
33 TP_printk("dev_name=%-30s freq=%-12lu prev_freq=%-12lu load=%-2lu",
34 __get_str(dev_name), __entry->freq, __entry->prev_freq,
45 __field(unsigned long, freq)
53 __entry->freq = devfreq->previous_freq;
60 TP_printk("dev_name=%-30s freq=%-12lu polling_ms=%-3u load=%-2lu",
61 __get_str(dev_name), __entry->freq, __entry->polling_ms,
/linux-6.12.1/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-6.12.1/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-6.12.1/drivers/gpu/drm/msm/
Dmsm_gpu_trace.h88 TP_PROTO(u32 freq),
89 TP_ARGS(freq),
91 __field(u32, freq)
94 /* trace freq in MHz to match intel_gpu_freq_change, to make life easier
97 __entry->freq = DIV_ROUND_UP(freq, 1000000);
99 TP_printk("new_freq=%u", __entry->freq)
104 TP_PROTO(u32 freq, u32 perf_index),
105 TP_ARGS(freq, perf_index),
107 __field(u32, freq)
111 __entry->freq = freq;
[all …]
/linux-6.12.1/tools/perf/util/
Drecord.c76 attr->freq = 0; in evsel__config_leader_sampling()
164 opts->freq = opts->user_freq; in record_opts__config_freq()
170 opts->freq = 0; in record_opts__config_freq()
171 else if (opts->freq) { in record_opts__config_freq()
172 opts->default_interval = opts->freq; in record_opts__config_freq()
184 if (user_freq && (max_rate < opts->freq)) { in record_opts__config_freq()
187 " Please use -F freq option with a lower value or consider\n" in record_opts__config_freq()
195 " Use --strict-freq to disable this throttling, refusing to record.\n", in record_opts__config_freq()
196 max_rate, opts->freq, max_rate); in record_opts__config_freq()
198 opts->freq = max_rate; in record_opts__config_freq()
[all …]
/linux-6.12.1/drivers/media/platform/qcom/venus/
Dhfi_platform.c27 unsigned long freq = 0; in hfi_platform_get_codec_vpp_freq() local
34 freq = plat->codec_vpp_freq(session_type, codec); in hfi_platform_get_codec_vpp_freq()
36 return freq; in hfi_platform_get_codec_vpp_freq()
43 unsigned long freq = 0; in hfi_platform_get_codec_vsp_freq() local
50 freq = plat->codec_vsp_freq(session_type, codec); in hfi_platform_get_codec_vsp_freq()
52 return freq; in hfi_platform_get_codec_vsp_freq()
59 unsigned long freq = 0; in hfi_platform_get_codec_lp_freq() local
66 freq = plat->codec_lp_freq(session_type, codec); in hfi_platform_get_codec_lp_freq()
68 return freq; in hfi_platform_get_codec_lp_freq()

12345678910>>...84