#ifdef CONFIG_DEBUG_FS
#include <linux/debugfs.h>
#include <linux/fault-inject.h>
#include <drm/drm_debugfs.h>
#include <drm/drm_fb_helper.h>
#include <drm/drm_file.h>
#include <drm/drm_framebuffer.h>
#include "msm_drv.h"
#include "msm_gpu.h"
#include "msm_kms.h"
#include "msm_debugfs.h"
#include "disp/msm_disp_snapshot.h"
struct msm_gpu_show_priv { … };
static int msm_gpu_show(struct seq_file *m, void *arg)
{ … }
static int msm_gpu_release(struct inode *inode, struct file *file)
{ … }
static int msm_gpu_open(struct inode *inode, struct file *file)
{ … }
static const struct file_operations msm_gpu_fops = …;
static int msm_kms_show(struct seq_file *m, void *arg)
{ … }
static int msm_kms_release(struct inode *inode, struct file *file)
{ … }
static int msm_kms_open(struct inode *inode, struct file *file)
{ … }
static const struct file_operations msm_kms_fops = …;
static unsigned long last_shrink_freed;
static int
shrink_get(void *data, u64 *val)
{ … }
static int
shrink_set(void *data, u64 val)
{ … }
DEFINE_DEBUGFS_ATTRIBUTE(…);
static int msm_gem_show(struct seq_file *m, void *arg)
{ … }
static int msm_mm_show(struct seq_file *m, void *arg)
{ … }
static int msm_fb_show(struct seq_file *m, void *arg)
{ … }
static struct drm_info_list msm_debugfs_list[] = …;
static struct drm_info_list msm_kms_debugfs_list[] = …;
static int late_init_minor(struct drm_minor *minor)
{ … }
int msm_debugfs_late_init(struct drm_device *dev)
{ … }
static void msm_debugfs_gpu_init(struct drm_minor *minor)
{ … }
void msm_debugfs_init(struct drm_minor *minor)
{ … }
#endif