Home
last modified time | relevance | path

Searched refs:delta (Results 1 – 25 of 72) sorted by relevance

123

/arch/x86/kernel/
Dpvclock.c40 static inline u64 scale_delta(u64 delta, u32 mul_frac, int shift) in scale_delta() argument
48 delta >>= -shift; in scale_delta()
50 delta <<= shift; in scale_delta()
62 : "a" ((u32)delta), "1" ((u32)(delta >> 32)), "2" (mul_frac) ); in scale_delta()
66 : "=a" (product) : "0" (delta), "d" ((u64)mul_frac) ); in scale_delta()
76 u64 delta = native_read_tsc() - shadow->tsc_timestamp; in pvclock_get_nsec_offset() local
77 return scale_delta(delta, shadow->tsc_to_nsec_mul, shadow->tsc_shift); in pvclock_get_nsec_offset()
134 u64 delta; in pvclock_read_wallclock() local
146 delta = pvclock_clocksource_read(vcpu_time); /* time since system boot */ in pvclock_read_wallclock()
147 delta += now.tv_sec * (u64)NSEC_PER_SEC + now.tv_nsec; in pvclock_read_wallclock()
[all …]
Dtsc.c191 u64 tsc, t1, t2, delta; in pit_calibrate_tsc() local
214 delta = t2 - tsc; in pit_calibrate_tsc()
216 if ((unsigned long) delta < tscmin) in pit_calibrate_tsc()
217 tscmin = (unsigned int) delta; in pit_calibrate_tsc()
218 if ((unsigned long) delta > tscmax) in pit_calibrate_tsc()
219 tscmax = (unsigned int) delta; in pit_calibrate_tsc()
236 delta = t2 - t1; in pit_calibrate_tsc()
237 do_div(delta, ms); in pit_calibrate_tsc()
238 return delta; in pit_calibrate_tsc()
310 u64 tsc, delta; in quick_pit_calibrate() local
[all …]
Dhpet.c178 static int hpet_legacy_next_event(unsigned long delta,
263 uint64_t delta; in hpet_set_mode() local
267 delta = ((uint64_t)(NSEC_PER_SEC/HZ)) * evt->mult; in hpet_set_mode()
268 delta >>= evt->shift; in hpet_set_mode()
270 cmp = now + (unsigned long) delta; in hpet_set_mode()
284 hpet_writel((unsigned long) delta, HPET_Tn_CMP(timer)); in hpet_set_mode()
315 static int hpet_next_event(unsigned long delta, in hpet_next_event() argument
321 cnt += (u32) delta; in hpet_next_event()
340 static int hpet_legacy_next_event(unsigned long delta, in hpet_legacy_next_event() argument
343 return hpet_next_event(delta, evt, 0); in hpet_legacy_next_event()
[all …]
Dparavirt.c78 u32 delta; member
87 unsigned long delta = (unsigned long)target - (addr+5); in paravirt_patch_call() local
95 b->delta = delta; in paravirt_patch_call()
105 unsigned long delta = (unsigned long)target - (addr+5); in paravirt_patch_jmp() local
111 b->delta = delta; in paravirt_patch_jmp()
/arch/x86/boot/
Dstring.c21 int delta = 0; in strcmp() local
24 delta = *s2 - *s1; in strcmp()
25 if (delta) in strcmp()
26 return delta; in strcmp()
/arch/mips/kernel/
Dcevt-r4k.c24 static int mips_next_event(unsigned long delta, in mips_next_event() argument
31 cnt += delta; in mips_next_event()
120 unsigned int delta; in c0_compare_int_usable() local
133 for (delta = 0x10; delta <= 0x400000; delta <<= 1) { in c0_compare_int_usable()
135 cnt += delta; in c0_compare_int_usable()
/arch/mips/mach-goldfish/
Dgoldfish-time.c75 void save_time_delta(struct timespec *delta, struct timespec *rtc) in save_time_delta() argument
77 set_normalized_timespec(delta, in save_time_delta()
88 void restore_time_delta(struct timespec *delta, struct timespec *rtc) in restore_time_delta() argument
93 delta->tv_sec + rtc->tv_sec, in restore_time_delta()
94 delta->tv_nsec + rtc->tv_nsec); in restore_time_delta()
/arch/xtensa/kernel/
Dtime.c95 unsigned long delta; in do_settimeofday() local
108 delta = CCOUNT_PER_JIFFY; in do_settimeofday()
109 delta += get_ccount() - get_linux_timer(); in do_settimeofday()
110 nsec -= delta * NSEC_PER_CCOUNT; in do_settimeofday()
129 unsigned long volatile sec, usec, delta, seq; in do_gettimeofday() local
137 delta = get_linux_timer() - get_ccount(); in do_gettimeofday()
141 usec += (((unsigned long) CCOUNT_PER_JIFFY - delta) in do_gettimeofday()
/arch/ia64/mm/
Dextable.c30 u64 delta = (u64) r - (u64) l; in swap_ex() local
33 l->addr = r->addr + delta; in swap_ex()
34 l->cont = r->cont + delta; in swap_ex()
35 r->addr = tmp.addr - delta; in swap_ex()
36 r->cont = tmp.cont - delta; in swap_ex()
/arch/x86/xen/
Dspinlock.c63 static void __spin_time_accum(u64 delta, u32 *array) in __spin_time_accum() argument
65 unsigned index = ilog2(delta); in __spin_time_accum()
77 u32 delta = xen_clocksource_read() - start; in spin_time_accum_spinning() local
79 __spin_time_accum(delta, spinlock_stats.histo_spin_spinning); in spin_time_accum_spinning()
80 spinlock_stats.time_spinning += delta; in spin_time_accum_spinning()
85 u32 delta = xen_clocksource_read() - start; in spin_time_accum_total() local
87 __spin_time_accum(delta, spinlock_stats.histo_spin_total); in spin_time_accum_total()
88 spinlock_stats.time_total += delta; in spin_time_accum_total()
93 u32 delta = xen_clocksource_read() - start; in spin_time_accum_blocked() local
95 __spin_time_accum(delta, spinlock_stats.histo_spin_blocked); in spin_time_accum_blocked()
[all …]
/arch/ia64/include/asm/
Drse.h59 long delta = ia64_rse_slot_num(addr) + num_regs; in ia64_rse_skip_regs() local
62 delta -= 0x3e; in ia64_rse_skip_regs()
63 return addr + num_regs + delta/0x3f; in ia64_rse_skip_regs()
Drwsem.h174 #define rwsem_atomic_add(delta, sem) atomic64_add(delta, (atomic64_t *)(&(sem)->count)) argument
175 #define rwsem_atomic_update(delta, sem) atomic64_add_return(delta, (atomic64_t *)(&(sem)->count)) argument
/arch/sparc/include/asm/
Drwsem.h67 static inline int rwsem_atomic_update(int delta, struct rw_semaphore *sem) in rwsem_atomic_update() argument
69 return atomic_add_return(delta, (atomic_t *)(&sem->count)); in rwsem_atomic_update()
72 static inline void rwsem_atomic_add(int delta, struct rw_semaphore *sem) in rwsem_atomic_add() argument
74 atomic_add(delta, (atomic_t *)(&sem->count)); in rwsem_atomic_add()
Dpcr.h39 u32 delta = local_cpu_data().clock_tick / (nmi_hz << picl_shift); in picl_value() local
41 return ((u64)((0 - delta) & 0xffffffff)) << 32; in picl_value()
/arch/powerpc/platforms/powermac/
Dtime.c71 s32 delta = 0; in pmac_time_init() local
75 delta = ((s32)pmac_xpram_read(PMAC_XPRAM_MACHINE_LOC + 0x9)) << 16; in pmac_time_init()
76 delta |= ((s32)pmac_xpram_read(PMAC_XPRAM_MACHINE_LOC + 0xa)) << 8; in pmac_time_init()
77 delta |= pmac_xpram_read(PMAC_XPRAM_MACHINE_LOC + 0xb); in pmac_time_init()
78 if (delta & 0x00800000UL) in pmac_time_init()
79 delta |= 0xFF000000UL; in pmac_time_init()
81 printk("GMT Delta read from XPRAM: %d minutes, DST: %s\n", delta/60, in pmac_time_init()
84 return delta; in pmac_time_init()
/arch/x86/include/asm/
Drwsem.h238 static inline void rwsem_atomic_add(int delta, struct rw_semaphore *sem) in rwsem_atomic_add() argument
242 : "ir" (delta)); in rwsem_atomic_add()
248 static inline int rwsem_atomic_update(int delta, struct rw_semaphore *sem) in rwsem_atomic_update() argument
250 int tmp = delta; in rwsem_atomic_update()
256 return tmp + delta; in rwsem_atomic_update()
/arch/xtensa/include/asm/
Drwsem.h136 static inline void rwsem_atomic_add(int delta, struct rw_semaphore *sem) in rwsem_atomic_add() argument
138 atomic_add(delta, (atomic_t *)(&sem->count)); in rwsem_atomic_add()
157 static inline int rwsem_atomic_update(int delta, struct rw_semaphore *sem) in rwsem_atomic_update() argument
160 return atomic_add_return(delta, (atomic_t *)(&sem->count)); in rwsem_atomic_update()
/arch/arm/include/asm/mach/
Dtime.h54 extern void save_time_delta(struct timespec *delta, struct timespec *rtc);
55 extern void restore_time_delta(struct timespec *delta, struct timespec *rtc);
/arch/powerpc/include/asm/
Drwsem.h142 static inline void rwsem_atomic_add(int delta, struct rw_semaphore *sem) in rwsem_atomic_add() argument
144 atomic_add(delta, (atomic_t *)(&sem->count)); in rwsem_atomic_add()
162 static inline int rwsem_atomic_update(int delta, struct rw_semaphore *sem) in rwsem_atomic_update() argument
164 return atomic_add_return(delta, (atomic_t *)(&sem->count)); in rwsem_atomic_update()
Dtime.h191 int delta = get_rtcl() - (unsigned int) tstamp; in tb_ticks_since() local
192 return delta < 0 ? delta + 1000000000 : delta; in tb_ticks_since()
/arch/sh/include/asm/
Drwsem.h150 static inline void rwsem_atomic_add(int delta, struct rw_semaphore *sem) in rwsem_atomic_add() argument
152 atomic_add(delta, (atomic_t *)(&sem->count)); in rwsem_atomic_add()
176 static inline int rwsem_atomic_update(int delta, struct rw_semaphore *sem) in rwsem_atomic_update() argument
179 return atomic_add_return(delta, (atomic_t *)(&sem->count)); in rwsem_atomic_update()
/arch/mips/alchemy/common/
Dtime.c60 static int au1x_rtcmatch2_set_next_event(unsigned long delta, in au1x_rtcmatch2_set_next_event() argument
63 delta += au_readl(SYS_RTCREAD); in au1x_rtcmatch2_set_next_event()
67 au_writel(delta, SYS_RTCMATCH2); in au1x_rtcmatch2_set_next_event()
/arch/alpha/boot/tools/
Dobjstrip.c179 unsigned long delta = e_entry - elf_phdr->p_vaddr; in main() local
180 offset += delta; in main()
181 mem_size -= delta; in main()
182 fil_size -= delta; in main()
183 elf_phdr->p_vaddr += delta; in main()
/arch/s390/kernel/
Dtime.c120 static void fixup_clock_comparator(unsigned long long delta) in fixup_clock_comparator() argument
125 S390_lowcore.clock_comparator += delta; in fixup_clock_comparator()
129 static int s390_next_event(unsigned long delta, in s390_next_event() argument
132 S390_lowcore.clock_comparator = get_clock() + delta; in s390_next_event()
307 unsigned long long delta, ticks; in adjust_time() local
312 delta = ticks = clock - old; in adjust_time()
313 delta = ticks = (delta < delay) ? 0 : delta - delay; in adjust_time()
314 delta -= do_div(ticks, CLK_TICKS_PER_JIFFY); in adjust_time()
318 delta = ticks = old - clock; in adjust_time()
319 delta -= do_div(ticks, CLK_TICKS_PER_JIFFY); in adjust_time()
[all …]
/arch/s390/include/asm/
Drwsem.h331 static inline void rwsem_atomic_add(long delta, struct rw_semaphore *sem) in rwsem_atomic_add() argument
350 : "a" (&sem->count), "m" (sem->count), "d" (delta) in rwsem_atomic_add()
357 static inline long rwsem_atomic_update(long delta, struct rw_semaphore *sem) in rwsem_atomic_update() argument
376 : "a" (&sem->count), "m" (sem->count), "d" (delta) in rwsem_atomic_update()

123