/Linux-v4.19/drivers/memory/ |
D | jz4780-nemc.c | 158 uint32_t smcr, val, cycles; in jz4780_nemc_configure_bank() local 204 cycles = jz4780_nemc_ns_to_cycles(nemc, val); in jz4780_nemc_configure_bank() 205 if (cycles > 15) { in jz4780_nemc_configure_bank() 207 val, cycles); in jz4780_nemc_configure_bank() 211 smcr |= cycles << NEMC_SMCR_TAS_SHIFT; in jz4780_nemc_configure_bank() 216 cycles = jz4780_nemc_ns_to_cycles(nemc, val); in jz4780_nemc_configure_bank() 217 if (cycles > 15) { in jz4780_nemc_configure_bank() 219 val, cycles); in jz4780_nemc_configure_bank() 223 smcr |= cycles << NEMC_SMCR_TAH_SHIFT; in jz4780_nemc_configure_bank() 228 cycles = jz4780_nemc_ns_to_cycles(nemc, val); in jz4780_nemc_configure_bank() [all …]
|
/Linux-v4.19/sound/firewire/ |
D | amdtp-stream-trace.h | 17 …TP_PROTO(const struct amdtp_stream *s, u32 cycles, u32 *cip_header, unsigned int payload_length, u… 18 TP_ARGS(s, cycles, cip_header, payload_length, index), 33 __entry->second = cycles / CYCLES_PER_SECOND; 34 __entry->cycle = cycles % CYCLES_PER_SECOND; 61 …TP_PROTO(const struct amdtp_stream *s, u32 cycles, __be32 *cip_header, unsigned int payload_length… 62 TP_ARGS(s, cycles, cip_header, payload_length, index), 77 __entry->second = cycles / CYCLES_PER_SECOND; 78 __entry->cycle = cycles % CYCLES_PER_SECOND; 105 …TP_PROTO(const struct amdtp_stream *s, u32 cycles, unsigned int payload_quadlets, unsigned int dat… 106 TP_ARGS(s, cycles, payload_quadlets, data_blocks, index), [all …]
|
/Linux-v4.19/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-v4.19/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-v4.19/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-v4.19/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-v4.19/drivers/pwm/ |
D | pwm-berlin.c | 97 u64 cycles; in berlin_pwm_config() local 99 cycles = clk_get_rate(pwm->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 …]
|
D | pwm-atmel.c | 118 unsigned long long cycles = state->period; in atmel_pwm_calculate_cprd_and_pres() local 121 cycles *= clk_get_rate(atmel_pwm->clk); in atmel_pwm_calculate_cprd_and_pres() 122 do_div(cycles, NSEC_PER_SEC); in atmel_pwm_calculate_cprd_and_pres() 124 for (*pres = 0; cycles > PWM_MAX_PRD; cycles >>= 1) in atmel_pwm_calculate_cprd_and_pres() 132 *cprd = cycles; in atmel_pwm_calculate_cprd_and_pres() 140 unsigned long long cycles = state->duty_cycle; in atmel_pwm_calculate_cdty() local 142 cycles *= cprd; in atmel_pwm_calculate_cdty() 143 do_div(cycles, state->period); in atmel_pwm_calculate_cdty() 144 *cdty = cprd - cycles; in atmel_pwm_calculate_cdty()
|
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
D | clock.c | 70 struct mlx5_clock *clock = container_of(cc, struct mlx5_clock, cycles); in read_internal_timer() 90 clock_info->cycles = clock->tc.cycle_last; in mlx5_update_clock_info_page() 91 clock_info->mult = clock->cycles.mult; in mlx5_update_clock_info_page() 151 timecounter_init(&clock->tc, &clock->cycles, ns); in mlx5_ptp_settime() 208 clock->cycles.mult = neg_adj ? clock->nominal_c_mult - diff : in mlx5_ptp_adjfreq() 313 cycles_delta = div64_u64(nsec_delta << clock->cycles.shift, in mlx5_perout_configure() 314 clock->cycles.mult); in mlx5_perout_configure() 477 cycles_delta = div64_u64(nsec_delta << clock->cycles.shift, in mlx5_pps_event() 478 clock->cycles.mult); in mlx5_pps_event() 502 clock->cycles.read = read_internal_timer; in mlx5_init_clock() [all …]
|
/Linux-v4.19/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-v4.19/arch/arm/plat-omap/ |
D | counter_32k.c | 54 static cycles_t cycles; variable 62 last_cycles = cycles; in omap_read_persistent_clock64() 63 cycles = sync32k_cnt_reg ? readl_relaxed(sync32k_cnt_reg) : 0; in omap_read_persistent_clock64() 65 nsecs = clocksource_cyc2ns(cycles - last_cycles, in omap_read_persistent_clock64()
|
/Linux-v4.19/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-v4.19/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-v4.19/Documentation/m68k/ |
D | README.buddha | 142 497ns Select (7 clock cycles) , IOR/IOW after 172ns (2 clock cycles) 148 639ns Select (9 clock cycles), IOR/IOW after 243ns (3 clock cycles) 152 781ns Select (11 clock cycles), IOR/IOW after 314ns (4 clock cycles) 156 355ns Select (5 clock cycles), IOR/IOW after 101ns (1 clock cycle) 160 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) 168 1065ns Select (15 clock cycles), IOR/IOW after 314ns (4 clock cycles) 172 355ns Select, (5 clock cycles), IOR/IOW after 101ns (1 clock cycle) 178 781ns select, IOR/IOW after 4 clock cycles (=314ns) aktive. 182 system: Sometimes two more clock cycles are inserted by the [all …]
|
/Linux-v4.19/lib/ |
D | find_bit_benchmark.c | 111 cycles_t cycles; in test_find_next_and_bit() local 113 cycles = get_cycles(); in test_find_next_and_bit() 116 cycles = get_cycles() - cycles; in test_find_next_and_bit() 118 (u64)cycles, cnt); in test_find_next_and_bit()
|
/Linux-v4.19/tools/power/cpupower/bench/ |
D | benchmark.c | 126 " for %lius\n", _round + 1, config->cycles, in start_benchmark() 138 for (cycle = 0; cycle < config->cycles; cycle++) { in start_benchmark() 152 performance_time / config->cycles); in start_benchmark() 164 for (cycle = 0; cycle < config->cycles; cycle++) { in start_benchmark() 182 powersave_time / config->cycles); in start_benchmark()
|
D | README-BENCH | 35 will be run X time in a row (cycles): 39 cycles=20 50 25ms load/sleep time repeated 20 times (cycles). 51 50ms load/sleep time repeated 20 times (cycles). 53 100ms load/sleep time repeated 20 times (cycles). 83 But if ondemand always kicks in in the middle of the load sleep cycles, it 116 -n, --cycles=<int> load/sleep cycles to get an average value to compare
|
/Linux-v4.19/arch/arm64/lib/ |
D | delay.c | 37 void __delay(unsigned long cycles) in __delay() argument 45 while ((get_cycles() - start + timer_evt_period) < cycles) in __delay() 49 while ((get_cycles() - start) < cycles) in __delay()
|
/Linux-v4.19/tools/perf/util/ |
D | parse-events.l | 304 cpu-cycles|cycles { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_HW_CPU_CYCLES); } 305 stalled-cycles-frontend|idle-cycles-frontend { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT… 306 stalled-cycles-backend|idle-cycles-backend { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_H… 312 bus-cycles { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_HW_BUS_CYCLES); } 313 ref-cycles { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_HW_REF_CPU_CYCLES); } 332 cycles-ct { return str(yyscanner, PE_KERNEL_PMU_EVENT); } 333 cycles-t { return str(yyscanner, PE_KERNEL_PMU_EVENT); }
|
/Linux-v4.19/arch/m68k/coldfire/ |
D | sltimers.c | 104 u32 cycles, scnt; in mcfslt_read_clk() local 108 cycles = mcfslt_cnt; in mcfslt_read_clk() 110 cycles += mcfslt_cycles_per_jiffy; in mcfslt_read_clk() 116 return cycles + ((mcfslt_cycles_per_jiffy - 1) - scnt); in mcfslt_read_clk()
|
/Linux-v4.19/kernel/locking/ |
D | test-ww_mutex.c | 290 struct test_cycle *cycles; in __test_cycle() local 294 cycles = kmalloc_array(nthreads, sizeof(*cycles), GFP_KERNEL); in __test_cycle() 295 if (!cycles) in __test_cycle() 299 struct test_cycle *cycle = &cycles[n]; in __test_cycle() 303 cycle->b_mutex = &cycles[0].a_mutex; in __test_cycle() 305 cycle->b_mutex = &cycles[n + 1].a_mutex; in __test_cycle() 308 cycle->a_signal = &cycles[last].b_signal; in __test_cycle() 310 cycle->a_signal = &cycles[n - 1].b_signal; in __test_cycle() 318 queue_work(wq, &cycles[n].work); in __test_cycle() 324 struct test_cycle *cycle = &cycles[n]; in __test_cycle() [all …]
|
/Linux-v4.19/drivers/clocksource/ |
D | timer-prima2.c | 77 u64 cycles; in sirfsoc_timer_read() local 82 cycles = readl_relaxed(sirfsoc_timer_base + SIRFSOC_TIMER_LATCHED_HI); in sirfsoc_timer_read() 83 cycles = (cycles << 32) | in sirfsoc_timer_read() 86 return cycles; in sirfsoc_timer_read()
|
/Linux-v4.19/arch/arm/mach-omap2/ |
D | vc.c | 433 u32 cycles; in omap4_calc_volt_ramp() local 438 cycles = voltdm->sys_clk.rate / 1000 * time / 1000; in omap4_calc_volt_ramp() 440 cycles /= 64; in omap4_calc_volt_ramp() 446 if (cycles > 63) { in omap4_calc_volt_ramp() 447 cycles /= 4; in omap4_calc_volt_ramp() 452 if (cycles > 63) { in omap4_calc_volt_ramp() 453 cycles /= 2; in omap4_calc_volt_ramp() 458 if (cycles > 63) { in omap4_calc_volt_ramp() 459 cycles /= 4; in omap4_calc_volt_ramp() 464 if (cycles > 63) { in omap4_calc_volt_ramp() [all …]
|
/Linux-v4.19/Documentation/misc-devices/ |
D | isl29003 | 46 0: 2^16 cycles (default) 47 1: 2^12 cycles 48 2: 2^8 cycles 49 3: 2^4 cycles
|
/Linux-v4.19/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) 57 perf stat -e cycles kill (test-stat-basic) 62 perf stat --group -e cycles,instructions kill (test-stat-group) 63 perf stat -e '{cycles,instructions}' kill (test-stat-group1) 64 perf stat -i -e cycles kill (test-stat-no-inherit)
|