Lines Matching full:vgpu
29 struct intel_vgpu *vgpu; member
66 vreg = vgpu_vreg(param->vgpu, offset); in mmio_diff_handler()
86 struct intel_vgpu *vgpu = s->private; in vgpu_mmio_diff_show() local
87 struct intel_gvt *gvt = vgpu->gvt; in vgpu_mmio_diff_show()
89 .vgpu = vgpu, in vgpu_mmio_diff_show()
111 seq_printf(s, "%-8s %-8s %-8s %-8s\n", "Offset", "HW", "vGPU", "Diff"); in vgpu_mmio_diff_show()
129 struct intel_vgpu *vgpu = (struct intel_vgpu *)data; in vgpu_scan_nonprivbb_get() local
131 *val = vgpu->scan_nonprivbb; in vgpu_scan_nonprivbb_get()
136 * set/unset bit engine_id of vgpu->scan_nonprivbb to turn on/off scanning
138 * if vgpu->scan_nonprivbb=3, then it will scan non-privileged batch buffer
144 struct intel_vgpu *vgpu = (struct intel_vgpu *)data; in vgpu_scan_nonprivbb_set() local
146 vgpu->scan_nonprivbb = val; in vgpu_scan_nonprivbb_set()
156 struct intel_vgpu *vgpu = (struct intel_vgpu *)data; in vgpu_status_get() local
160 if (test_bit(INTEL_VGPU_STATUS_ATTACHED, vgpu->status)) in vgpu_status_get()
162 if (test_bit(INTEL_VGPU_STATUS_ACTIVE, vgpu->status)) in vgpu_status_get()
171 * intel_gvt_debugfs_add_vgpu - register debugfs entries for a vGPU
172 * @vgpu: a vGPU
174 void intel_gvt_debugfs_add_vgpu(struct intel_vgpu *vgpu) in intel_gvt_debugfs_add_vgpu() argument
178 snprintf(name, 16, "vgpu%d", vgpu->id); in intel_gvt_debugfs_add_vgpu()
179 vgpu->debugfs = debugfs_create_dir(name, vgpu->gvt->debugfs_root); in intel_gvt_debugfs_add_vgpu()
181 debugfs_create_file("mmio_diff", 0444, vgpu->debugfs, vgpu, in intel_gvt_debugfs_add_vgpu()
183 debugfs_create_file_unsafe("scan_nonprivbb", 0644, vgpu->debugfs, vgpu, in intel_gvt_debugfs_add_vgpu()
185 debugfs_create_file_unsafe("status", 0644, vgpu->debugfs, vgpu, in intel_gvt_debugfs_add_vgpu()
190 * intel_gvt_debugfs_remove_vgpu - remove debugfs entries of a vGPU
191 * @vgpu: a vGPU
193 void intel_gvt_debugfs_remove_vgpu(struct intel_vgpu *vgpu) in intel_gvt_debugfs_remove_vgpu() argument
195 struct intel_gvt *gvt = vgpu->gvt; in intel_gvt_debugfs_remove_vgpu()
199 debugfs_remove_recursive(vgpu->debugfs); in intel_gvt_debugfs_remove_vgpu()
200 vgpu->debugfs = NULL; in intel_gvt_debugfs_remove_vgpu()