Lines Matching defs:sock
17 #include <net/sock.h>
50 static int pn_socket_create(struct net *net, struct socket *sock, int protocol,
53 struct sock *sk;
63 switch (sock->type) {
82 if (sock->type != pnp->sock_type) {
93 sock_init_data(sock, sk);
94 sock->state = SS_UNCONNECTED;
95 sock->ops = pnp->ops;
224 int pn_skb_send(struct sock *sk, struct sk_buff *skb,
252 struct sock *sk = pn_find_sock_by_res(net, res);
395 struct sock *sk = pn_find_sock_by_res(net, sa.spn_resource);
403 struct sock *sk = pn_find_sock_by_sa(net, &sa);