/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/powerpc/platforms/52xx/ |
D | mpc52xx_gpt.c | 391 static int mpc52xx_gpt_do_start(struct mpc52xx_gpt_priv *gpt, u64 period, in mpc52xx_gpt_do_start() argument 411 clocks = period * (u64)gpt->ipb_freq; in mpc52xx_gpt_do_start() 461 int mpc52xx_gpt_start_timer(struct mpc52xx_gpt_priv *gpt, u64 period, in mpc52xx_gpt_start_timer() argument 464 return mpc52xx_gpt_do_start(gpt, period, continuous, 0); in mpc52xx_gpt_start_timer() 499 u64 period; in mpc52xx_gpt_timer_period() local 504 period = in_be32(&gpt->regs->count); in mpc52xx_gpt_timer_period() 507 prescale = period >> 16; in mpc52xx_gpt_timer_period() 508 period &= 0xffff; in mpc52xx_gpt_timer_period() 511 period = period * prescale * 1000000000ULL; in mpc52xx_gpt_timer_period() 512 do_div(period, (u64)gpt->ipb_freq); in mpc52xx_gpt_timer_period() [all …]
|
/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/nios2/kernel/ |
D | time.c | 132 static void nios2_timer_config(struct nios2_timer *timer, unsigned long period, in nios2_timer_config() argument 139 period--; in nios2_timer_config() 147 timer_writew(timer, period, ALTERA_TIMER_PERIODL_REG); in nios2_timer_config() 148 timer_writew(timer, period >> 16, ALTERA_TIMER_PERIODH_REG); in nios2_timer_config() 179 unsigned long period; in nios2_timer_set_periodic() local 183 period = DIV_ROUND_UP(timer->freq, HZ); in nios2_timer_set_periodic() 184 nios2_timer_config(timer, period, true); in nios2_timer_set_periodic()
|
/arch/x86/events/amd/ |
D | ibs.c | 113 s64 period = hwc->sample_period; in perf_event_set_period() local 119 if (unlikely(left <= -period)) { in perf_event_set_period() 120 left = period; in perf_event_set_period() 122 hwc->last_period = period; in perf_event_set_period() 127 left += period; in perf_event_set_period() 129 hwc->last_period = period; in perf_event_set_period() 328 struct hw_perf_event *hwc, u64 *period) in perf_ibs_set_period() argument 333 overflow = perf_event_set_period(hwc, 1<<4, perf_ibs->max_period, period); in perf_ibs_set_period() 407 u64 period; in perf_ibs_start() local 415 perf_ibs_set_period(perf_ibs, hwc, &period); in perf_ibs_start() [all …]
|
/arch/arm/mach-spear/ |
D | time.c | 128 u32 period; in spear_set_periodic() local 134 period = clk_get_rate(gpt_clk) / HZ; in spear_set_periodic() 135 period >>= CTRL_PRESCALER16; in spear_set_periodic() 136 writew(period, gpt_base + LOAD(CLKEVT)); in spear_set_periodic()
|
/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() 328 t->period = davinci_clock_tick_rate / (HZ); in davinci_set_periodic()
|
/arch/mips/loongson32/common/ |
D | time.c | 42 static inline void ls1x_pwmtimer_set_period(uint32_t period) in ls1x_pwmtimer_set_period() argument 44 __raw_writel(period, timer_reg_base + PWM_HRC); in ls1x_pwmtimer_set_period() 45 __raw_writel(period, timer_reg_base + PWM_LRC); in ls1x_pwmtimer_set_period()
|
/arch/xtensa/kernel/ |
D | perf_event.c | 166 s64 period = hwc->sample_period; in xtensa_perf_event_set_period() local 169 if (left <= -period) { in xtensa_perf_event_set_period() 170 left = period; in xtensa_perf_event_set_period() 172 hwc->last_period = period; in xtensa_perf_event_set_period() 175 left += period; in xtensa_perf_event_set_period() 177 hwc->last_period = period; in xtensa_perf_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/arc/kernel/ |
D | perf_event.c | 220 s64 period = hwc->sample_period; in arc_pmu_event_set_period() local 225 if (unlikely(left <= -period)) { in arc_pmu_event_set_period() 227 left = period; in arc_pmu_event_set_period() 229 hwc->last_period = period; in arc_pmu_event_set_period() 233 left += period; in arc_pmu_event_set_period() 235 hwc->last_period = period; in arc_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/x86/kvm/ |
D | i8254.c | 88 if (!ps->period) in __kpit_elapsed() 101 elapsed = ps->period - ktime_to_ns(remaining); in __kpit_elapsed() 278 hrtimer_add_expires_ns(&ps->timer, ps->period); in pit_timer_fn() 328 ps->period = interval; in create_pit_timer() 341 if (ps->period < min_period) { in create_pit_timer() 345 ps->period, min_period); in create_pit_timer() 346 ps->period = min_period; in create_pit_timer()
|
D | i8254.h | 29 s64 period; /* unit: ns */ member
|
/arch/arm/mach-omap2/ |
D | timer.c | 113 u32 period; in omap2_gp_timer_set_periodic() local 117 period = clkev.rate / HZ; in omap2_gp_timer_set_periodic() 118 period -= 1; in omap2_gp_timer_set_periodic() 120 __omap_dm_timer_write(&clkev, OMAP_TIMER_LOAD_REG, 0xffffffff - period, in omap2_gp_timer_set_periodic() 124 0xffffffff - period, OMAP_TIMER_POSTED); in omap2_gp_timer_set_periodic()
|
/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/arm/mach-gemini/ |
D | time.c | 118 u32 period = DIV_ROUND_CLOSEST(tick_rate, HZ); in gemini_timer_set_periodic() local 127 cr = 0xffffffff - (period - 1); in gemini_timer_set_periodic()
|
/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/arm64/boot/dts/nvidia/ |
D | tegra210-p2371-2180.dts | 36 pwm-period = <29334>;
|
/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 | 609 u64 period = event->hw.sample_period; in record_and_restart() local 629 if (period) { in record_and_restart() 631 left += period; in record_and_restart() 633 left = period; in record_and_restart()
|