Lines Matching refs:thingy
50 #define ROCCAT_COMMON2_SYSFS_W(thingy, COMMAND, SIZE) \ argument
51 static ssize_t roccat_common2_sysfs_write_ ## thingy(struct file *fp, \
59 #define ROCCAT_COMMON2_SYSFS_R(thingy, COMMAND, SIZE) \ argument
60 static ssize_t roccat_common2_sysfs_read_ ## thingy(struct file *fp, \
68 #define ROCCAT_COMMON2_SYSFS_RW(thingy, COMMAND, SIZE) \ argument
69 ROCCAT_COMMON2_SYSFS_W(thingy, COMMAND, SIZE) \
70 ROCCAT_COMMON2_SYSFS_R(thingy, COMMAND, SIZE)
72 #define ROCCAT_COMMON2_BIN_ATTRIBUTE_RW(thingy, COMMAND, SIZE) \ argument
73 ROCCAT_COMMON2_SYSFS_RW(thingy, COMMAND, SIZE); \
74 static struct bin_attribute bin_attr_ ## thingy = { \
75 .attr = { .name = #thingy, .mode = 0660 }, \
77 .read = roccat_common2_sysfs_read_ ## thingy, \
78 .write = roccat_common2_sysfs_write_ ## thingy \
81 #define ROCCAT_COMMON2_BIN_ATTRIBUTE_R(thingy, COMMAND, SIZE) \ argument
82 ROCCAT_COMMON2_SYSFS_R(thingy, COMMAND, SIZE); \
83 static struct bin_attribute bin_attr_ ## thingy = { \
84 .attr = { .name = #thingy, .mode = 0440 }, \
86 .read = roccat_common2_sysfs_read_ ## thingy, \
89 #define ROCCAT_COMMON2_BIN_ATTRIBUTE_W(thingy, COMMAND, SIZE) \ argument
90 ROCCAT_COMMON2_SYSFS_W(thingy, COMMAND, SIZE); \
91 static struct bin_attribute bin_attr_ ## thingy = { \
92 .attr = { .name = #thingy, .mode = 0220 }, \
94 .write = roccat_common2_sysfs_write_ ## thingy \