/linux-6.3-rc2/tools/testing/selftests/powerpc/pmu/ebb/ |
A D | lost_exception_test.c | 23 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.3-rc2/drivers/perf/ |
A D | riscv_pmu.c | 147 uint64_t max_period = riscv_pmu_ctr_get_width_mask(event); in riscv_pmu_event_set_period() local 169 if (left > (max_period >> 1)) in riscv_pmu_event_set_period() 170 left = (max_period >> 1); in riscv_pmu_event_set_period() 181 uint64_t max_period = riscv_pmu_ctr_get_width_mask(event); in riscv_pmu_start() local 192 init_val = local64_read(&hwc->prev_count) & max_period; in riscv_pmu_start()
|
A D | arm_pmu.c | 204 u64 max_period; in armpmu_event_set_period() local 207 max_period = arm_pmu_event_max_period(event); in armpmu_event_set_period() 228 if (left > (max_period >> 1)) in armpmu_event_set_period() 229 left = (max_period >> 1); in armpmu_event_set_period() 233 armpmu->write_counter(event, (u64)(-left) & max_period); in armpmu_event_set_period() 245 u64 max_period = arm_pmu_event_max_period(event); in armpmu_event_update() local 255 delta = (new_raw_count - prev_raw_count) & max_period; in armpmu_event_update()
|
A D | arm_spe_pmu.c | 327 u64 max_period = PMSIRR_EL1_INTERVAL_MASK; in arm_spe_event_sanitise_period() local 331 else if (period > max_period) in arm_spe_event_sanitise_period() 332 period = max_period; in arm_spe_event_sanitise_period() 334 period &= max_period; in arm_spe_event_sanitise_period()
|
A D | riscv_pmu_sbi.c | 582 uint64_t max_period; in pmu_sbi_start_overflow_mask() local 597 max_period = riscv_pmu_ctr_get_width_mask(event); in pmu_sbi_start_overflow_mask() 598 init_val = local64_read(&hwc->prev_count) & max_period; in pmu_sbi_start_overflow_mask()
|
A D | xgene_pmu.c | 98 u64 max_period; member 1002 delta = (new_raw_count - prev_raw_count) & pmu_dev->max_period; in xgene_perf_event_update() 1095 pmu_dev->max_period = PMU_V3_CNT_MAX_PERIOD; in xgene_init_perf() 1097 pmu_dev->max_period = PMU_CNT_MAX_PERIOD; in xgene_init_perf()
|
/linux-6.3-rc2/drivers/pwm/ |
A D | pwm-bcm2835.c | 68 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()
|
/linux-6.3-rc2/arch/arc/kernel/ |
A D | perf_event.c | 197 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.3-rc2/drivers/media/platform/st/sti/hva/ |
A D | hva-debugfs.c | 107 dbg->max_period, in format_ctx() 135 dbg->max_period = max(period, dbg->max_period); in hva_dbg_perf_begin()
|
A D | hva.h | 198 u32 max_period; member
|
/linux-6.3-rc2/arch/loongarch/kernel/ |
A D | perf_event.c | 131 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()
|
/linux-6.3-rc2/arch/mips/kernel/ |
A D | perf_event_mipsxx.c | 77 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.3-rc2/arch/x86/events/amd/ |
A D | ibs.c | 90 u64 max_period; member 312 overflow = perf_event_set_period(hwc, 1<<4, perf_ibs->max_period, period); in perf_ibs_set_period() 649 .max_period = IBS_FETCH_MAX_CNT << 4, 674 .max_period = IBS_OP_MAX_CNT << 4, 1215 perf_ibs_op.max_period |= IBS_OP_MAX_CNT_EXT_MASK; in perf_ibs_op_init()
|
/linux-6.3-rc2/arch/csky/kernel/ |
A D | perf_event.c | 45 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.3-rc2/arch/x86/include/asm/ |
A D | intel_telemetry.h | 47 u8 max_period; member
|
/linux-6.3-rc2/drivers/platform/x86/intel/telemetry/ |
A D | pltdrv.c | 600 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.3-rc2/arch/x86/events/intel/ |
A D | p6.c | 215 .max_period = (1ULL << 31) - 1,
|
A D | knc.c | 304 .max_period = (1ULL << 39) - 1,
|
/linux-6.3-rc2/arch/x86/events/zhaoxin/ |
A D | core.c | 476 .max_period = (1ULL << 47) - 1, 552 x86_pmu.max_period = x86_pmu.cntval_mask >> 1; in zhaoxin_pmu_init()
|
/linux-6.3-rc2/drivers/leds/rgb/ |
A D | leds-qcom-lpg.c | 266 u64 max_period; in lpg_calc_freq() local 286 max_period = (u64)NSEC_PER_SEC * LPG_RESOLUTION * 6 * (1 << LPG_MAX_M) / 1024; in lpg_calc_freq() 287 if (period > max_period) in lpg_calc_freq() 288 period = max_period; in lpg_calc_freq()
|
/linux-6.3-rc2/drivers/scsi/pcmcia/ |
A D | nsp_cs.c | 422 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.3-rc2/drivers/scsi/ |
A D | esp_scsi.h | 526 u32 max_period; member
|
/linux-6.3-rc2/drivers/acpi/apei/ |
A D | ghes.c | 808 unsigned long long now, duration, period, max_period = 0; in ghes_estatus_cache_add() local 833 if (period > max_period) { in ghes_estatus_cache_add() 834 max_period = period; in ghes_estatus_cache_add()
|
/linux-6.3-rc2/drivers/net/wireless/ti/wlcore/ |
A D | conf.h | 1097 u8 max_period; member
|
/linux-6.3-rc2/arch/x86/events/ |
A D | core.c | 483 hwc->sample_period = x86_pmu.max_period; in x86_setup_perfctr() 1399 if (left > x86_pmu.max_period) in x86_perf_event_set_period() 1400 left = x86_pmu.max_period; in x86_perf_event_set_period() 2051 pr_info("... max period: %016Lx\n", x86_pmu.max_period); in x86_pmu_show_pmu_cap()
|