Lines Matching refs:thingy
138 #define PYRA_SYSFS_W(thingy, THINGY) \ argument
139 static ssize_t pyra_sysfs_write_ ## thingy(struct file *fp, \
147 #define PYRA_SYSFS_R(thingy, THINGY) \ argument
148 static ssize_t pyra_sysfs_read_ ## thingy(struct file *fp, \
156 #define PYRA_SYSFS_RW(thingy, THINGY) \ argument
157 PYRA_SYSFS_W(thingy, THINGY) \
158 PYRA_SYSFS_R(thingy, THINGY)
160 #define PYRA_BIN_ATTRIBUTE_RW(thingy, THINGY) \ argument
161 PYRA_SYSFS_RW(thingy, THINGY); \
162 static struct bin_attribute bin_attr_##thingy = { \
163 .attr = { .name = #thingy, .mode = 0660 }, \
165 .read = pyra_sysfs_read_ ## thingy, \
166 .write = pyra_sysfs_write_ ## thingy \
169 #define PYRA_BIN_ATTRIBUTE_R(thingy, THINGY) \ argument
170 PYRA_SYSFS_R(thingy, THINGY); \
171 static struct bin_attribute bin_attr_##thingy = { \
172 .attr = { .name = #thingy, .mode = 0440 }, \
174 .read = pyra_sysfs_read_ ## thingy, \
177 #define PYRA_BIN_ATTRIBUTE_W(thingy, THINGY) \ argument
178 PYRA_SYSFS_W(thingy, THINGY); \
179 static struct bin_attribute bin_attr_##thingy = { \
180 .attr = { .name = #thingy, .mode = 0220 }, \
182 .write = pyra_sysfs_write_ ## thingy \