Lines Matching refs:_pos
27 static void *rxrpc_call_seq_start(struct seq_file *seq, loff_t *_pos) in rxrpc_call_seq_start() argument
35 return seq_list_start_head(&rxnet->calls, *_pos); in rxrpc_call_seq_start()
132 static void *rxrpc_connection_seq_start(struct seq_file *seq, loff_t *_pos) in rxrpc_connection_seq_start() argument
138 return seq_list_start_head(&rxnet->conn_proc_list, *_pos); in rxrpc_connection_seq_start()
252 static void *rxrpc_peer_seq_start(struct seq_file *seq, loff_t *_pos) in rxrpc_peer_seq_start() argument
262 if (*_pos >= UINT_MAX) in rxrpc_peer_seq_start()
265 n = *_pos & ((1U << shift) - 1); in rxrpc_peer_seq_start()
266 bucket = *_pos >> shift; in rxrpc_peer_seq_start()
269 *_pos = UINT_MAX; in rxrpc_peer_seq_start()
275 *_pos += 1; in rxrpc_peer_seq_start()
284 *_pos = (bucket << shift) | n; in rxrpc_peer_seq_start()
288 static void *rxrpc_peer_seq_next(struct seq_file *seq, void *v, loff_t *_pos) in rxrpc_peer_seq_next() argument
295 if (*_pos >= UINT_MAX) in rxrpc_peer_seq_next()
298 bucket = *_pos >> shift; in rxrpc_peer_seq_next()
300 p = seq_hlist_next_rcu(v, &rxnet->peer_hash[bucket], _pos); in rxrpc_peer_seq_next()
307 *_pos = (bucket << shift) | n; in rxrpc_peer_seq_next()
310 *_pos = UINT_MAX; in rxrpc_peer_seq_next()
314 *_pos += 1; in rxrpc_peer_seq_next()
366 static void *rxrpc_local_seq_start(struct seq_file *seq, loff_t *_pos) in rxrpc_local_seq_start() argument
374 if (*_pos >= UINT_MAX) in rxrpc_local_seq_start()
377 n = *_pos; in rxrpc_local_seq_start()
384 static void *rxrpc_local_seq_next(struct seq_file *seq, void *v, loff_t *_pos) in rxrpc_local_seq_next() argument
388 if (*_pos >= UINT_MAX) in rxrpc_local_seq_next()
391 return seq_hlist_next_rcu(v, &rxnet->local_endpoints, _pos); in rxrpc_local_seq_next()