Lines Matching full:vdev
33 struct ivpu_device *vdev = seq_to_ivpu(s); in bo_list_show() local
35 ivpu_bo_list(&vdev->drm, &p); in bo_list_show()
42 struct ivpu_device *vdev = seq_to_ivpu(s); in fw_name_show() local
44 seq_printf(s, "%s\n", vdev->fw->name); in fw_name_show()
50 struct ivpu_device *vdev = seq_to_ivpu(s); in fw_trace_capability_show() local
55 ret = ivpu_jsm_trace_get_capability(vdev, &trace_destination_mask, in fw_trace_capability_show()
68 struct ivpu_device *vdev = seq_to_ivpu(s); in fw_trace_config_show() local
71 * so we use values from vdev->fw instead of calling ivpu_jsm_trace_get_config() in fw_trace_config_show()
73 u32 trace_level = vdev->fw->trace_level; in fw_trace_config_show()
74 u32 trace_destination_mask = vdev->fw->trace_destination_mask; in fw_trace_config_show()
75 u64 trace_hw_component_mask = vdev->fw->trace_hw_component_mask; in fw_trace_config_show()
88 struct ivpu_device *vdev = seq_to_ivpu(s); in last_bootmode_show() local
90 seq_printf(s, "%s\n", (vdev->pm->is_warmboot) ? "warmboot" : "coldboot"); in last_bootmode_show()
97 struct ivpu_device *vdev = seq_to_ivpu(s); in reset_counter_show() local
99 seq_printf(s, "%d\n", atomic_read(&vdev->pm->reset_counter)); in reset_counter_show()
105 struct ivpu_device *vdev = seq_to_ivpu(s); in reset_pending_show() local
107 seq_printf(s, "%d\n", atomic_read(&vdev->pm->reset_pending)); in reset_pending_show()
113 struct ivpu_device *vdev = seq_to_ivpu(s); in firewall_irq_counter_show() local
115 seq_printf(s, "%d\n", atomic_read(&vdev->hw->firewall_irq_counter)); in firewall_irq_counter_show()
133 struct ivpu_device *vdev = file->private_data; in dvfs_mode_fops_write() local
134 struct ivpu_fw_info *fw = vdev->fw; in dvfs_mode_fops_write()
144 ret = pci_try_reset_function(to_pci_dev(vdev->drm.dev)); in dvfs_mode_fops_write()
160 struct ivpu_device *vdev = file->private_data; in fw_dyndbg_fops_write() local
171 ivpu_jsm_dyndbg_control(vdev, buffer, size); in fw_dyndbg_fops_write()
183 struct ivpu_device *vdev = s->private; in fw_log_show() local
186 ivpu_fw_log_print(vdev, true, &p); in fw_log_show()
199 struct ivpu_device *vdev = s->private; in fw_log_fops_write() local
204 ivpu_fw_log_clear(vdev); in fw_log_fops_write()
221 struct ivpu_device *vdev = file->private_data; in fw_profiling_freq_fops_write() local
229 ivpu_hw_profiling_freq_drive(vdev, enable); in fw_profiling_freq_fops_write()
231 ret = pci_try_reset_function(to_pci_dev(vdev->drm.dev)); in fw_profiling_freq_fops_write()
248 struct ivpu_device *vdev = file->private_data; in fw_trace_destination_mask_fops_write() local
249 struct ivpu_fw_info *fw = vdev->fw; in fw_trace_destination_mask_fops_write()
259 ivpu_jsm_trace_set_config(vdev, fw->trace_level, trace_destination_mask, in fw_trace_destination_mask_fops_write()
275 struct ivpu_device *vdev = file->private_data; in fw_trace_hw_comp_mask_fops_write() local
276 struct ivpu_fw_info *fw = vdev->fw; in fw_trace_hw_comp_mask_fops_write()
286 ivpu_jsm_trace_set_config(vdev, fw->trace_level, fw->trace_destination_mask, in fw_trace_hw_comp_mask_fops_write()
301 struct ivpu_device *vdev = file->private_data; in fw_trace_level_fops_write() local
302 struct ivpu_fw_info *fw = vdev->fw; in fw_trace_level_fops_write()
312 ivpu_jsm_trace_set_config(vdev, trace_level, fw->trace_destination_mask, in fw_trace_level_fops_write()
327 struct ivpu_device *vdev = file->private_data; in ivpu_force_recovery_fn() local
333 ret = ivpu_rpm_get(vdev); in ivpu_force_recovery_fn()
337 ivpu_pm_trigger_recovery(vdev, "debugfs"); in ivpu_force_recovery_fn()
338 flush_work(&vdev->pm->recovery_work); in ivpu_force_recovery_fn()
339 ivpu_rpm_put(vdev); in ivpu_force_recovery_fn()
352 struct ivpu_device *vdev = file->private_data; in ivpu_reset_engine_fn() local
357 if (ivpu_jsm_reset_engine(vdev, DRM_IVPU_ENGINE_COMPUTE)) in ivpu_reset_engine_fn()
359 if (ivpu_jsm_reset_engine(vdev, DRM_IVPU_ENGINE_COPY)) in ivpu_reset_engine_fn()
374 struct ivpu_device *vdev = file->private_data; in ivpu_resume_engine_fn() local
379 if (ivpu_jsm_hws_resume_engine(vdev, DRM_IVPU_ENGINE_COMPUTE)) in ivpu_resume_engine_fn()
381 if (ivpu_jsm_hws_resume_engine(vdev, DRM_IVPU_ENGINE_COPY)) in ivpu_resume_engine_fn()
395 struct ivpu_device *vdev = data; in dct_active_get() local
397 *active_percent = vdev->pm->dct_active_percent; in dct_active_get()
404 struct ivpu_device *vdev = data; in dct_active_set() local
410 ret = ivpu_rpm_get(vdev); in dct_active_set()
415 ret = ivpu_pm_dct_enable(vdev, active_percent); in dct_active_set()
417 ret = ivpu_pm_dct_disable(vdev); in dct_active_set()
419 ivpu_rpm_put(vdev); in dct_active_set()
426 void ivpu_debugfs_init(struct ivpu_device *vdev) in ivpu_debugfs_init() argument
428 struct dentry *debugfs_root = vdev->drm.debugfs_root; in ivpu_debugfs_init()
430 drm_debugfs_add_files(&vdev->drm, vdev_debugfs_list, ARRAY_SIZE(vdev_debugfs_list)); in ivpu_debugfs_init()
432 debugfs_create_file("force_recovery", 0200, debugfs_root, vdev, in ivpu_debugfs_init()
435 debugfs_create_file("dvfs_mode", 0200, debugfs_root, vdev, in ivpu_debugfs_init()
438 debugfs_create_file("fw_dyndbg", 0200, debugfs_root, vdev, in ivpu_debugfs_init()
440 debugfs_create_file("fw_log", 0644, debugfs_root, vdev, in ivpu_debugfs_init()
442 debugfs_create_file("fw_trace_destination_mask", 0200, debugfs_root, vdev, in ivpu_debugfs_init()
444 debugfs_create_file("fw_trace_hw_comp_mask", 0200, debugfs_root, vdev, in ivpu_debugfs_init()
446 debugfs_create_file("fw_trace_level", 0200, debugfs_root, vdev, in ivpu_debugfs_init()
449 debugfs_create_file("reset_engine", 0200, debugfs_root, vdev, in ivpu_debugfs_init()
451 debugfs_create_file("resume_engine", 0200, debugfs_root, vdev, in ivpu_debugfs_init()
454 if (ivpu_hw_ip_gen(vdev) >= IVPU_HW_IP_40XX) { in ivpu_debugfs_init()
456 debugfs_root, vdev, &fw_profiling_freq_fops); in ivpu_debugfs_init()
457 debugfs_create_file("dct", 0644, debugfs_root, vdev, &ivpu_dct_fops); in ivpu_debugfs_init()