Lines Matching refs:socket
281 struct socket *socket = NULL; in l1oip_socket_send() local
336 if (!hc->socket) { in l1oip_socket_send()
341 socket = hc->socket; in l1oip_socket_send()
342 hc->socket = NULL; in l1oip_socket_send()
350 len = kernel_sendmsg(socket, &hc->sendmsg, &hc->sendiov, 1, len); in l1oip_socket_send()
352 hc->socket = socket; /* no locking required */ in l1oip_socket_send()
657 struct socket *socket = NULL; in l1oip_socket_thread() local
672 if (sock_create(PF_INET, SOCK_DGRAM, IPPROTO_UDP, &socket)) { in l1oip_socket_thread()
689 if (socket->ops->bind(socket, (struct sockaddr *)&hc->sin_local, in l1oip_socket_thread()
698 if (socket->sk == NULL) { in l1oip_socket_thread()
718 hc->socket = socket; in l1oip_socket_thread()
730 recvlen = kernel_recvmsg(socket, &msg, &iov, 1, in l1oip_socket_thread()
744 while (!hc->socket) { in l1oip_socket_thread()
749 hc->socket = NULL; in l1oip_socket_thread()
761 if (socket) in l1oip_socket_thread()
762 sock_release(socket); in l1oip_socket_thread()
815 sock_release(hc->socket); in l1oip_socket_open()