Lines Matching refs:sock
72 #include <net/sock.h>
137 struct sock sk;
162 static inline struct isotp_sock *isotp_sk(const struct sock *sk)
182 struct sock *sk = &so->sk;
199 static int isotp_send_fc(struct sock *sk, int ae, u8 flowstatus)
264 static void isotp_rcv_skb(struct sk_buff *skb, struct sock *sk)
350 struct sock *sk = &so->sk;
429 static int isotp_rcv_sf(struct sock *sk, struct canfd_frame *cf, int pcilen,
462 static int isotp_rcv_ff(struct sock *sk, struct canfd_frame *cf, int ae)
525 static int isotp_rcv_cf(struct sock *sk, struct canfd_frame *cf, int ae,
621 struct sock *sk = (struct sock *)data;
738 struct sock *sk = &so->sk;
830 struct sock *sk = (struct sock *)data;
876 struct sock *sk = &so->sk;
912 static int isotp_sendmsg(struct socket *sock, struct msghdr *msg, size_t size)
914 struct sock *sk = sock->sk;
1093 static int isotp_recvmsg(struct socket *sock, struct msghdr *msg, size_t size,
1096 struct sock *sk = sock->sk;
1139 static int isotp_release(struct socket *sock)
1141 struct sock *sk = sock->sk;
1200 sock->sk = NULL;
1208 static int isotp_bind(struct socket *sock, struct sockaddr *uaddr, int len)
1211 struct sock *sk = sock->sk;
1316 static int isotp_getname(struct socket *sock, struct sockaddr *uaddr, int peer)
1319 struct sock *sk = sock->sk;
1334 static int isotp_setsockopt_locked(struct socket *sock, int level, int optname,
1337 struct sock *sk = sock->sk;
1432 static int isotp_setsockopt(struct socket *sock, int level, int optname,
1436 struct sock *sk = sock->sk;
1443 ret = isotp_setsockopt_locked(sock, level, optname, optval, optlen);
1448 static int isotp_getsockopt(struct socket *sock, int level, int optname,
1451 struct sock *sk = sock->sk;
1503 struct sock *sk = &so->sk;
1566 static int isotp_init(struct sock *sk)
1610 static __poll_t isotp_poll(struct file *file, struct socket *sock, poll_table *wait)
1612 struct sock *sk = sock->sk;
1615 __poll_t mask = datagram_poll(file, sock, wait);
1625 static int isotp_sock_no_ioctlcmd(struct socket *sock, unsigned int cmd,