/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 microblaze_heartbeat() local 30 if (++cnt > period) { in microblaze_heartbeat() 38 period = ((672 << FSHIFT) / (5 * avenrun[0] + in microblaze_heartbeat() 40 dist = period / 4; in microblaze_heartbeat()
|
/arch/m68k/kernel/ |
D | time.c | 52 static unsigned cnt = 0, period = 0, dist = 0; in timer_interrupt() local 59 if (++cnt > period) { in timer_interrupt() 65 period = ((672<<FSHIFT)/(5*avenrun[0]+(7<<FSHIFT))) + 30; in timer_interrupt() 66 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 | 76 s64 period = hwc->sample_period; in perf_event_set_period() local 82 if (unlikely(left <= -period)) { in perf_event_set_period() 83 left = period; in perf_event_set_period() 85 hwc->last_period = period; in perf_event_set_period() 90 left += period; in perf_event_set_period() 92 hwc->last_period = period; in perf_event_set_period() 291 struct hw_perf_event *hwc, u64 *period) in perf_ibs_set_period() argument 296 overflow = perf_event_set_period(hwc, 1<<4, perf_ibs->max_period, period); in perf_ibs_set_period() 370 u64 period; in perf_ibs_start() local 378 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-gemini/ |
D | time.c | 65 u32 period = DIV_ROUND_CLOSEST(tick_rate, HZ); in gemini_timer_set_mode() local 71 writel(period, in gemini_timer_set_mode() 73 writel(period, in gemini_timer_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/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/arm/plat-samsung/ |
D | s3c-dma-ops.c | 104 s3c2410_dma_enqueue(ch, (void *)data, pos, param->period); in s3c_dma_prepare() 105 pos += param->period; in s3c_dma_prepare()
|
/arch/arm/kernel/ |
D | perf_event.c | 101 s64 period = hwc->sample_period; in armpmu_event_set_period() local 104 if (unlikely(left <= -period)) { in armpmu_event_set_period() 105 left = period; in armpmu_event_set_period() 107 hwc->last_period = period; in armpmu_event_set_period() 112 left += period; in armpmu_event_set_period() 114 hwc->last_period = period; in armpmu_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 | 107 u32 period; in omap2_gp_timer_set_mode() local 113 period = clkev.rate / HZ; in omap2_gp_timer_set_mode() 114 period -= 1; in omap2_gp_timer_set_mode() 117 0xffffffff - period, OMAP_TIMER_POSTED); in omap2_gp_timer_set_mode() 120 0xffffffff - period, OMAP_TIMER_POSTED); in omap2_gp_timer_set_mode()
|
/arch/alpha/kernel/ |
D | perf_event.c | 255 long period = hwc->sample_period; in alpha_perf_event_set_period() local 258 if (unlikely(left <= -period)) { in alpha_perf_event_set_period() 259 left = period; in alpha_perf_event_set_period() 261 hwc->last_period = period; in alpha_perf_event_set_period() 266 left += period; in alpha_perf_event_set_period() 268 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 | i8254.c | 112 if (!ps->period) in __kpit_elapsed() 125 elapsed = ps->period - ktime_to_ns(remaining); in __kpit_elapsed() 327 hrtimer_add_expires_ns(&ps->timer, ps->period); in pit_timer_fn() 348 ps->period = interval; in create_pit_timer() 365 if (ps->period < min_period) { in create_pit_timer() 369 ps->period, min_period); in create_pit_timer() 370 ps->period = min_period; in create_pit_timer()
|
D | lapic.c | 891 apic->lapic_timer.period == 0) in apic_get_tmcct() 898 ns = mod_64(ktime_to_ns(remaining), apic->lapic_timer.period); in apic_get_tmcct() 1045 apic->lapic_timer.period = (u64)kvm_apic_get_reg(apic, APIC_TMICT) in start_apic_timer() 1048 if (!apic->lapic_timer.period) in start_apic_timer() 1058 if (apic->lapic_timer.period < min_period) { in start_apic_timer() 1063 apic->lapic_timer.period, min_period); in start_apic_timer() 1064 apic->lapic_timer.period = min_period; in start_apic_timer() 1069 ktime_add_ns(now, apic->lapic_timer.period), in start_apic_timer() 1078 apic->lapic_timer.period, in start_apic_timer() 1080 apic->lapic_timer.period))); in start_apic_timer() [all …]
|
/arch/blackfin/include/asm/ |
D | gptimers.h | 252 void set_gptimer_period(unsigned int timer_id, uint32_t period); 297 u32 period; member
|
/arch/tile/kernel/ |
D | perf_event.c | 553 s64 period = hwc->sample_period; in tile_event_set_period() local 559 if (unlikely(left <= -period)) { in tile_event_set_period() 560 left = period; in tile_event_set_period() 562 hwc->last_period = period; in tile_event_set_period() 567 left += period; in tile_event_set_period() 569 hwc->last_period = period; in tile_event_set_period()
|
/arch/powerpc/perf/ |
D | core-fsl-emb.c | 603 u64 period = event->hw.sample_period; in record_and_restart() local 623 if (period) { in record_and_restart() 625 left += period; in record_and_restart() 627 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()
|