Home
last modified time | relevance | path

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

12

/linux-6.12.1/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()
88 FAIL_IF(!ebb_check_count(4, orig_period, 2 * (max_period - orig_period))); in test_body()
/linux-6.12.1/arch/arc/kernel/
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-6.12.1/drivers/perf/
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()
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()
Driscv_pmu_sbi.c871 uint64_t max_period; in pmu_sbi_start_ovf_ctrs_sbi() local
887 max_period = riscv_pmu_ctr_get_width_mask(event); in pmu_sbi_start_ovf_ctrs_sbi()
888 init_val = local64_read(&hwc->prev_count) & max_period; in pmu_sbi_start_ovf_ctrs_sbi()
909 u64 max_period, init_val = 0; in pmu_sbi_start_ovf_ctrs_snapshot() local
917 max_period = riscv_pmu_ctr_get_width_mask(event); in pmu_sbi_start_ovf_ctrs_snapshot()
918 init_val = local64_read(&hwc->prev_count) & max_period; in pmu_sbi_start_ovf_ctrs_snapshot()
Darm_spe_pmu.c304 u64 max_period = PMSIRR_EL1_INTERVAL_MASK; in arm_spe_event_sanitise_period() local
308 else if (period > max_period) in arm_spe_event_sanitise_period()
309 period = max_period; in arm_spe_event_sanitise_period()
311 period &= max_period; in arm_spe_event_sanitise_period()
/linux-6.12.1/drivers/pwm/
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-6.12.1/drivers/iio/common/inv_sensors/
Dinv_sensors_timestamp.c49 ts->max_period = INV_SENSORS_TIMESTAMP_MAX(chip->clock_period, chip->jitter); in inv_sensors_timestamp_init()
83 period_max = ts->max_period * ts->mult; in inv_validate_period()
109 const int64_t period_max = ts->max_period * ts->mult; in inv_align_timestamp_it()
/linux-6.12.1/arch/loongarch/kernel/
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-6.12.1/drivers/media/platform/st/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-6.12.1/include/linux/iio/common/
Dinv_sensors_timestamp.h58 uint32_t max_period; member
/linux-6.12.1/arch/mips/kernel/
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-6.12.1/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-6.12.1/drivers/platform/x86/intel/telemetry/
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()
775 *pss_max_period = telm_conf->pss_config.max_period; in telemetry_plt_get_sampling_period()
777 *ioss_max_period = telm_conf->ioss_config.max_period; in telemetry_plt_get_sampling_period()
/linux-6.12.1/arch/x86/include/asm/
Dintel_telemetry.h47 u8 max_period; member
/linux-6.12.1/drivers/leds/
Dleds-mt6323.c115 u16 max_period; member
319 if (period > spec->max_period) in mt6323_led_set_blink()
678 .max_period = 10000,
/linux-6.12.1/arch/x86/events/amd/
Dibs.c90 u64 max_period; member
340 overflow = perf_event_set_period(hwc, 1<<4, perf_ibs->max_period, period); in perf_ibs_set_period()
677 .max_period = IBS_FETCH_MAX_CNT << 4,
702 .max_period = IBS_OP_MAX_CNT << 4,
1223 perf_ibs_op.max_period |= IBS_OP_MAX_CNT_EXT_MASK; in perf_ibs_op_init()
/linux-6.12.1/arch/x86/events/zhaoxin/
Dcore.c476 .max_period = (1ULL << 47) - 1,
552 x86_pmu.max_period = x86_pmu.cntval_mask >> 1; in zhaoxin_pmu_init()
/linux-6.12.1/arch/x86/events/intel/
Dp6.c215 .max_period = (1ULL << 31) - 1,
Dknc.c304 .max_period = (1ULL << 39) - 1,
/linux-6.12.1/drivers/scsi/pcmcia/
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-6.12.1/drivers/scsi/
Desp_scsi.h526 u32 max_period; member
/linux-6.12.1/drivers/leds/rgb/
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-6.12.1/drivers/acpi/apei/
Dghes.c928 unsigned long long now, duration, period, max_period = 0; in ghes_estatus_cache_add() local
953 if (period > max_period) { in ghes_estatus_cache_add()
954 max_period = period; in ghes_estatus_cache_add()

12