Home
last modified time | relevance | path

Searched refs:cyc (Results 1 - 25 of 35) sorted by relevance

12

/kernel/linux/linux-6.6/tools/perf/tests/shell/
H A Dstat+shadow_stat.sh26 cyc=$num
31 if [ -z "$cyc" ]; then
36 res=`printf "%.2f" "$(echo "scale=6; $num / $cyc" | bc -q)"`
38 echo "IPC is different: $res != $ipc ($num / $cyc)"
61 cyc=${results##* $cpu:}
62 cyc=${cyc%% *}
65 if [ -z "$cyc" ]; then
70 res=`printf "%.2f" "$(echo "scale=6; $num / $cyc" | bc -q)"`
72 echo "IPC is different for $cpu: $res != $ipc ($num / $cyc)"
[all...]
/kernel/linux/linux-5.10/kernel/time/
H A Dsched_clock.c66 static inline u64 notrace cyc_to_ns(u64 cyc, u32 mult, u32 shift) in cyc_to_ns() argument
68 return (cyc * mult) >> shift; in cyc_to_ns()
84 u64 cyc, res; in sched_clock() local
91 cyc = (rd->read_sched_clock() - rd->epoch_cyc) & in sched_clock()
93 res = rd->epoch_ns + cyc_to_ns(cyc, rd->mult, rd->shift); in sched_clock()
129 u64 cyc; in update_sched_clock() local
135 cyc = cd.actual_read_sched_clock(); in update_sched_clock()
136 ns = rd.epoch_ns + cyc_to_ns((cyc - rd.epoch_cyc) & rd.sched_clock_mask, rd.mult, rd.shift); in update_sched_clock()
139 rd.epoch_cyc = cyc; in update_sched_clock()
155 u64 res, wrap, new_mask, new_epoch, cyc, n in sched_clock_register() local
[all...]
/kernel/linux/linux-6.6/kernel/time/
H A Dsched_clock.c67 static __always_inline u64 cyc_to_ns(u64 cyc, u32 mult, u32 shift) in cyc_to_ns() argument
69 return (cyc * mult) >> shift; in cyc_to_ns()
87 u64 cyc, res; in sched_clock_noinstr() local
93 cyc = (rd->read_sched_clock() - rd->epoch_cyc) & in sched_clock_noinstr()
95 res = rd->epoch_ns + cyc_to_ns(cyc, rd->mult, rd->shift); in sched_clock_noinstr()
140 u64 cyc; in update_sched_clock() local
146 cyc = cd.actual_read_sched_clock(); in update_sched_clock()
147 ns = rd.epoch_ns + cyc_to_ns((cyc - rd.epoch_cyc) & rd.sched_clock_mask, rd.mult, rd.shift); in update_sched_clock()
150 rd.epoch_cyc = cyc; in update_sched_clock()
166 u64 res, wrap, new_mask, new_epoch, cyc, n in sched_clock_register() local
[all...]
/kernel/linux/linux-5.10/arch/arm/mach-s3c/
H A Diotiming-s3c2410.c77 * @cyc: The cycle time, in 10ths of nanoseconds.
83 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()
93 * @cyc: The cycle time, in 10ths of nanoseconds.
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()
107 s3c_freq_iodbg("%s: cyc=%d, hclk=%lu, shift=%d => div %d\n", in calc_0124()
108 __func__, cyc, hclk_tns, shift, div); in calc_0124()
132 static int calc_tacp(unsigned int cyc, unsigne argument
149 calc_tacc(unsigned int cyc, int nwait_en, unsigned long hclk_tns, unsigned long *v) calc_tacc() argument
[all...]
/kernel/linux/linux-5.10/tools/perf/util/
H A Dtsc.c27 u64 tsc_to_perf_time(u64 cyc, struct perf_tsc_conversion *tc) in tsc_to_perf_time() argument
32 cyc = tc->time_cycles + in tsc_to_perf_time()
33 ((cyc - tc->time_cycles) & tc->time_mask); in tsc_to_perf_time()
35 quot = cyc >> tc->time_shift; in tsc_to_perf_time()
36 rem = cyc & (((u64)1 << tc->time_shift) - 1); in tsc_to_perf_time()
H A Dtsc.h24 u64 tsc_to_perf_time(u64 cyc, struct perf_tsc_conversion *tc);
/kernel/linux/linux-6.6/tools/perf/util/
H A Dtsc.c29 u64 tsc_to_perf_time(u64 cyc, struct perf_tsc_conversion *tc) in tsc_to_perf_time() argument
34 cyc = tc->time_cycles + in tsc_to_perf_time()
35 ((cyc - tc->time_cycles) & tc->time_mask); in tsc_to_perf_time()
37 quot = cyc >> tc->time_shift; in tsc_to_perf_time()
38 rem = cyc & (((u64)1 << tc->time_shift) - 1); in tsc_to_perf_time()
H A Dtsc.h26 u64 tsc_to_perf_time(u64 cyc, struct perf_tsc_conversion *tc);
/kernel/linux/linux-5.10/arch/arm/mach-pxa/
H A 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()
/kernel/linux/linux-5.10/tools/perf/arch/x86/tests/
H A 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()
/kernel/linux/linux-5.10/tools/perf/scripts/python/
H A Dstat-cpi.py56 cyc = get(time, "cycles", cpu, thread)
61 cpi = cyc/float(ins)
63 print("%15f: cpu %d, thread %d -> cpi %f (%d/%d)" % (time/(float(1000000000)), cpu, thread, cpi, cyc, ins))
73 # cyc = get(time, "cycles", cpu, thread)
77 # cpi = cyc/float(ins)
/kernel/linux/linux-6.6/tools/perf/scripts/python/
H A Dstat-cpi.py56 cyc = get(time, "cycles", cpu, thread)
61 cpi = cyc/float(ins)
63 print("%15f: cpu %d, thread %d -> cpi %f (%d/%d)" % (time/(float(1000000000)), cpu, thread, cpi, cyc, ins))
73 # cyc = get(time, "cycles", cpu, thread)
77 # cpi = cyc/float(ins)
/kernel/linux/linux-5.10/drivers/pwm/
H A Dpwm-rcar.c111 u32 cyc, ph; in rcar_pwm_set_counter() local
118 cyc = (tmp << RCAR_PWMCNT_CYC0_SHIFT) & RCAR_PWMCNT_CYC0_MASK; in rcar_pwm_set_counter()
125 if (cyc == 0 || ph == 0) in rcar_pwm_set_counter()
128 rcar_pwm_write(rp, cyc | ph, RCAR_PWMCNT); in rcar_pwm_set_counter()
/kernel/linux/linux-6.6/drivers/pwm/
H A Dpwm-rcar.c111 u32 cyc, ph; in rcar_pwm_set_counter() local
118 cyc = (tmp << RCAR_PWMCNT_CYC0_SHIFT) & RCAR_PWMCNT_CYC0_MASK; in rcar_pwm_set_counter()
125 if (cyc == 0 || ph == 0) in rcar_pwm_set_counter()
128 rcar_pwm_write(rp, cyc | ph, RCAR_PWMCNT); in rcar_pwm_set_counter()
/kernel/linux/linux-5.10/arch/arm/lib/
H A 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()
/kernel/linux/linux-6.6/arch/arm/lib/
H A 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()
/kernel/linux/linux-5.10/drivers/i2c/busses/
H A Di2c-uniphier-f.c481 unsigned int cyc = priv->clk_cycle; in uniphier_fi2c_hw_init() local
494 writel(cyc, priv->membase + UNIPHIER_FI2C_CYC); in uniphier_fi2c_hw_init()
500 writel(cyc * 5 / 9, priv->membase + UNIPHIER_FI2C_LCTL); in uniphier_fi2c_hw_init()
505 writel(cyc / 2, priv->membase + UNIPHIER_FI2C_SSUT); in uniphier_fi2c_hw_init()
510 writel(cyc / 16, priv->membase + UNIPHIER_FI2C_DSUT); in uniphier_fi2c_hw_init()
H A Di2c-uniphier.c295 unsigned int cyc = priv->clk_cycle; in uniphier_i2c_hw_init() local
305 writel((cyc * 5 / 9 << 16) | cyc, priv->membase + UNIPHIER_I2C_CLK); in uniphier_i2c_hw_init()
/kernel/linux/linux-6.6/drivers/i2c/busses/
H A Di2c-uniphier-f.c481 unsigned int cyc = priv->clk_cycle; in uniphier_fi2c_hw_init() local
494 writel(cyc, priv->membase + UNIPHIER_FI2C_CYC); in uniphier_fi2c_hw_init()
500 writel(cyc * 5 / 9, priv->membase + UNIPHIER_FI2C_LCTL); in uniphier_fi2c_hw_init()
505 writel(cyc / 2, priv->membase + UNIPHIER_FI2C_SSUT); in uniphier_fi2c_hw_init()
510 writel(cyc / 16, priv->membase + UNIPHIER_FI2C_DSUT); in uniphier_fi2c_hw_init()
H A Di2c-uniphier.c295 unsigned int cyc = priv->clk_cycle; in uniphier_i2c_hw_init() local
305 writel((cyc * 5 / 9 << 16) | cyc, priv->membase + UNIPHIER_I2C_CLK); in uniphier_i2c_hw_init()
/kernel/linux/linux-6.6/tools/lib/perf/
H A Dmmap.c470 u64 cnt, cyc = 0, time_offset = 0, time_cycles = 0, time_mask = ~0ULL; in perf_mmap__read_self() local
483 cyc = read_timestamp(); in perf_mmap__read_self()
513 cyc = time_cycles + ((cyc - time_cycles) & time_mask); in perf_mmap__read_self()
515 delta = time_offset + mul_u64_u32_shr(cyc, time_mult, time_shift); in perf_mmap__read_self()
/kernel/linux/linux-5.10/drivers/dma/
H A Dpl330.c1096 const struct _xfer_spec *pxs, int cyc) in _ldst_memtomem()
1103 while (cyc--) { in _ldst_memtomem()
1108 while (cyc--) { in _ldst_memtomem()
1187 const struct _xfer_spec *pxs, int cyc, in _ldst_peripheral()
1198 while (cyc--) { in _ldst_peripheral()
1210 const struct _xfer_spec *pxs, int cyc) in _bursts()
1221 off += _ldst_peripheral(pl330, dry_run, &buf[off], pxs, cyc, in _bursts()
1226 off += _ldst_memtomem(dry_run, &buf[off], pxs, cyc); in _bursts()
1293 int cyc, cycmax, szlp, szlpend, szbrst, off; in _loop() local
1304 cyc in _loop()
1095 _ldst_memtomem(unsigned dry_run, u8 buf[], const struct _xfer_spec *pxs, int cyc) _ldst_memtomem() argument
1185 _ldst_peripheral(struct pl330_dmac *pl330, unsigned dry_run, u8 buf[], const struct _xfer_spec *pxs, int cyc, enum pl330_cond cond) _ldst_peripheral() argument
1209 _bursts(struct pl330_dmac *pl330, unsigned dry_run, u8 buf[], const struct _xfer_spec *pxs, int cyc) _bursts() argument
[all...]
/kernel/linux/linux-6.6/drivers/dma/
H A Dpl330.c1096 const struct _xfer_spec *pxs, int cyc) in _ldst_memtomem()
1103 while (cyc--) { in _ldst_memtomem()
1108 while (cyc--) { in _ldst_memtomem()
1187 const struct _xfer_spec *pxs, int cyc, in _ldst_peripheral()
1198 while (cyc--) { in _ldst_peripheral()
1210 const struct _xfer_spec *pxs, int cyc) in _bursts()
1221 off += _ldst_peripheral(pl330, dry_run, &buf[off], pxs, cyc, in _bursts()
1226 off += _ldst_memtomem(dry_run, &buf[off], pxs, cyc); in _bursts()
1293 int cyc, cycmax, szlp, szlpend, szbrst, off; in _loop() local
1304 cyc in _loop()
1095 _ldst_memtomem(unsigned dry_run, u8 buf[], const struct _xfer_spec *pxs, int cyc) _ldst_memtomem() argument
1185 _ldst_peripheral(struct pl330_dmac *pl330, unsigned dry_run, u8 buf[], const struct _xfer_spec *pxs, int cyc, enum pl330_cond cond) _ldst_peripheral() argument
1209 _bursts(struct pl330_dmac *pl330, unsigned dry_run, u8 buf[], const struct _xfer_spec *pxs, int cyc) _bursts() argument
[all...]
/kernel/linux/linux-5.10/arch/arc/include/asm/
H A Darcregs.h222 unsigned int pad2:12, cyc:3, pad1:1, sz1:4, sz0:4, ver:8; member
224 unsigned int ver:8, sz0:4, sz1:4, pad1:1, cyc:3, pad2:12;
/kernel/linux/linux-6.6/arch/arc/include/asm/
H A Darcregs.h275 unsigned int pad2:12, cyc:3, pad1:1, sz1:4, sz0:4, ver:8; member
277 unsigned int ver:8, sz0:4, sz1:4, pad1:1, cyc:3, pad2:12;

Completed in 17 milliseconds

12