Lines Matching refs:pos
132 static void *sctp_eps_seq_start(struct seq_file *seq, loff_t *pos) in sctp_eps_seq_start() argument
134 if (*pos >= sctp_ep_hashsize) in sctp_eps_seq_start()
137 if (*pos < 0) in sctp_eps_seq_start()
138 *pos = 0; in sctp_eps_seq_start()
140 if (*pos == 0) in sctp_eps_seq_start()
143 return (void *)pos; in sctp_eps_seq_start()
151 static void *sctp_eps_seq_next(struct seq_file *seq, void *v, loff_t *pos) in sctp_eps_seq_next() argument
153 if (++*pos >= sctp_ep_hashsize) in sctp_eps_seq_next()
156 return pos; in sctp_eps_seq_next()
205 static void *sctp_transport_seq_start(struct seq_file *seq, loff_t *pos) in sctp_transport_seq_start() argument
211 return sctp_transport_get_idx(seq_file_net(seq), &iter->hti, *pos); in sctp_transport_seq_start()
227 static void *sctp_transport_seq_next(struct seq_file *seq, void *v, loff_t *pos) in sctp_transport_seq_next() argument
237 ++*pos; in sctp_transport_seq_next()