/arch/m68k/atari/ |
D | atasound.c | 59 int period; in atari_mksound() local 74 period = PSG_FREQ / hz; in atari_mksound() 76 if (period > 0xfff) period = 0xfff; in atari_mksound() 80 sound_ym.wd_data = period & 0xff; in atari_mksound() 82 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/powerpc/platforms/52xx/ |
D | mpc52xx_gpt.c | 383 static int mpc52xx_gpt_do_start(struct mpc52xx_gpt_priv *gpt, u64 period, in mpc52xx_gpt_do_start() argument 403 clocks = period * (u64)gpt->ipb_freq; in mpc52xx_gpt_do_start() 453 int mpc52xx_gpt_start_timer(struct mpc52xx_gpt_priv *gpt, u64 period, in mpc52xx_gpt_start_timer() argument 456 return mpc52xx_gpt_do_start(gpt, period, continuous, 0); in mpc52xx_gpt_start_timer() 491 u64 period; in mpc52xx_gpt_timer_period() local 496 period = in_be32(&gpt->regs->count); in mpc52xx_gpt_timer_period() 499 prescale = period >> 16; in mpc52xx_gpt_timer_period() 500 period &= 0xffff; in mpc52xx_gpt_timer_period() 503 period = period * prescale * 1000000000ULL; in mpc52xx_gpt_timer_period() 504 do_div(period, gpt->ipb_freq); in mpc52xx_gpt_timer_period() [all …]
|
/arch/m68k/kernel/ |
D | time.c | 45 static unsigned cnt = 0, period = 0, dist = 0; in timer_heartbeat() local 52 if (++cnt > period) { in timer_heartbeat() 58 period = ((672<<FSHIFT)/(5*avenrun[0]+(7<<FSHIFT))) + 30; in timer_heartbeat() 59 dist = period / 4; in timer_heartbeat()
|
/arch/nios2/kernel/ |
D | time.c | 135 static void nios2_timer_config(struct nios2_timer *timer, unsigned long period, in nios2_timer_config() argument 142 period--; in nios2_timer_config() 150 timer_writew(timer, period, ALTERA_TIMER_PERIODL_REG); in nios2_timer_config() 151 timer_writew(timer, period >> 16, ALTERA_TIMER_PERIODH_REG); in nios2_timer_config() 182 unsigned long period; in nios2_timer_set_periodic() local 186 period = DIV_ROUND_UP(timer->freq, HZ); in nios2_timer_set_periodic() 187 nios2_timer_config(timer, period, true); in nios2_timer_set_periodic()
|
/arch/arm/mach-spear/ |
D | time.c | 125 u32 period; in spear_set_periodic() local 131 period = clk_get_rate(gpt_clk) / HZ; in spear_set_periodic() 132 period >>= CTRL_PRESCALER16; in spear_set_periodic() 133 writew(period, gpt_base + LOAD(CLKEVT)); in spear_set_periodic()
|
/arch/x86/events/amd/ |
D | ibs.c | 104 s64 period = hwc->sample_period; in perf_event_set_period() local 110 if (unlikely(left <= -period)) { in perf_event_set_period() 111 left = period; in perf_event_set_period() 113 hwc->last_period = period; in perf_event_set_period() 118 left += period; in perf_event_set_period() 120 hwc->last_period = period; in perf_event_set_period() 332 struct hw_perf_event *hwc, u64 *period) in perf_ibs_set_period() argument 337 overflow = perf_event_set_period(hwc, 1<<4, perf_ibs->max_period, period); in perf_ibs_set_period() 427 u64 period, config = 0; in perf_ibs_start() local 435 perf_ibs_set_period(perf_ibs, hwc, &period); in perf_ibs_start() [all …]
|
/arch/loongarch/kernel/ |
D | time.c | 63 unsigned long period; in constant_set_state_periodic() local 68 period = const_clock_freq / HZ; in constant_set_state_periodic() 69 timer_config = period & CSR_TCFG_VAL; in constant_set_state_periodic()
|
D | perf_event.c | 305 u64 period = hwc->sample_period; in loongarch_pmu_event_set_period() local 307 if (unlikely((left + period) & (1ULL << 63))) { in loongarch_pmu_event_set_period() 309 left = period; in loongarch_pmu_event_set_period() 311 hwc->last_period = period; in loongarch_pmu_event_set_period() 313 } else if (unlikely((left + period) <= period)) { in loongarch_pmu_event_set_period() 315 left += period; in loongarch_pmu_event_set_period() 317 hwc->last_period = period; in loongarch_pmu_event_set_period() 488 data->period = event->hw.last_period; in handle_associated_event()
|
/arch/xtensa/kernel/ |
D | perf_event.c | 172 s64 period = hwc->sample_period; in xtensa_perf_event_set_period() local 175 if (left <= -period) { in xtensa_perf_event_set_period() 176 left = period; in xtensa_perf_event_set_period() 178 hwc->last_period = period; in xtensa_perf_event_set_period() 181 left += period; in xtensa_perf_event_set_period() 183 hwc->last_period = period; in xtensa_perf_event_set_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() 279 hrtimer_add_expires_ns(&ps->timer, ps->period); in pit_timer_fn() 339 ps->period = interval; in create_pit_timer() 352 if (ps->period < min_period) { in create_pit_timer() 356 ps->period, min_period); in create_pit_timer() 357 ps->period = min_period; in create_pit_timer()
|
D | i8254.h | 30 s64 period; /* unit: ns */ member
|
D | lapic.c | 1539 apic->lapic_timer.period == 0) in apic_get_tmcct() 1547 ns = mod_64(ktime_to_ns(remaining), apic->lapic_timer.period); in apic_get_tmcct() 1729 if (apic_lvtt_period(apic) && apic->lapic_timer.period) { in limit_periodic_timer_frequency() 1732 if (apic->lapic_timer.period < min_period) { in limit_periodic_timer_frequency() 1737 apic->lapic_timer.period, min_period); in limit_periodic_timer_frequency() 1738 apic->lapic_timer.period = min_period; in limit_periodic_timer_frequency() 1765 apic->lapic_timer.period = 0; in apic_update_lvtt() 1974 apic->lapic_timer.period = in update_target_expiration() 2000 apic->lapic_timer.period = in set_target_expiration() 2003 if (!apic->lapic_timer.period) { in set_target_expiration() [all …]
|
/arch/alpha/kernel/ |
D | perf_event.c | 256 long period = hwc->sample_period; in alpha_perf_event_set_period() local 259 if (unlikely(left <= -period)) { in alpha_perf_event_set_period() 260 left = period; in alpha_perf_event_set_period() 262 hwc->last_period = period; in alpha_perf_event_set_period() 267 left += period; in alpha_perf_event_set_period() 269 hwc->last_period = period; in alpha_perf_event_set_period()
|
/arch/arm64/boot/dts/nvidia/ |
D | tegra194-p3668.dtsi | 127 maxim,shutdown-fps-time-period-us = <640>; 132 maxim,shutdown-fps-time-period-us = <640>; 138 maxim,shutdown-fps-time-period-us = <640>;
|
D | tegra194-p2888.dtsi | 153 maxim,shutdown-fps-time-period-us = <640>; 158 maxim,shutdown-fps-time-period-us = <640>; 164 maxim,shutdown-fps-time-period-us = <640>;
|
D | tegra186-p3310.dtsi | 216 maxim,shutdown-fps-time-period-us = <640>; 221 maxim,shutdown-fps-time-period-us = <640>; 226 maxim,shutdown-fps-time-period-us = <640>;
|
D | tegra210-p2180.dtsi | 75 maxim,suspend-fps-time-period-us = <1280>; 80 maxim,suspend-fps-time-period-us = <1280>;
|
/arch/arc/kernel/ |
D | perf_event.c | 409 s64 period = hwc->sample_period; in arc_pmu_event_set_period() local 414 if (unlikely(left <= -period)) { in arc_pmu_event_set_period() 416 left = period; in arc_pmu_event_set_period() 418 hwc->last_period = period; in arc_pmu_event_set_period() 422 left += period; in arc_pmu_event_set_period() 424 hwc->last_period = period; in arc_pmu_event_set_period()
|
/arch/powerpc/perf/ |
D | core-fsl-emb.c | 592 u64 period = event->hw.sample_period; in record_and_restart() local 612 if (period) { in record_and_restart() 614 left += period; in record_and_restart() 616 left = period; in record_and_restart()
|
/arch/mips/kernel/ |
D | perf_event_mipsxx.c | 414 u64 period = hwc->sample_period; in mipspmu_event_set_period() local 417 if (unlikely((left + period) & (1ULL << 63))) { in mipspmu_event_set_period() 419 left = period; in mipspmu_event_set_period() 421 hwc->last_period = period; in mipspmu_event_set_period() 423 } else if (unlikely((left + period) <= period)) { in mipspmu_event_set_period() 425 left += period; in mipspmu_event_set_period() 427 hwc->last_period = period; in mipspmu_event_set_period() 790 data->period = event->hw.last_period; in handle_associated_event()
|
/arch/x86/include/asm/ |
D | intel_telemetry.h | 34 u8 period; member
|
/arch/csky/kernel/ |
D | perf_event.c | 882 s64 period = hwc->sample_period; in csky_pmu_event_set_period() local 885 if (unlikely(left <= -period)) { in csky_pmu_event_set_period() 886 left = period; in csky_pmu_event_set_period() 888 hwc->last_period = period; in csky_pmu_event_set_period() 893 left += period; in csky_pmu_event_set_period() 895 hwc->last_period = period; in csky_pmu_event_set_period()
|
/arch/sparc/kernel/ |
D | perf_event.c | 891 s64 period = hwc->sample_period; in sparc_perf_event_set_period() local 895 if (unlikely(period != hwc->last_period)) in sparc_perf_event_set_period() 896 left = period - (hwc->last_period - left); in sparc_perf_event_set_period() 898 if (unlikely(left <= -period)) { in sparc_perf_event_set_period() 899 left = period; in sparc_perf_event_set_period() 901 hwc->last_period = period; in sparc_perf_event_set_period() 906 left += period; in sparc_perf_event_set_period() 908 hwc->last_period = period; in sparc_perf_event_set_period()
|
/arch/arm64/kvm/ |
D | pmu-emul.c | 488 u64 period; in kvm_pmu_perf_overflow() local 496 period = compute_period(pmc, local64_read(&perf_event->count)); in kvm_pmu_perf_overflow() 499 perf_event->attr.sample_period = period; in kvm_pmu_perf_overflow() 500 perf_event->hw.sample_period = period; in kvm_pmu_perf_overflow()
|