Lines Matching refs:__name
177 #define DEFINE_SEQ_ATTRIBUTE(__name) \ argument
178 static int __name ## _open(struct inode *inode, struct file *file) \
180 int ret = seq_open(file, &__name ## _sops); \
188 static const struct file_operations __name ## _fops = { \
190 .open = __name ## _open, \
196 #define DEFINE_SHOW_ATTRIBUTE(__name) \ argument
197 static int __name ## _open(struct inode *inode, struct file *file) \
199 return single_open(file, __name ## _show, inode->i_private); \
202 static const struct file_operations __name ## _fops = { \
204 .open = __name ## _open, \
210 #define DEFINE_PROC_SHOW_ATTRIBUTE(__name) \ argument
211 static int __name ## _open(struct inode *inode, struct file *file) \
213 return single_open(file, __name ## _show, pde_data(inode)); \
216 static const struct proc_ops __name ## _proc_ops = { \
217 .proc_open = __name ## _open, \