Lines Matching refs:thingy
131 #define KONEPLUS_SYSFS_W(thingy, THINGY) \ argument
132 static ssize_t koneplus_sysfs_write_ ## thingy(struct file *fp, \
140 #define KONEPLUS_SYSFS_R(thingy, THINGY) \ argument
141 static ssize_t koneplus_sysfs_read_ ## thingy(struct file *fp, \
149 #define KONEPLUS_SYSFS_RW(thingy, THINGY) \ argument
150 KONEPLUS_SYSFS_W(thingy, THINGY) \
151 KONEPLUS_SYSFS_R(thingy, THINGY)
153 #define KONEPLUS_BIN_ATTRIBUTE_RW(thingy, THINGY) \ argument
154 KONEPLUS_SYSFS_RW(thingy, THINGY); \
155 static struct bin_attribute bin_attr_##thingy = { \
156 .attr = { .name = #thingy, .mode = 0660 }, \
158 .read = koneplus_sysfs_read_ ## thingy, \
159 .write = koneplus_sysfs_write_ ## thingy \
162 #define KONEPLUS_BIN_ATTRIBUTE_R(thingy, THINGY) \ argument
163 KONEPLUS_SYSFS_R(thingy, THINGY); \
164 static struct bin_attribute bin_attr_##thingy = { \
165 .attr = { .name = #thingy, .mode = 0440 }, \
167 .read = koneplus_sysfs_read_ ## thingy, \
170 #define KONEPLUS_BIN_ATTRIBUTE_W(thingy, THINGY) \ argument
171 KONEPLUS_SYSFS_W(thingy, THINGY); \
172 static struct bin_attribute bin_attr_##thingy = { \
173 .attr = { .name = #thingy, .mode = 0220 }, \
175 .write = koneplus_sysfs_write_ ## thingy \