Lines Matching refs:name
35 #define DEBUGFS_READONLY_FILE_FN(name, fmt, value...) \ argument
36 static ssize_t name## _read(struct file *file, char __user *userbuf, \
45 #define DEBUGFS_READONLY_FILE_OPS(name) \ argument
46 static const struct file_operations name## _ops = { \
47 .read = name## _read, \
52 #define DEBUGFS_READONLY_FILE(name, fmt, value...) \ argument
53 DEBUGFS_READONLY_FILE_FN(name, fmt, value) \
54 DEBUGFS_READONLY_FILE_OPS(name)
56 #define DEBUGFS_ADD(name) \ argument
57 debugfs_create_file(#name, 0400, phyd, local, &name## _ops);
59 #define DEBUGFS_ADD_MODE(name, mode) \ argument
60 debugfs_create_file(#name, mode, phyd, local, &name## _ops);
72 local->rate_ctrl ? local->rate_ctrl->ops->name : "hw/driver");
287 #define DEBUGFS_DEVSTATS_FILE(name) \ argument
288 static int print_devstats_##name(struct ieee80211_low_level_stats *stats,\
291 return scnprintf(buf, buflen, "%u\n", stats->name); \
293 static ssize_t stats_ ##name## _read(struct file *file, \
301 print_devstats_##name); \
304 static const struct file_operations stats_ ##name## _ops = { \
305 .read = stats_ ##name## _read, \
310 #define DEBUGFS_STATS_ADD(name) \ argument
311 debugfs_create_u32(#name, 0400, statsd, &local->name);
312 #define DEBUGFS_DEVSTATS_ADD(name) \ argument
313 debugfs_create_file(#name, 0400, statsd, local, &stats_ ##name## _ops);