Lines Matching refs:ksmbd_socket

22 	struct socket		*ksmbd_socket;  member
233 if (!iface->ksmbd_socket) { in ksmbd_kthread_fn()
237 ret = kernel_accept(iface->ksmbd_socket, &client_sk, in ksmbd_kthread_fn()
401 static void tcp_destroy_socket(struct socket *ksmbd_socket) in tcp_destroy_socket() argument
405 if (!ksmbd_socket) in tcp_destroy_socket()
409 ksmbd_tcp_rcv_timeout(ksmbd_socket, 0); in tcp_destroy_socket()
410 ksmbd_tcp_snd_timeout(ksmbd_socket, 0); in tcp_destroy_socket()
412 ret = kernel_sock_shutdown(ksmbd_socket, SHUT_RDWR); in tcp_destroy_socket()
415 sock_release(ksmbd_socket); in tcp_destroy_socket()
429 struct socket *ksmbd_socket; in create_socket() local
432 ret = sock_create(PF_INET6, SOCK_STREAM, IPPROTO_TCP, &ksmbd_socket); in create_socket()
437 &ksmbd_socket); in create_socket()
452 lock_sock(ksmbd_socket->sk); in create_socket()
453 ksmbd_socket->sk->sk_ipv6only = false; in create_socket()
454 release_sock(ksmbd_socket->sk); in create_socket()
457 ksmbd_tcp_nodelay(ksmbd_socket); in create_socket()
458 ksmbd_tcp_reuseaddr(ksmbd_socket); in create_socket()
460 ret = sock_setsockopt(ksmbd_socket, in create_socket()
471 ret = kernel_bind(ksmbd_socket, (struct sockaddr *)&sin, in create_socket()
474 ret = kernel_bind(ksmbd_socket, (struct sockaddr *)&sin6, in create_socket()
481 ksmbd_socket->sk->sk_rcvtimeo = KSMBD_TCP_RECV_TIMEOUT; in create_socket()
482 ksmbd_socket->sk->sk_sndtimeo = KSMBD_TCP_SEND_TIMEOUT; in create_socket()
484 ret = kernel_listen(ksmbd_socket, KSMBD_SOCKET_BACKLOG); in create_socket()
490 iface->ksmbd_socket = ksmbd_socket; in create_socket()
501 tcp_destroy_socket(ksmbd_socket); in create_socket()
503 iface->ksmbd_socket = NULL; in create_socket()
546 tcp_destroy_socket(iface->ksmbd_socket); in ksmbd_netdev_event()
547 iface->ksmbd_socket = NULL; in ksmbd_netdev_event()