/arch/microblaze/kernel/ |
H A D | heartbeat.c | 22 static unsigned int cnt, period, dist; local 30 if (++cnt > period) { 34 * period length in dependency of the current (5min) 38 period = ((672 << FSHIFT) / (5 * avenrun[0] + 40 dist = period / 4;
|
/arch/m68k/amiga/ |
H A D | amisound.c | 29 * The minimum period for audio may be modified by the frame buffer 40 * Current period (set by dmasound.c) 82 unsigned long period = (clock_constant / hz); local 84 if (period < amiga_audio_min_period) 85 period = amiga_audio_min_period; 86 if (period > MAX_PERIOD) 87 period = MAX_PERIOD; 89 /* setup pointer to data, period, length and volume */ 92 custom.aud[2].audper = (unsigned short)period; 114 /* restore period t [all...] |
/arch/m68k/atari/ |
H A D | atasound.c | 60 int period; local 72 /* Convert from frequency value to PSG period value (base 75 period = PSG_FREQ / hz; 77 if (period > 0xfff) period = 0xfff; 81 sound_ym.wd_data = period & 0xff; 83 sound_ym.wd_data = (period >> 8) & 0xf;
|
/arch/m68k/kernel/ |
H A D | time.c | 46 static unsigned cnt = 0, period = 0, dist = 0; local 53 if (++cnt > period) { 55 /* The hyperbolic function below modifies the heartbeat period 59 period = ((672<<FSHIFT)/(5*avenrun[0]+(7<<FSHIFT))) + 30; 60 dist = period / 4;
|
/arch/x86/kvm/ |
H A D | kvm_timer.h | 4 s64 period; /* unit: ns */ member in struct:kvm_timer
|
/arch/blackfin/kernel/ |
H A D | pwm.c | 64 unsigned long period, duty; local 72 period = val; 74 val = (unsigned long long)period * duty_ns; 76 duty = period - val; 78 if (duty >= period) 79 duty = period - 1; 83 set_gptimer_period(pwm->id, period);
|
H A D | gptimers.c | 139 void set_gptimer_period(unsigned int timer_id, uint32_t period) argument 142 bfin_write(&timer_regs[timer_id]->period, period); 150 return bfin_read(&timer_regs[timer_id]->period);
|
/arch/arm/plat-samsung/include/plat/ |
H A D | dma-ops.h | 23 unsigned long period; member in struct:samsung_dma_prep_info
|
/arch/mips/jz4740/ |
H A D | pwm.c | 97 unsigned long period, duty; local 108 period = tmp; 110 while (period > 0xffff && prescaler < 6) { 111 period >>= 2; 118 tmp = (unsigned long long)period * duty_ns; 120 duty = period - tmp; 122 if (duty >= period) 123 duty = period - 1; 131 jz4740_timer_set_period(id, period);
|
H A D | timer.h | 90 static inline void jz4740_timer_set_period(unsigned int timer, uint16_t period) argument 92 writew(period, jz4740_timer_base + JZ_REG_TIMER_DFR(timer));
|
/arch/arm/plat-spear/ |
H A D | time.c | 108 u32 period; local 118 period = clk_get_rate(gpt_clk) / HZ; 119 period >>= CTRL_PRESCALER16; 120 writew(period, gpt_base + LOAD(CLKEVT));
|
/arch/arm/mach-omap2/ |
H A D | timer.c | 110 u32 period; local 116 period = clkev.rate / HZ; 117 period -= 1; 120 0xffffffff - period, 1); 123 0xffffffff - period, 1);
|
/arch/arm/plat-samsung/ |
H A D | pwm.c | 165 unsigned long period; local 191 period = NS_IN_HZ / period_ns; 194 duty_ns, period_ns, period); 200 tin_rate = pwm_calc_tin(pwm, period);
|
/arch/powerpc/perf/ |
H A D | core-fsl-emb.c | 573 u64 period = event->hw.sample_period; local 588 * See if the total period for this event has expired, 589 * and update for the next period. 593 if (period) { 595 left += period; 597 left = period; 617 data.period = event->hw.last_period;
|
H A D | core-book3s.c | 1259 u64 period = event->hw.sample_period; local 1274 * See if the total period for this event has expired, 1275 * and update for the next period. 1279 if (period) { 1281 left += period; 1283 left = period; 1303 data.period = event->hw.last_period; 1360 * PMCs because a user might set a period of less than 256 and we
|
/arch/c6x/platforms/ |
H A D | timer64.c | 80 static void timer64_config(unsigned long period) argument 85 soc_writel(period - 1, &timer->prdlo);
|
/arch/alpha/kernel/ |
H A D | perf_event.c | 77 /* The maximum period the PMC can count. */ 241 /* Set a new period to sample over */ 246 long period = hwc->sample_period; local 249 if (unlikely(left <= -period)) { 250 left = period; 252 hwc->last_period = period; 257 left += period; 259 hwc->last_period = period; 265 * written with values that are too close to the maximum period. 286 * As the PMCs' full period ca [all...] |
/arch/arm/kernel/ |
H A D | perf_event.c | 151 s64 period = hwc->sample_period; local 154 if (unlikely(left <= -period)) { 155 left = period; 157 hwc->last_period = period; 162 left += period; 164 hwc->last_period = period; 241 * ARM pmu always has to reprogram the period, so ignore 249 * Set the period again. Some counters can't be stopped, so when we
|
/arch/arm/mach-davinci/ |
H A D | time.c | 93 unsigned long period; member in struct:timer_s 132 * the new period (using 32-bit unsigned addition/wrapping 136 __raw_writel(__raw_readl(t->base + t->tim_off) + t->period, 145 /* reset counter to zero, set new period */ 147 __raw_writel(t->period, t->base + t->prd_off); 190 .period = ~0, 301 t->period = cycles; 313 t->period = davinci_clock_tick_rate / (HZ); 445 /* clear counter and period regs */
|
/arch/blackfin/include/asm/ |
H A D | gptimers.h | 177 void set_gptimer_period(unsigned int timer_id, uint32_t period); 218 u32 period; member in struct:bfin_gptimer_regs
|
/arch/mips/kernel/ |
H A D | perf_event_mipsxx.c | 372 u64 period = hwc->sample_period; local 375 if (unlikely((left + period) & (1ULL << 63))) { 376 /* left underflowed by more than period. */ 377 left = period; 379 hwc->last_period = period; 381 } else if (unlikely((left + period) <= period)) { 382 /* left underflowed by less than period. */ 383 left += period; 385 hwc->last_period = period; [all...] |
/arch/powerpc/platforms/52xx/ |
H A D | mpc52xx_gpt.c | 396 static int mpc52xx_gpt_do_start(struct mpc52xx_gpt_priv *gpt, u64 period, argument 412 /* Determine the number of clocks in the requested period. 64 bit 416 clocks = period * (u64)gpt->ipb_freq; 424 * 'clocks' is the number of clock ticks in the period. The timer 461 * @period: period of timer in ns; max. ~130s @ 33MHz IPB clock 466 int mpc52xx_gpt_start_timer(struct mpc52xx_gpt_priv *gpt, u64 period, argument 469 return mpc52xx_gpt_do_start(gpt, period, continuous, 0); 497 * mpc52xx_gpt_timer_period - Read the timer period 500 * Returns the timer period i 504 u64 period; local 685 mpc52xx_gpt_wdt_setup(struct mpc52xx_gpt_priv *gpt, const u32 *period) argument 712 mpc52xx_gpt_wdt_setup(struct mpc52xx_gpt_priv *gpt, const u32 *period) argument [all...] |
/arch/sparc/kernel/ |
H A D | perf_event.c | 640 s64 period = hwc->sample_period; local 643 if (unlikely(left <= -period)) { 644 left = period; 646 hwc->last_period = period; 651 left += period; 653 hwc->last_period = period; 1324 data.period = event->hw.last_period;
|
/arch/x86/kernel/cpu/ |
H A D | perf_event.c | 926 * Set the next IRQ period, based on the hwc->period_left value. 933 s64 period = hwc->sample_period; local 942 if (unlikely(left <= -period)) { 943 left = period; 945 hwc->last_period = period; 950 left += period; 952 hwc->last_period = period; 1225 data.period = event->hw.last_period; 1401 pr_info("... max period: %016Lx\n", x86_pmu.max_period);
|