Lines Matching refs:stats
18 struct intel_engine_execlists_stats *stats = &engine->stats.execlists; in intel_engine_context_in() local
21 if (stats->active) { in intel_engine_context_in()
22 stats->active++; in intel_engine_context_in()
28 write_seqcount_begin(&stats->lock); in intel_engine_context_in()
30 stats->start = ktime_get(); in intel_engine_context_in()
31 stats->active++; in intel_engine_context_in()
33 write_seqcount_end(&stats->lock); in intel_engine_context_in()
36 GEM_BUG_ON(!stats->active); in intel_engine_context_in()
41 struct intel_engine_execlists_stats *stats = &engine->stats.execlists; in intel_engine_context_out() local
44 GEM_BUG_ON(!stats->active); in intel_engine_context_out()
45 if (stats->active > 1) { in intel_engine_context_out()
46 stats->active--; in intel_engine_context_out()
51 write_seqcount_begin(&stats->lock); in intel_engine_context_out()
53 stats->active--; in intel_engine_context_out()
54 stats->total = ktime_add(stats->total, in intel_engine_context_out()
55 ktime_sub(ktime_get(), stats->start)); in intel_engine_context_out()
57 write_seqcount_end(&stats->lock); in intel_engine_context_out()