Home
last modified time | relevance | path

Searched refs:timer_base (Results 1 – 18 of 18) sorted by relevance

/linux/arch/arm/plat-orion/
A Dtime.c51 static void __iomem *timer_base; variable
67 return ~readl(timer_base + TIMER0_VAL_OFF); in orion_read_sched_clock()
96 writel(delta, timer_base + TIMER1_VAL_OFF); in orion_clkevt_next_event()
101 u = readl(timer_base + TIMER_CTRL_OFF); in orion_clkevt_next_event()
103 writel(u, timer_base + TIMER_CTRL_OFF); in orion_clkevt_next_event()
118 u = readl(timer_base + TIMER_CTRL_OFF); in orion_clkevt_shutdown()
149 u = readl(timer_base + TIMER_CTRL_OFF); in orion_clkevt_set_periodic()
183 timer_base = _timer_base; in orion_time_set_base()
188 return ~readl(timer_base + TIMER0_VAL_OFF); in orion_delay_timer_read()
221 writel(0xffffffff, timer_base + TIMER0_VAL_OFF); in orion_time_init()
[all …]
/linux/drivers/clocksource/
A Dtimer-imx-tpm.c36 static void __iomem *timer_base; variable
43 val = readl(timer_base + TPM_C0SC); in tpm_timer_disable()
45 writel(val, timer_base + TPM_C0SC); in tpm_timer_disable()
53 val = readl(timer_base + TPM_C0SC); in tpm_timer_enable()
56 writel(val, timer_base + TPM_C0SC); in tpm_timer_enable()
66 return readl(timer_base + TPM_CNT); in tpm_read_counter()
90 writel(next, timer_base + TPM_C0V); in tpm_set_next_event()
197 timer_base = timer_of_base(&to_tpm); in tpm_timer_init()
213 writel(0, timer_base + TPM_SC); in tpm_timer_init()
216 writel(0, timer_base + TPM_CNT); in tpm_timer_init()
[all …]
A Dtimer-orion.c38 static void __iomem *timer_base; variable
42 return ~readl(timer_base + TIMER0_VAL); in orion_read_timer()
60 return ~readl(timer_base + TIMER0_VAL); in orion_read_sched_clock()
72 writel(delta, timer_base + TIMER1_VAL); in orion_clkevt_next_event()
73 atomic_io_modify(timer_base + TIMER_CTRL, in orion_clkevt_next_event()
82 atomic_io_modify(timer_base + TIMER_CTRL, in orion_clkevt_shutdown()
92 atomic_io_modify(timer_base + TIMER_CTRL, in orion_clkevt_set_periodic()
124 timer_base = of_iomap(np, 0); in orion_timer_init()
125 if (!timer_base) { in orion_timer_init()
153 writel(~0, timer_base + TIMER0_VAL); in orion_timer_init()
[all …]
A Dtimer-meson6.c56 static void __iomem *timer_base; variable
72 return (u64)readl(timer_base + MESON_ISA_TIMERE); in meson6_timer_sched_read()
77 u32 val = readl(timer_base + MESON_ISA_TIMER_MUX); in meson6_clkevt_time_stop()
80 timer_base + MESON_ISA_TIMER_MUX); in meson6_clkevt_time_stop()
85 writel(delay, timer_base + MESON_ISA_TIMERA); in meson6_clkevt_time_setup()
90 u32 val = readl(timer_base + MESON_ISA_TIMER_MUX); in meson6_clkevt_time_start()
98 timer_base + MESON_ISA_TIMER_MUX); in meson6_clkevt_time_start()
159 if (IS_ERR(timer_base)) { in meson6_timer_init()
171 val = readl(timer_base + MESON_ISA_TIMER_MUX); in meson6_timer_init()
175 writel(val, timer_base + MESON_ISA_TIMER_MUX); in meson6_timer_init()
[all …]
A Dtimer-armada-370-xp.c79 static void __iomem *timer_base, *local_base; variable
99 return ~readl(timer_base + TIMER0_VAL_OFF); in armada_370_xp_read_sched_clock()
216 timer0_ctrl_reg = readl(timer_base + TIMER_CTRL_OFF); in armada_370_xp_timer_suspend()
223 writel(0xffffffff, timer_base + TIMER0_VAL_OFF); in armada_370_xp_timer_resume()
224 writel(0xffffffff, timer_base + TIMER0_RELOAD_OFF); in armada_370_xp_timer_resume()
236 return ~readl(timer_base + TIMER0_VAL_OFF); in armada_370_delay_timer_read()
248 timer_base = of_iomap(np, 0); in armada_370_xp_timer_common_init()
249 if (!timer_base) { in armada_370_xp_timer_common_init()
282 writel(0xffffffff, timer_base + TIMER0_VAL_OFF); in armada_370_xp_timer_common_init()
283 writel(0xffffffff, timer_base + TIMER0_RELOAD_OFF); in armada_370_xp_timer_common_init()
[all …]
A Dtimer-sp804.c45 .timer_base = {TIMER_1_BASE, TIMER_2_BASE},
235 void __iomem *timer_base; in sp804_clkevt_init() local
238 timer_base = base + timer->timer_base[i]; in sp804_clkevt_init()
240 clkevt->base = timer_base; in sp804_clkevt_init()
241 clkevt->load = timer_base + timer->load; in sp804_clkevt_init()
242 clkevt->load_h = timer_base + timer->load_h; in sp804_clkevt_init()
243 clkevt->value = timer_base + timer->value; in sp804_clkevt_init()
245 clkevt->ctrl = timer_base + timer->ctrl; in sp804_clkevt_init()
246 clkevt->intclr = timer_base + timer->intclr; in sp804_clkevt_init()
266 timer1_base = base + timer->timer_base[0]; in sp804_of_init()
[all …]
A Dtimer-pxa.c52 #define timer_readl(reg) readl_relaxed(timer_base + (reg))
53 #define timer_writel(val, reg) writel_relaxed((val), timer_base + (reg))
55 static void __iomem *timer_base; variable
164 ret = clocksource_mmio_init(timer_base + OSCR, "oscr0", clock_tick_rate, 200, in pxa_timer_common_init()
183 timer_base = of_iomap(np, 0); in pxa_timer_dt_init()
184 if (!timer_base) { in pxa_timer_dt_init()
219 timer_base = base; in pxa_timer_nodt_init()
A Dtimer-vf-pit.c152 void __iomem *timer_base; in pit_timer_init() local
156 timer_base = of_iomap(np, 0); in pit_timer_init()
157 if (!timer_base) { in pit_timer_init()
167 clksrc_base = timer_base + PITn_OFFSET(2); in pit_timer_init()
168 clkevt_base = timer_base + PITn_OFFSET(3); in pit_timer_init()
186 __raw_writel(~PITMCR_MDIS, timer_base + PITMCR); in pit_timer_init()
A Dbcm_kona_timer.c70 kona_timer_get_counter(void __iomem *timer_base, uint32_t *msw, uint32_t *lsw) in kona_timer_get_counter() argument
87 *msw = readl(timer_base + KONA_GPTIMER_STCHI_OFFSET); in kona_timer_get_counter()
88 *lsw = readl(timer_base + KONA_GPTIMER_STCLO_OFFSET); in kona_timer_get_counter()
89 if (*msw == readl(timer_base + KONA_GPTIMER_STCHI_OFFSET)) in kona_timer_get_counter()
A Dtimer-sun5i.c340 void __iomem *timer_base; in sun5i_timer_init() local
344 timer_base = of_io_request_and_map(node, 0, of_node_full_name(node)); in sun5i_timer_init()
345 if (IS_ERR(timer_base)) { in sun5i_timer_init()
347 return PTR_ERR(timer_base); in sun5i_timer_init()
366 ret = sun5i_setup_clocksource(node, timer_base, clk, irq); in sun5i_timer_init()
370 return sun5i_setup_clockevent(node, timer_base, clk, irq); in sun5i_timer_init()
A Dtimer-sp.h45 int timer_base[NR_TIMERS]; member
/linux/kernel/time/
A Dtimer.c198 struct timer_base { struct
881 static inline struct timer_base *
934 struct timer_base *base; in lock_timer_base()
963 struct timer_base *base, *new_base; in __mod_timer()
1157 struct timer_base *new_base, *base; in add_timer_on()
1200 struct timer_base *base; in del_timer()
1225 struct timer_base *base; in try_to_del_timer_sync()
1946 struct timer_base *base; in timers_prepare_cpu()
1961 struct timer_base *old_base; in timers_dead_cpu()
1962 struct timer_base *new_base; in timers_dead_cpu()
[all …]
A Dposix-cpu-timers.c410 static struct posix_cputimer_base *timer_base(struct k_itimer *timer, in timer_base() function
430 struct posix_cputimer_base *base = timer_base(timer, tsk); in trigger_base_recalc_expires()
453 base = timer_base(timer, p); in disarm_timer()
552 struct posix_cputimer_base *base = timer_base(timer, p); in arm_timer()
/linux/sound/pci/ctxfi/
A Dcttimer.c32 struct ct_timer *timer_base; member
291 struct ct_timer *atimer = ti->timer_base; in ct_xfitimer_start()
306 struct ct_timer *atimer = ti->timer_base; in ct_xfitimer_stop()
344 ti->timer_base = atimer; in ct_timer_instance_new()
359 if (ti->timer_base->ops->prepare) in ct_timer_prepare()
360 ti->timer_base->ops->prepare(ti); in ct_timer_prepare()
367 struct ct_timer *atimer = ti->timer_base; in ct_timer_start()
373 struct ct_timer *atimer = ti->timer_base; in ct_timer_stop()
379 struct ct_timer *atimer = ti->timer_base; in ct_timer_instance_free()
/linux/arch/arm/plat-orion/include/plat/
A Dtime.h14 void orion_time_set_base(void __iomem *timer_base);
/linux/drivers/comedi/drivers/
A Ddt3000.c342 static int dt3k_ns_to_timer(unsigned int timer_base, unsigned int *nanosec, in dt3k_ns_to_timer() argument
351 base = timer_base * (prescale + 1); in dt3k_ns_to_timer()
371 base = timer_base * (prescale + 1); in dt3k_ns_to_timer()
A Daddi_apci_3120.c275 unsigned int timer_base = devpriv->osc_base * prescale; in apci3120_ns_to_timer() local
280 divisor = DIV_ROUND_UP(ns, timer_base); in apci3120_ns_to_timer()
283 divisor = ns / timer_base; in apci3120_ns_to_timer()
287 divisor = DIV_ROUND_CLOSEST(ns, timer_base); in apci3120_ns_to_timer()
A Dme4000.c1208 unsigned long timer_base = pci_resource_start(pcidev, 3); in me4000_auto_attach() local
1210 if (!timer_base) in me4000_auto_attach()
1213 dev->pacer = comedi_8254_init(timer_base, 0, I8254_IO8, 0); in me4000_auto_attach()

Completed in 50 milliseconds