Lines Matching refs:vdev
35 struct ivpu_device *vdev = seq_to_ivpu(s); in bo_list_show() local
37 ivpu_bo_list(&vdev->drm, &p); in bo_list_show()
44 struct ivpu_device *vdev = seq_to_ivpu(s); in fw_name_show() local
46 seq_printf(s, "%s\n", vdev->fw->name); in fw_name_show()
52 struct ivpu_device *vdev = seq_to_ivpu(s); in fw_version_show() local
54 seq_printf(s, "%s\n", vdev->fw->version); in fw_version_show()
60 struct ivpu_device *vdev = seq_to_ivpu(s); in fw_trace_capability_show() local
65 ret = ivpu_jsm_trace_get_capability(vdev, &trace_destination_mask, in fw_trace_capability_show()
78 struct ivpu_device *vdev = seq_to_ivpu(s); in fw_trace_config_show() local
83 u32 trace_level = vdev->fw->trace_level; in fw_trace_config_show()
84 u32 trace_destination_mask = vdev->fw->trace_destination_mask; in fw_trace_config_show()
85 u64 trace_hw_component_mask = vdev->fw->trace_hw_component_mask; in fw_trace_config_show()
98 struct ivpu_device *vdev = seq_to_ivpu(s); in last_bootmode_show() local
100 seq_printf(s, "%s\n", (vdev->fw->last_boot_mode == VPU_BOOT_TYPE_WARMBOOT) ? in last_bootmode_show()
108 struct ivpu_device *vdev = seq_to_ivpu(s); in reset_counter_show() local
110 seq_printf(s, "%d\n", atomic_read(&vdev->pm->reset_counter)); in reset_counter_show()
116 struct ivpu_device *vdev = seq_to_ivpu(s); in reset_pending_show() local
118 seq_printf(s, "%d\n", atomic_read(&vdev->pm->reset_pending)); in reset_pending_show()
124 struct ivpu_device *vdev = seq_to_ivpu(s); in firewall_irq_counter_show() local
126 seq_printf(s, "%d\n", atomic_read(&vdev->hw->firewall_irq_counter)); in firewall_irq_counter_show()
132 struct ivpu_device *vdev = seq_to_ivpu(s); in engine_reset_counter_show() local
134 seq_printf(s, "%d\n", atomic_read(&vdev->pm->engine_reset_counter)); in engine_reset_counter_show()
153 struct ivpu_device *vdev = (struct ivpu_device *)data; in dvfs_mode_get() local
155 *dvfs_mode = vdev->fw->dvfs_mode; in dvfs_mode_get()
161 struct ivpu_device *vdev = (struct ivpu_device *)data; in dvfs_mode_set() local
163 vdev->fw->dvfs_mode = (u32)dvfs_mode; in dvfs_mode_set()
164 return pci_try_reset_function(to_pci_dev(vdev->drm.dev)); in dvfs_mode_set()
172 struct ivpu_device *vdev = file->private_data; in fw_dyndbg_fops_write() local
183 ivpu_jsm_dyndbg_control(vdev, buffer, size); in fw_dyndbg_fops_write()
195 struct ivpu_device *vdev = s->private; in fw_log_show() local
198 ivpu_fw_log_print(vdev, true, &p); in fw_log_show()
211 struct ivpu_device *vdev = s->private; in fw_log_fops_write() local
216 ivpu_fw_log_mark_read(vdev); in fw_log_fops_write()
233 struct ivpu_device *vdev = file->private_data; in fw_profiling_freq_fops_write() local
241 ivpu_hw_profiling_freq_drive(vdev, enable); in fw_profiling_freq_fops_write()
243 ret = pci_try_reset_function(to_pci_dev(vdev->drm.dev)); in fw_profiling_freq_fops_write()
260 struct ivpu_device *vdev = file->private_data; in fw_trace_destination_mask_fops_write() local
261 struct ivpu_fw_info *fw = vdev->fw; in fw_trace_destination_mask_fops_write()
271 ivpu_jsm_trace_set_config(vdev, fw->trace_level, trace_destination_mask, in fw_trace_destination_mask_fops_write()
287 struct ivpu_device *vdev = file->private_data; in fw_trace_hw_comp_mask_fops_write() local
288 struct ivpu_fw_info *fw = vdev->fw; in fw_trace_hw_comp_mask_fops_write()
298 ivpu_jsm_trace_set_config(vdev, fw->trace_level, fw->trace_destination_mask, in fw_trace_hw_comp_mask_fops_write()
313 struct ivpu_device *vdev = file->private_data; in fw_trace_level_fops_write() local
314 struct ivpu_fw_info *fw = vdev->fw; in fw_trace_level_fops_write()
324 ivpu_jsm_trace_set_config(vdev, trace_level, fw->trace_destination_mask, in fw_trace_level_fops_write()
339 struct ivpu_device *vdev = file->private_data; in ivpu_force_recovery_fn() local
345 ret = ivpu_rpm_get(vdev); in ivpu_force_recovery_fn()
349 ivpu_pm_trigger_recovery(vdev, "debugfs"); in ivpu_force_recovery_fn()
350 flush_work(&vdev->pm->recovery_work); in ivpu_force_recovery_fn()
351 ivpu_rpm_put(vdev); in ivpu_force_recovery_fn()
363 struct ivpu_device *vdev = (struct ivpu_device *)data; in ivpu_reset_engine_fn() local
366 return ivpu_jsm_reset_engine(vdev, (u32)val, &resp); in ivpu_reset_engine_fn()
373 struct ivpu_device *vdev = (struct ivpu_device *)data; in ivpu_resume_engine_fn() local
375 return ivpu_jsm_hws_resume_engine(vdev, (u32)val); in ivpu_resume_engine_fn()
382 struct ivpu_device *vdev = data; in dct_active_get() local
384 *active_percent = vdev->pm->dct_active_percent; in dct_active_get()
391 struct ivpu_device *vdev = data; in dct_active_set() local
397 ret = ivpu_rpm_get(vdev); in dct_active_set()
402 ret = ivpu_pm_dct_enable(vdev, active_percent); in dct_active_set()
404 ret = ivpu_pm_dct_disable(vdev); in dct_active_set()
406 ivpu_rpm_put(vdev); in dct_active_set()
425 struct ivpu_device *vdev = s->private; in priority_bands_show() local
426 struct ivpu_hw_info *hw = vdev->hw; in priority_bands_show()
445 struct ivpu_device *vdev = s->private; in priority_bands_fops_write() local
469 vdev->hw->hws.grace_period[band] = grace_period; in priority_bands_fops_write()
470 vdev->hw->hws.process_grace_period[band] = process_grace_period; in priority_bands_fops_write()
471 vdev->hw->hws.process_quantum[band] = process_quantum; in priority_bands_fops_write()
485 void ivpu_debugfs_init(struct ivpu_device *vdev) in ivpu_debugfs_init() argument
487 struct dentry *debugfs_root = vdev->drm.debugfs_root; in ivpu_debugfs_init()
489 drm_debugfs_add_files(&vdev->drm, vdev_debugfs_list, ARRAY_SIZE(vdev_debugfs_list)); in ivpu_debugfs_init()
491 debugfs_create_file("force_recovery", 0200, debugfs_root, vdev, in ivpu_debugfs_init()
494 debugfs_create_file("dvfs_mode", 0644, debugfs_root, vdev, in ivpu_debugfs_init()
497 debugfs_create_file("fw_dyndbg", 0200, debugfs_root, vdev, in ivpu_debugfs_init()
499 debugfs_create_file("fw_log", 0644, debugfs_root, vdev, in ivpu_debugfs_init()
501 debugfs_create_file("fw_trace_destination_mask", 0200, debugfs_root, vdev, in ivpu_debugfs_init()
503 debugfs_create_file("fw_trace_hw_comp_mask", 0200, debugfs_root, vdev, in ivpu_debugfs_init()
505 debugfs_create_file("fw_trace_level", 0200, debugfs_root, vdev, in ivpu_debugfs_init()
507 debugfs_create_file("hws_priority_bands", 0200, debugfs_root, vdev, in ivpu_debugfs_init()
510 debugfs_create_file("reset_engine", 0200, debugfs_root, vdev, in ivpu_debugfs_init()
512 debugfs_create_file("resume_engine", 0200, debugfs_root, vdev, in ivpu_debugfs_init()
515 if (ivpu_hw_ip_gen(vdev) >= IVPU_HW_IP_40XX) { in ivpu_debugfs_init()
517 debugfs_root, vdev, &fw_profiling_freq_fops); in ivpu_debugfs_init()
518 debugfs_create_file("dct", 0644, debugfs_root, vdev, &ivpu_dct_fops); in ivpu_debugfs_init()