Lines Matching refs:gvt

57 #define reg_is_mmio(gvt, reg)  \  argument
58 (reg >= 0 && reg < gvt->device_info.mmio_size)
60 #define reg_is_gtt(gvt, reg) \ argument
61 (reg >= gvt->device_info.gtt_start_offset \
62 && reg < gvt->device_info.gtt_start_offset + gvt_ggtt_sz(gvt))
67 struct intel_gvt *gvt = NULL; in failsafe_emulate_mmio_rw() local
74 gvt = vgpu->gvt; in failsafe_emulate_mmio_rw()
77 if (reg_is_mmio(gvt, offset)) { in failsafe_emulate_mmio_rw()
84 } else if (reg_is_gtt(gvt, offset)) { in failsafe_emulate_mmio_rw()
85 offset -= gvt->device_info.gtt_start_offset; in failsafe_emulate_mmio_rw()
109 struct intel_gvt *gvt = vgpu->gvt; in intel_vgpu_emulate_mmio_read() local
110 struct drm_i915_private *i915 = gvt->gt->i915; in intel_vgpu_emulate_mmio_read()
125 if (reg_is_gtt(gvt, offset)) { in intel_vgpu_emulate_mmio_read()
132 !reg_is_gtt(gvt, offset + bytes - 1))) in intel_vgpu_emulate_mmio_read()
142 if (drm_WARN_ON_ONCE(&i915->drm, !reg_is_mmio(gvt, offset))) { in intel_vgpu_emulate_mmio_read()
147 if (drm_WARN_ON(&i915->drm, !reg_is_mmio(gvt, offset + bytes - 1))) in intel_vgpu_emulate_mmio_read()
150 if (!intel_gvt_mmio_is_unalign(gvt, offset)) { in intel_vgpu_emulate_mmio_read()
159 intel_gvt_mmio_set_accessed(gvt, offset); in intel_vgpu_emulate_mmio_read()
184 struct intel_gvt *gvt = vgpu->gvt; in intel_vgpu_emulate_mmio_write() local
185 struct drm_i915_private *i915 = gvt->gt->i915; in intel_vgpu_emulate_mmio_write()
201 if (reg_is_gtt(gvt, offset)) { in intel_vgpu_emulate_mmio_write()
208 !reg_is_gtt(gvt, offset + bytes - 1))) in intel_vgpu_emulate_mmio_write()
218 if (drm_WARN_ON_ONCE(&i915->drm, !reg_is_mmio(gvt, offset))) { in intel_vgpu_emulate_mmio_write()
227 intel_gvt_mmio_set_accessed(gvt, offset); in intel_vgpu_emulate_mmio_write()
246 struct intel_gvt *gvt = vgpu->gvt; in intel_vgpu_reset_mmio() local
247 const struct intel_gvt_device_info *info = &gvt->device_info; in intel_vgpu_reset_mmio()
248 void *mmio = gvt->firmware.mmio; in intel_vgpu_reset_mmio()
261 if (IS_BROXTON(vgpu->gvt->gt->i915)) { in intel_vgpu_reset_mmio()
313 const struct intel_gvt_device_info *info = &vgpu->gvt->device_info; in intel_vgpu_init_mmio()