I915_NUM_ENGINES
const unsigned int max = I915_NUM_ENGINES;
static const i915_reg_t _reg[I915_NUM_ENGINES] = {
BUILD_BUG_ON(BITS_PER_TYPE(engine->mask) < I915_NUM_ENGINES);
GENMASK(BITS_PER_TYPE(mask) - 1, I915_NUM_ENGINES));
} nodes[I915_NUM_ENGINES];
struct i915_request *requests[I915_NUM_ENGINES] = {};
(id__) < I915_NUM_ENGINES; \
struct intel_engine_cs *engine[I915_NUM_ENGINES];
BUILD_BUG_ON(I915_RESET_ENGINE + I915_NUM_ENGINES >
GEM_BUG_ON(id >= I915_NUM_ENGINES);
struct kthread_worker *worker[I915_NUM_ENGINES] = {};
arg = kmalloc_objs(*arg, I915_NUM_ENGINES);
memset(arg, 0, I915_NUM_ENGINES * sizeof(*arg));
memset(threads, 0, sizeof(*threads) * I915_NUM_ENGINES);
threads = kmalloc_objs(*threads, I915_NUM_ENGINES);
return i915_prandom_u32_max_state(I915_NUM_ENGINES, rnd);
timelines = kvmalloc_objs(*timelines, NUM_TIMELINES * I915_NUM_ENGINES);
timelines = kvmalloc_objs(*timelines, NUM_TIMELINES * I915_NUM_ENGINES);
} engine[I915_NUM_ENGINES];
u32 ads_regset_count[I915_NUM_ENGINES];
BUILD_BUG_ON(ilog2(VIRTUAL_ENGINES) < I915_NUM_ENGINES);
static const struct decode_info *ring_decode_info[I915_NUM_ENGINES][8] = {
struct intel_vgpu_execlist execlist[I915_NUM_ENGINES];
struct list_head workload_q_head[I915_NUM_ENGINES];
struct intel_context *shadow[I915_NUM_ENGINES];
DECLARE_BITMAP(shadow_ctx_desc_updated, I915_NUM_ENGINES);
DECLARE_BITMAP(tlb_handle_pending, I915_NUM_ENGINES);
void *ring_scan_buffer[I915_NUM_ENGINES];
int ring_scan_buffer_size[I915_NUM_ENGINES];
} last_ctx[I915_NUM_ENGINES];
u32 hws_pga[I915_NUM_ENGINES];
struct notifier_block shadow_ctx_notifier_block[I915_NUM_ENGINES];
int ctx_mmio_count[I915_NUM_ENGINES];
u32 control_table[I915_NUM_ENGINES][GEN9_MOCS_SIZE];
bitmap_zero(s->shadow_ctx_desc_updated, I915_NUM_ENGINES);
bitmap_zero(s->tlb_handle_pending, I915_NUM_ENGINES);
struct intel_vgpu_workload *current_workload[I915_NUM_ENGINES];
struct intel_vgpu *engine_owner[I915_NUM_ENGINES];
struct task_struct *thread[I915_NUM_ENGINES];
wait_queue_head_t waitq[I915_NUM_ENGINES];
for (i = 0; i < I915_NUM_ENGINES; i++)
BUILD_BUG_ON(BITS_PER_TYPE(intel_engine_mask_t) < I915_NUM_ENGINES);
unsigned int reset_engine[I915_MAX_GT][I915_NUM_ENGINES];