Home
last modified time | relevance | path

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

/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/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.c210 u64 max_period; in armpmu_event_set_period() local
213 max_period = arm_pmu_event_max_period(event); in armpmu_event_set_period()
234 if (left > (max_period >> 1)) in armpmu_event_set_period()
235 left = (max_period >> 1); in armpmu_event_set_period()
239 armpmu->write_counter(event, (u64)(-left) & max_period); in armpmu_event_set_period()
251 u64 max_period = arm_pmu_event_max_period(event); in armpmu_event_update() local
261 delta = (new_raw_count - prev_raw_count) & max_period; in armpmu_event_update()
H A Driscv_pmu_sbi.c961 uint64_t max_period; in pmu_sbi_start_ovf_ctrs_sbi() local
979 max_period = riscv_pmu_ctr_get_width_mask(event); in pmu_sbi_start_ovf_ctrs_sbi()
980 init_val = local64_read(&hwc->prev_count) & max_period; in pmu_sbi_start_ovf_ctrs_sbi()
1001 u64 max_period, init_val = 0; in pmu_sbi_start_ovf_ctrs_snapshot() local
1009 max_period = riscv_pmu_ctr_get_width_mask(event); in pmu_sbi_start_ovf_ctrs_snapshot()
1010 init_val = local64_read(&hwc->prev_count) & max_period; in pmu_sbi_start_ovf_ctrs_snapshot()
H A Darm_spe_pmu.c391 u64 max_period = PMSIRR_EL1_INTERVAL_MASK; in arm_spe_event_sanitise_period() local
404 period = clamp_t(u64, period, min_period, max_period) & max_period; in arm_spe_event_sanitise_period()
/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()
810 hwc->sample_period = loongarch_pmu.max_period; in __hw_perf_event_init()
873 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()
/linux/arch/x86/include/asm/
H A Dintel_telemetry.h47 u8 max_period; member
/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/events/amd/
H A Dibs.c91 u64 max_period; member
382 perf_ibs->max_period, period); in perf_ibs_set_period()
803 .max_period = IBS_FETCH_MAX_CNT << 4,
829 .max_period = IBS_OP_MAX_CNT << 4,
1461 perf_ibs_op.max_period |= IBS_OP_MAX_CNT_EXT_MASK; in perf_ibs_op_init()
/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/platform/x86/intel/telemetry/
H A Dpltdrv.c600 telm_conf->ioss_config.max_period = TELEM_MAX_PERIOD(read_buf); in telemetry_setup()
623 telm_conf->pss_config.max_period = TELEM_MAX_PERIOD(read_buf); in telemetry_setup()
/linux/drivers/leds/rgb/
H A Dleds-qcom-lpg.c431 u64 max_period, min_period; in lpg_calc_freq() local
473 max_period = div64_u64((u64)NSEC_PER_SEC * max_res * LPG_MAX_PREDIV * (1 << LPG_MAX_M), in lpg_calc_freq()
475 if (period > max_period) in lpg_calc_freq()
476 period = max_period; in lpg_calc_freq()
/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/acpi/apei/
H A Dghes.c1086 unsigned long long now, duration, period, max_period = 0; in ghes_estatus_cache_add() local
1111 if (period > max_period) { in ghes_estatus_cache_add()
1112 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.c1707 acx->max_period = conf->max_period; in wl12xx_acx_config_hangover()
H A Dacx.h908 u8 max_period; member
/linux/arch/x86/events/
H A Dcore.c499 hwc->sample_period = x86_pmu.max_period; in x86_setup_perfctr()
1436 if (left > x86_pmu.max_period) in x86_perf_event_set_period()
1437 left = x86_pmu.max_period; in x86_perf_event_set_period()
2126 pr_info("... max period: %016llx\n", x86_pmu.max_period); in x86_pmu_show_pmu_cap()
H A Dperf_event.h877 u64 max_period; member
/linux/arch/x86/events/intel/
H A Dcore.c2889 if (left == x86_pmu.max_period) { in icl_set_topdown_event_period()
4575 if (start > x86_pmu.max_period) in intel_pmu_freq_start_period()
4576 start = x86_pmu.max_period; in intel_pmu_freq_start_period()
4800 if (event->attr.sample_period > x86_pmu.max_period) in intel_pmu_hw_config()
6305 .max_period = (1ULL<<31) - 1,
6358 .max_period = (1ULL << 31) - 1,
8507 x86_pmu.max_period = x86_pmu.cntval_mask >> 1; in intel_pmu_init()
/linux/drivers/net/wireless/ti/wl12xx/
H A Dmain.c356 .max_period = 20,