Home
last modified time | relevance | path

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

/arch/powerpc/sysdev/
Dmpic_timer.c93 const u64 ticks, struct timeval *time) in convert_ticks_to_time() argument
97 time->tv_sec = (__kernel_time_t)div_u64(ticks, priv->timerfreq); in convert_ticks_to_time()
102 if (tmp_sec <= ticks) in convert_ticks_to_time()
104 div_u64((ticks - tmp_sec) * 1000000, priv->timerfreq); in convert_ticks_to_time()
111 const struct timeval *time, u64 *ticks) in convert_time_to_ticks() argument
137 *ticks = tmp; in convert_time_to_ticks()
173 static int set_cascade_timer(struct timer_group_priv *priv, u64 ticks, in set_cascade_timer() argument
190 tmp_ticks = div_u64_rem(ticks, MAX_TICKS_CASCADE, &rem_ticks); in set_cascade_timer()
202 u64 ticks) in get_cascade_timer() argument
210 if (ticks > max_ticks) in get_cascade_timer()
[all …]
/arch/arm/mach-omap2/
Dsdram-nokia.c159 int ticks, long rate, const char *name) in set_sdrc_timing_regval() argument
162 int ticks) in set_sdrc_timing_regval()
168 if (ticks >= 1 << nr_bits) in set_sdrc_timing_regval()
172 *regval |= ticks << st_bit; in set_sdrc_timing_regval()
174 printk(KERN_INFO "SDRC %s: %i ticks %i ns\n", name, ticks, in set_sdrc_timing_regval()
175 (unsigned int)sdrc_get_fclk_period(rate) * ticks / in set_sdrc_timing_regval()
202 int ticks, ret; in set_sdrc_timing_regval_ps() local
206 ticks = 0; in set_sdrc_timing_regval_ps()
208 ticks = sdrc_ps_to_ticks(time, rate); in set_sdrc_timing_regval_ps()
211 ret = set_sdrc_timing_regval(regval, st_bit, end_bit, ticks, in set_sdrc_timing_regval_ps()
[all …]
Dgpmc.c236 unsigned int gpmc_ticks_to_ns(unsigned int ticks) in gpmc_ticks_to_ns() argument
238 return ticks * gpmc_get_fclk_period() / 1000; in gpmc_ticks_to_ns()
241 static unsigned int gpmc_ticks_to_ps(unsigned int ticks) in gpmc_ticks_to_ps() argument
243 return ticks * gpmc_get_fclk_period(); in gpmc_ticks_to_ps()
248 unsigned long ticks = gpmc_ps_to_ticks(time_ps); in gpmc_round_ps_to_ticks() local
250 return ticks * gpmc_get_fclk_period(); in gpmc_round_ps_to_ticks()
295 int ticks, mask, nr_bits; in set_gpmc_timing_reg() local
298 ticks = 0; in set_gpmc_timing_reg()
300 ticks = gpmc_ns_to_ticks(time); in set_gpmc_timing_reg()
302 if (ticks >= 1 << nr_bits) { in set_gpmc_timing_reg()
[all …]
Dgpmc.h217 extern unsigned int gpmc_ticks_to_ns(unsigned int ticks);
/arch/m68k/hp300/
Dtime.c53 unsigned short ticks; in hp300_gettimeoffset() local
61 ticks = INTVAL - ((msb2 << 8) | lsb); in hp300_gettimeoffset()
62 return ((USECS_PER_JIFFY * ticks) / INTVAL) * 1000; in hp300_gettimeoffset()
/arch/m68k/atari/
Datasound.c54 void atari_mksound (unsigned int hz, unsigned int ticks) in atari_mksound() argument
84 if (ticks) { in atari_mksound()
86 int length = (ticks * PSG_ENV_FREQ_10) / HZ / 10; in atari_mksound()
Dtime.c47 u32 ticks, offset = 0; in atari_gettimeoffset() local
50 ticks = st_mfp.tim_dt_c; in atari_gettimeoffset()
52 if (ticks > INT_TICKS - INT_TICKS / 50) in atari_gettimeoffset()
57 ticks = INT_TICKS - ticks; in atari_gettimeoffset()
58 ticks = ticks * 10000L / INT_TICKS; in atari_gettimeoffset()
60 return (ticks + offset) * 1000; in atari_gettimeoffset()
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.c101 extern void amiga_mksound(unsigned int count, unsigned int ticks);
500 u32 ticks, offset = 0; in amiga_gettimeoffset() local
512 ticks = hi << 8 | lo; in amiga_gettimeoffset()
514 if (ticks > jiffy_ticks / 2) in amiga_gettimeoffset()
519 ticks = jiffy_ticks - ticks; in amiga_gettimeoffset()
520 ticks = (10000 * ticks) / jiffy_ticks; in amiga_gettimeoffset()
522 return (ticks + offset) * 1000; in amiga_gettimeoffset()
/arch/m68k/mac/
Dvia.c331 unsigned long ticks, offset = 0; in mac_gettimeoffset() local
334 ticks = via1[vT1CL] | (via1[vT1CH] << 8); in mac_gettimeoffset()
336 if (ticks > MAC_CLOCK_TICK - MAC_CLOCK_TICK / 50) in mac_gettimeoffset()
340 ticks = MAC_CLOCK_TICK - ticks; in mac_gettimeoffset()
341 ticks = ticks * 10000L / MAC_CLOCK_TICK; in mac_gettimeoffset()
343 return (ticks + offset) * 1000; in mac_gettimeoffset()
/arch/tile/kernel/
Dtime.c130 static int tile_timer_set_next_event(unsigned long ticks, in tile_timer_set_next_event() argument
133 BUG_ON(ticks > MAX_TICK); in tile_timer_set_next_event()
134 __insn_mtspr(SPR_TILE_TIMER_CONTROL, ticks); in tile_timer_set_next_event()
/arch/um/os-Linux/
Dtime.c27 int timer_one_shot(int ticks) in timer_one_shot() argument
29 unsigned long usec = ticks * UM_USEC_PER_SEC / UM_HZ; in timer_one_shot()
/arch/m68k/q40/
Dq40ints.c110 void q40_mksound(unsigned int hz, unsigned int ticks) in q40_mksound() argument
126 sound_ticks = ticks << 1; in q40_mksound()
/arch/mips/fw/cfe/
Dcfe_api_int.h88 s64 ticks; /* current time in ticks */ member
Dcfe_api.c295 xiocb.plist.xiocb_time.ticks = 0; in cfe_getticks()
299 return xiocb.plist.xiocb_time.ticks; in cfe_getticks()
/arch/x86/xen/
Dtime.c120 cputime_t ticks; in do_stolen_accounting() local
141 ticks = iter_div_u64_rem(stolen, NS_PER_TICK, &stolen); in do_stolen_accounting()
143 account_steal_ticks(ticks); in do_stolen_accounting()
/arch/s390/kernel/
Dtime.c306 unsigned long long delta, ticks; in adjust_time() local
311 delta = ticks = clock - old; in adjust_time()
312 delta = ticks = (delta < delay) ? 0 : delta - delay; in adjust_time()
313 delta -= do_div(ticks, CLK_TICKS_PER_JIFFY); in adjust_time()
314 adjust.offset = ticks * (1000000 / HZ); in adjust_time()
317 delta = ticks = old - clock; in adjust_time()
318 delta -= do_div(ticks, CLK_TICKS_PER_JIFFY); in adjust_time()
320 adjust.offset = -ticks * (1000000 / HZ); in adjust_time()
/arch/alpha/kernel/
Dosf_sys.c1221 unsigned long ticks; in SYSCALL_DEFINE2() local
1226 ticks = timeval_to_jiffies(&tmp); in SYSCALL_DEFINE2()
1228 ticks = schedule_timeout_interruptible(ticks); in SYSCALL_DEFINE2()
1231 jiffies_to_timeval(ticks, &tmp); in SYSCALL_DEFINE2()
/arch/sparc/kernel/
Dtime_64.c840 unsigned long ticks = tick_ops->get_tick(); in sched_clock() local
842 return (ticks * timer_ticks_per_nsec_quotient) in sched_clock()
/arch/ia64/kernel/
Dsmpboot.c496 int ticks; in decay() local
497 get_option (&str, &ticks); in decay()
/arch/um/include/shared/
Dos.h245 extern int timer_one_shot(int ticks);
/arch/cris/arch-v10/drivers/
DKconfig37 int "Receive flush timeout (ticks) "
41 Number of timer ticks between flush of receive fifo (1 tick = 10ms).
/arch/x86/kernel/
Dentry_64.S1275 * cannot get reschedule ticks.