Home
last modified time | relevance | path

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

123456

/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 …]
/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()
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()
/arch/arm/mach-shmobile/
Dsetup-rcar-gen2.c40 u32 freq = 20000000; in get_extal_freq() local
45 return freq; in get_extal_freq()
52 return freq; in get_extal_freq()
54 of_property_read_u32(extal, "clock-frequency", &freq); in get_extal_freq()
56 return freq; in get_extal_freq()
66 u32 freq; in rcar_gen2_timer_init() local
88 freq = 260000000 / 8; /* ZS / 8 */ in rcar_gen2_timer_init()
96 freq = get_extal_freq() / 2; in rcar_gen2_timer_init()
110 ioread32(base + CNTFID0) != freq) { in rcar_gen2_timer_init()
112 iowrite32(freq, base + CNTFID0); in rcar_gen2_timer_init()
[all …]
Dtimer.c21 u32 freq; in shmobile_init_delay() local
23 if (!of_property_read_u32(np, "clock-frequency", &freq)) in shmobile_init_delay()
24 max_freq = max(max_freq, freq); in shmobile_init_delay()
/arch/nios2/kernel/
Dtime.c38 unsigned long freq; member
186 period = DIV_ROUND_UP(timer->freq, HZ); in nios2_timer_set_periodic()
213 void __iomem **base, u32 *freq) in nios2_timer_get_base_and_freq() argument
221 if (of_property_read_u32(np, "clock-frequency", freq)) { in nios2_timer_get_base_and_freq()
246 u32 freq; in nios2_clockevent_init() local
249 ret = nios2_timer_get_base_and_freq(timer, &iobase, &freq); in nios2_clockevent_init()
260 nios2_ce.timer.freq = freq; in nios2_clockevent_init()
276 clockevents_config_and_register(&nios2_ce.ced, freq, 1, ULONG_MAX); in nios2_clockevent_init()
285 u32 freq; in nios2_clocksource_init() local
288 ret = nios2_timer_get_base_and_freq(timer, &iobase, &freq); in nios2_clocksource_init()
[all …]
/arch/m68k/mac/
Dmacboing.c164 void mac_mksound( unsigned int freq, unsigned int length ) in mac_mksound() argument
166 __u32 cfreq = ( freq << 5 ) / 468; in mac_mksound()
181 mac_special_bell( freq, length, 128 ); in mac_mksound()
185 if ( freq < 20 || freq > 20000 || length == 0 ) in mac_mksound()
227 static void mac_quadra_start_bell( unsigned int freq, unsigned int length, unsigned int volume ) in mac_quadra_start_bell() argument
240 mac_bell_phasepersample = ( freq * sizeof( mac_asc_wave_tab ) ) / mac_asc_samplespersec; in mac_quadra_start_bell()
308 static void mac_av_start_bell( unsigned int freq, unsigned int length, unsigned int volume ) in mac_av_start_bell() argument
/arch/sparc/kernel/
Dtime_64.c169 unsigned long freq = 0; in cpuid_to_freq() local
173 return freq; in cpuid_to_freq()
181 freq = prom_getintdefault(node, "clock-frequency", 0); in cpuid_to_freq()
182 if (!freq) in cpuid_to_freq()
183 freq = cpuid_to_freq(prom_getchild(node), cpuid); in cpuid_to_freq()
184 if (!freq) in cpuid_to_freq()
185 freq = cpuid_to_freq(prom_getsibling(node), cpuid); in cpuid_to_freq()
187 return freq; in cpuid_to_freq()
655 struct cpufreq_freqs *freq = data; in sparc64_cpufreq_notifier() local
659 for_each_cpu(cpu, freq->policy->cpus) { in sparc64_cpufreq_notifier()
[all …]
/arch/arm/mach-vexpress/
Dspc.c98 unsigned long freq; member
258 static int ve_spc_get_performance(int cluster, u32 *freq) in ve_spc_get_performance() argument
271 *freq = opps->freq; in ve_spc_get_performance()
277 static int ve_spc_round_performance(int cluster, u32 freq) in ve_spc_round_performance() argument
283 freq /= 1000; /* OPP entries in kHz */ in ve_spc_round_performance()
285 ftmp = opps->freq; in ve_spc_round_performance()
286 if (ftmp >= freq) { in ve_spc_round_performance()
300 static int ve_spc_find_performance_index(int cluster, u32 freq) in ve_spc_find_performance_index() argument
306 if (opps->freq == freq) in ve_spc_find_performance_index()
322 static int ve_spc_set_performance(int cluster, u32 freq) in ve_spc_set_performance() argument
[all …]
/arch/x86/kernel/
Dtsc_msr.c167 u32 lo, hi, ratio, freq, tscref; in cpu_khz_from_msr() local
198 freq = DIV_ROUND_CLOSEST(tscref, md->divider); in cpu_khz_from_msr()
205 freq = freq_desc->freqs[index]; in cpu_khz_from_msr()
206 res = freq * ratio; in cpu_khz_from_msr()
209 if (freq == 0) in cpu_khz_from_msr()
213 lapic_timer_period = (freq * 1000) / HZ; in cpu_khz_from_msr()
Dtsc.c978 struct cpufreq_freqs *freq = data; in time_cpufreq_notifier() local
986 ref_freq = freq->old; in time_cpufreq_notifier()
991 if ((val == CPUFREQ_PRECHANGE && freq->old < freq->new) || in time_cpufreq_notifier()
992 (val == CPUFREQ_POSTCHANGE && freq->old > freq->new)) { in time_cpufreq_notifier()
994 cpufreq_scale(loops_per_jiffy_ref, ref_freq, freq->new); in time_cpufreq_notifier()
996 tsc_khz = cpufreq_scale(tsc_khz_ref, ref_freq, freq->new); in time_cpufreq_notifier()
997 if (!(freq->flags & CPUFREQ_CONST_LOOPS)) in time_cpufreq_notifier()
1000 set_cyc2ns_scale(tsc_khz, freq->policy->cpu, rdtsc()); in time_cpufreq_notifier()
1318 unsigned long freq; in tsc_refine_calibration_work() local
1355 freq = calc_hpet_ref(delta, ref_start, ref_stop); in tsc_refine_calibration_work()
[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/x86/kernel/cpu/
Dproc.c83 unsigned int freq = aperfmperf_get_khz(cpu); in show_cpuinfo() local
85 if (!freq) in show_cpuinfo()
86 freq = cpufreq_quick_get(cpu); in show_cpuinfo()
87 if (!freq) in show_cpuinfo()
88 freq = cpu_khz; in show_cpuinfo()
90 freq / 1000, (freq % 1000)); in show_cpuinfo()
/arch/h8300/kernel/
Dsetup.c49 static unsigned long freq; variable
139 freq/1000, freq%1000, in show_cpuinfo()
206 int freq; in calibrate_delay() local
209 of_property_read_s32(cpu, "clock-frequency", &freq); in calibrate_delay()
210 loops_per_jiffy = freq / HZ / (access_timing() * 2); in calibrate_delay()
/arch/arm/boot/dts/
Delpida_ecb240abacn.dtsi26 min-freq = <10000000>;
27 max-freq = <400000000>;
48 min-freq = <10000000>;
49 max-freq = <200000000>;
Dvexpress-v2p-ca5s.dts152 freq-range = <50000000 100000000>;
161 freq-range = <5000000 50000000>;
170 freq-range = <80000000 120000000>;
179 freq-range = <23750000 165000000>;
188 freq-range = <80000000 80000000>;
197 freq-range = <25000000 60000000>;
/arch/arm/kernel/
Dsmp.c760 struct cpufreq_freqs *freq = data; in cpufreq_callback() local
761 struct cpumask *cpus = freq->policy->cpus; in cpufreq_callback()
765 if (freq->flags & CPUFREQ_CONST_LOOPS) in cpufreq_callback()
772 per_cpu(l_p_j_ref_freq, cpu) = freq->old; in cpufreq_callback()
777 global_l_p_j_ref_freq = freq->old; in cpufreq_callback()
781 if ((val == CPUFREQ_PRECHANGE && freq->old < freq->new) || in cpufreq_callback()
782 (val == CPUFREQ_POSTCHANGE && freq->old > freq->new)) { in cpufreq_callback()
785 freq->new); in cpufreq_callback()
788 per_cpu(l_p_j_ref_freq, first), freq->new); in cpufreq_callback()
/arch/arc/plat-axs10x/
Daxs10x.c315 u32 freq; in axs103_early_init() local
321 freq = be32_to_cpu(*(u32 *)(prop->data)); in axs103_early_init()
324 if (freq != AXS103_QUAD_CORE_CPU_FREQ_HZ) { in axs103_early_init()
325 freq = cpu_to_be32(AXS103_QUAD_CORE_CPU_FREQ_HZ); in axs103_early_init()
327 "assigned-clock-rates", &freq, sizeof(freq)); in axs103_early_init()
/arch/powerpc/platforms/85xx/
Dp1022_rdk.c46 unsigned long freq; in p1022rdk_set_pixel_clock() local
67 freq = temp; in p1022rdk_set_pixel_clock()
74 pxclk = DIV_ROUND_CLOSEST(fsl_get_sys_freq(), freq); in p1022rdk_set_pixel_clock()
Dt1042rdb_diu.c80 unsigned long freq; in t1042rdb_set_pixel_clock() local
102 freq = temp; in t1042rdb_set_pixel_clock()
109 pxclk = DIV_ROUND_CLOSEST(fsl_get_sys_freq(), freq); in t1042rdb_set_pixel_clock()
/arch/arm/mach-s3c64xx/
Dcommon.h27 void s3c64xx_set_xtal_freq(unsigned long freq);
28 void s3c64xx_set_xusbxti_freq(unsigned long freq);
/arch/mips/bmips/
Dsetup.c152 u32 freq; in plat_time_init() local
157 if (of_property_read_u32(np, "mips-hpt-frequency", &freq) < 0) in plat_time_init()
161 mips_hpt_frequency = freq; in plat_time_init()
/arch/arm/mach-omap2/
Domap_opp_data.h53 unsigned long freq; member
66 .freq = _freq, \
/arch/arm/plat-samsung/include/plat/
Dcpu-freq-core.h116 struct s3c_freq freq; member
270 unsigned int freq) in s3c_cpufreq_addfreq() argument
280 __func__, index, freq); in s3c_cpufreq_addfreq()
283 table[index].frequency = freq; in s3c_cpufreq_addfreq()
/arch/powerpc/sysdev/
Dfsl_gtm.c246 int freq = 1000000; in gtm_set_timer16() local
251 freq >>= bit - 15; in gtm_set_timer16()
255 if (!freq) in gtm_set_timer16()
258 return gtm_set_ref_timer16(tmr, freq, usec, reload); in gtm_set_timer16()
282 const int freq = 1000000; in gtm_set_exact_timer16() local
291 return gtm_set_ref_timer16(tmr, freq, usec, reload); in gtm_set_exact_timer16()

123456