Lines Matching refs:pos

92 	loff_t pos = 0, index;  in traverse()  local
122 if (pos + m->count > offset) { in traverse()
123 m->from = offset - pos; in traverse()
128 pos += m->count; in traverse()
130 if (pos == offset) { in traverse()
162 loff_t pos; in seq_read() local
221 pos = m->index; in seq_read()
222 p = m->op->start(m, &pos); in seq_read()
233 p = m->op->next(m, p, &pos); in seq_read()
234 m->index = pos; in seq_read()
246 pos = m->index; in seq_read()
247 p = m->op->start(m, &pos); in seq_read()
256 loff_t next = pos; in seq_read()
268 pos = next; in seq_read()
280 pos++; in seq_read()
281 m->index = pos; in seq_read()
542 static void *single_start(struct seq_file *p, loff_t *pos) in single_start() argument
544 return NULL + (*pos == 0); in single_start()
547 static void *single_next(struct seq_file *p, void *v, loff_t *pos) in single_next() argument
549 ++*pos; in single_next()
758 struct list_head *seq_list_start(struct list_head *head, loff_t pos) in seq_list_start() argument
763 if (pos-- == 0) in seq_list_start()
770 struct list_head *seq_list_start_head(struct list_head *head, loff_t pos) in seq_list_start_head() argument
772 if (!pos) in seq_list_start_head()
775 return seq_list_start(head, pos - 1); in seq_list_start_head()
796 struct hlist_node *seq_hlist_start(struct hlist_head *head, loff_t pos) in seq_hlist_start() argument
801 if (pos-- == 0) in seq_hlist_start()
815 struct hlist_node *seq_hlist_start_head(struct hlist_head *head, loff_t pos) in seq_hlist_start_head() argument
817 if (!pos) in seq_hlist_start_head()
820 return seq_hlist_start(head, pos - 1); in seq_hlist_start_head()
857 loff_t pos) in seq_hlist_start_rcu() argument
862 if (pos-- == 0) in seq_hlist_start_rcu()
881 loff_t pos) in seq_hlist_start_head_rcu() argument
883 if (!pos) in seq_hlist_start_head_rcu()
886 return seq_hlist_start_rcu(head, pos - 1); in seq_hlist_start_head_rcu()
925 seq_hlist_start_percpu(struct hlist_head __percpu *head, int *cpu, loff_t pos) in seq_hlist_start_percpu() argument
931 if (pos-- == 0) in seq_hlist_start_percpu()
950 int *cpu, loff_t *pos) in seq_hlist_next_percpu() argument
954 ++*pos; in seq_hlist_next_percpu()