Home
last modified time | relevance | path

Searched refs:clocksource (Results 1 – 25 of 131) sorted by relevance

123456

/Linux-v4.19/include/linux/
Dclocksource.h23 struct clocksource;
80 struct clocksource { struct
81 u64 (*read)(struct clocksource *cs); argument
94 int (*enable)(struct clocksource *cs); argument
95 void (*disable)(struct clocksource *cs); argument
97 void (*suspend)(struct clocksource *cs); argument
98 void (*resume)(struct clocksource *cs); argument
99 void (*mark_unstable)(struct clocksource *cs); argument
100 void (*tick_stable)(struct clocksource *cs); argument
190 extern int clocksource_unregister(struct clocksource*);
[all …]
/Linux-v4.19/kernel/time/
Dclocksource.c106 static struct clocksource *curr_clocksource;
107 static struct clocksource *suspend_clocksource;
119 static struct clocksource *watchdog;
137 static void __clocksource_change_rating(struct clocksource *cs, int rating);
163 static void __clocksource_unstable(struct clocksource *cs) in __clocksource_unstable()
192 void clocksource_mark_unstable(struct clocksource *cs) in clocksource_mark_unstable()
207 struct clocksource *cs; in clocksource_watchdog()
340 struct clocksource *cs; in clocksource_reset_watchdog()
351 static void clocksource_enqueue_watchdog(struct clocksource *cs) in clocksource_enqueue_watchdog()
368 struct clocksource *cs, *old_wd; in clocksource_select_watchdog()
[all …]
Djiffies.c51 static u64 jiffies_read(struct clocksource *cs) in jiffies_read()
67 static struct clocksource clocksource_jiffies = {
103 struct clocksource * __init __weak clocksource_default_clock(void) in clocksource_default_clock()
108 struct clocksource refined_jiffies;
/Linux-v4.19/drivers/clocksource/
Dmmio.c15 struct clocksource clksrc;
18 static inline struct clocksource_mmio *to_mmio_clksrc(struct clocksource *c) in to_mmio_clksrc()
23 u64 clocksource_mmio_readl_up(struct clocksource *c) in clocksource_mmio_readl_up()
28 u64 clocksource_mmio_readl_down(struct clocksource *c) in clocksource_mmio_readl_down()
33 u64 clocksource_mmio_readw_up(struct clocksource *c) in clocksource_mmio_readw_up()
38 u64 clocksource_mmio_readw_down(struct clocksource *c) in clocksource_mmio_readw_down()
54 u64 (*read)(struct clocksource *)) in clocksource_mmio_init() argument
Dvt8500_timer.c56 static u64 vt8500_timer_read(struct clocksource *cs) in vt8500_timer_read()
66 static struct clocksource clocksource = { variable
78 u64 alarm = clocksource.read(&clocksource) + cycles; in vt8500_timer_set_next_event()
84 if ((signed)(alarm - clocksource.read(&clocksource)) <= MIN_OSCR_DELTA) in vt8500_timer_set_next_event()
146 ret = clocksource_register_hz(&clocksource, VT8500_TIMER_HZ); in vt8500_timer_init()
149 __func__, clocksource.name); in vt8500_timer_init()
Dtime-pistachio.c51 struct clocksource cs;
71 pistachio_clocksource_read_cycles(struct clocksource *cs) in pistachio_clocksource_read_cycles()
95 static void pistachio_clksrc_set_mode(struct clocksource *cs, int timeridx, in pistachio_clksrc_set_mode()
110 static void pistachio_clksrc_enable(struct clocksource *cs, int timeridx) in pistachio_clksrc_enable()
120 static void pistachio_clksrc_disable(struct clocksource *cs, int timeridx) in pistachio_clksrc_disable()
126 static int pistachio_clocksource_enable(struct clocksource *cs) in pistachio_clocksource_enable()
132 static void pistachio_clocksource_disable(struct clocksource *cs) in pistachio_clocksource_disable()
Dsh_tmu.c51 struct clocksource cs;
252 static struct sh_tmu_channel *cs_to_sh_tmu(struct clocksource *cs) in cs_to_sh_tmu()
257 static u64 sh_tmu_clocksource_read(struct clocksource *cs) in sh_tmu_clocksource_read()
264 static int sh_tmu_clocksource_enable(struct clocksource *cs) in sh_tmu_clocksource_enable()
279 static void sh_tmu_clocksource_disable(struct clocksource *cs) in sh_tmu_clocksource_disable()
290 static void sh_tmu_clocksource_suspend(struct clocksource *cs) in sh_tmu_clocksource_suspend()
303 static void sh_tmu_clocksource_resume(struct clocksource *cs) in sh_tmu_clocksource_resume()
319 struct clocksource *cs = &ch->cs; in sh_tmu_register_clocksource()
443 bool clockevent, bool clocksource) in sh_tmu_register() argument
448 } else if (clocksource) { in sh_tmu_register()
[all …]
Darc_timer.c59 static u64 arc_read_gfrc(struct clocksource *cs) in arc_read_gfrc()
91 static struct clocksource arc_counter_gfrc = {
122 static u64 arc_read_rtc(struct clocksource *cs) in arc_read_rtc()
142 static struct clocksource arc_counter_rtc = {
183 static u64 arc_read_timer1(struct clocksource *cs) in arc_read_timer1()
188 static struct clocksource arc_counter_timer1 = {
Dh8300_tpu.c26 struct clocksource cs;
63 static inline struct tpu_priv *cs_to_priv(struct clocksource *cs) in cs_to_priv()
68 static u64 tpu_clocksource_read(struct clocksource *cs) in tpu_clocksource_read()
82 static int tpu_clocksource_enable(struct clocksource *cs) in tpu_clocksource_enable()
97 static void tpu_clocksource_disable(struct clocksource *cs) in tpu_clocksource_disable()
Dh8300_timer16.c27 struct clocksource cs;
71 static inline struct timer16_priv *cs_to_priv(struct clocksource *cs) in cs_to_priv()
76 static u64 timer16_clocksource_read(struct clocksource *cs) in timer16_clocksource_read()
87 static int timer16_enable(struct clocksource *cs) in timer16_enable()
103 static void timer16_disable(struct clocksource *cs) in timer16_disable()
Dtimer-ti-32k.c60 struct clocksource cs;
63 static inline struct ti_32k *to_ti_32k(struct clocksource *cs) in to_ti_32k()
68 static u64 notrace ti_32k_read_cycles(struct clocksource *cs) in ti_32k_read_cycles()
Driscv_timer.c46 static unsigned long long riscv_clocksource_rdtime(struct clocksource *cs) in riscv_clocksource_rdtime()
51 static DEFINE_PER_CPU(struct clocksource, riscv_clocksource) = {
88 struct clocksource *cs; in riscv_timer_init_dt()
DKconfig142 While TIMER0 serves as clockevent and TIMER1 serves as clocksource.
158 bool "Nomakdik clocksource driver" if COMPILE_TEST
176 Use the always on PRCMU Timer as clocksource
252 Support for the LPC32XX clocksource.
259 Enables the clocksource for the Pistachio SoC.
266 This option enables support for Texas Instruments 32.768 Hz clocksource
270 bool "NPS400 clocksource driver" if COMPILE_TEST
275 NPS400 clocksource support.
297 TIMER0 serves as clockevent while TIMER1 provides clocksource
306 ARConnect IP block. Driver automatically picks one of them for clocksource
[all …]
Dem_sti.c45 struct clocksource cs;
193 static struct em_sti_priv *cs_to_em_sti(struct clocksource *cs) in cs_to_em_sti()
198 static u64 em_sti_clocksource_read(struct clocksource *cs) in em_sti_clocksource_read()
203 static int em_sti_clocksource_enable(struct clocksource *cs) in em_sti_clocksource_enable()
210 static void em_sti_clocksource_disable(struct clocksource *cs) in em_sti_clocksource_disable()
215 static void em_sti_clocksource_resume(struct clocksource *cs) in em_sti_clocksource_resume()
222 struct clocksource *cs = &p->cs; in em_sti_register_clocksource()
Dsh_cmt.c111 struct clocksource cs;
614 static struct sh_cmt_channel *cs_to_sh_cmt(struct clocksource *cs) in cs_to_sh_cmt()
619 static u64 sh_cmt_clocksource_read(struct clocksource *cs) in sh_cmt_clocksource_read()
637 static int sh_cmt_clocksource_enable(struct clocksource *cs) in sh_cmt_clocksource_enable()
653 static void sh_cmt_clocksource_disable(struct clocksource *cs) in sh_cmt_clocksource_disable()
663 static void sh_cmt_clocksource_suspend(struct clocksource *cs) in sh_cmt_clocksource_suspend()
674 static void sh_cmt_clocksource_resume(struct clocksource *cs) in sh_cmt_clocksource_resume()
688 struct clocksource *cs = &ch->cs; in sh_cmt_register_clocksource()
836 bool clockevent, bool clocksource) in sh_cmt_register() argument
847 if (clocksource) { in sh_cmt_register()
[all …]
Dtimer-prima2.c75 static u64 notrace sirfsoc_timer_read(struct clocksource *cs) in sirfsoc_timer_read()
123 static void sirfsoc_clocksource_suspend(struct clocksource *cs) in sirfsoc_clocksource_suspend()
136 static void sirfsoc_clocksource_resume(struct clocksource *cs) in sirfsoc_clocksource_resume()
159 static struct clocksource sirfsoc_clocksource = {
Dtimer-sprd.c163 static u64 sprd_suspend_timer_read(struct clocksource *cs) in sprd_suspend_timer_read()
169 static int sprd_suspend_timer_enable(struct clocksource *cs) in sprd_suspend_timer_enable()
178 static void sprd_suspend_timer_disable(struct clocksource *cs) in sprd_suspend_timer_disable()
183 static struct clocksource suspend_clocksource = {
/Linux-v4.19/arch/mips/kernel/
Dcsrc-bcm1480.c28 static u64 bcm1480_hpt_read(struct clocksource *cs) in bcm1480_hpt_read()
33 struct clocksource bcm1480_clocksource = {
48 struct clocksource *cs = &bcm1480_clocksource; in sb1480_clocksource_init()
Dcsrc-sb1250.c44 static u64 sb1250_hpt_read(struct clocksource *cs) in sb1250_hpt_read()
49 struct clocksource bcm1250_clocksource = {
64 struct clocksource *cs = &bcm1250_clocksource; in sb1250_clocksource_init()
/Linux-v4.19/arch/arm/mach-footbridge/
Ddc21285-timer.c23 static u64 cksrc_dc21285_read(struct clocksource *cs) in cksrc_dc21285_read()
28 static int cksrc_dc21285_enable(struct clocksource *cs) in cksrc_dc21285_enable()
36 static void cksrc_dc21285_disable(struct clocksource *cs) in cksrc_dc21285_disable()
41 static struct clocksource cksrc_dc21285 = {
/Linux-v4.19/arch/mips/netlogic/common/
Dtime.c62 static u64 nlm_get_pic_timer(struct clocksource *cs) in nlm_get_pic_timer()
69 static u64 nlm_get_pic_timer32(struct clocksource *cs) in nlm_get_pic_timer32()
76 static struct clocksource csrc_pic = {
/Linux-v4.19/tools/testing/selftests/timers/
Dclocksource-switch.c86 int change_clocksource(char *clocksource) in change_clocksource() argument
96 size = write(fd, clocksource, strlen(clocksource)); in change_clocksource()
/Linux-v4.19/arch/ia64/sn/kernel/sn2/
Dtimer.c26 static u64 read_sn2(struct clocksource *cs) in read_sn2()
31 static struct clocksource clocksource_sn2 = {
/Linux-v4.19/arch/c6x/kernel/
Dtime.c29 static u64 tsc_read(struct clocksource *cs) in tsc_read()
34 static struct clocksource clocksource_tsc = {
/Linux-v4.19/arch/mips/loongson64/loongson-3/
Dhpet.c254 static u64 hpet_read_counter(struct clocksource *cs) in hpet_read_counter()
259 static void hpet_suspend(struct clocksource *cs) in hpet_suspend()
263 static void hpet_resume(struct clocksource *cs) in hpet_resume()
269 static struct clocksource csrc_hpet = {

123456