Lines Matching refs:vdev
34 struct ivpu_device *vdev = seq_to_ivpu(s); in bo_list_show() local
36 ivpu_bo_list(&vdev->drm, &p); in bo_list_show()
43 struct ivpu_device *vdev = seq_to_ivpu(s); in fw_name_show() local
45 seq_printf(s, "%s\n", vdev->fw->name); in fw_name_show()
51 struct ivpu_device *vdev = seq_to_ivpu(s); in fw_version_show() local
53 seq_printf(s, "%s\n", vdev->fw->version); in fw_version_show()
59 struct ivpu_device *vdev = seq_to_ivpu(s); in fw_trace_capability_show() local
64 ret = ivpu_jsm_trace_get_capability(vdev, &trace_destination_mask, in fw_trace_capability_show()
77 struct ivpu_device *vdev = seq_to_ivpu(s); in fw_trace_config_show() local
82 u32 trace_level = vdev->fw->trace_level; in fw_trace_config_show()
83 u32 trace_destination_mask = vdev->fw->trace_destination_mask; in fw_trace_config_show()
84 u64 trace_hw_component_mask = vdev->fw->trace_hw_component_mask; in fw_trace_config_show()
97 struct ivpu_device *vdev = seq_to_ivpu(s); in last_bootmode_show() local
99 seq_printf(s, "%s\n", (vdev->pm->is_warmboot) ? "warmboot" : "coldboot"); in last_bootmode_show()
106 struct ivpu_device *vdev = seq_to_ivpu(s); in reset_counter_show() local
108 seq_printf(s, "%d\n", atomic_read(&vdev->pm->reset_counter)); in reset_counter_show()
114 struct ivpu_device *vdev = seq_to_ivpu(s); in reset_pending_show() local
116 seq_printf(s, "%d\n", atomic_read(&vdev->pm->reset_pending)); in reset_pending_show()
122 struct ivpu_device *vdev = seq_to_ivpu(s); in firewall_irq_counter_show() local
124 seq_printf(s, "%d\n", atomic_read(&vdev->hw->firewall_irq_counter)); in firewall_irq_counter_show()
142 struct ivpu_device *vdev = (struct ivpu_device *)data; in dvfs_mode_get() local
144 *dvfs_mode = vdev->fw->dvfs_mode; in dvfs_mode_get()
150 struct ivpu_device *vdev = (struct ivpu_device *)data; in dvfs_mode_set() local
152 vdev->fw->dvfs_mode = (u32)dvfs_mode; in dvfs_mode_set()
153 return pci_try_reset_function(to_pci_dev(vdev->drm.dev)); in dvfs_mode_set()
161 struct ivpu_device *vdev = file->private_data; in fw_dyndbg_fops_write() local
172 ivpu_jsm_dyndbg_control(vdev, buffer, size); in fw_dyndbg_fops_write()
184 struct ivpu_device *vdev = s->private; in fw_log_show() local
187 ivpu_fw_log_print(vdev, true, &p); in fw_log_show()
200 struct ivpu_device *vdev = s->private; in fw_log_fops_write() local
205 ivpu_fw_log_mark_read(vdev); in fw_log_fops_write()
222 struct ivpu_device *vdev = file->private_data; in fw_profiling_freq_fops_write() local
230 ivpu_hw_profiling_freq_drive(vdev, enable); in fw_profiling_freq_fops_write()
232 ret = pci_try_reset_function(to_pci_dev(vdev->drm.dev)); in fw_profiling_freq_fops_write()
249 struct ivpu_device *vdev = file->private_data; in fw_trace_destination_mask_fops_write() local
250 struct ivpu_fw_info *fw = vdev->fw; in fw_trace_destination_mask_fops_write()
260 ivpu_jsm_trace_set_config(vdev, fw->trace_level, trace_destination_mask, in fw_trace_destination_mask_fops_write()
276 struct ivpu_device *vdev = file->private_data; in fw_trace_hw_comp_mask_fops_write() local
277 struct ivpu_fw_info *fw = vdev->fw; in fw_trace_hw_comp_mask_fops_write()
287 ivpu_jsm_trace_set_config(vdev, fw->trace_level, fw->trace_destination_mask, in fw_trace_hw_comp_mask_fops_write()
302 struct ivpu_device *vdev = file->private_data; in fw_trace_level_fops_write() local
303 struct ivpu_fw_info *fw = vdev->fw; in fw_trace_level_fops_write()
313 ivpu_jsm_trace_set_config(vdev, trace_level, fw->trace_destination_mask, in fw_trace_level_fops_write()
328 struct ivpu_device *vdev = file->private_data; in ivpu_force_recovery_fn() local
334 ret = ivpu_rpm_get(vdev); in ivpu_force_recovery_fn()
338 ivpu_pm_trigger_recovery(vdev, "debugfs"); in ivpu_force_recovery_fn()
339 flush_work(&vdev->pm->recovery_work); in ivpu_force_recovery_fn()
340 ivpu_rpm_put(vdev); in ivpu_force_recovery_fn()
352 struct ivpu_device *vdev = (struct ivpu_device *)data; in ivpu_reset_engine_fn() local
354 return ivpu_jsm_reset_engine(vdev, (u32)val); in ivpu_reset_engine_fn()
361 struct ivpu_device *vdev = (struct ivpu_device *)data; in ivpu_resume_engine_fn() local
363 return ivpu_jsm_hws_resume_engine(vdev, (u32)val); in ivpu_resume_engine_fn()
370 struct ivpu_device *vdev = data; in dct_active_get() local
372 *active_percent = vdev->pm->dct_active_percent; in dct_active_get()
379 struct ivpu_device *vdev = data; in dct_active_set() local
385 ret = ivpu_rpm_get(vdev); in dct_active_set()
390 ret = ivpu_pm_dct_enable(vdev, active_percent); in dct_active_set()
392 ret = ivpu_pm_dct_disable(vdev); in dct_active_set()
394 ivpu_rpm_put(vdev); in dct_active_set()
403 struct ivpu_device *vdev = s->private; in priority_bands_show() local
404 struct ivpu_hw_info *hw = vdev->hw; in priority_bands_show()
443 struct ivpu_device *vdev = s->private; in priority_bands_fops_write() local
467 vdev->hw->hws.grace_period[band] = grace_period; in priority_bands_fops_write()
468 vdev->hw->hws.process_grace_period[band] = process_grace_period; in priority_bands_fops_write()
469 vdev->hw->hws.process_quantum[band] = process_quantum; in priority_bands_fops_write()
483 void ivpu_debugfs_init(struct ivpu_device *vdev) in ivpu_debugfs_init() argument
485 struct dentry *debugfs_root = vdev->drm.debugfs_root; in ivpu_debugfs_init()
487 drm_debugfs_add_files(&vdev->drm, vdev_debugfs_list, ARRAY_SIZE(vdev_debugfs_list)); in ivpu_debugfs_init()
489 debugfs_create_file("force_recovery", 0200, debugfs_root, vdev, in ivpu_debugfs_init()
492 debugfs_create_file("dvfs_mode", 0644, debugfs_root, vdev, in ivpu_debugfs_init()
495 debugfs_create_file("fw_dyndbg", 0200, debugfs_root, vdev, in ivpu_debugfs_init()
497 debugfs_create_file("fw_log", 0644, debugfs_root, vdev, in ivpu_debugfs_init()
499 debugfs_create_file("fw_trace_destination_mask", 0200, debugfs_root, vdev, in ivpu_debugfs_init()
501 debugfs_create_file("fw_trace_hw_comp_mask", 0200, debugfs_root, vdev, in ivpu_debugfs_init()
503 debugfs_create_file("fw_trace_level", 0200, debugfs_root, vdev, in ivpu_debugfs_init()
505 debugfs_create_file("hws_priority_bands", 0200, debugfs_root, vdev, in ivpu_debugfs_init()
508 debugfs_create_file("reset_engine", 0200, debugfs_root, vdev, in ivpu_debugfs_init()
510 debugfs_create_file("resume_engine", 0200, debugfs_root, vdev, in ivpu_debugfs_init()
513 if (ivpu_hw_ip_gen(vdev) >= IVPU_HW_IP_40XX) { in ivpu_debugfs_init()
515 debugfs_root, vdev, &fw_profiling_freq_fops); in ivpu_debugfs_init()
516 debugfs_create_file("dct", 0644, debugfs_root, vdev, &ivpu_dct_fops); in ivpu_debugfs_init()