Lines Matching refs:socket
39 struct socket *socket; in afs_open_socket() local
44 ret = sock_create_kern(net->net, AF_RXRPC, SOCK_DGRAM, PF_INET6, &socket); in afs_open_socket()
48 socket->sk->sk_allocation = GFP_NOFS; in afs_open_socket()
59 ret = rxrpc_sock_set_min_security_level(socket->sk, in afs_open_socket()
64 ret = kernel_bind(socket, (struct sockaddr *) &srx, sizeof(srx)); in afs_open_socket()
67 ret = kernel_bind(socket, (struct sockaddr *) &srx, sizeof(srx)); in afs_open_socket()
73 ret = kernel_bind(socket, (struct sockaddr *) &srx, sizeof(srx)); in afs_open_socket()
84 rxrpc_kernel_new_call_notification(socket, afs_rx_new_call, in afs_open_socket()
87 ret = kernel_listen(socket, INT_MAX); in afs_open_socket()
91 net->socket = socket; in afs_open_socket()
97 sock_release(socket); in afs_open_socket()
110 kernel_listen(net->socket, 0); in afs_close_socket()
123 kernel_sock_shutdown(net->socket, SHUT_RDWR); in afs_close_socket()
125 sock_release(net->socket); in afs_close_socket()
178 rxrpc_kernel_end_call(net->socket, call->rxcall); in afs_put_call()
329 rxcall = rxrpc_kernel_begin_call(call->net->socket, srx, call->key, in afs_make_call()
348 rxrpc_kernel_set_max_life(call->net->socket, rxcall, in afs_make_call()
362 ret = rxrpc_kernel_send_data(call->net->socket, rxcall, in afs_make_call()
373 ret = rxrpc_kernel_send_data(call->net->socket, in afs_make_call()
394 rxrpc_kernel_abort_call(call->net->socket, rxcall, in afs_make_call()
399 rxrpc_kernel_recv_data(call->net->socket, rxcall, in afs_make_call()
416 rxrpc_kernel_end_call(call->net->socket, call->rxcall); in afs_make_call()
484 ret = rxrpc_kernel_recv_data(call->net->socket, in afs_deliver_to_call()
501 rxrpc_kernel_get_reply_time(call->net->socket, in afs_deliver_to_call()
530 rxrpc_kernel_abort_call(call->net->socket, call->rxcall, in afs_deliver_to_call()
543 rxrpc_kernel_abort_call(call->net->socket, call->rxcall, in afs_deliver_to_call()
548 rxrpc_kernel_abort_call(call->net->socket, call->rxcall, in afs_deliver_to_call()
602 if (!rxrpc_kernel_check_life(call->net->socket, call->rxcall)) { in afs_wait_for_call_to_complete()
620 if (rxrpc_kernel_abort_call(call->net->socket, call->rxcall, in afs_wait_for_call_to_complete()
733 if (rxrpc_kernel_charge_accept(net->socket, in afs_charge_preallocation()
821 rxrpc_kernel_set_tx_length(net->socket, call->rxcall, 0); in afs_send_empty_reply()
830 switch (rxrpc_kernel_send_data(net->socket, call->rxcall, &msg, 0, in afs_send_empty_reply()
838 rxrpc_kernel_abort_call(net->socket, call->rxcall, in afs_send_empty_reply()
859 rxrpc_kernel_set_tx_length(net->socket, call->rxcall, len); in afs_send_simple_reply()
870 n = rxrpc_kernel_send_data(net->socket, call->rxcall, &msg, len, in afs_send_simple_reply()
880 rxrpc_kernel_abort_call(net->socket, call->rxcall, in afs_send_simple_reply()
900 ret = rxrpc_kernel_recv_data(net->socket, call->rxcall, iter, in afs_extract_data()