Home
last modified time | relevance | path

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

12

/openbmc/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()
/openbmc/linux/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()
/openbmc/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()
/openbmc/linux/drivers/perf/
H A Driscv_pmu.c212 uint64_t max_period = riscv_pmu_ctr_get_width_mask(event); in riscv_pmu_event_set_period() local
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()
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 Darm_spe_pmu.c326 u64 max_period = PMSIRR_EL1_INTERVAL_MASK; in arm_spe_event_sanitise_period() local
330 else if (period > max_period) in arm_spe_event_sanitise_period()
331 period = max_period; in arm_spe_event_sanitise_period()
333 period &= max_period; in arm_spe_event_sanitise_period()
H A Driscv_pmu_sbi.c640 uint64_t max_period; in pmu_sbi_start_overflow_mask() local
655 max_period = riscv_pmu_ctr_get_width_mask(event); in pmu_sbi_start_overflow_mask()
656 init_val = local64_read(&hwc->prev_count) & max_period; in pmu_sbi_start_overflow_mask()
/openbmc/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 * mult; in inv_validate_period()
113 const int64_t period_max = ts->max_period * ts->mult; in inv_align_timestamp_it()
/openbmc/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
/openbmc/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()
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()
/openbmc/linux/include/linux/iio/common/
H A Dinv_sensors_timestamp.h58 uint32_t max_period; member
/openbmc/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()
/openbmc/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()
/openbmc/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()
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()
/openbmc/linux/arch/x86/include/asm/
H A Dintel_telemetry.h47 u8 max_period; member
/openbmc/linux/drivers/leds/
H A Dleds-mt6323.c115 u16 max_period; member
319 if (period > spec->max_period) in mt6323_led_set_blink()
688 .max_period = 10000,
/openbmc/linux/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()
/openbmc/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()
/openbmc/linux/arch/x86/events/intel/
H A Dp6.c215 .max_period = (1ULL << 31) - 1,
H A Dknc.c304 .max_period = (1ULL << 39) - 1,
/openbmc/linux/drivers/leds/rgb/
H A Dleds-qcom-lpg.c278 u64 max_period, min_period; in lpg_calc_freq() local
320 max_period = div64_u64((u64)NSEC_PER_SEC * max_res * LPG_MAX_PREDIV * (1 << LPG_MAX_M), in lpg_calc_freq()
322 if (period > max_period) in lpg_calc_freq()
323 period = max_period; in lpg_calc_freq()
/openbmc/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()
/openbmc/linux/drivers/scsi/
H A Desp_scsi.h526 u32 max_period; member
/openbmc/linux/drivers/acpi/apei/
H A Dghes.c842 unsigned long long now, duration, period, max_period = 0; in ghes_estatus_cache_add() local
867 if (period > max_period) { in ghes_estatus_cache_add()
868 max_period = period; in ghes_estatus_cache_add()

12