Home
last modified time | relevance | path

Searched refs:cyc (Results 1 – 16 of 16) sorted by relevance

/linux-4.4.14/kernel/time/
Dsched_clock.c91 static inline u64 notrace cyc_to_ns(u64 cyc, u32 mult, u32 shift) in cyc_to_ns() argument
93 return (cyc * mult) >> shift; in cyc_to_ns()
98 u64 cyc, res; in sched_clock() local
106 cyc = (rd->read_sched_clock() - rd->epoch_cyc) & in sched_clock()
108 res = rd->epoch_ns + cyc_to_ns(cyc, rd->mult, rd->shift); in sched_clock()
144 u64 cyc; in update_sched_clock() local
150 cyc = cd.actual_read_sched_clock(); in update_sched_clock()
151 ns = rd.epoch_ns + cyc_to_ns((cyc - rd.epoch_cyc) & rd.sched_clock_mask, rd.mult, rd.shift); in update_sched_clock()
154 rd.epoch_cyc = cyc; in update_sched_clock()
170 u64 res, wrap, new_mask, new_epoch, cyc, ns; in sched_clock_register() local
[all …]
/linux-4.4.14/arch/arm/mach-s3c24xx/
Diotiming-s3c2410.c87 static inline unsigned int to_div(unsigned int cyc, unsigned int hclk_tns) in to_div() argument
89 if (cyc == 0) in to_div()
92 return DIV_ROUND_UP(cyc, hclk_tns); in to_div()
105 static unsigned int calc_0124(unsigned int cyc, unsigned long hclk_tns, in calc_0124() argument
108 unsigned int div = to_div(cyc, hclk_tns); in calc_0124()
112 __func__, cyc, hclk_tns, shift, div); in calc_0124()
136 int calc_tacp(unsigned int cyc, unsigned long hclk, unsigned long *v) in calc_tacp() argument
153 static int calc_tacc(unsigned int cyc, int nwait_en, in calc_tacc() argument
156 unsigned int div = to_div(cyc, hclk_tns); in calc_tacc()
160 __func__, cyc, nwait_en, hclk_tns, div); in calc_tacc()
/linux-4.4.14/tools/perf/util/
Dtsc.c17 u64 tsc_to_perf_time(u64 cyc, struct perf_tsc_conversion *tc) in tsc_to_perf_time() argument
21 quot = cyc >> tc->time_shift; in tsc_to_perf_time()
22 rem = cyc & ((1 << tc->time_shift) - 1); in tsc_to_perf_time()
Dtsc.h9 u64 tsc_to_perf_time(u64 cyc, struct perf_tsc_conversion *tc);
/linux-4.4.14/arch/arm/mach-pxa/
Dmp900.c33 int cyc = delay / 10; in isp116x_pfm_delay() local
39 :"=r" (cyc) in isp116x_pfm_delay()
40 :"0"(cyc) in isp116x_pfm_delay()
/linux-4.4.14/tools/perf/arch/x86/tests/
Drdpmc.c34 u64 count, cyc = 0, time_offset = 0, enabled, running, delta; in mmap_read_self() local
44 cyc = rdtsc(); in mmap_read_self()
61 quot = (cyc >> time_shift); in mmap_read_self()
62 rem = cyc & ((1 << time_shift) - 1); in mmap_read_self()
/linux-4.4.14/drivers/pwm/
Dpwm-rcar.c113 u32 cyc, ph; in rcar_pwm_set_counter() local
120 cyc = (tmp << RCAR_PWMCNT_CYC0_SHIFT) & RCAR_PWMCNT_CYC0_MASK; in rcar_pwm_set_counter()
127 if (cyc == 0 || ph == 0) in rcar_pwm_set_counter()
130 rcar_pwm_write(rp, cyc | ph, RCAR_PWMCNT); in rcar_pwm_set_counter()
/linux-4.4.14/arch/arm/lib/
Ddelay.c52 static inline u64 cyc_to_ns(u64 cyc, u32 mult, u32 shift) in cyc_to_ns() argument
54 return (cyc * mult) >> shift; in cyc_to_ns()
/linux-4.4.14/drivers/dma/
Dpl330.c1117 const struct _xfer_spec *pxs, int cyc) in _ldst_memtomem() argument
1124 while (cyc--) { in _ldst_memtomem()
1129 while (cyc--) { in _ldst_memtomem()
1141 const struct _xfer_spec *pxs, int cyc) in _ldst_devtomem() argument
1145 while (cyc--) { in _ldst_devtomem()
1156 const struct _xfer_spec *pxs, int cyc) in _ldst_memtodev() argument
1160 while (cyc--) { in _ldst_memtodev()
1171 const struct _xfer_spec *pxs, int cyc) in _bursts() argument
1177 off += _ldst_memtodev(dry_run, &buf[off], pxs, cyc); in _bursts()
1180 off += _ldst_devtomem(dry_run, &buf[off], pxs, cyc); in _bursts()
[all …]
/linux-4.4.14/arch/mn10300/proc-mn103e010/include/proc/
Ddmactl-regs.h95 u32 cyc; member
/linux-4.4.14/arch/mn10300/proc-mn2ws0050/include/proc/
Ddmactl-regs.h96 u32 cyc; member
/linux-4.4.14/arch/x86/kernel/
Dtsc.c200 static inline unsigned long long cycles_2_ns(unsigned long long cyc) in cycles_2_ns() argument
218 ns += mul_u64_u32_shr(cyc, data->cyc2ns_mul, data->cyc2ns_shift); in cycles_2_ns()
225 ns += mul_u64_u32_shr(cyc, data->cyc2ns_mul, data->cyc2ns_shift); in cycles_2_ns()
/linux-4.4.14/arch/x86/platform/uv/
Dtlb_uv.c441 static inline unsigned long long cycles_2_ns(unsigned long long cyc) in cycles_2_ns() argument
446 ns = mul_u64_u32_shr(cyc, data->cyc2ns_mul, data->cyc2ns_shift); in cycles_2_ns()
458 unsigned long long cyc; in ns_2_cycles() local
460 cyc = (ns << data->cyc2ns_shift) / data->cyc2ns_mul; in ns_2_cycles()
463 return cyc; in ns_2_cycles()
466 static inline unsigned long cycles_2_us(unsigned long long cyc) in cycles_2_us() argument
468 return cycles_2_ns(cyc) / NSEC_PER_USEC; in cycles_2_us()
/linux-4.4.14/arch/ia64/kernel/
Dtime.c62 extern cputime_t cycle_to_cputime(u64 cyc);
/linux-4.4.14/tools/perf/Documentation/
Dintel-pt.txt153 /sys/bus/event_source/devices/intel_pt/format/cyc:config:1
322 cyc Produces CYC timing packets.
339 cyc_thresh Specifies how frequently CYC packets are produced - see cyc
362 $ perf record -e intel_pt/cyc,cyc_thresh=15/u uname
/linux-4.4.14/arch/x86/kernel/cpu/
Dperf_event_intel_pt.c103 PMU_FORMAT_ATTR(cyc, "config:1" );