Lines Matching refs:peer
21 struct rxrpc_connection *rxrpc_find_service_conn_rcu(struct rxrpc_peer *peer, in rxrpc_find_service_conn_rcu() argument
39 read_seqbegin_or_lock(&peer->service_conn_lock, &seq); in rxrpc_find_service_conn_rcu()
41 p = rcu_dereference_raw(peer->service_conns.rb_node); in rxrpc_find_service_conn_rcu()
53 } while (need_seqretry(&peer->service_conn_lock, seq)); in rxrpc_find_service_conn_rcu()
55 done_seqretry(&peer->service_conn_lock, seq); in rxrpc_find_service_conn_rcu()
64 static void rxrpc_publish_service_conn(struct rxrpc_peer *peer, in rxrpc_publish_service_conn() argument
71 write_seqlock(&peer->service_conn_lock); in rxrpc_publish_service_conn()
73 pp = &peer->service_conns.rb_node; in rxrpc_publish_service_conn()
89 rb_insert_color(&conn->service_node, &peer->service_conns); in rxrpc_publish_service_conn()
92 write_sequnlock(&peer->service_conn_lock); in rxrpc_publish_service_conn()
99 write_sequnlock(&peer->service_conn_lock); in rxrpc_publish_service_conn()
111 &peer->service_conns); in rxrpc_publish_service_conn()
180 rxrpc_publish_service_conn(conn->peer, conn); in rxrpc_new_incoming_connection()
189 struct rxrpc_peer *peer = conn->peer; in rxrpc_unpublish_service_conn() local
191 write_seqlock(&peer->service_conn_lock); in rxrpc_unpublish_service_conn()
193 rb_erase(&conn->service_node, &peer->service_conns); in rxrpc_unpublish_service_conn()
194 write_sequnlock(&peer->service_conn_lock); in rxrpc_unpublish_service_conn()