• Home
  • Raw
  • Download

Lines Matching refs:sample

194 static u64 read_sample(struct i915_pmu *pmu, unsigned int gt_id, int sample)  in read_sample()  argument
196 return pmu->sample[gt_id][sample].cur; in read_sample()
200 store_sample(struct i915_pmu *pmu, unsigned int gt_id, int sample, u64 val) in store_sample() argument
202 pmu->sample[gt_id][sample].cur = val; in store_sample()
206 add_sample_mult(struct i915_pmu *pmu, unsigned int gt_id, int sample, u32 val, u32 mul) in add_sample_mult() argument
208 pmu->sample[gt_id][sample].cur += mul_u32_u32(val, mul); in add_sample_mult()
334 add_sample(struct i915_pmu_sample *sample, u32 val) in add_sample() argument
336 sample->cur += val; in add_sample()
360 add_sample(&pmu->sample[I915_SAMPLE_WAIT], period_ns); in engine_sample()
362 add_sample(&pmu->sample[I915_SAMPLE_SEMA], period_ns); in engine_sample()
381 add_sample(&pmu->sample[I915_SAMPLE_BUSY], period_ns); in engine_sample()
518 enum drm_i915_pmu_engine_sample sample) in engine_event_status() argument
520 switch (sample) { in engine_event_status()
637 u8 sample = engine_event_sample(event); in __i915_pmu_event_read() local
646 } else if (sample == I915_SAMPLE_BUSY && in __i915_pmu_event_read()
653 val = engine->pmu.sample[sample].cur; in __i915_pmu_event_read()
743 u8 sample = engine_event_sample(event); in i915_pmu_enable() local
752 BUILD_BUG_ON(ARRAY_SIZE(engine->pmu.sample) != in i915_pmu_enable()
754 GEM_BUG_ON(sample >= ARRAY_SIZE(engine->pmu.enable_count)); in i915_pmu_enable()
755 GEM_BUG_ON(sample >= ARRAY_SIZE(engine->pmu.sample)); in i915_pmu_enable()
756 GEM_BUG_ON(engine->pmu.enable_count[sample] == ~0); in i915_pmu_enable()
758 engine->pmu.enable |= BIT(sample); in i915_pmu_enable()
759 engine->pmu.enable_count[sample]++; in i915_pmu_enable()
787 u8 sample = engine_event_sample(event); in i915_pmu_disable() local
794 GEM_BUG_ON(sample >= ARRAY_SIZE(engine->pmu.enable_count)); in i915_pmu_disable()
795 GEM_BUG_ON(sample >= ARRAY_SIZE(engine->pmu.sample)); in i915_pmu_disable()
796 GEM_BUG_ON(engine->pmu.enable_count[sample] == 0); in i915_pmu_disable()
802 if (--engine->pmu.enable_count[sample] == 0) in i915_pmu_disable()
803 engine->pmu.enable &= ~BIT(sample); in i915_pmu_disable()
954 .sample = (__sample), \
1000 enum drm_i915_pmu_engine_sample sample; in create_event_attributes() member
1028 engine_events[i].sample)) in create_event_attributes()
1094 engine_events[i].sample)) in create_event_attributes()
1107 engine_events[i].sample)); in create_event_attributes()