/arch/nios2/kernel/ |
D | time.c | 42 struct nios2_timer timer; member 47 struct nios2_timer timer; member 63 static u16 timer_readw(struct nios2_timer *timer, u32 offs) in timer_readw() argument 65 return readw(timer->base + offs); in timer_readw() 68 static void timer_writew(struct nios2_timer *timer, u16 val, u32 offs) in timer_writew() argument 70 writew(val, timer->base + offs); in timer_writew() 73 static inline unsigned long read_timersnapshot(struct nios2_timer *timer) in read_timersnapshot() argument 77 timer_writew(timer, 0, ALTERA_TIMER_SNAPL_REG); in read_timersnapshot() 78 count = timer_readw(timer, ALTERA_TIMER_SNAPH_REG) << 16 | in read_timersnapshot() 79 timer_readw(timer, ALTERA_TIMER_SNAPL_REG); in read_timersnapshot() [all …]
|
/arch/s390/kernel/ |
D | vtime.c | 38 u64 timer; in get_vtimer() local 40 asm volatile("stpt %0" : "=Q" (timer)); in get_vtimer() 41 return timer; in get_vtimer() 46 u64 timer; in set_vtimer() local 51 : "=Q" (timer) : "Q" (expires)); in set_vtimer() 52 S390_lowcore.system_timer += S390_lowcore.last_update_timer - timer; in set_vtimer() 127 u64 timer, clock, user, guest, system, hardirq, softirq; in do_account_vtime() local 129 timer = S390_lowcore.last_update_timer; in do_account_vtime() 139 timer -= S390_lowcore.last_update_timer; in do_account_vtime() 142 S390_lowcore.hardirq_timer += timer; in do_account_vtime() [all …]
|
/arch/powerpc/sysdev/ |
D | fsl_mpic_timer_wakeup.c | 19 struct mpic_timer *timer; member 33 if (wakeup->timer) { in fsl_free_resource() 34 disable_irq_wake(wakeup->timer->irq); in fsl_free_resource() 35 mpic_free_timer(wakeup->timer); in fsl_free_resource() 38 wakeup->timer = NULL; in fsl_free_resource() 48 return wakeup->timer ? IRQ_HANDLED : IRQ_NONE; in fsl_mpic_timer_irq() 58 if (fsl_wakeup->timer) { in fsl_timer_wakeup_show() 59 mpic_get_remain_time(fsl_wakeup->timer, &interval); in fsl_timer_wakeup_show() 80 if (fsl_wakeup->timer) { in fsl_timer_wakeup_store() 81 disable_irq_wake(fsl_wakeup->timer->irq); in fsl_timer_wakeup_store() [all …]
|
D | mpic_timer.c | 65 struct mpic_timer timer[TIMERS_PER_GROUP]; member 124 priv->timer[num].cascade_handle = casc_priv; in detect_idle_cascade_timer() 129 return &priv->timer[num]; in detect_idle_cascade_timer() 147 casc_priv = priv->timer[num].cascade_handle; in set_cascade_timer() 194 struct mpic_timer *timer; in get_timer() local 211 timer = get_cascade_timer(priv, ticks); in get_timer() 212 if (!timer) in get_timer() 215 return timer; in get_timer() 229 priv->timer[num].cascade_handle = NULL; in get_timer() 231 return &priv->timer[num]; in get_timer() [all …]
|
/arch/arm/mach-omap1/ |
D | time.c | 74 omap_mpu_timer_regs_t __iomem *timer = omap_mpu_timer_base(nr); in omap_mpu_timer_read() local 75 return readl(&timer->read_tim); in omap_mpu_timer_read() 80 omap_mpu_timer_regs_t __iomem *timer = omap_mpu_timer_base(nr); in omap_mpu_set_autoreset() local 82 writel(readl(&timer->cntl) | MPU_TIMER_AR, &timer->cntl); in omap_mpu_set_autoreset() 87 omap_mpu_timer_regs_t __iomem *timer = omap_mpu_timer_base(nr); in omap_mpu_remove_autoreset() local 89 writel(readl(&timer->cntl) & ~MPU_TIMER_AR, &timer->cntl); in omap_mpu_remove_autoreset() 95 omap_mpu_timer_regs_t __iomem *timer = omap_mpu_timer_base(nr); in omap_mpu_timer_start() local 101 writel(MPU_TIMER_CLOCK_ENABLE, &timer->cntl); in omap_mpu_timer_start() 103 writel(load_val, &timer->load_tim); in omap_mpu_timer_start() 105 writel(timerflags, &timer->cntl); in omap_mpu_timer_start() [all …]
|
/arch/arm/boot/dts/ |
D | omap2.dtsi | 198 compatible = "ti,sysc-omap2-timer", "ti,sysc"; 218 timer2: timer@0 { 219 compatible = "ti,omap2420-timer"; 225 timer3: timer@48078000 { 226 compatible = "ti,omap2420-timer"; 232 timer4: timer@4807a000 { 233 compatible = "ti,omap2420-timer"; 239 timer5: timer@4807c000 { 240 compatible = "ti,omap2420-timer"; 244 ti,timer-dsp; [all …]
|
D | omap3-beagle-ab4.dts | 25 timer@0 { 26 /delete-property/ti,timer-alwon; 30 /* Preferred always-on timer for clocksource */ 34 timer@0 { 39 /* Preferred timer for clockevent */ 43 timer@0 {
|
D | berlin2.dtsi | 128 local-timer@ad0600 { 129 compatible = "arm,cortex-a9-twd-timer"; 256 timer0: timer@2c00 { 257 compatible = "snps,dw-apb-timer"; 261 clock-names = "timer"; 265 timer1: timer@2c14 { 266 compatible = "snps,dw-apb-timer"; 270 clock-names = "timer"; 274 timer2: timer@2c28 { 275 compatible = "snps,dw-apb-timer"; [all …]
|
D | mpa1600.dts | 34 tcb0: timer@fffa0000 { 35 timer@0 { 36 compatible = "atmel,tcb-timer"; 40 timer@2 { 41 compatible = "atmel,tcb-timer";
|
D | berlin2cd.dtsi | 93 global-timer@ad0200 { 94 compatible = "arm,cortex-a9-global-timer"; 100 local-timer@ad0600 { 101 compatible = "arm,cortex-a9-twd-timer"; 300 timer0: timer@2c00 { 301 compatible = "snps,dw-apb-timer"; 305 clock-names = "timer"; 309 timer1: timer@2c14 { 310 compatible = "snps,dw-apb-timer"; 314 clock-names = "timer"; [all …]
|
D | stm32f746.dtsi | 78 timer2: timer@40000000 { 79 compatible = "st,stm32-timer"; 101 timer@1 { 102 compatible = "st,stm32-timer-trigger"; 108 timer3: timer@40000400 { 109 compatible = "st,stm32-timer"; 131 timer@2 { 132 compatible = "st,stm32-timer-trigger"; 138 timer4: timer@40000800 { 139 compatible = "st,stm32-timer"; [all …]
|
D | ge863-pro3.dtsi | 20 tcb0: timer@fffa0000 { 21 timer@0 { 22 compatible = "atmel,tcb-timer"; 26 timer@2 { 27 compatible = "atmel,tcb-timer";
|
D | at91-sam9_l9260.dts | 34 tcb0: timer@fffa0000 { 35 timer@0 { 36 compatible = "atmel,tcb-timer"; 40 timer@2 { 41 compatible = "atmel,tcb-timer"; 130 linux,default-trigger = "timer";
|
D | omap3.dtsi | 691 compatible = "ti,sysc-omap2-timer", "ti,sysc"; 711 timer1: timer@0 { 712 compatible = "ti,omap3430-timer"; 717 ti,timer-alwon; 722 compatible = "ti,sysc-omap2-timer", "ti,sysc"; 742 timer2: timer@0 { 743 compatible = "ti,omap3430-timer"; 749 timer3: timer@49034000 { 750 compatible = "ti,omap3430-timer"; 756 timer4: timer@49036000 { [all …]
|
D | berlin2q.dtsi | 166 local-timer@ad0600 { 167 compatible = "arm,cortex-a9-twd-timer"; 341 timer0: timer@2c00 { 342 compatible = "snps,dw-apb-timer"; 345 clock-names = "timer"; 349 timer1: timer@2c14 { 350 compatible = "snps,dw-apb-timer"; 353 clock-names = "timer"; 356 timer2: timer@2c28 { 357 compatible = "snps,dw-apb-timer"; [all …]
|
D | ethernut5.dts | 38 tcb0: timer@fffa0000 { 39 timer@0 { 40 compatible = "atmel,tcb-timer"; 44 timer@2 { 45 compatible = "atmel,tcb-timer";
|
D | tny_a9260_common.dtsi | 29 tcb0: timer@fffa0000 { 30 timer@0 { 31 compatible = "atmel,tcb-timer"; 35 timer@2 { 36 compatible = "atmel,tcb-timer";
|
D | at91-ariettag25.dts | 65 timer@0 { 66 compatible = "atmel,tcb-timer"; 70 timer@1 { 71 compatible = "atmel,tcb-timer";
|
/arch/s390/include/asm/ |
D | vtimer.h | 22 extern void init_virt_timer(struct vtimer_list *timer); 23 extern void add_virt_timer(struct vtimer_list *timer); 24 extern void add_virt_timer_periodic(struct vtimer_list *timer); 25 extern int mod_virt_timer(struct vtimer_list *timer, u64 expires); 26 extern int mod_virt_timer_periodic(struct vtimer_list *timer, u64 expires); 27 extern int del_virt_timer(struct vtimer_list *timer);
|
/arch/xtensa/kernel/ |
D | time.c | 85 struct ccount_timer *timer = in ccount_timer_shutdown() local 88 if (timer->irq_enabled) { in ccount_timer_shutdown() 90 timer->irq_enabled = 0; in ccount_timer_shutdown() 97 struct ccount_timer *timer = in ccount_timer_set_oneshot() local 100 if (!timer->irq_enabled) { in ccount_timer_set_oneshot() 102 timer->irq_enabled = 1; in ccount_timer_set_oneshot() 133 struct ccount_timer *timer = &per_cpu(ccount_timer, cpu); in local_timer_setup() local 134 struct clock_event_device *clockevent = &timer->evt; in local_timer_setup() 136 timer->irq_enabled = 1; in local_timer_setup() 137 snprintf(timer->name, sizeof(timer->name), "ccount_clockevent_%u", cpu); in local_timer_setup() [all …]
|
/arch/arm64/kvm/ |
D | arch_timer.c | 48 struct arch_timer_context *timer, 52 struct arch_timer_context *timer, 267 struct arch_timer_cpu *timer; in kvm_bg_timer_expire() local 271 timer = container_of(hrt, struct arch_timer_cpu, bg_timer); in kvm_bg_timer_expire() 272 vcpu = container_of(timer, struct kvm_vcpu, arch.timer_cpu); in kvm_bg_timer_expire() 429 struct arch_timer_cpu *timer = vcpu_timer(ctx->vcpu); in timer_save_state() local 433 if (!timer->enabled) in timer_save_state() 478 struct arch_timer_cpu *timer = vcpu_timer(vcpu); in kvm_timer_blocking() local 496 soft_timer_start(&timer->bg_timer, kvm_timer_earliest_exp(vcpu)); in kvm_timer_blocking() 501 struct arch_timer_cpu *timer = vcpu_timer(vcpu); in kvm_timer_unblocking() local [all …]
|
/arch/mips/include/asm/netlogic/xlr/ |
D | pic.h | 267 nlm_pic_read_timer(uint64_t base, int timer) in nlm_pic_read_timer() argument 271 up1 = nlm_read_reg(base, PIC_TIMER_COUNT_1(timer)); in nlm_pic_read_timer() 272 low = nlm_read_reg(base, PIC_TIMER_COUNT_0(timer)); in nlm_pic_read_timer() 273 up2 = nlm_read_reg(base, PIC_TIMER_COUNT_1(timer)); in nlm_pic_read_timer() 276 low = nlm_read_reg(base, PIC_TIMER_COUNT_0(timer)); in nlm_pic_read_timer() 282 nlm_pic_read_timer32(uint64_t base, int timer) in nlm_pic_read_timer32() argument 284 return nlm_read_reg(base, PIC_TIMER_COUNT_0(timer)); in nlm_pic_read_timer32() 288 nlm_pic_set_timer(uint64_t base, int timer, uint64_t value, int irq, int cpu) in nlm_pic_set_timer() argument 297 nlm_write_reg(base, PIC_TIMER_MAXVAL_0(timer), low); in nlm_pic_set_timer() 298 nlm_write_reg(base, PIC_TIMER_MAXVAL_1(timer), up); in nlm_pic_set_timer() [all …]
|
/arch/arm/lib/ |
D | delay.c | 65 void __init register_current_timer_delay(const struct delay_timer *timer) in register_current_timer_delay() argument 70 clocks_calc_mult_shift(&new_mult, &new_shift, timer->freq, in register_current_timer_delay() 76 timer, res); in register_current_timer_delay() 82 delay_timer = timer; in register_current_timer_delay() 83 lpj_fine = timer->freq / HZ; in register_current_timer_delay()
|
/arch/arm/mach-footbridge/ |
D | dc21285.c | 135 static void dc21285_enable_error(struct timer_list *timer) in dc21285_enable_error() argument 137 del_timer(timer); in dc21285_enable_error() 139 if (timer == &serr_timer) in dc21285_enable_error() 141 else if (timer == &perr_timer) in dc21285_enable_error() 180 struct timer_list *timer = dev_id; in dc21285_serr_irq() local 194 timer->expires = jiffies + HZ; in dc21285_serr_irq() 195 add_timer(timer); in dc21285_serr_irq() 224 struct timer_list *timer = dev_id; in dc21285_parity_irq() local 238 timer->expires = jiffies + HZ; in dc21285_parity_irq() 239 add_timer(timer); in dc21285_parity_irq()
|
/arch/x86/lib/ |
D | kaslr.c | 36 u16 status, timer; in i8254() local 42 timer = inb(I8254_PORT_COUNTER0); in i8254() 43 timer |= inb(I8254_PORT_COUNTER0) << 8; in i8254() 46 return timer; in i8254()
|