Home
last modified time | relevance | path

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

12345678910>>...20

/openbmc/linux/arch/x86/lib/
H A Ddelay.c63 static void delay_tsc(u64 cycles) in delay_tsc() argument
73 if ((now - bclock) >= cycles) in delay_tsc()
91 cycles -= (now - bclock); in delay_tsc()
105 static void delay_halt_tpause(u64 start, u64 cycles) in delay_halt_tpause() argument
107 u64 until = start + cycles; in delay_halt_tpause()
129 delay = min_t(u64, MWAITX_MAX_WAIT_CYCLES, cycles); in delay_halt_mwaitx()
151 u64 start, end, cycles = __cycles; in delay_halt() local
157 if (!cycles) in delay_halt()
163 delay_halt_fn(start, cycles); in delay_halt()
166 if (cycles <= end - start) in delay_halt()
[all …]
/openbmc/linux/tools/perf/dlfilters/
H A Ddlfilter-show-cycles.c19 static __u64 cycles[MAX_CPU][MAX_ENTRY]; variable
30 __u64 cycles[MAX_ENTRY]; member
77 e->cycles[pos] += cnt; in add_entry()
92 cycles[cpu][pos] += sample->cyc_cnt; in filter_event_early()
98 static void print_vals(__u64 cycles, __u64 delta) in print_vals() argument
101 printf("%10llu %10llu ", (unsigned long long)cycles, (unsigned long long)delta); in print_vals()
103 printf("%10llu %10s ", (unsigned long long)cycles, ""); in print_vals()
115 print_vals(cycles[cpu][pos], cycles[cpu][pos] - cycles_rpt[cpu][pos]); in filter_event()
116 cycles_rpt[cpu][pos] = cycles[cpu][pos]; in filter_event()
124 print_vals(e->cycles[pos], e->cycles[pos] - e->cycles_rpt[pos]); in filter_event()
[all …]
/openbmc/linux/drivers/memory/
H A Djz4780-nemc.c162 uint32_t smcr, val, cycles; in jz4780_nemc_configure_bank() local
211 val, cycles); in jz4780_nemc_configure_bank()
215 smcr |= cycles << NEMC_SMCR_TAS_SHIFT; in jz4780_nemc_configure_bank()
223 val, cycles); in jz4780_nemc_configure_bank()
227 smcr |= cycles << NEMC_SMCR_TAH_SHIFT; in jz4780_nemc_configure_bank()
233 if (cycles > 31) { in jz4780_nemc_configure_bank()
235 val, cycles); in jz4780_nemc_configure_bank()
245 if (cycles > 31) { in jz4780_nemc_configure_bank()
247 val, cycles); in jz4780_nemc_configure_bank()
257 if (cycles > 63) { in jz4780_nemc_configure_bank()
[all …]
/openbmc/linux/drivers/gpu/drm/i915/gt/
H A Dselftest_gt_pm.c56 u32 cycles[5]; in measure_clocks() local
61 cycles[i] = -read_timestamp(engine); in measure_clocks()
66 cycles[i] += read_timestamp(engine); in measure_clocks()
72 sort(cycles, 5, sizeof(*cycles), cmp_u32, NULL); in measure_clocks()
73 *out_cycles = (cycles[1] + 2 * cycles[2] + cycles[3]) / 4; in measure_clocks()
98 u32 cycles; in live_gt_clocks() local
106 measure_clocks(engine, &cycles, &dt); in live_gt_clocks()
108 time = intel_gt_clock_interval_to_ns(engine->gt, cycles); in live_gt_clocks()
112 engine->name, cycles, time, dt, expected, in live_gt_clocks()
122 if (9 * expected < 8 * cycles || 8 * expected > 9 * cycles) { in live_gt_clocks()
/openbmc/u-boot/cmd/
H A Dtime.c9 static void report_time(ulong cycles) in report_time() argument
14 total_seconds = cycles / CONFIG_SYS_HZ; in report_time()
15 remainder = cycles % CONFIG_SYS_HZ; in report_time()
29 ulong cycles = 0; in do_time() local
36 retval = cmd_process(0, argc - 1, argv + 1, &repeatable, &cycles); in do_time()
37 report_time(cycles); in do_time()
/openbmc/linux/Documentation/devicetree/bindings/bus/
H A Dqcom,ebi2.txt34 FIXME: the manual mentions "write precharge cycles" and "precharge cycles".
77 - qcom,xmem-recovery-cycles: recovery cycles is the time the memory continues to
82 - qcom,xmem-write-hold-cycles: write hold cycles, these are extra cycles
86 - qcom,xmem-write-delta-cycles: initial latency for write cycles inserted for
88 - qcom,xmem-read-delta-cycles: initial latency for read cycles inserted for the
90 - qcom,xmem-write-wait-cycles: number of wait cycles for every write access, 0=1
92 - qcom,xmem-read-wait-cycles: number of wait cycles for every read access, 0=1
99 - qcom,xmem-adv-to-oe-recovery-cycles: the number of cycles elapsed before an OE
102 - qcom,xmem-read-hold-cycles: the length in cycles of the first segment of a
131 qcom,xmem-recovery-cycles = <0>;
[all …]
/openbmc/linux/Documentation/devicetree/bindings/memory-controllers/ddr/
H A Djedec,lpddr3.yaml46 of clock cycles.
53 SELF REFRESH) in terms of number of clock cycles.
60 cycles.
79 of clock cycles.
85 Row active time in terms of number of clock cycles.
97 RAS-to-CAS delay in terms of number of clock cycles.
109 READ data latency in terms of number of clock cycles.
134 cycles.
141 of clock cycles.
166 cycles.
[all …]
H A Djedec,lpddr2.yaml53 Active bank a to active bank b in terms of number of clock cycles.
60 Internal WRITE-to-READ command delay in terms of number of clock cycles.
68 cycles. Obtained from device datasheet.
75 cycles. Obtained from device datasheet.
82 of clock cycles. Obtained from device datasheet.
88 Row precharge time (all banks) in terms of number of clock cycles.
95 RAS-to-CAS delay in terms of number of clock cycles. Obtained from
102 WRITE recovery time in terms of number of clock cycles. Obtained from
109 Row active time in terms of number of clock cycles. Obtained from device
117 SELF REFRESH) in terms of number of clock cycles. Obtained from device
[all …]
/openbmc/linux/tools/perf/Documentation/
H A Dintel-hybrid.txt45 For example, count the 'cycles' event on core cpus.
47 perf stat -e cpu_core/cycles/
122 6,744,979 cpu_core/cycles/
123 1,965,552 cpu_atom/cycles/
125 The first 'cycles' is core event, the second 'cycles' is atom event.
135 perf stat -e cycles \-- taskset -c 16 ./triad_loop
182 cpu_core/cycles/,
183 cpu_atom/cycles/,
195 perf stat -e cpu_core/cycles/
196 perf stat -e cpu_atom/cycles/
[all …]
H A Dperf.data-directory-format.txt51 Samples for 'cycles' event do not have CPU attribute set. Skipping 'cpu' field.
55 … perf 15316 2060795.480902: 1 cycles: ffffffffa2caa548 native_write_msr+0x8 (vmlinux)
56 … perf 15316 2060795.480906: 1 cycles: ffffffffa2caa548 native_write_msr+0x8 (vmlinux)
57 … perf 15316 2060795.480908: 7 cycles: ffffffffa2caa548 native_write_msr+0x8 (vmlinux)
58 … perf 15316 2060795.480910: 119 cycles: ffffffffa2caa54a native_write_msr+0xa (vmlinux)
59 …perf 15316 2060795.480912: 2109 cycles: ffffffffa2c9b7b0 native_apic_msr_write+0x0 (vmlinux)
60 …perf 15316 2060795.480914: 37606 cycles: ffffffffa2f121fe perf_event_addr_filters_exec+0x2e …
61 …uname 15316 2060795.480924: 588287 cycles: ffffffffa303a56d page_counter_try_charge+0x6d (vml…
62 … uname 15316 2060795.481067: 2261945 cycles: ffffffffa301438f kmem_cache_free+0x4f (vmlinux)
63 …uname 15316 2060795.481643: 2172167 cycles: 7f1a48c393c0 _IO_un_link+0x0 (/lib/x86_64-linu…
H A Dperf-daemon.txt120 [session-cycles]
136 [603350:cycles] perf record -m 10M -e cycles --overwrite --switch-output -a
149 [603350:cycles] perf record -m 10M -e cycles --overwrite --switch-output -a
150 base: /opt/perfdata/session-cycles
151 output: /opt/perfdata/session-cycles/output
153 ack: /opt/perfdata/session-cycles/ack
173 OK cycles
179 # perf daemon signal --session cycles
180 signal 12 sent to session 'cycles [603452]'
182 # tail -2 /opt/perfdata/session-cycles/output
[all …]
/openbmc/linux/Documentation/devicetree/bindings/mtd/
H A Dfsmc-nand.txt15 byte 0 TCLR : CLE to RE delay in number of AHB clock cycles, only 4 bits
17 cycles.
19 byte 2 THIZ : number of HCLK clock cycles during which the data bus is
21 Only valid for write transactions. Zero means zero cycles,
22 255 means 255 cycles.
23 byte 3 THOLD : number of HCLK clock cycles to hold the address (and data
25 one cycle, 255 means 256 cycles.
26 byte 4 TWAIT : number of HCLK clock cycles to assert the command to the
28 255 means 256 cycles.
29 byte 5 TSET : number of HCLK clock cycles to assert the address before the
[all …]
/openbmc/linux/drivers/net/ethernet/mellanox/mlx4/
H A Den_clock.c44 container_of(tc, struct mlx4_en_dev, cycles); in mlx4_en_read_clock()
139 mdev->cycles.mult = mult; in mlx4_en_phc_adjfine()
208 timecounter_init(&mdev->clock, &mdev->cycles, ns); in mlx4_en_phc_settime()
275 memset(&mdev->cycles, 0, sizeof(mdev->cycles)); in mlx4_en_init_timestamp()
276 mdev->cycles.read = mlx4_en_read_clock; in mlx4_en_init_timestamp()
277 mdev->cycles.mask = CLOCKSOURCE_MASK(48); in mlx4_en_init_timestamp()
278 mdev->cycles.shift = freq_to_shift(dev->caps.hca_core_clock); in mlx4_en_init_timestamp()
279 mdev->cycles.mult = in mlx4_en_init_timestamp()
280 clocksource_khz2mult(1000 * dev->caps.hca_core_clock, mdev->cycles.shift); in mlx4_en_init_timestamp()
281 mdev->nominal_c_mult = mdev->cycles.mult; in mlx4_en_init_timestamp()
[all …]
/openbmc/linux/drivers/net/wireless/ath/
H A Dhw.c144 u32 cycles, busy, rx, tx; in ath_hw_cycle_counters_update() local
151 cycles = REG_READ(ah, AR_CCCNT); in ath_hw_cycle_counters_update()
166 common->cc_ani.cycles += cycles; in ath_hw_cycle_counters_update()
171 common->cc_survey.cycles += cycles; in ath_hw_cycle_counters_update()
183 listen_time = (cc->cycles - cc->rx_frame - cc->tx_frame) / in ath_hw_get_listen_time()
/openbmc/linux/Documentation/devicetree/bindings/memory-controllers/
H A Dintel,ixp4xx-expansion-peripheral-props.yaml19 description: Address timing, extend address phase with n cycles.
24 description: Setup chip select timing, extend setup phase with n cycles.
29 description: Strobe timing, extend strobe phase with n cycles.
34 description: Hold timing, extend hold phase with n cycles.
39 description: Recovery timing, extend recovery phase with n cycles.
44 description: The type of cycles to use on the expansion bus for this
45 chip select. 0 = Intel cycles, 1 = Motorola cycles, 2 = HPI cycles.
70 description: Enable write cycles.
/openbmc/linux/arch/arm64/lib/
H A Ddelay.c26 void __delay(unsigned long cycles) in __delay() argument
31 u64 end = start + cycles; in __delay()
38 while ((get_cycles() - start) < cycles) in __delay()
44 while ((get_cycles() - start + timer_evt_period) < cycles) in __delay()
48 while ((get_cycles() - start) < cycles) in __delay()
/openbmc/linux/tools/perf/util/
H A Dparse-events.l249 cpu-cycles|cycles { return hw_term(yyscanner, PERF_COUNT_HW_CPU_CYCLES); }
250 stalled-cycles-frontend|idle-cycles-frontend { return hw_term(yyscanner, PERF_COUNT_HW_STALLED_CYCL…
251 stalled-cycles-backend|idle-cycles-backend { return hw_term(yyscanner, PERF_COUNT_HW_STALLED_CYCLES…
257 bus-cycles { return hw_term(yyscanner, PERF_COUNT_HW_BUS_CYCLES); }
258 ref-cycles { return hw_term(yyscanner, PERF_COUNT_HW_REF_CPU_CYCLES); }
302 cpu-cycles|cycles { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_HW_CPU_CYCLES); }
303 stalled-cycles-frontend|idle-cycles-frontend { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT…
304 stalled-cycles-backend|idle-cycles-backend { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_H…
310 bus-cycles { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_HW_BUS_CYCLES); }
311 ref-cycles { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_HW_REF_CPU_CYCLES); }
H A Dblock-info.c106 bi->cycles = ch->cycles; in init_block_info()
122 u64 cycles = 0; in block_info__process_sym() local
146 cycles += bi->cycles_aggr / bi->num_aggr; in block_info__process_sym()
158 *block_cycles_aggr += cycles; in block_info__process_sym()
229 static void cycles_string(u64 cycles, char *buf, int size) in cycles_string() argument
231 if (cycles >= 1000000) in cycles_string()
233 else if (cycles >= 1000) in cycles_string()
234 scnprintf(buf, size, "%.1fK", (double)cycles / 1000.0); in cycles_string()
236 scnprintf(buf, size, "%1d", cycles); in cycles_string()
419 block_info__process_sym(he, bh, &block_report->cycles, in process_block_report()
[all …]
/openbmc/linux/arch/xtensa/include/asm/
H A 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()
/openbmc/linux/drivers/pwm/
H A Dpwm-berlin.c97 u64 cycles; in berlin_pwm_config() local
99 cycles = clk_get_rate(bpc->clk); in berlin_pwm_config()
100 cycles *= period_ns; in berlin_pwm_config()
101 do_div(cycles, NSEC_PER_SEC); in berlin_pwm_config()
103 if (cycles > BERLIN_PWM_MAX_TCNT) { in berlin_pwm_config()
105 cycles >>= 12; // Prescaled by 4096 in berlin_pwm_config()
107 if (cycles > BERLIN_PWM_MAX_TCNT) in berlin_pwm_config()
111 period = cycles; in berlin_pwm_config()
112 cycles *= duty_ns; in berlin_pwm_config()
113 do_div(cycles, period_ns); in berlin_pwm_config()
[all …]
H A Dpwm-xilinx.c35 u64 cycles) in xilinx_timer_tlr_cycles() argument
37 WARN_ON(cycles < 2 || cycles - 2 > priv->max); in xilinx_timer_tlr_cycles()
40 return cycles - 2; in xilinx_timer_tlr_cycles()
41 return priv->max - cycles + 2; in xilinx_timer_tlr_cycles()
47 u64 cycles; in xilinx_timer_get_period() local
50 cycles = tlr + 2; in xilinx_timer_get_period()
52 cycles = (u64)priv->max - tlr + 2; in xilinx_timer_get_period()
55 return DIV64_U64_ROUND_UP(cycles * NSEC_PER_SEC, in xilinx_timer_get_period()
/openbmc/linux/tools/perf/tests/shell/
H A Dstat_bpf_counters.sh25 if ! perf stat -e cycles --bpf-counters true > /dev/null 2>&1; then
28 perf --no-pager stat -e cycles --bpf-counters true || true
33 base_cycles=$(perf stat --no-big-num -e cycles -- perf bench sched messaging -g 1 -l 100 -t 2>&1 | …
38 bpf_cycles=$(perf stat --no-big-num --bpf-counters -e cycles -- perf bench sched messaging -g 1 -l …
H A Dstat+shadow_stat.sh11 perf stat -a -e cycles sleep 1 2>&1 | grep -e cpu_core && exit 2
15 perf stat -a --no-big-num -e cycles,instructions sleep 1 2>&1 | \
16 grep -e cycles -e instructions | \
46 perf stat -a -A --no-big-num -e cycles,instructions sleep 1 2>&1 | \
/openbmc/u-boot/arch/xtensa/lib/
H A Dtime.c24 static void delay_cycles(unsigned cycles) in delay_cycles() argument
27 unsigned expiry = get_ccount() + cycles; in delay_cycles()
39 for (i = cycles >> 4U; i > 0; --i) in delay_cycles()
41 fake_ccount += cycles; in delay_cycles()
/openbmc/linux/tools/virtio/ringtest/
H A Dmain.h21 static inline void wait_cycles(unsigned long long cycles) in wait_cycles() argument
26 while (__rdtsc() - t < cycles) {} in wait_cycles()
33 static inline void wait_cycles(unsigned long long cycles) in wait_cycles() argument
35 asm volatile("0: brctg %0,0b" : : "d" (cycles)); in wait_cycles()
43 static inline void wait_cycles(unsigned long long cycles) in wait_cycles() argument

12345678910>>...20