Lines Matching full:pre
399 static void switch_mocs(struct intel_vgpu *pre, struct intel_vgpu *next, in switch_mocs() argument
420 if (!pre && !gen9_render_mocs.initialized) in switch_mocs()
425 if (pre) in switch_mocs()
426 old_v = vgpu_vreg_t(pre, offset); in switch_mocs()
443 if (pre) in switch_mocs()
444 old_v = vgpu_vreg_t(pre, l3_offset); in switch_mocs()
473 static void switch_mmio(struct intel_vgpu *pre, in switch_mmio() argument
483 switch_mocs(pre, next, engine); in switch_mmio()
498 if (pre) { in switch_mmio()
499 vgpu_vreg_t(pre, mmio->reg) = in switch_mmio()
502 vgpu_vreg_t(pre, mmio->reg) &= in switch_mmio()
504 old_v = vgpu_vreg_t(pre, mmio->reg); in switch_mmio()
538 trace_render_mmio(pre ? pre->id : 0, in switch_mmio()
551 * @pre: the last vGPU that own the engine
555 * If pre is null indicates that host own the engine. If next is null
558 void intel_gvt_switch_mmio(struct intel_vgpu *pre, in intel_gvt_switch_mmio() argument
562 if (WARN(!pre && !next, "switch ring %s from host to HOST\n", in intel_gvt_switch_mmio()
567 pre ? "vGPU" : "host", next ? "vGPU" : "HOST"); in intel_gvt_switch_mmio()
575 switch_mmio(pre, next, engine); in intel_gvt_switch_mmio()