Lines Matching refs:op
30 int seq_open(struct file *file, const struct seq_operations *op) in seq_open() argument
42 p->op = op; in seq_open()
83 p = m->op->start(m, &index); in traverse()
88 error = m->op->show(m, p); in traverse()
110 p = m->op->next(m, p, &index); in traverse()
112 m->op->stop(m, p); in traverse()
117 m->op->stop(m, p); in traverse()
194 p = m->op->start(m, &pos); in seq_read()
199 err = m->op->show(m, p); in seq_read()
205 p = m->op->next(m, p, &pos); in seq_read()
211 m->op->stop(m, p); in seq_read()
219 p = m->op->start(m, &pos); in seq_read()
221 m->op->stop(m, p); in seq_read()
229 p = m->op->next(m, p, &next); in seq_read()
234 err = m->op->show(m, p); in seq_read()
242 m->op->stop(m, p); in seq_read()
550 struct seq_operations *op = kmalloc(sizeof(*op), GFP_KERNEL); in single_open() local
553 if (op) { in single_open()
554 op->start = single_start; in single_open()
555 op->next = single_next; in single_open()
556 op->stop = single_stop; in single_open()
557 op->show = show; in single_open()
558 res = seq_open(file, op); in single_open()
562 kfree(op); in single_open()
570 const struct seq_operations *op = ((struct seq_file *)file->private_data)->op; in single_release() local
572 kfree(op); in single_release()