Home
last modified time | relevance | path

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

12

/drivers/clocksource/
Dtimer-vt8500.c43 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()
Dmmio.c12 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()
26 u64 clocksource_mmio_readl_down(struct clocksource *c) in clocksource_mmio_readl_down()
31 u64 clocksource_mmio_readw_up(struct clocksource *c) in clocksource_mmio_readw_up()
36 u64 clocksource_mmio_readw_down(struct clocksource *c) in clocksource_mmio_readw_down()
52 u64 (*read)(struct clocksource *)) in clocksource_mmio_init() argument
Dtimer-pistachio.c48 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()
Dsh_tmu.c47 struct clocksource cs;
248 static struct sh_tmu_channel *cs_to_sh_tmu(struct clocksource *cs) in cs_to_sh_tmu()
253 static u64 sh_tmu_clocksource_read(struct clocksource *cs) in sh_tmu_clocksource_read()
260 static int sh_tmu_clocksource_enable(struct clocksource *cs) in sh_tmu_clocksource_enable()
275 static void sh_tmu_clocksource_disable(struct clocksource *cs) in sh_tmu_clocksource_disable()
286 static void sh_tmu_clocksource_suspend(struct clocksource *cs) in sh_tmu_clocksource_suspend()
299 static void sh_tmu_clocksource_resume(struct clocksource *cs) in sh_tmu_clocksource_resume()
315 struct clocksource *cs = &ch->cs; in sh_tmu_register_clocksource()
439 bool clockevent, bool clocksource) in sh_tmu_register() argument
444 } else if (clocksource) { in sh_tmu_register()
[all …]
Dtimer-ti-dm-systimer.c30 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 (pa == clocksource || pa == clockevent) { in dmtimer_systimer_find_first_available()
321 __func__, counter_32k, clocksource, clockevent); in dmtimer_systimer_select_best()
709 to_dmtimer_clocksource(struct clocksource *cs) in to_dmtimer_clocksource()
714 static u64 dmtimer_clocksource_read_cycles(struct clocksource *cs) in dmtimer_clocksource_read_cycles()
729 static void dmtimer_clocksource_suspend(struct clocksource *cs) in dmtimer_clocksource_suspend()
739 static void dmtimer_clocksource_resume(struct clocksource *cs) in dmtimer_clocksource_resume()
[all …]
Dhyperv_timer.c386 static u64 notrace read_hv_clock_tsc_cs(struct clocksource *arg) in read_hv_clock_tsc_cs()
397 static void suspend_hv_clock_tsc(struct clocksource *arg) in suspend_hv_clock_tsc()
408 static void resume_hv_clock_tsc(struct clocksource *arg) in resume_hv_clock_tsc()
421 static int hv_cs_enable(struct clocksource *cs) in hv_cs_enable()
428 static struct clocksource hyperv_cs_tsc = {
454 static u64 notrace read_hv_clock_msr_cs(struct clocksource *arg) in read_hv_clock_msr_cs()
465 static struct clocksource hyperv_cs_msr = {
Darc_timer.c58 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 = {
Dem_sti.c33 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()
Dtimer-goldfish.c13 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()
Dsh_cmt.c107 struct clocksource cs;
633 static struct sh_cmt_channel *cs_to_sh_cmt(struct clocksource *cs) in cs_to_sh_cmt()
638 static u64 sh_cmt_clocksource_read(struct clocksource *cs) in sh_cmt_clocksource_read()
662 static int sh_cmt_clocksource_enable(struct clocksource *cs) in sh_cmt_clocksource_enable()
678 static void sh_cmt_clocksource_disable(struct clocksource *cs) in sh_cmt_clocksource_disable()
688 static void sh_cmt_clocksource_suspend(struct clocksource *cs) in sh_cmt_clocksource_suspend()
699 static void sh_cmt_clocksource_resume(struct clocksource *cs) in sh_cmt_clocksource_resume()
713 struct clocksource *cs = &ch->cs; in sh_cmt_register_clocksource()
858 bool clockevent, bool clocksource) in sh_cmt_register() argument
869 if (clocksource) { in sh_cmt_register()
[all …]
Dingenic-ost.c39 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()
DKconfig181 where TIMER0 serves as clockevent and TIMER1 serves as clocksource.
197 bool "Nomakdik clocksource driver" if COMPILE_TEST
209 Use the always on PRCMU Timer as clocksource.
250 Support for the LPC32XX clocksource.
258 Enables the clocksource for the Pistachio SoC.
265 This option enables support for Texas Instruments 32.768 Hz clocksource
275 bool "Low power clocksource for STM32 SoCs"
291 TIMER0 serves as clockevent while TIMER1 provides clocksource.
300 ARConnect IP block. Driver automatically picks one of them for clocksource
318 clocksource.arm_arch_timer.evtstream parameter.
[all …]
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 = {
Dtimer-ti-32k.c50 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()
Dacpi_pm.c60 static u64 acpi_pm_read(struct clocksource *cs) in acpi_pm_read()
65 static struct clocksource clocksource_acpi_pm = {
83 static u64 acpi_pm_read_slow(struct clocksource *cs) in acpi_pm_read_slow()
Dtimer-tegra186.c89 struct clocksource usec;
90 struct clocksource tsc;
91 struct clocksource osc;
296 static u64 tegra186_timer_tsc_read(struct clocksource *cs) in tegra186_timer_tsc_read()
331 static u64 tegra186_timer_osc_read(struct clocksource *cs) in tegra186_timer_osc_read()
350 static u64 tegra186_timer_usec_read(struct clocksource *cs) in tegra186_timer_usec_read()
Dclksrc-dbx500-prcmu.c30 static u64 notrace clksrc_dbx500_prcmu_read(struct clocksource *cs) in clksrc_dbx500_prcmu_read()
44 static struct clocksource clocksource_dbx500_prcmu = {
Dscx200_hrt.c42 static u64 read_hrt(struct clocksource *cs) in read_hrt()
48 static struct clocksource cs_hrt = {
Dnumachip.c15 static cycles_t numachip2_timer_read(struct clocksource *cs) in numachip2_timer_read()
20 static struct clocksource numachip2_clocksource = {
Dtimer-qcom.c83 static notrace u64 msm_read_timer_count(struct clocksource *cs) in msm_read_timer_count()
88 static struct clocksource msm_clocksource = {
155 struct clocksource *cs = &msm_clocksource; in msm_timer_init()
Dtimer-atmel-tcb.c53 static u64 tc_get_cycles(struct clocksource *cs) in tc_get_cycles()
68 static u64 tc_get_cycles32(struct clocksource *cs) in tc_get_cycles32()
73 static void tc_clksrc_suspend(struct clocksource *cs) in tc_clksrc_suspend()
88 static void tc_clksrc_resume(struct clocksource *cs) in tc_clksrc_resume()
113 static struct clocksource clksrc = {
Dtimer-atmel-pit.c40 struct clocksource clksrc;
49 static inline struct pit_data *clksrc_to_pit_data(struct clocksource *clksrc) in clksrc_to_pit_data()
73 static u64 read_pit_clk(struct clocksource *cs) in read_pit_clk()
Di8253.c36 static u64 i8253_read(struct clocksource *cs) in i8253_read()
97 static struct clocksource i8253_cs = {
Dtimer-mp-csky.c105 static u64 clksrc_read(struct clocksource *c) in clksrc_read()
110 struct clocksource csky_clocksource = {
Dtimer-microchip-pit64b.c84 struct clocksource clksrc;
147 static void mchp_pit64b_clksrc_suspend(struct clocksource *cs) in mchp_pit64b_clksrc_suspend()
154 static void mchp_pit64b_clksrc_resume(struct clocksource *cs) in mchp_pit64b_clksrc_resume()
162 static u64 mchp_pit64b_clksrc_read(struct clocksource *cs) in mchp_pit64b_clksrc_read()

12