#include <linux/debugfs.h>
#include <drm/drm_debugfs.h>
#include <drm/drm_file.h>
#include <drm/drm_print.h>
#include <uapi/drm/ivpu_accel.h>
#include "ivpu_debugfs.h"
#include "ivpu_drv.h"
#include "ivpu_fw.h"
#include "ivpu_fw_log.h"
#include "ivpu_gem.h"
#include "ivpu_hw.h"
#include "ivpu_jsm_msg.h"
#include "ivpu_pm.h"
static inline struct ivpu_device *seq_to_ivpu(struct seq_file *s)
{ … }
static int bo_list_show(struct seq_file *s, void *v)
{ … }
static int fw_name_show(struct seq_file *s, void *v)
{ … }
static int fw_trace_capability_show(struct seq_file *s, void *v)
{ … }
static int fw_trace_config_show(struct seq_file *s, void *v)
{ … }
static int last_bootmode_show(struct seq_file *s, void *v)
{ … }
static int reset_counter_show(struct seq_file *s, void *v)
{ … }
static int reset_pending_show(struct seq_file *s, void *v)
{ … }
static int firewall_irq_counter_show(struct seq_file *s, void *v)
{ … }
static const struct drm_debugfs_info vdev_debugfs_list[] = …;
static ssize_t
dvfs_mode_fops_write(struct file *file, const char __user *user_buf, size_t size, loff_t *pos)
{ … }
static const struct file_operations dvfs_mode_fops = …;
static ssize_t
fw_dyndbg_fops_write(struct file *file, const char __user *user_buf, size_t size, loff_t *pos)
{ … }
static const struct file_operations fw_dyndbg_fops = …;
static int fw_log_show(struct seq_file *s, void *v)
{ … }
static int fw_log_fops_open(struct inode *inode, struct file *file)
{ … }
static ssize_t
fw_log_fops_write(struct file *file, const char __user *user_buf, size_t size, loff_t *pos)
{ … }
static const struct file_operations fw_log_fops = …;
static ssize_t
fw_profiling_freq_fops_write(struct file *file, const char __user *user_buf,
size_t size, loff_t *pos)
{ … }
static const struct file_operations fw_profiling_freq_fops = …;
static ssize_t
fw_trace_destination_mask_fops_write(struct file *file, const char __user *user_buf,
size_t size, loff_t *pos)
{ … }
static const struct file_operations fw_trace_destination_mask_fops = …;
static ssize_t
fw_trace_hw_comp_mask_fops_write(struct file *file, const char __user *user_buf,
size_t size, loff_t *pos)
{ … }
static const struct file_operations fw_trace_hw_comp_mask_fops = …;
static ssize_t
fw_trace_level_fops_write(struct file *file, const char __user *user_buf, size_t size, loff_t *pos)
{ … }
static const struct file_operations fw_trace_level_fops = …;
static ssize_t
ivpu_force_recovery_fn(struct file *file, const char __user *user_buf, size_t size, loff_t *pos)
{ … }
static const struct file_operations ivpu_force_recovery_fops = …;
static ssize_t
ivpu_reset_engine_fn(struct file *file, const char __user *user_buf, size_t size, loff_t *pos)
{ … }
static const struct file_operations ivpu_reset_engine_fops = …;
static ssize_t
ivpu_resume_engine_fn(struct file *file, const char __user *user_buf, size_t size, loff_t *pos)
{ … }
static const struct file_operations ivpu_resume_engine_fops = …;
static int dct_active_get(void *data, u64 *active_percent)
{ … }
static int dct_active_set(void *data, u64 active_percent)
{ … }
DEFINE_DEBUGFS_ATTRIBUTE(…);
void ivpu_debugfs_init(struct ivpu_device *vdev)
{ … }