Home
last modified time | relevance | path

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

123

/linux-2.4.37.9/init/
Dmain.c172 unsigned long ticks, loopbit; in calibrate_delay() local
180 ticks = jiffies; in calibrate_delay()
181 while (ticks == jiffies) in calibrate_delay()
184 ticks = jiffies; in calibrate_delay()
186 ticks = jiffies - ticks; in calibrate_delay()
187 if (ticks) in calibrate_delay()
197 ticks = jiffies; in calibrate_delay()
198 while (ticks == jiffies); in calibrate_delay()
199 ticks = jiffies; in calibrate_delay()
201 if (jiffies != ticks) /* longer than 1 tick */ in calibrate_delay()
/linux-2.4.37.9/arch/s390x/kernel/
Dtime.c128 __u32 ticks; in account_ticks() local
133 ticks = tmp / CLK_TICKS_PER_JIFFY + 1; in account_ticks()
135 CLK_TICKS_PER_JIFFY * (__u64) ticks; in account_ticks()
137 ticks = 2; in account_ticks()
140 ticks = 1; in account_ticks()
171 while (ticks--) in account_ticks()
174 while (ticks--) in account_ticks()
/linux-2.4.37.9/arch/mips/au1000/common/
Dpower.c99 void wakeup_counter0_set(int ticks);
460 unsigned long ticks, loopbit; in calibrate_delay() local
467 ticks = jiffies; in calibrate_delay()
468 while (ticks == jiffies) in calibrate_delay()
471 ticks = jiffies; in calibrate_delay()
473 ticks = jiffies - ticks; in calibrate_delay()
474 if (ticks) in calibrate_delay()
484 ticks = jiffies; in calibrate_delay()
485 while (ticks == jiffies); in calibrate_delay()
486 ticks = jiffies; in calibrate_delay()
[all …]
/linux-2.4.37.9/arch/s390/kernel/
Dtime.c164 __u32 ticks; in account_ticks() local
169 ticks = div64_32(tmp >> 1, CLK_TICKS_PER_JIFFY >> 1) + 1; in account_ticks()
171 CLK_TICKS_PER_JIFFY * (__u64) ticks; in account_ticks()
173 ticks = 2; in account_ticks()
176 ticks = 1; in account_ticks()
207 while (ticks--) in account_ticks()
210 while (ticks--) in account_ticks()
/linux-2.4.37.9/include/asm-arm/arch-mx1ads/
Dtime.h69 unsigned long ticks, status; in mx1ads_gettimeoffset() local
77 ticks = timer1->TimerCounter; in mx1ads_gettimeoffset()
83 ticks += TIMER_RELOAD; in mx1ads_gettimeoffset()
88 return TICKS2USECS(ticks); in mx1ads_gettimeoffset()
/linux-2.4.37.9/drivers/tc/
Dlk201.c240 static void lk201kd_mksound(unsigned int hz, unsigned int ticks) in lk201kd_mksound() argument
244 if (!ticks) in lk201kd_mksound()
251 ticks /= HZ / 32; in lk201kd_mksound()
252 if (ticks > 7) in lk201kd_mksound()
253 ticks = 7; in lk201kd_mksound()
254 ticks = 7 - ticks; in lk201kd_mksound()
258 if (info->hook->poll_tx_char(info, LK_PARAM_VOLUME(ticks))) in lk201kd_mksound()
/linux-2.4.37.9/kernel/
Dtimer.c523 static void update_wall_time(unsigned long ticks) in update_wall_time() argument
526 ticks--; in update_wall_time()
528 } while (ticks); in update_wall_time()
554 static inline void do_it_virt(struct task_struct * p, unsigned long ticks) in do_it_virt() argument
559 it_virt -= ticks; in do_it_virt()
648 static inline void calc_load(unsigned long ticks) in calc_load() argument
653 count -= ticks; in calc_load()
673 unsigned long ticks; in update_times() local
683 ticks = jiffies - wall_jiffies; in update_times()
684 if (ticks) { in update_times()
[all …]
/linux-2.4.37.9/arch/m68k/hp300/
Dtime.c52 unsigned short ticks; in hp300_gettimeoffset() local
60 ticks = INTVAL - ((msb2 << 8) | lsb); in hp300_gettimeoffset()
61 return (USECS_PER_JIFFY * ticks) / INTVAL; in hp300_gettimeoffset()
/linux-2.4.37.9/arch/m68k/atari/
Datasound.c53 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.c40 unsigned long ticks, offset = 0; in atari_gettimeoffset() local
43 ticks = mfp.tim_dt_c; in atari_gettimeoffset()
45 if (ticks > INT_TICKS - INT_TICKS / 50) in atari_gettimeoffset()
50 ticks = INT_TICKS - ticks; in atari_gettimeoffset()
51 ticks = ticks * 10000L / INT_TICKS; in atari_gettimeoffset()
53 return ticks + offset; in atari_gettimeoffset()
/linux-2.4.37.9/drivers/acpi/hardware/
Dhwtimer.c99 u32 *ticks) in acpi_get_timer() argument
107 if (!ticks) { in acpi_get_timer()
111 status = acpi_hw_low_level_read (32, ticks, &acpi_gbl_FADT->xpm_tmr_blk); in acpi_get_timer()
/linux-2.4.37.9/arch/m68k/mac/
Dvia.c323 unsigned long ticks, offset = 0; in mac_gettimeoffset() local
326 ticks = via1[vT1CL] | (via1[vT1CH] << 8); in mac_gettimeoffset()
328 if (ticks > MAC_CLOCK_TICK - MAC_CLOCK_TICK / 50) in mac_gettimeoffset()
332 ticks = MAC_CLOCK_TICK - ticks; in mac_gettimeoffset()
333 ticks = ticks * 10000L / MAC_CLOCK_TICK; in mac_gettimeoffset()
335 return ticks + offset; in mac_gettimeoffset()
/linux-2.4.37.9/arch/m68k/amiga/
Damisound.c67 void amiga_mksound( unsigned int hz, unsigned int ticks ) in amiga_mksound() argument
92 if (ticks) { in amiga_mksound()
93 sound_timer.expires = jiffies + ticks; in amiga_mksound()
Dconfig.c100 extern void amiga_mksound( unsigned int count, unsigned int ticks );
552 unsigned long ticks, offset = 0; in amiga_gettimeoffset() local
564 ticks = hi << 8 | lo; in amiga_gettimeoffset()
566 if (ticks > jiffy_ticks / 2) in amiga_gettimeoffset()
571 ticks = jiffy_ticks - ticks; in amiga_gettimeoffset()
572 ticks = (10000 * ticks) / jiffy_ticks; in amiga_gettimeoffset()
574 return ticks + offset; in amiga_gettimeoffset()
/linux-2.4.37.9/fs/xfs/linux-2.4/
Dtime.h40 static inline void delay(long ticks) in delay() argument
43 schedule_timeout(ticks); in delay()
/linux-2.4.37.9/arch/m68k/apollo/
Ddn_ints.c129 void dn_mksound( unsigned int count, unsigned int ticks ) { in dn_mksound() argument
136 if (ticks) { in dn_mksound()
137 sound_timer.expires = jiffies + ticks; in dn_mksound()
/linux-2.4.37.9/net/bridge/
Dbr_stp_bpdu.c63 __u16 ticks; in br_set_ticks() local
65 ticks = JIFFIES_TO_TICKS(jiff); in br_set_ticks()
66 dest[0] = (ticks >> 8) & 0xFF; in br_set_ticks()
67 dest[1] = ticks & 0xFF; in br_set_ticks()
/linux-2.4.37.9/arch/mips/baget/
Dtime.c36 static unsigned long long ticks, valid_ticks; in timer_intr_valid() local
38 if (ticks++ * FREQ_DEN >= valid_ticks * FREQ_NOM) { in timer_intr_valid()
/linux-2.4.37.9/drivers/scsi/sym53c8xx_2/
Dsym_misc.c83 void sym_timeout_ccb(hcb_p np, ccb_p cp, u_int ticks) in sym_timeout_ccb() argument
86 cp->tmo_clock = np->tmo_clock + ticks; in sym_timeout_ccb()
87 if (!ticks) { in sym_timeout_ccb()
93 if (ticks >= (1<<(i+1))) in sym_timeout_ccb()
/linux-2.4.37.9/arch/ppc/amiga/
Dconfig.c98 extern void amiga_mksound( unsigned int count, unsigned int ticks );
537 unsigned long ticks, offset = 0; in amiga_gettimeoffset() local
549 ticks = hi << 8 | lo; in amiga_gettimeoffset()
551 if (ticks > jiffy_ticks / 2) in amiga_gettimeoffset()
556 ticks = jiffy_ticks - ticks; in amiga_gettimeoffset()
557 ticks = (10000 * ticks) / jiffy_ticks; in amiga_gettimeoffset()
559 return ticks + offset; in amiga_gettimeoffset()
/linux-2.4.37.9/drivers/char/
Dvt.c107 _kd_mksound(unsigned int hz, unsigned int ticks) in _kd_mksound() argument
128 if (ticks) { in _kd_mksound()
129 sound_timer.expires = jiffies+ticks; in _kd_mksound()
141 _kd_mksound(unsigned int hz, unsigned int ticks) in _kd_mksound() argument
152 void (*kd_mksound)(unsigned int hz, unsigned int ticks) = _kd_mksound;
469 unsigned int ticks, count; in vt_ioctl() local
475 ticks = HZ * ((arg >> 16) & 0xffff) / 1000; in vt_ioctl()
476 count = ticks ? (arg & 0xffff) : 0; in vt_ioctl()
479 kd_mksound(count, ticks); in vt_ioctl()
/linux-2.4.37.9/drivers/sbus/char/
Dpcikbd.c618 static void pcikbd_kd_mksound(unsigned int hz, unsigned int ticks) in pcikbd_kd_mksound() argument
630 if (ticks) { in pcikbd_kd_mksound()
631 sound_timer.expires = jiffies + ticks; in pcikbd_kd_mksound()
651 static void isa_kd_mksound(unsigned int hz, unsigned int ticks) in isa_kd_mksound() argument
672 if (ticks) { in isa_kd_mksound()
673 sound_timer.expires = jiffies+ticks; in isa_kd_mksound()
685 static void nop_kd_mksound(unsigned int hz, unsigned int ticks) in nop_kd_mksound() argument
689 extern void (*kd_mksound)(unsigned int hz, unsigned int ticks);
/linux-2.4.37.9/arch/sparc64/kernel/
Dtime.c456 unsigned long ticks, pstate; in timer_interrupt() local
476 ticks = tick_ops->get_tick(); in timer_interrupt()
482 } while (time_after_eq(ticks, timer_tick_compare)); in timer_interrupt()
994 unsigned long ticks = tick_ops->get_tick(); in do_gettimeoffset() local
996 ticks += timer_tick_offset; in do_gettimeoffset()
997 ticks -= timer_tick_compare; in do_gettimeoffset()
999 return (ticks * timer_ticks_per_usec_quotient) >> 30UL; in do_gettimeoffset()
/linux-2.4.37.9/drivers/sound/
Dvidc.c83 static void (*old_mksound)(unsigned int hz, unsigned int ticks);
84 extern void (*kd_mksound)(unsigned int hz, unsigned int ticks);
89 vidc_mksound(unsigned int hz, unsigned int ticks) in vidc_mksound() argument
/linux-2.4.37.9/arch/alpha/kernel/
Dosf_sys.c1235 unsigned long ticks; in osf_usleep_thread() local
1240 ticks = tmp.tv_usec; in osf_usleep_thread()
1241 ticks = (ticks + (1000000 / HZ) - 1) / (1000000 / HZ); in osf_usleep_thread()
1242 ticks += tmp.tv_sec * HZ; in osf_usleep_thread()
1245 ticks = schedule_timeout(ticks); in osf_usleep_thread()
1248 tmp.tv_sec = ticks / HZ; in osf_usleep_thread()
1249 tmp.tv_usec = ticks % HZ; in osf_usleep_thread()

123