Lines Matching refs:thingy
136 #define KONEPLUS_SYSFS_W(thingy, THINGY) \ argument
137 static ssize_t koneplus_sysfs_write_ ## thingy(struct file *fp, \
145 #define KONEPLUS_SYSFS_R(thingy, THINGY) \ argument
146 static ssize_t koneplus_sysfs_read_ ## thingy(struct file *fp, \
154 #define KONEPLUS_SYSFS_RW(thingy, THINGY) \ argument
155 KONEPLUS_SYSFS_W(thingy, THINGY) \
156 KONEPLUS_SYSFS_R(thingy, THINGY)
158 #define KONEPLUS_BIN_ATTRIBUTE_RW(thingy, THINGY) \ argument
159 KONEPLUS_SYSFS_RW(thingy, THINGY); \
160 static struct bin_attribute bin_attr_##thingy = { \
161 .attr = { .name = #thingy, .mode = 0660 }, \
163 .read = koneplus_sysfs_read_ ## thingy, \
164 .write = koneplus_sysfs_write_ ## thingy \
167 #define KONEPLUS_BIN_ATTRIBUTE_R(thingy, THINGY) \ argument
168 KONEPLUS_SYSFS_R(thingy, THINGY); \
169 static struct bin_attribute bin_attr_##thingy = { \
170 .attr = { .name = #thingy, .mode = 0440 }, \
172 .read = koneplus_sysfs_read_ ## thingy, \
175 #define KONEPLUS_BIN_ATTRIBUTE_W(thingy, THINGY) \ argument
176 KONEPLUS_SYSFS_W(thingy, THINGY); \
177 static struct bin_attribute bin_attr_##thingy = { \
178 .attr = { .name = #thingy, .mode = 0220 }, \
180 .write = koneplus_sysfs_write_ ## thingy \