Home
last modified time | relevance | path

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

12345

/arch/x86/include/asm/
Dpvclock.h43 static __always_inline u64 pvclock_scale_delta(u64 delta, u32 mul_frac, int shift) in pvclock_scale_delta() argument
53 delta >>= -shift; in pvclock_scale_delta()
55 delta <<= shift; in pvclock_scale_delta()
67 : "a" ((u32)delta), "1" ((u32)(delta >> 32)), "2" (mul_frac) ); in pvclock_scale_delta()
73 : "0"(delta), in pvclock_scale_delta()
85 u64 delta = tsc - src->tsc_timestamp; in __pvclock_read_cycles() local
86 u64 offset = pvclock_scale_delta(delta, src->tsc_to_system_mul, in __pvclock_read_cycles()
Dextable.h30 #define swap_ex_entry_fixup(a, b, tmp, delta) \ argument
32 (a)->fixup = (b)->fixup + (delta); \
33 (b)->fixup = (tmp).fixup - (delta); \
/arch/powerpc/platforms/powermac/
Dtime.c69 s32 delta = 0; in pmac_time_init() local
73 delta = ((s32)pmac_xpram_read(PMAC_XPRAM_MACHINE_LOC + 0x9)) << 16; in pmac_time_init()
74 delta |= ((s32)pmac_xpram_read(PMAC_XPRAM_MACHINE_LOC + 0xa)) << 8; in pmac_time_init()
75 delta |= pmac_xpram_read(PMAC_XPRAM_MACHINE_LOC + 0xb); in pmac_time_init()
76 if (delta & 0x00800000UL) in pmac_time_init()
77 delta |= 0xFF000000UL; in pmac_time_init()
79 printk("GMT Delta read from XPRAM: %d minutes, DST: %s\n", delta/60, in pmac_time_init()
82 return delta; in pmac_time_init()
/arch/s390/kernel/
Dvtime.c69 u64 delta, fac, mult, div; in update_mt_scaling() local
77 delta = cycles_new[i] - cycles_old[i]; in update_mt_scaling()
78 div += delta; in update_mt_scaling()
80 mult += delta * fac; in update_mt_scaling()
96 u64 delta; in update_tsk_timer() local
98 delta = new - *tsk_vtime; in update_tsk_timer()
100 return delta; in update_tsk_timer()
237 u64 delta = vtime_delta(); in vtime_account_kernel() local
240 S390_lowcore.guest_timer += delta; in vtime_account_kernel()
242 S390_lowcore.system_timer += delta; in vtime_account_kernel()
[all …]
Dtime.c139 static int s390_next_event(unsigned long delta, in s390_next_event() argument
142 S390_lowcore.clock_comparator = get_tod_clock() + delta; in s390_next_event()
206 u64 delta; in read_persistent_clock64() local
208 delta = initial_leap_seconds + TOD_UNIX_EPOCH; in read_persistent_clock64()
210 clk.eitod -= delta; in read_persistent_clock64()
219 u64 delta; in read_persistent_wall_and_boot_offset() local
221 delta = initial_leap_seconds + TOD_UNIX_EPOCH; in read_persistent_wall_and_boot_offset()
223 clk.eitod -= delta; in read_persistent_wall_and_boot_offset()
372 static void clock_sync_global(long delta) in clock_sync_global() argument
379 tod_clock_base.eitod += delta; in clock_sync_global()
[all …]
/arch/powerpc/perf/
D8xx-pmu.c122 s64 prev, val = 0, delta = 0; in mpc8xx_pmu_read() local
132 delta = 16 * (val - prev); in mpc8xx_pmu_read()
136 delta = prev - val; in mpc8xx_pmu_read()
137 if (delta < 0) in mpc8xx_pmu_read()
138 delta += 0x1000000000000LL; in mpc8xx_pmu_read()
142 delta = (s64)((s32)val - (s32)prev); in mpc8xx_pmu_read()
146 delta = (s64)((s32)val - (s32)prev); in mpc8xx_pmu_read()
151 local64_add(delta, &event->count); in mpc8xx_pmu_read()
/arch/x86/kernel/
Dtsc.c427 u64 tsc, t1, t2, delta; in pit_calibrate_tsc() local
464 delta = t2 - tsc; in pit_calibrate_tsc()
466 if ((unsigned long) delta < tscmin) in pit_calibrate_tsc()
467 tscmin = (unsigned int) delta; in pit_calibrate_tsc()
468 if ((unsigned long) delta > tscmax) in pit_calibrate_tsc()
469 tscmax = (unsigned int) delta; in pit_calibrate_tsc()
486 delta = t2 - t1; in pit_calibrate_tsc()
487 do_div(delta, ms); in pit_calibrate_tsc()
488 return delta; in pit_calibrate_tsc()
566 u64 tsc, delta; in quick_pit_calibrate() local
[all …]
Dpvclock.c128 u64 delta; in pvclock_read_wallclock() local
147 delta = pvclock_clocksource_read(vcpu_time); /* time since system boot */ in pvclock_read_wallclock()
148 delta += now.tv_sec * NSEC_PER_SEC + now.tv_nsec; in pvclock_read_wallclock()
150 now.tv_nsec = do_div(delta, NSEC_PER_SEC); in pvclock_read_wallclock()
151 now.tv_sec = delta; in pvclock_read_wallclock()
/arch/ia64/include/uapi/asm/
Drse.h60 long delta = ia64_rse_slot_num(addr) + num_regs; in ia64_rse_skip_regs() local
63 delta -= 0x3e; in ia64_rse_skip_regs()
64 return addr + num_regs + delta/0x3f; in ia64_rse_skip_regs()
/arch/ia64/kernel/
Dtime.c72 u64 delta; in vtime_flush() local
84 delta = cycle_to_nsec(ti->stime); in vtime_flush()
85 account_system_index_time(tsk, delta, CPUTIME_SYSTEM); in vtime_flush()
89 delta = cycle_to_nsec(ti->hardirq_time); in vtime_flush()
90 account_system_index_time(tsk, delta, CPUTIME_IRQ); in vtime_flush()
94 delta = cycle_to_nsec(ti->softirq_time); in vtime_flush()
95 account_system_index_time(tsk, delta, CPUTIME_SOFTIRQ); in vtime_flush()
230 unsigned long shift = 0, delta; in ia64_cpu_local_tick() local
235 delta = local_cpu_data->itm_delta; in ia64_cpu_local_tick()
242 shift = (2*(cpu - hi) + 1) * delta/hi/2; in ia64_cpu_local_tick()
[all …]
/arch/arm64/include/asm/
Dextable.h26 #define swap_ex_entry_fixup(a, b, tmp, delta) \ argument
28 (a)->fixup = (b)->fixup + (delta); \
29 (b)->fixup = (tmp).fixup - (delta); \
/arch/loongarch/include/asm/
Dextable.h25 #define swap_ex_entry_fixup(a, b, tmp, delta) \ argument
27 (a)->fixup = (b)->fixup + (delta); \
28 (b)->fixup = (tmp).fixup - (delta); \
/arch/parisc/include/asm/
Dextable.h55 int delta) in swap_ex_entry_fixup() argument
57 a->fixup = b->fixup + delta; in swap_ex_entry_fixup()
58 b->fixup = tmp.fixup - delta; in swap_ex_entry_fixup()
/arch/x86/events/amd/
Dpower.c47 u64 delta, tdelta; in event_update() local
59 delta = max_cu_acc_power + new_pwr_acc; in event_update()
60 delta -= prev_pwr_acc; in event_update()
62 delta = new_pwr_acc - prev_pwr_acc; in event_update()
64 delta *= cpu_pwr_sample_ratio * 1000; in event_update()
67 do_div(delta, tdelta); in event_update()
68 local64_add(delta, &event->count); in event_update()
/arch/mips/kernel/
Dcevt-r4k.c19 static int mips_next_event(unsigned long delta, in mips_next_event() argument
26 cnt += delta; in mips_next_event()
195 unsigned int delta; in c0_compare_int_usable() local
212 for (delta = 0x10; delta <= 0x400000; delta <<= 1) { in c0_compare_int_usable()
214 cnt += delta; in c0_compare_int_usable()
/arch/riscv/include/asm/
Dextable.h25 #define swap_ex_entry_fixup(a, b, tmp, delta) \ argument
27 (a)->fixup = (b)->fixup + (delta); \
28 (b)->fixup = (tmp).fixup - (delta); \
/arch/s390/include/asm/
Dextable.h46 int delta) in swap_ex_entry_fixup() argument
48 a->fixup = b->fixup + delta; in swap_ex_entry_fixup()
49 b->fixup = tmp.fixup - delta; in swap_ex_entry_fixup()
/arch/openrisc/kernel/
Dtime.c37 inline void openrisc_timer_set_next(unsigned long delta) in openrisc_timer_set_next() argument
46 c += delta; in openrisc_timer_set_next()
55 static int openrisc_timer_set_next_event(unsigned long delta, in openrisc_timer_set_next_event() argument
58 openrisc_timer_set_next(delta); in openrisc_timer_set_next_event()
/arch/x86/boot/compressed/
Dmisc.c189 unsigned long delta, map, ptr; in handle_relocations() local
197 delta = min_addr - LOAD_PHYSICAL_ADDR; in handle_relocations()
206 map = delta - __START_KERNEL_map; in handle_relocations()
214 delta = virt_addr - LOAD_PHYSICAL_ADDR; in handle_relocations()
216 if (!delta) { in handle_relocations()
249 *(uint32_t *)ptr += delta; in handle_relocations()
260 *(int32_t *)ptr -= delta; in handle_relocations()
270 *(uint64_t *)ptr += delta; in handle_relocations()
/arch/sparc/kernel/
Dpcr.c96 u32 delta = local_cpu_data().clock_tick / nmi_hz; in direct_picl_value() local
98 return ((u64)((0 - delta) & 0xffffffff)) << 32; in direct_picl_value()
126 u32 delta = local_cpu_data().clock_tick / (nmi_hz << 2); in n2_picl_value() local
128 return ((u64)((0 - delta) & 0xffffffff)) << 32; in n2_picl_value()
178 u32 delta = local_cpu_data().clock_tick / (nmi_hz << 2); in n4_picl_value() local
180 return ((u64)((0 - delta) & 0xffffffff)); in n4_picl_value()
/arch/s390/lib/
Ddelay.c24 static void delay_loop(unsigned long delta) in delay_loop() argument
28 end = get_tod_clock_monotonic() + delta; in delay_loop()
/arch/powerpc/platforms/512x/
Dmpc512x_shared.c60 unsigned long offset, want, got, delta; in mpc512x_set_pixel_clock() local
127 delta = abs(pixclock - got); in mpc512x_set_pixel_clock()
128 if (delta < epsilon) in mpc512x_set_pixel_clock()
136 delta = abs(pixclock - got); in mpc512x_set_pixel_clock()
137 if (delta < epsilon) in mpc512x_set_pixel_clock()
143 pixclock, got, delta, epsilon); in mpc512x_set_pixel_clock()
157 delta = abs(pixclock - got); in mpc512x_set_pixel_clock()
159 pixclock, got, delta, epsilon); in mpc512x_set_pixel_clock()
/arch/arm/mach-omap1/
DMakefile35 obj-$(CONFIG_MACH_AMS_DELTA) += board-ams-delta.o ams-delta-fiq.o \
36 ams-delta-fiq-handler.o
/arch/x86/events/
Dmsr.c244 s64 delta; in msr_event_update() local
252 delta = now - prev; in msr_event_update()
254 delta = sign_extend64(delta, 31); in msr_event_update()
255 local64_add(delta, &event->count); in msr_event_update()
261 local64_add(delta, &event->count); in msr_event_update()
/arch/mips/kvm/
Demulate.c331 u64 delta; in kvm_mips_ktime_to_count() local
334 delta = now_ns + vcpu->arch.count_dyn_bias; in kvm_mips_ktime_to_count()
336 if (delta >= vcpu->arch.count_period) { in kvm_mips_ktime_to_count()
341 delta = now_ns + vcpu->arch.count_dyn_bias; in kvm_mips_ktime_to_count()
354 return div_u64(delta * vcpu->arch.count_hz, NSEC_PER_SEC); in kvm_mips_ktime_to_count()
507 u64 delta; in kvm_mips_resume_hrtimer() local
512 delta = (u64)(u32)(compare - count - 1) + 1; in kvm_mips_resume_hrtimer()
513 delta = div_u64(delta * NSEC_PER_SEC, vcpu->arch.count_hz); in kvm_mips_resume_hrtimer()
514 expire = ktime_add_ns(now, delta); in kvm_mips_resume_hrtimer()
548 u64 delta; in kvm_mips_restore_hrtimer() local
[all …]

12345