Home
last modified time | relevance | path

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

123

/drivers/clocksource/
A 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()
A 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()
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
A 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()
A Dsh_tmu.c47 struct clocksource cs;
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()
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()
453 bool clockevent, bool clocksource, in sh_tmu_channel_setup() argument
457 if (!clockevent && !clocksource) in sh_tmu_channel_setup()
[all …]
A 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 (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()
757 struct clocksource *dev; in dmtimer_clocksource_init()
817 if (!clocksource && !clockevent) in dmtimer_systimer_init()
820 if (!clocksource && !clockevent) { in dmtimer_systimer_init()
[all …]
A Dacpi_pm.c79 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()
A 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 = {
A Dhyperv_timer.c442 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 = {
A 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()
A 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()
A 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()
A Dsh_cmt.c106 struct clocksource cs;
642 static u64 sh_cmt_clocksource_read(struct clocksource *cs) in sh_cmt_clocksource_read()
666 static int sh_cmt_clocksource_enable(struct clocksource *cs) in sh_cmt_clocksource_enable()
717 struct clocksource *cs = &ch->cs; in sh_cmt_register_clocksource()
868 bool clockevent, bool clocksource) in sh_cmt_register() argument
879 if (clocksource) { in sh_cmt_register()
889 bool clocksource, struct sh_cmt_device *cmt) in sh_cmt_setup_channel() argument
895 if (!clockevent && !clocksource) in sh_cmt_setup_channel()
938 clockevent, clocksource); in sh_cmt_setup_channel()
1092 bool clocksource = i == 1 || cmt->num_channels == 1; in sh_cmt_setup() local
[all …]
A Dtimer-nxp-stm.c61 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()
A 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 = {
A DKconfig215 bool "Nomakdik clocksource driver" if COMPILE_TEST
227 Use the always on PRCMU Timer as clocksource.
268 Support for the LPC32XX clocksource.
276 Enables the clocksource for the Pistachio SoC.
293 bool "Low power clocksource for STM32 SoCs"
336 clocksource.arm_arch_timer.evtstream parameter.
465 This is a new clocksource driver for the PWM timer found in
527 This enables build of clocksource and clockevent driver for
618 clocksource.
643 as clocksource.
[all …]
A 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()
A Dtimer-tegra186.c93 struct clocksource usec;
94 struct clocksource tsc;
95 struct clocksource osc;
345 static u64 tegra186_timer_tsc_read(struct clocksource *cs) in tegra186_timer_tsc_read()
380 static u64 tegra186_timer_osc_read(struct clocksource *cs) in tegra186_timer_osc_read()
399 static u64 tegra186_timer_usec_read(struct clocksource *cs) in tegra186_timer_usec_read()
A 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 = {
A Dscx200_hrt.c42 static u64 read_hrt(struct clocksource *cs) in read_hrt()
48 static struct clocksource cs_hrt = {
A Dtimer-loongson1-pwm.c36 struct clocksource clksrc;
39 static inline struct ls1x_clocksource *to_ls1x_clksrc(struct clocksource *c) in to_ls1x_clksrc()
158 static u64 ls1x_clocksource_read(struct clocksource *cs) in ls1x_clocksource_read()
A Dnumachip.c15 static cycles_t numachip2_timer_read(struct clocksource *cs) in numachip2_timer_read()
20 static struct clocksource numachip2_clocksource = {
A Dtimer-qcom.c83 static notrace u64 msm_read_timer_count(struct clocksource *cs) in msm_read_timer_count()
88 static struct clocksource msm_clocksource = {
154 struct clocksource *cs = &msm_clocksource; in msm_timer_init()
A Dmips-gic-timer.c167 static u64 gic_hpt_read(struct clocksource *cs) in gic_hpt_read()
172 static u64 gic_hpt_read_multicluster(struct clocksource *cs) in gic_hpt_read_multicluster()
203 static struct clocksource gic_clocksource = {
A 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 = {
A 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()

Completed in 43 milliseconds

123