Home
last modified time | relevance | path

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

12

/Linux-v5.4/tools/testing/selftests/powerpc/pmu/ebb/
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()
89 FAIL_IF(!ebb_check_count(4, orig_period, 2 * (max_period - orig_period))); in test_body()
/Linux-v5.4/arch/arc/kernel/
Dperf_event.c35 u64 max_period; member
173 hwc->sample_period = arc_pmu->max_period; in arc_pmu_event_init()
266 if (left > arc_pmu->max_period) in arc_pmu_event_set_period()
267 left = arc_pmu->max_period; in arc_pmu_event_set_period()
269 value = arc_pmu->max_period - left; in arc_pmu_event_set_period()
380 lower_32_bits(arc_pmu->max_period)); in arc_pmu_add()
382 upper_32_bits(arc_pmu->max_period)); in arc_pmu_add()
604 arc_pmu->max_period = (1ULL << counter_size) / 2 - 1ULL; in arc_pmu_device_probe()
/Linux-v5.4/drivers/pwm/
Dpwm-atmel.c58 u32 max_period; member
123 for (*pres = 0; cycles > atmel_pwm->data->cfg.max_period; cycles >>= 1) in atmel_pwm_calculate_cprd_and_pres()
288 .max_period = 0xffff,
302 .max_period = 0xffff,
316 .max_period = 0xffffffff,
/Linux-v5.4/drivers/perf/
Darm_pmu.c126 u64 max_period; in armpmu_event_set_period() local
129 max_period = arm_pmu_event_max_period(event); in armpmu_event_set_period()
150 if (left > (max_period >> 1)) in armpmu_event_set_period()
151 left = (max_period >> 1); in armpmu_event_set_period()
155 armpmu->write_counter(event, (u64)(-left) & max_period); in armpmu_event_set_period()
167 u64 max_period = arm_pmu_event_max_period(event); in armpmu_event_update() local
177 delta = (new_raw_count - prev_raw_count) & max_period; in armpmu_event_update()
Darm_spe_pmu.c287 u64 max_period = SYS_PMSIRR_EL1_INTERVAL_MASK in arm_spe_event_sanitise_period() local
292 else if (period > max_period) in arm_spe_event_sanitise_period()
293 period = max_period; in arm_spe_event_sanitise_period()
295 period &= max_period; in arm_spe_event_sanitise_period()
Dxgene_pmu.c98 u64 max_period; member
1005 delta = (new_raw_count - prev_raw_count) & pmu_dev->max_period; in xgene_perf_event_update()
1098 pmu_dev->max_period = PMU_V3_CNT_MAX_PERIOD; in xgene_init_perf()
1100 pmu_dev->max_period = PMU_CNT_MAX_PERIOD; in xgene_init_perf()
/Linux-v5.4/drivers/media/platform/sti/hva/
Dhva-debugfs.c107 dbg->max_period, in format_ctx()
135 dbg->max_period = max(period, dbg->max_period); in hva_dbg_perf_begin()
Dhva.h198 u32 max_period; member
/Linux-v5.4/arch/nds32/kernel/
Dperf_event_cpu.c209 if (left > (s64)nds32_pmu->max_period) in nds32_pmu_event_set_period()
210 left = nds32_pmu->max_period; in nds32_pmu_event_set_period()
218 nds32_pmu->write_counter(event, (u64)(-left) & nds32_pmu->max_period); in nds32_pmu_event_set_period()
652 cpu_pmu->max_period = 0xFFFFFFFF; /* Maximum counts */ in nds32_pmu_init()
844 hwc->sample_period = nds32_pmu->max_period >> 1; in __hw_perf_event_init()
961 delta = (new_raw_count - prev_raw_count) & nds32_pmu->max_period; in nds32_pmu_event_update()
/Linux-v5.4/arch/x86/events/amd/
Dibs.c89 u64 max_period; member
322 overflow = perf_event_set_period(hwc, 1<<4, perf_ibs->max_period, period); in perf_ibs_set_period()
536 .max_period = IBS_FETCH_MAX_CNT << 4,
561 .max_period = IBS_OP_MAX_CNT << 4,
Dcore.c894 .max_period = (1ULL << 47) - 1,
/Linux-v5.4/arch/x86/include/asm/
Dintel_telemetry.h46 u8 max_period; member
/Linux-v5.4/arch/csky/kernel/
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-v5.4/arch/mips/kernel/
Dperf_event_mipsxx.c77 u64 max_period; member
392 if (left > mipspmu.max_period) { in mipspmu_event_set_period()
393 left = mipspmu.max_period; in mipspmu_event_set_period()
1337 hwc->sample_period = mipspmu.max_period; in __hw_perf_event_init()
1806 mipspmu.max_period = (1ULL << 63) - 1; in init_hw_perf_events()
1813 mipspmu.max_period = (1ULL << 31) - 1; in init_hw_perf_events()
/Linux-v5.4/drivers/platform/x86/
Dintel_telemetry_pltdrv.c612 telm_conf->ioss_config.max_period = TELEM_MAX_PERIOD(read_buf); in telemetry_setup()
635 telm_conf->pss_config.max_period = TELEM_MAX_PERIOD(read_buf); in telemetry_setup()
787 *pss_max_period = telm_conf->pss_config.max_period; in telemetry_plt_get_sampling_period()
789 *ioss_max_period = telm_conf->ioss_config.max_period; in telemetry_plt_get_sampling_period()
/Linux-v5.4/arch/x86/events/intel/
Dp6.c215 .max_period = (1ULL << 31) - 1,
Dknc.c304 .max_period = (1ULL << 39) - 1,
/Linux-v5.4/drivers/scsi/pcmcia/
Dnsp_cs.c422 unsigned int max_period; member
469 for ( i = 0; sync_table->max_period != 0; i++, sync_table++) { in nsp_analyze_sdtr()
471 period <= sync_table->max_period ) { in nsp_analyze_sdtr()
476 if (period != 0 && sync_table->max_period == 0) { in nsp_analyze_sdtr()
/Linux-v5.4/drivers/acpi/apei/
Dghes.c665 unsigned long long now, duration, period, max_period = 0; in ghes_estatus_cache_add() local
689 if (period > max_period) { in ghes_estatus_cache_add()
690 max_period = period; in ghes_estatus_cache_add()
/Linux-v5.4/drivers/scsi/
Desp_scsi.h516 u32 max_period; member
Desp_scsi.c258 esp->max_period = ((35 * esp->ccycle) / 1000); in esp_reset_esp()
285 esp->max_period = (esp->max_period + 3)>>2; in esp_reset_esp()
1509 if (period > esp->max_period) { in esp_msgin_sdtr()
/Linux-v5.4/arch/nds32/include/asm/
Dpmu.h84 u64 max_period; member
/Linux-v5.4/arch/x86/events/
Dcore.c414 hwc->sample_period = x86_pmu.max_period; in x86_setup_perfctr()
1218 if (left > x86_pmu.max_period) in x86_perf_event_set_period()
1219 left = x86_pmu.max_period; in x86_perf_event_set_period()
1828 pr_info("... max period: %016Lx\n", x86_pmu.max_period); in init_hw_perf_events()
Dperf_event.h597 u64 max_period; member
/Linux-v5.4/drivers/net/wireless/ti/wlcore/
Dconf.h1097 u8 max_period; member

12