/arch/m68k/atari/ |
D | atasound.c | 60 int period; in atari_mksound() local 75 period = PSG_FREQ / hz; in atari_mksound() 77 if (period > 0xfff) period = 0xfff; in atari_mksound() 81 sound_ym.wd_data = period & 0xff; in atari_mksound() 83 sound_ym.wd_data = (period >> 8) & 0xf; in atari_mksound()
|
/arch/m68k/amiga/ |
D | amisound.c | 82 unsigned long period = (clock_constant / hz); in amiga_mksound() local 84 if (period < amiga_audio_min_period) in amiga_mksound() 85 period = amiga_audio_min_period; in amiga_mksound() 86 if (period > MAX_PERIOD) in amiga_mksound() 87 period = MAX_PERIOD; in amiga_mksound() 92 custom.aud[2].audper = (unsigned short)period; in amiga_mksound()
|
/arch/microblaze/kernel/ |
D | heartbeat.c | 22 static unsigned int cnt, period, dist; in heartbeat() local 30 if (++cnt > period) { in heartbeat() 38 period = ((672 << FSHIFT) / (5 * avenrun[0] + in heartbeat() 40 dist = period / 4; in heartbeat()
|
/arch/m68k/kernel/ |
D | time.c | 46 static unsigned cnt = 0, period = 0, dist = 0; in timer_interrupt() local 53 if (++cnt > period) { in timer_interrupt() 59 period = ((672<<FSHIFT)/(5*avenrun[0]+(7<<FSHIFT))) + 30; in timer_interrupt() 60 dist = period / 4; in timer_interrupt()
|
/arch/powerpc/platforms/52xx/ |
D | mpc52xx_gpt.c | 396 static int mpc52xx_gpt_do_start(struct mpc52xx_gpt_priv *gpt, u64 period, in mpc52xx_gpt_do_start() argument 416 clocks = period * (u64)gpt->ipb_freq; in mpc52xx_gpt_do_start() 466 int mpc52xx_gpt_start_timer(struct mpc52xx_gpt_priv *gpt, u64 period, in mpc52xx_gpt_start_timer() argument 469 return mpc52xx_gpt_do_start(gpt, period, continuous, 0); in mpc52xx_gpt_start_timer() 504 u64 period; in mpc52xx_gpt_timer_period() local 509 period = in_be32(&gpt->regs->count); in mpc52xx_gpt_timer_period() 512 prescale = period >> 16; in mpc52xx_gpt_timer_period() 513 period &= 0xffff; in mpc52xx_gpt_timer_period() 516 period = period * prescale * 1000000000ULL; in mpc52xx_gpt_timer_period() 517 do_div(period, (u64)gpt->ipb_freq); in mpc52xx_gpt_timer_period() [all …]
|
/arch/x86/kernel/cpu/ |
D | perf_event_amd_ibs.c | 75 s64 period = hwc->sample_period; in perf_event_set_period() local 81 if (unlikely(left <= -period)) { in perf_event_set_period() 82 left = period; in perf_event_set_period() 84 hwc->last_period = period; in perf_event_set_period() 89 left += period; in perf_event_set_period() 91 hwc->last_period = period; in perf_event_set_period() 290 struct hw_perf_event *hwc, u64 *period) in perf_ibs_set_period() argument 295 overflow = perf_event_set_period(hwc, 1<<4, perf_ibs->max_period, period); in perf_ibs_set_period() 369 u64 period; in perf_ibs_start() local 377 perf_ibs_set_period(perf_ibs, hwc, &period); in perf_ibs_start() [all …]
|
/arch/arm/mach-spear/ |
D | time.c | 109 u32 period; in clockevent_set_mode() local 119 period = clk_get_rate(gpt_clk) / HZ; in clockevent_set_mode() 120 period >>= CTRL_PRESCALER16; in clockevent_set_mode() 121 writew(period, gpt_base + LOAD(CLKEVT)); in clockevent_set_mode()
|
/arch/arm/mach-davinci/ |
D | time.c | 93 unsigned long period; member 136 __raw_writel(__raw_readl(t->base + t->tim_off) + t->period, in timer32_config() 147 __raw_writel(t->period, t->base + t->prd_off); in timer32_config() 190 .period = ~0, 301 t->period = cycles; in davinci_set_next_event() 313 t->period = davinci_clock_tick_rate / (HZ); in davinci_set_mode()
|
/arch/arm/kernel/ |
D | perf_event.c | 94 s64 period = hwc->sample_period; in armpmu_event_set_period() local 98 if (unlikely(period != hwc->last_period)) in armpmu_event_set_period() 99 left = period - (hwc->last_period - left); in armpmu_event_set_period() 101 if (unlikely(left <= -period)) { in armpmu_event_set_period() 102 left = period; in armpmu_event_set_period() 104 hwc->last_period = period; in armpmu_event_set_period() 109 left += period; in armpmu_event_set_period() 111 hwc->last_period = period; in armpmu_event_set_period()
|
/arch/mips/include/asm/mach-jz4740/ |
D | timer.h | 89 static inline void jz4740_timer_set_period(unsigned int timer, uint16_t period) in jz4740_timer_set_period() argument 91 writew(period, jz4740_timer_base + JZ_REG_TIMER_DFR(timer)); in jz4740_timer_set_period()
|
/arch/metag/kernel/perf/ |
D | perf_event.c | 225 s64 period = hwc->sample_period; in metag_pmu_event_set_period() local 229 if (unlikely(period != hwc->last_period)) in metag_pmu_event_set_period() 230 left += period - hwc->last_period; in metag_pmu_event_set_period() 232 if (unlikely(left <= -period)) { in metag_pmu_event_set_period() 233 left = period; in metag_pmu_event_set_period() 235 hwc->last_period = period; in metag_pmu_event_set_period() 240 left += period; in metag_pmu_event_set_period() 242 hwc->last_period = period; in metag_pmu_event_set_period()
|
/arch/blackfin/kernel/ |
D | gptimers.c | 143 void set_gptimer_period(unsigned int timer_id, uint32_t period) in set_gptimer_period() argument 146 bfin_write(&timer_regs[timer_id]->period, period); in set_gptimer_period() 154 return bfin_read(&timer_regs[timer_id]->period); in get_gptimer_period()
|
/arch/arm/plat-samsung/include/plat/ |
D | dma-ops.h | 28 unsigned long period; member
|
/arch/arm/mach-omap2/ |
D | timer.c | 97 u32 period; in omap2_gp_timer_set_mode() local 103 period = clkev.rate / HZ; in omap2_gp_timer_set_mode() 104 period -= 1; in omap2_gp_timer_set_mode() 107 0xffffffff - period, OMAP_TIMER_POSTED); in omap2_gp_timer_set_mode() 110 0xffffffff - period, OMAP_TIMER_POSTED); in omap2_gp_timer_set_mode()
|
/arch/alpha/kernel/ |
D | perf_event.c | 246 long period = hwc->sample_period; in alpha_perf_event_set_period() local 249 if (unlikely(left <= -period)) { in alpha_perf_event_set_period() 250 left = period; in alpha_perf_event_set_period() 252 hwc->last_period = period; in alpha_perf_event_set_period() 257 left += period; in alpha_perf_event_set_period() 259 hwc->last_period = period; in alpha_perf_event_set_period()
|
/arch/c6x/platforms/ |
D | timer64.c | 80 static void timer64_config(unsigned long period) in timer64_config() argument 85 soc_writel(period - 1, &timer->prdlo); in timer64_config()
|
/arch/x86/kvm/ |
D | i8254.h | 28 s64 period; /* unit: ns */ member
|
D | lapic.c | 865 ns = mod_64(ktime_to_ns(remaining), apic->lapic_timer.period); in apic_get_tmcct() 1012 apic->lapic_timer.period = (u64)kvm_apic_get_reg(apic, APIC_TMICT) in start_apic_timer() 1015 if (!apic->lapic_timer.period) in start_apic_timer() 1025 if (apic->lapic_timer.period < min_period) { in start_apic_timer() 1030 apic->lapic_timer.period, min_period); in start_apic_timer() 1031 apic->lapic_timer.period = min_period; in start_apic_timer() 1036 ktime_add_ns(now, apic->lapic_timer.period), in start_apic_timer() 1045 apic->lapic_timer.period, in start_apic_timer() 1047 apic->lapic_timer.period))); in start_apic_timer() 1524 hrtimer_add_expires_ns(&ktimer->timer, ktimer->period); in apic_timer_fn()
|
D | i8254.c | 111 if (!ps->period) in __kpit_elapsed() 124 elapsed = ps->period - ktime_to_ns(remaining); in __kpit_elapsed() 322 hrtimer_add_expires_ns(&ps->timer, ps->period); in pit_timer_fn() 343 ps->period = interval; in create_pit_timer()
|
/arch/blackfin/include/asm/ |
D | gptimers.h | 252 void set_gptimer_period(unsigned int timer_id, uint32_t period); 297 u32 period; member
|
/arch/powerpc/perf/ |
D | core-fsl-emb.c | 573 u64 period = event->hw.sample_period; in record_and_restart() local 593 if (period) { in record_and_restart() 595 left += period; in record_and_restart() 597 left = period; in record_and_restart()
|
/arch/mips/kernel/ |
D | perf_event_mipsxx.c | 380 u64 period = hwc->sample_period; in mipspmu_event_set_period() local 383 if (unlikely((left + period) & (1ULL << 63))) { in mipspmu_event_set_period() 385 left = period; in mipspmu_event_set_period() 387 hwc->last_period = period; in mipspmu_event_set_period() 389 } else if (unlikely((left + period) <= period)) { in mipspmu_event_set_period() 391 left += period; in mipspmu_event_set_period() 393 hwc->last_period = period; in mipspmu_event_set_period() 745 data->period = event->hw.last_period; in handle_associated_event()
|
/arch/arm/plat-samsung/ |
D | s3c-dma-ops.c | 85 int len = (param->cap == DMA_CYCLIC) ? param->period : param->len; in s3c_dma_prepare()
|
D | dma-ops.c | 92 param->len, param->period, param->direction, in samsung_dmadev_prepare()
|
/arch/arm64/kernel/ |
D | perf_event.c | 155 s64 period = hwc->sample_period; in armpmu_event_set_period() local 158 if (unlikely(left <= -period)) { in armpmu_event_set_period() 159 left = period; in armpmu_event_set_period() 161 hwc->last_period = period; in armpmu_event_set_period() 166 left += period; in armpmu_event_set_period() 168 hwc->last_period = period; in armpmu_event_set_period()
|