Home
last modified time | relevance | path

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

12345

/arch/x86/include/asm/
Dpvclock.h50 static inline u64 pvclock_scale_delta(u64 delta, u32 mul_frac, int shift) in pvclock_scale_delta() argument
60 delta >>= -shift; in pvclock_scale_delta()
62 delta <<= shift; in pvclock_scale_delta()
74 : "a" ((u32)delta), "1" ((u32)(delta >> 32)), "2" (mul_frac) ); in pvclock_scale_delta()
80 : "0"(delta), in pvclock_scale_delta()
93 u64 delta = tsc - src->tsc_timestamp; in __pvclock_read_cycles() local
94 cycle_t offset = pvclock_scale_delta(delta, src->tsc_to_system_mul, in __pvclock_read_cycles()
Dextable.h23 #define swap_ex_entry_fixup(a, b, tmp, delta) \ argument
25 (a)->fixup = (b)->fixup + (delta); \
26 (b)->fixup = (tmp).fixup - (delta); \
27 (a)->handler = (b)->handler + (delta); \
28 (b)->handler = (tmp).handler - (delta); \
/arch/x86/kernel/
Dtsc.c455 u64 tsc, t1, t2, delta; in pit_calibrate_tsc() local
478 delta = t2 - tsc; in pit_calibrate_tsc()
480 if ((unsigned long) delta < tscmin) in pit_calibrate_tsc()
481 tscmin = (unsigned int) delta; in pit_calibrate_tsc()
482 if ((unsigned long) delta > tscmax) in pit_calibrate_tsc()
483 tscmax = (unsigned int) delta; in pit_calibrate_tsc()
500 delta = t2 - t1; in pit_calibrate_tsc()
501 do_div(delta, ms); in pit_calibrate_tsc()
502 return delta; in pit_calibrate_tsc()
580 u64 tsc, delta; in quick_pit_calibrate() local
[all …]
Dpvclock.c125 u64 delta; in pvclock_read_wallclock() local
137 delta = pvclock_clocksource_read(vcpu_time); /* time since system boot */ in pvclock_read_wallclock()
138 delta += now.tv_sec * (u64)NSEC_PER_SEC + now.tv_nsec; in pvclock_read_wallclock()
140 now.tv_nsec = do_div(delta, NSEC_PER_SEC); in pvclock_read_wallclock()
141 now.tv_sec = delta; in pvclock_read_wallclock()
Dnmi.c132 u64 delta; in nmi_handle() local
134 delta = sched_clock(); in nmi_handle()
137 delta = sched_clock() - delta; in nmi_handle()
138 trace_nmi_handler(a->handler, (int)delta, thishandled); in nmi_handle()
140 if (delta < nmi_longest_ns || delta < a->max_duration) in nmi_handle()
143 a->max_duration = delta; in nmi_handle()
/arch/arm/mach-s3c64xx/include/mach/
Dpm-core.h77 u32 delta; in s3c_pm_arch_update_uart() local
91 delta = ucon_clk ^ save_clk; in s3c_pm_arch_update_uart()
98 delta & S3C6400_UCON_PCLK2) { in s3c_pm_arch_update_uart()
100 } else if (delta == S3C6400_UCON_PCLK2) { in s3c_pm_arch_update_uart()
/arch/ia64/include/uapi/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()
/arch/mips/kernel/
Dcevt-r4k.c18 static int mips_next_event(unsigned long delta, in mips_next_event() argument
25 cnt += delta; in mips_next_event()
194 unsigned int delta; in c0_compare_int_usable() local
215 for (delta = 0x10; delta <= 0x400000; delta <<= 1) { in c0_compare_int_usable()
217 cnt += delta; in c0_compare_int_usable()
/arch/tile/gxio/
Ddma_queue.c72 uint64_t delta; in __gxio_dma_queue_update_credits() local
96 delta = (count - orig_hw_complete_count) & 0xffff; in __gxio_dma_queue_update_credits()
97 if (delta == 0) in __gxio_dma_queue_update_credits()
106 new_count = orig_hw_complete_count + delta; in __gxio_dma_queue_update_credits()
117 (delta << DMA_QUEUE_CREDIT_SHIFT)); in __gxio_dma_queue_update_credits()
/arch/powerpc/platforms/powermac/
Dtime.c70 s32 delta = 0; in pmac_time_init() local
74 delta = ((s32)pmac_xpram_read(PMAC_XPRAM_MACHINE_LOC + 0x9)) << 16; in pmac_time_init()
75 delta |= ((s32)pmac_xpram_read(PMAC_XPRAM_MACHINE_LOC + 0xa)) << 8; in pmac_time_init()
76 delta |= pmac_xpram_read(PMAC_XPRAM_MACHINE_LOC + 0xb); in pmac_time_init()
77 if (delta & 0x00800000UL) in pmac_time_init()
78 delta |= 0xFF000000UL; in pmac_time_init()
80 printk("GMT Delta read from XPRAM: %d minutes, DST: %s\n", delta/60, in pmac_time_init()
83 return delta; in pmac_time_init()
/arch/powerpc/platforms/embedded6xx/
Dwii.c101 unsigned long delta, size, bl; in wii_mmu_mapin_mem2() local
105 delta = wii_hole_start + wii_hole_size; in wii_mmu_mapin_mem2()
106 size = top - delta; in wii_mmu_mapin_mem2()
111 setbat(4, PAGE_OFFSET+delta, delta, bl, PAGE_KERNEL_X); in wii_mmu_mapin_mem2()
112 return delta + bl; in wii_mmu_mapin_mem2()
/arch/x86/crypto/
Dcrc32-pclmul_asm.S116 call delta
117 delta: label
126 movdqa .Lconstant_R2R1 - delta(%ecx), CONSTANT
175 movdqa .Lconstant_R4R3 - delta(%ecx), CONSTANT
223 movdqa .Lconstant_R5 - delta(%ecx), CONSTANT
224 movdqa .Lconstant_mask32 - delta(%ecx), %xmm3
235 movdqa .Lconstant_RUpoly - delta(%ecx), CONSTANT
/arch/tile/lib/
Dspinlock_32.c26 int delta; in arch_spin_lock() local
35 while ((delta = my_ticket - lock->current_ticket) != 0) in arch_spin_lock()
36 relax((128 / CYCLES_PER_RELAX_LOOP) * delta); in arch_spin_lock()
215 u32 delta = ((my_ticket_ - curr_) & WR_MASK); in arch_write_lock() local
216 if (likely(delta == 0)) in arch_write_lock()
220 relax((256 / CYCLES_PER_RELAX_LOOP) * delta); in arch_write_lock()
Dspinlock_64.c44 u32 delta = my_ticket - arch_spin_current(val); in arch_spin_lock_slow() local
45 if (delta == 0) in arch_spin_lock_slow()
47 relax((128 / CYCLES_PER_RELAX_LOOP) * delta); in arch_spin_lock_slow()
/arch/x86/boot/compressed/
Dmisc.c177 unsigned long delta, map, ptr; in handle_relocations() local
185 delta = min_addr - LOAD_PHYSICAL_ADDR; in handle_relocations()
194 map = delta - __START_KERNEL_map; in handle_relocations()
202 delta = virt_addr - LOAD_PHYSICAL_ADDR; in handle_relocations()
204 if (!delta) { in handle_relocations()
237 *(uint32_t *)ptr += delta; in handle_relocations()
248 *(int32_t *)ptr -= delta; in handle_relocations()
258 *(uint64_t *)ptr += delta; in handle_relocations()
/arch/x86/events/amd/
Dpower.c54 u64 delta, tdelta; in event_update() local
66 delta = max_cu_acc_power + new_pwr_acc; in event_update()
67 delta -= prev_pwr_acc; in event_update()
69 delta = new_pwr_acc - prev_pwr_acc; in event_update()
71 delta *= cpu_pwr_sample_ratio * 1000; in event_update()
74 do_div(delta, tdelta); in event_update()
75 local64_add(delta, &event->count); in event_update()
/arch/x86/boot/
Dstring.c40 int delta = 0; in strcmp() local
43 delta = *s1 - *s2; in strcmp()
44 if (delta) in strcmp()
45 return delta; in strcmp()
/arch/c6x/kernel/
Dmodule.c21 long delta = ((long)dest - ep) >> 2; in fixup_pcr() local
24 if ((delta >> (maskbits - 1)) == 0 || in fixup_pcr()
25 (delta >> (maskbits - 1)) == -1) { in fixup_pcr()
28 opcode |= ((delta & mask) << shift); in fixup_pcr()
/arch/powerpc/include/asm/
Dtime.h179 int delta = get_rtcl() - (unsigned int) tstamp; in tb_ticks_since() local
180 return delta < 0 ? delta + 1000000000 : delta; in tb_ticks_since()
/arch/sparc/kernel/
Dpcr.c95 u32 delta = local_cpu_data().clock_tick / nmi_hz; in direct_picl_value() local
97 return ((u64)((0 - delta) & 0xffffffff)) << 32; in direct_picl_value()
125 u32 delta = local_cpu_data().clock_tick / (nmi_hz << 2); in n2_picl_value() local
127 return ((u64)((0 - delta) & 0xffffffff)) << 32; in n2_picl_value()
177 u32 delta = local_cpu_data().clock_tick / (nmi_hz << 2); in n4_picl_value() local
179 return ((u64)((0 - delta) & 0xffffffff)); in n4_picl_value()
/arch/powerpc/platforms/512x/
Dmpc512x_shared.c78 unsigned long offset, want, got, delta; in mpc512x_set_pixel_clock() local
145 delta = abs(pixclock - got); in mpc512x_set_pixel_clock()
146 if (delta < epsilon) in mpc512x_set_pixel_clock()
154 delta = abs(pixclock - got); in mpc512x_set_pixel_clock()
155 if (delta < epsilon) in mpc512x_set_pixel_clock()
161 pixclock, got, delta, epsilon); in mpc512x_set_pixel_clock()
175 delta = abs(pixclock - got); in mpc512x_set_pixel_clock()
177 pixclock, got, delta, epsilon); in mpc512x_set_pixel_clock()
/arch/ia64/kernel/
Dtime.c113 cputime_t delta = vtime_delta(tsk); in vtime_account_system() local
115 account_system_time(tsk, 0, delta, delta); in vtime_account_system()
190 unsigned long shift = 0, delta; in ia64_cpu_local_tick() local
195 delta = local_cpu_data->itm_delta; in ia64_cpu_local_tick()
202 shift = (2*(cpu - hi) + 1) * delta/hi/2; in ia64_cpu_local_tick()
204 local_cpu_data->itm_next = ia64_get_itc() + delta + shift; in ia64_cpu_local_tick()
/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 += alchemy_rdsys(AU1000_SYS_RTCREAD); in au1x_rtcmatch2_set_next_event()
67 alchemy_wrsys(delta, AU1000_SYS_RTCMATCH2); in au1x_rtcmatch2_set_next_event()
/arch/xtensa/kernel/
Dtime.c55 static int ccount_timer_set_next_event(unsigned long delta,
64 static int ccount_timer_set_next_event(unsigned long delta, in ccount_timer_set_next_event() argument
71 next = get_ccount() + delta; in ccount_timer_set_next_event()
73 if (next - get_ccount() > delta) in ccount_timer_set_next_event()
/arch/mn10300/kernel/
Dcevt-mn10300.c29 static int next_event(unsigned long delta, in next_event() argument
36 reload_jiffies_counter(delta - 1); in next_event()
39 reload_jiffies_counter1(delta - 1); in next_event()

12345