Home
last modified time | relevance | path

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

/Linux-v5.4/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-v5.4/arch/arm/mach-s3c24xx/
Diotiming-s3c2410.c83 static inline unsigned int to_div(unsigned int cyc, unsigned int hclk_tns) in to_div() argument
85 if (cyc == 0) in to_div()
88 return DIV_ROUND_UP(cyc, hclk_tns); in to_div()
101 static unsigned int calc_0124(unsigned int cyc, unsigned long hclk_tns, in calc_0124() argument
104 unsigned int div = to_div(cyc, hclk_tns); in calc_0124()
108 __func__, cyc, hclk_tns, shift, div); in calc_0124()
132 int calc_tacp(unsigned int cyc, unsigned long hclk, unsigned long *v) in calc_tacp() argument
149 static int calc_tacc(unsigned int cyc, int nwait_en, in calc_tacc() argument
152 unsigned int div = to_div(cyc, hclk_tns); in calc_tacc()
156 __func__, cyc, nwait_en, hclk_tns, div); in calc_tacc()
/Linux-v5.4/tools/perf/util/
Dtsc.c18 u64 tsc_to_perf_time(u64 cyc, struct perf_tsc_conversion *tc) in tsc_to_perf_time() argument
22 quot = cyc >> tc->time_shift; in tsc_to_perf_time()
23 rem = cyc & (((u64)1 << tc->time_shift) - 1); in tsc_to_perf_time()
Dtsc.h19 u64 tsc_to_perf_time(u64 cyc, struct perf_tsc_conversion *tc);
/Linux-v5.4/arch/arm/mach-pxa/
Dmp900.c30 int cyc = delay / 10; in isp116x_pfm_delay() local
36 :"=r" (cyc) in isp116x_pfm_delay()
37 :"0"(cyc) in isp116x_pfm_delay()
/Linux-v5.4/tools/perf/arch/x86/tests/
Drdpmc.c41 u64 count, cyc = 0, time_offset = 0, enabled, running, delta; in mmap_read_self() local
51 cyc = rdtsc(); in mmap_read_self()
68 quot = (cyc >> time_shift); in mmap_read_self()
69 rem = cyc & (((u64)1 << time_shift) - 1); in mmap_read_self()
/Linux-v5.4/tools/perf/scripts/python/
Dstat-cpi.py56 cyc = get(time, "cycles", cpu, thread)
61 cpi = cyc/float(ins)
63 …15f: cpu %d, thread %d -> cpi %f (%d/%d)" % (time/(float(1000000000)), cpu, thread, cpi, cyc, ins))
/Linux-v5.4/drivers/pwm/
Dpwm-rcar.c108 u32 cyc, ph; in rcar_pwm_set_counter() local
115 cyc = (tmp << RCAR_PWMCNT_CYC0_SHIFT) & RCAR_PWMCNT_CYC0_MASK; in rcar_pwm_set_counter()
122 if (cyc == 0 || ph == 0) in rcar_pwm_set_counter()
125 rcar_pwm_write(rp, cyc | ph, RCAR_PWMCNT); in rcar_pwm_set_counter()
/Linux-v5.4/arch/arm/lib/
Ddelay.c40 static inline u64 cyc_to_ns(u64 cyc, u32 mult, u32 shift) in cyc_to_ns() argument
42 return (cyc * mult) >> shift; in cyc_to_ns()
/Linux-v5.4/drivers/i2c/busses/
Di2c-uniphier-f.c483 unsigned int cyc = priv->clk_cycle; in uniphier_fi2c_hw_init() local
496 writel(cyc, priv->membase + UNIPHIER_FI2C_CYC); in uniphier_fi2c_hw_init()
502 writel(cyc * 5 / 9, priv->membase + UNIPHIER_FI2C_LCTL); in uniphier_fi2c_hw_init()
507 writel(cyc / 2, priv->membase + UNIPHIER_FI2C_SSUT); in uniphier_fi2c_hw_init()
512 writel(cyc / 16, priv->membase + UNIPHIER_FI2C_DSUT); in uniphier_fi2c_hw_init()
Di2c-uniphier.c298 unsigned int cyc = priv->clk_cycle; in uniphier_i2c_hw_init() local
308 writel((cyc * 5 / 9 << 16) | cyc, priv->membase + UNIPHIER_I2C_CLK); in uniphier_i2c_hw_init()
/Linux-v5.4/drivers/dma/
Dpl330.c1088 const struct _xfer_spec *pxs, int cyc) in _ldst_memtomem() argument
1095 while (cyc--) { in _ldst_memtomem()
1100 while (cyc--) { in _ldst_memtomem()
1181 const struct _xfer_spec *pxs, int cyc, in _ldst_peripheral() argument
1195 while (cyc--) { in _ldst_peripheral()
1207 const struct _xfer_spec *pxs, int cyc) in _bursts() argument
1216 off += _ldst_peripheral(pl330, dry_run, &buf[off], pxs, cyc, in _bursts()
1221 off += _ldst_memtomem(dry_run, &buf[off], pxs, cyc); in _bursts()
1279 int cyc, cycmax, szlp, szlpend, szbrst, off; in _loop() local
1290 cyc = *bursts / lcnt1 / lcnt0; in _loop()
[all …]
/Linux-v5.4/arch/arc/include/asm/
Darcregs.h194 unsigned int pad2:12, cyc:3, pad1:1, sz1:4, sz0:4, ver:8; member
196 unsigned int ver:8, sz0:4, sz1:4, pad1:1, cyc:3, pad2:12;
/Linux-v5.4/Documentation/devicetree/bindings/fpga/
Daltera-passive-serial.txt8 See https://www.altera.com/literature/hb/cyc/cyc_c51013.pdf
/Linux-v5.4/arch/x86/platform/uv/
Dtlb_uv.c453 static inline unsigned long long cycles_2_ns(unsigned long long cyc) in cycles_2_ns() argument
459 ns = mul_u64_u32_shr(cyc, data.cyc2ns_mul, data.cyc2ns_shift); in cycles_2_ns()
471 unsigned long long cyc; in ns_2_cycles() local
474 cyc = (ns << data.cyc2ns_shift) / data.cyc2ns_mul; in ns_2_cycles()
477 return cyc; in ns_2_cycles()
480 static inline unsigned long cycles_2_us(unsigned long long cyc) in cycles_2_us() argument
482 return cycles_2_ns(cyc) / NSEC_PER_USEC; in cycles_2_us()
/Linux-v5.4/arch/ia64/kernel/
Dtime.c64 extern u64 cycle_to_nsec(u64 cyc);
/Linux-v5.4/arch/x86/kernel/
Dtsc.c108 static __always_inline unsigned long long cycles_2_ns(unsigned long long cyc) in cycles_2_ns() argument
116 ns += mul_u64_u32_shr(cyc, data.cyc2ns_mul, data.cyc2ns_shift); in cycles_2_ns()
/Linux-v5.4/tools/perf/Documentation/
Dintel-pt.txt114 If the 'cyc' config term (see config terms section below) was used, then IPC is
186 /sys/bus/event_source/devices/intel_pt/format/cyc:config:1
355 cyc Produces CYC timing packets.
372 cyc_thresh Specifies how frequently CYC packets are produced - see cyc
395 $ perf record -e intel_pt/cyc,cyc_thresh=15/u uname
/Linux-v5.4/drivers/mtd/nand/raw/atmel/
Dnand-controller.c72 #define ATMEL_HSMC_NFC_CFG_DTO(cyc, mul) (((cyc) << 16) | ((mul) << 20)) argument
/Linux-v5.4/arch/x86/events/intel/
Dpt.c103 PMU_FORMAT_ATTR(cyc, "config:1" );