/Linux-v5.10/arch/x86/lib/ |
D | delay.c | 37 static void (*delay_halt_fn)(u64 start, u64 cycles) __ro_after_init; 63 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() 125 static void delay_halt_mwaitx(u64 unused, u64 cycles) in delay_halt_mwaitx() argument 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() [all …]
|
/Linux-v5.10/drivers/gpu/drm/i915/gt/ |
D | selftest_gt_pm.c | 44 u32 cycles[5]; in measure_clocks() local 49 cycles[i] = -ENGINE_READ_FW(engine, RING_TIMESTAMP); in measure_clocks() 55 cycles[i] += ENGINE_READ_FW(engine, RING_TIMESTAMP); in measure_clocks() 60 sort(cycles, 5, sizeof(*cycles), cmp_u32, NULL); in measure_clocks() 61 *out_cycles = (cycles[1] + 2 * cycles[2] + cycles[3]) / 4; in measure_clocks() 105 u32 cycles; in live_gt_clocks() local 113 measure_clocks(engine, &cycles, &dt); in live_gt_clocks() 115 time = i915_cs_timestamp_ticks_to_ns(engine->i915, cycles); in live_gt_clocks() 119 engine->name, cycles, time, dt, expected, in live_gt_clocks() 129 if (9 * expected < 8 * cycles || 8 * expected > 9 * cycles) { in live_gt_clocks()
|
/Linux-v5.10/drivers/memory/ |
D | jz4780-nemc.c | 163 uint32_t smcr, val, cycles; in jz4780_nemc_configure_bank() local 209 cycles = jz4780_nemc_ns_to_cycles(nemc, val); in jz4780_nemc_configure_bank() 210 if (cycles > nemc->soc_info->tas_tah_cycles_max) { in jz4780_nemc_configure_bank() 212 val, cycles); in jz4780_nemc_configure_bank() 216 smcr |= cycles << NEMC_SMCR_TAS_SHIFT; in jz4780_nemc_configure_bank() 221 cycles = jz4780_nemc_ns_to_cycles(nemc, val); in jz4780_nemc_configure_bank() 222 if (cycles > nemc->soc_info->tas_tah_cycles_max) { in jz4780_nemc_configure_bank() 224 val, cycles); in jz4780_nemc_configure_bank() 228 smcr |= cycles << NEMC_SMCR_TAH_SHIFT; in jz4780_nemc_configure_bank() 233 cycles = jz4780_nemc_ns_to_cycles(nemc, val); in jz4780_nemc_configure_bank() [all …]
|
/Linux-v5.10/Documentation/devicetree/bindings/bus/ |
D | qcom,ebi2.txt | 34 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 101 2 means 2 cycles between ADV and OE. Valid values 0, 1, 2 or 3. 102 - qcom,xmem-read-hold-cycles: the length in cycles of the first segment of a [all …]
|
/Linux-v5.10/Documentation/devicetree/bindings/mtd/ |
D | fsmc-nand.txt | 15 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 …]
|
/Linux-v5.10/drivers/net/ethernet/mellanox/mlx4/ |
D | en_clock.c | 44 container_of(tc, struct mlx4_en_dev, cycles); in mlx4_en_read_clock() 141 mdev->cycles.mult = neg_adj ? mult - diff : mult + diff; in mlx4_en_phc_adjfreq() 210 timecounter_init(&mdev->clock, &mdev->cycles, ns); in mlx4_en_phc_settime() 277 memset(&mdev->cycles, 0, sizeof(mdev->cycles)); in mlx4_en_init_timestamp() 278 mdev->cycles.read = mlx4_en_read_clock; in mlx4_en_init_timestamp() 279 mdev->cycles.mask = CLOCKSOURCE_MASK(48); in mlx4_en_init_timestamp() 280 mdev->cycles.shift = freq_to_shift(dev->caps.hca_core_clock); in mlx4_en_init_timestamp() 281 mdev->cycles.mult = in mlx4_en_init_timestamp() 282 clocksource_khz2mult(1000 * dev->caps.hca_core_clock, mdev->cycles.shift); in mlx4_en_init_timestamp() 283 mdev->nominal_c_mult = mdev->cycles.mult; in mlx4_en_init_timestamp() [all …]
|
/Linux-v5.10/tools/perf/Documentation/ |
D | perf.data-directory-format.txt | 51 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…
|
/Linux-v5.10/drivers/net/wireless/ath/ |
D | hw.c | 144 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()
|
/Linux-v5.10/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
D | clock.c | 92 struct mlx5_clock *clock = container_of(cc, struct mlx5_clock, cycles); in read_internal_timer() 112 clock_info->cycles = clock->tc.cycle_last; in mlx5_update_clock_info_page() 113 clock_info->mult = clock->cycles.mult; in mlx5_update_clock_info_page() 175 timecounter_init(&clock->tc, &clock->cycles, ns); in mlx5_ptp_settime() 188 u64 cycles, ns; in mlx5_ptp_gettimex() local 192 cycles = mlx5_read_internal_timer(mdev, sts); in mlx5_ptp_gettimex() 193 ns = timecounter_cyc2time(&clock->tc, cycles); in mlx5_ptp_gettimex() 238 clock->cycles.mult = neg_adj ? clock->nominal_c_mult - diff : in mlx5_ptp_adjfreq() 360 cycles_delta = div64_u64(nsec_delta << clock->cycles.shift, in mlx5_perout_configure() 361 clock->cycles.mult); in mlx5_perout_configure() [all …]
|
/Linux-v5.10/drivers/pwm/ |
D | pwm-berlin.c | 96 u64 cycles; in berlin_pwm_config() local 98 cycles = clk_get_rate(pwm->clk); in berlin_pwm_config() 99 cycles *= period_ns; in berlin_pwm_config() 100 do_div(cycles, NSEC_PER_SEC); in berlin_pwm_config() 102 if (cycles > BERLIN_PWM_MAX_TCNT) { in berlin_pwm_config() 104 cycles >>= 12; // Prescaled by 4096 in berlin_pwm_config() 106 if (cycles > BERLIN_PWM_MAX_TCNT) in berlin_pwm_config() 110 period = cycles; in berlin_pwm_config() 111 cycles *= duty_ns; in berlin_pwm_config() 112 do_div(cycles, period_ns); in berlin_pwm_config() [all …]
|
D | pwm-atmel.c | 131 unsigned long long cycles = state->period; in atmel_pwm_calculate_cprd_and_pres() local 135 cycles *= clk_get_rate(atmel_pwm->clk); in atmel_pwm_calculate_cprd_and_pres() 136 do_div(cycles, NSEC_PER_SEC); in atmel_pwm_calculate_cprd_and_pres() 143 shift = fls(cycles) - atmel_pwm->data->cfg.period_bits; in atmel_pwm_calculate_cprd_and_pres() 150 cycles >>= *pres; in atmel_pwm_calculate_cprd_and_pres() 155 *cprd = cycles; in atmel_pwm_calculate_cprd_and_pres() 163 unsigned long long cycles = state->duty_cycle; in atmel_pwm_calculate_cdty() local 165 cycles *= cprd; in atmel_pwm_calculate_cdty() 166 do_div(cycles, state->period); in atmel_pwm_calculate_cdty() 167 *cdty = cprd - cycles; in atmel_pwm_calculate_cdty()
|
/Linux-v5.10/tools/perf/util/ |
D | block-info.c | 106 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() 204 ratio = (double)bi->cycles / (double)block_fmt->total_cycles; in block_total_cycles_pct_entry() 219 l = ((double)bi_l->cycles / in block_total_cycles_pct_sort() 221 r = ((double)bi_r->cycles / in block_total_cycles_pct_sort() 229 static void cycles_string(u64 cycles, char *buf, int size) in cycles_string() argument 231 if (cycles >= 1000000) in cycles_string() 232 scnprintf(buf, size, "%.1fM", (double)cycles / 1000000.0); in cycles_string() [all …]
|
/Linux-v5.10/arch/xtensa/include/asm/ |
D | delay.h | 40 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()
|
/Linux-v5.10/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_ptp.c | 64 struct cyclecounter cycles; member 98 container_of(cc, struct mlxsw_sp_ptp_clock, cycles); in mlxsw_sp1_ptp_read_frc() 116 u64 cycles = (u64) nsec; in mlxsw_sp1_ptp_ns2cycles() local 118 cycles <<= tc->cc->shift; in mlxsw_sp1_ptp_ns2cycles() 119 cycles = div_u64(cycles, tc->cc->mult); in mlxsw_sp1_ptp_ns2cycles() 121 return cycles; in mlxsw_sp1_ptp_ns2cycles() 128 u64 next_sec, next_sec_in_nsec, cycles; in mlxsw_sp1_ptp_phc_settime() local 137 cycles = mlxsw_sp1_ptp_ns2cycles(&clock->tc, next_sec_in_nsec); in mlxsw_sp1_ptp_phc_settime() 140 mlxsw_reg_mtpps_vpin_pack(mtpps_pl, cycles); in mlxsw_sp1_ptp_phc_settime() 173 clock->cycles.mult = neg_adj ? clock->nominal_c_mult - diff : in mlxsw_sp1_ptp_adjfine() [all …]
|
/Linux-v5.10/arch/arm/plat-omap/ |
D | counter_32k.c | 51 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()
|
/Linux-v5.10/tools/virtio/ringtest/ |
D | main.h | 20 static inline void wait_cycles(unsigned long long cycles) in wait_cycles() argument 25 while (__rdtsc() - t < cycles) {} in wait_cycles() 32 static inline void wait_cycles(unsigned long long cycles) in wait_cycles() argument 34 asm volatile("0: brctg %0,0b" : : "d" (cycles)); in wait_cycles() 42 static inline void wait_cycles(unsigned long long cycles) in wait_cycles() argument
|
/Linux-v5.10/lib/vdso/ |
D | gettimeofday.c | 14 u64 vdso_calc_delta(u64 cycles, u64 last, u64 mask, u32 mult) in vdso_calc_delta() argument 16 return ((cycles - last) & mask) * mult; in vdso_calc_delta() 42 static inline bool vdso_cycles_ok(u64 cycles) in vdso_cycles_ok() argument 55 u64 cycles, last, ns; in do_hres_timens() local 71 cycles = __arch_get_hw_counter(vd->clock_mode, vd); in do_hres_timens() 72 if (unlikely(!vdso_cycles_ok(cycles))) in do_hres_timens() 76 ns += vdso_calc_delta(cycles, last, vd->mask, vd->mult); in do_hres_timens() 111 u64 cycles, last, sec, ns; in do_hres() local 141 cycles = __arch_get_hw_counter(vd->clock_mode, vd); in do_hres() 142 if (unlikely(!vdso_cycles_ok(cycles))) in do_hres() [all …]
|
/Linux-v5.10/Documentation/m68k/ |
D | buddha-driver.rst | 147 497ns Select (7 clock cycles) , IOR/IOW after 172ns (2 clock cycles) 152 639ns Select (9 clock cycles), IOR/IOW after 243ns (3 clock cycles) 155 781ns Select (11 clock cycles), IOR/IOW after 314ns (4 clock cycles) 158 355ns Select (5 clock cycles), IOR/IOW after 101ns (1 clock cycle) 161 355ns Select (5 clock cycles), IOR/IOW after 172ns (2 clock cycles) 164 355ns Select (5 clock cycles), IOR/IOW after 243ns (3 clock cycles) 167 1065ns Select (15 clock cycles), IOR/IOW after 314ns (4 clock cycles) 170 355ns Select, (5 clock cycles), IOR/IOW after 101ns (1 clock cycle) 176 781ns select, IOR/IOW after 4 clock cycles (=314ns) aktive. 180 system: Sometimes two more clock cycles are inserted by the [all …]
|
/Linux-v5.10/tools/perf/tests/attr/ |
D | README | 50 perf record --group -e cycles,instructions kill (test-record-group) 51 perf record -e '{cycles,instructions}' kill (test-record-group1) 52 perf record -e '{cycles/period=1/,instructions/period=2/}:S' kill (test-record-group2) 57 perf record -c 1 --pfm-events=cycles:period=2 (test-record-pfm-period) 59 perf stat -e cycles kill (test-stat-basic) 64 perf stat --group -e cycles,instructions kill (test-stat-group) 65 perf stat -e '{cycles,instructions}' kill (test-stat-group1) 66 perf stat -i -e cycles kill (test-stat-no-inherit)
|
/Linux-v5.10/arch/h8300/lib/ |
D | delay.c | 14 void __delay(unsigned long cycles) in __delay() argument 17 "bne 1b":"=r"(cycles):"0"(cycles)); in __delay()
|
/Linux-v5.10/arch/x86/include/asm/vdso/ |
D | gettimeofday.h | 287 static inline bool arch_vdso_cycles_ok(u64 cycles) in arch_vdso_cycles_ok() argument 289 return (s64)cycles >= 0; in arch_vdso_cycles_ok() 312 u64 vdso_calc_delta(u64 cycles, u64 last, u64 mask, u32 mult) in vdso_calc_delta() argument 314 if (cycles > last) in vdso_calc_delta() 315 return (cycles - last) * mult; in vdso_calc_delta()
|
/Linux-v5.10/tools/power/cpupower/bench/ |
D | benchmark.c | 113 " for %lius\n", _round + 1, config->cycles, in start_benchmark() 125 for (cycle = 0; cycle < config->cycles; cycle++) { in start_benchmark() 139 performance_time / config->cycles); in start_benchmark() 151 for (cycle = 0; cycle < config->cycles; cycle++) { in start_benchmark() 169 powersave_time / config->cycles); in start_benchmark()
|
/Linux-v5.10/arch/arm64/lib/ |
D | delay.c | 26 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()
|
/Linux-v5.10/arch/m68k/coldfire/ |
D | sltimers.c | 99 u32 cycles, scnt; in mcfslt_read_clk() local 103 cycles = mcfslt_cnt; in mcfslt_read_clk() 105 cycles += mcfslt_cycles_per_jiffy; in mcfslt_read_clk() 111 return cycles + ((mcfslt_cycles_per_jiffy - 1) - scnt); in mcfslt_read_clk()
|
/Linux-v5.10/sound/firewire/ |
D | amdtp-stream-trace.h | 17 …TP_PROTO(const struct amdtp_stream *s, u32 cycles, const __be32 *cip_header, unsigned int payload_… 18 TP_ARGS(s, cycles, cip_header, payload_length, data_blocks, data_block_counter, index), 34 __entry->second = cycles / CYCLES_PER_SECOND; 35 __entry->cycle = cycles % CYCLES_PER_SECOND;
|