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