Lines Matching defs:sock

8 #include <net/sock.h>
26 int sk_msg_alloc(struct sock *sk, struct sk_msg *msg, int len,
86 int sk_msg_clone(struct sock *sk, struct sk_msg *dst, struct sk_msg *src,
137 void sk_msg_return_zero(struct sock *sk, struct sk_msg *msg, int bytes)
161 void sk_msg_return(struct sock *sk, struct sk_msg *msg, int bytes)
176 static int sk_msg_free_elem(struct sock *sk, struct sk_msg *msg, u32 i,
192 static int __sk_msg_free(struct sock *sk, struct sk_msg *msg, u32 i,
210 int sk_msg_free_nocharge(struct sock *sk, struct sk_msg *msg)
216 int sk_msg_free(struct sock *sk, struct sk_msg *msg)
222 static void __sk_msg_free_partial(struct sock *sk, struct sk_msg *msg,
250 void sk_msg_free_partial(struct sock *sk, struct sk_msg *msg, u32 bytes)
256 void sk_msg_free_partial_nocharge(struct sock *sk, struct sk_msg *msg,
262 void sk_msg_trim(struct sock *sk, struct sk_msg *msg, int len)
310 int sk_msg_zerocopy_from_iter(struct sock *sk, struct iov_iter *from,
368 int sk_msg_memcopy_from_iter(struct sock *sk, struct iov_iter *from,
411 static struct sk_msg *sk_psock_create_ingress_msg(struct sock *sk,
432 struct sock *sk,
463 struct sock *sk = psock->sk;
467 /* If we are receiving on the same sock skb->sk is already assigned,
497 struct sock *sk = psock->sk;
530 /* Lock sock to avoid losing sk_socket during loop. */
574 struct sk_psock *sk_psock_init(struct sock *sk, int node)
698 void sk_psock_drop(struct sock *sk, struct sk_psock *psock)
730 int sk_psock_msg_verdict(struct sock *sk, struct sk_psock *psock,
782 struct sock *sk_other;
807 static void sk_psock_tls_verdict_apply(struct sk_buff *skb, struct sock *sk, int verdict)
844 struct sock *sk_other;
887 struct sock *sk;
932 static void sk_psock_strp_data_ready(struct sock *sk)
953 struct sock *sk = (struct sock *)desc->arg.data;
987 static void sk_psock_verdict_data_ready(struct sock *sk)
989 struct socket *sock = sk->sk_socket;
992 if (unlikely(!sock || !sock->ops || !sock->ops->read_sock))
999 sock->ops->read_sock(sk, &desc, sk_psock_verdict_recv);
1002 static void sk_psock_write_space(struct sock *sk)
1005 void (*write_space)(struct sock *sk) = NULL;
1019 int sk_psock_init_strp(struct sock *sk, struct sk_psock *psock)
1031 void sk_psock_start_verdict(struct sock *sk, struct sk_psock *psock)
1044 void sk_psock_start_strp(struct sock *sk, struct sk_psock *psock)
1057 void sk_psock_stop_strp(struct sock *sk, struct sk_psock *psock)
1070 void sk_psock_stop_verdict(struct sock *sk, struct sk_psock *psock)