Searched refs:sock (Results 126 - 150 of 1083) sorted by relevance

1234567891011>>

/linux-master/crypto/
H A Dalgif_skcipher.c35 #include <net/sock.h>
37 static int skcipher_sendmsg(struct socket *sock, struct msghdr *msg, argument
40 struct sock *sk = sock->sk;
42 struct sock *psk = ask->parent;
47 return af_alg_sendmsg(sock, msg, size, ivsize);
50 static int algif_skcipher_export(struct sock *sk, struct skcipher_request *req)
57 struct sock *psk;
85 struct sock *sk = areq->sk;
96 static int _skcipher_recvmsg(struct socket *sock, struc argument
213 skcipher_recvmsg(struct socket *sock, struct msghdr *msg, size_t ignored, int flags) argument
265 skcipher_check_key(struct socket *sock) argument
300 skcipher_sendmsg_nokey(struct socket *sock, struct msghdr *msg, size_t size) argument
312 skcipher_recvmsg_nokey(struct socket *sock, struct msghdr *msg, size_t ignored, int flags) argument
[all...]
H A Dalgif_hash.c17 #include <net/sock.h>
32 static int hash_alloc_result(struct sock *sk, struct hash_ctx *ctx)
50 static void hash_free_result(struct sock *sk, struct hash_ctx *ctx)
63 static int hash_sendmsg(struct socket *sock, struct msghdr *msg, argument
66 struct sock *sk = sock->sk;
179 static int hash_recvmsg(struct socket *sock, struct msghdr *msg, size_t len, argument
182 struct sock *sk = sock->sk;
226 static int hash_accept(struct socket *sock, struc argument
298 hash_check_key(struct socket *sock) argument
333 hash_sendmsg_nokey(struct socket *sock, struct msghdr *msg, size_t size) argument
345 hash_recvmsg_nokey(struct socket *sock, struct msghdr *msg, size_t ignored, int flags) argument
357 hash_accept_nokey(struct socket *sock, struct socket *newsock, int flags, bool kern) argument
[all...]
/linux-master/net/core/
H A Dstream.c22 #include <net/sock.h>
30 void sk_stream_write_space(struct sock *sk)
32 struct socket *sock = sk->sk_socket; local
35 if (__sk_stream_is_writeable(sk, 1) && sock) {
36 clear_bit(SOCK_NOSPACE, &sock->flags);
51 * @sk: sock to wait on
56 int sk_stream_wait_connect(struct sock *sk, long *timeo_p)
90 static int sk_stream_closing(const struct sock *sk)
96 void sk_stream_wait_close(struct sock *sk, long timeout)
118 int sk_stream_wait_memory(struct sock *s
[all...]
/linux-master/net/mptcp/
H A Dtoken_test.c14 sock_net_set((struct sock *)req, &init_net);
55 struct sock *sk;
59 refcount_set(&((struct sock *)msk)->sk_refcnt, 1);
60 sock_net_set((struct sock *)msk, &init_net);
62 sk = (struct sock *)msk;
77 struct sock *sk;
80 ctx->conn = (struct sock *)msk;
81 sk = (struct sock *)msk;
84 mptcp_token_new_connect((struct sock *)icsk));
118 struct sock *s
[all...]
/linux-master/net/bluetooth/bnep/
H A Dsock.c37 static int bnep_sock_release(struct socket *sock) argument
39 struct sock *sk = sock->sk;
41 BT_DBG("sock %p sk %p", sock, sk);
53 static int do_bnep_sock_ioctl(struct socket *sock, unsigned int cmd, void __user *argp) argument
73 nsock = sockfd_lookup(ca.sock, &err);
137 static int bnep_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) argument
139 return do_bnep_sock_ioctl(sock, cmd, (void __user *)arg);
143 static int bnep_sock_compat_ioctl(struct socket *sock, unsigne argument
198 bnep_sock_create(struct net *net, struct socket *sock, int protocol, int kern) argument
[all...]
/linux-master/net/vmw_vsock/
H A Daf_vsock.c112 #include <net/sock.h>
116 static int __vsock_bind(struct sock *sk, struct sockaddr_vm *addr);
117 static void vsock_sk_destruct(struct sock *sk);
118 static int vsock_queue_rcv_skb(struct sock *sk, struct sk_buff *skb);
189 struct sock *sk = sk_vsock(vsk);
235 static struct sock *__vsock_find_bound_socket(struct sockaddr_vm *addr)
252 static struct sock *__vsock_find_connected_socket(struct sockaddr_vm *src,
304 struct sock *vsock_find_bound_socket(struct sockaddr_vm *addr)
306 struct sock *sk;
319 struct sock *vsock_find_connected_socke
727 __vsock_create(struct net *net, struct socket *sock, struct sock *parent, gfp_t priority, unsigned short type, int kern) argument
900 vsock_release(struct socket *sock) argument
910 vsock_bind(struct socket *sock, struct sockaddr *addr, int addr_len) argument
928 vsock_getname(struct socket *sock, struct sockaddr *addr, int peer) argument
971 vsock_shutdown(struct socket *sock, int mode) argument
1022 vsock_poll(struct file *file, struct socket *sock, poll_table *wait) argument
1147 vsock_dgram_sendmsg(struct socket *sock, struct msghdr *msg, size_t len) argument
1221 vsock_dgram_connect(struct socket *sock, struct sockaddr *addr, int addr_len, int flags) argument
1273 vsock_dgram_recvmsg(struct socket *sock, struct msghdr *msg, size_t len, int flags) argument
1346 vsock_connect(struct socket *sock, struct sockaddr *addr, int addr_len, int flags) argument
1503 vsock_accept(struct socket *sock, struct socket *newsock, int flags, bool kern) argument
1588 vsock_listen(struct socket *sock, int backlog) argument
1642 vsock_connectible_setsockopt(struct socket *sock, int level, int optname, sockptr_t optval, unsigned int optlen) argument
1756 vsock_connectible_getsockopt(struct socket *sock, int level, int optname, char __user *optval, int __user *optlen) argument
1818 vsock_connectible_sendmsg(struct socket *sock, struct msghdr *msg, size_t len) argument
2177 vsock_connectible_recvmsg(struct socket *sock, struct msghdr *msg, size_t len, int flags) argument
2322 vsock_create(struct net *net, struct socket *sock, int protocol, int kern) argument
[all...]
/linux-master/include/net/bluetooth/
H A Dbluetooth.h30 #include <net/sock.h>
380 struct sock sk;
382 struct sock *parent;
385 void (*skb_put_cmsg)(struct sk_buff *, struct msghdr *, struct sock *);
404 void bt_sock_link(struct bt_sock_list *l, struct sock *s);
405 void bt_sock_unlink(struct bt_sock_list *l, struct sock *s);
406 struct sock *bt_sock_alloc(struct net *net, struct socket *sock,
408 int bt_sock_recvmsg(struct socket *sock, struct msghdr *msg, size_t len,
410 int bt_sock_stream_recvmsg(struct socket *sock, struc
[all...]
/linux-master/net/llc/
H A Daf_llc.c43 static bool llc_ui_wait_for_conn(struct sock *sk, long timeout);
44 static int llc_ui_wait_for_disc(struct sock *sk, long timeout);
45 static int llc_ui_wait_for_busy_core(struct sock *sk, long timeout);
97 static inline u8 llc_ui_header_len(struct sock *sk, struct sockaddr_llc *addr)
127 static int llc_ui_send_data(struct sock* sk, struct sk_buff *skb, int noblock)
146 static void llc_ui_sk_init(struct socket *sock, struct sock *sk) argument
148 sock_graft(sk, sock);
149 sk->sk_type = sock->type;
150 sock
171 llc_ui_create(struct net *net, struct socket *sock, int protocol, int kern) argument
200 llc_ui_release(struct socket *sock) argument
276 llc_ui_autobind(struct socket *sock, struct sockaddr_llc *addr) argument
340 llc_ui_bind(struct socket *sock, struct sockaddr *uaddr, int addrlen) argument
445 llc_ui_shutdown(struct socket *sock, int how) argument
480 llc_ui_connect(struct socket *sock, struct sockaddr *uaddr, int addrlen, int flags) argument
553 llc_ui_listen(struct socket *sock, int backlog) argument
697 llc_ui_accept(struct socket *sock, struct socket *newsock, int flags, bool kern) argument
760 llc_ui_recvmsg(struct socket *sock, struct msghdr *msg, size_t len, int flags) argument
931 llc_ui_sendmsg(struct socket *sock, struct msghdr *msg, size_t len) argument
1027 llc_ui_getname(struct socket *sock, struct sockaddr *uaddr, int peer) argument
1075 llc_ui_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) argument
1091 llc_ui_setsockopt(struct socket *sock, int level, int optname, sockptr_t optval, unsigned int optlen) argument
1173 llc_ui_getsockopt(struct socket *sock, int level, int optname, char __user *optval, int __user *optlen) argument
[all...]
/linux-master/include/linux/
H A Dnetlink.h30 struct sock *sk;
53 void (*release) (struct sock *sk, unsigned long *groups);
56 struct sock *__netlink_kernel_create(struct net *net, int unit,
59 static inline struct sock *
219 void netlink_kernel_release(struct sock *sk);
220 int __netlink_change_ngroups(struct sock *sk, unsigned int groups);
221 int netlink_change_ngroups(struct sock *sk, unsigned int groups);
222 void __netlink_clear_multicast_users(struct sock *sk, unsigned int group);
225 int netlink_has_listeners(struct sock *sk, unsigned int group);
228 int netlink_unicast(struct sock *ss
[all...]
H A Dconnector.h17 #include <net/sock.h>
29 struct sock *nls;
52 struct sock *nls;
135 struct cn_queue_dev *cn_queue_alloc_dev(const char *name, struct sock *);
/linux-master/include/net/
H A Dinet_sock.h22 #include <net/sock.h>
108 static inline u32 inet_request_mark(const struct sock *sk, struct sk_buff *skb)
118 static inline int inet_request_bound_dev_if(const struct sock *sk,
132 static inline int inet_sk_bound_l3mdev(const struct sock *sk)
211 struct sock sk;
318 static inline struct sock *sk_to_full_sk(struct sock *sk)
328 static inline const struct sock *sk_const_to_full_sk(const struct sock *sk)
337 static inline struct sock *skb_to_full_s
[all...]
H A Dmip6.h16 #include <net/sock.h>
H A Ddst_ops.h12 struct sock;
29 void (*update_pmtu)(struct dst_entry *dst, struct sock *sk,
32 void (*redirect)(struct dst_entry *dst, struct sock *sk,
34 int (*local_out)(struct net *net, struct sock *sk, struct sk_buff *skb);
/linux-master/net/bluetooth/
H A Dsco.c49 struct sock *sk;
59 static void sco_sock_close(struct sock *sk);
60 static void sco_sock_kill(struct sock *sk);
83 struct sock *sk;
94 BT_DBG("sock %p state %d", sk, sk->sk_state);
103 static void sco_sock_set_timer(struct sock *sk, long timeout)
108 BT_DBG("sock %p state %d timeout %ld", sk, sk->sk_state, timeout);
113 static void sco_sock_clear_timer(struct sock *sk)
118 BT_DBG("sock %p state %d", sk, sk->sk_state);
156 static void sco_chan_del(struct sock *s
491 sco_sock_alloc(struct net *net, struct socket *sock, int proto, gfp_t prio, int kern) argument
513 sco_sock_create(struct net *net, struct socket *sock, int protocol, int kern) argument
535 sco_sock_bind(struct socket *sock, struct sockaddr *addr, int addr_len) argument
569 sco_sock_connect(struct socket *sock, struct sockaddr *addr, int alen, int flags) argument
605 sco_sock_listen(struct socket *sock, int backlog) argument
645 sco_sock_accept(struct socket *sock, struct socket *newsock, int flags, bool kern) argument
700 sco_sock_getname(struct socket *sock, struct sockaddr *addr, int peer) argument
718 sco_sock_sendmsg(struct socket *sock, struct msghdr *msg, size_t len) argument
801 sco_sock_recvmsg(struct socket *sock, struct msghdr *msg, size_t len, int flags) argument
823 sco_sock_setsockopt(struct socket *sock, int level, int optname, sockptr_t optval, unsigned int optlen) argument
961 sco_sock_getsockopt_old(struct socket *sock, int optname, char __user *optval, int __user *optlen) argument
1023 sco_sock_getsockopt(struct socket *sock, int level, int optname, char __user *optval, int __user *optlen) argument
1205 sco_sock_shutdown(struct socket *sock, int how) argument
1235 sco_sock_release(struct socket *sock) argument
[all...]
/linux-master/drivers/infiniband/sw/rxe/
H A Drxe_net.h10 #include <net/sock.h>
/linux-master/tools/testing/selftests/bpf/progs/
H A Dbpf_tcp_nogpl.c11 void BPF_STRUCT_OPS(nogpltcp_init, struct sock *sk)
H A Dtcp_ca_unsupp_cong_op.c11 size_t BPF_PROG(unsupp_cong_op_get_info, struct sock *sk, u32 ext, int *attr,
H A Dsock_destroy_prog_fail.c15 int BPF_PROG(trace_tcp_destroy_sock, struct sock *sk)
/linux-master/arch/arm/mach-pxa/
H A Dgeneric.c60 void pxa_smemc_set_pcmcia_timing(int sock, u32 mcmem, u32 mcatt, u32 mcio) argument
62 __raw_writel(mcmem, MCMEM(sock));
63 __raw_writel(mcatt, MCATT(sock));
64 __raw_writel(mcio, MCIO(sock));
/linux-master/include/linux/soc/pxa/
H A Dsmemc.h7 void pxa_smemc_set_pcmcia_timing(int sock, u32 mcmem, u32 mcatt, u32 mcio);
/linux-master/net/bluetooth/hidp/
H A Dsock.c33 static int hidp_sock_release(struct socket *sock) argument
35 struct sock *sk = sock->sk;
37 BT_DBG("sock %p sk %p", sock, sk);
50 static int do_hidp_sock_ioctl(struct socket *sock, unsigned int cmd, void __user *argp) argument
126 static int hidp_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) argument
128 return do_hidp_sock_ioctl(sock, cmd, (void __user *)arg);
148 static int hidp_sock_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) argument
219 return hidp_sock_ioctl(sock, cm
249 hidp_sock_create(struct net *net, struct socket *sock, int protocol, int kern) argument
[all...]
/linux-master/net/handshake/
H A Dtrace.c13 #include <net/sock.h>
/linux-master/include/linux/sunrpc/
H A Dsvcsock.h22 struct sock * sk_sk; /* INET layer */
25 void (*sk_ostate)(struct sock *);
26 void (*sk_odata)(struct sock *);
27 void (*sk_owspace)(struct sock *);
/linux-master/net/smc/
H A Dsmc.h18 #include <net/sock.h>
224 * sock release_cb()
247 struct smc_sock { /* smc sock container */
248 struct sock sk;
250 void (*clcsk_state_change)(struct sock *sk);
252 void (*clcsk_data_ready)(struct sock *sk);
254 void (*clcsk_write_space)(struct sock *sk);
256 void (*clcsk_error_report)(struct sock *sk);
302 static inline struct smc_sock *smc_clcsock_user_data(const struct sock *clcsk)
309 static inline void smc_clcsock_replace_cb(void (**target_cb)(struct sock *),
[all...]
/linux-master/net/nfc/
H A Dllcp_core.c25 void nfc_llcp_sock_link(struct llcp_sock_list *l, struct sock *sk)
32 void nfc_llcp_sock_unlink(struct llcp_sock_list *l, struct sock *sk)
39 void nfc_llcp_socket_remote_param_init(struct nfc_llcp_sock *sock) argument
41 sock->remote_rw = LLCP_DEFAULT_RW;
42 sock->remote_miu = LLCP_MAX_MIU + 1;
45 static void nfc_llcp_socket_purge(struct nfc_llcp_sock *sock) argument
47 struct nfc_llcp_local *local = sock->local;
50 skb_queue_purge(&sock->tx_queue);
51 skb_queue_purge(&sock->tx_pending_queue);
58 if (s->sk != &sock
231 nfc_llcp_sock_put(struct nfc_llcp_sock *sock) argument
410 nfc_llcp_get_sdp_ssap(struct nfc_llcp_local *local, struct nfc_llcp_sock *sock) argument
710 nfc_llcp_set_nrns(struct nfc_llcp_sock *sock, struct sk_buff *pdu) argument
909 struct nfc_llcp_sock *sock, *new_sock; local
1036 nfc_llcp_queue_i_frames(struct nfc_llcp_sock *sock) argument
[all...]

Completed in 205 milliseconds

1234567891011>>