Home
last modified time | relevance | path

Searched refs:max_period (Results 1 - 25 of 69) sorted by relevance

123

/kernel/linux/linux-5.10/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()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-5.10/arch/arc/kernel/
H A 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()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-6.6/drivers/perf/
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()
227 * effect we are reducing max_period to account for 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.c212 uint64_t max_period = riscv_pmu_ctr_get_width_mask(event); in riscv_pmu_event_set_period() local
231 * effect we are reducing max_period to account for in riscv_pmu_event_set_period()
234 if (left > (max_period >> 1)) in riscv_pmu_event_set_period()
235 left = (max_period >> 1); in riscv_pmu_event_set_period()
248 uint64_t max_period = riscv_pmu_ctr_get_width_mask(event); in riscv_pmu_start() local
256 init_val = local64_read(&hwc->prev_count) & max_period; in riscv_pmu_start()
/kernel/linux/linux-6.6/drivers/pwm/
H A Dpwm-bcm2835.c68 u64 max_period; in bcm2835_pwm_apply() local
91 max_period = DIV_ROUND_UP_ULL((u64)U32_MAX * NSEC_PER_SEC + NSEC_PER_SEC / 2, rate) - 1; in bcm2835_pwm_apply()
93 if (state->period > max_period) in bcm2835_pwm_apply()
/kernel/linux/linux-5.10/drivers/perf/
H A Darm_pmu.c202 u64 max_period; in armpmu_event_set_period() local
205 max_period = arm_pmu_event_max_period(event); in armpmu_event_set_period()
223 * effect we are reducing max_period to account for in armpmu_event_set_period()
226 if (left > (max_period >> 1)) in armpmu_event_set_period()
227 left = (max_period >> 1); in armpmu_event_set_period()
231 armpmu->write_counter(event, (u64)(-left) & max_period); in armpmu_event_set_period()
243 u64 max_period = arm_pmu_event_max_period(event); in armpmu_event_update() local
253 delta = (new_raw_count - prev_raw_count) & max_period; in armpmu_event_update()
H A Darm_spe_pmu.c305 u64 max_period = SYS_PMSIRR_EL1_INTERVAL_MASK in arm_spe_event_sanitise_period() local
310 else if (period > max_period) in arm_spe_event_sanitise_period()
311 period = max_period; in arm_spe_event_sanitise_period()
313 period &= max_period; in arm_spe_event_sanitise_period()
/kernel/linux/linux-5.10/drivers/media/platform/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()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-5.10/arch/loongarch/kernel/
H A Dperf_event.c132 u64 max_period; member
322 if (left > loongarch_pmu.max_period) { in loongarch_pmu_event_set_period()
323 left = loongarch_pmu.max_period; in loongarch_pmu_event_set_period()
797 hwc->sample_period = loongarch_pmu.max_period; in __hw_perf_event_init()
885 loongarch_pmu.max_period = (1ULL << 63) - 1; in init_hw_perf_events()
/kernel/linux/linux-6.6/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()
806 hwc->sample_period = loongarch_pmu.max_period; in __hw_perf_event_init()
868 loongarch_pmu.max_period = (1ULL << 63) - 1; in init_hw_perf_events()
/kernel/linux/linux-6.6/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()
79 period_max = ts->max_period * mult; in inv_validate_period()
/kernel/linux/linux-6.6/include/linux/iio/common/
H A Dinv_sensors_timestamp.h47 * @max_period: maximal acceptable clock period
58 uint32_t max_period; member
/kernel/linux/linux-5.10/arch/x86/events/amd/
H A Dibs.c89 u64 max_period; member
333 overflow = perf_event_set_period(hwc, 1<<4, perf_ibs->max_period, period); in perf_ibs_set_period()
565 .max_period = IBS_FETCH_MAX_CNT << 4,
591 .max_period = IBS_OP_MAX_CNT << 4,
809 perf_ibs_op.max_period |= IBS_OP_MAX_CNT_EXT_MASK; in perf_event_ibs_init()
/kernel/linux/linux-5.10/arch/nds32/kernel/
H A 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()
/kernel/linux/linux-5.10/arch/x86/include/asm/
H A Dintel_telemetry.h47 u8 max_period; member
/kernel/linux/linux-6.6/arch/x86/include/asm/
H A Dintel_telemetry.h47 u8 max_period; member
/kernel/linux/linux-5.10/drivers/platform/x86/
H A Dintel_telemetry_pltdrv.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()
/kernel/linux/linux-6.6/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()
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()
/kernel/linux/linux-6.6/drivers/leds/
H A Dleds-mt6323.c108 * @max_period: Maximum period for all LEDs
115 u16 max_period; member
319 if (period > spec->max_period) in mt6323_led_set_blink()
688 .max_period = 10000,
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-6.6/arch/x86/events/amd/
H A Dibs.c90 u64 max_period; member
337 overflow = perf_event_set_period(hwc, 1<<4, perf_ibs->max_period, period); in perf_ibs_set_period()
674 .max_period = IBS_FETCH_MAX_CNT << 4,
699 .max_period = IBS_OP_MAX_CNT << 4,
1220 perf_ibs_op.max_period |= IBS_OP_MAX_CNT_EXT_MASK; in perf_ibs_op_init()

Completed in 25 milliseconds

123