Home
last modified time | relevance | path

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

12345

/arch/mips/mti-malta/
Dmalta-time.c59 static unsigned int freqround(unsigned int freq, unsigned int amount) in freqround() argument
61 freq += amount; in freqround()
62 freq -= freq % (amount*2); in freqround()
63 return freq; in freqround()
161 unsigned char freq, ctrl; in init_rtc() local
164 freq = CMOS_READ(RTC_FREQ_SELECT); in init_rtc()
165 if ((freq & RTC_DIV_CTL) != RTC_REF_CLCK_32KHZ) in init_rtc()
177 unsigned int freq; in plat_time_init() local
182 freq = mips_hpt_frequency; in plat_time_init()
185 freq *= 2; in plat_time_init()
[all …]
/arch/blackfin/mach-common/
Ddpmc.c42 static unsigned int bfin_get_vlev(unsigned int freq) in bfin_get_vlev() argument
49 freq >>= 16; in bfin_get_vlev()
52 if (freq <= (pdata->tuple_tab[i] & 0xFFFF)) in bfin_get_vlev()
104 struct cpufreq_freqs *freq = data; in vreg_cpufreq_notifier() local
106 if (freq->cpu != CPUFREQ_CPU) in vreg_cpufreq_notifier()
109 if (val == CPUFREQ_PRECHANGE && freq->old < freq->new) { in vreg_cpufreq_notifier()
111 bfin_set_vlev(bfin_get_vlev(freq->new)); in vreg_cpufreq_notifier()
114 } else if (val == CPUFREQ_POSTCHANGE && freq->old > freq->new) { in vreg_cpufreq_notifier()
116 bfin_set_vlev(bfin_get_vlev(freq->new)); in vreg_cpufreq_notifier()
/arch/mips/mti-sead3/
Dsead3-time.c38 unsigned int freq; in estimate_cpu_frequency() local
61 freq = read_c0_count(); in estimate_cpu_frequency()
65 mips_hpt_frequency = freq; in estimate_cpu_frequency()
70 freq *= 2; in estimate_cpu_frequency()
72 freq += 5000; /* rounding */ in estimate_cpu_frequency()
73 freq -= freq%10000; in estimate_cpu_frequency()
75 return freq ; in estimate_cpu_frequency()
/arch/mips/kernel/
Dcsrc-ioasic.c42 unsigned int freq; in dec_ioasic_clocksource_init() local
58 freq = (end - start) * 8; in dec_ioasic_clocksource_init()
61 if (!freq) in dec_ioasic_clocksource_init()
64 printk(KERN_INFO "I/O ASIC clock frequency %dHz\n", freq); in dec_ioasic_clocksource_init()
66 clocksource_dec.rating = 200 + freq / 10000000; in dec_ioasic_clocksource_init()
67 clocksource_register_hz(&clocksource_dec, freq); in dec_ioasic_clocksource_init()
/arch/m68k/mac/
Dmacboing.c163 void mac_mksound( unsigned int freq, unsigned int length ) in mac_mksound() argument
165 __u32 cfreq = ( freq << 5 ) / 468; in mac_mksound()
180 mac_special_bell( freq, length, 128 ); in mac_mksound()
184 if ( freq < 20 || freq > 20000 || length == 0 ) in mac_mksound()
226 static void mac_quadra_start_bell( unsigned int freq, unsigned int length, unsigned int volume ) in mac_quadra_start_bell() argument
239 mac_bell_phasepersample = ( freq * sizeof( mac_asc_wave_tab ) ) / mac_asc_samplespersec; in mac_quadra_start_bell()
307 static void mac_av_start_bell( unsigned int freq, unsigned int length, unsigned int volume ) in mac_av_start_bell() argument
/arch/x86/kernel/
Dtsc_msr.c85 u32 lo, hi, ratio, freq_id, freq; in try_msr_calibrate_tsc() local
108 freq = id_to_freq(cpu_index, freq_id); in try_msr_calibrate_tsc()
110 freq_id, freq); in try_msr_calibrate_tsc()
111 if (!freq) in try_msr_calibrate_tsc()
115 res = freq * ratio; in try_msr_calibrate_tsc()
119 lapic_timer_frequency = (freq * 1000) / HZ; in try_msr_calibrate_tsc()
Dtsc.c899 struct cpufreq_freqs *freq = data; in time_cpufreq_notifier() local
902 if (cpu_has(&cpu_data(freq->cpu), X86_FEATURE_CONSTANT_TSC)) in time_cpufreq_notifier()
907 if (!(freq->flags & CPUFREQ_CONST_LOOPS)) in time_cpufreq_notifier()
908 lpj = &cpu_data(freq->cpu).loops_per_jiffy; in time_cpufreq_notifier()
912 ref_freq = freq->old; in time_cpufreq_notifier()
916 if ((val == CPUFREQ_PRECHANGE && freq->old < freq->new) || in time_cpufreq_notifier()
917 (val == CPUFREQ_POSTCHANGE && freq->old > freq->new)) { in time_cpufreq_notifier()
918 *lpj = cpufreq_scale(loops_per_jiffy_ref, ref_freq, freq->new); in time_cpufreq_notifier()
920 tsc_khz = cpufreq_scale(tsc_khz_ref, ref_freq, freq->new); in time_cpufreq_notifier()
921 if (!(freq->flags & CPUFREQ_CONST_LOOPS)) in time_cpufreq_notifier()
[all …]
/arch/arm/mach-omap2/
Dgpmc-onenand.c134 int freq; in omap2_onenand_get_freq() local
138 freq = 40; in omap2_onenand_get_freq()
141 freq = 54; in omap2_onenand_get_freq()
144 freq = 66; in omap2_onenand_get_freq()
147 freq = 83; in omap2_onenand_get_freq()
150 freq = 104; in omap2_onenand_get_freq()
153 freq = 54; in omap2_onenand_get_freq()
157 return freq; in omap2_onenand_get_freq()
162 int freq) in omap2_onenand_calc_sync_timings() argument
178 switch (freq) { in omap2_onenand_calc_sync_timings()
[all …]
Dopp.c88 r = dev_pm_opp_add(dev, opp_def->freq, opp_def->u_volt); in omap_init_opp_table()
91 __func__, opp_def->freq, in omap_init_opp_table()
95 r = dev_pm_opp_disable(dev, opp_def->freq); in omap_init_opp_table()
98 __func__, opp_def->freq, in omap_init_opp_table()
/arch/mips/ath79/
Dclock.c58 u32 freq; in ar71xx_clocks_init() local
66 freq = div * ref_rate; in ar71xx_clocks_init()
69 cpu_rate = freq / div; in ar71xx_clocks_init()
72 ddr_rate = freq / div; in ar71xx_clocks_init()
93 u32 freq; in ar724x_clocks_init() local
100 freq = div * ref_rate; in ar724x_clocks_init()
103 freq *= div; in ar724x_clocks_init()
105 cpu_rate = freq; in ar724x_clocks_init()
108 ddr_rate = freq / div; in ar724x_clocks_init()
129 u32 freq; in ar913x_clocks_init() local
[all …]
/arch/arm/mach-vexpress/
Dspc.c96 unsigned long freq; member
256 static int ve_spc_get_performance(int cluster, u32 *freq) in ve_spc_get_performance() argument
269 *freq = opps->freq; in ve_spc_get_performance()
275 static int ve_spc_round_performance(int cluster, u32 freq) in ve_spc_round_performance() argument
281 freq /= 1000; /* OPP entries in kHz */ in ve_spc_round_performance()
283 ftmp = opps->freq; in ve_spc_round_performance()
284 if (ftmp >= freq) { in ve_spc_round_performance()
298 static int ve_spc_find_performance_index(int cluster, u32 freq) in ve_spc_find_performance_index() argument
304 if (opps->freq == freq) in ve_spc_find_performance_index()
320 static int ve_spc_set_performance(int cluster, u32 freq) in ve_spc_set_performance() argument
[all …]
/arch/powerpc/platforms/52xx/
Dmpc52xx_common.c217 unsigned int freq; in mpc52xx_get_xtal_freq() local
222 freq = mpc5xxx_get_bus_frequency(node); in mpc52xx_get_xtal_freq()
223 if (!freq) in mpc52xx_get_xtal_freq()
227 freq *= 2; in mpc52xx_get_xtal_freq()
231 freq *= 8; in mpc52xx_get_xtal_freq()
233 freq *= 4; in mpc52xx_get_xtal_freq()
235 freq /= 12; in mpc52xx_get_xtal_freq()
237 freq /= 16; in mpc52xx_get_xtal_freq()
239 return freq; in mpc52xx_get_xtal_freq()
/arch/sparc/kernel/
Dtime_64.c606 unsigned long freq; in sparc64_init_timers() local
619 freq = of_getintprop_default(dp, "stick-frequency", 0); in sparc64_init_timers()
622 freq = local_cpu_data().clock_tick; in sparc64_init_timers()
626 freq = of_getintprop_default(dp, "stick-frequency", 0); in sparc64_init_timers()
629 return freq; in sparc64_init_timers()
653 struct cpufreq_freqs *freq = data; in sparc64_cpufreq_notifier() local
654 unsigned int cpu = freq->cpu; in sparc64_cpufreq_notifier()
658 ft->ref_freq = freq->old; in sparc64_cpufreq_notifier()
661 if ((val == CPUFREQ_PRECHANGE && freq->old < freq->new) || in sparc64_cpufreq_notifier()
662 (val == CPUFREQ_POSTCHANGE && freq->old > freq->new)) { in sparc64_cpufreq_notifier()
[all …]
/arch/xtensa/platforms/xtfpga/
Dsetup.c88 u32 freq; in update_clock_frequency() local
90 if (!of_property_read_u32(node, "clock-frequency", &freq) && freq != 0) in update_clock_frequency()
97 newfreq->length = sizeof(freq); in update_clock_frequency()
173 u32 freq; in platform_calibrate_ccount() local
175 if (!of_property_read_u32(cpu, "clock-frequency", &freq)) in platform_calibrate_ccount()
176 clk_freq = freq; in platform_calibrate_ccount()
/arch/arm/boot/dts/
Delpida_ecb240abacn.dtsi25 min-freq = <10000000>;
26 max-freq = <400000000>;
47 min-freq = <10000000>;
48 max-freq = <200000000>;
Dsamsung_k3pe0e000b.dtsi25 min-freq = <10000000>;
26 max-freq = <533333333>;
47 min-freq = <10000000>;
48 max-freq = <266666666>;
/arch/arm/mach-shmobile/
Dsetup-rcar-gen2.c61 u32 freq; in rcar_gen2_timer_init() local
86 freq = extal_mhz * (1000000 / 2); in rcar_gen2_timer_init()
99 ioread32(base + CNTFID0) != freq) { in rcar_gen2_timer_init()
101 iowrite32(freq, base + CNTFID0); in rcar_gen2_timer_init()
102 asm volatile("mcr p15, 0, %0, c14, c0, 0" : : "r" (freq)); in rcar_gen2_timer_init()
Dtimer.c55 u32 freq; in shmobile_init_delay() local
57 if (!of_property_read_u32(np, "clock-frequency", &freq)) in shmobile_init_delay()
58 max_freq = max(max_freq, freq); in shmobile_init_delay()
/arch/arc/kernel/
Dclk.c17 int arc_set_core_freq(unsigned long freq) in arc_set_core_freq() argument
19 core_freq = freq; in arc_set_core_freq()
/arch/arm/mach-at91/
Dclock.c588 static u32 __init at91_pll_rate(struct clk *pll, u32 freq, u32 reg) in at91_pll_rate() argument
599 freq /= div; in at91_pll_rate()
600 freq *= mul + 1; in at91_pll_rate()
602 freq = 0; in at91_pll_rate()
604 return freq; in at91_pll_rate()
607 static u32 __init at91_usb_rate(struct clk *pll, u32 freq, u32 reg) in at91_usb_rate() argument
610 return freq / 2; in at91_usb_rate()
612 return freq / (1 + ((reg & AT91_PMC_OHCIUSBDIV) >> 8)); in at91_usb_rate()
614 return freq; in at91_usb_rate()
744 unsigned tmp, freq, mckr; in at91_pmc_init() local
[all …]
/arch/arm/mach-iop13xx/include/mach/
Dtime.h29 unsigned long freq = __raw_readl(IOP13XX_PROCESSOR_FREQ); in iop13xx_core_freq() local
30 freq &= IOP13XX_CORE_FREQ_MASK; in iop13xx_core_freq()
31 switch (freq) { in iop13xx_core_freq()
/arch/cris/include/uapi/asm/
Dsync_serial.h56 #define CODEC_VAL(freq, clk_per_sync, sync_per_frame) \ argument
57 ((CODEC + ((freq & 0x10) >> 4)) | (freq << 8) | \
/arch/arm/kernel/
Dsmp.c739 struct cpufreq_freqs *freq = data; in cpufreq_callback() local
740 int cpu = freq->cpu; in cpufreq_callback()
742 if (freq->flags & CPUFREQ_CONST_LOOPS) in cpufreq_callback()
748 per_cpu(l_p_j_ref_freq, cpu) = freq->old; in cpufreq_callback()
751 global_l_p_j_ref_freq = freq->old; in cpufreq_callback()
755 if ((val == CPUFREQ_PRECHANGE && freq->old < freq->new) || in cpufreq_callback()
756 (val == CPUFREQ_POSTCHANGE && freq->old > freq->new)) { in cpufreq_callback()
759 freq->new); in cpufreq_callback()
763 freq->new); in cpufreq_callback()
/arch/x86/kernel/cpu/
Dproc.c80 unsigned int freq = cpufreq_quick_get(cpu); in show_cpuinfo() local
82 if (!freq) in show_cpuinfo()
83 freq = cpu_khz; in show_cpuinfo()
85 freq / 1000, (freq % 1000)); in show_cpuinfo()
/arch/arm/mach-s3c64xx/
Dcommon.h29 void s3c64xx_set_xtal_freq(unsigned long freq);
30 void s3c64xx_set_xusbxti_freq(unsigned long freq);

12345