/drivers/clocksource/ |
D | timer-imx-tpm.c | 36 static void __iomem *timer_base __ro_after_init; 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() 61 writel(TPM_STATUS_CH0F, timer_base + TPM_STATUS); in tpm_irq_acknowledge() 66 return readl(timer_base + TPM_CNT); in tpm_read_counter() 90 writel(next, timer_base + TPM_C0V); in tpm_set_next_event() 158 return clocksource_mmio_init(timer_base + TPM_CNT, in tpm_clocksource_init() 197 timer_base = timer_of_base(&to_tpm); in tpm_timer_init() [all …]
|
D | timer-orion.c | 35 static void __iomem *timer_base; variable 39 return ~readl(timer_base + TIMER0_VAL); in orion_read_timer() 57 return ~readl(timer_base + TIMER0_VAL); in orion_read_sched_clock() 69 writel(delta, timer_base + TIMER1_VAL); in orion_clkevt_next_event() 70 atomic_io_modify(timer_base + TIMER_CTRL, in orion_clkevt_next_event() 79 atomic_io_modify(timer_base + TIMER_CTRL, in orion_clkevt_shutdown() 87 writel(ticks_per_jiffy - 1, timer_base + TIMER1_RELOAD); in orion_clkevt_set_periodic() 88 writel(ticks_per_jiffy - 1, timer_base + TIMER1_VAL); in orion_clkevt_set_periodic() 89 atomic_io_modify(timer_base + TIMER_CTRL, in orion_clkevt_set_periodic() 121 timer_base = of_iomap(np, 0); in orion_timer_init() [all …]
|
D | timer-meson6.c | 56 static void __iomem *timer_base; variable 61 return readl_relaxed(timer_base + MESON_ISA_TIMERE); in meson6_read_current_timer() 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() 158 timer_base = of_io_request_and_map(node, 0, "meson6-timer"); in meson6_timer_init() 159 if (IS_ERR(timer_base)) { in meson6_timer_init() [all …]
|
D | timer-armada-370-xp.c | 76 static void __iomem *timer_base, *local_base; variable 96 return ~readl(timer_base + TIMER0_VAL_OFF); in armada_370_xp_read_sched_clock() 213 timer0_ctrl_reg = readl(timer_base + TIMER_CTRL_OFF); in armada_370_xp_timer_suspend() 220 writel(0xffffffff, timer_base + TIMER0_VAL_OFF); in armada_370_xp_timer_resume() 221 writel(0xffffffff, timer_base + TIMER0_RELOAD_OFF); in armada_370_xp_timer_resume() 222 writel(timer0_ctrl_reg, timer_base + TIMER_CTRL_OFF); in armada_370_xp_timer_resume() 233 return ~readl(timer_base + TIMER0_VAL_OFF); in armada_370_delay_timer_read() 245 timer_base = of_iomap(np, 0); in armada_370_xp_timer_common_init() 246 if (!timer_base) { in armada_370_xp_timer_common_init() 264 atomic_io_modify(timer_base + TIMER_CTRL_OFF, clr | set, set); in armada_370_xp_timer_common_init() [all …]
|
D | timer-sp804.c | 45 .timer_base = {TIMER_1_BASE, TIMER_2_BASE}, 56 .timer_base = {HISI_TIMER_1_BASE, HISI_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() 244 clkevt->value_h = timer_base + timer->value_h; in sp804_clkevt_init() 245 clkevt->ctrl = timer_base + timer->ctrl; in sp804_clkevt_init() [all …]
|
D | timer-pxa.c | 52 #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()
|
D | timer-vf-pit.c | 152 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()
|
D | bcm_kona_timer.c | 60 kona_timer_get_counter(void __iomem *timer_base, uint32_t *msw, uint32_t *lsw) in kona_timer_get_counter() argument 77 *msw = readl(timer_base + KONA_GPTIMER_STCHI_OFFSET); in kona_timer_get_counter() 78 *lsw = readl(timer_base + KONA_GPTIMER_STCLO_OFFSET); in kona_timer_get_counter() 79 if (*msw == readl(timer_base + KONA_GPTIMER_STCHI_OFFSET)) in kona_timer_get_counter()
|
D | timer-sun5i.c | 241 void __iomem *timer_base; in sun5i_timer_probe() local 252 timer_base = devm_platform_ioremap_resource(pdev, 0); in sun5i_timer_probe() 253 if (IS_ERR(timer_base)) { in sun5i_timer_probe() 255 return PTR_ERR(timer_base); in sun5i_timer_probe() 276 st->base = timer_base; in sun5i_timer_probe()
|
D | timer-sp.h | 45 int timer_base[NR_TIMERS]; member
|
/drivers/comedi/drivers/ |
D | dt3000.c | 341 static int dt3k_ns_to_timer(unsigned int timer_base, unsigned int *nanosec, in dt3k_ns_to_timer() argument 350 base = timer_base * (prescale + 1); in dt3k_ns_to_timer() 370 base = timer_base * (prescale + 1); in dt3k_ns_to_timer()
|
D | addi_apci_3120.c | 275 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()
|
D | me4000.c | 1207 unsigned long timer_base = pci_resource_start(pcidev, 3); in me4000_auto_attach() local 1209 if (!timer_base) in me4000_auto_attach() 1212 dev->pacer = comedi_8254_init(timer_base, 0, I8254_IO8, 0); in me4000_auto_attach()
|