Lines Matching defs:pre
407 static void switch_mocs(struct intel_vgpu *pre, struct intel_vgpu *next,
428 if (!pre && !gen9_render_mocs.initialized)
433 if (pre)
434 old_v = vgpu_vreg_t(pre, offset);
451 if (pre)
452 old_v = vgpu_vreg_t(pre, l3_offset);
481 static void switch_mmio(struct intel_vgpu *pre,
491 switch_mocs(pre, next, engine);
506 if (pre) {
507 vgpu_vreg_t(pre, mmio->reg) =
510 vgpu_vreg_t(pre, mmio->reg) &=
512 old_v = vgpu_vreg_t(pre, mmio->reg);
546 trace_render_mmio(pre ? pre->id : 0,
559 * @pre: the last vGPU that own the engine
563 * If pre is null indicates that host own the engine. If next is null
566 void intel_gvt_switch_mmio(struct intel_vgpu *pre,
570 if (WARN(!pre && !next, "switch ring %s from host to HOST\n",
575 pre ? "vGPU" : "host", next ? "vGPU" : "HOST");
583 switch_mmio(pre, next, engine);