Home
last modified time | relevance | path

Searched refs:cycles (Results 1 – 25 of 78) sorted by relevance

1234

/arch/xtensa/include/asm/
Ddelay.h40 unsigned long cycles = (usecs * (ccount_freq >> 15)) >> 5; in __udelay() local
43 while (((unsigned long)get_ccount()) - start < cycles) in __udelay()
61 unsigned long cycles = (nsec * (ccount_freq >> 15)) >> 15; in __ndelay() local
62 __delay(cycles); in __ndelay()
/arch/arm/plat-omap/
Dcounter_32k.c51 static cycles_t cycles; variable
59 last_cycles = cycles; in omap_read_persistent_clock64()
60 cycles = sync32k_cnt_reg ? readl_relaxed(sync32k_cnt_reg) : 0; in omap_read_persistent_clock64()
62 nsecs = clocksource_cyc2ns(cycles - last_cycles, in omap_read_persistent_clock64()
/arch/h8300/lib/
Ddelay.c14 void __delay(unsigned long cycles) in __delay() argument
17 "bne 1b":"=r"(cycles):"0"(cycles)); in __delay()
/arch/arm64/lib/
Ddelay.c26 void __delay(unsigned long cycles) in __delay() argument
34 while ((get_cycles() - start + timer_evt_period) < cycles) in __delay()
38 while ((get_cycles() - start) < cycles) in __delay()
/arch/m68k/coldfire/
Dsltimers.c104 u32 cycles, scnt; in mcfslt_read_clk() local
108 cycles = mcfslt_cnt; in mcfslt_read_clk()
110 cycles += mcfslt_cycles_per_jiffy; in mcfslt_read_clk()
116 return cycles + ((mcfslt_cycles_per_jiffy - 1) - scnt); in mcfslt_read_clk()
Dpit.c125 u32 cycles; in pit_read_clk() local
130 cycles = pit_cnt; in pit_read_clk()
133 return cycles + PIT_CYCLES_PER_JIFFY - pcntr; in pit_read_clk()
Dtimers.c96 u32 cycles; in mcftmr_read_clk() local
101 cycles = mcftmr_cnt; in mcftmr_read_clk()
104 return cycles + tcn; in mcftmr_read_clk()
/arch/m68k/68000/
Dtimers.c82 u32 cycles; in m68328_read_clk() local
85 cycles = m68328_tick_cnt + TCN; in m68328_read_clk()
88 return cycles; in m68328_read_clk()
/arch/nios2/lib/
Ddelay.c11 void __delay(unsigned long cycles) in __delay() argument
15 while ((get_cycles() - start) < cycles) in __delay()
/arch/openrisc/lib/
Ddelay.c29 void __delay(unsigned long cycles) in __delay() argument
33 while ((get_cycles() - start) < cycles) in __delay()
/arch/riscv/lib/
Ddelay.c72 void __delay(unsigned long cycles) in __delay() argument
76 while ((unsigned long)(get_cycles() - t0) < cycles) in __delay()
/arch/arm/mach-omap2/
Dvc.c433 u32 cycles; in omap4_calc_volt_ramp() local
438 cycles = voltdm->sys_clk.rate / 1000 * time / 1000; in omap4_calc_volt_ramp()
440 cycles /= 64; in omap4_calc_volt_ramp()
446 if (cycles > 63) { in omap4_calc_volt_ramp()
447 cycles /= 4; in omap4_calc_volt_ramp()
452 if (cycles > 63) { in omap4_calc_volt_ramp()
453 cycles /= 2; in omap4_calc_volt_ramp()
458 if (cycles > 63) { in omap4_calc_volt_ramp()
459 cycles /= 4; in omap4_calc_volt_ramp()
464 if (cycles > 63) { in omap4_calc_volt_ramp()
[all …]
/arch/x86/include/asm/vdso/
Dgettimeofday.h287 u64 vdso_calc_delta(u64 cycles, u64 last, u64 mask, u32 mult) in vdso_calc_delta() argument
289 if (cycles > last) in vdso_calc_delta()
290 return (cycles - last) * mult; in vdso_calc_delta()
/arch/sparc/kernel/
Dtime_32.c155 u64 cycles; in timer_cs_read() local
160 cycles = timer_cs_internal_counter; in timer_cs_read()
165 cycles *= sparc_config.cs_period; in timer_cs_read()
166 cycles += offset; in timer_cs_read()
168 return cycles; in timer_cs_read()
/arch/sparc/vdso/
Dvclock_gettime.c129 u64 cycles; in vgetsns() local
131 cycles = vread_tick(); in vgetsns()
132 v = (cycles - vvar->clock.cycle_last) & vvar->clock.mask; in vgetsns()
139 u64 cycles; in vgetsns_stick() local
141 cycles = vread_tick_stick(); in vgetsns_stick()
142 v = (cycles - vvar->clock.cycle_last) & vvar->clock.mask; in vgetsns_stick()
/arch/arm/lib/
Ddelay.c45 static void __timer_delay(unsigned long cycles) in __timer_delay() argument
49 while ((get_cycles() - start) < cycles) in __timer_delay()
/arch/hexagon/include/asm/
Ddelay.h11 extern void __delay(unsigned long cycles);
/arch/riscv/include/asm/
Ddelay.h18 extern void __delay(unsigned long cycles);
/arch/sh/lib/
Dmemcpy-sh4.S31 mov r4,r2 ! 5 MT (0 cycles latency)
33 mov.l @(r0,r5),r7 ! 21 LS (2 cycles latency)
39 ! 6 cycles, 4 bytes per iteration
104 mov r4,r2 ! 5 MT (0 cycles latency)
106 mov.l @(r0,r5),r7 ! 21 LS (2 cycles latency)
112 ! 6 cycles, 4 bytes per iteration
222 ! 4 cycles, 2 bytes per iteration
250 ! 3 cycles, 1 byte per iteration
332 ! 4 cycles, 2 long words per iteration
366 ! 4 cycles, 2 long words per iteration
[all …]
/arch/arm/mach-omap1/
Dtime.c120 static int omap_mpu_set_next_event(unsigned long cycles, in omap_mpu_set_next_event() argument
123 omap_mpu_timer_start(0, cycles, 0); in omap_mpu_set_next_event()
/arch/mips/pci/
Dpci-octeon.c415 unsigned long cycles, pci_clock; in octeon_pci_initialize() local
418 cycles = read_c0_cvmcount(); in octeon_pci_initialize()
421 cycles = read_c0_cvmcount() - cycles; in octeon_pci_initialize()
423 (cycles / (mips_hpt_frequency / 1000000)); in octeon_pci_initialize()
/arch/hexagon/kernel/
Dtime.c206 void __delay(unsigned long cycles) in __delay() argument
210 while ((__vmgettime() - start) < cycles) in __delay()
/arch/arm/mach-spear/
Dtime.c157 static int clockevent_next_event(unsigned long cycles, in clockevent_next_event() argument
165 writew(cycles, gpt_base + LOAD(CLKEVT)); in clockevent_next_event()
/arch/powerpc/perf/
Dpower8-pmu.c123 GENERIC_EVENT_ATTR(cpu-cycles, PM_CYC);
124 GENERIC_EVENT_ATTR(stalled-cycles-frontend, PM_GCT_NOSLOT_CYC);
125 GENERIC_EVENT_ATTR(stalled-cycles-backend, PM_CMPLU_STALL);
Dpower7-pmu.c374 GENERIC_EVENT_ATTR(cpu-cycles, PM_CYC);
375 GENERIC_EVENT_ATTR(stalled-cycles-frontend, PM_GCT_NOSLOT_CYC);
376 GENERIC_EVENT_ATTR(stalled-cycles-backend, PM_CMPLU_STALL);

1234