Lines Matching defs:sock

34  *					has gone by moving it into sock.c
277 #include <net/sock.h>
332 void tcp_enter_memory_pressure(struct sock *sk)
347 void tcp_leave_memory_pressure(struct sock *sk)
415 void tcp_init_sock(struct sock *sk)
476 static void tcp_tx_timestamp(struct sock *sk, u16 tsflags)
493 int target, struct sock *sk)
517 __poll_t tcp_poll(struct file *file, struct socket *sock, poll_table *wait)
520 struct sock *sk = sock->sk;
525 sock_poll_wait(file, sock, wait);
621 int tcp_ioctl(struct sock *sk, int cmd, unsigned long arg)
678 static void skb_entail(struct sock *sk, struct sk_buff *skb)
713 static bool tcp_should_autocork(struct sock *sk, struct sk_buff *skb,
722 void tcp_push(struct sock *sk, int flags, int mss_now,
770 static int __tcp_splice_read(struct sock *sk, struct tcp_splice_state *tss)
783 * @sock: socket to splice from
793 ssize_t tcp_splice_read(struct socket *sock, loff_t *ppos,
797 struct sock *sk = sock->sk;
818 timeo = sock_rcvtimeo(sk, sock->file->f_flags & O_NONBLOCK);
882 struct sk_buff *sk_stream_alloc_skb(struct sock *sk, int size, gfp_t gfp,
933 static unsigned int tcp_xmit_size_goal(struct sock *sk, u32 mss_now,
958 int tcp_send_mss(struct sock *sk, int *size_goal, int flags)
974 static void tcp_remove_empty_skb(struct sock *sk, struct sk_buff *skb)
984 ssize_t do_tcp_sendpages(struct sock *sk, struct page *page, int offset,
1126 int tcp_sendpage_locked(struct sock *sk, struct page *page, int offset,
1138 int tcp_sendpage(struct sock *sk, struct page *page, int offset,
1159 static int tcp_sendmsg_fastopen(struct sock *sk, struct msghdr *msg,
1207 int tcp_sendmsg_locked(struct sock *sk, struct msghdr *msg, size_t size)
1460 int tcp_sendmsg(struct sock *sk, struct msghdr *msg, size_t size)
1477 static int tcp_recv_urg(struct sock *sk, struct msghdr *msg, int len, int flags)
1521 static int tcp_peek_sndq(struct sock *sk, struct msghdr *msg, int len)
1552 void tcp_cleanup_rbuf(struct sock *sk, int copied)
1612 static struct sk_buff *tcp_recv_skb(struct sock *sk, u32 seq, u32 *off)
1647 int tcp_read_sock(struct sock *sk, read_descriptor_t *desc,
1721 int tcp_peek_len(struct socket *sock)
1723 return tcp_inq(sock->sk);
1728 int tcp_set_rcvlowat(struct sock *sk, int val)
1758 int tcp_mmap(struct file *file, struct socket *sock,
1854 struct sock *sk,
1904 static int tcp_zerocopy_receive(struct sock *sk,
2049 static void tcp_recv_timestamp(struct msghdr *msg, const struct sock *sk,
2114 static int tcp_inq_hint(struct sock *sk)
2136 * This routine copies from a sock struct into the user buffer.
2143 int tcp_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, int nonblock,
2407 void tcp_set_state(struct sock *sk, int state)
2486 static int tcp_close_state(struct sock *sk)
2501 void tcp_shutdown(struct sock *sk, int how)
2547 bool tcp_check_oom(struct sock *sk, int shift)
2561 void __tcp_close(struct sock *sk, long timeout)
2732 void tcp_close(struct sock *sk, long timeout)
2752 static void tcp_rtx_queue_purge(struct sock *sk)
2769 void tcp_write_queue_purge(struct sock *sk)
2791 int tcp_disconnect(struct sock *sk, int flags)
2941 static inline bool tcp_can_repair_sock(const struct sock *sk)
2979 static int tcp_repair_options_est(struct sock *sk, sockptr_t optbuf,
3053 static void __tcp_sock_set_cork(struct sock *sk, bool on)
3067 void tcp_sock_set_cork(struct sock *sk, bool on)
3081 static void __tcp_sock_set_nodelay(struct sock *sk, bool on)
3091 void tcp_sock_set_nodelay(struct sock *sk)
3099 static void __tcp_sock_set_quickack(struct sock *sk, int val)
3116 void tcp_sock_set_quickack(struct sock *sk, int val)
3124 int tcp_sock_set_syncnt(struct sock *sk, int val)
3136 void tcp_sock_set_user_timeout(struct sock *sk, u32 val)
3144 int tcp_sock_set_keepidle_locked(struct sock *sk, int val)
3167 int tcp_sock_set_keepidle(struct sock *sk, int val)
3178 int tcp_sock_set_keepintvl(struct sock *sk, int val)
3190 int tcp_sock_set_keepcnt(struct sock *sk, int val)
3206 static int do_tcp_setsockopt(struct sock *sk, int level, int optname,
3528 int tcp_setsockopt(struct sock *sk, int level, int optname, sockptr_t optval,
3561 void tcp_get_info(struct sock *sk, struct tcp_info *info)
3710 struct sk_buff *tcp_get_timestamping_opt_stats(const struct sock *sk,
3771 static int do_tcp_getsockopt(struct sock *sk, int level,
4091 int tcp_getsockopt(struct sock *sk, int level, int optname, char __user *optval,
4248 void tcp_done(struct sock *sk)
4275 int tcp_abort(struct sock *sk, int err)
4291 /* BPF context ensures sock locking. */