/Linux-v5.4/include/linux/ |
D | clocksource.h | 23 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-v5.4/kernel/time/ |
D | clocksource.c | 88 static struct clocksource *curr_clocksource; 89 static struct clocksource *suspend_clocksource; 101 static struct clocksource *watchdog; 119 static void __clocksource_change_rating(struct clocksource *cs, int rating); 145 static void __clocksource_unstable(struct clocksource *cs) in __clocksource_unstable() 174 void clocksource_mark_unstable(struct clocksource *cs) in clocksource_mark_unstable() 189 struct clocksource *cs; in clocksource_watchdog() 322 struct clocksource *cs; in clocksource_reset_watchdog() 333 static void clocksource_enqueue_watchdog(struct clocksource *cs) in clocksource_enqueue_watchdog() 350 struct clocksource *cs, *old_wd; in clocksource_select_watchdog() [all …]
|
D | jiffies.c | 35 static u64 jiffies_read(struct clocksource *cs) in jiffies_read() 51 static struct clocksource clocksource_jiffies = { 87 struct clocksource * __init __weak clocksource_default_clock(void) in clocksource_default_clock() 92 static struct clocksource refined_jiffies;
|
/Linux-v5.4/drivers/clocksource/ |
D | timer-vt8500.c | 43 static u64 vt8500_timer_read(struct clocksource *cs) in vt8500_timer_read() 53 static struct clocksource clocksource = { variable 65 u64 alarm = clocksource.read(&clocksource) + cycles; in vt8500_timer_set_next_event() 71 if ((signed)(alarm - clocksource.read(&clocksource)) <= MIN_OSCR_DELTA) in vt8500_timer_set_next_event() 133 ret = clocksource_register_hz(&clocksource, VT8500_TIMER_HZ); in vt8500_timer_init() 136 __func__, clocksource.name); in vt8500_timer_init()
|
D | mmio.c | 12 struct clocksource clksrc; 15 static inline struct clocksource_mmio *to_mmio_clksrc(struct clocksource *c) in to_mmio_clksrc() 20 u64 clocksource_mmio_readl_up(struct clocksource *c) in clocksource_mmio_readl_up() 25 u64 clocksource_mmio_readl_down(struct clocksource *c) in clocksource_mmio_readl_down() 30 u64 clocksource_mmio_readw_up(struct clocksource *c) in clocksource_mmio_readw_up() 35 u64 clocksource_mmio_readw_down(struct clocksource *c) in clocksource_mmio_readw_down() 51 u64 (*read)(struct clocksource *)) in clocksource_mmio_init() argument
|
D | timer-pistachio.c | 51 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()
|
D | sh_tmu.c | 43 struct clocksource cs; 244 static struct sh_tmu_channel *cs_to_sh_tmu(struct clocksource *cs) in cs_to_sh_tmu() 249 static u64 sh_tmu_clocksource_read(struct clocksource *cs) in sh_tmu_clocksource_read() 256 static int sh_tmu_clocksource_enable(struct clocksource *cs) in sh_tmu_clocksource_enable() 271 static void sh_tmu_clocksource_disable(struct clocksource *cs) in sh_tmu_clocksource_disable() 282 static void sh_tmu_clocksource_suspend(struct clocksource *cs) in sh_tmu_clocksource_suspend() 295 static void sh_tmu_clocksource_resume(struct clocksource *cs) in sh_tmu_clocksource_resume() 311 struct clocksource *cs = &ch->cs; in sh_tmu_register_clocksource() 435 bool clockevent, bool clocksource) in sh_tmu_register() argument 440 } else if (clocksource) { in sh_tmu_register() [all …]
|
D | h8300_tpu.c | 26 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()
|
D | arc_timer.c | 58 static u64 arc_read_gfrc(struct clocksource *cs) in arc_read_gfrc() 95 static struct clocksource arc_counter_gfrc = { 128 static u64 arc_read_rtc(struct clocksource *cs) in arc_read_rtc() 153 static struct clocksource arc_counter_rtc = { 196 static u64 arc_read_timer1(struct clocksource *cs) in arc_read_timer1() 206 static struct clocksource arc_counter_timer1 = {
|
D | h8300_timer16.c | 27 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()
|
D | hyperv_timer.c | 213 struct clocksource *hyperv_cs; 224 static u64 notrace read_hv_clock_tsc(struct clocksource *arg) in read_hv_clock_tsc() 239 static struct clocksource hyperv_cs_tsc = { 247 static u64 notrace read_hv_clock_msr(struct clocksource *arg) in read_hv_clock_msr() 264 static struct clocksource hyperv_cs_msr = {
|
D | timer-ti-32k.c | 49 struct clocksource cs; 52 static inline struct ti_32k *to_ti_32k(struct clocksource *cs) in to_ti_32k() 57 static u64 notrace ti_32k_read_cycles(struct clocksource *cs) in ti_32k_read_cycles()
|
D | em_sti.c | 33 struct clocksource cs; 181 static struct em_sti_priv *cs_to_em_sti(struct clocksource *cs) in cs_to_em_sti() 186 static u64 em_sti_clocksource_read(struct clocksource *cs) in em_sti_clocksource_read() 191 static int em_sti_clocksource_enable(struct clocksource *cs) in em_sti_clocksource_enable() 198 static void em_sti_clocksource_disable(struct clocksource *cs) in em_sti_clocksource_disable() 203 static void em_sti_clocksource_resume(struct clocksource *cs) in em_sti_clocksource_resume() 210 struct clocksource *cs = &p->cs; in em_sti_register_clocksource()
|
D | Kconfig | 165 While TIMER0 serves as clockevent and TIMER1 serves as clocksource. 181 bool "Nomakdik clocksource driver" if COMPILE_TEST 193 Use the always on PRCMU Timer as clocksource 262 Support for the LPC32XX clocksource. 269 Enables the clocksource for the Pistachio SoC. 276 This option enables support for Texas Instruments 32.768 Hz clocksource 280 bool "NPS400 clocksource driver" if COMPILE_TEST 285 NPS400 clocksource support. 308 TIMER0 serves as clockevent while TIMER1 provides clocksource 317 ARConnect IP block. Driver automatically picks one of them for clocksource [all …]
|
D | sh_cmt.c | 102 struct clocksource cs; 599 static struct sh_cmt_channel *cs_to_sh_cmt(struct clocksource *cs) in cs_to_sh_cmt() 604 static u64 sh_cmt_clocksource_read(struct clocksource *cs) in sh_cmt_clocksource_read() 623 static int sh_cmt_clocksource_enable(struct clocksource *cs) in sh_cmt_clocksource_enable() 639 static void sh_cmt_clocksource_disable(struct clocksource *cs) in sh_cmt_clocksource_disable() 649 static void sh_cmt_clocksource_suspend(struct clocksource *cs) in sh_cmt_clocksource_suspend() 660 static void sh_cmt_clocksource_resume(struct clocksource *cs) in sh_cmt_clocksource_resume() 674 struct clocksource *cs = &ch->cs; in sh_cmt_register_clocksource() 819 bool clockevent, bool clocksource) in sh_cmt_register() argument 830 if (clocksource) { in sh_cmt_register() [all …]
|
D | timer-prima2.c | 74 static u64 notrace sirfsoc_timer_read(struct clocksource *cs) in sirfsoc_timer_read() 122 static void sirfsoc_clocksource_suspend(struct clocksource *cs) in sirfsoc_clocksource_suspend() 135 static void sirfsoc_clocksource_resume(struct clocksource *cs) in sirfsoc_clocksource_resume() 158 static struct clocksource sirfsoc_clocksource = {
|
D | timer-sprd.c | 163 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-v5.4/arch/mips/kernel/ |
D | csrc-bcm1480.c | 19 static u64 bcm1480_hpt_read(struct clocksource *cs) in bcm1480_hpt_read() 24 struct clocksource bcm1480_clocksource = { 39 struct clocksource *cs = &bcm1480_clocksource; in sb1480_clocksource_init()
|
D | csrc-sb1250.c | 35 static u64 sb1250_hpt_read(struct clocksource *cs) in sb1250_hpt_read() 40 struct clocksource bcm1250_clocksource = { 55 struct clocksource *cs = &bcm1250_clocksource; in sb1250_clocksource_init()
|
/Linux-v5.4/arch/arm/mach-footbridge/ |
D | dc21285-timer.c | 23 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-v5.4/arch/mips/netlogic/common/ |
D | time.c | 62 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-v5.4/arch/m68k/hp300/ |
D | time.c | 23 static u64 hp300_read_clk(struct clocksource *cs); 25 static struct clocksource hp300_clk = { 75 static u64 hp300_read_clk(struct clocksource *cs) in hp300_read_clk()
|
/Linux-v5.4/tools/testing/selftests/timers/ |
D | clocksource-switch.c | 86 int change_clocksource(char *clocksource) in change_clocksource() argument 96 size = write(fd, clocksource, strlen(clocksource)); in change_clocksource()
|
/Linux-v5.4/arch/c6x/kernel/ |
D | time.c | 26 static u64 tsc_read(struct clocksource *cs) in tsc_read() 31 static struct clocksource clocksource_tsc = {
|
/Linux-v5.4/arch/mips/loongson64/loongson-3/ |
D | hpet.c | 254 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 = {
|