/linux/drivers/net/wireless/broadcom/b43/ |
A D | radio_2059.c | 60 .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 …]
|
A D | radio_2057.c | 180 .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, 609 if (e_r7->freq == freq) { in r2057_get_chantabent_rev7() [all …]
|
A D | radio_2055.c | 293 .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 …]
|
A D | radio_2056.c | 9048 .freq = 4920, 9057 .freq = 4930, 9066 .freq = 4940, 9075 .freq = 4950, 9084 .freq = 4960, 9093 .freq = 4970, 9102 .freq = 4980, 9111 .freq = 4990, 9120 .freq = 5000, 9129 .freq = 5010, [all …]
|
/linux/drivers/devfreq/ |
A D | imx8m-ddrc.c | 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() 247 if (*freq == old_freq) in imx8m_ddrc_target() 269 *freq, old_freq); in imx8m_ddrc_target() 306 freq->rate = res.a0; in imx8m_ddrc_init_freq_info() 307 freq->smcarg = index; in imx8m_ddrc_init_freq_info() 334 unsigned long freq; in imx8m_ddrc_check_opps() local 341 for (i = 0, freq = 0; i < opp_count; ++i, ++freq) { in imx8m_ddrc_check_opps() [all …]
|
/linux/sound/pci/lola/ |
A D | lola_clock.c | 17 unsigned int freq; in lola_sample_rate_convert() local 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() 45 return freq; in lola_sample_rate_convert() 57 unsigned int freq) in check_gran_clock_compatibility() argument 163 freq = lola_sample_rate_convert(freq); in lola_init_clock_widget() 172 freq = lola_sample_rate_convert(freq); in lola_init_clock_widget() 186 sc->freq = freq; in lola_init_clock_widget() 262 int freq = 0; in lola_set_clock() local 272 freq = chip->clock.sample_clock[idx].freq; in lola_set_clock() [all …]
|
/linux/sound/drivers/vx/ |
A D | vx_uer.c | 94 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() 127 return freq; in vx_read_uer_status() 256 if (chip->freq == freq) in vx_set_clock() 262 if (chip->freq == freq) in vx_set_clock() 264 chip->freq = freq; in vx_set_clock() 275 int freq; in vx_change_frequency() local 286 if (freq < 0) in vx_change_frequency() 287 return freq; in vx_change_frequency() [all …]
|
/linux/drivers/cpufreq/ |
A D | freq_table.c | 38 unsigned int freq; in cpufreq_frequency_table_cpuinfo() local 41 freq = pos->frequency; 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() 84 if ((freq >= policy->min) && (freq <= policy->max)) { in cpufreq_frequency_table_verify() 89 if ((next_larger > freq) && (freq > policy->max)) in cpufreq_frequency_table_verify() 90 next_larger = freq; in cpufreq_frequency_table_verify() 151 if ((freq < policy->min) || (freq > policy->max)) in cpufreq_table_index_unsorted() [all …]
|
A D | s3c24xx-cpufreq.c | 70 cfg->freq.hclk_tns = 1000000000 / (cfg->freq.hclk / 10); in s3c_cpufreq_getcur() 80 cfg->freq.fclk = pll; 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() 143 unsigned int freq) in s3c_cpufreq_updateclk() argument 145 clk_set_rate(clk, freq); in s3c_cpufreq_updateclk() 183 if (cpu_new.freq.hclk != cpu_cur.freq.hclk) { in s3c_cpufreq_settarget() 219 if (cpu_new.freq.hclk < cpu_cur.freq.hclk) { in s3c_cpufreq_settarget() 224 if (cpu_new.freq.fclk == cpu_cur.freq.fclk) { in s3c_cpufreq_settarget() 229 if (cpu_new.freq.fclk < cpu_cur.freq.fclk) { in s3c_cpufreq_settarget() [all …]
|
A D | s3c64xx-cpufreq.c | 108 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() 174 if (r != freq->frequency) { in s3c64xx_cpufreq_driver_init() 176 freq->frequency); in s3c64xx_cpufreq_driver_init() 177 freq->frequency = CPUFREQ_ENTRY_INVALID; in s3c64xx_cpufreq_driver_init() [all …]
|
/linux/include/trace/events/ |
A D | thermal.h | 103 __field(unsigned long, freq ) 112 __entry->freq = freq; 120 __get_bitmask(cpumask), __entry->freq, 129 TP_ARGS(cpus, freq, cdev_state, power), 133 __field(unsigned int, freq ) 141 __entry->freq = freq; 158 TP_ARGS(cdev, status, freq, power), 170 __entry->freq = freq; 177 __get_str(type), __entry->freq, 191 __field(unsigned int, freq ) [all …]
|
/linux/drivers/media/i2c/cx25840/ |
A D | cx25840-audio.c | 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() 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() 333 switch (freq) { in cx231xx_set_audclk_freq() 359 switch (freq) { in cx231xx_set_audclk_freq() 399 state->audclk_freq = freq; in cx231xx_set_audclk_freq() 408 if (freq != 32000 && freq != 44100 && freq != 48000) in set_audclk_freq() [all …]
|
/linux/drivers/media/tuners/ |
A D | mt2131.c | 86 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 …]
|
A D | mt2266.c | 121 u32 freq; in mt2266_set_params() local 131 if (freq < 470000 && freq > 230000) 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() 180 else if (freq <= 630000) in mt2266_set_params() 182 else if (freq <= 655000) in mt2266_set_params() 184 else if (freq <= 685000) in mt2266_set_params() [all …]
|
/linux/arch/mips/mti-malta/ |
A D | malta-time.c | 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() 224 unsigned int freq; in plat_time_init() local 229 freq = mips_hpt_frequency; in plat_time_init() 232 freq *= 2; in plat_time_init() 233 freq = freqround(freq, 5000); in plat_time_init() 235 (freq%1000000)*100/1000000); in plat_time_init() [all …]
|
/linux/drivers/media/radio/ |
A D | tea575x.c | 153 freq /= 10; in snd_tea575x_val_to_freq() 160 freq /= 10; in snd_tea575x_val_to_freq() 181 u32 freq = tea->freq / 16; /* to kHz */ in snd_tea575x_set_freq() local 190 freq *= 10; in snd_tea575x_set_freq() 198 freq *= 10; in snd_tea575x_set_freq() 384 tea->freq = clamp(tea->freq, bands[i].rangelow, in snd_tea575x_s_hw_freq_seek() 411 u32 freq; in snd_tea575x_s_hw_freq_seek() local 426 if (abs(tea->freq - freq) < 16 * spacing || in snd_tea575x_s_hw_freq_seek() 427 (a->seek_upward && freq < tea->freq) || in snd_tea575x_s_hw_freq_seek() 428 (!a->seek_upward && freq > tea->freq)) { in snd_tea575x_s_hw_freq_seek() [all …]
|
A D | radio-tea5777.c | 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() 198 freq = (freq - TEA5777_AM_IF) / TEA5777_AM_FREQ_STEP; in radio_tea5777_set_freq() 219 tea->freq = tea5777_freq_to_v4l2_freq(tea, freq); in radio_tea5777_set_freq() 397 if (tea->freq < rangelow || tea->freq > rangehigh) { in vidioc_s_hw_freq_seek() 398 tea->freq = clamp(tea->freq, rangelow, in vidioc_s_hw_freq_seek() 410 orig_freq = tea->freq; in vidioc_s_hw_freq_seek() 415 tea->freq = rangelow; in vidioc_s_hw_freq_seek() [all …]
|
/linux/drivers/gpu/drm/i915/gt/ |
A D | selftest_rps.c | 552 *freq = rps_set_check(rps, *freq); in measure_frequency_at() 555 *freq = (*freq + read_cagf(rps)) / 2; in measure_frequency_at() 583 *freq = rps_set_check(rps, *freq); in measure_cs_frequency_at() 586 *freq = (*freq + read_cagf(rps)) / 2; in measure_cs_frequency_at() 1113 *freq = rps_set_check(rps, *freq); in measure_power_at() 1116 *freq = (*freq + read_cagf(rps)) / 2; in measure_power_at() 1199 if (10 * min.freq >= 9 * max.freq) { in live_rps_power() 1201 min.freq, intel_gpu_freq(rps, min.freq), in live_rps_power() 1294 max.freq, intel_gpu_freq(rps, max.freq), in live_rps_dynamic() 1296 min.freq, intel_gpu_freq(rps, min.freq), in live_rps_dynamic() [all …]
|
/linux/drivers/misc/ |
A D | ics932s401.c | 180 int m, n, freq; in calculate_cpu_freq() local 193 return freq; in calculate_cpu_freq() 210 int freq; in show_cpu_clock_sel() local 237 int m, n, freq; in calculate_src_freq() local 250 return freq; in calculate_src_freq() 267 int freq; in show_src_clock_sel() local 275 freq = 96000; in show_src_clock_sel() 285 int m, n, freq; in calculate_pci_freq() local 298 return freq; in calculate_pci_freq() 315 int freq; in show_pci_clock_sel() local [all …]
|
/linux/net/ipv6/ |
A D | ip6_flowlabel.c | 427 err = fl6_renew(fl, freq->flr_linger, freq->flr_expires); in fl_create() 430 fl->share = freq->flr_share; in fl_create() 437 fl->dst = freq->flr_dst; in fl_create() 586 freq->flr_expires); in ipv6_flowlabel_renew() 599 freq->flr_expires); in ipv6_flowlabel_renew() 640 if (freq->flr_label) { in ipv6_flowlabel_get() 705 if (!freq->flr_label) { in ipv6_flowlabel_get() 724 struct in6_flowlabel_req freq; in ipv6_flowlabel_opt() local 726 if (optlen < sizeof(freq)) in ipv6_flowlabel_opt() 728 if (copy_from_sockptr(&freq, optval, sizeof(freq))) in ipv6_flowlabel_opt() [all …]
|
/linux/drivers/thermal/ |
A D | devfreq_cooling.c | 88 unsigned long freq; in devfreq_cooling_set_cur_state() local 103 freq = dfc->freq_table[state]; in devfreq_cooling_set_cur_state() 146 freq, PTR_ERR(opp)); in get_voltage() 156 freq); in get_voltage() 183 unsigned long freq; in devfreq_cooling_get_requested_power() local 191 freq = status.current_frequency; in devfreq_cooling_get_requested_power() 257 unsigned long freq; in devfreq_cooling_power2state() local 265 freq = status.current_frequency; in devfreq_cooling_power2state() 315 unsigned long freq; in devfreq_cooling_gen_tables() local 323 for (i = 0, freq = ULONG_MAX; i < num_opps; i++, freq--) { in devfreq_cooling_gen_tables() [all …]
|
/linux/arch/mips/kernel/ |
A D | time.c | 39 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/drivers/ssb/ |
A D | driver_chipcommon_pmu.c | 51 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, }, 82 if (e->freq == crystalfreq) in pmu0_plltab_find_entry() 103 crystalfreq = e->freq; in ssb_pmu0_pllinit_r0() 104 cc->pmu.crystalfreq = e->freq; in ssb_pmu0_pllinit_r0() 178 u16 freq; /* Crystal frequency in kHz.*/ member 213 if (e->freq == crystalfreq) in pmu1_plltab_find_entry() 242 crystalfreq = e->freq; in ssb_pmu1_pllinit_r0() 243 cc->pmu.crystalfreq = e->freq; in ssb_pmu1_pllinit_r0() [all …]
|
/linux/drivers/clocksource/ |
A D | timer-fsl-ftm.c | 199 freq / (1 << priv->ps), in ftm_clockevent_init() 218 freq / (1 << priv->ps), 300, 16, in ftm_clocksource_init() 263 long freq; in ftm_clk_init() local 266 if (freq <= 0) in ftm_clk_init() 270 if (freq <= 0) in ftm_clk_init() 273 return freq; in ftm_clk_init() 300 unsigned long freq; in ftm_timer_init() local 329 freq = ftm_clk_init(np); in ftm_timer_init() 330 if (!freq) in ftm_timer_init() 337 ret = ftm_clocksource_init(freq); in ftm_timer_init() [all …]
|
/linux/tools/perf/util/ |
A D | record.c | 76 attr->freq = 0; in evsel__config_leader_sampling() 177 opts->freq = 0; in record_opts__config_freq() 178 else if (opts->freq) { 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() 217 opts->freq = max_rate; in record_opts__config_freq() 277 unsigned int freq; in record__parse_freq() local 284 if (get_max_rate(&freq)) { in record__parse_freq() 290 freq = atoi(str); in record__parse_freq() [all …]
|