Lines Matching refs:gvt
53 #define reg_is_mmio(gvt, reg) \ argument
54 (reg >= 0 && reg < gvt->device_info.mmio_size)
56 #define reg_is_gtt(gvt, reg) \ argument
57 (reg >= gvt->device_info.gtt_start_offset \
58 && reg < gvt->device_info.gtt_start_offset + gvt_ggtt_sz(gvt))
63 struct intel_gvt *gvt = NULL; in failsafe_emulate_mmio_rw() local
70 gvt = vgpu->gvt; in failsafe_emulate_mmio_rw()
73 if (reg_is_mmio(gvt, offset)) { in failsafe_emulate_mmio_rw()
80 } else if (reg_is_gtt(gvt, offset)) { in failsafe_emulate_mmio_rw()
81 offset -= gvt->device_info.gtt_start_offset; in failsafe_emulate_mmio_rw()
105 struct intel_gvt *gvt = vgpu->gvt; in intel_vgpu_emulate_mmio_read() local
106 struct drm_i915_private *i915 = gvt->gt->i915; in intel_vgpu_emulate_mmio_read()
121 if (reg_is_gtt(gvt, offset)) { in intel_vgpu_emulate_mmio_read()
128 !reg_is_gtt(gvt, offset + bytes - 1))) in intel_vgpu_emulate_mmio_read()
138 if (drm_WARN_ON_ONCE(&i915->drm, !reg_is_mmio(gvt, offset))) { in intel_vgpu_emulate_mmio_read()
143 if (drm_WARN_ON(&i915->drm, !reg_is_mmio(gvt, offset + bytes - 1))) in intel_vgpu_emulate_mmio_read()
146 if (!intel_gvt_mmio_is_unalign(gvt, offset)) { in intel_vgpu_emulate_mmio_read()
155 intel_gvt_mmio_set_accessed(gvt, offset); in intel_vgpu_emulate_mmio_read()
180 struct intel_gvt *gvt = vgpu->gvt; in intel_vgpu_emulate_mmio_write() local
181 struct drm_i915_private *i915 = gvt->gt->i915; in intel_vgpu_emulate_mmio_write()
197 if (reg_is_gtt(gvt, offset)) { in intel_vgpu_emulate_mmio_write()
204 !reg_is_gtt(gvt, offset + bytes - 1))) in intel_vgpu_emulate_mmio_write()
214 if (drm_WARN_ON_ONCE(&i915->drm, !reg_is_mmio(gvt, offset))) { in intel_vgpu_emulate_mmio_write()
223 intel_gvt_mmio_set_accessed(gvt, offset); in intel_vgpu_emulate_mmio_write()
242 struct intel_gvt *gvt = vgpu->gvt; in intel_vgpu_reset_mmio() local
243 const struct intel_gvt_device_info *info = &gvt->device_info; in intel_vgpu_reset_mmio()
244 void *mmio = gvt->firmware.mmio; in intel_vgpu_reset_mmio()
257 if (IS_BROXTON(vgpu->gvt->gt->i915)) { in intel_vgpu_reset_mmio()
309 const struct intel_gvt_device_info *info = &vgpu->gvt->device_info; in intel_vgpu_init_mmio()