Home
last modified time | relevance | path

Searched refs:max_period (Results 1 – 25 of 28) sorted by relevance

12

/linux/tools/testing/selftests/powerpc/pmu/ebb/
H A Dlost_exception_test.c23 int i, orig_period, max_period; in test_body() local
49 orig_period = max_period = sample_period = 400; in test_body()
71 if (sample_period > max_period) in test_body()
72 max_period = sample_period; in test_body()
88 FAIL_IF(!ebb_check_count(4, orig_period, 2 * (max_period - orig_period))); in test_body()
/linux/arch/arc/kernel/
H A Dperf_event.c197 u64 max_period; member
335 hwc->sample_period = arc_pmu->max_period; in arc_pmu_event_init()
428 if (left > arc_pmu->max_period) in arc_pmu_event_set_period()
429 left = arc_pmu->max_period; in arc_pmu_event_set_period()
431 value = arc_pmu->max_period - left; in arc_pmu_event_set_period()
542 lower_32_bits(arc_pmu->max_period)); in arc_pmu_add()
544 upper_32_bits(arc_pmu->max_period)); in arc_pmu_add()
766 arc_pmu->max_period = (1ULL << counter_size) / 2 - 1ULL; in arc_pmu_device_probe()
/linux/drivers/perf/
H A Driscv_pmu.c208 uint64_t max_period = riscv_pmu_ctr_get_width_mask(event); in riscv_pmu_event_set_period() local
230 if (left > (max_period >> 1)) in riscv_pmu_event_set_period()
231 left = (max_period >> 1); in riscv_pmu_event_set_period()
244 uint64_t max_period = riscv_pmu_ctr_get_width_mask(event); in riscv_pmu_start() local
252 init_val = local64_read(&hwc->prev_count) & max_period; in riscv_pmu_start()
H A Darm_pmu.c206 u64 max_period; in armpmu_event_set_period() local
209 max_period = arm_pmu_event_max_period(event); in armpmu_event_set_period()
230 if (left > (max_period >> 1)) in armpmu_event_set_period()
231 left = (max_period >> 1); in armpmu_event_set_period()
235 armpmu->write_counter(event, (u64)(-left) & max_period); in armpmu_event_set_period()
247 u64 max_period = arm_pmu_event_max_period(event); in armpmu_event_update() local
257 delta = (new_raw_count - prev_raw_count) & max_period; in armpmu_event_update()
H A Driscv_pmu_sbi.c873 uint64_t max_period; in pmu_sbi_start_ovf_ctrs_sbi() local
889 max_period = riscv_pmu_ctr_get_width_mask(event); in pmu_sbi_start_ovf_ctrs_sbi()
890 init_val = local64_read(&hwc->prev_count) & max_period; in pmu_sbi_start_ovf_ctrs_sbi()
911 u64 max_period, init_val = 0; in pmu_sbi_start_ovf_ctrs_snapshot() local
919 max_period = riscv_pmu_ctr_get_width_mask(event); in pmu_sbi_start_ovf_ctrs_snapshot()
920 init_val = local64_read(&hwc->prev_count) & max_period; in pmu_sbi_start_ovf_ctrs_snapshot()
/linux/drivers/pwm/
H A Dpwm-bcm2835.c66 u64 max_period; in bcm2835_pwm_apply() local
84 max_period = DIV_ROUND_UP_ULL((u64)U32_MAX * NSEC_PER_SEC + NSEC_PER_SEC / 2, pc->rate) - 1; in bcm2835_pwm_apply()
86 if (state->period > max_period) in bcm2835_pwm_apply()
/linux/drivers/iio/common/inv_sensors/
H A Dinv_sensors_timestamp.c49 ts->max_period = INV_SENSORS_TIMESTAMP_MAX(chip->clock_period, chip->jitter); in inv_sensors_timestamp_init()
87 period_max = ts->max_period * ts->mult; in inv_validate_period()
113 const int64_t period_max = (int64_t)ts->max_period * ts->mult; in inv_align_timestamp_it()
/linux/arch/loongarch/kernel/
H A Dperf_event.c131 u64 max_period; member
321 if (left > loongarch_pmu.max_period) { in loongarch_pmu_event_set_period()
322 left = loongarch_pmu.max_period; in loongarch_pmu_event_set_period()
796 hwc->sample_period = loongarch_pmu.max_period; in __hw_perf_event_init()
858 loongarch_pmu.max_period = (1ULL << 63) - 1; in init_hw_perf_events()
/linux/drivers/media/platform/st/sti/hva/
H A Dhva-debugfs.c107 dbg->max_period, in format_ctx()
135 dbg->max_period = max(period, dbg->max_period); in hva_dbg_perf_begin()
H A Dhva.h198 u32 max_period; member
/linux/arch/mips/kernel/
H A Dperf_event_mipsxx.c77 u64 max_period; member
431 if (left > mipspmu.max_period) { in mipspmu_event_set_period()
432 left = mipspmu.max_period; in mipspmu_event_set_period()
1529 hwc->sample_period = mipspmu.max_period; in __hw_perf_event_init()
2026 mipspmu.max_period = (1ULL << 47) - 1; in init_hw_perf_events()
2031 mipspmu.max_period = (1ULL << 63) - 1; in init_hw_perf_events()
2039 mipspmu.max_period = (1ULL << 31) - 1; in init_hw_perf_events()
/linux/arch/csky/kernel/
H A Dperf_event.c45 u64 max_period; member
899 if (left > (s64)csky_pmu.max_period) in csky_pmu_event_set_period()
900 left = csky_pmu.max_period; in csky_pmu_event_set_period()
910 csky_pmu.max_period); in csky_pmu_event_set_period()
1309 csky_pmu.max_period = BIT_ULL(csky_pmu.count_width) - 1; in csky_pmu_device_probe()
/linux/drivers/leds/
H A Dleds-mt6323.c115 u16 max_period; member
319 if (period > spec->max_period) in mt6323_led_set_blink()
678 .max_period = 10000,
/linux/arch/x86/include/asm/
H A Dintel_telemetry.h47 u8 max_period; member
/linux/arch/x86/events/zhaoxin/
H A Dcore.c476 .max_period = (1ULL << 47) - 1,
552 x86_pmu.max_period = x86_pmu.cntval_mask >> 1; in zhaoxin_pmu_init()
/linux/arch/x86/events/intel/
H A Dp6.c215 .max_period = (1ULL << 31) - 1,
H A Dknc.c304 .max_period = (1ULL << 39) - 1,
/linux/drivers/scsi/pcmcia/
H A Dnsp_cs.c422 unsigned int max_period; member
467 for (; sync_table->max_period != 0; sync_table++) { in nsp_analyze_sdtr()
469 period <= sync_table->max_period ) { in nsp_analyze_sdtr()
474 if (period != 0 && sync_table->max_period == 0) { in nsp_analyze_sdtr()
/linux/drivers/scsi/
H A Desp_scsi.h526 u32 max_period; member
H A Desp_scsi.c256 esp->max_period = ((35 * esp->ccycle) / 1000); in esp_reset_esp()
288 esp->max_period = (esp->max_period + 3)>>2; in esp_reset_esp()
1504 if (period > esp->max_period) { in esp_msgin_sdtr()
/linux/drivers/leds/rgb/
H A Dleds-qcom-lpg.c428 u64 max_period, min_period; in lpg_calc_freq() local
470 max_period = div64_u64((u64)NSEC_PER_SEC * max_res * LPG_MAX_PREDIV * (1 << LPG_MAX_M), in lpg_calc_freq()
472 if (period > max_period) in lpg_calc_freq()
473 period = max_period; in lpg_calc_freq()
/linux/drivers/acpi/apei/
H A Dghes.c926 unsigned long long now, duration, period, max_period = 0; in ghes_estatus_cache_add() local
951 if (period > max_period) { in ghes_estatus_cache_add()
952 max_period = period; in ghes_estatus_cache_add()
/linux/drivers/net/wireless/ti/wlcore/
H A Dconf.h1097 u8 max_period; member
H A Dacx.c1708 acx->max_period = conf->max_period; in wl12xx_acx_config_hangover()
/linux/arch/x86/events/
H A Dcore.c488 hwc->sample_period = x86_pmu.max_period; in x86_setup_perfctr()
1400 if (left > x86_pmu.max_period) in x86_perf_event_set_period()
1401 left = x86_pmu.max_period; in x86_perf_event_set_period()
2051 pr_info("... max period: %016Lx\n", x86_pmu.max_period); in x86_pmu_show_pmu_cap()

12