Lines Matching full:pre
407 static void switch_mocs(struct intel_vgpu *pre, struct intel_vgpu *next, in switch_mocs() argument
428 if (!pre && !gen9_render_mocs.initialized) in switch_mocs()
433 if (pre) in switch_mocs()
434 old_v = vgpu_vreg_t(pre, offset); in switch_mocs()
451 if (pre) in switch_mocs()
452 old_v = vgpu_vreg_t(pre, l3_offset); in switch_mocs()
481 static void switch_mmio(struct intel_vgpu *pre, in switch_mmio() argument
491 switch_mocs(pre, next, engine); in switch_mmio()
506 if (pre) { in switch_mmio()
507 vgpu_vreg_t(pre, mmio->reg) = in switch_mmio()
510 vgpu_vreg_t(pre, mmio->reg) &= in switch_mmio()
512 old_v = vgpu_vreg_t(pre, mmio->reg); in switch_mmio()
546 trace_render_mmio(pre ? pre->id : 0, in switch_mmio()
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, in intel_gvt_switch_mmio() argument
570 if (WARN(!pre && !next, "switch ring %s from host to HOST\n", in intel_gvt_switch_mmio()
575 pre ? "vGPU" : "host", next ? "vGPU" : "HOST"); in intel_gvt_switch_mmio()
583 switch_mmio(pre, next, engine); in intel_gvt_switch_mmio()