Lines Matching full:sample

164 		pmu->sample[__I915_SAMPLE_RC6].cur = val;  in get_rc6()
174 val += pmu->sample[__I915_SAMPLE_RC6].cur; in get_rc6()
177 if (val < pmu->sample[__I915_SAMPLE_RC6_LAST_REPORTED].cur) in get_rc6()
178 val = pmu->sample[__I915_SAMPLE_RC6_LAST_REPORTED].cur; in get_rc6()
180 pmu->sample[__I915_SAMPLE_RC6_LAST_REPORTED].cur = val; in get_rc6()
192 pmu->sample[__I915_SAMPLE_RC6].cur = __get_rc6(&i915->gt); in park_rc6()
257 add_sample(struct i915_pmu_sample *sample, u32 val) in add_sample() argument
259 sample->cur += val; in add_sample()
283 add_sample(&pmu->sample[I915_SAMPLE_WAIT], period_ns); in engine_sample()
285 add_sample(&pmu->sample[I915_SAMPLE_SEMA], period_ns); in engine_sample()
287 /* No need to sample when busy stats are supported. */ in engine_sample()
295 * engine being busy. Therefore, we record the sample as being in engine_sample()
304 add_sample(&pmu->sample[I915_SAMPLE_BUSY], period_ns); in engine_sample()
338 add_sample_mult(struct i915_pmu_sample *sample, u32 val, u32 mul) in add_sample_mult() argument
340 sample->cur += mul_u32_u32(val, mul); in add_sample_mult()
383 add_sample_mult(&pmu->sample[__I915_SAMPLE_FREQ_ACT], in frequency_sample()
388 add_sample_mult(&pmu->sample[__I915_SAMPLE_FREQ_REQ], in frequency_sample()
452 enum drm_i915_pmu_engine_sample sample) in engine_event_status() argument
454 switch (sample) { in engine_event_status()
553 u8 sample = engine_event_sample(event); in __i915_pmu_event_read() local
562 } else if (sample == I915_SAMPLE_BUSY && in __i915_pmu_event_read()
569 val = engine->pmu.sample[sample].cur; in __i915_pmu_event_read()
575 div_u64(pmu->sample[__I915_SAMPLE_FREQ_ACT].cur, in __i915_pmu_event_read()
580 div_u64(pmu->sample[__I915_SAMPLE_FREQ_REQ].cur, in __i915_pmu_event_read()
632 pmu->sample[__I915_SAMPLE_RC6_LAST_REPORTED].cur = 0; in i915_pmu_enable()
633 pmu->sample[__I915_SAMPLE_RC6].cur = __get_rc6(&i915->gt); in i915_pmu_enable()
650 u8 sample = engine_event_sample(event); in i915_pmu_enable() local
659 BUILD_BUG_ON(ARRAY_SIZE(engine->pmu.sample) != in i915_pmu_enable()
661 GEM_BUG_ON(sample >= ARRAY_SIZE(engine->pmu.enable_count)); in i915_pmu_enable()
662 GEM_BUG_ON(sample >= ARRAY_SIZE(engine->pmu.sample)); in i915_pmu_enable()
663 GEM_BUG_ON(engine->pmu.enable_count[sample] == ~0); in i915_pmu_enable()
665 engine->pmu.enable |= BIT(sample); in i915_pmu_enable()
666 engine->pmu.enable_count[sample]++; in i915_pmu_enable()
692 u8 sample = engine_event_sample(event); in i915_pmu_disable() local
699 GEM_BUG_ON(sample >= ARRAY_SIZE(engine->pmu.enable_count)); in i915_pmu_disable()
700 GEM_BUG_ON(sample >= ARRAY_SIZE(engine->pmu.sample)); in i915_pmu_disable()
701 GEM_BUG_ON(engine->pmu.enable_count[sample] == 0); in i915_pmu_disable()
707 if (--engine->pmu.enable_count[sample] == 0) in i915_pmu_disable()
708 engine->pmu.enable &= ~BIT(sample); in i915_pmu_disable()
829 .sample = (__sample), \
873 enum drm_i915_pmu_engine_sample sample; in create_event_attributes() member
896 engine_events[i].sample)) in create_event_attributes()
949 engine_events[i].sample)) in create_event_attributes()
962 engine_events[i].sample)); in create_event_attributes()