Lines Matching refs:name
25 #define DEBUGFS_READONLY_FILE(name, fmt, value...) \
26 static ssize_t name## _read(struct file *file, char __user *userbuf, \
34 static const struct file_operations name## _ops = { \
35 .read = name## _read, \
40 #define DEBUGFS_ADD(name, parent) \
42 debugfs_create_file(#name, 0400, parent, \
43 wl, &name## _ops); \
47 #define DEBUGFS_ADD_PREFIX(prefix, name, parent) \
49 debugfs_create_file(#name, 0400, parent, \
50 wl, &prefix## _## name## _ops); \
53 #define DEBUGFS_FWSTATS_FILE(sub, name, fmt, struct_type) \
54 static ssize_t sub## _ ##name## _read(struct file *file, \
64 stats->sub.name); \
67 static const struct file_operations sub## _ ##name## _ops = { \
68 .read = sub## _ ##name## _read, \
73 #define DEBUGFS_FWSTATS_FILE_ARRAY(sub, name, len, struct_type) \
74 static ssize_t sub## _ ##name## _read(struct file *file, \
88 "[%d] = %d\n", i, stats->sub.name[i]); \
93 static const struct file_operations sub## _ ##name## _ops = { \
94 .read = sub## _ ##name## _read, \
99 #define DEBUGFS_FWSTATS_ADD(sub, name) \
100 DEBUGFS_ADD(sub## _ ##name, stats)