Lines Matching defs:local
127 * bind a local address to an RxRPC socket
132 struct rxrpc_local *local;
149 local = rxrpc_lookup_local(sock_net(&rx->sk), &rx->srx);
150 if (IS_ERR(local)) {
151 ret = PTR_ERR(local);
156 write_lock(&local->services_lock);
157 if (rcu_access_pointer(local->service))
159 rx->local = local;
160 rcu_assign_pointer(local->service, rx);
161 write_unlock(&local->services_lock);
165 rx->local = local;
195 write_unlock(&local->services_lock);
196 rxrpc_unuse_local(local);
197 rxrpc_put_local(local);
226 ASSERT(rx->local != NULL);
317 cp.local = rx->local;
502 struct rxrpc_local *local;
541 local = rxrpc_lookup_local(sock_net(sock->sk), &rx->srx);
542 if (IS_ERR(local)) {
543 ret = PTR_ERR(local);
547 rx->local = local;
869 rx->local->service_closed = true;
877 if (rx->local && rcu_access_pointer(rx->local->service) == rx) {
878 write_lock(&rx->local->services_lock);
879 rcu_assign_pointer(rx->local->service, NULL);
880 write_unlock(&rx->local->services_lock);
889 rxrpc_unuse_local(rx->local);
890 rxrpc_put_local(rx->local);
891 rx->local = NULL;
1064 /* Make sure the local and peer records pinned by any dying connections