Lines Matching refs:_pos

27 static void *rxrpc_call_seq_start(struct seq_file *seq, loff_t *_pos)  in rxrpc_call_seq_start()  argument
33 return seq_list_start_head_rcu(&rxnet->calls, *_pos); in rxrpc_call_seq_start()
126 static void *rxrpc_connection_seq_start(struct seq_file *seq, loff_t *_pos) in rxrpc_connection_seq_start() argument
132 return seq_list_start_head(&rxnet->conn_proc_list, *_pos); in rxrpc_connection_seq_start()
246 static void *rxrpc_peer_seq_start(struct seq_file *seq, loff_t *_pos) in rxrpc_peer_seq_start() argument
256 if (*_pos >= UINT_MAX) in rxrpc_peer_seq_start()
259 n = *_pos & ((1U << shift) - 1); in rxrpc_peer_seq_start()
260 bucket = *_pos >> shift; in rxrpc_peer_seq_start()
263 *_pos = UINT_MAX; in rxrpc_peer_seq_start()
269 *_pos += 1; in rxrpc_peer_seq_start()
278 *_pos = (bucket << shift) | n; in rxrpc_peer_seq_start()
282 static void *rxrpc_peer_seq_next(struct seq_file *seq, void *v, loff_t *_pos) in rxrpc_peer_seq_next() argument
289 if (*_pos >= UINT_MAX) in rxrpc_peer_seq_next()
292 bucket = *_pos >> shift; in rxrpc_peer_seq_next()
294 p = seq_hlist_next_rcu(v, &rxnet->peer_hash[bucket], _pos); in rxrpc_peer_seq_next()
301 *_pos = (bucket << shift) | n; in rxrpc_peer_seq_next()
304 *_pos = UINT_MAX; in rxrpc_peer_seq_next()
308 *_pos += 1; in rxrpc_peer_seq_next()
360 static void *rxrpc_local_seq_start(struct seq_file *seq, loff_t *_pos) in rxrpc_local_seq_start() argument
368 if (*_pos >= UINT_MAX) in rxrpc_local_seq_start()
371 n = *_pos; in rxrpc_local_seq_start()
378 static void *rxrpc_local_seq_next(struct seq_file *seq, void *v, loff_t *_pos) in rxrpc_local_seq_next() argument
382 if (*_pos >= UINT_MAX) in rxrpc_local_seq_next()
385 return seq_hlist_next_rcu(v, &rxnet->local_endpoints, _pos); in rxrpc_local_seq_next()