Lines Matching refs:__name
161 #define DEFINE_SEQ_ATTRIBUTE(__name) \ argument
162 static int __name ## _open(struct inode *inode, struct file *file) \
164 int ret = seq_open(file, &__name ## _sops); \
172 static const struct file_operations __name ## _fops = { \
174 .open = __name ## _open, \
180 #define DEFINE_SHOW_ATTRIBUTE(__name) \ argument
181 static int __name ## _open(struct inode *inode, struct file *file) \
183 return single_open(file, __name ## _show, inode->i_private); \
186 static const struct file_operations __name ## _fops = { \
188 .open = __name ## _open, \
194 #define DEFINE_PROC_SHOW_ATTRIBUTE(__name) \ argument
195 static int __name ## _open(struct inode *inode, struct file *file) \
197 return single_open(file, __name ## _show, inode->i_private); \
200 static const struct proc_ops __name ## _proc_ops = { \
201 .proc_open = __name ## _open, \