Lines Matching refs:__name
149 #define DEFINE_SEQ_ATTRIBUTE(__name) \ argument
150 static int __name ## _open(struct inode *inode, struct file *file) \
152 int ret = seq_open(file, &__name ## _sops); \
160 static const struct file_operations __name ## _fops = { \
162 .open = __name ## _open, \
168 #define DEFINE_SHOW_ATTRIBUTE(__name) \ argument
169 static int __name ## _open(struct inode *inode, struct file *file) \
171 return single_open(file, __name ## _show, inode->i_private); \
174 static const struct file_operations __name ## _fops = { \
176 .open = __name ## _open, \
182 #define DEFINE_PROC_SHOW_ATTRIBUTE(__name) \ argument
183 static int __name ## _open(struct inode *inode, struct file *file) \
185 return single_open(file, __name ## _show, PDE_DATA(inode)); \
188 static const struct proc_ops __name ## _proc_ops = { \
189 .proc_open = __name ## _open, \