Lines Matching defs:sk
58 static const struct proto_ops *mptcp_fallback_tcp_ops(const struct sock *sk) in mptcp_fallback_tcp_ops()
71 struct sock *sk = (struct sock *)msk; in __mptcp_socket_create() local
100 struct sock *sk = (struct sock *)msk; in __mptcp_nmpc_sk() local
115 static void mptcp_drop(struct sock *sk, struct sk_buff *skb) in mptcp_drop()
121 static void mptcp_rmem_fwd_alloc_add(struct sock *sk, int size) in mptcp_rmem_fwd_alloc_add()
127 static void mptcp_rmem_charge(struct sock *sk, int size) in mptcp_rmem_charge()
132 static bool mptcp_try_coalesce(struct sock *sk, struct sk_buff *to, in mptcp_try_coalesce()
167 static void __mptcp_rmem_reclaim(struct sock *sk, int amount) in __mptcp_rmem_reclaim()
174 static void mptcp_rmem_uncharge(struct sock *sk, int size) in mptcp_rmem_uncharge()
190 struct sock *sk = skb->sk; in mptcp_rfree() local
196 void mptcp_set_owner_r(struct sk_buff *skb, struct sock *sk) in mptcp_set_owner_r()
211 struct sock *sk = (struct sock *)msk; in mptcp_data_queue_ofo() local
320 static bool mptcp_rmem_schedule(struct sock *sk, struct sock *ssk, int size) in mptcp_rmem_schedule()
343 struct sock *sk = (struct sock *)msk; in __mptcp_move_skb() local
394 static void mptcp_stop_rtx_timer(struct sock *sk) in mptcp_stop_rtx_timer()
402 static void mptcp_close_wake_up(struct sock *sk) in mptcp_close_wake_up()
416 static bool mptcp_pending_data_fin_ack(struct sock *sk) in mptcp_pending_data_fin_ack()
425 static void mptcp_check_data_fin_ack(struct sock *sk) in mptcp_check_data_fin_ack()
448 static bool mptcp_pending_data_fin(struct sock *sk, u64 *seq) in mptcp_pending_data_fin()
468 static void mptcp_set_datafin_timeout(struct sock *sk) in mptcp_set_datafin_timeout()
479 static void __mptcp_set_timeout(struct sock *sk, long tout) in __mptcp_set_timeout()
492 static void mptcp_set_timeout(struct sock *sk) in mptcp_set_timeout()
558 struct sock *sk = (struct sock *)msk; in mptcp_cleanup_rbuf() local
573 static bool mptcp_check_data_fin(struct sock *sk) in mptcp_check_data_fin()
640 struct sock *sk = (struct sock *)msk; in __mptcp_move_skbs_from_subflow() local
738 struct sock *sk = (struct sock *)msk; in __mptcp_ofo_queue() local
781 static bool __mptcp_subflow_error_report(struct sock *sk, struct sock *ssk) in __mptcp_subflow_error_report()
811 void __mptcp_error_report(struct sock *sk) in __mptcp_error_report()
826 struct sock *sk = (struct sock *)msk; in move_skbs_to_msk() local
848 void mptcp_data_ready(struct sock *sk, struct sock *ssk) in mptcp_data_ready()
886 struct sock *sk = (struct sock *)msk; in __mptcp_finish_join() local
905 static void __mptcp_flush_join_list(struct sock *sk, struct list_head *join_list) in __mptcp_flush_join_list()
921 static bool mptcp_rtx_timer_pending(struct sock *sk) in mptcp_rtx_timer_pending()
926 static void mptcp_reset_rtx_timer(struct sock *sk) in mptcp_reset_rtx_timer()
939 bool mptcp_schedule_work(struct sock *sk) in mptcp_schedule_work()
995 static void dfrag_uncharge(struct sock *sk, int len) in dfrag_uncharge()
1001 static void dfrag_clear(struct sock *sk, struct mptcp_data_frag *dfrag) in dfrag_clear()
1011 static void __mptcp_clean_una(struct sock *sk) in __mptcp_clean_una()
1070 static void __mptcp_clean_una_wakeup(struct sock *sk) in __mptcp_clean_una_wakeup()
1078 static void mptcp_clean_una_wakeup(struct sock *sk) in mptcp_clean_una_wakeup()
1085 static void mptcp_enter_memory_pressure(struct sock *sk) in mptcp_enter_memory_pressure()
1106 static bool mptcp_page_frag_refill(struct sock *sk, struct page_frag *pfrag) in mptcp_page_frag_refill()
1173 static struct sk_buff *__mptcp_do_alloc_tx_skb(struct sock *sk, gfp_t gfp) in __mptcp_do_alloc_tx_skb()
1192 static struct sk_buff *__mptcp_alloc_tx_skb(struct sock *sk, struct sock *ssk, gfp_t gfp) in __mptcp_alloc_tx_skb()
1209 static struct sk_buff *mptcp_alloc_tx_skb(struct sock *sk, struct sock *ssk, bool data_lock_held) in mptcp_alloc_tx_skb()
1246 static int mptcp_sendmsg_frag(struct sock *sk, struct sock *ssk, in mptcp_sendmsg_frag()
1429 struct sock *sk = (struct sock *)msk; in mptcp_subflow_get_send() local
1534 void mptcp_check_and_set_pending(struct sock *sk) in mptcp_check_and_set_pending()
1543 static int __subflow_push_pending(struct sock *sk, struct sock *ssk, in __subflow_push_pending()
1587 void __mptcp_push_pending(struct sock *sk, unsigned int flags) in __mptcp_push_pending()
1652 static void __mptcp_subflow_push_pending(struct sock *sk, struct sock *ssk, bool first) in __mptcp_subflow_push_pending()
1721 static int mptcp_sendmsg_fastopen(struct sock *sk, struct msghdr *msg, in mptcp_sendmsg_fastopen()
1777 static int do_copy_data_nocache(struct sock *sk, int copy, in do_copy_data_nocache()
1794 static u32 mptcp_send_limit(const struct sock *sk) in mptcp_send_limit()
1813 static int mptcp_sendmsg(struct sock *sk, struct msghdr *msg, size_t len) in mptcp_sendmsg()
2005 struct sock *sk = (struct sock *)msk; in mptcp_rcv_space_adjust() local
2098 static void __mptcp_update_rmem(struct sock *sk) in __mptcp_update_rmem()
2110 static void __mptcp_splice_receive_queue(struct sock *sk) in __mptcp_splice_receive_queue()
2119 struct sock *sk = (struct sock *)msk; in __mptcp_move_skbs() local
2160 static unsigned int mptcp_inq_hint(const struct sock *sk) in mptcp_inq_hint()
2181 static int mptcp_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, in mptcp_recvmsg()
2305 struct sock *sk = &icsk->icsk_inet.sk; in mptcp_retransmit_timer() local
2323 struct sock *sk = from_timer(sk, t, sk_timer); in mptcp_tout_timer() local
2370 bool __mptcp_retransmit_pending_data(struct sock *sk) in __mptcp_retransmit_pending_data()
2439 static void __mptcp_close_ssk(struct sock *sk, struct sock *ssk, in __mptcp_close_ssk()
2532 void mptcp_close_ssk(struct sock *sk, struct sock *ssk, in mptcp_close_ssk()
2552 static unsigned int mptcp_sync_mss(struct sock *sk, u32 pmtu) in mptcp_sync_mss()
2557 static void __mptcp_close_subflow(struct sock *sk) in __mptcp_close_subflow()
2582 static bool mptcp_close_tout_expired(const struct sock *sk) in mptcp_close_tout_expired()
2595 struct sock *sk = (struct sock *)msk; in mptcp_check_fastclose() local
2641 static void __mptcp_retrans(struct sock *sk) in __mptcp_retrans()
2725 struct sock *sk = (struct sock *)msk; in mptcp_reset_tout_timer() local
2758 static void mptcp_do_fastclose(struct sock *sk) in mptcp_do_fastclose()
2772 struct sock *sk = (struct sock *)msk; in mptcp_worker() local
2814 static void __mptcp_init_sock(struct sock *sk) in __mptcp_init_sock()
2847 static void mptcp_ca_reset(struct sock *sk) in mptcp_ca_reset()
2860 static int mptcp_init_sock(struct sock *sk) in mptcp_init_sock()
2894 static void __mptcp_clear_xmit(struct sock *sk) in __mptcp_clear_xmit()
2904 void mptcp_cancel_work(struct sock *sk) in mptcp_cancel_work()
2912 void mptcp_subflow_shutdown(struct sock *sk, struct sock *ssk, int how) in mptcp_subflow_shutdown()
2947 void mptcp_set_state(struct sock *sk, int state) in mptcp_set_state()
2987 static int mptcp_close_state(struct sock *sk) in mptcp_close_state()
2997 static void mptcp_check_send_data_fin(struct sock *sk) in mptcp_check_send_data_fin()
3022 static void __mptcp_wr_shutdown(struct sock *sk) in __mptcp_wr_shutdown()
3037 static void __mptcp_destroy_sock(struct sock *sk) in __mptcp_destroy_sock()
3060 void __mptcp_unaccepted_force_close(struct sock *sk) in __mptcp_unaccepted_force_close()
3067 static __poll_t mptcp_check_readable(struct sock *sk) in mptcp_check_readable()
3072 static void mptcp_check_listen_stop(struct sock *sk) in mptcp_check_listen_stop()
3092 bool __mptcp_close(struct sock *sk, long timeout) in __mptcp_close()
3163 static void mptcp_close(struct sock *sk, long timeout) in mptcp_close()
3200 static int mptcp_disconnect(struct sock *sk, int flags) in mptcp_disconnect()
3249 static struct ipv6_pinfo *mptcp_inet6_sk(const struct sock *sk) in mptcp_inet6_sk()
3256 static void mptcp_copy_ip6_options(struct sock *newsk, const struct sock *sk) in mptcp_copy_ip6_options()
3276 static void mptcp_copy_ip_options(struct sock *newsk, const struct sock *sk) in mptcp_copy_ip_options()
3299 struct sock *mptcp_sk_clone_init(const struct sock *sk, in mptcp_sk_clone_init()
3399 struct sock *sk = (struct sock *)msk; in mptcp_destroy_common() local
3424 static void mptcp_destroy(struct sock *sk) in mptcp_destroy()
3434 void __mptcp_data_acked(struct sock *sk) in __mptcp_data_acked()
3442 void __mptcp_check_push(struct sock *sk, struct sock *ssk) in __mptcp_check_push()
3458 static void mptcp_release_cb(struct sock *sk) in mptcp_release_cb()
3541 struct sock *sk = subflow->conn; in mptcp_subflow_process_delegated() local
3563 static int mptcp_hash(struct sock *sk) in mptcp_hash()
3572 static void mptcp_unhash(struct sock *sk) in mptcp_unhash()
3577 static int mptcp_get_port(struct sock *sk, unsigned short snum) in mptcp_get_port()
3592 struct sock *sk; in mptcp_finish_connect() local
3611 void mptcp_sock_graft(struct sock *sk, struct socket *parent) in mptcp_sock_graft()
3671 static void mptcp_shutdown(struct sock *sk, int how) in mptcp_shutdown()
3679 static int mptcp_forward_alloc_get(const struct sock *sk) in mptcp_forward_alloc_get()
3687 const struct sock *sk = (void *)msk; in mptcp_ioctl_outq() local
3714 static int mptcp_ioctl(struct sock *sk, int cmd, int *karg) in mptcp_ioctl()
3746 static int mptcp_connect(struct sock *sk, struct sockaddr *uaddr, int addr_len) in mptcp_connect()
3861 struct sock *ssk, *sk = sock->sk; in mptcp_bind() local
3888 struct sock *sk = sock->sk; in mptcp_listen() local
4012 struct sock *sk = (struct sock *)msk; in mptcp_check_writeable() local
4028 struct sock *sk = sock->sk; in mptcp_poll() local