Lines Matching refs:pos

102 	loff_t pos = 0, index;  in traverse()  local
132 if (pos + m->count > offset) { in traverse()
133 m->from = offset - pos; in traverse()
138 pos += m->count; in traverse()
140 if (pos == offset) { in traverse()
172 loff_t pos; in seq_read() local
231 pos = m->index; in seq_read()
232 p = m->op->start(m, &pos); in seq_read()
243 p = m->op->next(m, p, &pos); in seq_read()
244 m->index = pos; in seq_read()
256 pos = m->index; in seq_read()
257 p = m->op->start(m, &pos); in seq_read()
266 loff_t next = pos; in seq_read()
278 pos = next; in seq_read()
290 pos++; in seq_read()
291 m->index = pos; in seq_read()
548 static void *single_start(struct seq_file *p, loff_t *pos) in single_start() argument
550 return NULL + (*pos == 0); in single_start()
553 static void *single_next(struct seq_file *p, void *v, loff_t *pos) in single_next() argument
555 ++*pos; in single_next()
801 struct list_head *seq_list_start(struct list_head *head, loff_t pos) in seq_list_start() argument
806 if (pos-- == 0) in seq_list_start()
813 struct list_head *seq_list_start_head(struct list_head *head, loff_t pos) in seq_list_start_head() argument
815 if (!pos) in seq_list_start_head()
818 return seq_list_start(head, pos - 1); in seq_list_start_head()
839 struct hlist_node *seq_hlist_start(struct hlist_head *head, loff_t pos) in seq_hlist_start() argument
844 if (pos-- == 0) in seq_hlist_start()
858 struct hlist_node *seq_hlist_start_head(struct hlist_head *head, loff_t pos) in seq_hlist_start_head() argument
860 if (!pos) in seq_hlist_start_head()
863 return seq_hlist_start(head, pos - 1); in seq_hlist_start_head()
900 loff_t pos) in seq_hlist_start_rcu() argument
905 if (pos-- == 0) in seq_hlist_start_rcu()
924 loff_t pos) in seq_hlist_start_head_rcu() argument
926 if (!pos) in seq_hlist_start_head_rcu()
929 return seq_hlist_start_rcu(head, pos - 1); in seq_hlist_start_head_rcu()
968 seq_hlist_start_percpu(struct hlist_head __percpu *head, int *cpu, loff_t pos) in seq_hlist_start_percpu() argument
974 if (pos-- == 0) in seq_hlist_start_percpu()
993 int *cpu, loff_t *pos) in seq_hlist_next_percpu() argument
997 ++*pos; in seq_hlist_next_percpu()