Lines Matching refs:idxd
15 static void dump_event_entry(struct idxd_device *idxd, struct seq_file *s, in dump_event_entry() argument
18 struct idxd_evl *evl = idxd->evl; in dump_event_entry()
23 int evl_strides = evl_ent_size(idxd) / sizeof(u64); in dump_event_entry()
59 struct idxd_device *idxd = s->private; in debugfs_evl_show() local
60 struct idxd_evl *evl = idxd->evl; in debugfs_evl_show()
71 evl_status.bits = ioread64(idxd->reg_base + IDXD_EVLSTATUS_OFFSET); in debugfs_evl_show()
87 dump_event_entry(idxd, s, i, &count, processed); in debugfs_evl_show()
96 int idxd_device_init_debugfs(struct idxd_device *idxd) in idxd_device_init_debugfs() argument
101 idxd->dbgfs_dir = debugfs_create_dir(dev_name(idxd_confdev(idxd)), idxd_debugfs_dir); in idxd_device_init_debugfs()
102 if (IS_ERR(idxd->dbgfs_dir)) in idxd_device_init_debugfs()
103 return PTR_ERR(idxd->dbgfs_dir); in idxd_device_init_debugfs()
105 if (idxd->evl) { in idxd_device_init_debugfs()
106 idxd->dbgfs_evl_file = debugfs_create_file("event_log", 0400, in idxd_device_init_debugfs()
107 idxd->dbgfs_dir, idxd, in idxd_device_init_debugfs()
109 if (IS_ERR(idxd->dbgfs_evl_file)) { in idxd_device_init_debugfs()
110 debugfs_remove_recursive(idxd->dbgfs_dir); in idxd_device_init_debugfs()
111 idxd->dbgfs_dir = NULL; in idxd_device_init_debugfs()
112 return PTR_ERR(idxd->dbgfs_evl_file); in idxd_device_init_debugfs()
119 void idxd_device_remove_debugfs(struct idxd_device *idxd) in idxd_device_remove_debugfs() argument
121 debugfs_remove_recursive(idxd->dbgfs_dir); in idxd_device_remove_debugfs()