Lines Matching refs:rx

104 static int rxrpc_wait_for_tx_window_intr(struct rxrpc_sock *rx,  in rxrpc_wait_for_tx_window_intr()  argument
128 static int rxrpc_wait_for_tx_window_waitall(struct rxrpc_sock *rx, in rxrpc_wait_for_tx_window_waitall() argument
168 static int rxrpc_wait_for_tx_window_nonintr(struct rxrpc_sock *rx, in rxrpc_wait_for_tx_window_nonintr() argument
189 static int rxrpc_wait_for_tx_window(struct rxrpc_sock *rx, in rxrpc_wait_for_tx_window() argument
205 ret = rxrpc_wait_for_tx_window_waitall(rx, call); in rxrpc_wait_for_tx_window()
207 ret = rxrpc_wait_for_tx_window_intr(rx, call, timeo); in rxrpc_wait_for_tx_window()
212 ret = rxrpc_wait_for_tx_window_nonintr(rx, call, timeo); in rxrpc_wait_for_tx_window()
226 static void rxrpc_notify_end_tx(struct rxrpc_sock *rx, struct rxrpc_call *call, in rxrpc_notify_end_tx() argument
230 notify_end_tx(&rx->sk, call, call->user_call_ID); in rxrpc_notify_end_tx()
238 static void rxrpc_queue_packet(struct rxrpc_sock *rx, struct rxrpc_call *call, in rxrpc_queue_packet() argument
265 rxrpc_notify_end_tx(rx, call, notify_end_tx); in rxrpc_queue_packet()
277 static int rxrpc_send_data(struct rxrpc_sock *rx, in rxrpc_send_data() argument
284 struct sock *sk = &rx->sk; in rxrpc_send_data()
409 rxrpc_queue_packet(rx, call, txb, notify_end_tx); in rxrpc_send_data()
444 ret = rxrpc_wait_for_tx_window(rx, call, &timeo, in rxrpc_send_data()
569 rxrpc_new_client_call_for_sendmsg(struct rxrpc_sock *rx, struct msghdr *msg, in rxrpc_new_client_call_for_sendmsg() argument
571 __releases(&rx->sk.sk_lock.slock) in rxrpc_new_client_call_for_sendmsg()
583 release_sock(&rx->sk); in rxrpc_new_client_call_for_sendmsg()
587 key = rx->key; in rxrpc_new_client_call_for_sendmsg()
588 if (key && !rx->key->payload.data[0]) in rxrpc_new_client_call_for_sendmsg()
592 cp.local = rx->local; in rxrpc_new_client_call_for_sendmsg()
593 cp.key = rx->key; in rxrpc_new_client_call_for_sendmsg()
594 cp.security_level = rx->min_sec_level; in rxrpc_new_client_call_for_sendmsg()
595 cp.exclusive = rx->exclusive | p->exclusive; in rxrpc_new_client_call_for_sendmsg()
598 call = rxrpc_new_client_call(rx, &cp, srx, &p->call, GFP_KERNEL, in rxrpc_new_client_call_for_sendmsg()
611 int rxrpc_do_sendmsg(struct rxrpc_sock *rx, struct msghdr *msg, size_t len) in rxrpc_do_sendmsg() argument
612 __releases(&rx->sk.sk_lock.slock) in rxrpc_do_sendmsg()
638 if (rx->sk.sk_state != RXRPC_SERVER_LISTENING) in rxrpc_do_sendmsg()
640 ret = rxrpc_user_charge_accept(rx, p.call.user_call_ID); in rxrpc_do_sendmsg()
644 call = rxrpc_find_call_by_user_ID(rx, p.call.user_call_ID); in rxrpc_do_sendmsg()
649 call = rxrpc_new_client_call_for_sendmsg(rx, msg, &p); in rxrpc_do_sendmsg()
675 release_sock(&rx->sk); in rxrpc_do_sendmsg()
726 ret = rxrpc_send_data(rx, call, msg, len, NULL, &dropped_lock); in rxrpc_do_sendmsg()
738 release_sock(&rx->sk); in rxrpc_do_sendmsg()