| /linux/include/linux/ |
| H A D | clocksource.h | 25 struct clocksource; 101 struct clocksource { struct 102 u64 (*read)(struct clocksource *cs); argument 123 int (*enable)(struct clocksource *cs); argument 124 void (*disable)(struct clocksource *cs); argument 125 void (*suspend)(struct clocksource *cs); argument 126 void (*resume)(struct clocksource *cs); argument 127 void (*mark_unstable)(struct clocksource *cs); argument 128 void (*tick_stable)(struct clocksource *cs); argument 218 extern int clocksource_unregister(struct clocksource*); [all …]
|
| /linux/kernel/time/ |
| H A D | clocksource.c | 23 static void clocksource_enqueue(struct clocksource *cs); 25 static noinline u64 cycles_to_nsec_safe(struct clocksource *cs, u64 start, u64 end) in cycles_to_nsec_safe() 102 static struct clocksource *curr_clocksource; 103 static struct clocksource *suspend_clocksource; 157 static struct clocksource *watchdog; 195 static void clocksource_change_rating(struct clocksource *cs, int rating) in clocksource_change_rating() 202 static void __clocksource_unstable(struct clocksource *cs) in __clocksource_unstable() 231 void clocksource_mark_unstable(struct clocksource *cs) in clocksource_mark_unstable() 253 static enum wd_read_status cs_watchdog_read(struct clocksource *cs, u64 *csnow, u64 *wdnow) in cs_watchdog_read() 354 struct clocksource *cs = (struct clocksource *)csin; in clocksource_verify_one_cpu() [all …]
|
| H A D | clocksource-wdtest.c | 35 static u64 wdtest_jiffies_read(struct clocksource *cs) in wdtest_jiffies_read() 40 static struct clocksource clocksource_wdtest_jiffies = { 55 static u64 wdtest_ktime_read(struct clocksource *cs) in wdtest_ktime_read() 73 static void wdtest_ktime_cs_mark_unstable(struct clocksource *cs) in wdtest_ktime_cs_mark_unstable() 83 static struct clocksource clocksource_wdtest_ktime = {
|
| /linux/drivers/clocksource/ |
| H A 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() 126 ret = clocksource_register_hz(&clocksource, VT8500_TIMER_HZ); in vt8500_timer_init() 129 __func__, clocksource.name); in vt8500_timer_init()
|
| H A 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
|
| H A D | timer-pistachio.c | 48 struct clocksource cs; 68 pistachio_clocksource_read_cycles(struct clocksource *cs) in pistachio_clocksource_read_cycles() 93 static void pistachio_clksrc_set_mode(struct clocksource *cs, int timeridx, in pistachio_clksrc_set_mode() 108 static void pistachio_clksrc_enable(struct clocksource *cs, int timeridx) in pistachio_clksrc_enable() 118 static void pistachio_clksrc_disable(struct clocksource *cs, int timeridx) in pistachio_clksrc_disable() 124 static int pistachio_clocksource_enable(struct clocksource *cs) in pistachio_clocksource_enable() 130 static void pistachio_clocksource_disable(struct clocksource *cs) in pistachio_clocksource_disable()
|
| H A D | sh_tmu.c | 47 struct clocksource cs; 233 static struct sh_tmu_channel *cs_to_sh_tmu(struct clocksource *cs) in cs_to_sh_tmu() 238 static u64 sh_tmu_clocksource_read(struct clocksource *cs) in sh_tmu_clocksource_read() 245 static int sh_tmu_clocksource_enable(struct clocksource *cs) in sh_tmu_clocksource_enable() 260 static void sh_tmu_clocksource_disable(struct clocksource *cs) in sh_tmu_clocksource_disable() 271 static void sh_tmu_clocksource_suspend(struct clocksource *cs) in sh_tmu_clocksource_suspend() 284 static void sh_tmu_clocksource_resume(struct clocksource *cs) in sh_tmu_clocksource_resume() 300 struct clocksource *cs = &ch->cs; in sh_tmu_register_clocksource() 424 bool clockevent, bool clocksource) in sh_tmu_register() argument 429 } else if (clocksource) { in sh_tmu_register() [all …]
|
| H A D | timer-ti-dm-systimer.c | 30 static u32 clocksource; variable 60 struct clocksource dev; 277 clocksource = 0; in dmtimer_systimer_assign_alwon() 279 clocksource = pa; in dmtimer_systimer_assign_alwon() 298 if (res.start == clocksource || res.start == clockevent) in dmtimer_systimer_find_first_available() 319 __func__, counter_32k, clocksource, clockevent); in dmtimer_systimer_select_best() 707 to_dmtimer_clocksource(struct clocksource *cs) in to_dmtimer_clocksource() 712 static u64 dmtimer_clocksource_read_cycles(struct clocksource *cs) in dmtimer_clocksource_read_cycles() 727 static void dmtimer_clocksource_suspend(struct clocksource *cs) in dmtimer_clocksource_suspend() 737 static void dmtimer_clocksource_resume(struct clocksource *cs) in dmtimer_clocksource_resume() [all …]
|
| H A D | acpi_pm.c | 79 static void acpi_pm_suspend(struct clocksource *cs) in acpi_pm_suspend() 85 static void acpi_pm_resume(struct clocksource *cs) in acpi_pm_resume() 91 static u64 acpi_pm_read(struct clocksource *cs) in acpi_pm_read() 96 static struct clocksource clocksource_acpi_pm = { 116 static u64 acpi_pm_read_slow(struct clocksource *cs) in acpi_pm_read_slow()
|
| H A 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 = {
|
| H A D | hyperv_timer.c | 442 static u64 notrace read_hv_clock_tsc_cs(struct clocksource *arg) in read_hv_clock_tsc_cs() 453 static void suspend_hv_clock_tsc(struct clocksource *arg) in suspend_hv_clock_tsc() 464 static void resume_hv_clock_tsc(struct clocksource *arg) in resume_hv_clock_tsc() 487 static int hv_cs_enable(struct clocksource *cs) in hv_cs_enable() 494 static struct clocksource hyperv_cs_tsc = { 510 static u64 notrace read_hv_clock_msr_cs(struct clocksource *arg) in read_hv_clock_msr_cs() 515 static struct clocksource hyperv_cs_msr = {
|
| H A 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()
|
| H A D | ingenic-ost.c | 39 struct clocksource cs; 56 static u64 notrace ingenic_ost_clocksource_readl(struct clocksource *cs) in ingenic_ost_clocksource_readl() 61 static u64 notrace ingenic_ost_clocksource_readh(struct clocksource *cs) in ingenic_ost_clocksource_readh() 71 struct clocksource *cs; in ingenic_ost_probe()
|
| H A D | timer-goldfish.c | 13 struct clocksource cs; 24 static struct goldfish_timer *cs_to_gf(struct clocksource *cs) in cs_to_gf() 29 static u64 goldfish_timer_read(struct clocksource *cs) in goldfish_timer_read() 131 timerdrv->cs = (struct clocksource){ in goldfish_timer_init()
|
| H A D | sh_cmt.c | 106 struct clocksource cs; 645 static struct sh_cmt_channel *cs_to_sh_cmt(struct clocksource *cs) in cs_to_sh_cmt() 650 static u64 sh_cmt_clocksource_read(struct clocksource *cs) in sh_cmt_clocksource_read() 674 static int sh_cmt_clocksource_enable(struct clocksource *cs) in sh_cmt_clocksource_enable() 690 static void sh_cmt_clocksource_disable(struct clocksource *cs) in sh_cmt_clocksource_disable() 700 static void sh_cmt_clocksource_suspend(struct clocksource *cs) in sh_cmt_clocksource_suspend() 711 static void sh_cmt_clocksource_resume(struct clocksource *cs) in sh_cmt_clocksource_resume() 725 struct clocksource *cs = &ch->cs; in sh_cmt_register_clocksource() 876 bool clockevent, bool clocksource) in sh_cmt_register() argument 887 if (clocksource) { in sh_cmt_register() [all …]
|
| H A D | timer-nxp-stm.c | 61 struct clocksource cs; 82 static struct stm_timer *cs_to_stm(struct clocksource *cs) in DEFINE_GUARD() 107 static u64 nxp_stm_clocksource_read(struct clocksource *cs) in nxp_stm_clocksource_read() 148 static int nxp_stm_clocksource_enable(struct clocksource *cs) in nxp_stm_clocksource_enable() 157 static void nxp_stm_clocksource_disable(struct clocksource *cs) in nxp_stm_clocksource_disable() 164 static void nxp_stm_clocksource_suspend(struct clocksource *cs) in nxp_stm_clocksource_suspend() 172 static void nxp_stm_clocksource_resume(struct clocksource *cs) in nxp_stm_clocksource_resume()
|
| H A D | timer-sprd.c | 164 static u64 sprd_suspend_timer_read(struct clocksource *cs) in sprd_suspend_timer_read() 178 static int sprd_suspend_timer_enable(struct clocksource *cs) in sprd_suspend_timer_enable() 190 static void sprd_suspend_timer_disable(struct clocksource *cs) in sprd_suspend_timer_disable() 195 static struct clocksource suspend_clocksource = {
|
| H A D | timer-ti-32k.c | 50 struct clocksource cs; 53 static inline struct ti_32k *to_ti_32k(struct clocksource *cs) in to_ti_32k() 58 static u64 notrace ti_32k_read_cycles(struct clocksource *cs) in ti_32k_read_cycles()
|
| H A D | Kconfig | 199 where TIMER0 serves as clockevent and TIMER1 serves as clocksource. 215 bool "Nomakdik clocksource driver" if COMPILE_TEST 227 Use the always on PRCMU Timer as clocksource. 269 Support for the LPC32XX clocksource. 277 Enables the clocksource for the Pistachio SoC. 284 This option enables support for Texas Instruments 32.768 Hz clocksource 294 bool "Low power clocksource for STM32 SoCs" 310 TIMER0 serves as clockevent while TIMER1 provides clocksource. 319 ARConnect IP block. Driver automatically picks one of them for clocksource 337 clocksource.arm_arch_timer.evtstream parameter. [all …]
|
| /linux/arch/arm/mach-footbridge/ |
| H A 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/arch/mips/kernel/ |
| H A 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()
|
| H A 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/arch/m68k/hp300/ |
| H A D | time.c | 25 static u64 hp300_read_clk(struct clocksource *cs); 27 static struct clocksource hp300_clk = { 77 static u64 hp300_read_clk(struct clocksource *cs) in hp300_read_clk()
|
| /linux/arch/mips/loongson64/ |
| H A D | hpet.c | 250 static u64 hpet_read_counter(struct clocksource *cs) in hpet_read_counter() 255 static void hpet_suspend(struct clocksource *cs) in hpet_suspend() 259 static void hpet_resume(struct clocksource *cs) in hpet_resume() 265 static struct clocksource csrc_hpet = {
|
| /linux/tools/testing/selftests/timers/ |
| H A D | clocksource-switch.c | 86 int change_clocksource(char *clocksource) in change_clocksource() argument 96 size = write(fd, clocksource, strlen(clocksource)); in change_clocksource()
|