Home
last modified time | relevance | path

Searched refs:ticks (Results 1 – 18 of 18) sorted by relevance

/arch/arm/mach-rpc/
Dtime.c33 u32 ticks; in ioc_timer_read() local
45 ticks = ioc_time + RPC_LATCH - count2; in ioc_timer_read()
54 ticks += RPC_LATCH; in ioc_timer_read()
61 ticks += RPC_LATCH; in ioc_timer_read()
64 return ticks; in ioc_timer_read()
/arch/powerpc/sysdev/
Dmpic_timer.c86 const u64 ticks, time64_t *time) in convert_ticks_to_time() argument
88 *time = (u64)div_u64(ticks, priv->timerfreq); in convert_ticks_to_time()
93 time64_t time, u64 *ticks) in convert_time_to_ticks() argument
102 *ticks = (u64)time * (u64)priv->timerfreq; in convert_time_to_ticks()
138 static int set_cascade_timer(struct timer_group_priv *priv, u64 ticks, in set_cascade_timer() argument
155 tmp_ticks = div_u64_rem(ticks, MAX_TICKS_CASCADE, &rem_ticks); in set_cascade_timer()
167 u64 ticks) in get_cascade_timer() argument
175 if (ticks > max_ticks) in get_cascade_timer()
184 ret = set_cascade_timer(priv, ticks, allocated_timer->num); in get_cascade_timer()
196 u64 ticks; in get_timer() local
[all …]
/arch/m68k/hp300/
Dtime.c79 u32 ticks; in hp300_read_clk() local
94 ticks = INTVAL - ((msb << 8) | lsb); in hp300_read_clk()
95 ticks += clk_offset + clk_total; in hp300_read_clk()
98 return ticks; in hp300_read_clk()
/arch/m68k/atari/
Datasound.c53 void atari_mksound (unsigned int hz, unsigned int ticks) in atari_mksound() argument
83 if (ticks) { in atari_mksound()
85 int length = (ticks * PSG_ENV_FREQ_10) / HZ / 10; in atari_mksound()
Dtime.c78 u32 ticks; in atari_read_clk() local
87 ticks = INT_TICKS - count; in atari_read_clk()
88 ticks += clk_total; in atari_read_clk()
91 return ticks; in atari_read_clk()
Dconfig.c74 extern void atari_mksound(unsigned int count, unsigned int ticks);
/arch/m68k/amiga/
Damisound.c71 void amiga_mksound( unsigned int hz, unsigned int ticks ) in amiga_mksound() argument
95 if (ticks) { in amiga_mksound()
96 sound_timer.expires = jiffies + ticks; in amiga_mksound()
Dconfig.c98 extern void amiga_mksound(unsigned int count, unsigned int ticks);
518 u32 ticks; in amiga_read_clk() local
532 ticks = hi << 8 | lo; in amiga_read_clk()
534 if (ticks > jiffy_ticks / 2) in amiga_read_clk()
539 ticks = jiffy_ticks - ticks; in amiga_read_clk()
540 ticks += clk_offset + clk_total; in amiga_read_clk()
544 return ticks; in amiga_read_clk()
/arch/m68k/mvme147/
Dconfig.c153 u32 ticks; in mvme147_read_clk() local
162 ticks = count + overflow * PCC_TIMER_CYCLES; in mvme147_read_clk()
163 ticks += clk_total; in mvme147_read_clk()
166 return ticks; in mvme147_read_clk()
/arch/m68k/mvme16x/
Dconfig.c419 u32 ticks; in mvme16x_read_clk() local
423 ticks = in_be32(PCCTCNT1); in mvme16x_read_clk()
426 ticks = in_be32(PCCTCNT1); in mvme16x_read_clk()
427 ticks += overflow * PCC_TIMER_CYCLES; in mvme16x_read_clk()
428 ticks += clk_total; in mvme16x_read_clk()
431 return ticks; in mvme16x_read_clk()
/arch/m68k/mac/
Dvia.c636 u32 ticks; in mac_read_clk() local
654 ticks = VIA_TIMER_CYCLES - count; in mac_read_clk()
655 ticks += clk_offset + clk_total; in mac_read_clk()
658 return ticks; in mac_read_clk()
/arch/m68k/q40/
Dq40ints.c111 void q40_mksound(unsigned int hz, unsigned int ticks) in q40_mksound() argument
127 sound_ticks = ticks << 1; in q40_mksound()
/arch/mips/fw/cfe/
Dcfe_api_int.h75 s64 ticks; /* current time in ticks */ member
Dcfe_api.c277 xiocb.plist.xiocb_time.ticks = 0; in cfe_getticks()
281 return xiocb.plist.xiocb_time.ticks; in cfe_getticks()
/arch/powerpc/kernel/
Dwatchdog.c350 unsigned long ticks = tb_ticks_per_usec * wd_timer_period_ms * 1000; in arch_touch_nmi_watchdog() local
358 if (tb - per_cpu(wd_timer_tb, cpu) >= ticks) { in arch_touch_nmi_watchdog()
Dtime.c663 unsigned long long tb_to_ns(unsigned long long ticks) in tb_to_ns() argument
665 return mulhdu(ticks, tb_to_ns_scale) << tb_to_ns_shift; in tb_to_ns()
/arch/alpha/kernel/
Dosf_sys.c1139 unsigned long ticks; in SYSCALL_DEFINE2() local
1144 ticks = timespec64_to_jiffies(&tmp); in SYSCALL_DEFINE2()
1146 ticks = schedule_timeout_interruptible(ticks); in SYSCALL_DEFINE2()
1149 jiffies_to_timespec64(ticks, &tmp); in SYSCALL_DEFINE2()
/arch/ia64/kernel/
Dsmpboot.c484 int ticks; in decay() local
485 get_option (&str, &ticks); in decay()