Lines Matching refs:pending
43 struct sock *pending,
482 struct sock *pending; in vmci_transport_get_pending() local
493 pending = sk_vsock(vpending); in vmci_transport_get_pending()
494 sock_hold(pending); in vmci_transport_get_pending()
499 pending = NULL; in vmci_transport_get_pending()
501 return pending; in vmci_transport_get_pending()
505 static void vmci_transport_release_pending(struct sock *pending) in vmci_transport_release_pending() argument
507 sock_put(pending); in vmci_transport_release_pending()
940 struct sock *pending; in vmci_transport_recv_listen() local
954 pending = vmci_transport_get_pending(sk, pkt); in vmci_transport_recv_listen()
955 if (pending) { in vmci_transport_recv_listen()
956 lock_sock(pending); in vmci_transport_recv_listen()
959 vsock_sk(pending)->local_addr.svm_cid = pkt->dg.dst.context; in vmci_transport_recv_listen()
961 switch (pending->sk_state) { in vmci_transport_recv_listen()
964 pending, in vmci_transport_recv_listen()
968 vmci_transport_send_reset(pending, pkt); in vmci_transport_recv_listen()
973 vsock_remove_pending(sk, pending); in vmci_transport_recv_listen()
975 release_sock(pending); in vmci_transport_recv_listen()
976 vmci_transport_release_pending(pending); in vmci_transport_recv_listen()
1005 pending = vsock_create_connected(sk); in vmci_transport_recv_listen()
1006 if (!pending) { in vmci_transport_recv_listen()
1011 vpending = vsock_sk(pending); in vmci_transport_recv_listen()
1024 sock_put(pending); in vmci_transport_recv_listen()
1055 pending, &version, true)) in vmci_transport_recv_listen()
1056 err = vmci_transport_send_negotiate(pending, qp_size); in vmci_transport_recv_listen()
1079 pending, &active_proto_version, false)) in vmci_transport_recv_listen()
1080 err = vmci_transport_send_negotiate2(pending, in vmci_transport_recv_listen()
1093 sock_put(pending); in vmci_transport_recv_listen()
1098 vsock_add_pending(sk, pending); in vmci_transport_recv_listen()
1101 pending->sk_state = TCP_SYN_SENT; in vmci_transport_recv_listen()
1106 vmci_trans(vpending)->notify_ops->process_request(pending); in vmci_transport_recv_listen()
1119 sock_hold(pending); in vmci_transport_recv_listen()
1128 struct sock *pending, in vmci_transport_recv_connecting_server() argument
1140 vpending = vsock_sk(pending); in vmci_transport_recv_connecting_server()
1146 vmci_transport_send_reset(pending, pkt); in vmci_transport_recv_connecting_server()
1154 vmci_transport_send_reset(pending, pkt); in vmci_transport_recv_connecting_server()
1175 vmci_transport_send_reset(pending, pkt); in vmci_transport_recv_connecting_server()
1205 vmci_transport_send_reset(pending, pkt); in vmci_transport_recv_connecting_server()
1229 pending->sk_state = TCP_ESTABLISHED; in vmci_transport_recv_connecting_server()
1234 err = vmci_transport_send_attach(pending, handle); in vmci_transport_recv_connecting_server()
1238 vmci_transport_send_reset(pending, pkt); in vmci_transport_recv_connecting_server()
1248 vsock_remove_pending(listener, pending); in vmci_transport_recv_connecting_server()
1249 vsock_enqueue_accept(listener, pending); in vmci_transport_recv_connecting_server()
1259 pending->sk_err = skerr; in vmci_transport_recv_connecting_server()
1260 pending->sk_state = TCP_CLOSE; in vmci_transport_recv_connecting_server()
1268 sock_put(pending); in vmci_transport_recv_connecting_server()
1618 LIST_HEAD(pending); in vmci_transport_cleanup()
1621 list_replace_init(&vmci_transport_cleanup_list, &pending); in vmci_transport_cleanup()
1623 vmci_transport_free_resources(&pending); in vmci_transport_cleanup()