Lines Matching refs:op
19 * @op: method table describing the sequence
22 * by @op. @op->start() sets the iterator up and returns the first
23 * element of sequence. @op->stop() shuts it down. @op->next()
24 * returns the next element of sequence. @op->show() prints element
30 int seq_open(struct file *file, const struct seq_operations *op)
42 p->op = op;
83 p = m->op->start(m, &index);
88 error = m->op->show(m, p);
110 p = m->op->next(m, p, &index);
112 m->op->stop(m, p);
117 m->op->stop(m, p);
159 * seq_file->op->..m_start/m_stop/m_next may do special actions
194 p = m->op->start(m, &pos);
199 err = m->op->show(m, p);
205 p = m->op->next(m, p, &pos);
211 m->op->stop(m, p);
219 p = m->op->start(m, &pos);
221 m->op->stop(m, p);
229 p = m->op->next(m, p, &next);
234 err = m->op->show(m, p);
242 m->op->stop(m, p);
554 struct seq_operations *op = kmalloc(sizeof(*op), GFP_KERNEL);
557 if (op) {
558 op->start = single_start;
559 op->next = single_next;
560 op->stop = single_stop;
561 op->show = show;
562 res = seq_open(file, op);
566 kfree(op);
574 const struct seq_operations *op = ((struct seq_file *)file->private_data)->op;
576 kfree(op);
703 * Called at seq_file->op->start().
721 * Called at seq_file->op->start(). Call this function if you want to
739 * Called at seq_file->op->next().
759 * Called at seq_file->op->start().
782 * Called at seq_file->op->start(). Call this function if you want to
805 * Called at seq_file->op->next().