arch/arm/mach-pxa/generic.c
60
void pxa_smemc_set_pcmcia_timing(int sock, u32 mcmem, u32 mcatt, u32 mcio)
arch/arm/mach-pxa/generic.c
62
__raw_writel(mcmem, MCMEM(sock));
arch/arm/mach-pxa/generic.c
63
__raw_writel(mcatt, MCATT(sock));
arch/arm/mach-pxa/generic.c
64
__raw_writel(mcio, MCIO(sock));
arch/um/drivers/harddog.h
5
int start_watchdog(int *in_fd_ret, int *out_fd_ret, char *sock);
arch/um/drivers/harddog_kern.c
68
char *sock = NULL;
arch/um/drivers/harddog_kern.c
79
sock = mconsole_notify_socket();
arch/um/drivers/harddog_kern.c
81
err = start_watchdog(&harddog_in_fd, &harddog_out_fd, sock);
arch/um/drivers/harddog_user.c
31
int start_watchdog(int *in_fd_ret, int *out_fd_ret, char *sock)
arch/um/drivers/harddog_user.c
58
if (sock != NULL) {
arch/um/drivers/harddog_user.c
59
mconsole_args[2] = sock;
arch/um/drivers/mconsole_kern.c
721
long sock;
arch/um/drivers/mconsole_kern.c
731
sock = os_create_unix_socket(file, sizeof(file), 1);
arch/um/drivers/mconsole_kern.c
732
if (sock < 0) {
arch/um/drivers/mconsole_kern.c
736
if (os_set_fd_block(sock, 0))
arch/um/drivers/mconsole_kern.c
741
err = um_request_irq(MCONSOLE_IRQ, sock, IRQ_READ, mconsole_interrupt,
arch/um/drivers/mconsole_kern.c
742
IRQF_SHARED, "mconsole", (void *)sock);
arch/um/drivers/mconsole_kern.c
763
os_close_file(sock);
arch/um/drivers/vector_user.c
168
struct sockaddr_ll sock;
arch/um/drivers/vector_user.c
183
sock.sll_family = AF_PACKET;
arch/um/drivers/vector_user.c
184
sock.sll_protocol = htons(proto);
arch/um/drivers/vector_user.c
185
sock.sll_ifindex = ifr.ifr_ifindex;
arch/um/drivers/vector_user.c
188
(struct sockaddr *) &sock, sizeof(struct sockaddr_ll)) < 0) {
arch/um/drivers/virtio_uml.c
1143
os_close_file(vu_dev->sock);
arch/um/drivers/virtio_uml.c
1241
vu_dev->sock = rc;
arch/um/drivers/virtio_uml.c
1262
os_close_file(vu_dev->sock);
arch/um/drivers/virtio_uml.c
181
int rc = vhost_user_recv(vu_dev, vu_dev->sock, msg,
arch/um/drivers/virtio_uml.c
252
rc = full_sendmsg_fds(vu_dev->sock, msg, size, fds, num_fds);
arch/um/drivers/virtio_uml.c
58
int sock, req_fd, irq;
arch/um/include/shared/skas/mm_id.h
19
int sock;
arch/um/kernel/skas/mmu.c
106
if (using_seccomp && mmu->id.sock)
arch/um/kernel/skas/mmu.c
107
os_close_file(mmu->id.sock);
arch/um/os-Linux/file.c
203
struct sockaddr_un sock;
arch/um/os-Linux/file.c
206
sock.sun_family = AF_UNIX;
arch/um/os-Linux/file.c
207
snprintf(sock.sun_path, sizeof(sock.sun_path), "%s", name);
arch/um/os-Linux/file.c
215
err = connect(fd, (struct sockaddr *) &sock, sizeof(sock));
arch/um/os-Linux/file.c
545
int sock, err;
arch/um/os-Linux/file.c
547
sock = socket(PF_UNIX, SOCK_DGRAM, 0);
arch/um/os-Linux/file.c
548
if (sock < 0)
arch/um/os-Linux/file.c
552
err = os_set_exec_close(sock);
arch/um/os-Linux/file.c
562
err = bind(sock, (struct sockaddr *) &addr, sizeof(addr));
arch/um/os-Linux/file.c
566
return sock;
arch/um/os-Linux/skas/process.c
185
CATCH_EINTR(syscall(__NR_sendmsg, mm_idp->sock,
arch/um/os-Linux/skas/process.c
526
mm_id->sock = tramp_data.sockpair[1];
crypto/af_alg.c
1077
struct sock *sk = areq->sk;
crypto/af_alg.c
1094
__poll_t af_alg_poll(struct file *file, struct socket *sock,
crypto/af_alg.c
1097
struct sock *sk = sock->sk;
crypto/af_alg.c
1102
sock_poll_wait(file, sock, wait);
crypto/af_alg.c
1122
struct af_alg_async_req *af_alg_alloc_areq(struct sock *sk,
crypto/af_alg.c
1161
int af_alg_get_rsgl(struct sock *sk, struct msghdr *msg, int flags,
crypto/af_alg.c
122
int af_alg_release(struct socket *sock)
crypto/af_alg.c
124
if (sock->sk) {
crypto/af_alg.c
125
sock_put(sock->sk);
crypto/af_alg.c
126
sock->sk = NULL;
crypto/af_alg.c
132
void af_alg_release_parent(struct sock *sk)
crypto/af_alg.c
148
static int alg_bind(struct socket *sock, struct sockaddr_unsized *uaddr, int addr_len)
crypto/af_alg.c
151
struct sock *sk = sock->sk;
crypto/af_alg.c
158
if (sock->state == SS_CONNECTED)
crypto/af_alg.c
208
static int alg_setkey(struct sock *sk, sockptr_t ukey, unsigned int keylen)
crypto/af_alg.c
355
static int alg_setsockopt(struct socket *sock, int level, int optname,
crypto/af_alg.c
358
struct sock *sk = sock->sk;
crypto/af_alg.c
376
if (sock->state == SS_CONNECTED)
crypto/af_alg.c
387
if (sock->state == SS_CONNECTED)
crypto/af_alg.c
394
if (sock->state == SS_CONNECTED)
crypto/af_alg.c
408
int af_alg_accept(struct sock *sk, struct socket *newsock,
crypto/af_alg.c
413
struct sock *sk2;
crypto/af_alg.c
470
static int alg_accept(struct socket *sock, struct socket *newsock,
crypto/af_alg.c
473
return af_alg_accept(sock->sk, newsock, arg);
crypto/af_alg.c
496
static void alg_sock_destruct(struct sock *sk)
crypto/af_alg.c
503
static int alg_create(struct net *net, struct socket *sock, int protocol,
crypto/af_alg.c
506
struct sock *sk;
crypto/af_alg.c
509
if (sock->type != SOCK_SEQPACKET)
crypto/af_alg.c
519
sock->ops = &alg_proto_ops;
crypto/af_alg.c
520
sock_init_data(sock, sk);
crypto/af_alg.c
605
static int af_alg_alloc_tsgl(struct sock *sk)
crypto/af_alg.c
646
unsigned int af_alg_count_tsgl(struct sock *sk, size_t bytes)
crypto/af_alg.c
684
void af_alg_pull_tsgl(struct sock *sk, size_t used, struct scatterlist *dst)
crypto/af_alg.c
745
struct sock *sk = areq->sk;
crypto/af_alg.c
780
static int af_alg_wait_for_wmem(struct sock *sk, unsigned int flags)
crypto/af_alg.c
811
void af_alg_wmem_wakeup(struct sock *sk)
crypto/af_alg.c
837
int af_alg_wait_for_data(struct sock *sk, unsigned flags, unsigned min)
crypto/af_alg.c
876
static void af_alg_data_wakeup(struct sock *sk)
crypto/af_alg.c
911
int af_alg_sendmsg(struct socket *sock, struct msghdr *msg, size_t size,
crypto/af_alg.c
914
struct sock *sk = sock->sk;
crypto/algif_aead.c
215
static int aead_recvmsg(struct socket *sock, struct msghdr *msg,
crypto/algif_aead.c
218
struct sock *sk = sock->sk;
crypto/algif_aead.c
223
int err = _aead_recvmsg(sock, msg, ignored, flags);
crypto/algif_aead.c
267
static int aead_check_key(struct socket *sock)
crypto/algif_aead.c
270
struct sock *psk;
crypto/algif_aead.c
273
struct sock *sk = sock->sk;
crypto/algif_aead.c
302
static int aead_sendmsg_nokey(struct socket *sock, struct msghdr *msg,
crypto/algif_aead.c
307
err = aead_check_key(sock);
crypto/algif_aead.c
311
return aead_sendmsg(sock, msg, size);
crypto/algif_aead.c
314
static int aead_recvmsg_nokey(struct socket *sock, struct msghdr *msg,
crypto/algif_aead.c
319
err = aead_check_key(sock);
crypto/algif_aead.c
323
return aead_recvmsg(sock, msg, ignored, flags);
crypto/algif_aead.c
365
static void aead_sock_destruct(struct sock *sk)
crypto/algif_aead.c
369
struct sock *psk = ask->parent;
crypto/algif_aead.c
37
static inline bool aead_sufficient_data(struct sock *sk)
crypto/algif_aead.c
380
static int aead_accept_parent_nokey(void *private, struct sock *sk)
crypto/algif_aead.c
40
struct sock *psk = ask->parent;
crypto/algif_aead.c
411
static int aead_accept_parent(void *private, struct sock *sk)
crypto/algif_aead.c
53
static int aead_sendmsg(struct socket *sock, struct msghdr *msg, size_t size)
crypto/algif_aead.c
55
struct sock *sk = sock->sk;
crypto/algif_aead.c
57
struct sock *psk = ask->parent;
crypto/algif_aead.c
62
return af_alg_sendmsg(sock, msg, size, ivsize);
crypto/algif_aead.c
65
static int _aead_recvmsg(struct socket *sock, struct msghdr *msg,
crypto/algif_aead.c
68
struct sock *sk = sock->sk;
crypto/algif_aead.c
70
struct sock *psk = ask->parent;
crypto/algif_hash.c
179
static int hash_recvmsg(struct socket *sock, struct msghdr *msg, size_t len,
crypto/algif_hash.c
182
struct sock *sk = sock->sk;
crypto/algif_hash.c
226
static int hash_accept(struct socket *sock, struct socket *newsock,
crypto/algif_hash.c
229
struct sock *sk = sock->sk;
crypto/algif_hash.c
234
struct sock *sk2;
crypto/algif_hash.c
294
static int hash_check_key(struct socket *sock)
crypto/algif_hash.c
297
struct sock *psk;
crypto/algif_hash.c
300
struct sock *sk = sock->sk;
crypto/algif_hash.c
32
static int hash_alloc_result(struct sock *sk, struct hash_ctx *ctx)
crypto/algif_hash.c
329
static int hash_sendmsg_nokey(struct socket *sock, struct msghdr *msg,
crypto/algif_hash.c
334
err = hash_check_key(sock);
crypto/algif_hash.c
338
return hash_sendmsg(sock, msg, size);
crypto/algif_hash.c
341
static int hash_recvmsg_nokey(struct socket *sock, struct msghdr *msg,
crypto/algif_hash.c
346
err = hash_check_key(sock);
crypto/algif_hash.c
350
return hash_recvmsg(sock, msg, ignored, flags);
crypto/algif_hash.c
353
static int hash_accept_nokey(struct socket *sock, struct socket *newsock,
crypto/algif_hash.c
358
err = hash_check_key(sock);
crypto/algif_hash.c
362
return hash_accept(sock, newsock, arg);
crypto/algif_hash.c
398
static void hash_sock_destruct(struct sock *sk)
crypto/algif_hash.c
408
static int hash_accept_parent_nokey(void *private, struct sock *sk)
crypto/algif_hash.c
434
static int hash_accept_parent(void *private, struct sock *sk)
crypto/algif_hash.c
50
static void hash_free_result(struct sock *sk, struct hash_ctx *ctx)
crypto/algif_hash.c
63
static int hash_sendmsg(struct socket *sock, struct msghdr *msg,
crypto/algif_hash.c
66
struct sock *sk = sock->sk;
crypto/algif_rng.c
107
static int rng_recvmsg(struct socket *sock, struct msghdr *msg, size_t len,
crypto/algif_rng.c
110
struct sock *sk = sock->sk;
crypto/algif_rng.c
117
static int rng_test_recvmsg(struct socket *sock, struct msghdr *msg, size_t len,
crypto/algif_rng.c
120
struct sock *sk = sock->sk;
crypto/algif_rng.c
125
lock_sock(sock->sk);
crypto/algif_rng.c
128
release_sock(sock->sk);
crypto/algif_rng.c
133
static int rng_test_sendmsg(struct socket *sock, struct msghdr *msg, size_t len)
crypto/algif_rng.c
136
struct alg_sock *ask = alg_sk(sock->sk);
crypto/algif_rng.c
139
lock_sock(sock->sk);
crypto/algif_rng.c
160
release_sock(sock->sk);
crypto/algif_rng.c
230
static void rng_sock_destruct(struct sock *sk)
crypto/algif_rng.c
240
static int rng_accept_parent(void *private, struct sock *sk)
crypto/algif_skcipher.c
180
static int skcipher_recvmsg(struct socket *sock, struct msghdr *msg,
crypto/algif_skcipher.c
183
struct sock *sk = sock->sk;
crypto/algif_skcipher.c
188
int err = _skcipher_recvmsg(sock, msg, ignored, flags);
crypto/algif_skcipher.c
232
static int skcipher_check_key(struct socket *sock)
crypto/algif_skcipher.c
235
struct sock *psk;
crypto/algif_skcipher.c
238
struct sock *sk = sock->sk;
crypto/algif_skcipher.c
267
static int skcipher_sendmsg_nokey(struct socket *sock, struct msghdr *msg,
crypto/algif_skcipher.c
272
err = skcipher_check_key(sock);
crypto/algif_skcipher.c
276
return skcipher_sendmsg(sock, msg, size);
crypto/algif_skcipher.c
279
static int skcipher_recvmsg_nokey(struct socket *sock, struct msghdr *msg,
crypto/algif_skcipher.c
284
err = skcipher_check_key(sock);
crypto/algif_skcipher.c
288
return skcipher_recvmsg(sock, msg, ignored, flags);
crypto/algif_skcipher.c
325
static void skcipher_sock_destruct(struct sock *sk)
crypto/algif_skcipher.c
329
struct sock *psk = ask->parent;
crypto/algif_skcipher.c
341
static int skcipher_accept_parent_nokey(void *private, struct sock *sk)
crypto/algif_skcipher.c
37
static int skcipher_sendmsg(struct socket *sock, struct msghdr *msg,
crypto/algif_skcipher.c
372
static int skcipher_accept_parent(void *private, struct sock *sk)
crypto/algif_skcipher.c
40
struct sock *sk = sock->sk;
crypto/algif_skcipher.c
42
struct sock *psk = ask->parent;
crypto/algif_skcipher.c
47
return af_alg_sendmsg(sock, msg, size, ivsize);
crypto/algif_skcipher.c
50
static int algif_skcipher_export(struct sock *sk, struct skcipher_request *req)
crypto/algif_skcipher.c
57
struct sock *psk;
crypto/algif_skcipher.c
82
static int _skcipher_recvmsg(struct socket *sock, struct msghdr *msg,
crypto/algif_skcipher.c
85
struct sock *sk = sock->sk;
crypto/algif_skcipher.c
87
struct sock *psk = ask->parent;
drivers/atm/solos-pci.c
901
struct sock *s;
drivers/block/drbd/drbd_int.h
1013
extern int drbd_send(struct drbd_connection *connection, struct socket *sock,
drivers/block/drbd/drbd_main.c
1000
p = drbd_prepare_command(peer_device, sock);
drivers/block/drbd/drbd_main.c
1004
return drbd_send_command(peer_device, sock, P_STATE, sizeof(*p), NULL, 0);
drivers/block/drbd/drbd_main.c
1009
struct drbd_socket *sock;
drivers/block/drbd/drbd_main.c
1012
sock = &peer_device->connection->data;
drivers/block/drbd/drbd_main.c
1013
p = drbd_prepare_command(peer_device, sock);
drivers/block/drbd/drbd_main.c
1018
return drbd_send_command(peer_device, sock, P_STATE_CHG_REQ, sizeof(*p), NULL, 0);
drivers/block/drbd/drbd_main.c
1024
struct drbd_socket *sock;
drivers/block/drbd/drbd_main.c
1028
sock = &connection->data;
drivers/block/drbd/drbd_main.c
1029
p = conn_prepare_command(connection, sock);
drivers/block/drbd/drbd_main.c
1034
return conn_send_command(connection, sock, cmd, sizeof(*p), NULL, 0);
drivers/block/drbd/drbd_main.c
1039
struct drbd_socket *sock;
drivers/block/drbd/drbd_main.c
1042
sock = &peer_device->connection->meta;
drivers/block/drbd/drbd_main.c
1043
p = drbd_prepare_command(peer_device, sock);
drivers/block/drbd/drbd_main.c
1046
drbd_send_command(peer_device, sock, P_STATE_CHG_REPLY, sizeof(*p), NULL, 0);
drivers/block/drbd/drbd_main.c
1052
struct drbd_socket *sock;
drivers/block/drbd/drbd_main.c
1056
sock = &connection->meta;
drivers/block/drbd/drbd_main.c
1057
p = conn_prepare_command(connection, sock);
drivers/block/drbd/drbd_main.c
1060
conn_send_command(connection, sock, cmd, sizeof(*p), NULL, 0);
drivers/block/drbd/drbd_main.c
1188
struct drbd_socket *sock = &peer_device->connection->data;
drivers/block/drbd/drbd_main.c
1190
struct p_compressed_bm *p = sock->sbuf + header_size;
drivers/block/drbd/drbd_main.c
1200
err = __send_command(peer_device->connection, device->vnr, sock,
drivers/block/drbd/drbd_main.c
1213
unsigned long *p = sock->sbuf + header_size;
drivers/block/drbd/drbd_main.c
1221
err = __send_command(peer_device->connection, device->vnr, sock, P_BITMAP,
drivers/block/drbd/drbd_main.c
1283
struct drbd_socket *sock = &peer_device->connection->data;
drivers/block/drbd/drbd_main.c
1286
mutex_lock(&sock->mutex);
drivers/block/drbd/drbd_main.c
1287
if (sock->socket)
drivers/block/drbd/drbd_main.c
1289
mutex_unlock(&sock->mutex);
drivers/block/drbd/drbd_main.c
1295
struct drbd_socket *sock;
drivers/block/drbd/drbd_main.c
1301
sock = &connection->meta;
drivers/block/drbd/drbd_main.c
1302
p = conn_prepare_command(connection, sock);
drivers/block/drbd/drbd_main.c
1307
conn_send_command(connection, sock, P_BARRIER_ACK, sizeof(*p), NULL, 0);
drivers/block/drbd/drbd_main.c
1321
struct drbd_socket *sock;
drivers/block/drbd/drbd_main.c
1327
sock = &peer_device->connection->meta;
drivers/block/drbd/drbd_main.c
1328
p = drbd_prepare_command(peer_device, sock);
drivers/block/drbd/drbd_main.c
1335
return drbd_send_command(peer_device, sock, cmd, sizeof(*p), NULL, 0);
drivers/block/drbd/drbd_main.c
1385
struct drbd_socket *sock;
drivers/block/drbd/drbd_main.c
1388
sock = &peer_device->connection->data;
drivers/block/drbd/drbd_main.c
1389
p = drbd_prepare_command(peer_device, sock);
drivers/block/drbd/drbd_main.c
1395
return drbd_send_command(peer_device, sock, P_RS_DEALLOCATED, sizeof(*p), NULL, 0);
drivers/block/drbd/drbd_main.c
1401
struct drbd_socket *sock;
drivers/block/drbd/drbd_main.c
1404
sock = &peer_device->connection->data;
drivers/block/drbd/drbd_main.c
1405
p = drbd_prepare_command(peer_device, sock);
drivers/block/drbd/drbd_main.c
1411
return drbd_send_command(peer_device, sock, cmd, sizeof(*p), NULL, 0);
drivers/block/drbd/drbd_main.c
1417
struct drbd_socket *sock;
drivers/block/drbd/drbd_main.c
1422
sock = &peer_device->connection->data;
drivers/block/drbd/drbd_main.c
1423
p = drbd_prepare_command(peer_device, sock);
drivers/block/drbd/drbd_main.c
1429
return drbd_send_command(peer_device, sock, cmd, sizeof(*p), digest, digest_size);
drivers/block/drbd/drbd_main.c
1434
struct drbd_socket *sock;
drivers/block/drbd/drbd_main.c
1437
sock = &peer_device->connection->data;
drivers/block/drbd/drbd_main.c
1438
p = drbd_prepare_command(peer_device, sock);
drivers/block/drbd/drbd_main.c
1444
return drbd_send_command(peer_device, sock, P_OV_REQUEST, sizeof(*p), NULL, 0);
drivers/block/drbd/drbd_main.c
1451
static int we_should_drop_the_connection(struct drbd_connection *connection, struct socket *sock)
drivers/block/drbd/drbd_main.c
1456
drop_it = connection->meta.socket == sock
drivers/block/drbd/drbd_main.c
1476
struct sock *sk = connection->data.socket->sk;
drivers/block/drbd/drbd_main.c
1654
struct drbd_socket *sock;
drivers/block/drbd/drbd_main.c
1661
sock = &peer_device->connection->data;
drivers/block/drbd/drbd_main.c
1662
p = drbd_prepare_command(peer_device, sock);
drivers/block/drbd/drbd_main.c
1690
err = __send_command(peer_device->connection, device->vnr, sock, cmd, sizeof(*t), NULL, 0);
drivers/block/drbd/drbd_main.c
1699
err = __send_command(peer_device->connection, device->vnr, sock, P_DATA,
drivers/block/drbd/drbd_main.c
1734
mutex_unlock(&sock->mutex); /* locked by drbd_prepare_command() */
drivers/block/drbd/drbd_main.c
1747
struct drbd_socket *sock;
drivers/block/drbd/drbd_main.c
1752
sock = &peer_device->connection->data;
drivers/block/drbd/drbd_main.c
1753
p = drbd_prepare_command(peer_device, sock);
drivers/block/drbd/drbd_main.c
1766
err = __send_command(peer_device->connection, device->vnr, sock, cmd, sizeof(*p) + digest_size, NULL, peer_req->i.size);
drivers/block/drbd/drbd_main.c
1769
mutex_unlock(&sock->mutex); /* locked by drbd_prepare_command() */
drivers/block/drbd/drbd_main.c
1776
struct drbd_socket *sock;
drivers/block/drbd/drbd_main.c
1779
sock = &peer_device->connection->data;
drivers/block/drbd/drbd_main.c
1780
p = drbd_prepare_command(peer_device, sock);
drivers/block/drbd/drbd_main.c
1785
return drbd_send_command(peer_device, sock, P_OUT_OF_SYNC, sizeof(*p), NULL, 0);
drivers/block/drbd/drbd_main.c
1804
int drbd_send(struct drbd_connection *connection, struct socket *sock,
drivers/block/drbd/drbd_main.c
1811
if (!sock)
drivers/block/drbd/drbd_main.c
1818
if (sock == connection->data.socket) {
drivers/block/drbd/drbd_main.c
1825
rv = sock_sendmsg(sock, &msg);
drivers/block/drbd/drbd_main.c
1827
if (we_should_drop_the_connection(connection, sock))
drivers/block/drbd/drbd_main.c
1841
if (sock == connection->data.socket)
drivers/block/drbd/drbd_main.c
1847
sock == connection->meta.socket ? "msock" : "sock",
drivers/block/drbd/drbd_main.c
1862
int drbd_send_all(struct drbd_connection *connection, struct socket *sock, void *buffer,
drivers/block/drbd/drbd_main.c
1867
err = drbd_send(connection, sock, buffer, size, msg_flags);
drivers/block/drbd/drbd_main.c
584
struct drbd_socket *sock)
drivers/block/drbd/drbd_main.c
586
if (!sock->socket)
drivers/block/drbd/drbd_main.c
588
return sock->sbuf + drbd_header_size(connection);
drivers/block/drbd/drbd_main.c
591
void *conn_prepare_command(struct drbd_connection *connection, struct drbd_socket *sock)
drivers/block/drbd/drbd_main.c
595
mutex_lock(&sock->mutex);
drivers/block/drbd/drbd_main.c
596
p = __conn_prepare_command(connection, sock);
drivers/block/drbd/drbd_main.c
598
mutex_unlock(&sock->mutex);
drivers/block/drbd/drbd_main.c
603
void *drbd_prepare_command(struct drbd_peer_device *peer_device, struct drbd_socket *sock)
drivers/block/drbd/drbd_main.c
605
return conn_prepare_command(peer_device->connection, sock);
drivers/block/drbd/drbd_main.c
609
struct drbd_socket *sock, enum drbd_packet cmd,
drivers/block/drbd/drbd_main.c
625
header_size += prepare_header(connection, vnr, sock->sbuf, cmd,
drivers/block/drbd/drbd_main.c
627
err = drbd_send_all(connection, sock->socket, sock->sbuf, header_size,
drivers/block/drbd/drbd_main.c
630
err = drbd_send_all(connection, sock->socket, data, size, 0);
drivers/block/drbd/drbd_main.c
634
tcp_sock_set_nodelay(sock->socket->sk);
drivers/block/drbd/drbd_main.c
639
static int __conn_send_command(struct drbd_connection *connection, struct drbd_socket *sock,
drivers/block/drbd/drbd_main.c
643
return __send_command(connection, 0, sock, cmd, header_size, data, size);
drivers/block/drbd/drbd_main.c
646
int conn_send_command(struct drbd_connection *connection, struct drbd_socket *sock,
drivers/block/drbd/drbd_main.c
652
err = __conn_send_command(connection, sock, cmd, header_size, data, size);
drivers/block/drbd/drbd_main.c
653
mutex_unlock(&sock->mutex);
drivers/block/drbd/drbd_main.c
657
int drbd_send_command(struct drbd_peer_device *peer_device, struct drbd_socket *sock,
drivers/block/drbd/drbd_main.c
664
sock, cmd, header_size, data, size);
drivers/block/drbd/drbd_main.c
665
mutex_unlock(&sock->mutex);
drivers/block/drbd/drbd_main.c
671
struct drbd_socket *sock;
drivers/block/drbd/drbd_main.c
673
sock = &connection->meta;
drivers/block/drbd/drbd_main.c
674
if (!conn_prepare_command(connection, sock))
drivers/block/drbd/drbd_main.c
676
return conn_send_command(connection, sock, P_PING, 0, NULL, 0);
drivers/block/drbd/drbd_main.c
681
struct drbd_socket *sock;
drivers/block/drbd/drbd_main.c
683
sock = &connection->meta;
drivers/block/drbd/drbd_main.c
684
if (!conn_prepare_command(connection, sock))
drivers/block/drbd/drbd_main.c
686
return conn_send_command(connection, sock, P_PING_ACK, 0, NULL, 0);
drivers/block/drbd/drbd_main.c
691
struct drbd_socket *sock;
drivers/block/drbd/drbd_main.c
699
sock = &peer_device->connection->data;
drivers/block/drbd/drbd_main.c
700
p = drbd_prepare_command(peer_device, sock);
drivers/block/drbd/drbd_main.c
741
return drbd_send_command(peer_device, sock, cmd, size, NULL, 0);
drivers/block/drbd/drbd_main.c
746
struct drbd_socket *sock;
drivers/block/drbd/drbd_main.c
752
sock = &connection->data;
drivers/block/drbd/drbd_main.c
753
p = __conn_prepare_command(connection, sock);
drivers/block/drbd/drbd_main.c
788
return __conn_send_command(connection, sock, cmd, size, NULL, 0);
drivers/block/drbd/drbd_main.c
805
struct drbd_socket *sock;
drivers/block/drbd/drbd_main.c
812
sock = &peer_device->connection->data;
drivers/block/drbd/drbd_main.c
813
p = drbd_prepare_command(peer_device, sock);
drivers/block/drbd/drbd_main.c
833
return drbd_send_command(peer_device, sock, P_UUIDS, sizeof(*p), NULL, 0);
drivers/block/drbd/drbd_main.c
867
struct drbd_socket *sock;
drivers/block/drbd/drbd_main.c
882
sock = &peer_device->connection->data;
drivers/block/drbd/drbd_main.c
883
p = drbd_prepare_command(peer_device, sock);
drivers/block/drbd/drbd_main.c
886
drbd_send_command(peer_device, sock, P_SYNC_UUID, sizeof(*p), NULL, 0);
drivers/block/drbd/drbd_main.c
893
struct drbd_socket *sock;
drivers/block/drbd/drbd_main.c
900
sock = &peer_device->connection->data;
drivers/block/drbd/drbd_main.c
901
p = drbd_prepare_command(peer_device, sock);
drivers/block/drbd/drbd_main.c
964
return drbd_send_command(peer_device, sock, P_SIZES, packet_size, NULL, 0);
drivers/block/drbd/drbd_main.c
973
struct drbd_socket *sock;
drivers/block/drbd/drbd_main.c
976
sock = &peer_device->connection->data;
drivers/block/drbd/drbd_main.c
977
p = drbd_prepare_command(peer_device, sock);
drivers/block/drbd/drbd_main.c
981
return drbd_send_command(peer_device, sock, P_STATE, sizeof(*p), NULL, 0);
drivers/block/drbd/drbd_main.c
996
struct drbd_socket *sock;
drivers/block/drbd/drbd_main.c
999
sock = &peer_device->connection->data;
drivers/block/drbd/drbd_receiver.c
312
static int drbd_recv_short(struct socket *sock, void *buf, size_t size, int flags)
drivers/block/drbd/drbd_receiver.c
322
return sock_recvmsg(sock, &msg, msg.msg_flags);
drivers/block/drbd/drbd_receiver.c
386
static void drbd_setbufsize(struct socket *sock, unsigned int snd,
drivers/block/drbd/drbd_receiver.c
391
sock->sk->sk_sndbuf = snd;
drivers/block/drbd/drbd_receiver.c
392
sock->sk->sk_userlocks |= SOCK_SNDBUF_LOCK;
drivers/block/drbd/drbd_receiver.c
395
sock->sk->sk_rcvbuf = rcv;
drivers/block/drbd/drbd_receiver.c
396
sock->sk->sk_userlocks |= SOCK_RCVBUF_LOCK;
drivers/block/drbd/drbd_receiver.c
403
struct socket *sock;
drivers/block/drbd/drbd_receiver.c
435
SOCK_STREAM, IPPROTO_TCP, &sock);
drivers/block/drbd/drbd_receiver.c
437
sock = NULL;
drivers/block/drbd/drbd_receiver.c
441
sock->sk->sk_rcvtimeo =
drivers/block/drbd/drbd_receiver.c
442
sock->sk->sk_sndtimeo = connect_int * HZ;
drivers/block/drbd/drbd_receiver.c
443
drbd_setbufsize(sock, sndbuf_size, rcvbuf_size);
drivers/block/drbd/drbd_receiver.c
453
err = sock->ops->bind(sock, (struct sockaddr_unsized *) &src_in6, my_addr_len);
drivers/block/drbd/drbd_receiver.c
461
err = sock->ops->connect(sock, (struct sockaddr_unsized *) &peer_in6, peer_addr_len, 0);
drivers/block/drbd/drbd_receiver.c
465
if (sock) {
drivers/block/drbd/drbd_receiver.c
466
sock_release(sock);
drivers/block/drbd/drbd_receiver.c
467
sock = NULL;
drivers/block/drbd/drbd_receiver.c
485
return sock;
drivers/block/drbd/drbd_receiver.c
492
void (*original_sk_state_change)(struct sock *sk);
drivers/block/drbd/drbd_receiver.c
496
static void drbd_incoming_connection(struct sock *sk)
drivers/block/drbd/drbd_receiver.c
499
void (*state_change)(struct sock *sk);
drivers/block/drbd/drbd_receiver.c
5070
struct drbd_socket *sock;
drivers/block/drbd/drbd_receiver.c
5073
sock = &connection->data;
drivers/block/drbd/drbd_receiver.c
5074
p = conn_prepare_command(connection, sock);
drivers/block/drbd/drbd_receiver.c
5081
return conn_send_command(connection, sock, P_CONNECTION_FEATURES, sizeof(*p), NULL, 0);
drivers/block/drbd/drbd_receiver.c
5175
struct drbd_socket *sock;
drivers/block/drbd/drbd_receiver.c
5214
sock = &connection->data;
drivers/block/drbd/drbd_receiver.c
5215
if (!conn_prepare_command(connection, sock)) {
drivers/block/drbd/drbd_receiver.c
5219
rv = !conn_send_command(connection, sock, P_AUTH_CHALLENGE, 0,
drivers/block/drbd/drbd_receiver.c
5281
if (!conn_prepare_command(connection, sock)) {
drivers/block/drbd/drbd_receiver.c
5285
rv = !conn_send_command(connection, sock, P_AUTH_RESPONSE, 0,
drivers/block/drbd/drbd_receiver.c
570
static void unregister_state_change(struct sock *sk, struct accept_wait_data *ad)
drivers/block/drbd/drbd_receiver.c
617
static int send_first_packet(struct drbd_connection *connection, struct drbd_socket *sock,
drivers/block/drbd/drbd_receiver.c
620
if (!conn_prepare_command(connection, sock))
drivers/block/drbd/drbd_receiver.c
622
return conn_send_command(connection, sock, cmd, 0, NULL, 0);
drivers/block/drbd/drbd_receiver.c
625
static int receive_first_packet(struct drbd_connection *connection, struct socket *sock)
drivers/block/drbd/drbd_receiver.c
638
sock->sk->sk_rcvtimeo = nc->ping_timeo * 4 * HZ / 10;
drivers/block/drbd/drbd_receiver.c
641
err = drbd_recv_short(sock, connection->data.rbuf, header_size, 0);
drivers/block/drbd/drbd_receiver.c
657
static bool drbd_socket_okay(struct socket **sock)
drivers/block/drbd/drbd_receiver.c
662
if (!*sock)
drivers/block/drbd/drbd_receiver.c
665
rr = drbd_recv_short(*sock, tb, 4, MSG_DONTWAIT | MSG_PEEK);
drivers/block/drbd/drbd_receiver.c
670
sock_release(*sock);
drivers/block/drbd/drbd_receiver.c
671
*sock = NULL;
drivers/block/drbd/drbd_receiver.c
737
struct drbd_socket sock, msock;
drivers/block/drbd/drbd_receiver.c
752
mutex_init(&sock.mutex);
drivers/block/drbd/drbd_receiver.c
753
sock.sbuf = connection->data.sbuf;
drivers/block/drbd/drbd_receiver.c
754
sock.rbuf = connection->data.rbuf;
drivers/block/drbd/drbd_receiver.c
755
sock.socket = NULL;
drivers/block/drbd/drbd_receiver.c
772
if (!sock.socket) {
drivers/block/drbd/drbd_receiver.c
773
sock.socket = s;
drivers/block/drbd/drbd_receiver.c
774
send_first_packet(connection, &sock, P_INITIAL_DATA);
drivers/block/drbd/drbd_receiver.c
785
if (connection_established(connection, &sock.socket, &msock.socket))
drivers/block/drbd/drbd_receiver.c
792
drbd_socket_okay(&sock.socket);
drivers/block/drbd/drbd_receiver.c
796
if (sock.socket) {
drivers/block/drbd/drbd_receiver.c
798
sock_release(sock.socket);
drivers/block/drbd/drbd_receiver.c
799
sock.socket = s;
drivers/block/drbd/drbd_receiver.c
802
sock.socket = s;
drivers/block/drbd/drbd_receiver.c
832
ok = connection_established(connection, &sock.socket, &msock.socket);
drivers/block/drbd/drbd_receiver.c
838
sock.socket->sk->sk_reuse = SK_CAN_REUSE; /* SO_REUSEADDR */
drivers/block/drbd/drbd_receiver.c
841
sock.socket->sk->sk_allocation = GFP_NOIO;
drivers/block/drbd/drbd_receiver.c
844
sock.socket->sk->sk_use_task_frag = false;
drivers/block/drbd/drbd_receiver.c
847
sock.socket->sk->sk_priority = TC_PRIO_INTERACTIVE_BULK;
drivers/block/drbd/drbd_receiver.c
858
sock.socket->sk->sk_sndtimeo =
drivers/block/drbd/drbd_receiver.c
859
sock.socket->sk->sk_rcvtimeo = nc->ping_timeo*4*HZ/10;
drivers/block/drbd/drbd_receiver.c
870
tcp_sock_set_nodelay(sock.socket->sk);
drivers/block/drbd/drbd_receiver.c
873
connection->data.socket = sock.socket;
drivers/block/drbd/drbd_receiver.c
963
if (sock.socket)
drivers/block/drbd/drbd_receiver.c
964
sock_release(sock.socket);
drivers/block/drbd/drbd_worker.c
1351
struct drbd_socket *sock;
drivers/block/drbd/drbd_worker.c
1353
sock = &connection->data;
drivers/block/drbd/drbd_worker.c
1354
p = conn_prepare_command(connection, sock);
drivers/block/drbd/drbd_worker.c
1362
return conn_send_command(connection, sock, P_BARRIER, sizeof(*p), NULL, 0);
drivers/block/drbd/drbd_worker.c
1367
struct drbd_socket *sock = &pd->connection->data;
drivers/block/drbd/drbd_worker.c
1368
if (!drbd_prepare_command(pd, sock))
drivers/block/drbd/drbd_worker.c
1370
return drbd_send_command(pd, sock, P_UNPLUG_REMOTE, 0, NULL, 0);
drivers/block/drbd/drbd_worker.c
633
struct sock *sk = connection->data.socket->sk;
drivers/block/nbd.c
1216
struct socket *sock;
drivers/block/nbd.c
1219
sock = sockfd_lookup(fd, err);
drivers/block/nbd.c
1220
if (!sock)
drivers/block/nbd.c
1223
if (!sk_is_tcp(sock->sk) &&
drivers/block/nbd.c
1224
!sk_is_stream_unix(sock->sk)) {
drivers/block/nbd.c
1227
sockfd_put(sock);
drivers/block/nbd.c
1231
if (sock->ops->shutdown == sock_no_shutdown) {
drivers/block/nbd.c
1234
sockfd_put(sock);
drivers/block/nbd.c
1238
return sock;
drivers/block/nbd.c
1245
static void nbd_reclassify_socket(struct socket *sock)
drivers/block/nbd.c
1247
struct sock *sk = sock->sk;
drivers/block/nbd.c
1274
static inline void nbd_reclassify_socket(struct socket *sock) {}
drivers/block/nbd.c
1281
struct socket *sock;
drivers/block/nbd.c
1290
sock = nbd_get_socket(nbd, arg, &err);
drivers/block/nbd.c
1291
if (!sock)
drivers/block/nbd.c
1293
nbd_reclassify_socket(sock);
drivers/block/nbd.c
1333
nsock->sock = sock;
drivers/block/nbd.c
1346
sockfd_put(sock);
drivers/block/nbd.c
1353
struct socket *sock, *old;
drivers/block/nbd.c
1358
sock = nbd_get_socket(nbd, arg, &err);
drivers/block/nbd.c
1359
if (!sock)
drivers/block/nbd.c
1364
sockfd_put(sock);
drivers/block/nbd.c
1379
sk_set_memalloc(sock->sk);
drivers/block/nbd.c
1381
sock->sk->sk_sndtimeo = nbd->tag_set.timeout;
drivers/block/nbd.c
1384
old = nsock->sock;
drivers/block/nbd.c
1386
nsock->sock = sock;
drivers/block/nbd.c
1407
sockfd_put(sock);
drivers/block/nbd.c
1492
sockfd_put(config->socks[i]->sock);
drivers/block/nbd.c
1565
sk_set_memalloc(config->socks[i]->sock->sk);
drivers/block/nbd.c
1567
config->socks[i]->sock->sk->sk_sndtimeo =
drivers/block/nbd.c
318
kernel_sock_shutdown(nsock->sock, SHUT_RDWR);
drivers/block/nbd.c
551
static int __sock_xmit(struct nbd_device *nbd, struct socket *sock, int send,
drivers/block/nbd.c
558
if (unlikely(!sock)) {
drivers/block/nbd.c
571
sock->sk->sk_allocation = GFP_NOIO | __GFP_MEMALLOC;
drivers/block/nbd.c
572
sock->sk->sk_use_task_frag = false;
drivers/block/nbd.c
576
result = sock_sendmsg(sock, &msg);
drivers/block/nbd.c
578
result = sock_recvmsg(sock, &msg, msg.msg_flags);
drivers/block/nbd.c
58
struct socket *sock;
drivers/block/nbd.c
603
struct socket *sock = config->socks[index]->sock;
drivers/block/nbd.c
605
return __sock_xmit(nbd, sock, send, iter, msg_flags, sent);
drivers/block/nbd.c
845
static int nbd_read_reply(struct nbd_device *nbd, struct socket *sock,
drivers/block/nbd.c
854
result = __sock_xmit(nbd, sock, 0, &to, MSG_WAITALL, NULL);
drivers/block/nbd.c
985
if (nbd_read_reply(nbd, nsock->sock, &reply))
drivers/connector/cn_proc.c
402
struct sock *sk = NULL;
drivers/connector/cn_proc.c
51
static int cn_filter(struct sock *dsk, struct sk_buff *skb, void *data)
drivers/connector/cn_queue.c
112
struct cn_queue_dev *cn_queue_alloc_dev(const char *name, struct sock *nls)
drivers/connector/connector.c
185
static void cn_release(struct sock *sk, unsigned long *groups)
drivers/infiniband/core/core_priv.h
67
struct sock *nl_sock;
drivers/infiniband/core/netlink.c
316
struct sock *nls;
drivers/infiniband/hw/erdma/erdma_cm.c
1238
erdma_socket_disassoc(cep->sock);
drivers/infiniband/hw/erdma/erdma_cm.c
1239
sock_release(cep->sock);
drivers/infiniband/hw/erdma/erdma_cm.c
1240
cep->sock = NULL;
drivers/infiniband/hw/erdma/erdma_cm.c
1284
erdma_socket_disassoc(cep->sock);
drivers/infiniband/hw/erdma/erdma_cm.c
1285
sock_release(cep->sock);
drivers/infiniband/hw/erdma/erdma_cm.c
1286
cep->sock = NULL;
drivers/infiniband/hw/erdma/erdma_cm.c
1364
cep->sock = NULL;
drivers/infiniband/hw/erdma/erdma_cm.c
1395
if (cep->sock) {
drivers/infiniband/hw/erdma/erdma_cm.c
1396
erdma_socket_disassoc(cep->sock);
drivers/infiniband/hw/erdma/erdma_cm.c
1397
sock_release(cep->sock);
drivers/infiniband/hw/erdma/erdma_cm.c
1398
cep->sock = NULL;
drivers/infiniband/hw/erdma/erdma_cm.c
22
static void erdma_cm_llp_state_change(struct sock *sk);
drivers/infiniband/hw/erdma/erdma_cm.c
23
static void erdma_cm_llp_data_ready(struct sock *sk);
drivers/infiniband/hw/erdma/erdma_cm.c
24
static void erdma_cm_llp_error_report(struct sock *sk);
drivers/infiniband/hw/erdma/erdma_cm.c
26
static void erdma_sk_assign_cm_upcalls(struct sock *sk)
drivers/infiniband/hw/erdma/erdma_cm.c
263
getname_local(cep->sock, &event.local_addr);
drivers/infiniband/hw/erdma/erdma_cm.c
264
getname_peer(cep->sock, &event.remote_addr);
drivers/infiniband/hw/erdma/erdma_cm.c
307
if (cep->sock) {
drivers/infiniband/hw/erdma/erdma_cm.c
308
erdma_socket_disassoc(cep->sock);
drivers/infiniband/hw/erdma/erdma_cm.c
309
sock_release(cep->sock);
drivers/infiniband/hw/erdma/erdma_cm.c
310
cep->sock = NULL;
drivers/infiniband/hw/erdma/erdma_cm.c
335
struct socket *s = cep->sock;
drivers/infiniband/hw/erdma/erdma_cm.c
35
static void erdma_sk_save_upcalls(struct sock *sk)
drivers/infiniband/hw/erdma/erdma_cm.c
369
static inline int ksock_recv(struct socket *sock, char *buf, size_t size,
drivers/infiniband/hw/erdma/erdma_cm.c
375
return kernel_recvmsg(sock, &msg, &iov, 1, size, flags);
drivers/infiniband/hw/erdma/erdma_cm.c
381
struct socket *s = cep->sock;
drivers/infiniband/hw/erdma/erdma_cm.c
442
struct socket *s = cep->sock;
drivers/infiniband/hw/erdma/erdma_cm.c
46
static void erdma_sk_restore_upcalls(struct sock *sk, struct erdma_cep *cep)
drivers/infiniband/hw/erdma/erdma_cm.c
56
struct sock *sk = s->sk;
drivers/infiniband/hw/erdma/erdma_cm.c
644
struct socket *s = cep->sock;
drivers/infiniband/hw/erdma/erdma_cm.c
676
new_cep->sock = new_s;
drivers/infiniband/hw/erdma/erdma_cm.c
76
cep->sock = s;
drivers/infiniband/hw/erdma/erdma_cm.c
877
if (cep->sock) {
drivers/infiniband/hw/erdma/erdma_cm.c
878
erdma_socket_disassoc(cep->sock);
drivers/infiniband/hw/erdma/erdma_cm.c
879
sock_release(cep->sock);
drivers/infiniband/hw/erdma/erdma_cm.c
880
cep->sock = NULL;
drivers/infiniband/hw/erdma/erdma_cm.c
928
static void erdma_cm_llp_data_ready(struct sock *sk)
drivers/infiniband/hw/erdma/erdma_cm.c
948
static void erdma_cm_llp_error_report(struct sock *sk)
drivers/infiniband/hw/erdma/erdma_cm.c
956
static void erdma_cm_llp_state_change(struct sock *sk)
drivers/infiniband/hw/erdma/erdma_cm.c
959
void (*orig_state_change)(struct sock *sk);
drivers/infiniband/hw/erdma/erdma_cm.h
100
struct socket *sock;
drivers/infiniband/hw/erdma/erdma_cm.h
114
void (*sk_state_change)(struct sock *sk);
drivers/infiniband/hw/erdma/erdma_cm.h
115
void (*sk_data_ready)(struct sock *sk);
drivers/infiniband/hw/erdma/erdma_cm.h
116
void (*sk_error_report)(struct sock *sk);
drivers/infiniband/hw/erdma/erdma_cm.h
68
void (*sk_state_change)(struct sock *sk);
drivers/infiniband/hw/erdma/erdma_cm.h
69
void (*sk_data_ready)(struct sock *sk, int bytes);
drivers/infiniband/hw/erdma/erdma_cm.h
70
void (*sk_error_report)(struct sock *sk);
drivers/infiniband/hw/erdma/erdma_qp.c
72
ret = getname_local(cep->sock, &local_addr);
drivers/infiniband/hw/erdma/erdma_qp.c
76
ret = getname_peer(cep->sock, &remote_addr);
drivers/infiniband/hw/erdma/erdma_qp.c
80
tp = tcp_sk(qp->cep->sock->sk);
drivers/infiniband/hw/usnic/usnic_debugfs.c
96
qp_flow->udp.sock);
drivers/infiniband/hw/usnic/usnic_ib_qp_grp.c
265
struct socket *sock;
drivers/infiniband/hw/usnic/usnic_ib_qp_grp.c
281
sock = usnic_transport_get_socket(sock_fd);
drivers/infiniband/hw/usnic/usnic_ib_qp_grp.c
282
if (IS_ERR_OR_NULL(sock))
drivers/infiniband/hw/usnic/usnic_ib_qp_grp.c
283
return ERR_CAST(sock);
drivers/infiniband/hw/usnic/usnic_ib_qp_grp.c
285
err = usnic_transport_sock_get_addr(sock, &proto, &addr, &port_num);
drivers/infiniband/hw/usnic/usnic_ib_qp_grp.c
315
qp_flow->udp.sock = sock;
drivers/infiniband/hw/usnic/usnic_ib_qp_grp.c
322
usnic_transport_put_socket(sock);
drivers/infiniband/hw/usnic/usnic_ib_qp_grp.c
329
usnic_transport_put_socket(qp_flow->udp.sock);
drivers/infiniband/hw/usnic/usnic_ib_qp_grp.c
647
err = usnic_transport_sock_get_addr(qp_flow->udp.sock,
drivers/infiniband/hw/usnic/usnic_ib_qp_grp.h
76
struct socket *sock;
drivers/infiniband/hw/usnic/usnic_transport.c
146
struct socket *sock;
drivers/infiniband/hw/usnic/usnic_transport.c
151
sock = sockfd_lookup(sock_fd, &err);
drivers/infiniband/hw/usnic/usnic_transport.c
152
if (!sock) {
drivers/infiniband/hw/usnic/usnic_transport.c
158
usnic_transport_sock_to_str(buf, sizeof(buf), sock);
drivers/infiniband/hw/usnic/usnic_transport.c
161
return sock;
drivers/infiniband/hw/usnic/usnic_transport.c
164
void usnic_transport_put_socket(struct socket *sock)
drivers/infiniband/hw/usnic/usnic_transport.c
168
usnic_transport_sock_to_str(buf, sizeof(buf), sock);
drivers/infiniband/hw/usnic/usnic_transport.c
170
sockfd_put(sock);
drivers/infiniband/hw/usnic/usnic_transport.c
173
int usnic_transport_sock_get_addr(struct socket *sock, int *proto,
drivers/infiniband/hw/usnic/usnic_transport.c
179
err = sock->ops->getname(sock,
drivers/infiniband/hw/usnic/usnic_transport.c
189
*proto = sock->sk->sk_protocol;
drivers/infiniband/hw/usnic/usnic_transport.c
64
struct socket *sock)
drivers/infiniband/hw/usnic/usnic_transport.c
72
err = usnic_transport_sock_get_addr(sock, &proto, &addr, &port);
drivers/infiniband/hw/usnic/usnic_transport.h
45
struct socket *sock);
drivers/infiniband/hw/usnic/usnic_transport.h
58
void usnic_transport_put_socket(struct socket *sock);
drivers/infiniband/hw/usnic/usnic_transport.h
62
int usnic_transport_sock_get_addr(struct socket *sock, int *proto,
drivers/infiniband/sw/rxe/rxe_net.c
219
static int rxe_udp_encap_recv(struct sock *sk, struct sk_buff *skb)
drivers/infiniband/sw/rxe/rxe_net.c
263
struct socket *sock;
drivers/infiniband/sw/rxe/rxe_net.c
277
err = udp_sock_create(net, &udp_cfg, &sock);
drivers/infiniband/sw/rxe/rxe_net.c
280
rxe_reclassify_recv_socket(sock);
drivers/infiniband/sw/rxe/rxe_net.c
286
setup_udp_tunnel_sock(net, sock->sk, &tnl_cfg);
drivers/infiniband/sw/rxe/rxe_net.c
288
return sock;
drivers/infiniband/sw/rxe/rxe_net.c
291
static void rxe_release_udp_tunnel(struct sock *sk)
drivers/infiniband/sw/rxe/rxe_net.c
449
struct sock *sk = pkt->qp->sk->sk;
drivers/infiniband/sw/rxe/rxe_net.c
45
static inline void rxe_reclassify_recv_socket(struct socket *sock)
drivers/infiniband/sw/rxe/rxe_net.c
470
struct sock *sk = pkt->qp->sk->sk;
drivers/infiniband/sw/rxe/rxe_net.c
48
struct sock *sk = sock->sk;
drivers/infiniband/sw/rxe/rxe_net.c
634
static void rxe_sock_put(struct sock *sk,
drivers/infiniband/sw/rxe/rxe_net.c
635
void (*set_sk)(struct net *, struct sock *),
drivers/infiniband/sw/rxe/rxe_net.c
650
struct sock *sk;
drivers/infiniband/sw/rxe/rxe_net.c
758
struct sock *sk;
drivers/infiniband/sw/rxe/rxe_net.c
759
struct socket *sock;
drivers/infiniband/sw/rxe/rxe_net.c
767
sock = rxe_setup_udp_tunnel(net, htons(ROCE_V2_UDP_DPORT), false);
drivers/infiniband/sw/rxe/rxe_net.c
768
if (IS_ERR(sock)) {
drivers/infiniband/sw/rxe/rxe_net.c
772
rxe_ns_pernet_set_sk4(net, sock->sk);
drivers/infiniband/sw/rxe/rxe_net.c
780
struct sock *sk;
drivers/infiniband/sw/rxe/rxe_net.c
781
struct socket *sock;
drivers/infiniband/sw/rxe/rxe_net.c
789
sock = rxe_setup_udp_tunnel(net, htons(ROCE_V2_UDP_DPORT), true);
drivers/infiniband/sw/rxe/rxe_net.c
790
if (PTR_ERR(sock) == -EAFNOSUPPORT) {
drivers/infiniband/sw/rxe/rxe_net.c
795
if (IS_ERR(sock)) {
drivers/infiniband/sw/rxe/rxe_net.c
800
rxe_ns_pernet_set_sk6(net, sock->sk);
drivers/infiniband/sw/rxe/rxe_net.c
827
struct sock *sk;
drivers/infiniband/sw/rxe/rxe_ns.c
107
void rxe_ns_pernet_set_sk6(struct net *net, struct sock *sk)
drivers/infiniband/sw/rxe/rxe_ns.c
17
struct sock __rcu *rxe_sk4;
drivers/infiniband/sw/rxe/rxe_ns.c
18
struct sock __rcu *rxe_sk6;
drivers/infiniband/sw/rxe/rxe_ns.c
43
struct sock *sk;
drivers/infiniband/sw/rxe/rxe_ns.c
74
struct sock *rxe_ns_pernet_sk4(struct net *net)
drivers/infiniband/sw/rxe/rxe_ns.c
77
struct sock *sk;
drivers/infiniband/sw/rxe/rxe_ns.c
86
void rxe_ns_pernet_set_sk4(struct net *net, struct sock *sk)
drivers/infiniband/sw/rxe/rxe_ns.c
95
struct sock *rxe_ns_pernet_sk6(struct net *net)
drivers/infiniband/sw/rxe/rxe_ns.c
98
struct sock *sk;
drivers/infiniband/sw/rxe/rxe_ns.h
10
void rxe_ns_pernet_set_sk6(struct net *net, struct sock *sk);
drivers/infiniband/sw/rxe/rxe_ns.h
11
struct sock *rxe_ns_pernet_sk6(struct net *net);
drivers/infiniband/sw/rxe/rxe_ns.h
13
static inline struct sock *rxe_ns_pernet_sk6(struct net *net)
drivers/infiniband/sw/rxe/rxe_ns.h
18
static inline void rxe_ns_pernet_set_sk6(struct net *net, struct sock *sk)
drivers/infiniband/sw/rxe/rxe_ns.h
6
struct sock *rxe_ns_pernet_sk4(struct net *net);
drivers/infiniband/sw/rxe/rxe_ns.h
7
void rxe_ns_pernet_set_sk4(struct net *net, struct sock *sk);
drivers/infiniband/sw/rxe/rxe_qp.c
37
static inline void rxe_reclassify_send_socket(struct socket *sock)
drivers/infiniband/sw/rxe/rxe_qp.c
40
struct sock *sk = sock->sk;
drivers/infiniband/sw/siw/siw.h
527
void siw_qp_llp_data_ready(struct sock *sk);
drivers/infiniband/sw/siw/siw.h
528
void siw_qp_llp_write_space(struct sock *sk);
drivers/infiniband/sw/siw/siw_cm.c
1010
new_cep->sock = new_s;
drivers/infiniband/sw/siw/siw_cm.c
108
static void siw_sk_restore_upcalls(struct sock *sk, struct siw_cep *cep)
drivers/infiniband/sw/siw/siw_cm.c
1108
cep->sock->sk->sk_data_ready(cep->sock->sk);
drivers/infiniband/sw/siw/siw_cm.c
119
struct socket *s = cep->sock;
drivers/infiniband/sw/siw/siw_cm.c
120
struct sock *sk = s->sk;
drivers/infiniband/sw/siw/siw_cm.c
1206
struct socket *s = cep->sock;
drivers/infiniband/sw/siw/siw_cm.c
1281
static void siw_cm_llp_data_ready(struct sock *sk)
drivers/infiniband/sw/siw/siw_cm.c
1317
static void siw_cm_llp_write_space(struct sock *sk)
drivers/infiniband/sw/siw/siw_cm.c
1325
static void siw_cm_llp_error_report(struct sock *sk)
drivers/infiniband/sw/siw/siw_cm.c
133
struct sock *sk = s->sk;
drivers/infiniband/sw/siw/siw_cm.c
1336
static void siw_cm_llp_state_change(struct sock *sk)
drivers/infiniband/sw/siw/siw_cm.c
1339
void (*orig_state_change)(struct sock *s);
drivers/infiniband/sw/siw/siw_cm.c
141
cep->sock = NULL;
drivers/infiniband/sw/siw/siw_cm.c
152
static void siw_rtr_data_ready(struct sock *sk)
drivers/infiniband/sw/siw/siw_cm.c
1701
qp_attrs.sk = cep->sock;
drivers/infiniband/sw/siw/siw_cm.c
190
struct sock *sk = cep->sock->sk;
drivers/infiniband/sw/siw/siw_cm.c
1962
struct socket *s = cep->sock;
drivers/infiniband/sw/siw/siw_cm.c
200
cep->sock = s;
drivers/infiniband/sw/siw/siw_cm.c
35
static void siw_cm_llp_state_change(struct sock *s);
drivers/infiniband/sw/siw/siw_cm.c
36
static void siw_cm_llp_data_ready(struct sock *s);
drivers/infiniband/sw/siw/siw_cm.c
37
static void siw_cm_llp_write_space(struct sock *s);
drivers/infiniband/sw/siw/siw_cm.c
38
static void siw_cm_llp_error_report(struct sock *s);
drivers/infiniband/sw/siw/siw_cm.c
402
getname_local(cep->sock, &event.local_addr);
drivers/infiniband/sw/siw/siw_cm.c
403
getname_peer(cep->sock, &event.remote_addr);
drivers/infiniband/sw/siw/siw_cm.c
422
struct socket *s = cep->sock;
drivers/infiniband/sw/siw/siw_cm.c
518
struct socket *s = cep->sock;
drivers/infiniband/sw/siw/siw_cm.c
566
struct socket *s = cep->sock;
drivers/infiniband/sw/siw/siw_cm.c
62
static inline void siw_reclassify_socket(struct socket *sock)
drivers/infiniband/sw/siw/siw_cm.c
65
struct sock *sk = sock->sk;
drivers/infiniband/sw/siw/siw_cm.c
91
static void siw_sk_assign_cm_upcalls(struct sock *sk)
drivers/infiniband/sw/siw/siw_cm.c
927
qp_attrs.sk = cep->sock;
drivers/infiniband/sw/siw/siw_cm.c
973
struct socket *s = cep->sock;
drivers/infiniband/sw/siw/siw_cm.h
105
static inline int ksock_recv(struct socket *sock, char *buf, size_t size,
drivers/infiniband/sw/siw/siw_cm.h
111
return kernel_recvmsg(sock, &msg, &iov, 1, size, flags);
drivers/infiniband/sw/siw/siw_cm.h
51
struct socket *sock;
drivers/infiniband/sw/siw/siw_cm.h
62
void (*sk_state_change)(struct sock *sk);
drivers/infiniband/sw/siw/siw_cm.h
63
void (*sk_data_ready)(struct sock *sk);
drivers/infiniband/sw/siw/siw_cm.h
64
void (*sk_write_space)(struct sock *sk);
drivers/infiniband/sw/siw/siw_cm.h
65
void (*sk_error_report)(struct sock *sk);
drivers/infiniband/sw/siw/siw_qp.c
186
void siw_qp_llp_write_space(struct sock *sk)
drivers/infiniband/sw/siw/siw_qp.c
387
s = qp->cep->sock;
drivers/infiniband/sw/siw/siw_qp.c
94
void siw_qp_llp_data_ready(struct sock *sk)
drivers/infiniband/sw/siw/siw_qp_tx.c
281
siw_sendmsg(struct socket *sock, unsigned int msg_flags,
drivers/infiniband/sw/siw/siw_qp_tx.c
286
return kernel_sendmsg(sock, &msg, vec, num, len);
drivers/infiniband/sw/siw/siw_qp_tx.c
330
struct sock *sk = s->sk;
drivers/memstick/host/tifm_ms.c
101
*(unsigned int *)(buf + off) = __raw_readl(sock->addr
drivers/memstick/host/tifm_ms.c
108
&& !(TIFM_MS_STAT_EMP & readl(sock->addr + SOCK_MS_STATUS))) {
drivers/memstick/host/tifm_ms.c
109
host->io_word = readl(sock->addr + SOCK_MS_DATA);
drivers/memstick/host/tifm_ms.c
125
struct tifm_dev *sock = host->dev;
drivers/memstick/host/tifm_ms.c
137
&& !(TIFM_MS_STAT_FUL & readl(sock->addr + SOCK_MS_STATUS))) {
drivers/memstick/host/tifm_ms.c
138
writel(TIFM_MS_SYS_FDIR | readl(sock->addr + SOCK_MS_SYSTEM),
drivers/memstick/host/tifm_ms.c
139
sock->addr + SOCK_MS_SYSTEM);
drivers/memstick/host/tifm_ms.c
140
writel(host->io_word, sock->addr + SOCK_MS_DATA);
drivers/memstick/host/tifm_ms.c
150
while (!(TIFM_MS_STAT_FUL & readl(sock->addr + SOCK_MS_STATUS))) {
drivers/memstick/host/tifm_ms.c
153
writel(TIFM_MS_SYS_FDIR | readl(sock->addr + SOCK_MS_SYSTEM),
drivers/memstick/host/tifm_ms.c
154
sock->addr + SOCK_MS_SYSTEM);
drivers/memstick/host/tifm_ms.c
156
sock->addr + SOCK_MS_DATA);
drivers/memstick/host/tifm_ms.c
182
struct tifm_dev *sock = host->dev;
drivers/memstick/host/tifm_ms.c
197
dev_dbg(&sock->dev, "fifo data transfer, %d, %d\n", length,
drivers/memstick/host/tifm_ms.c
232
dev_dbg(&sock->dev, "fifo data transfer, %d remaining\n", length);
drivers/memstick/host/tifm_ms.c
236
| readl(sock->addr + SOCK_MS_SYSTEM),
drivers/memstick/host/tifm_ms.c
237
sock->addr + SOCK_MS_SYSTEM);
drivers/memstick/host/tifm_ms.c
238
writel(host->io_word, sock->addr + SOCK_MS_DATA);
drivers/memstick/host/tifm_ms.c
241
| readl(sock->addr + SOCK_MS_SYSTEM),
drivers/memstick/host/tifm_ms.c
242
sock->addr + SOCK_MS_SYSTEM);
drivers/memstick/host/tifm_ms.c
243
writel(0, sock->addr + SOCK_MS_DATA);
drivers/memstick/host/tifm_ms.c
245
readl(sock->addr + SOCK_MS_DATA);
drivers/memstick/host/tifm_ms.c
253
struct tifm_dev *sock = host->dev;
drivers/memstick/host/tifm_ms.c
274
sock->addr + SOCK_DMA_FIFO_INT_ENABLE_CLEAR);
drivers/memstick/host/tifm_ms.c
276
sock->addr + SOCK_FIFO_CONTROL);
drivers/memstick/host/tifm_ms.c
279
if (1 != tifm_map_sg(sock, &host->req->sg, 1,
drivers/memstick/host/tifm_ms.c
289
sock->addr + SOCK_FIFO_PAGE_SIZE);
drivers/memstick/host/tifm_ms.c
291
sock->addr + SOCK_DMA_FIFO_INT_ENABLE_SET);
drivers/memstick/host/tifm_ms.c
297
sock->addr + SOCK_DMA_FIFO_INT_ENABLE_SET);
drivers/memstick/host/tifm_ms.c
300
sock->addr + SOCK_DMA_ADDRESS);
drivers/memstick/host/tifm_ms.c
301
writel(sys_param, sock->addr + SOCK_DMA_CONTROL);
drivers/memstick/host/tifm_ms.c
304
sock->addr + SOCK_MS_SYSTEM);
drivers/memstick/host/tifm_ms.c
307
sock->addr + SOCK_DMA_FIFO_INT_ENABLE_SET);
drivers/memstick/host/tifm_ms.c
311
writel(TIFM_CTRL_LED | readl(sock->addr + SOCK_CONTROL),
drivers/memstick/host/tifm_ms.c
312
sock->addr + SOCK_CONTROL);
drivers/memstick/host/tifm_ms.c
315
sys_param = readl(sock->addr + SOCK_MS_SYSTEM);
drivers/memstick/host/tifm_ms.c
323
writel(sys_param, sock->addr + SOCK_MS_SYSTEM);
drivers/memstick/host/tifm_ms.c
327
writel(cmd, sock->addr + SOCK_MS_COMMAND);
drivers/memstick/host/tifm_ms.c
329
dev_dbg(&sock->dev, "executing TPC %x, %x\n", cmd, sys_param);
drivers/memstick/host/tifm_ms.c
335
struct tifm_dev *sock = host->dev;
drivers/memstick/host/tifm_ms.c
336
struct memstick_host *msh = tifm_get_drvdata(sock);
drivers/memstick/host/tifm_ms.c
341
host->req->int_reg = readl(sock->addr + SOCK_MS_STATUS) & 0xff;
drivers/memstick/host/tifm_ms.c
346
sock->addr + SOCK_DMA_FIFO_INT_ENABLE_CLEAR);
drivers/memstick/host/tifm_ms.c
347
writel(TIFM_DMA_RESET, sock->addr + SOCK_DMA_CONTROL);
drivers/memstick/host/tifm_ms.c
350
tifm_unmap_sg(sock, &host->req->sg, 1,
drivers/memstick/host/tifm_ms.c
356
writel((~TIFM_CTRL_LED) & readl(sock->addr + SOCK_CONTROL),
drivers/memstick/host/tifm_ms.c
357
sock->addr + SOCK_CONTROL);
drivers/memstick/host/tifm_ms.c
359
dev_dbg(&sock->dev, "TPC complete\n");
drivers/memstick/host/tifm_ms.c
380
static void tifm_ms_data_event(struct tifm_dev *sock)
drivers/memstick/host/tifm_ms.c
386
spin_lock(&sock->lock);
drivers/memstick/host/tifm_ms.c
387
host = memstick_priv((struct memstick_host *)tifm_get_drvdata(sock));
drivers/memstick/host/tifm_ms.c
388
fifo_status = readl(sock->addr + SOCK_DMA_FIFO_STATUS);
drivers/memstick/host/tifm_ms.c
389
host_status = readl(sock->addr + SOCK_MS_STATUS);
drivers/memstick/host/tifm_ms.c
390
dev_dbg(&sock->dev,
drivers/memstick/host/tifm_ms.c
407
writel(fifo_status, sock->addr + SOCK_DMA_FIFO_STATUS);
drivers/memstick/host/tifm_ms.c
411
spin_unlock(&sock->lock);
drivers/memstick/host/tifm_ms.c
416
static void tifm_ms_card_event(struct tifm_dev *sock)
drivers/memstick/host/tifm_ms.c
422
spin_lock(&sock->lock);
drivers/memstick/host/tifm_ms.c
423
host = memstick_priv((struct memstick_host *)tifm_get_drvdata(sock));
drivers/memstick/host/tifm_ms.c
424
host_status = readl(sock->addr + SOCK_MS_STATUS);
drivers/memstick/host/tifm_ms.c
425
dev_dbg(&sock->dev, "host event: host_status %x, flags %x\n",
drivers/memstick/host/tifm_ms.c
444
writel(TIFM_MS_SYS_INTCLR | readl(sock->addr + SOCK_MS_SYSTEM),
drivers/memstick/host/tifm_ms.c
445
sock->addr + SOCK_MS_SYSTEM);
drivers/memstick/host/tifm_ms.c
450
spin_unlock(&sock->lock);
drivers/memstick/host/tifm_ms.c
458
struct tifm_dev *sock = host->dev;
drivers/memstick/host/tifm_ms.c
462
spin_lock_irqsave(&sock->lock, flags);
drivers/memstick/host/tifm_ms.c
470
spin_unlock_irqrestore(&sock->lock, flags);
drivers/memstick/host/tifm_ms.c
478
spin_unlock_irqrestore(&sock->lock, flags);
drivers/memstick/host/tifm_ms.c
498
struct tifm_dev *sock = host->dev;
drivers/memstick/host/tifm_ms.c
505
writel(TIFM_MS_SYS_RESET, sock->addr + SOCK_MS_SYSTEM);
drivers/memstick/host/tifm_ms.c
507
sock->addr + SOCK_MS_SYSTEM);
drivers/memstick/host/tifm_ms.c
508
writel(0xffffffff, sock->addr + SOCK_MS_STATUS);
drivers/memstick/host/tifm_ms.c
511
sock->addr + SOCK_MS_SYSTEM);
drivers/memstick/host/tifm_ms.c
512
writel(0xffffffff, sock->addr + SOCK_MS_STATUS);
drivers/memstick/host/tifm_ms.c
520
& readl(sock->addr + SOCK_CONTROL),
drivers/memstick/host/tifm_ms.c
521
sock->addr + SOCK_CONTROL);
drivers/memstick/host/tifm_ms.c
525
| readl(sock->addr + SOCK_CONTROL),
drivers/memstick/host/tifm_ms.c
526
sock->addr + SOCK_CONTROL);
drivers/memstick/host/tifm_ms.c
550
static int tifm_ms_probe(struct tifm_dev *sock)
drivers/memstick/host/tifm_ms.c
557
& readl(sock->addr + SOCK_PRESENT_STATE))) {
drivers/memstick/host/tifm_ms.c
559
dev_name(&sock->dev));
drivers/memstick/host/tifm_ms.c
563
msh = memstick_alloc_host(sizeof(struct tifm_ms), &sock->dev);
drivers/memstick/host/tifm_ms.c
568
tifm_set_drvdata(sock, msh);
drivers/memstick/host/tifm_ms.c
569
host->dev = sock;
drivers/memstick/host/tifm_ms.c
577
sock->card_event = tifm_ms_card_event;
drivers/memstick/host/tifm_ms.c
578
sock->data_event = tifm_ms_data_event;
drivers/memstick/host/tifm_ms.c
579
if (tifm_has_ms_pif(sock))
drivers/memstick/host/tifm_ms.c
590
static void tifm_ms_remove(struct tifm_dev *sock)
drivers/memstick/host/tifm_ms.c
592
struct memstick_host *msh = tifm_get_drvdata(sock);
drivers/memstick/host/tifm_ms.c
599
spin_lock_irqsave(&sock->lock, flags);
drivers/memstick/host/tifm_ms.c
604
sock->addr + SOCK_DMA_FIFO_INT_ENABLE_CLEAR);
drivers/memstick/host/tifm_ms.c
605
writel(TIFM_DMA_RESET, sock->addr + SOCK_DMA_CONTROL);
drivers/memstick/host/tifm_ms.c
607
tifm_unmap_sg(sock, &host->req->sg, 1,
drivers/memstick/host/tifm_ms.c
619
spin_unlock_irqrestore(&sock->lock, flags);
drivers/memstick/host/tifm_ms.c
627
static int tifm_ms_suspend(struct tifm_dev *sock, pm_message_t state)
drivers/memstick/host/tifm_ms.c
629
struct memstick_host *msh = tifm_get_drvdata(sock);
drivers/memstick/host/tifm_ms.c
635
static int tifm_ms_resume(struct tifm_dev *sock)
drivers/memstick/host/tifm_ms.c
637
struct memstick_host *msh = tifm_get_drvdata(sock);
drivers/memstick/host/tifm_ms.c
85
struct tifm_dev *sock = host->dev;
drivers/memstick/host/tifm_ms.c
98
while (!(TIFM_MS_STAT_EMP & readl(sock->addr + SOCK_MS_STATUS))) {
drivers/misc/tifm_7xx1.c
139
struct tifm_dev *sock;
drivers/misc/tifm_7xx1.c
160
sock = fm->sockets[cnt];
drivers/misc/tifm_7xx1.c
161
if (sock) {
drivers/misc/tifm_7xx1.c
166
sock_addr = sock->addr;
drivers/misc/tifm_7xx1.c
168
device_unregister(&sock->dev);
drivers/misc/tifm_7xx1.c
180
sock = tifm_alloc_device(fm, cnt, media_id);
drivers/misc/tifm_7xx1.c
181
if (sock) {
drivers/misc/tifm_7xx1.c
182
sock->addr = tifm_7xx1_sock_addr(fm->addr, cnt);
drivers/misc/tifm_7xx1.c
184
if (!device_register(&sock->dev)) {
drivers/misc/tifm_7xx1.c
187
fm->sockets[cnt] = sock;
drivers/misc/tifm_7xx1.c
188
sock = NULL;
drivers/misc/tifm_7xx1.c
192
if (sock)
drivers/misc/tifm_7xx1.c
193
put_device(&sock->dev);
drivers/misc/tifm_7xx1.c
22
struct tifm_dev *sock)
drivers/misc/tifm_7xx1.c
26
static void tifm_7xx1_eject(struct tifm_adapter *fm, struct tifm_dev *sock)
drivers/misc/tifm_7xx1.c
293
struct tifm_dev *sock)
drivers/misc/tifm_7xx1.c
298
static int tifm_7xx1_has_ms_pif(struct tifm_adapter *fm, struct tifm_dev *sock)
drivers/misc/tifm_7xx1.c
300
if (((fm->num_sockets == 4) && (sock->socket_id == 2))
drivers/misc/tifm_7xx1.c
301
|| ((fm->num_sockets == 2) && (sock->socket_id == 0)))
drivers/misc/tifm_7xx1.c
31
fm->socket_change_set |= 1 << sock->socket_id;
drivers/misc/tifm_7xx1.c
39
struct tifm_dev *sock;
drivers/misc/tifm_7xx1.c
53
sock = fm->sockets[cnt];
drivers/misc/tifm_7xx1.c
54
if (sock) {
drivers/misc/tifm_7xx1.c
56
sock->data_event(sock);
drivers/misc/tifm_7xx1.c
58
sock->card_event(sock);
drivers/misc/tifm_core.c
100
sock->dev.driver = NULL;
drivers/misc/tifm_core.c
110
struct tifm_dev *sock = container_of(dev, struct tifm_dev, dev);
drivers/misc/tifm_core.c
115
return drv->suspend(sock, state);
drivers/misc/tifm_core.c
121
struct tifm_dev *sock = container_of(dev, struct tifm_dev, dev);
drivers/misc/tifm_core.c
126
return drv->resume(sock);
drivers/misc/tifm_core.c
140
struct tifm_dev *sock = container_of(dev, struct tifm_dev, dev);
drivers/misc/tifm_core.c
141
return sprintf(buf, "%x", sock->type);
drivers/misc/tifm_core.c
242
struct tifm_dev *sock = container_of(dev, struct tifm_dev, dev);
drivers/misc/tifm_core.c
243
kfree(sock);
drivers/misc/tifm_core.c
250
struct tifm_dev *sock = NULL;
drivers/misc/tifm_core.c
253
return sock;
drivers/misc/tifm_core.c
255
sock = kzalloc_obj(struct tifm_dev);
drivers/misc/tifm_core.c
256
if (sock) {
drivers/misc/tifm_core.c
257
spin_lock_init(&sock->lock);
drivers/misc/tifm_core.c
258
sock->type = type;
drivers/misc/tifm_core.c
259
sock->socket_id = id;
drivers/misc/tifm_core.c
260
sock->card_event = tifm_dummy_event;
drivers/misc/tifm_core.c
261
sock->data_event = tifm_dummy_event;
drivers/misc/tifm_core.c
263
sock->dev.parent = fm->dev.parent;
drivers/misc/tifm_core.c
264
sock->dev.bus = &tifm_bus_type;
drivers/misc/tifm_core.c
265
sock->dev.dma_mask = fm->dev.parent->dma_mask;
drivers/misc/tifm_core.c
266
sock->dev.release = tifm_free_device;
drivers/misc/tifm_core.c
268
dev_set_name(&sock->dev, "tifm_%s%u:%u",
drivers/misc/tifm_core.c
274
return sock;
drivers/misc/tifm_core.c
278
void tifm_eject(struct tifm_dev *sock)
drivers/misc/tifm_core.c
280
struct tifm_adapter *fm = dev_get_drvdata(sock->dev.parent);
drivers/misc/tifm_core.c
281
fm->eject(fm, sock);
drivers/misc/tifm_core.c
285
int tifm_has_ms_pif(struct tifm_dev *sock)
drivers/misc/tifm_core.c
287
struct tifm_adapter *fm = dev_get_drvdata(sock->dev.parent);
drivers/misc/tifm_core.c
288
return fm->has_ms_pif(fm, sock);
drivers/misc/tifm_core.c
292
int tifm_map_sg(struct tifm_dev *sock, struct scatterlist *sg, int nents,
drivers/misc/tifm_core.c
295
return dma_map_sg(&to_pci_dev(sock->dev.parent)->dev, sg, nents,
drivers/misc/tifm_core.c
300
void tifm_unmap_sg(struct tifm_dev *sock, struct scatterlist *sg, int nents,
drivers/misc/tifm_core.c
303
dma_unmap_sg(&to_pci_dev(sock->dev.parent)->dev, sg, nents, direction);
drivers/misc/tifm_core.c
34
static int tifm_dev_match(struct tifm_dev *sock, const struct tifm_device_id *id)
drivers/misc/tifm_core.c
36
if (sock->type == id->type)
drivers/misc/tifm_core.c
43
struct tifm_dev *sock = container_of(dev, struct tifm_dev, dev);
drivers/misc/tifm_core.c
50
if (tifm_dev_match(sock, ids))
drivers/misc/tifm_core.c
60
const struct tifm_dev *sock = container_of_const(dev, struct tifm_dev, dev);
drivers/misc/tifm_core.c
62
if (add_uevent_var(env, "TIFM_CARD_TYPE=%s", tifm_media_type_name(sock->type, 1)))
drivers/misc/tifm_core.c
70
struct tifm_dev *sock = container_of(dev, struct tifm_dev, dev);
drivers/misc/tifm_core.c
77
rc = drv->probe(sock);
drivers/misc/tifm_core.c
85
static void tifm_dummy_event(struct tifm_dev *sock)
drivers/misc/tifm_core.c
92
struct tifm_dev *sock = container_of(dev, struct tifm_dev, dev);
drivers/misc/tifm_core.c
97
sock->card_event = tifm_dummy_event;
drivers/misc/tifm_core.c
98
sock->data_event = tifm_dummy_event;
drivers/misc/tifm_core.c
99
drv->remove(sock);
drivers/mmc/host/tifm_sd.c
1000
spin_lock_irqsave(&sock->lock, flags);
drivers/mmc/host/tifm_sd.c
1003
sock->addr + SOCK_DMA_FIFO_INT_ENABLE_CLEAR);
drivers/mmc/host/tifm_sd.c
1004
writel(0, sock->addr + SOCK_DMA_FIFO_INT_ENABLE_SET);
drivers/mmc/host/tifm_sd.c
1010
spin_unlock_irqrestore(&sock->lock, flags);
drivers/mmc/host/tifm_sd.c
1012
dev_dbg(&sock->dev, "after remove\n");
drivers/mmc/host/tifm_sd.c
1017
static int tifm_sd_suspend(struct tifm_dev *sock, pm_message_t state)
drivers/mmc/host/tifm_sd.c
1022
static int tifm_sd_resume(struct tifm_dev *sock)
drivers/mmc/host/tifm_sd.c
1024
struct mmc_host *mmc = tifm_get_drvdata(sock);
drivers/mmc/host/tifm_sd.c
1029
dev_dbg(&sock->dev, "resume initialize %d\n", rc);
drivers/mmc/host/tifm_sd.c
116
struct tifm_dev *sock = host->dev;
drivers/mmc/host/tifm_sd.c
127
val = readl(sock->addr + SOCK_MMCSD_DATA);
drivers/mmc/host/tifm_sd.c
142
struct tifm_dev *sock = host->dev;
drivers/mmc/host/tifm_sd.c
149
writel(val, sock->addr + SOCK_MMCSD_DATA);
drivers/mmc/host/tifm_sd.c
161
writel(val, sock->addr + SOCK_MMCSD_DATA);
drivers/mmc/host/tifm_sd.c
262
struct tifm_dev *sock = host->dev;
drivers/mmc/host/tifm_sd.c
310
dev_dbg(&sock->dev, "setting dma for %d blocks\n", dma_blk_cnt);
drivers/mmc/host/tifm_sd.c
311
writel(sg_dma_address(sg) + dma_off, sock->addr + SOCK_DMA_ADDRESS);
drivers/mmc/host/tifm_sd.c
314
sock->addr + SOCK_DMA_CONTROL);
drivers/mmc/host/tifm_sd.c
317
sock->addr + SOCK_DMA_CONTROL);
drivers/mmc/host/tifm_sd.c
367
struct tifm_dev *sock = host->dev;
drivers/mmc/host/tifm_sd.c
376
dev_dbg(&sock->dev, "executing opcode 0x%x, arg: 0x%x, mask: 0x%x\n",
drivers/mmc/host/tifm_sd.c
379
writel((cmd->arg >> 16) & 0xffff, sock->addr + SOCK_MMCSD_ARG_HIGH);
drivers/mmc/host/tifm_sd.c
380
writel(cmd->arg & 0xffff, sock->addr + SOCK_MMCSD_ARG_LOW);
drivers/mmc/host/tifm_sd.c
381
writel(cmd->opcode | cmd_mask, sock->addr + SOCK_MMCSD_COMMAND);
drivers/mmc/host/tifm_sd.c
384
static void tifm_sd_fetch_resp(struct mmc_command *cmd, struct tifm_dev *sock)
drivers/mmc/host/tifm_sd.c
386
cmd->resp[0] = (readl(sock->addr + SOCK_MMCSD_RESPONSE + 0x1c) << 16)
drivers/mmc/host/tifm_sd.c
387
| readl(sock->addr + SOCK_MMCSD_RESPONSE + 0x18);
drivers/mmc/host/tifm_sd.c
388
cmd->resp[1] = (readl(sock->addr + SOCK_MMCSD_RESPONSE + 0x14) << 16)
drivers/mmc/host/tifm_sd.c
389
| readl(sock->addr + SOCK_MMCSD_RESPONSE + 0x10);
drivers/mmc/host/tifm_sd.c
390
cmd->resp[2] = (readl(sock->addr + SOCK_MMCSD_RESPONSE + 0x0c) << 16)
drivers/mmc/host/tifm_sd.c
391
| readl(sock->addr + SOCK_MMCSD_RESPONSE + 0x08);
drivers/mmc/host/tifm_sd.c
392
cmd->resp[3] = (readl(sock->addr + SOCK_MMCSD_RESPONSE + 0x04) << 16)
drivers/mmc/host/tifm_sd.c
393
| readl(sock->addr + SOCK_MMCSD_RESPONSE + 0x00);
drivers/mmc/host/tifm_sd.c
398
struct tifm_dev *sock = host->dev;
drivers/mmc/host/tifm_sd.c
427
| readl(sock->addr
drivers/mmc/host/tifm_sd.c
429
sock->addr
drivers/mmc/host/tifm_sd.c
438
& readl(sock->addr
drivers/mmc/host/tifm_sd.c
440
sock->addr
drivers/mmc/host/tifm_sd.c
447
& readl(sock->addr
drivers/mmc/host/tifm_sd.c
449
sock->addr + SOCK_MMCSD_INT_ENABLE);
drivers/mmc/host/tifm_sd.c
469
static void tifm_sd_data_event(struct tifm_dev *sock)
drivers/mmc/host/tifm_sd.c
475
spin_lock(&sock->lock);
drivers/mmc/host/tifm_sd.c
476
host = mmc_priv((struct mmc_host*)tifm_get_drvdata(sock));
drivers/mmc/host/tifm_sd.c
477
fifo_status = readl(sock->addr + SOCK_DMA_FIFO_STATUS);
drivers/mmc/host/tifm_sd.c
478
dev_dbg(&sock->dev, "data event: fifo_status %x, flags %x\n",
drivers/mmc/host/tifm_sd.c
492
writel(fifo_status, sock->addr + SOCK_DMA_FIFO_STATUS);
drivers/mmc/host/tifm_sd.c
493
spin_unlock(&sock->lock);
drivers/mmc/host/tifm_sd.c
497
static void tifm_sd_card_event(struct tifm_dev *sock)
drivers/mmc/host/tifm_sd.c
504
spin_lock(&sock->lock);
drivers/mmc/host/tifm_sd.c
505
host = mmc_priv((struct mmc_host*)tifm_get_drvdata(sock));
drivers/mmc/host/tifm_sd.c
506
host_status = readl(sock->addr + SOCK_MMCSD_STATUS);
drivers/mmc/host/tifm_sd.c
507
dev_dbg(&sock->dev, "host event: host_status %x, flags %x\n",
drivers/mmc/host/tifm_sd.c
515
sock->addr + SOCK_MMCSD_STATUS);
drivers/mmc/host/tifm_sd.c
529
sock->addr + SOCK_DMA_FIFO_INT_ENABLE_CLEAR);
drivers/mmc/host/tifm_sd.c
530
writel(TIFM_DMA_RESET, sock->addr + SOCK_DMA_CONTROL);
drivers/mmc/host/tifm_sd.c
548
tifm_sd_fetch_resp(cmd, sock);
drivers/mmc/host/tifm_sd.c
552
sock);
drivers/mmc/host/tifm_sd.c
562
sock->addr + SOCK_MMCSD_STATUS);
drivers/mmc/host/tifm_sd.c
579
writel(host_status, sock->addr + SOCK_MMCSD_STATUS);
drivers/mmc/host/tifm_sd.c
580
spin_unlock(&sock->lock);
drivers/mmc/host/tifm_sd.c
586
struct tifm_dev *sock = host->dev;
drivers/mmc/host/tifm_sd.c
596
writel(data_timeout, sock->addr + SOCK_MMCSD_DATA_TO);
drivers/mmc/host/tifm_sd.c
598
& readl(sock->addr + SOCK_MMCSD_SDIO_MODE_CONFIG),
drivers/mmc/host/tifm_sd.c
599
sock->addr + SOCK_MMCSD_SDIO_MODE_CONFIG);
drivers/mmc/host/tifm_sd.c
604
writel(data_timeout, sock->addr + SOCK_MMCSD_DATA_TO);
drivers/mmc/host/tifm_sd.c
606
| readl(sock->addr + SOCK_MMCSD_SDIO_MODE_CONFIG),
drivers/mmc/host/tifm_sd.c
607
sock->addr + SOCK_MMCSD_SDIO_MODE_CONFIG);
drivers/mmc/host/tifm_sd.c
614
struct tifm_dev *sock = host->dev;
drivers/mmc/host/tifm_sd.c
618
spin_lock_irqsave(&sock->lock, flags);
drivers/mmc/host/tifm_sd.c
626
dev_name(&sock->dev));
drivers/mmc/host/tifm_sd.c
645
| readl(sock->addr + SOCK_MMCSD_INT_ENABLE),
drivers/mmc/host/tifm_sd.c
646
sock->addr + SOCK_MMCSD_INT_ENABLE);
drivers/mmc/host/tifm_sd.c
650
| readl(sock->addr + SOCK_MMCSD_INT_ENABLE),
drivers/mmc/host/tifm_sd.c
651
sock->addr + SOCK_MMCSD_INT_ENABLE);
drivers/mmc/host/tifm_sd.c
654
sock->addr + SOCK_MMCSD_BUFFER_CONFIG);
drivers/mmc/host/tifm_sd.c
661
if(1 != tifm_map_sg(sock, &host->bounce_buf, 1,
drivers/mmc/host/tifm_sd.c
666
dev_name(&sock->dev));
drivers/mmc/host/tifm_sd.c
670
host->sg_len = tifm_map_sg(sock, r_data->sg,
drivers/mmc/host/tifm_sd.c
678
dev_name(&sock->dev));
drivers/mmc/host/tifm_sd.c
679
tifm_unmap_sg(sock, &host->bounce_buf, 1,
drivers/mmc/host/tifm_sd.c
688
sock->addr + SOCK_DMA_FIFO_INT_ENABLE_CLEAR);
drivers/mmc/host/tifm_sd.c
690
sock->addr + SOCK_FIFO_PAGE_SIZE);
drivers/mmc/host/tifm_sd.c
692
sock->addr + SOCK_FIFO_CONTROL);
drivers/mmc/host/tifm_sd.c
694
sock->addr + SOCK_DMA_FIFO_INT_ENABLE_SET);
drivers/mmc/host/tifm_sd.c
698
sock->addr + SOCK_MMCSD_BUFFER_CONFIG);
drivers/mmc/host/tifm_sd.c
701
sock->addr + SOCK_MMCSD_BUFFER_CONFIG);
drivers/mmc/host/tifm_sd.c
707
sock->addr + SOCK_MMCSD_NUM_BLOCKS);
drivers/mmc/host/tifm_sd.c
709
sock->addr + SOCK_MMCSD_BLOCK_LEN);
drivers/mmc/host/tifm_sd.c
714
writel(TIFM_CTRL_LED | readl(sock->addr + SOCK_CONTROL),
drivers/mmc/host/tifm_sd.c
715
sock->addr + SOCK_CONTROL);
drivers/mmc/host/tifm_sd.c
717
spin_unlock_irqrestore(&sock->lock, flags);
drivers/mmc/host/tifm_sd.c
721
spin_unlock_irqrestore(&sock->lock, flags);
drivers/mmc/host/tifm_sd.c
728
struct tifm_dev *sock = host->dev;
drivers/mmc/host/tifm_sd.c
729
struct mmc_host *mmc = tifm_get_drvdata(sock);
drivers/mmc/host/tifm_sd.c
734
spin_lock_irqsave(&sock->lock, flags);
drivers/mmc/host/tifm_sd.c
742
dev_name(&sock->dev));
drivers/mmc/host/tifm_sd.c
743
spin_unlock_irqrestore(&sock->lock, flags);
drivers/mmc/host/tifm_sd.c
751
& readl(sock->addr + SOCK_MMCSD_INT_ENABLE),
drivers/mmc/host/tifm_sd.c
752
sock->addr + SOCK_MMCSD_INT_ENABLE);
drivers/mmc/host/tifm_sd.c
754
tifm_unmap_sg(sock, &host->bounce_buf, 1,
drivers/mmc/host/tifm_sd.c
757
tifm_unmap_sg(sock, r_data->sg, r_data->sg_len,
drivers/mmc/host/tifm_sd.c
763
- readl(sock->addr + SOCK_MMCSD_NUM_BLOCKS) - 1;
drivers/mmc/host/tifm_sd.c
766
- readl(sock->addr + SOCK_MMCSD_BLOCK_LEN) + 1;
drivers/mmc/host/tifm_sd.c
769
writel((~TIFM_CTRL_LED) & readl(sock->addr + SOCK_CONTROL),
drivers/mmc/host/tifm_sd.c
770
sock->addr + SOCK_CONTROL);
drivers/mmc/host/tifm_sd.c
772
spin_unlock_irqrestore(&sock->lock, flags);
drivers/mmc/host/tifm_sd.c
790
struct tifm_dev *sock = host->dev;
drivers/mmc/host/tifm_sd.c
794
spin_lock_irqsave(&sock->lock, flags);
drivers/mmc/host/tifm_sd.c
796
dev_dbg(&sock->dev, "ios: clock = %u, vdd = %x, bus_mode = %x, "
drivers/mmc/host/tifm_sd.c
802
writel(TIFM_MMCSD_4BBUS | readl(sock->addr + SOCK_MMCSD_CONFIG),
drivers/mmc/host/tifm_sd.c
803
sock->addr + SOCK_MMCSD_CONFIG);
drivers/mmc/host/tifm_sd.c
806
& readl(sock->addr + SOCK_MMCSD_CONFIG),
drivers/mmc/host/tifm_sd.c
807
sock->addr + SOCK_MMCSD_CONFIG);
drivers/mmc/host/tifm_sd.c
827
& readl(sock->addr + SOCK_CONTROL),
drivers/mmc/host/tifm_sd.c
828
sock->addr + SOCK_CONTROL);
drivers/mmc/host/tifm_sd.c
833
| readl(sock->addr + SOCK_CONTROL),
drivers/mmc/host/tifm_sd.c
834
sock->addr + SOCK_CONTROL);
drivers/mmc/host/tifm_sd.c
842
& readl(sock->addr + SOCK_MMCSD_CONFIG)),
drivers/mmc/host/tifm_sd.c
843
sock->addr + SOCK_MMCSD_CONFIG);
drivers/mmc/host/tifm_sd.c
851
spin_unlock_irqrestore(&sock->lock, flags);
drivers/mmc/host/tifm_sd.c
858
struct tifm_dev *sock = host->dev;
drivers/mmc/host/tifm_sd.c
861
spin_lock_irqsave(&sock->lock, flags);
drivers/mmc/host/tifm_sd.c
862
if (TIFM_MMCSD_CARD_RO & readl(sock->addr + SOCK_PRESENT_STATE))
drivers/mmc/host/tifm_sd.c
864
spin_unlock_irqrestore(&sock->lock, flags);
drivers/mmc/host/tifm_sd.c
878
struct tifm_dev *sock = host->dev;
drivers/mmc/host/tifm_sd.c
880
writel(0, sock->addr + SOCK_MMCSD_INT_ENABLE);
drivers/mmc/host/tifm_sd.c
883
writel(TIFM_MMCSD_RESET, sock->addr + SOCK_MMCSD_SYSTEM_CONTROL);
drivers/mmc/host/tifm_sd.c
885
sock->addr + SOCK_MMCSD_CONFIG);
drivers/mmc/host/tifm_sd.c
889
if (1 & readl(sock->addr + SOCK_MMCSD_SYSTEM_STATUS)) {
drivers/mmc/host/tifm_sd.c
898
dev_name(&sock->dev));
drivers/mmc/host/tifm_sd.c
902
writel(0, sock->addr + SOCK_MMCSD_NUM_BLOCKS);
drivers/mmc/host/tifm_sd.c
904
sock->addr + SOCK_MMCSD_CONFIG);
drivers/mmc/host/tifm_sd.c
905
writel(TIFM_MMCSD_RXDE, sock->addr + SOCK_MMCSD_BUFFER_CONFIG);
drivers/mmc/host/tifm_sd.c
908
writel(64, sock->addr + SOCK_MMCSD_COMMAND_TO);
drivers/mmc/host/tifm_sd.c
909
writel(TIFM_MMCSD_INAB, sock->addr + SOCK_MMCSD_COMMAND);
drivers/mmc/host/tifm_sd.c
912
host_status = readl(sock->addr + SOCK_MMCSD_STATUS);
drivers/mmc/host/tifm_sd.c
913
writel(host_status, sock->addr + SOCK_MMCSD_STATUS);
drivers/mmc/host/tifm_sd.c
924
dev_name(&sock->dev));
drivers/mmc/host/tifm_sd.c
930
sock->addr + SOCK_MMCSD_INT_ENABLE);
drivers/mmc/host/tifm_sd.c
935
static int tifm_sd_probe(struct tifm_dev *sock)
drivers/mmc/host/tifm_sd.c
942
& readl(sock->addr + SOCK_PRESENT_STATE))) {
drivers/mmc/host/tifm_sd.c
944
dev_name(&sock->dev));
drivers/mmc/host/tifm_sd.c
948
mmc = devm_mmc_alloc_host(&sock->dev, sizeof(*host));
drivers/mmc/host/tifm_sd.c
953
tifm_set_drvdata(sock, mmc);
drivers/mmc/host/tifm_sd.c
954
host->dev = sock;
drivers/mmc/host/tifm_sd.c
977
sock->card_event = tifm_sd_card_event;
drivers/mmc/host/tifm_sd.c
978
sock->data_event = tifm_sd_data_event;
drivers/mmc/host/tifm_sd.c
987
static void tifm_sd_remove(struct tifm_dev *sock)
drivers/mmc/host/tifm_sd.c
989
struct mmc_host *mmc = tifm_get_drvdata(sock);
drivers/mmc/host/tifm_sd.c
993
spin_lock_irqsave(&sock->lock, flags);
drivers/mmc/host/tifm_sd.c
995
writel(0, sock->addr + SOCK_MMCSD_INT_ENABLE);
drivers/mmc/host/tifm_sd.c
996
spin_unlock_irqrestore(&sock->lock, flags);
drivers/net/amt.c
1006
struct sock *sk;
drivers/net/amt.c
1067
struct sock *sk;
drivers/net/amt.c
1121
struct sock *sk;
drivers/net/amt.c
2601
struct sock *sk;
drivers/net/amt.c
2811
static int amt_rcv(struct sock *sk, struct sk_buff *skb)
drivers/net/amt.c
2947
static int amt_err_lookup(struct sock *sk, struct sk_buff *skb)
drivers/net/amt.c
2986
static struct sock *amt_create_sock(struct net *net, __be16 port)
drivers/net/amt.c
2989
struct socket *sock;
drivers/net/amt.c
2998
err = udp_sock_create(net, &udp_conf, &sock);
drivers/net/amt.c
3002
return sock->sk;
drivers/net/amt.c
3008
struct sock *sk;
drivers/net/amt.c
3068
struct sock *sk;
drivers/net/amt.c
622
struct sock *sk;
drivers/net/amt.c
711
struct sock *sk;
drivers/net/arcnet/arcnet.c
434
struct sock *sk;
drivers/net/bareudp.c
207
static int bareudp_err_lookup(struct sock *sk, struct sk_buff *skb)
drivers/net/bareudp.c
231
static struct sock *bareudp_create_sock(struct net *net, __be16 port)
drivers/net/bareudp.c
234
struct socket *sock;
drivers/net/bareudp.c
246
err = udp_sock_create(net, &udp_conf, &sock);
drivers/net/bareudp.c
250
udp_allow_gso(sock->sk);
drivers/net/bareudp.c
251
return sock->sk;
drivers/net/bareudp.c
258
struct sock *sk;
drivers/net/bareudp.c
286
struct sock *sk;
drivers/net/bareudp.c
308
struct sock *sk = rcu_dereference(bareudp->sk);
drivers/net/bareudp.c
378
struct sock *sk = rcu_dereference(bareudp->sk);
drivers/net/bareudp.c
527
struct sock *sk;
drivers/net/bareudp.c
56
struct sock __rcu *sk;
drivers/net/bareudp.c
61
static int bareudp_udp_encap_recv(struct sock *sk, struct sk_buff *skb)
drivers/net/bonding/bond_main.c
5463
static void bond_sk_to_flow(struct sock *sk, struct flow_keys *flow)
drivers/net/bonding/bond_main.c
5496
static u32 bond_sk_hash_l34(struct sock *sk)
drivers/net/bonding/bond_main.c
5510
struct sock *sk)
drivers/net/bonding/bond_main.c
5529
struct sock *sk)
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
6425
static int cxgb4_ktls_dev_add(struct net_device *netdev, struct sock *sk,
drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/chcr_ktls.c
175
static int chcr_ktls_act_open_req(struct sock *sk,
drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/chcr_ktls.c
226
static int chcr_ktls_act_open_req6(struct sock *sk,
drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/chcr_ktls.c
276
static int chcr_setup_connection(struct sock *sk,
drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/chcr_ktls.c
412
static int chcr_ktls_dev_add(struct net_device *netdev, struct sock *sk,
drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/chcr_ktls.h
38
struct sock *sk;
drivers/net/ethernet/freescale/fec_mpc52xx.c
115
struct sockaddr *sock = addr;
drivers/net/ethernet/freescale/fec_mpc52xx.c
117
eth_hw_addr_set(dev, sock->sa_data);
drivers/net/ethernet/freescale/fec_mpc52xx.c
119
mpc52xx_fec_set_paddr(dev, sock->sa_data);
drivers/net/ethernet/fungible/funeth/funeth_ktls.c
18
static int fun_ktls_add(struct net_device *netdev, struct sock *sk,
drivers/net/ethernet/fungible/funeth/funeth_ktls.c
95
static int fun_ktls_resync(struct net_device *netdev, struct sock *sk, u32 seq,
drivers/net/ethernet/mellanox/mlx5/core/en_accel/fs_tcp.c
29
static void accel_fs_tcp_set_ipv4_flow(struct mlx5_flow_spec *spec, struct sock *sk)
drivers/net/ethernet/mellanox/mlx5/core/en_accel/fs_tcp.c
48
static void accel_fs_tcp_set_ipv6_flow(struct mlx5_flow_spec *spec, struct sock *sk)
drivers/net/ethernet/mellanox/mlx5/core/en_accel/fs_tcp.c
75
struct sock *sk, u32 tirn,
drivers/net/ethernet/mellanox/mlx5/core/en_accel/fs_tcp.h
13
struct sock *sk, u32 tirn,
drivers/net/ethernet/mellanox/mlx5/core/en_accel/fs_tcp.h
20
struct sock *sk, u32 tirn,
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls.c
48
static int mlx5e_ktls_add(struct net_device *netdev, struct sock *sk,
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls.c
79
struct sock *sk, u32 seq, u8 *rcd_sn,
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_rx.c
474
static bool resync_queue_get_psv(struct sock *sk)
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_rx.c
48
struct sock *sk;
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_rx.c
503
struct sock *sk = NULL;
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_rx.c
554
void mlx5e_ktls_rx_resync(struct net_device *netdev, struct sock *sk,
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_rx.c
623
static int mlx5e_ktls_sk_get_rxq(struct sock *sk)
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_rx.c
633
int mlx5e_ktls_add_rx(struct net_device *netdev, struct sock *sk,
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c
454
int mlx5e_ktls_add_tx(struct net_device *netdev, struct sock *sk,
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_utils.h
22
int mlx5e_ktls_add_tx(struct net_device *netdev, struct sock *sk,
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_utils.h
25
int mlx5e_ktls_add_rx(struct net_device *netdev, struct sock *sk,
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_utils.h
28
void mlx5e_ktls_rx_resync(struct net_device *netdev, struct sock *sk, u32 seq, u8 *rcd_sn);
drivers/net/ethernet/microsoft/mana/mana_en.c
646
struct sock *sk = skb->sk;
drivers/net/ethernet/netronome/nfp/crypto/tls.c
176
struct sock *sk, int direction)
drivers/net/ethernet/netronome/nfp/crypto/tls.c
196
struct sock *sk, int direction)
drivers/net/ethernet/netronome/nfp/crypto/tls.c
218
struct nfp_crypto_req_add_back *back, struct sock *sk,
drivers/net/ethernet/netronome/nfp/crypto/tls.c
268
nfp_net_tls_add(struct net_device *netdev, struct sock *sk,
drivers/net/ethernet/netronome/nfp/crypto/tls.c
427
nfp_net_tls_resync(struct net_device *netdev, struct sock *sk, u32 seq,
drivers/net/ethernet/netronome/nfp/crypto/tls.c
485
struct sock *sk;
drivers/net/geneve.c
1017
struct sock *sk;
drivers/net/geneve.c
119
struct sock *sk;
drivers/net/geneve.c
483
geneve_sk_gro_hint_off(const struct sock *sk, const struct genevehdr *gh,
drivers/net/geneve.c
579
static int geneve_post_decap_hint(const struct sock *sk, struct sk_buff *skb,
drivers/net/geneve.c
669
static int geneve_udp_encap_recv(struct sock *sk, struct sk_buff *skb)
drivers/net/geneve.c
730
static int geneve_udp_encap_err_lookup(struct sock *sk, struct sk_buff *skb)
drivers/net/geneve.c
782
static struct sock *geneve_create_sock(struct net *net,
drivers/net/geneve.c
787
struct socket *sock;
drivers/net/geneve.c
808
err = udp_sock_create(net, &udp_conf, &sock);
drivers/net/geneve.c
812
udp_allow_gso(sock->sk);
drivers/net/geneve.c
813
return sock->sk;
drivers/net/geneve.c
891
static struct sk_buff *geneve_gro_receive(struct sock *sk,
drivers/net/geneve.c
969
static int geneve_gro_complete(struct sock *sk, struct sk_buff *skb,
drivers/net/gtp.c
1021
struct sock *sk, __u8 tos,
drivers/net/gtp.c
1035
struct sock *sk, __u8 tos,
drivers/net/gtp.c
1404
static struct sock *gtp_create_sock(int type, struct gtp_dev *gtp,
drivers/net/gtp.c
1410
struct socket *sock;
drivers/net/gtp.c
1429
err = udp_sock_create(net, &udp_conf, &sock);
drivers/net/gtp.c
1438
setup_udp_tunnel_sock(net, sock->sk, &tuncfg);
drivers/net/gtp.c
1440
return sock->sk;
drivers/net/gtp.c
1446
struct sock *sk1u;
drivers/net/gtp.c
1447
struct sock *sk0;
drivers/net/gtp.c
1649
static struct sock *gtp_encap_enable_socket(int fd, int type,
drivers/net/gtp.c
1653
struct socket *sock;
drivers/net/gtp.c
1654
struct sock *sk;
drivers/net/gtp.c
1659
sock = sockfd_lookup(fd, &err);
drivers/net/gtp.c
1660
if (!sock) {
drivers/net/gtp.c
1665
sk = sock->sk;
drivers/net/gtp.c
1693
setup_udp_tunnel_sock(sock_net(sock->sk), sk, &tuncfg);
drivers/net/gtp.c
1696
release_sock(sock->sk);
drivers/net/gtp.c
1698
sockfd_put(sock);
drivers/net/gtp.c
1704
struct sock *sk1u = NULL;
drivers/net/gtp.c
1705
struct sock *sk0 = NULL;
drivers/net/gtp.c
1824
static struct pdp_ctx *gtp_pdp_add(struct gtp_dev *gtp, struct sock *sk,
drivers/net/gtp.c
2011
struct sock *sk;
drivers/net/gtp.c
2335
struct sock *sk;
drivers/net/gtp.c
349
const struct sock *sk,
drivers/net/gtp.c
365
const struct sock *sk,
drivers/net/gtp.c
66
struct sock *sk;
drivers/net/gtp.c
77
struct sock *sk0;
drivers/net/gtp.c
78
struct sock *sk1u;
drivers/net/gtp.c
851
static void __gtp_encap_destroy(struct sock *sk)
drivers/net/gtp.c
871
static void gtp_encap_destroy(struct sock *sk)
drivers/net/gtp.c
878
static void gtp_encap_disable_sock(struct sock *sk)
drivers/net/gtp.c
903
static int gtp_encap_recv(struct sock *sk, struct sk_buff *skb)
drivers/net/gtp.c
991
struct sock *sk;
drivers/net/hyperv/netvsc_drv.c
254
struct sock *sk = skb->sk;
drivers/net/ovpn/io.c
113
struct ovpn_socket *sock;
drivers/net/ovpn/io.c
148
sock = rcu_dereference(peer->sock);
drivers/net/ovpn/io.c
149
if (sock && sock->sk->sk_protocol == IPPROTO_UDP)
drivers/net/ovpn/io.c
242
struct ovpn_socket *sock;
drivers/net/ovpn/io.c
279
sock = rcu_dereference(peer->sock);
drivers/net/ovpn/io.c
280
if (unlikely(!sock))
drivers/net/ovpn/io.c
283
switch (sock->sk->sk_protocol) {
drivers/net/ovpn/io.c
285
ovpn_udp_send_skb(peer, sock->sk, skb);
drivers/net/ovpn/io.c
288
ovpn_tcp_send_skb(peer, sock->sk, skb);
drivers/net/ovpn/netlink.c
1161
struct ovpn_socket *sock;
drivers/net/ovpn/netlink.c
1198
sock = rcu_dereference(peer->sock);
drivers/net/ovpn/netlink.c
1199
if (!sock) {
drivers/net/ovpn/netlink.c
1203
genlmsg_multicast_netns(&ovpn_nl_family, sock_net(sock->sk), msg, 0,
drivers/net/ovpn/netlink.c
1228
struct ovpn_socket *sock;
drivers/net/ovpn/netlink.c
1280
sock = rcu_dereference(peer->sock);
drivers/net/ovpn/netlink.c
1281
if (!sock) {
drivers/net/ovpn/netlink.c
1285
genlmsg_multicast_netns(&ovpn_nl_family, sock_net(sock->sk), msg,
drivers/net/ovpn/netlink.c
1309
struct ovpn_socket *sock;
drivers/net/ovpn/netlink.c
1345
sock = rcu_dereference(peer->sock);
drivers/net/ovpn/netlink.c
1346
if (!sock) {
drivers/net/ovpn/netlink.c
1350
genlmsg_multicast_netns(&ovpn_nl_family, sock_net(sock->sk), msg, 0,
drivers/net/ovpn/netlink.c
352
struct socket *sock = NULL;
drivers/net/ovpn/netlink.c
394
sock = sockfd_lookup(sockfd, &ret);
drivers/net/ovpn/netlink.c
395
if (!sock) {
drivers/net/ovpn/netlink.c
406
if (sock->sk->sk_protocol == IPPROTO_UDP &&
drivers/net/ovpn/netlink.c
411
sockfd_put(sock);
drivers/net/ovpn/netlink.c
420
if (sock->sk->sk_protocol == IPPROTO_TCP &&
drivers/net/ovpn/netlink.c
425
sockfd_put(sock);
drivers/net/ovpn/netlink.c
430
ovpn_sock = ovpn_socket_new(sock, peer);
drivers/net/ovpn/netlink.c
437
sockfd_put(sock);
drivers/net/ovpn/netlink.c
446
rcu_assign_pointer(peer->sock, ovpn_sock);
drivers/net/ovpn/netlink.c
479
struct ovpn_socket *sock;
drivers/net/ovpn/netlink.c
512
sock = rcu_dereference(peer->sock);
drivers/net/ovpn/netlink.c
513
if (sock && sock->sk->sk_protocol == IPPROTO_TCP &&
drivers/net/ovpn/netlink.c
548
struct ovpn_socket *sock;
drivers/net/ovpn/netlink.c
565
sock = rcu_dereference(peer->sock);
drivers/net/ovpn/netlink.c
566
if (!sock) {
drivers/net/ovpn/netlink.c
571
if (!net_eq(genl_info_net(info), sock_net(sock->sk))) {
drivers/net/ovpn/netlink.c
573
sock_net(sock->sk),
drivers/net/ovpn/netlink.c
578
local_port = inet_sk(sock->sk)->inet_sport;
drivers/net/ovpn/peer.c
1152
static void ovpn_peer_release_p2p(struct ovpn_priv *ovpn, struct sock *sk,
drivers/net/ovpn/peer.c
1168
ovpn_sock = rcu_access_pointer(peer->sock);
drivers/net/ovpn/peer.c
1179
static void ovpn_peers_release_mp(struct ovpn_priv *ovpn, struct sock *sk,
drivers/net/ovpn/peer.c
1197
ovpn_sock = rcu_dereference(peer->sock);
drivers/net/ovpn/peer.c
1215
void ovpn_peers_free(struct ovpn_priv *ovpn, struct sock *sk,
drivers/net/ovpn/peer.h
144
void ovpn_peers_free(struct ovpn_priv *ovpn, struct sock *sock,
drivers/net/ovpn/peer.h
77
struct ovpn_socket __rcu *sock;
drivers/net/ovpn/peer.h
92
void (*sk_data_ready)(struct sock *sk);
drivers/net/ovpn/peer.h
93
void (*sk_write_space)(struct sock *sk);
drivers/net/ovpn/socket.c
102
sock_put(sock->sk);
drivers/net/ovpn/socket.c
106
kfree(sock);
drivers/net/ovpn/socket.c
110
static bool ovpn_socket_hold(struct ovpn_socket *sock)
drivers/net/ovpn/socket.c
112
return kref_get_unless_zero(&sock->refcount);
drivers/net/ovpn/socket.c
116
struct socket *sock,
drivers/net/ovpn/socket.c
119
if (sock->sk->sk_protocol == IPPROTO_UDP)
drivers/net/ovpn/socket.c
120
return ovpn_udp_socket_attach(ovpn_sock, sock, peer->ovpn);
drivers/net/ovpn/socket.c
121
else if (sock->sk->sk_protocol == IPPROTO_TCP)
drivers/net/ovpn/socket.c
134
struct ovpn_socket *ovpn_socket_new(struct socket *sock, struct ovpn_peer *peer)
drivers/net/ovpn/socket.c
137
struct sock *sk = sock->sk;
drivers/net/ovpn/socket.c
229
ret = ovpn_socket_attach(ovpn_sock, sock, peer);
drivers/net/ovpn/socket.c
24
struct ovpn_socket *sock = container_of(kref, struct ovpn_socket,
drivers/net/ovpn/socket.c
27
if (sock->sk->sk_protocol == IPPROTO_UDP)
drivers/net/ovpn/socket.c
28
ovpn_udp_socket_detach(sock);
drivers/net/ovpn/socket.c
29
else if (sock->sk->sk_protocol == IPPROTO_TCP)
drivers/net/ovpn/socket.c
30
ovpn_tcp_socket_detach(sock);
drivers/net/ovpn/socket.c
43
static bool ovpn_socket_put(struct ovpn_peer *peer, struct ovpn_socket *sock)
drivers/net/ovpn/socket.c
45
return kref_put(&sock->refcount, ovpn_socket_release_kref);
drivers/net/ovpn/socket.c
68
struct ovpn_socket *sock;
drivers/net/ovpn/socket.c
73
sock = rcu_replace_pointer(peer->sock, NULL, true);
drivers/net/ovpn/socket.c
75
if (!sock)
drivers/net/ovpn/socket.c
85
lock_sock(sock->sk);
drivers/net/ovpn/socket.c
86
released = ovpn_socket_put(peer, sock);
drivers/net/ovpn/socket.c
87
release_sock(sock->sk);
drivers/net/ovpn/socket.c
94
if (sock->sk->sk_protocol == IPPROTO_UDP) {
drivers/net/ovpn/socket.c
95
netdev_put(sock->ovpn->dev, &sock->dev_tracker);
drivers/net/ovpn/socket.c
96
} else if (sock->sk->sk_protocol == IPPROTO_TCP) {
drivers/net/ovpn/socket.c
98
ovpn_tcp_socket_wait_finish(sock);
drivers/net/ovpn/socket.c
99
ovpn_peer_put(sock->peer);
drivers/net/ovpn/socket.h
39
struct sock *sk;
drivers/net/ovpn/socket.h
45
struct ovpn_socket *ovpn_socket_new(struct socket *sock,
drivers/net/ovpn/tcp.c
161
static int ovpn_tcp_recvmsg(struct sock *sk, struct msghdr *msg, size_t len,
drivers/net/ovpn/tcp.c
165
struct ovpn_socket *sock;
drivers/net/ovpn/tcp.c
170
sock = rcu_dereference_sk_user_data(sk);
drivers/net/ovpn/tcp.c
171
if (unlikely(!sock || !sock->peer || !ovpn_peer_hold(sock->peer))) {
drivers/net/ovpn/tcp.c
175
peer = sock->peer;
drivers/net/ovpn/tcp.c
213
struct sock *sk = ovpn_sock->sk;
drivers/net/ovpn/tcp.c
239
void ovpn_tcp_socket_wait_finish(struct ovpn_socket *sock)
drivers/net/ovpn/tcp.c
241
struct ovpn_peer *peer = sock->peer;
drivers/net/ovpn/tcp.c
248
cancel_work_sync(&sock->tcp_tx_work);
drivers/net/ovpn/tcp.c
256
static void ovpn_tcp_send_sock(struct ovpn_peer *peer, struct sock *sk)
drivers/net/ovpn/tcp.c
319
struct ovpn_socket *sock;
drivers/net/ovpn/tcp.c
321
sock = container_of(work, struct ovpn_socket, tcp_tx_work);
drivers/net/ovpn/tcp.c
323
lock_sock(sock->sk);
drivers/net/ovpn/tcp.c
324
if (sock->peer)
drivers/net/ovpn/tcp.c
325
ovpn_tcp_send_sock(sock->peer, sock->sk);
drivers/net/ovpn/tcp.c
326
release_sock(sock->sk);
drivers/net/ovpn/tcp.c
329
static void ovpn_tcp_send_sock_skb(struct ovpn_peer *peer, struct sock *sk,
drivers/net/ovpn/tcp.c
347
void ovpn_tcp_send_skb(struct ovpn_peer *peer, struct sock *sk,
drivers/net/ovpn/tcp.c
370
static void ovpn_tcp_release(struct sock *sk)
drivers/net/ovpn/tcp.c
373
struct ovpn_socket *sock;
drivers/net/ovpn/tcp.c
378
sock = rcu_dereference_sk_user_data(sk);
drivers/net/ovpn/tcp.c
379
if (!sock) {
drivers/net/ovpn/tcp.c
384
peer = sock->peer;
drivers/net/ovpn/tcp.c
405
static int ovpn_tcp_sendmsg(struct sock *sk, struct msghdr *msg, size_t size)
drivers/net/ovpn/tcp.c
407
struct ovpn_socket *sock;
drivers/net/ovpn/tcp.c
414
sock = rcu_dereference_sk_user_data(sk);
drivers/net/ovpn/tcp.c
415
if (unlikely(!sock || !sock->peer || !ovpn_peer_hold(sock->peer))) {
drivers/net/ovpn/tcp.c
421
peer = sock->peer;
drivers/net/ovpn/tcp.c
465
static int ovpn_tcp_disconnect(struct sock *sk, int flags)
drivers/net/ovpn/tcp.c
470
static void ovpn_tcp_data_ready(struct sock *sk)
drivers/net/ovpn/tcp.c
472
struct ovpn_socket *sock;
drivers/net/ovpn/tcp.c
477
sock = rcu_dereference_sk_user_data(sk);
drivers/net/ovpn/tcp.c
478
if (likely(sock && sock->peer))
drivers/net/ovpn/tcp.c
479
strp_data_ready(&sock->peer->tcp.strp);
drivers/net/ovpn/tcp.c
483
static void ovpn_tcp_write_space(struct sock *sk)
drivers/net/ovpn/tcp.c
485
struct ovpn_socket *sock;
drivers/net/ovpn/tcp.c
488
sock = rcu_dereference_sk_user_data(sk);
drivers/net/ovpn/tcp.c
489
if (likely(sock && sock->peer)) {
drivers/net/ovpn/tcp.c
490
schedule_work(&sock->tcp_tx_work);
drivers/net/ovpn/tcp.c
491
sock->peer->tcp.sk_cb.sk_write_space(sk);
drivers/net/ovpn/tcp.c
579
static void ovpn_tcp_close(struct sock *sk, long timeout)
drivers/net/ovpn/tcp.c
581
struct ovpn_socket *sock;
drivers/net/ovpn/tcp.c
585
sock = rcu_dereference_sk_user_data(sk);
drivers/net/ovpn/tcp.c
586
if (!sock) {
drivers/net/ovpn/tcp.c
591
peer = sock->peer;
drivers/net/ovpn/tcp.c
603
static __poll_t ovpn_tcp_poll(struct file *file, struct socket *sock,
drivers/net/ovpn/tcp.c
606
struct sk_buff_head *queue = &sock->sk->sk_receive_queue;
drivers/net/ovpn/tcp.c
612
ovpn_sock = rcu_dereference_sk_user_data(sock->sk);
drivers/net/ovpn/tcp.c
629
mask = datagram_poll_queue(file, sock, wait, queue);
drivers/net/ovpn/tcp.c
64
static void ovpn_tcp_to_userspace(struct ovpn_peer *peer, struct sock *sk,
drivers/net/ovpn/tcp.h
25
void ovpn_tcp_socket_wait_finish(struct ovpn_socket *sock);
drivers/net/ovpn/tcp.h
33
void ovpn_tcp_send_skb(struct ovpn_peer *peer, struct sock *sk,
drivers/net/ovpn/udp.c
145
struct dst_cache *cache, struct sock *sk,
drivers/net/ovpn/udp.c
220
struct dst_cache *cache, struct sock *sk,
drivers/net/ovpn/udp.c
297
struct sock *sk, struct sk_buff *skb)
drivers/net/ovpn/udp.c
33
static struct ovpn_socket *ovpn_socket_from_udp_sock(struct sock *sk)
drivers/net/ovpn/udp.c
340
void ovpn_udp_send_skb(struct ovpn_peer *peer, struct sock *sk,
drivers/net/ovpn/udp.c
356
static void ovpn_udp_encap_destroy(struct sock *sk)
drivers/net/ovpn/udp.c
358
struct ovpn_socket *sock;
drivers/net/ovpn/udp.c
362
sock = rcu_dereference_sk_user_data(sk);
drivers/net/ovpn/udp.c
363
if (!sock || !sock->ovpn) {
drivers/net/ovpn/udp.c
367
ovpn = sock->ovpn;
drivers/net/ovpn/udp.c
384
int ovpn_udp_socket_attach(struct ovpn_socket *ovpn_sock, struct socket *sock,
drivers/net/ovpn/udp.c
402
setup_udp_tunnel_sock(sock_net(ovpn_sock->sk), sock->sk, &cfg);
drivers/net/ovpn/udp.c
436
struct sock *sk = ovpn_sock->sk;
drivers/net/ovpn/udp.c
67
static int ovpn_udp_encap_recv(struct sock *sk, struct sk_buff *skb)
drivers/net/ovpn/udp.h
18
int ovpn_udp_socket_attach(struct ovpn_socket *ovpn_sock, struct socket *sock,
drivers/net/ovpn/udp.h
22
void ovpn_udp_send_skb(struct ovpn_peer *peer, struct sock *sk,
drivers/net/pfcp.c
155
static struct sock *pfcp_create_sock(struct pfcp_dev *pfcp)
drivers/net/pfcp.c
163
struct socket *sock;
drivers/net/pfcp.c
168
err = udp_sock_create(net, &udp_conf, &sock);
drivers/net/pfcp.c
176
setup_udp_tunnel_sock(net, sock->sk, &tuncfg);
drivers/net/pfcp.c
178
return sock->sk;
drivers/net/pfcp.c
21
struct sock *sk;
drivers/net/pfcp.c
51
static int pfcp_encap_recv(struct sock *sk, struct sk_buff *skb)
drivers/net/ppp/pppoe.c
266
struct sock *sk;
drivers/net/ppp/pppoe.c
351
static int pppoe_rcv_core(struct sock *sk, struct sk_buff *skb)
drivers/net/ppp/pppoe.c
435
struct sock *sk = &po->sk;
drivers/net/ppp/pppoe.c
503
static void pppoe_destruct(struct sock *sk)
drivers/net/ppp/pppoe.c
513
static int pppoe_create(struct net *net, struct socket *sock, int kern)
drivers/net/ppp/pppoe.c
515
struct sock *sk;
drivers/net/ppp/pppoe.c
521
sock_init_data(sock, sk);
drivers/net/ppp/pppoe.c
524
sock->state = SS_UNCONNECTED;
drivers/net/ppp/pppoe.c
525
sock->ops = &pppoe_ops;
drivers/net/ppp/pppoe.c
540
static int pppoe_release(struct socket *sock)
drivers/net/ppp/pppoe.c
542
struct sock *sk = sock->sk;
drivers/net/ppp/pppoe.c
579
sock->sk = NULL;
drivers/net/ppp/pppoe.c
587
static int pppoe_connect(struct socket *sock, struct sockaddr_unsized *uservaddr,
drivers/net/ppp/pppoe.c
590
struct sock *sk = sock->sk;
drivers/net/ppp/pppoe.c
698
static int pppoe_getname(struct socket *sock, struct sockaddr *uaddr,
drivers/net/ppp/pppoe.c
706
memcpy(&sp.sa_addr.pppoe, &pppox_sk(sock->sk)->pppoe_pa,
drivers/net/ppp/pppoe.c
714
static int pppoe_ioctl(struct socket *sock, unsigned int cmd,
drivers/net/ppp/pppoe.c
717
struct sock *sk = sock->sk;
drivers/net/ppp/pppoe.c
768
static int pppoe_sendmsg(struct socket *sock, struct msghdr *m,
drivers/net/ppp/pppoe.c
772
struct sock *sk = sock->sk;
drivers/net/ppp/pppoe.c
845
static int __pppoe_xmit(struct sock *sk, struct sk_buff *skb)
drivers/net/ppp/pppoe.c
88
static int __pppoe_xmit(struct sock *sk, struct sk_buff *skb);
drivers/net/ppp/pppoe.c
904
struct sock *sk = chan->private;
drivers/net/ppp/pppoe.c
912
struct sock *sk = chan->private;
drivers/net/ppp/pppoe.c
936
static int pppoe_recvmsg(struct socket *sock, struct msghdr *m,
drivers/net/ppp/pppoe.c
939
struct sock *sk = sock->sk;
drivers/net/ppp/pppox.c
103
int pppox_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
drivers/net/ppp/pppox.c
105
return pppox_ioctl(sock, cmd, (unsigned long)compat_ptr(arg));
drivers/net/ppp/pppox.c
111
static int pppox_create(struct net *net, struct socket *sock, int protocol,
drivers/net/ppp/pppox.c
126
rc = pppox_protos[protocol]->create(net, sock, kern);
drivers/net/ppp/pppox.c
53
void pppox_unbind_sock(struct sock *sk)
drivers/net/ppp/pppox.c
67
int pppox_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
drivers/net/ppp/pppox.c
69
struct sock *sk = sock->sk;
drivers/net/ppp/pppox.c
93
pppox_protos[sk->sk_protocol]->ioctl(sock, cmd, arg) : -ENOTTY;
drivers/net/ppp/pptp.c
112
sock->proto.pptp.src_addr = *sa;
drivers/net/ppp/pptp.c
114
rcu_assign_pointer(callid_sock[sa->call_id], sock);
drivers/net/ppp/pptp.c
124
static void del_chan(struct pppox_sock *sock)
drivers/net/ppp/pptp.c
127
clear_bit(sock->proto.pptp.src_addr.call_id, callid_bitmap);
drivers/net/ppp/pptp.c
128
RCU_INIT_POINTER(callid_sock[sock->proto.pptp.src_addr.call_id], NULL);
drivers/net/ppp/pptp.c
135
const struct sock *sk = &po->sk;
drivers/net/ppp/pptp.c
151
struct sock *sk = chan->private;
drivers/net/ppp/pptp.c
273
static int pptp_rcv_core(struct sock *sk, struct sk_buff *skb)
drivers/net/ppp/pptp.c
385
static int pptp_bind(struct socket *sock, struct sockaddr_unsized *uservaddr,
drivers/net/ppp/pptp.c
388
struct sock *sk = sock->sk;
drivers/net/ppp/pptp.c
418
static int pptp_connect(struct socket *sock, struct sockaddr_unsized *uservaddr,
drivers/net/ppp/pptp.c
421
struct sock *sk = sock->sk;
drivers/net/ppp/pptp.c
487
static int pptp_getname(struct socket *sock, struct sockaddr *uaddr,
drivers/net/ppp/pptp.c
497
sp.sa_addr.pptp = pppox_sk(sock->sk)->proto.pptp.src_addr;
drivers/net/ppp/pptp.c
504
static int pptp_release(struct socket *sock)
drivers/net/ppp/pptp.c
506
struct sock *sk = sock->sk;
drivers/net/ppp/pptp.c
528
sock->sk = NULL;
drivers/net/ppp/pptp.c
536
static void pptp_sock_destruct(struct sock *sk)
drivers/net/ppp/pptp.c
546
static int pptp_create(struct net *net, struct socket *sock, int kern)
drivers/net/ppp/pptp.c
549
struct sock *sk;
drivers/net/ppp/pptp.c
55
struct pppox_sock *sock;
drivers/net/ppp/pptp.c
557
sock_init_data(sock, sk);
drivers/net/ppp/pptp.c
559
sock->state = SS_UNCONNECTED;
drivers/net/ppp/pptp.c
560
sock->ops = &pptp_ops;
drivers/net/ppp/pptp.c
583
struct sock *sk = chan->private;
drivers/net/ppp/pptp.c
59
sock = rcu_dereference(callid_sock[call_id]);
drivers/net/ppp/pptp.c
60
if (sock) {
drivers/net/ppp/pptp.c
61
opt = &sock->proto.pptp;
drivers/net/ppp/pptp.c
63
sock = NULL;
drivers/net/ppp/pptp.c
65
sock_hold(&sock->sk);
drivers/net/ppp/pptp.c
69
return sock;
drivers/net/ppp/pptp.c
74
struct pppox_sock *sock;
drivers/net/ppp/pptp.c
81
sock = rcu_dereference(callid_sock[i]);
drivers/net/ppp/pptp.c
82
if (!sock)
drivers/net/ppp/pptp.c
84
opt = &sock->proto.pptp;
drivers/net/ppp/pptp.c
94
static int add_chan(struct pppox_sock *sock,
drivers/net/tap.c
1112
static int tap_sendmsg(struct socket *sock, struct msghdr *m,
drivers/net/tap.c
1115
struct tap_queue *q = container_of(sock, struct tap_queue, sock);
drivers/net/tap.c
1133
static int tap_recvmsg(struct socket *sock, struct msghdr *m,
drivers/net/tap.c
1136
struct tap_queue *q = container_of(sock, struct tap_queue, sock);
drivers/net/tap.c
1151
static int tap_peek_len(struct socket *sock)
drivers/net/tap.c
1153
struct tap_queue *q = container_of(sock, struct tap_queue,
drivers/net/tap.c
1154
sock);
drivers/net/tap.c
1177
return &q->sock;
drivers/net/tap.c
426
static void tap_sock_write_space(struct sock *sk)
drivers/net/tap.c
439
static void tap_sock_destruct(struct sock *sk)
drivers/net/tap.c
468
init_waitqueue_head(&q->sock.wq.wait);
drivers/net/tap.c
469
q->sock.type = SOCK_RAW;
drivers/net/tap.c
470
q->sock.state = SS_CONNECTED;
drivers/net/tap.c
471
q->sock.file = file;
drivers/net/tap.c
472
q->sock.ops = &tap_socket_ops;
drivers/net/tap.c
473
sock_init_data_uid(&q->sock, &q->sk, current_fsuid());
drivers/net/tap.c
529
poll_wait(file, &q->sock.wq.wait, wait);
drivers/net/tap.c
535
(!test_and_set_bit(SOCKWQ_ASYNC_NOSPACE, &q->sock.flags) &&
drivers/net/tap.c
543
static inline struct sk_buff *tap_alloc_skb(struct sock *sk, size_t prepad,
drivers/net/tun.c
131
struct sock sk;
drivers/net/tun.c
1350
struct sock *sk = tfile->socket.sk;
drivers/net/tun.c
1362
struct sock *sk;
drivers/net/tun.c
1453
struct sock *sk = tfile->socket.sk;
drivers/net/tun.c
2353
static void tun_sock_write_space(struct sock *sk)
drivers/net/tun.c
2515
static int tun_sendmsg(struct socket *sock, struct msghdr *m, size_t total_len)
drivers/net/tun.c
2518
struct tun_file *tfile = container_of(sock, struct tun_file, socket);
drivers/net/tun.c
2570
static int tun_recvmsg(struct socket *sock, struct msghdr *m, size_t total_len,
drivers/net/tun.c
2573
struct tun_file *tfile = container_of(sock, struct tun_file, socket);
drivers/net/tun.c
2588
ret = sock_recv_errqueue(sock->sk, m, total_len,
drivers/net/tun.c
2622
static int tun_peek_len(struct socket *sock)
drivers/net/tun.c
2624
struct tun_file *tfile = container_of(sock, struct tun_file, socket);
drivers/net/vrf.c
1126
static int vrf_rcv_finish(struct net *net, struct sock *sk, struct sk_buff *skb)
drivers/net/vrf.c
395
static int vrf_ip6_local_out(struct net *net, struct sock *sk,
drivers/net/vrf.c
475
static int vrf_ip_local_out(struct net *net, struct sock *sk,
drivers/net/vrf.c
601
static int vrf_finish_output6(struct net *net, struct sock *sk,
drivers/net/vrf.c
635
static int vrf_output6(struct net *net, struct sock *sk, struct sk_buff *skb)
drivers/net/vrf.c
662
static int vrf_output6_direct_finish(struct net *net, struct sock *sk,
drivers/net/vrf.c
670
static int vrf_output6_direct(struct net *net, struct sock *sk,
drivers/net/vrf.c
687
static int vrf_ip6_out_direct_finish(struct net *net, struct sock *sk,
drivers/net/vrf.c
700
struct sock *sk,
drivers/net/vrf.c
721
struct sock *sk,
drivers/net/vrf.c
779
struct sock *sk,
drivers/net/vrf.c
796
static int vrf_finish_output(struct net *net, struct sock *sk, struct sk_buff *skb)
drivers/net/vrf.c
834
static int vrf_output(struct net *net, struct sock *sk, struct sk_buff *skb)
drivers/net/vrf.c
868
static int vrf_output_direct_finish(struct net *net, struct sock *sk,
drivers/net/vrf.c
876
static int vrf_output_direct(struct net *net, struct sock *sk,
drivers/net/vrf.c
893
static int vrf_ip_out_direct_finish(struct net *net, struct sock *sk,
drivers/net/vrf.c
906
struct sock *sk,
drivers/net/vrf.c
927
struct sock *sk,
drivers/net/vrf.c
946
struct sock *sk,
drivers/net/vxlan/vxlan_core.c
1646
static int vxlan_rcv(struct sock *sk, struct sk_buff *skb)
drivers/net/vxlan/vxlan_core.c
1815
static int vxlan_err_lookup(struct sock *sk, struct sk_buff *skb)
drivers/net/vxlan/vxlan_core.c
3553
static struct sock *vxlan_create_sock(struct net *net, bool ipv6,
drivers/net/vxlan/vxlan_core.c
3556
struct socket *sock;
drivers/net/vxlan/vxlan_core.c
3575
err = udp_sock_create(net, &udp_conf, &sock);
drivers/net/vxlan/vxlan_core.c
3579
udp_allow_gso(sock->sk);
drivers/net/vxlan/vxlan_core.c
3580
return sock->sk;
drivers/net/vxlan/vxlan_core.c
3590
struct sock *sk;
drivers/net/vxlan/vxlan_core.c
655
static struct vxlanhdr *vxlan_gro_prepare_receive(struct sock *sk,
drivers/net/vxlan/vxlan_core.c
709
static struct sk_buff *vxlan_gro_receive(struct sock *sk,
drivers/net/vxlan/vxlan_core.c
725
static struct sk_buff *vxlan_gpe_gro_receive(struct sock *sk,
drivers/net/vxlan/vxlan_core.c
751
static int vxlan_gro_complete(struct sock *sk, struct sk_buff *skb, int nhoff)
drivers/net/vxlan/vxlan_core.c
759
static int vxlan_gpe_gro_complete(struct sock *sk, struct sk_buff *skb, int nhoff)
drivers/net/vxlan/vxlan_multicast.c
23
struct sock *sk;
drivers/net/vxlan/vxlan_multicast.c
56
struct sock *sk;
drivers/net/wireguard/device.h
43
struct sock __rcu *sock4, *sock6;
drivers/net/wireguard/socket.c
111
struct sock *sock;
drivers/net/wireguard/socket.c
119
sock = rcu_dereference_bh(wg->sock6);
drivers/net/wireguard/socket.c
121
if (unlikely(!sock)) {
drivers/net/wireguard/socket.c
126
fl.fl6_sport = inet_sk(sock)->inet_sport;
drivers/net/wireguard/socket.c
132
security_sk_classify_flow(sock, flowi6_to_flowi_common(&fl));
drivers/net/wireguard/socket.c
134
!ipv6_chk_addr(sock_net(sock), &fl.saddr, NULL, 0))) {
drivers/net/wireguard/socket.c
139
dst = ip6_dst_lookup_flow(sock_net(sock), sock, &fl, NULL);
drivers/net/wireguard/socket.c
151
udp_tunnel6_xmit_skb(dst, sock, skb, skb->dev, &fl.saddr, &fl.daddr, ds,
drivers/net/wireguard/socket.c
31
struct sock *sock;
drivers/net/wireguard/socket.c
315
static int wg_receive(struct sock *sk, struct sk_buff *skb)
drivers/net/wireguard/socket.c
333
static void sock_free(struct sock *sock)
drivers/net/wireguard/socket.c
335
if (unlikely(!sock))
drivers/net/wireguard/socket.c
337
sk_clear_memalloc(sock);
drivers/net/wireguard/socket.c
338
udp_tunnel_sock_release(sock);
drivers/net/wireguard/socket.c
341
static void set_sock_opts(struct socket *sock)
drivers/net/wireguard/socket.c
343
sock->sk->sk_allocation = GFP_ATOMIC;
drivers/net/wireguard/socket.c
344
sock->sk->sk_sndbuf = INT_MAX;
drivers/net/wireguard/socket.c
345
sk_set_memalloc(sock->sk);
drivers/net/wireguard/socket.c
39
sock = rcu_dereference_bh(wg->sock4);
drivers/net/wireguard/socket.c
41
if (unlikely(!sock)) {
drivers/net/wireguard/socket.c
418
void wg_socket_reinit(struct wg_device *wg, struct sock *new4,
drivers/net/wireguard/socket.c
419
struct sock *new6)
drivers/net/wireguard/socket.c
421
struct sock *old4, *old6;
drivers/net/wireguard/socket.c
46
fl.fl4_sport = inet_sk(sock)->inet_sport;
drivers/net/wireguard/socket.c
52
security_sk_classify_flow(sock, flowi4_to_flowi_common(&fl));
drivers/net/wireguard/socket.c
53
if (unlikely(!inet_confirm_addr(sock_net(sock), NULL, 0,
drivers/net/wireguard/socket.c
61
rt = ip_route_output_flow(sock_net(sock), &fl, sock);
drivers/net/wireguard/socket.c
72
rt = ip_route_output_flow(sock_net(sock), &fl, sock);
drivers/net/wireguard/socket.c
85
udp_tunnel_xmit_skb(rt, sock, skb, fl.saddr, fl.daddr, ds,
drivers/net/wireguard/socket.h
15
void wg_socket_reinit(struct wg_device *wg, struct sock *new4,
drivers/net/wireguard/socket.h
16
struct sock *new6);
drivers/net/wireless/ath/ath10k/qmi.c
996
ret = kernel_connect(qmi_hdl->sock, (struct sockaddr_unsized *)&qmi->sq,
drivers/net/wireless/ath/ath11k/qmi.c
3179
ret = kernel_connect(qmi_hdl->sock, (struct sockaddr_unsized *)sq,
drivers/net/wireless/ath/ath12k/qmi.c
3922
ret = kernel_connect(qmi_hdl->sock, (struct sockaddr_unsized *)sq,
drivers/nvme/host/tcp.c
105
struct socket *sock;
drivers/nvme/host/tcp.c
1056
static void nvme_tcp_data_ready(struct sock *sk)
drivers/nvme/host/tcp.c
1070
static void nvme_tcp_write_space(struct sock *sk)
drivers/nvme/host/tcp.c
1086
static void nvme_tcp_state_change(struct sock *sk)
drivers/nvme/host/tcp.c
1160
ret = sock_sendmsg(queue->sock, &msg);
drivers/nvme/host/tcp.c
1216
ret = sock_sendmsg(queue->sock, &msg);
drivers/nvme/host/tcp.c
1254
ret = sock_sendmsg(queue->sock, &msg);
drivers/nvme/host/tcp.c
1287
ret = kernel_sendmsg(queue->sock, &msg, &iov, 1, iov.iov_len);
drivers/nvme/host/tcp.c
1355
struct socket *sock = queue->sock;
drivers/nvme/host/tcp.c
1356
struct sock *sk = sock->sk;
drivers/nvme/host/tcp.c
1364
consumed = sock->ops->read_sock(sk, &rd_desc, nvme_tcp_recv_skb);
drivers/nvme/host/tcp.c
1396
sk_stream_is_writeable(queue->sock->sk))
drivers/nvme/host/tcp.c
142
void (*state_change)(struct sock *);
drivers/nvme/host/tcp.c
143
void (*data_ready)(struct sock *);
drivers/nvme/host/tcp.c
144
void (*write_space)(struct sock *);
drivers/nvme/host/tcp.c
1457
__fput_sync(queue->sock->file);
drivers/nvme/host/tcp.c
1458
queue->sock = NULL;
drivers/nvme/host/tcp.c
1507
ret = kernel_sendmsg(queue->sock, &msg, &iov, 1, iov.iov_len);
drivers/nvme/host/tcp.c
1522
ret = kernel_recvmsg(queue->sock, &msg, &iov, 1,
drivers/nvme/host/tcp.c
1533
ctype = tls_get_record_type(queue->sock->sk,
drivers/nvme/host/tcp.c
1737
args.ta_sock = queue->sock;
drivers/nvme/host/tcp.c
1762
tls_handshake_cancel(queue->sock->sk);
drivers/nvme/host/tcp.c
1800
IPPROTO_TCP, &queue->sock);
drivers/nvme/host/tcp.c
1807
sock_file = sock_alloc_file(queue->sock, O_CLOEXEC, NULL);
drivers/nvme/host/tcp.c
1813
sk_net_refcnt_upgrade(queue->sock->sk);
drivers/nvme/host/tcp.c
1822
tcp_sock_set_syncnt(queue->sock->sk, 1);
drivers/nvme/host/tcp.c
1825
tcp_sock_set_nodelay(queue->sock->sk);
drivers/nvme/host/tcp.c
1832
sock_no_linger(queue->sock->sk);
drivers/nvme/host/tcp.c
1835
sock_set_priority(queue->sock->sk, so_priority);
drivers/nvme/host/tcp.c
1839
ip_sock_set_tos(queue->sock->sk, nctrl->opts->tos);
drivers/nvme/host/tcp.c
1842
queue->sock->sk->sk_rcvtimeo = 10 * HZ;
drivers/nvme/host/tcp.c
1844
queue->sock->sk->sk_allocation = GFP_ATOMIC;
drivers/nvme/host/tcp.c
1845
queue->sock->sk->sk_use_task_frag = false;
drivers/nvme/host/tcp.c
1852
sk_set_memalloc(queue->sock->sk);
drivers/nvme/host/tcp.c
1855
ret = kernel_bind(queue->sock, (struct sockaddr_unsized *)&ctrl->src_addr,
drivers/nvme/host/tcp.c
186
struct sock *sk = queue->sock->sk;
drivers/nvme/host/tcp.c
1869
ret = sock_setsockopt(queue->sock, SOL_SOCKET, SO_BINDTODEVICE,
drivers/nvme/host/tcp.c
1893
ret = kernel_connect(queue->sock, (struct sockaddr_unsized *)&ctrl->addr,
drivers/nvme/host/tcp.c
1917
kernel_sock_shutdown(queue->sock, SHUT_RDWR);
drivers/nvme/host/tcp.c
1922
__fput_sync(queue->sock->file);
drivers/nvme/host/tcp.c
1923
queue->sock = NULL;
drivers/nvme/host/tcp.c
1936
struct socket *sock = queue->sock;
drivers/nvme/host/tcp.c
1938
write_lock_bh(&sock->sk->sk_callback_lock);
drivers/nvme/host/tcp.c
1939
sock->sk->sk_user_data = NULL;
drivers/nvme/host/tcp.c
1940
sock->sk->sk_data_ready = queue->data_ready;
drivers/nvme/host/tcp.c
1941
sock->sk->sk_state_change = queue->state_change;
drivers/nvme/host/tcp.c
1942
sock->sk->sk_write_space = queue->write_space;
drivers/nvme/host/tcp.c
1943
write_unlock_bh(&sock->sk->sk_callback_lock);
drivers/nvme/host/tcp.c
1948
kernel_sock_shutdown(queue->sock, SHUT_RDWR);
drivers/nvme/host/tcp.c
1980
!sk_wmem_alloc_get(queue->sock->sk))
drivers/nvme/host/tcp.c
1999
write_lock_bh(&queue->sock->sk->sk_callback_lock);
drivers/nvme/host/tcp.c
2000
queue->sock->sk->sk_user_data = queue;
drivers/nvme/host/tcp.c
2001
queue->state_change = queue->sock->sk->sk_state_change;
drivers/nvme/host/tcp.c
2002
queue->data_ready = queue->sock->sk->sk_data_ready;
drivers/nvme/host/tcp.c
2003
queue->write_space = queue->sock->sk->sk_write_space;
drivers/nvme/host/tcp.c
2004
queue->sock->sk->sk_data_ready = nvme_tcp_data_ready;
drivers/nvme/host/tcp.c
2005
queue->sock->sk->sk_state_change = nvme_tcp_state_change;
drivers/nvme/host/tcp.c
2006
queue->sock->sk->sk_write_space = nvme_tcp_write_space;
drivers/nvme/host/tcp.c
2008
queue->sock->sk->sk_ll_usec = 1;
drivers/nvme/host/tcp.c
2010
write_unlock_bh(&queue->sock->sk->sk_callback_lock);
drivers/nvme/host/tcp.c
2818
struct sock *sk = queue->sock->sk;
drivers/nvme/host/tcp.c
2845
ret = kernel_getsockname(queue->sock, (struct sockaddr *)&src_addr);
drivers/nvme/target/tcp.c
1160
ctype = tls_get_record_type(queue->sock->sk, cmsg);
drivers/nvme/target/tcp.c
1167
tls_alert_recv(queue->sock->sk, msg, &level, &description);
drivers/nvme/target/tcp.c
1203
len = kernel_recvmsg(queue->sock, &msg, &iov, 1,
drivers/nvme/target/tcp.c
1262
len = sock_recvmsg(cmd->queue->sock, &cmd->recv_msg,
drivers/nvme/target/tcp.c
1304
len = kernel_recvmsg(queue->sock, &msg, &iov, 1,
drivers/nvme/target/tcp.c
1409
tls_handshake_cancel(queue->sock->sk);
drivers/nvme/target/tcp.c
149
struct socket *sock;
drivers/nvme/target/tcp.c
1563
struct socket *sock = queue->sock;
drivers/nvme/target/tcp.c
1568
write_lock_bh(&sock->sk->sk_callback_lock);
drivers/nvme/target/tcp.c
1569
sock->sk->sk_data_ready = queue->data_ready;
drivers/nvme/target/tcp.c
1570
sock->sk->sk_state_change = queue->state_change;
drivers/nvme/target/tcp.c
1571
sock->sk->sk_write_space = queue->write_space;
drivers/nvme/target/tcp.c
1572
sock->sk->sk_user_data = NULL;
drivers/nvme/target/tcp.c
1573
write_unlock_bh(&sock->sk->sk_callback_lock);
drivers/nvme/target/tcp.c
1624
fput(queue->sock->file);
drivers/nvme/target/tcp.c
1631
static void nvmet_tcp_data_ready(struct sock *sk)
drivers/nvme/target/tcp.c
1649
static void nvmet_tcp_write_space(struct sock *sk)
drivers/nvme/target/tcp.c
1671
static void nvmet_tcp_state_change(struct sock *sk)
drivers/nvme/target/tcp.c
1701
struct socket *sock = queue->sock;
drivers/nvme/target/tcp.c
1702
struct inet_sock *inet = inet_sk(sock->sk);
drivers/nvme/target/tcp.c
1705
ret = kernel_getsockname(sock,
drivers/nvme/target/tcp.c
1710
ret = kernel_getpeername(sock,
drivers/nvme/target/tcp.c
1720
sock_no_linger(sock->sk);
drivers/nvme/target/tcp.c
1723
sock_set_priority(sock->sk, so_priority);
drivers/nvme/target/tcp.c
1727
ip_sock_set_tos(sock->sk, inet->rcv_tos);
drivers/nvme/target/tcp.c
1730
write_lock_bh(&sock->sk->sk_callback_lock);
drivers/nvme/target/tcp.c
1731
if (sock->sk->sk_state != TCP_ESTABLISHED) {
drivers/nvme/target/tcp.c
1738
sock->sk->sk_user_data = queue;
drivers/nvme/target/tcp.c
1739
queue->data_ready = sock->sk->sk_data_ready;
drivers/nvme/target/tcp.c
1740
sock->sk->sk_data_ready = nvmet_tcp_data_ready;
drivers/nvme/target/tcp.c
1741
queue->state_change = sock->sk->sk_state_change;
drivers/nvme/target/tcp.c
1742
sock->sk->sk_state_change = nvmet_tcp_state_change;
drivers/nvme/target/tcp.c
1743
queue->write_space = sock->sk->sk_write_space;
drivers/nvme/target/tcp.c
1744
sock->sk->sk_write_space = nvmet_tcp_write_space;
drivers/nvme/target/tcp.c
1749
write_unlock_bh(&sock->sk->sk_callback_lock);
drivers/nvme/target/tcp.c
1773
len = kernel_recvmsg(queue->sock, &msg, &iov, 1,
drivers/nvme/target/tcp.c
1865
if (!tls_handshake_cancel(queue->sock->sk))
drivers/nvme/target/tcp.c
1891
args.ta_sock = queue->sock;
drivers/nvme/target/tcp.c
1927
queue->sock = newsock;
drivers/nvme/target/tcp.c
1940
sock_file = sock_alloc_file(queue->sock, O_CLOEXEC, NULL);
drivers/nvme/target/tcp.c
196
void (*data_ready)(struct sock *);
drivers/nvme/target/tcp.c
197
void (*state_change)(struct sock *);
drivers/nvme/target/tcp.c
1971
struct sock *sk = queue->sock->sk;
drivers/nvme/target/tcp.c
198
void (*write_space)(struct sock *);
drivers/nvme/target/tcp.c
2011
fput(queue->sock->file);
drivers/nvme/target/tcp.c
202
struct socket *sock;
drivers/nvme/target/tcp.c
2028
ret = kernel_accept(port->sock, &newsock, O_NONBLOCK);
drivers/nvme/target/tcp.c
2038
static void nvmet_tcp_listen_data_ready(struct sock *sk)
drivers/nvme/target/tcp.c
206
void (*data_ready)(struct sock *);
drivers/nvme/target/tcp.c
2092
IPPROTO_TCP, &port->sock);
drivers/nvme/target/tcp.c
2098
port->sock->sk->sk_user_data = port;
drivers/nvme/target/tcp.c
2099
port->data_ready = port->sock->sk->sk_data_ready;
drivers/nvme/target/tcp.c
2100
port->sock->sk->sk_data_ready = nvmet_tcp_listen_data_ready;
drivers/nvme/target/tcp.c
2101
sock_set_reuseaddr(port->sock->sk);
drivers/nvme/target/tcp.c
2102
tcp_sock_set_nodelay(port->sock->sk);
drivers/nvme/target/tcp.c
2104
sock_set_priority(port->sock->sk, so_priority);
drivers/nvme/target/tcp.c
2106
ret = kernel_bind(port->sock, (struct sockaddr_unsized *)&port->addr,
drivers/nvme/target/tcp.c
2113
ret = kernel_listen(port->sock, NVMET_TCP_BACKLOG);
drivers/nvme/target/tcp.c
2126
sock_release(port->sock);
drivers/nvme/target/tcp.c
2139
kernel_sock_shutdown(queue->sock, SHUT_RDWR);
drivers/nvme/target/tcp.c
2147
write_lock_bh(&port->sock->sk->sk_callback_lock);
drivers/nvme/target/tcp.c
2148
port->sock->sk->sk_data_ready = port->data_ready;
drivers/nvme/target/tcp.c
2149
port->sock->sk->sk_user_data = NULL;
drivers/nvme/target/tcp.c
2150
write_unlock_bh(&port->sock->sk->sk_callback_lock);
drivers/nvme/target/tcp.c
2158
sock_release(port->sock);
drivers/nvme/target/tcp.c
2169
kernel_sock_shutdown(queue->sock, SHUT_RDWR);
drivers/nvme/target/tcp.c
2272
kernel_sock_shutdown(queue->sock, SHUT_RDWR);
drivers/nvme/target/tcp.c
282
return queue->sock->sk->sk_incoming_cpu;
drivers/nvme/target/tcp.c
412
kernel_sock_shutdown(queue->sock, SHUT_RDWR);
drivers/nvme/target/tcp.c
640
ret = sock_sendmsg(cmd->queue->sock, &msg);
drivers/nvme/target/tcp.c
675
ret = sock_sendmsg(cmd->queue->sock, &msg);
drivers/nvme/target/tcp.c
724
ret = sock_sendmsg(cmd->queue->sock, &msg);
drivers/nvme/target/tcp.c
754
ret = sock_sendmsg(cmd->queue->sock, &msg);
drivers/nvme/target/tcp.c
783
ret = kernel_sendmsg(queue->sock, &msg, &iov, 1, iov.iov_len);
drivers/nvme/target/tcp.c
922
ret = kernel_sendmsg(queue->sock, &msg, &iov, 1, iov.iov_len);
drivers/pcmcia/bcm63xx_pcmcia.c
249
static int bcm63xx_pcmcia_get_status(struct pcmcia_socket *sock,
drivers/pcmcia/bcm63xx_pcmcia.c
254
skt = sock->driver_data;
drivers/pcmcia/bcm63xx_pcmcia.c
290
static int bcm63xx_pcmcia_set_io_map(struct pcmcia_socket *sock,
drivers/pcmcia/bcm63xx_pcmcia.c
298
static int bcm63xx_pcmcia_set_mem_map(struct pcmcia_socket *sock,
drivers/pcmcia/bcm63xx_pcmcia.c
304
skt = sock->driver_data;
drivers/pcmcia/bcm63xx_pcmcia.c
329
struct pcmcia_socket *sock;
drivers/pcmcia/bcm63xx_pcmcia.c
340
sock = &skt->socket;
drivers/pcmcia/bcm63xx_pcmcia.c
341
sock->driver_data = skt;
drivers/pcmcia/bcm63xx_pcmcia.c
378
sock->resource_ops = &pccard_static_ops;
drivers/pcmcia/bcm63xx_pcmcia.c
379
sock->ops = &bcm63xx_pcmcia_operations;
drivers/pcmcia/bcm63xx_pcmcia.c
380
sock->owner = THIS_MODULE;
drivers/pcmcia/bcm63xx_pcmcia.c
381
sock->dev.parent = &pdev->dev;
drivers/pcmcia/bcm63xx_pcmcia.c
382
sock->features = SS_CAP_STATIC_MAP | SS_CAP_PCCARD;
drivers/pcmcia/bcm63xx_pcmcia.c
383
sock->io_offset = (unsigned long)skt->io_base;
drivers/pcmcia/bcm63xx_pcmcia.c
384
sock->pci_irq = irq;
drivers/pcmcia/bcm63xx_pcmcia.c
387
sock->cb_dev = bcm63xx_cb_dev;
drivers/pcmcia/bcm63xx_pcmcia.c
389
sock->features |= SS_CAP_CARDBUS;
drivers/pcmcia/bcm63xx_pcmcia.c
393
sock->map_size = resource_size(skt->common_res);
drivers/pcmcia/bcm63xx_pcmcia.c
418
ret = pcmcia_register_socket(sock);
drivers/pcmcia/bcm63xx_pcmcia.c
52
static int bcm63xx_pcmcia_sock_init(struct pcmcia_socket *sock)
drivers/pcmcia/bcm63xx_pcmcia.c
63
static int bcm63xx_pcmcia_suspend(struct pcmcia_socket *sock)
drivers/pcmcia/bcm63xx_pcmcia.c
75
static int bcm63xx_pcmcia_set_socket(struct pcmcia_socket *sock,
drivers/pcmcia/bcm63xx_pcmcia.c
82
skt = sock->driver_data;
drivers/pcmcia/cs.c
119
socket->sock = 0;
drivers/pcmcia/cs.c
126
if (tmp->sock == i)
drivers/pcmcia/cs.c
131
socket->sock = i - 1;
drivers/pcmcia/cs.c
147
dev_set_name(&socket->dev, "pcmcia_socket%u", socket->sock);
drivers/pcmcia/cs.c
412
skt->sock);
drivers/pcmcia/cs.c
542
dev_notice(&skt->dev, "pccard: card ejected from slot %d\n", skt->sock);
drivers/pcmcia/cs.c
802
if (add_uevent_var(env, "SOCKET_NO=%u", s->sock))
drivers/pcmcia/db1xxx_ss.c
107
static inline void set_stschg(struct db1x_pcmcia_sock *sock, int en)
drivers/pcmcia/db1xxx_ss.c
109
if (sock->stschg_irq != -1) {
drivers/pcmcia/db1xxx_ss.c
111
enable_irq(sock->stschg_irq);
drivers/pcmcia/db1xxx_ss.c
113
disable_irq(sock->stschg_irq);
drivers/pcmcia/db1xxx_ss.c
119
struct db1x_pcmcia_sock *sock = data;
drivers/pcmcia/db1xxx_ss.c
121
pcmcia_parse_events(&sock->socket, SS_DETECT);
drivers/pcmcia/db1xxx_ss.c
128
struct db1x_pcmcia_sock *sock = data;
drivers/pcmcia/db1xxx_ss.c
130
pcmcia_parse_events(&sock->socket, SS_STSCHG);
drivers/pcmcia/db1xxx_ss.c
148
struct db1x_pcmcia_sock *sock = data;
drivers/pcmcia/db1xxx_ss.c
152
if (irq == sock->insert_irq)
drivers/pcmcia/db1xxx_ss.c
153
enable_irq(sock->eject_irq);
drivers/pcmcia/db1xxx_ss.c
155
enable_irq(sock->insert_irq);
drivers/pcmcia/db1xxx_ss.c
157
pcmcia_parse_events(&sock->socket, SS_DETECT);
drivers/pcmcia/db1xxx_ss.c
162
static int db1x_pcmcia_setup_irqs(struct db1x_pcmcia_sock *sock)
drivers/pcmcia/db1xxx_ss.c
166
if (sock->stschg_irq != -1) {
drivers/pcmcia/db1xxx_ss.c
167
ret = request_irq(sock->stschg_irq, db1000_pcmcia_stschgirq,
drivers/pcmcia/db1xxx_ss.c
168
0, "pcmcia_stschg", sock);
drivers/pcmcia/db1xxx_ss.c
179
if ((sock->board_type == BOARD_TYPE_DB1200) ||
drivers/pcmcia/db1xxx_ss.c
180
(sock->board_type == BOARD_TYPE_DB1300)) {
drivers/pcmcia/db1xxx_ss.c
181
ret = request_threaded_irq(sock->insert_irq, db1200_pcmcia_cdirq,
drivers/pcmcia/db1xxx_ss.c
182
db1200_pcmcia_cdirq_fn, 0, "pcmcia_insert", sock);
drivers/pcmcia/db1xxx_ss.c
186
ret = request_threaded_irq(sock->eject_irq, db1200_pcmcia_cdirq,
drivers/pcmcia/db1xxx_ss.c
187
db1200_pcmcia_cdirq_fn, 0, "pcmcia_eject", sock);
drivers/pcmcia/db1xxx_ss.c
189
free_irq(sock->insert_irq, sock);
drivers/pcmcia/db1xxx_ss.c
194
if (db1x_card_inserted(sock))
drivers/pcmcia/db1xxx_ss.c
195
enable_irq(sock->eject_irq);
drivers/pcmcia/db1xxx_ss.c
197
enable_irq(sock->insert_irq);
drivers/pcmcia/db1xxx_ss.c
202
irq_set_irq_type(sock->insert_irq, IRQ_TYPE_EDGE_BOTH);
drivers/pcmcia/db1xxx_ss.c
203
ret = request_irq(sock->insert_irq, db1000_pcmcia_cdirq,
drivers/pcmcia/db1xxx_ss.c
204
0, "pcmcia_carddetect", sock);
drivers/pcmcia/db1xxx_ss.c
213
if (sock->stschg_irq != -1)
drivers/pcmcia/db1xxx_ss.c
214
free_irq(sock->stschg_irq, sock);
drivers/pcmcia/db1xxx_ss.c
219
static void db1x_pcmcia_free_irqs(struct db1x_pcmcia_sock *sock)
drivers/pcmcia/db1xxx_ss.c
221
if (sock->stschg_irq != -1)
drivers/pcmcia/db1xxx_ss.c
222
free_irq(sock->stschg_irq, sock);
drivers/pcmcia/db1xxx_ss.c
224
free_irq(sock->insert_irq, sock);
drivers/pcmcia/db1xxx_ss.c
225
if (sock->eject_irq != -1)
drivers/pcmcia/db1xxx_ss.c
226
free_irq(sock->eject_irq, sock);
drivers/pcmcia/db1xxx_ss.c
245
struct db1x_pcmcia_sock *sock = to_db1x_socket(skt);
drivers/pcmcia/db1xxx_ss.c
251
cr_clr = (0xf << (sock->nr * 8)); /* clear voltage settings */
drivers/pcmcia/db1xxx_ss.c
266
sock->nr, state->Vcc);
drivers/pcmcia/db1xxx_ss.c
281
sock->nr, state->Vpp);
drivers/pcmcia/db1xxx_ss.c
288
sock->nr, state->Vcc, state->Vpp);
drivers/pcmcia/db1xxx_ss.c
294
if (sock->board_type != BOARD_TYPE_DB1300)
drivers/pcmcia/db1xxx_ss.c
295
cr_set |= ((v << 2) | p) << (sock->nr * 8);
drivers/pcmcia/db1xxx_ss.c
297
changed = state->flags ^ sock->old_flags;
drivers/pcmcia/db1xxx_ss.c
301
set_stschg(sock, 0);
drivers/pcmcia/db1xxx_ss.c
303
cr_clr |= (1 << (7 + (sock->nr * 8)));
drivers/pcmcia/db1xxx_ss.c
304
cr_clr |= (1 << (4 + (sock->nr * 8)));
drivers/pcmcia/db1xxx_ss.c
307
cr_set |= 1 << (7 + (sock->nr * 8));
drivers/pcmcia/db1xxx_ss.c
308
cr_set |= 1 << (4 + (sock->nr * 8));
drivers/pcmcia/db1xxx_ss.c
315
sock->old_flags = state->flags;
drivers/pcmcia/db1xxx_ss.c
320
set_stschg(sock, 1);
drivers/pcmcia/db1xxx_ss.c
341
struct db1x_pcmcia_sock *sock = to_db1x_socket(skt);
drivers/pcmcia/db1xxx_ss.c
345
status = db1x_card_inserted(sock) ? SS_DETECT : 0;
drivers/pcmcia/db1xxx_ss.c
351
if (sock->board_type == BOARD_TYPE_PB1100)
drivers/pcmcia/db1xxx_ss.c
355
switch (GET_VS(sr, sock->nr)) {
drivers/pcmcia/db1xxx_ss.c
367
status |= GET_VCC(cr, sock->nr) ? SS_POWERON : 0;
drivers/pcmcia/db1xxx_ss.c
370
if ((sock->board_type == BOARD_TYPE_DB1300) && (status & SS_DETECT))
drivers/pcmcia/db1xxx_ss.c
374
status |= (GET_RESET(cr, sock->nr)) ? SS_READY : SS_RESET;
drivers/pcmcia/db1xxx_ss.c
394
struct db1x_pcmcia_sock *sock = to_db1x_socket(skt);
drivers/pcmcia/db1xxx_ss.c
396
map->start = (u32)sock->virt_io;
drivers/pcmcia/db1xxx_ss.c
405
struct db1x_pcmcia_sock *sock = to_db1x_socket(skt);
drivers/pcmcia/db1xxx_ss.c
408
map->static_start = sock->phys_attr + map->card_start;
drivers/pcmcia/db1xxx_ss.c
410
map->static_start = sock->phys_mem + map->card_start;
drivers/pcmcia/db1xxx_ss.c
426
struct db1x_pcmcia_sock *sock;
drivers/pcmcia/db1xxx_ss.c
430
sock = kzalloc_obj(struct db1x_pcmcia_sock);
drivers/pcmcia/db1xxx_ss.c
431
if (!sock)
drivers/pcmcia/db1xxx_ss.c
434
sock->nr = pdev->id;
drivers/pcmcia/db1xxx_ss.c
441
sock->board_type = BOARD_TYPE_PB1100;
drivers/pcmcia/db1xxx_ss.c
444
sock->board_type = BOARD_TYPE_DEFAULT;
drivers/pcmcia/db1xxx_ss.c
447
sock->board_type = BOARD_TYPE_DB1200;
drivers/pcmcia/db1xxx_ss.c
450
sock->board_type = BOARD_TYPE_DB1300;
drivers/pcmcia/db1xxx_ss.c
470
sock->card_irq = r ? r->start : 0;
drivers/pcmcia/db1xxx_ss.c
476
sock->insert_irq = r ? r->start : -1;
drivers/pcmcia/db1xxx_ss.c
477
if (sock->board_type == BOARD_TYPE_DEFAULT) {
drivers/pcmcia/db1xxx_ss.c
478
sock->insert_gpio = r ? r->start : -1;
drivers/pcmcia/db1xxx_ss.c
479
sock->insert_irq = r ? gpio_to_irq(r->start) : -1;
drivers/pcmcia/db1xxx_ss.c
484
sock->stschg_irq = r ? r->start : -1;
drivers/pcmcia/db1xxx_ss.c
488
sock->eject_irq = r ? r->start : -1;
drivers/pcmcia/db1xxx_ss.c
496
sock->nr);
drivers/pcmcia/db1xxx_ss.c
499
sock->phys_attr = r->start;
drivers/pcmcia/db1xxx_ss.c
505
sock->nr);
drivers/pcmcia/db1xxx_ss.c
508
sock->phys_mem = r->start;
drivers/pcmcia/db1xxx_ss.c
514
sock->nr);
drivers/pcmcia/db1xxx_ss.c
517
sock->phys_io = r->start;
drivers/pcmcia/db1xxx_ss.c
527
sock->virt_io = (void *)(ioremap(sock->phys_io, IO_MAP_SIZE) -
drivers/pcmcia/db1xxx_ss.c
530
if (!sock->virt_io) {
drivers/pcmcia/db1xxx_ss.c
532
sock->nr);
drivers/pcmcia/db1xxx_ss.c
537
sock->socket.ops = &db1x_pcmcia_operations;
drivers/pcmcia/db1xxx_ss.c
538
sock->socket.owner = THIS_MODULE;
drivers/pcmcia/db1xxx_ss.c
539
sock->socket.pci_irq = sock->card_irq;
drivers/pcmcia/db1xxx_ss.c
540
sock->socket.features = SS_CAP_STATIC_MAP | SS_CAP_PCCARD;
drivers/pcmcia/db1xxx_ss.c
541
sock->socket.map_size = MEM_MAP_SIZE;
drivers/pcmcia/db1xxx_ss.c
542
sock->socket.io_offset = (unsigned long)sock->virt_io;
drivers/pcmcia/db1xxx_ss.c
543
sock->socket.dev.parent = &pdev->dev;
drivers/pcmcia/db1xxx_ss.c
544
sock->socket.resource_ops = &pccard_static_ops;
drivers/pcmcia/db1xxx_ss.c
546
platform_set_drvdata(pdev, sock);
drivers/pcmcia/db1xxx_ss.c
548
ret = db1x_pcmcia_setup_irqs(sock);
drivers/pcmcia/db1xxx_ss.c
551
sock->nr);
drivers/pcmcia/db1xxx_ss.c
555
set_stschg(sock, 0);
drivers/pcmcia/db1xxx_ss.c
557
ret = pcmcia_register_socket(&sock->socket);
drivers/pcmcia/db1xxx_ss.c
559
printk(KERN_ERR "pcmcia%d failed to register\n", sock->nr);
drivers/pcmcia/db1xxx_ss.c
565
"%d %d %d\n", sock->nr, sock->phys_io, sock->virt_io,
drivers/pcmcia/db1xxx_ss.c
566
sock->phys_attr, sock->phys_mem, sock->card_irq,
drivers/pcmcia/db1xxx_ss.c
567
sock->insert_irq, sock->stschg_irq, sock->eject_irq);
drivers/pcmcia/db1xxx_ss.c
572
db1x_pcmcia_free_irqs(sock);
drivers/pcmcia/db1xxx_ss.c
574
iounmap((void *)(sock->virt_io + (u32)mips_io_port_base));
drivers/pcmcia/db1xxx_ss.c
576
kfree(sock);
drivers/pcmcia/db1xxx_ss.c
582
struct db1x_pcmcia_sock *sock = platform_get_drvdata(pdev);
drivers/pcmcia/db1xxx_ss.c
584
db1x_pcmcia_free_irqs(sock);
drivers/pcmcia/db1xxx_ss.c
585
pcmcia_unregister_socket(&sock->socket);
drivers/pcmcia/db1xxx_ss.c
586
iounmap((void *)(sock->virt_io + (u32)mips_io_port_base));
drivers/pcmcia/db1xxx_ss.c
587
kfree(sock);
drivers/pcmcia/db1xxx_ss.c
71
static int db1300_card_inserted(struct db1x_pcmcia_sock *sock)
drivers/pcmcia/db1xxx_ss.c
77
static int db1200_card_inserted(struct db1x_pcmcia_sock *sock)
drivers/pcmcia/db1xxx_ss.c
82
return sigstat & 1 << (8 + 2 * sock->nr);
drivers/pcmcia/db1xxx_ss.c
86
static int db1000_card_inserted(struct db1x_pcmcia_sock *sock)
drivers/pcmcia/db1xxx_ss.c
88
return !gpio_get_value(sock->insert_gpio);
drivers/pcmcia/db1xxx_ss.c
91
static int db1x_card_inserted(struct db1x_pcmcia_sock *sock)
drivers/pcmcia/db1xxx_ss.c
93
switch (sock->board_type) {
drivers/pcmcia/db1xxx_ss.c
95
return db1200_card_inserted(sock);
drivers/pcmcia/db1xxx_ss.c
97
return db1300_card_inserted(sock);
drivers/pcmcia/db1xxx_ss.c
99
return db1000_card_inserted(sock);
drivers/pcmcia/ds.c
1240
dev_dbg(&skt->dev, "resuming socket %d\n", skt->sock);
drivers/pcmcia/ds.c
1247
dev_dbg(&skt->dev, "suspending socket %d\n", skt->sock);
drivers/pcmcia/ds.c
327
"pcmcia_card_remove(%d) %s\n", s->sock,
drivers/pcmcia/ds.c
489
pr_debug("adding device to %d, function %d\n", s->sock, function);
drivers/pcmcia/ds.c
573
dev_set_name(&p_dev->dev, "%d.%d", p_dev->socket->sock, p_dev->device_no);
drivers/pcmcia/ds.c
952
if (add_uevent_var(env, "SOCKET_NO=%u", p_dev->socket->sock))
drivers/pcmcia/electra_cf.c
110
static int electra_cf_set_socket(struct pcmcia_socket *sock,
drivers/pcmcia/electra_cf.c
117
cf = container_of(sock, struct electra_cf_socket, socket);
drivers/pcmcia/omap_cf.c
125
omap_cf_set_socket(struct pcmcia_socket *sock, struct socket_state_t *s)
drivers/pcmcia/pd6729.c
246
static int pd6729_get_status(struct pcmcia_socket *sock, u_int *value)
drivers/pcmcia/pd6729.c
249
= container_of(sock, struct pd6729_socket, socket);
drivers/pcmcia/pd6729.c
295
static int pd6729_set_socket(struct pcmcia_socket *sock, socket_state_t *state)
drivers/pcmcia/pd6729.c
298
= container_of(sock, struct pd6729_socket, socket);
drivers/pcmcia/pd6729.c
323
dev_dbg(&sock->dev, "Auto power\n");
drivers/pcmcia/pd6729.c
327
dev_dbg(&sock->dev, "Power Enabled\n");
drivers/pcmcia/pd6729.c
335
dev_dbg(&sock->dev,
drivers/pcmcia/pd6729.c
342
dev_dbg(&sock->dev,
drivers/pcmcia/pd6729.c
349
dev_dbg(&sock->dev,
drivers/pcmcia/pd6729.c
357
dev_dbg(&sock->dev, "not setting Vpp on socket %i\n",
drivers/pcmcia/pd6729.c
362
dev_dbg(&sock->dev, "setting Vpp to Vcc for socket %i\n",
drivers/pcmcia/pd6729.c
367
dev_dbg(&sock->dev, "setting Vpp to 12.0\n");
drivers/pcmcia/pd6729.c
371
dev_dbg(&sock->dev, "pd6729: pd6729_set_socket called with "
drivers/pcmcia/pd6729.c
423
static int pd6729_set_io_map(struct pcmcia_socket *sock,
drivers/pcmcia/pd6729.c
427
= container_of(sock, struct pd6729_socket, socket);
drivers/pcmcia/pd6729.c
434
dev_dbg(&sock->dev, "pd6729_set_io_map with invalid map\n");
drivers/pcmcia/pd6729.c
467
static int pd6729_set_mem_map(struct pcmcia_socket *sock,
drivers/pcmcia/pd6729.c
471
= container_of(sock, struct pd6729_socket, socket);
drivers/pcmcia/pd6729.c
477
dev_warn(&sock->dev, "invalid map requested\n");
drivers/pcmcia/pd6729.c
482
dev_warn(&sock->dev, "invalid invalid address / speed\n");
drivers/pcmcia/pd6729.c
544
static int pd6729_init(struct pcmcia_socket *sock)
drivers/pcmcia/pd6729.c
551
pd6729_set_socket(sock, &dead_socket);
drivers/pcmcia/pd6729.c
554
pd6729_set_io_map(sock, &io);
drivers/pcmcia/pd6729.c
558
pd6729_set_mem_map(sock, &mem);
drivers/pcmcia/pxa2xx_base.c
115
static uint32_t pxa2xx_pcmcia_mcmem(int sock, int speed, int clock)
drivers/pcmcia/pxa2xx_base.c
129
static int pxa2xx_pcmcia_mcio(int sock, int speed, int clock)
drivers/pcmcia/pxa2xx_base.c
144
static int pxa2xx_pcmcia_mcatt(int sock, int speed, int clock)
drivers/pcmcia/pxa2xx_base.c
163
int sock = skt->nr;
drivers/pcmcia/pxa2xx_base.c
167
pxa_smemc_set_pcmcia_timing(sock,
drivers/pcmcia/pxa2xx_base.c
168
pxa2xx_pcmcia_mcmem(sock, timing.mem, clk),
drivers/pcmcia/pxa2xx_base.c
169
pxa2xx_pcmcia_mcatt(sock, timing.attr, clk),
drivers/pcmcia/pxa2xx_base.c
170
pxa2xx_pcmcia_mcio(sock, timing.io, clk));
drivers/pcmcia/ricoh.h
134
static void ricoh_zoom_video(struct pcmcia_socket *sock, int onoff)
drivers/pcmcia/ricoh.h
137
struct yenta_socket *socket = container_of(sock, struct yenta_socket, socket);
drivers/pcmcia/sa11xx_base.h
100
MECR_GET((mecr), (sock), MECR_FAST_SHIFT, MECR_FAST_MODE_MASK)
drivers/pcmcia/sa11xx_base.h
69
#define MECR_SET(mecr, sock, shift, mask, bs) \
drivers/pcmcia/sa11xx_base.h
71
((sock)==0?MECR_SOCKET_0_SHIFT:MECR_SOCKET_1_SHIFT)))|\
drivers/pcmcia/sa11xx_base.h
72
(((bs)<<(shift))<<((sock)==0?MECR_SOCKET_0_SHIFT:MECR_SOCKET_1_SHIFT)))
drivers/pcmcia/sa11xx_base.h
74
#define MECR_GET(mecr, sock, shift, mask) \
drivers/pcmcia/sa11xx_base.h
75
((((mecr)>>(((sock)==0)?MECR_SOCKET_0_SHIFT:MECR_SOCKET_1_SHIFT))>>\
drivers/pcmcia/sa11xx_base.h
78
#define MECR_BSIO_SET(mecr, sock, bs) \
drivers/pcmcia/sa11xx_base.h
79
MECR_SET((mecr), (sock), MECR_BSIO_SHIFT, MECR_BS_MASK, (bs))
drivers/pcmcia/sa11xx_base.h
81
#define MECR_BSIO_GET(mecr, sock) \
drivers/pcmcia/sa11xx_base.h
82
MECR_GET((mecr), (sock), MECR_BSIO_SHIFT, MECR_BS_MASK)
drivers/pcmcia/sa11xx_base.h
84
#define MECR_BSA_SET(mecr, sock, bs) \
drivers/pcmcia/sa11xx_base.h
85
MECR_SET((mecr), (sock), MECR_BSA_SHIFT, MECR_BS_MASK, (bs))
drivers/pcmcia/sa11xx_base.h
87
#define MECR_BSA_GET(mecr, sock) \
drivers/pcmcia/sa11xx_base.h
88
MECR_GET((mecr), (sock), MECR_BSA_SHIFT, MECR_BS_MASK)
drivers/pcmcia/sa11xx_base.h
90
#define MECR_BSM_SET(mecr, sock, bs) \
drivers/pcmcia/sa11xx_base.h
91
MECR_SET((mecr), (sock), MECR_BSM_SHIFT, MECR_BS_MASK, (bs))
drivers/pcmcia/sa11xx_base.h
93
#define MECR_BSM_GET(mecr, sock) \
drivers/pcmcia/sa11xx_base.h
94
MECR_GET((mecr), (sock), MECR_BSM_SHIFT, MECR_BS_MASK)
drivers/pcmcia/sa11xx_base.h
96
#define MECR_FAST_SET(mecr, sock, fast) \
drivers/pcmcia/sa11xx_base.h
97
MECR_SET((mecr), (sock), MECR_FAST_SHIFT, MECR_FAST_MODE_MASK, (fast))
drivers/pcmcia/sa11xx_base.h
99
#define MECR_FAST_GET(mecr, sock) \
drivers/pcmcia/soc_common.c
394
static int soc_common_pcmcia_sock_init(struct pcmcia_socket *sock)
drivers/pcmcia/soc_common.c
396
struct soc_pcmcia_socket *skt = to_soc_pcmcia_socket(sock);
drivers/pcmcia/soc_common.c
415
static int soc_common_pcmcia_suspend(struct pcmcia_socket *sock)
drivers/pcmcia/soc_common.c
417
struct soc_pcmcia_socket *skt = to_soc_pcmcia_socket(sock);
drivers/pcmcia/soc_common.c
508
soc_common_pcmcia_get_status(struct pcmcia_socket *sock, unsigned int *status)
drivers/pcmcia/soc_common.c
510
struct soc_pcmcia_socket *skt = to_soc_pcmcia_socket(sock);
drivers/pcmcia/soc_common.c
527
struct pcmcia_socket *sock, socket_state_t *state)
drivers/pcmcia/soc_common.c
529
struct soc_pcmcia_socket *skt = to_soc_pcmcia_socket(sock);
drivers/pcmcia/soc_common.c
559
struct pcmcia_socket *sock, struct pccard_io_map *map)
drivers/pcmcia/soc_common.c
561
struct soc_pcmcia_socket *skt = to_soc_pcmcia_socket(sock);
drivers/pcmcia/soc_common.c
613
struct pcmcia_socket *sock, struct pccard_mem_map *map)
drivers/pcmcia/soc_common.c
615
struct soc_pcmcia_socket *skt = to_soc_pcmcia_socket(sock);
drivers/pcmcia/ti113x.h
204
static void ti_zoom_video(struct pcmcia_socket *sock, int onoff)
drivers/pcmcia/ti113x.h
207
struct yenta_socket *socket = container_of(sock, struct yenta_socket, socket);
drivers/pcmcia/ti113x.h
229
static void ti1250_zoom_video(struct pcmcia_socket *sock, int onoff)
drivers/pcmcia/ti113x.h
231
struct yenta_socket *socket = container_of(sock, struct yenta_socket, socket);
drivers/pcmcia/ti113x.h
235
ti_zoom_video(sock, onoff);
drivers/pcmcia/ti113x.h
744
static int ti12xx_power_hook(struct pcmcia_socket *sock, int operation)
drivers/pcmcia/ti113x.h
746
struct yenta_socket *socket = container_of(sock, struct yenta_socket, socket);
drivers/pcmcia/ti113x.h
936
static void ene_tune_bridge(struct pcmcia_socket *sock, struct pci_bus *bus)
drivers/pcmcia/ti113x.h
938
struct yenta_socket *socket = container_of(sock, struct yenta_socket, socket);
drivers/pcmcia/topic.h
110
static void topic97_zoom_video(struct pcmcia_socket *sock, int onoff)
drivers/pcmcia/topic.h
112
struct yenta_socket *socket = container_of(sock, struct yenta_socket, socket);
drivers/pcmcia/xxs1500_ss.c
110
sock->old_flags = state->flags;
drivers/pcmcia/xxs1500_ss.c
179
struct xxs1500_pcmcia_sock *sock = to_xxs_socket(skt);
drivers/pcmcia/xxs1500_ss.c
181
map->start = (u32)sock->virt_io;
drivers/pcmcia/xxs1500_ss.c
190
struct xxs1500_pcmcia_sock *sock = to_xxs_socket(skt);
drivers/pcmcia/xxs1500_ss.c
193
map->static_start = sock->phys_attr + map->card_start;
drivers/pcmcia/xxs1500_ss.c
195
map->static_start = sock->phys_mem + map->card_start;
drivers/pcmcia/xxs1500_ss.c
211
struct xxs1500_pcmcia_sock *sock;
drivers/pcmcia/xxs1500_ss.c
215
sock = kzalloc_obj(struct xxs1500_pcmcia_sock);
drivers/pcmcia/xxs1500_ss.c
216
if (!sock)
drivers/pcmcia/xxs1500_ss.c
227
sock->phys_attr = r->start;
drivers/pcmcia/xxs1500_ss.c
235
sock->phys_mem = r->start;
drivers/pcmcia/xxs1500_ss.c
243
sock->phys_io = r->start;
drivers/pcmcia/xxs1500_ss.c
254
sock->virt_io = (void *)(ioremap(sock->phys_io, IO_MAP_SIZE) -
drivers/pcmcia/xxs1500_ss.c
257
if (!sock->virt_io) {
drivers/pcmcia/xxs1500_ss.c
263
sock->socket.ops = &xxs1500_pcmcia_operations;
drivers/pcmcia/xxs1500_ss.c
264
sock->socket.owner = THIS_MODULE;
drivers/pcmcia/xxs1500_ss.c
265
sock->socket.pci_irq = gpio_to_irq(GPIO_CARDIRQ);
drivers/pcmcia/xxs1500_ss.c
266
sock->socket.features = SS_CAP_STATIC_MAP | SS_CAP_PCCARD;
drivers/pcmcia/xxs1500_ss.c
267
sock->socket.map_size = MEM_MAP_SIZE;
drivers/pcmcia/xxs1500_ss.c
268
sock->socket.io_offset = (unsigned long)sock->virt_io;
drivers/pcmcia/xxs1500_ss.c
269
sock->socket.dev.parent = &pdev->dev;
drivers/pcmcia/xxs1500_ss.c
270
sock->socket.resource_ops = &pccard_static_ops;
drivers/pcmcia/xxs1500_ss.c
272
platform_set_drvdata(pdev, sock);
drivers/pcmcia/xxs1500_ss.c
279
ret = request_irq(irq, cdirq, 0, "pcmcia_carddetect", sock);
drivers/pcmcia/xxs1500_ss.c
285
ret = pcmcia_register_socket(&sock->socket);
drivers/pcmcia/xxs1500_ss.c
296
free_irq(gpio_to_irq(GPIO_CDA), sock);
drivers/pcmcia/xxs1500_ss.c
298
iounmap((void *)(sock->virt_io + (u32)mips_io_port_base));
drivers/pcmcia/xxs1500_ss.c
300
kfree(sock);
drivers/pcmcia/xxs1500_ss.c
306
struct xxs1500_pcmcia_sock *sock = platform_get_drvdata(pdev);
drivers/pcmcia/xxs1500_ss.c
308
pcmcia_unregister_socket(&sock->socket);
drivers/pcmcia/xxs1500_ss.c
309
free_irq(gpio_to_irq(GPIO_CDA), sock);
drivers/pcmcia/xxs1500_ss.c
310
iounmap((void *)(sock->virt_io + (u32)mips_io_port_base));
drivers/pcmcia/xxs1500_ss.c
311
kfree(sock);
drivers/pcmcia/xxs1500_ss.c
71
struct xxs1500_pcmcia_sock *sock = data;
drivers/pcmcia/xxs1500_ss.c
73
pcmcia_parse_events(&sock->socket, SS_DETECT);
drivers/pcmcia/xxs1500_ss.c
81
struct xxs1500_pcmcia_sock *sock = to_xxs_socket(skt);
drivers/pcmcia/xxs1500_ss.c
97
changed = state->flags ^ sock->old_flags;
drivers/pcmcia/yenta_socket.c
213
static int yenta_get_status(struct pcmcia_socket *sock, unsigned int *value)
drivers/pcmcia/yenta_socket.c
215
struct yenta_socket *socket = container_of(sock, struct yenta_socket, socket);
drivers/pcmcia/yenta_socket.c
330
static int yenta_set_socket(struct pcmcia_socket *sock, socket_state_t *state)
drivers/pcmcia/yenta_socket.c
332
struct yenta_socket *socket = container_of(sock, struct yenta_socket, socket);
drivers/pcmcia/yenta_socket.c
391
if (sock->zoom_video)
drivers/pcmcia/yenta_socket.c
392
sock->zoom_video(sock, state->flags & SS_ZVCARD);
drivers/pcmcia/yenta_socket.c
405
static int yenta_set_io_map(struct pcmcia_socket *sock, struct pccard_io_map *io)
drivers/pcmcia/yenta_socket.c
407
struct yenta_socket *socket = container_of(sock, struct yenta_socket, socket);
drivers/pcmcia/yenta_socket.c
442
static int yenta_set_mem_map(struct pcmcia_socket *sock, struct pccard_mem_map *mem)
drivers/pcmcia/yenta_socket.c
444
struct yenta_socket *socket = container_of(sock, struct yenta_socket, socket);
drivers/pcmcia/yenta_socket.c
581
static int yenta_sock_init(struct pcmcia_socket *sock)
drivers/pcmcia/yenta_socket.c
583
struct yenta_socket *socket = container_of(sock, struct yenta_socket, socket);
drivers/pcmcia/yenta_socket.c
602
static int yenta_sock_suspend(struct pcmcia_socket *sock)
drivers/pcmcia/yenta_socket.c
604
struct yenta_socket *socket = container_of(sock, struct yenta_socket, socket);
drivers/pcmcia/yenta_socket.c
802
struct yenta_socket *sock = pci_get_drvdata(dev);
drivers/pcmcia/yenta_socket.c
808
pcmcia_unregister_socket(&sock->socket);
drivers/pcmcia/yenta_socket.c
811
cb_writel(sock, CB_SOCKET_MASK, 0x0);
drivers/pcmcia/yenta_socket.c
812
exca_writeb(sock, I365_CSCINT, 0);
drivers/pcmcia/yenta_socket.c
814
if (sock->cb_irq)
drivers/pcmcia/yenta_socket.c
815
free_irq(sock->cb_irq, sock);
drivers/pcmcia/yenta_socket.c
817
timer_shutdown_sync(&sock->poll_timer);
drivers/pcmcia/yenta_socket.c
819
iounmap(sock->base);
drivers/pcmcia/yenta_socket.c
820
yenta_free_resources(sock);
drivers/pcmcia/yenta_socket.c
825
kfree(sock);
drivers/platform/x86/amd/hsmp/acpi.c
107
static int hsmp_read_acpi_dsd(struct hsmp_socket *sock)
drivers/platform/x86/amd/hsmp/acpi.c
116
status = acpi_evaluate_object_typed(ACPI_HANDLE(sock->dev), "_DSD", NULL,
drivers/platform/x86/amd/hsmp/acpi.c
119
dev_err(sock->dev, "Failed to read mailbox reg offsets from DSD table, err: %s\n",
drivers/platform/x86/amd/hsmp/acpi.c
142
dev_err(sock->dev, "Invalid hsmp _DSD table data\n");
drivers/platform/x86/amd/hsmp/acpi.c
164
sock->mbinfo.msg_id_off = msgint->integer.value;
drivers/platform/x86/amd/hsmp/acpi.c
167
sock->mbinfo.msg_resp_off = msgint->integer.value;
drivers/platform/x86/amd/hsmp/acpi.c
170
sock->mbinfo.msg_arg_off = msgint->integer.value;
drivers/platform/x86/amd/hsmp/acpi.c
177
if (!sock->mbinfo.msg_id_off || !sock->mbinfo.msg_resp_off ||
drivers/platform/x86/amd/hsmp/acpi.c
178
!sock->mbinfo.msg_arg_off)
drivers/platform/x86/amd/hsmp/acpi.c
186
static int hsmp_read_acpi_crs(struct hsmp_socket *sock)
drivers/platform/x86/amd/hsmp/acpi.c
190
status = acpi_walk_resources(ACPI_HANDLE(sock->dev), METHOD_NAME__CRS,
drivers/platform/x86/amd/hsmp/acpi.c
191
hsmp_resource, sock);
drivers/platform/x86/amd/hsmp/acpi.c
193
dev_err(sock->dev, "Failed to look up MP1 base address from CRS method, err: %s\n",
drivers/platform/x86/amd/hsmp/acpi.c
197
if (!sock->mbinfo.base_addr || !sock->mbinfo.size)
drivers/platform/x86/amd/hsmp/acpi.c
201
sock->virt_base_addr = devm_ioremap_uc(sock->dev, sock->mbinfo.base_addr,
drivers/platform/x86/amd/hsmp/acpi.c
202
sock->mbinfo.size);
drivers/platform/x86/amd/hsmp/acpi.c
203
if (!sock->virt_base_addr) {
drivers/platform/x86/amd/hsmp/acpi.c
204
dev_err(sock->dev, "Failed to ioremap MP1 base address\n");
drivers/platform/x86/amd/hsmp/acpi.c
214
struct hsmp_socket *sock = &hsmp_pdev->sock[sock_ind];
drivers/platform/x86/amd/hsmp/acpi.c
217
sock->sock_ind = sock_ind;
drivers/platform/x86/amd/hsmp/acpi.c
218
sock->dev = dev;
drivers/platform/x86/amd/hsmp/acpi.c
219
sock->amd_hsmp_rdwr = amd_hsmp_acpi_rdwr;
drivers/platform/x86/amd/hsmp/acpi.c
221
sema_init(&sock->hsmp_sem, 1);
drivers/platform/x86/amd/hsmp/acpi.c
223
dev_set_drvdata(dev, sock);
drivers/platform/x86/amd/hsmp/acpi.c
226
ret = hsmp_read_acpi_crs(sock);
drivers/platform/x86/amd/hsmp/acpi.c
231
return hsmp_read_acpi_dsd(sock);
drivers/platform/x86/amd/hsmp/acpi.c
239
struct hsmp_socket *sock = dev_get_drvdata(dev);
drivers/platform/x86/amd/hsmp/acpi.c
241
return hsmp_metric_tbl_read(sock, buf, count);
drivers/platform/x86/amd/hsmp/acpi.c
265
struct hsmp_socket *sock = dev_get_drvdata(dev);
drivers/platform/x86/amd/hsmp/acpi.c
269
ret = hsmp_msg_get_nargs(sock->sock_ind, hattr->msg_id, &data, 1);
drivers/platform/x86/amd/hsmp/acpi.c
291
struct hsmp_socket *sock = dev_get_drvdata(dev);
drivers/platform/x86/amd/hsmp/acpi.c
295
ret = hsmp_msg_get_nargs(sock->sock_ind, hattr->msg_id, &data, 1);
drivers/platform/x86/amd/hsmp/acpi.c
306
struct hsmp_socket *sock = dev_get_drvdata(dev);
drivers/platform/x86/amd/hsmp/acpi.c
310
ret = hsmp_msg_get_nargs(sock->sock_ind, hattr->msg_id, &data, 1);
drivers/platform/x86/amd/hsmp/acpi.c
321
struct hsmp_socket *sock = dev_get_drvdata(dev);
drivers/platform/x86/amd/hsmp/acpi.c
325
ret = hsmp_msg_get_nargs(sock->sock_ind, hattr->msg_id, &data, 1);
drivers/platform/x86/amd/hsmp/acpi.c
336
struct hsmp_socket *sock = dev_get_drvdata(dev);
drivers/platform/x86/amd/hsmp/acpi.c
340
ret = hsmp_msg_get_nargs(sock->sock_ind, hattr->msg_id, &data, 1);
drivers/platform/x86/amd/hsmp/acpi.c
354
struct hsmp_socket *sock = dev_get_drvdata(dev);
drivers/platform/x86/amd/hsmp/acpi.c
358
ret = hsmp_msg_get_nargs(sock->sock_ind, hattr->msg_id, data, 2);
drivers/platform/x86/amd/hsmp/acpi.c
369
struct hsmp_socket *sock = dev_get_drvdata(dev);
drivers/platform/x86/amd/hsmp/acpi.c
373
ret = hsmp_msg_get_nargs(sock->sock_ind, hattr->msg_id, data, 2);
drivers/platform/x86/amd/hsmp/acpi.c
384
struct hsmp_socket *sock = dev_get_drvdata(dev);
drivers/platform/x86/amd/hsmp/acpi.c
388
ret = hsmp_msg_get_nargs(sock->sock_ind, hattr->msg_id, &data, 1);
drivers/platform/x86/amd/hsmp/acpi.c
399
struct hsmp_socket *sock = dev_get_drvdata(dev);
drivers/platform/x86/amd/hsmp/acpi.c
403
ret = hsmp_msg_get_nargs(sock->sock_ind, hattr->msg_id, &data, 1);
drivers/platform/x86/amd/hsmp/acpi.c
414
struct hsmp_socket *sock = dev_get_drvdata(dev);
drivers/platform/x86/amd/hsmp/acpi.c
418
ret = hsmp_msg_get_nargs(sock->sock_ind, hattr->msg_id, &data, 1);
drivers/platform/x86/amd/hsmp/acpi.c
440
struct hsmp_socket *sock = dev_get_drvdata(dev);
drivers/platform/x86/amd/hsmp/acpi.c
447
ret = hsmp_msg_get_nargs(sock->sock_ind, hattr->msg_id, &data, 1);
drivers/platform/x86/amd/hsmp/acpi.c
46
static int amd_hsmp_acpi_rdwr(struct hsmp_socket *sock, u32 offset,
drivers/platform/x86/amd/hsmp/acpi.c
50
iowrite32(*value, sock->virt_base_addr + offset);
drivers/platform/x86/amd/hsmp/acpi.c
504
dev_set_drvdata(dev, &hsmp_pdev->sock[sock_ind]);
drivers/platform/x86/amd/hsmp/acpi.c
52
*value = ioread32(sock->virt_base_addr + offset);
drivers/platform/x86/amd/hsmp/acpi.c
594
hsmp_pdev->sock = devm_kcalloc(&pdev->dev, hsmp_pdev->num_sockets,
drivers/platform/x86/amd/hsmp/acpi.c
595
sizeof(*hsmp_pdev->sock),
drivers/platform/x86/amd/hsmp/acpi.c
597
if (!hsmp_pdev->sock)
drivers/platform/x86/amd/hsmp/acpi.c
86
struct hsmp_socket *sock = data;
drivers/platform/x86/amd/hsmp/acpi.c
95
sock->mbinfo.base_addr = r.start;
drivers/platform/x86/amd/hsmp/acpi.c
96
sock->mbinfo.size = resource_size(&r);
drivers/platform/x86/amd/hsmp/hsmp.c
101
ret = sock->amd_hsmp_rdwr(sock, mbinfo->msg_resp_off, &mbox_status, HSMP_RD);
drivers/platform/x86/amd/hsmp/hsmp.c
103
dev_err(sock->dev, "Error %d reading mailbox status\n", ret);
drivers/platform/x86/amd/hsmp/hsmp.c
120
dev_err(sock->dev, "Message ID 0x%X failure : SMU timeout (status = 0x%X)\n",
drivers/platform/x86/amd/hsmp/hsmp.c
124
dev_err(sock->dev, "Message ID 0x%X failure : Invalid message (status = 0x%X)\n",
drivers/platform/x86/amd/hsmp/hsmp.c
128
dev_err(sock->dev, "Message ID 0x%X failure : Invalid arguments (status = 0x%X)\n",
drivers/platform/x86/amd/hsmp/hsmp.c
132
dev_err(sock->dev, "Message ID 0x%X failure : Prerequisite not satisfied (status = 0x%X)\n",
drivers/platform/x86/amd/hsmp/hsmp.c
136
dev_err(sock->dev, "Message ID 0x%X failure : SMU BUSY (status = 0x%X)\n",
drivers/platform/x86/amd/hsmp/hsmp.c
140
dev_err(sock->dev, "Message ID 0x%X unknown failure (status = 0x%X)\n",
drivers/platform/x86/amd/hsmp/hsmp.c
154
ret = sock->amd_hsmp_rdwr(sock, mbinfo->msg_arg_off + (index << 2),
drivers/platform/x86/amd/hsmp/hsmp.c
157
dev_err(sock->dev, "Error %d reading response %u for message ID:%u\n",
drivers/platform/x86/amd/hsmp/hsmp.c
204
struct hsmp_socket *sock;
drivers/platform/x86/amd/hsmp/hsmp.c
214
if (!hsmp_pdev.sock || msg->sock_ind >= hsmp_pdev.num_sockets)
drivers/platform/x86/amd/hsmp/hsmp.c
224
sock = &hsmp_pdev.sock[sock_ind];
drivers/platform/x86/amd/hsmp/hsmp.c
226
ret = down_interruptible(&sock->hsmp_sem);
drivers/platform/x86/amd/hsmp/hsmp.c
230
ret = __hsmp_send_message(sock, msg);
drivers/platform/x86/amd/hsmp/hsmp.c
232
up(&sock->hsmp_sem);
drivers/platform/x86/amd/hsmp/hsmp.c
282
dev_err(hsmp_pdev.sock[sock_ind].dev,
drivers/platform/x86/amd/hsmp/hsmp.c
373
ssize_t hsmp_metric_tbl_read(struct hsmp_socket *sock, char *buf, size_t size)
drivers/platform/x86/amd/hsmp/hsmp.c
378
if (!sock || !buf)
drivers/platform/x86/amd/hsmp/hsmp.c
381
if (!sock->metric_tbl_addr) {
drivers/platform/x86/amd/hsmp/hsmp.c
382
dev_err(sock->dev, "Metrics table address not available\n");
drivers/platform/x86/amd/hsmp/hsmp.c
388
dev_err(sock->dev, "Wrong buffer size\n");
drivers/platform/x86/amd/hsmp/hsmp.c
393
msg.sock_ind = sock->sock_ind;
drivers/platform/x86/amd/hsmp/hsmp.c
398
memcpy_fromio(buf, sock->metric_tbl_addr, size);
drivers/platform/x86/amd/hsmp/hsmp.c
406
struct hsmp_socket *sock = &hsmp_pdev.sock[sock_ind];
drivers/platform/x86/amd/hsmp/hsmp.c
425
dev_err(sock->dev, "Invalid DRAM address for metric table\n");
drivers/platform/x86/amd/hsmp/hsmp.c
428
sock->metric_tbl_addr = devm_ioremap(sock->dev, dram_addr,
drivers/platform/x86/amd/hsmp/hsmp.c
430
if (!sock->metric_tbl_addr) {
drivers/platform/x86/amd/hsmp/hsmp.c
431
dev_err(sock->dev, "Failed to ioremap metric table addr\n");
drivers/platform/x86/amd/hsmp/hsmp.c
53
static int __hsmp_send_message(struct hsmp_socket *sock, struct hsmp_message *msg)
drivers/platform/x86/amd/hsmp/hsmp.c
61
mbinfo = &sock->mbinfo;
drivers/platform/x86/amd/hsmp/hsmp.c
65
ret = sock->amd_hsmp_rdwr(sock, mbinfo->msg_resp_off, &mbox_status, HSMP_WR);
drivers/platform/x86/amd/hsmp/hsmp.c
67
dev_err(sock->dev, "Error %d clearing mailbox status register\n", ret);
drivers/platform/x86/amd/hsmp/hsmp.c
74
ret = sock->amd_hsmp_rdwr(sock, mbinfo->msg_arg_off + (index << 2),
drivers/platform/x86/amd/hsmp/hsmp.c
77
dev_err(sock->dev, "Error %d writing message argument %d\n", ret, index);
drivers/platform/x86/amd/hsmp/hsmp.c
84
ret = sock->amd_hsmp_rdwr(sock, mbinfo->msg_id_off, &msg->msg_id, HSMP_WR);
drivers/platform/x86/amd/hsmp/hsmp.c
86
dev_err(sock->dev, "Error %d writing message ID %u\n", ret, msg->msg_id);
drivers/platform/x86/amd/hsmp/hsmp.h
49
int (*amd_hsmp_rdwr)(struct hsmp_socket *sock, u32 off, u32 *val, bool rw);
drivers/platform/x86/amd/hsmp/hsmp.h
54
struct hsmp_socket *sock;
drivers/platform/x86/amd/hsmp/hsmp.h
66
ssize_t hsmp_metric_tbl_read(struct hsmp_socket *sock, char *buf, size_t size);
drivers/platform/x86/amd/hsmp/plat.c
114
static const struct attribute_group sock##index##_attr_grp = { \
drivers/platform/x86/amd/hsmp/plat.c
151
struct hsmp_socket *sock;
drivers/platform/x86/amd/hsmp/plat.c
155
sock = &hsmp_pdev->sock[i];
drivers/platform/x86/amd/hsmp/plat.c
156
sock->sock_ind = i;
drivers/platform/x86/amd/hsmp/plat.c
157
sock->dev = dev;
drivers/platform/x86/amd/hsmp/plat.c
158
sock->mbinfo.base_addr = SMN_HSMP_BASE;
drivers/platform/x86/amd/hsmp/plat.c
159
sock->amd_hsmp_rdwr = amd_hsmp_pci_rdwr;
drivers/platform/x86/amd/hsmp/plat.c
166
sock->mbinfo.msg_id_off = SMN_HSMP_MSG_ID_F1A_M0H;
drivers/platform/x86/amd/hsmp/plat.c
168
sock->mbinfo.msg_id_off = SMN_HSMP_MSG_ID;
drivers/platform/x86/amd/hsmp/plat.c
170
sock->mbinfo.msg_resp_off = SMN_HSMP_MSG_RESP;
drivers/platform/x86/amd/hsmp/plat.c
171
sock->mbinfo.msg_arg_off = SMN_HSMP_MSG_DATA;
drivers/platform/x86/amd/hsmp/plat.c
172
sema_init(&sock->hsmp_sem, 1);
drivers/platform/x86/amd/hsmp/plat.c
208
hsmp_pdev->sock = devm_kcalloc(&pdev->dev, hsmp_pdev->num_sockets,
drivers/platform/x86/amd/hsmp/plat.c
209
sizeof(*hsmp_pdev->sock),
drivers/platform/x86/amd/hsmp/plat.c
211
if (!hsmp_pdev->sock)
drivers/platform/x86/amd/hsmp/plat.c
43
static int amd_hsmp_pci_rdwr(struct hsmp_socket *sock, u32 offset,
drivers/platform/x86/amd/hsmp/plat.c
46
return amd_smn_hsmp_rdwr(sock->sock_ind, sock->mbinfo.base_addr + offset, value, write);
drivers/platform/x86/amd/hsmp/plat.c
53
struct hsmp_socket *sock;
drivers/platform/x86/amd/hsmp/plat.c
60
sock = &hsmp_pdev->sock[sock_ind];
drivers/platform/x86/amd/hsmp/plat.c
62
return hsmp_metric_tbl_read(sock, buf, count);
drivers/s390/net/qeth_core_main.c
1334
struct sock *sk = skb->sk;
drivers/scsi/cxgbi/cxgb3i/cxgb3i.c
563
skb->sk = (struct sock *)csk;
drivers/scsi/cxgbi/cxgb3i/cxgb3i.c
993
skb->sk = (struct sock *)csk;
drivers/scsi/cxgbi/cxgb4i/cxgb4i.c
1025
skb->sk = (struct sock *)csk;
drivers/scsi/cxgbi/cxgb4i/cxgb4i.c
1855
skb->sk = (struct sock *)csk;
drivers/scsi/iscsi_tcp.c
115
static inline int iscsi_sw_sk_state_check(struct sock *sk)
drivers/scsi/iscsi_tcp.c
133
struct sock *sk = tcp_sw_conn->sock->sk;
drivers/scsi/iscsi_tcp.c
160
struct sock *sk = tcp_sw_conn->sock->sk;
drivers/scsi/iscsi_tcp.c
167
static void iscsi_sw_tcp_data_ready(struct sock *sk)
drivers/scsi/iscsi_tcp.c
191
static void iscsi_sw_tcp_state_change(struct sock *sk)
drivers/scsi/iscsi_tcp.c
196
void (*old_state_change)(struct sock *);
drivers/scsi/iscsi_tcp.c
220
static void iscsi_sw_tcp_write_space(struct sock *sk)
drivers/scsi/iscsi_tcp.c
225
void (*old_write_space)(struct sock *);
drivers/scsi/iscsi_tcp.c
249
struct sock *sk = tcp_sw_conn->sock->sk;
drivers/scsi/iscsi_tcp.c
268
struct sock *sk = tcp_sw_conn->sock->sk;
drivers/scsi/iscsi_tcp.c
297
struct socket *sk = tcp_sw_conn->sock;
drivers/scsi/iscsi_tcp.c
410
if (!tcp_sw_conn->sock) {
drivers/scsi/iscsi_tcp.c
604
struct socket *sock = tcp_sw_conn->sock;
drivers/scsi/iscsi_tcp.c
611
if (!sock)
drivers/scsi/iscsi_tcp.c
618
kernel_sock_shutdown(sock, SHUT_RDWR);
drivers/scsi/iscsi_tcp.c
620
sock_hold(sock->sk);
drivers/scsi/iscsi_tcp.c
622
sock_put(sock->sk);
drivers/scsi/iscsi_tcp.c
627
tcp_sw_conn->sock = NULL;
drivers/scsi/iscsi_tcp.c
629
sockfd_put(sock);
drivers/scsi/iscsi_tcp.c
645
struct socket *sock = tcp_sw_conn->sock;
drivers/scsi/iscsi_tcp.c
648
if (!sock)
drivers/scsi/iscsi_tcp.c
651
sock->sk->sk_err = EIO;
drivers/scsi/iscsi_tcp.c
652
wake_up_interruptible(sk_sleep(sock->sk));
drivers/scsi/iscsi_tcp.c
671
struct sock *sk;
drivers/scsi/iscsi_tcp.c
672
struct socket *sock;
drivers/scsi/iscsi_tcp.c
676
sock = sockfd_lookup((int)transport_eph, &err);
drivers/scsi/iscsi_tcp.c
677
if (!sock) {
drivers/scsi/iscsi_tcp.c
684
if (!sk_is_tcp(sock->sk))
drivers/scsi/iscsi_tcp.c
693
tcp_sw_conn->sock = sock;
drivers/scsi/iscsi_tcp.c
697
sk = sock->sk;
drivers/scsi/iscsi_tcp.c
713
sockfd_put(sock);
drivers/scsi/iscsi_tcp.c
731
if (!tcp_sw_conn->sock) {
drivers/scsi/iscsi_tcp.c
754
struct socket *sock;
drivers/scsi/iscsi_tcp.c
777
sock = tcp_sw_conn->sock;
drivers/scsi/iscsi_tcp.c
778
if (!sock) {
drivers/scsi/iscsi_tcp.c
784
rc = kernel_getsockname(sock,
drivers/scsi/iscsi_tcp.c
787
rc = kernel_getpeername(sock,
drivers/scsi/iscsi_tcp.c
813
struct socket *sock;
drivers/scsi/iscsi_tcp.c
838
sock = tcp_sw_conn->sock;
drivers/scsi/iscsi_tcp.c
839
if (!sock)
drivers/scsi/iscsi_tcp.c
842
rc = kernel_getsockname(sock, (struct sockaddr *)&addr);
drivers/scsi/iscsi_tcp.h
30
struct socket *sock;
drivers/scsi/iscsi_tcp.h
39
void (*old_data_ready)(struct sock *);
drivers/scsi/iscsi_tcp.h
40
void (*old_state_change)(struct sock *);
drivers/scsi/iscsi_tcp.h
41
void (*old_write_space)(struct sock *);
drivers/scsi/scsi_netlink.c
19
struct sock *scsi_nl_sock = NULL;
drivers/scsi/scsi_priv.h
168
extern struct sock *scsi_nl_sock;
drivers/scsi/scsi_transport_iscsi.c
1602
static struct sock *nls;
drivers/slimbus/qcom-ngd-ctrl.c
465
rc = kernel_connect(handle->sock,
drivers/soc/qcom/qmi_interface.c
186
if (qmi->sock) {
drivers/soc/qcom/qmi_interface.c
187
ret = kernel_sendmsg(qmi->sock, &msg, &iv, 1, sizeof(pkt));
drivers/soc/qcom/qmi_interface.c
251
if (qmi->sock) {
drivers/soc/qcom/qmi_interface.c
252
ret = kernel_sendmsg(qmi->sock, &msg, &iv, 1, sizeof(pkt));
drivers/soc/qcom/qmi_interface.c
444
struct socket *sock;
drivers/soc/qcom/qmi_interface.c
446
sock = qmi_sock_create(qmi, &sq);
drivers/soc/qcom/qmi_interface.c
447
if (IS_ERR(sock))
drivers/soc/qcom/qmi_interface.c
451
sock_release(qmi->sock);
drivers/soc/qcom/qmi_interface.c
452
qmi->sock = NULL;
drivers/soc/qcom/qmi_interface.c
461
qmi->sock = sock;
drivers/soc/qcom/qmi_interface.c
537
if (qmi->sock)
drivers/soc/qcom/qmi_interface.c
538
msglen = kernel_recvmsg(qmi->sock, &msg, &iv, 1,
drivers/soc/qcom/qmi_interface.c
569
static void qmi_data_ready(struct sock *sk)
drivers/soc/qcom/qmi_interface.c
588
struct socket *sock;
drivers/soc/qcom/qmi_interface.c
592
PF_QIPCRTR, &sock);
drivers/soc/qcom/qmi_interface.c
596
ret = kernel_getsockname(sock, (struct sockaddr *)sq);
drivers/soc/qcom/qmi_interface.c
598
sock_release(sock);
drivers/soc/qcom/qmi_interface.c
602
sock->sk->sk_user_data = qmi;
drivers/soc/qcom/qmi_interface.c
603
sock->sk->sk_data_ready = qmi_data_ready;
drivers/soc/qcom/qmi_interface.c
604
sock->sk->sk_error_report = qmi_data_ready;
drivers/soc/qcom/qmi_interface.c
606
return sock;
drivers/soc/qcom/qmi_interface.c
659
qmi->sock = qmi_sock_create(qmi, &qmi->sq);
drivers/soc/qcom/qmi_interface.c
660
if (IS_ERR(qmi->sock)) {
drivers/soc/qcom/qmi_interface.c
661
if (PTR_ERR(qmi->sock) == -EAFNOSUPPORT) {
drivers/soc/qcom/qmi_interface.c
665
ret = PTR_ERR(qmi->sock);
drivers/soc/qcom/qmi_interface.c
689
struct socket *sock = qmi->sock;
drivers/soc/qcom/qmi_interface.c
692
sock->sk->sk_user_data = NULL;
drivers/soc/qcom/qmi_interface.c
698
sock_release(sock);
drivers/soc/qcom/qmi_interface.c
699
qmi->sock = NULL;
drivers/soc/qcom/qmi_interface.c
766
if (qmi->sock) {
drivers/soc/qcom/qmi_interface.c
767
ret = kernel_sendmsg(qmi->sock, &msghdr, &iv, 1, len);
drivers/target/iscsi/iscsi_target.c
2586
if ((conn->sock->sk->sk_shutdown & SEND_SHUTDOWN) ||
drivers/target/iscsi/iscsi_target.c
2587
(conn->sock->sk->sk_shutdown & RCV_SHUTDOWN)) {
drivers/target/iscsi/iscsi_target.c
2773
if ((conn->sock->sk->sk_shutdown & SEND_SHUTDOWN) ||
drivers/target/iscsi/iscsi_target.c
2774
(conn->sock->sk->sk_shutdown & RCV_SHUTDOWN)) {
drivers/target/iscsi/iscsi_target.c
4372
if (conn->sock)
drivers/target/iscsi/iscsi_target.c
4373
sock_release(conn->sock);
drivers/target/iscsi/iscsi_target.c
4611
if (l_conn->sock)
drivers/target/iscsi/iscsi_target.c
4612
l_conn->sock->ops->shutdown(l_conn->sock, RCV_SHUTDOWN);
drivers/target/iscsi/iscsi_target_login.c
1133
if (conn->sock) {
drivers/target/iscsi/iscsi_target_login.c
1134
sock_release(conn->sock);
drivers/target/iscsi/iscsi_target_login.c
1135
conn->sock = NULL;
drivers/target/iscsi/iscsi_target_login.c
777
struct socket *sock = NULL;
drivers/target/iscsi/iscsi_target_login.c
800
np->np_ip_proto, &sock);
drivers/target/iscsi/iscsi_target_login.c
805
np->np_socket = sock;
drivers/target/iscsi/iscsi_target_login.c
821
tcp_sock_set_nodelay(sock->sk);
drivers/target/iscsi/iscsi_target_login.c
822
sock_set_reuseaddr(sock->sk);
drivers/target/iscsi/iscsi_target_login.c
823
ip_sock_set_freebind(sock->sk);
drivers/target/iscsi/iscsi_target_login.c
825
ret = kernel_bind(sock, (struct sockaddr_unsized *)&np->np_sockaddr, len);
drivers/target/iscsi/iscsi_target_login.c
831
ret = kernel_listen(sock, backlog);
drivers/target/iscsi/iscsi_target_login.c
840
sock_release(sock);
drivers/target/iscsi/iscsi_target_login.c
868
struct socket *new_sock, *sock = np->np_socket;
drivers/target/iscsi/iscsi_target_login.c
873
rc = kernel_accept(sock, &new_sock, 0);
drivers/target/iscsi/iscsi_target_login.c
877
conn->sock = new_sock;
drivers/target/iscsi/iscsi_target_login.c
883
rc = conn->sock->ops->getname(conn->sock,
drivers/target/iscsi/iscsi_target_login.c
897
rc = conn->sock->ops->getname(conn->sock,
drivers/target/iscsi/iscsi_target_login.c
913
rc = conn->sock->ops->getname(conn->sock,
drivers/target/iscsi/iscsi_target_login.c
918
rc = conn->sock->ops->getname(conn->sock,
drivers/target/iscsi/iscsi_target_nego.c
1335
if (conn->sock) {
drivers/target/iscsi/iscsi_target_nego.c
1336
struct sock *sk = conn->sock->sk;
drivers/target/iscsi/iscsi_target_nego.c
383
static void iscsi_target_sk_data_ready(struct sock *sk)
drivers/target/iscsi/iscsi_target_nego.c
423
static void iscsi_target_sk_state_change(struct sock *);
drivers/target/iscsi/iscsi_target_nego.c
427
struct sock *sk;
drivers/target/iscsi/iscsi_target_nego.c
429
if (!conn->sock)
drivers/target/iscsi/iscsi_target_nego.c
432
sk = conn->sock->sk;
drivers/target/iscsi/iscsi_target_nego.c
449
struct sock *sk;
drivers/target/iscsi/iscsi_target_nego.c
451
if (!conn->sock)
drivers/target/iscsi/iscsi_target_nego.c
454
sk = conn->sock->sk;
drivers/target/iscsi/iscsi_target_nego.c
473
static bool __iscsi_target_sk_check_close(struct sock *sk)
drivers/target/iscsi/iscsi_target_nego.c
487
if (conn->sock) {
drivers/target/iscsi/iscsi_target_nego.c
488
struct sock *sk = conn->sock->sk;
drivers/target/iscsi/iscsi_target_nego.c
502
if (conn->sock) {
drivers/target/iscsi/iscsi_target_nego.c
503
struct sock *sk = conn->sock->sk;
drivers/target/iscsi/iscsi_target_nego.c
516
if (conn->sock) {
drivers/target/iscsi/iscsi_target_nego.c
517
struct sock *sk = conn->sock->sk;
drivers/target/iscsi/iscsi_target_nego.c
612
if (conn->sock) {
drivers/target/iscsi/iscsi_target_nego.c
613
struct sock *sk = conn->sock->sk;
drivers/target/iscsi/iscsi_target_nego.c
656
static void iscsi_target_sk_state_change(struct sock *sk)
drivers/target/iscsi/iscsi_target_nego.c
659
void (*orig_state_change)(struct sock *);
drivers/target/iscsi/iscsi_target_util.c
1143
tx_sent = conn->sock->ops->sendmsg(conn->sock, &msghdr,
drivers/target/iscsi/iscsi_target_util.c
1227
if (!conn || !conn->sock || !conn->conn_ops)
drivers/target/iscsi/iscsi_target_util.c
1234
rx_loop = sock_recvmsg(conn->sock, &msg, MSG_WAITALL);
drivers/target/iscsi/iscsi_target_util.c
1257
if (!conn || !conn->sock || !conn->conn_ops)
drivers/target/iscsi/iscsi_target_util.c
1270
int tx_loop = sock_sendmsg(conn->sock, &msg);
drivers/usb/usbip/usbip_common.c
302
int usbip_recv(struct socket *sock, void *buf, int size)
drivers/usb/usbip/usbip_common.c
309
if (!sock || !buf || !size)
drivers/usb/usbip/usbip_common.c
317
sock->sk->sk_allocation = GFP_NOIO;
drivers/usb/usbip/usbip_common.c
318
sock->sk->sk_use_task_frag = false;
drivers/usb/usbip/usbip_common.c
320
result = sock_recvmsg(sock, &msg, MSG_WAITALL);
drivers/usb/usbip/usbip_common.h
303
int usbip_recv(struct socket *sock, void *buf, int size);
drivers/vhost/net.c
1000
static int peek_head_len(struct vhost_net_virtqueue *rvq, struct sock *sk)
drivers/vhost/net.c
1021
static int vhost_net_rx_peek_head_len(struct vhost_net *net, struct sock *sk,
drivers/vhost/net.c
1166
struct socket *sock;
drivers/vhost/net.c
1173
sock = vhost_vq_get_backend(vq);
drivers/vhost/net.c
1174
if (!sock)
drivers/vhost/net.c
1193
sock_len = vhost_net_rx_peek_head_len(net, sock->sk,
drivers/vhost/net.c
1227
err = sock->ops->recvmsg(sock, &msg,
drivers/vhost/net.c
1241
err = sock->ops->recvmsg(sock, &msg,
drivers/vhost/net.c
1400
struct socket *sock;
drivers/vhost/net.c
1405
sock = vhost_vq_get_backend(vq);
drivers/vhost/net.c
1411
return sock;
drivers/vhost/net.c
1468
struct socket *sock = sockfd_lookup(fd, &r);
drivers/vhost/net.c
1470
if (!sock)
drivers/vhost/net.c
1474
if (sock->sk->sk_type != SOCK_RAW) {
drivers/vhost/net.c
1479
if (sock->sk->sk_family != AF_PACKET) {
drivers/vhost/net.c
1483
return sock;
drivers/vhost/net.c
1485
sockfd_put(sock);
drivers/vhost/net.c
1506
struct socket *sock;
drivers/vhost/net.c
1510
sock = tun_get_socket(file);
drivers/vhost/net.c
1511
if (!IS_ERR(sock))
drivers/vhost/net.c
1512
return sock;
drivers/vhost/net.c
1513
sock = tap_get_socket(file);
drivers/vhost/net.c
1514
if (IS_ERR(sock))
drivers/vhost/net.c
1516
return sock;
drivers/vhost/net.c
1521
struct socket *sock;
drivers/vhost/net.c
1526
sock = get_raw_socket(fd);
drivers/vhost/net.c
1527
if (!IS_ERR(sock))
drivers/vhost/net.c
1528
return sock;
drivers/vhost/net.c
1529
sock = get_tap_socket(fd);
drivers/vhost/net.c
1530
if (!IS_ERR(sock))
drivers/vhost/net.c
1531
return sock;
drivers/vhost/net.c
1537
struct socket *sock, *oldsock;
drivers/vhost/net.c
1564
sock = get_socket(fd);
drivers/vhost/net.c
1565
if (IS_ERR(sock)) {
drivers/vhost/net.c
1566
r = PTR_ERR(sock);
drivers/vhost/net.c
1572
if (sock != oldsock) {
drivers/vhost/net.c
1574
sock && vhost_sock_zcopy(sock));
drivers/vhost/net.c
1581
vhost_vq_set_backend(vq, sock);
drivers/vhost/net.c
1590
if (sock)
drivers/vhost/net.c
1591
nvq->rx_ring = get_tap_ptr_ring(sock->file);
drivers/vhost/net.c
1627
if (sock)
drivers/vhost/net.c
1628
sockfd_put(sock);
drivers/vhost/net.c
347
static bool vhost_sock_zcopy(struct socket *sock)
drivers/vhost/net.c
350
sock_flag(sock->sk, SOCK_ZEROCOPY);
drivers/vhost/net.c
353
static bool vhost_sock_xdp(struct socket *sock)
drivers/vhost/net.c
355
return sock_flag(sock->sk, SOCK_XDP);
drivers/vhost/net.c
457
struct socket *sock;
drivers/vhost/net.c
459
sock = vhost_vq_get_backend(vq);
drivers/vhost/net.c
460
if (!sock)
drivers/vhost/net.c
463
return vhost_poll_start(poll, sock->file);
drivers/vhost/net.c
482
struct socket *sock,
drivers/vhost/net.c
504
err = sock->ops->sendmsg(sock, msghdr, 0);
drivers/vhost/net.c
524
static int sock_has_rx_data(struct socket *sock)
drivers/vhost/net.c
526
if (unlikely(!sock))
drivers/vhost/net.c
529
if (sock->ops->peek_len)
drivers/vhost/net.c
530
return sock->ops->peek_len(sock);
drivers/vhost/net.c
532
return skb_queue_empty(&sock->sk->sk_receive_queue);
drivers/vhost/net.c
554
struct socket *sock;
drivers/vhost/net.c
565
sock = vhost_vq_get_backend(rvq);
drivers/vhost/net.c
579
if ((sock_has_rx_data(sock) &&
drivers/vhost/net.c
589
if (poll_rx || sock_has_rx_data(sock))
drivers/vhost/net.c
694
struct socket *sock = vhost_vq_get_backend(vq);
drivers/vhost/net.c
698
int headroom = vhost_sock_xdp(sock) ? XDP_PACKET_HEADROOM : 0;
drivers/vhost/net.c
761
static void handle_tx_copy(struct vhost_net *net, struct socket *sock)
drivers/vhost/net.c
777
bool sock_can_batch = (sock->sk->sk_sndbuf == INT_MAX);
drivers/vhost/net.c
785
vhost_tx_batch(net, nvq, sock, &msg);
drivers/vhost/net.c
798
vhost_tx_batch(net, nvq, sock, &msg);
drivers/vhost/net.c
819
vhost_tx_batch(net, nvq, sock, &msg);
drivers/vhost/net.c
830
vhost_tx_batch(net, nvq, sock, &msg);
drivers/vhost/net.c
840
err = sock->ops->sendmsg(sock, &msg, len);
drivers/vhost/net.c
861
vhost_tx_batch(net, nvq, sock, &msg);
drivers/vhost/net.c
864
static void handle_tx_zerocopy(struct vhost_net *net, struct socket *sock)
drivers/vhost/net.c
942
err = sock->ops->sendmsg(sock, &msg, len);
drivers/vhost/net.c
978
struct socket *sock;
drivers/vhost/net.c
981
sock = vhost_vq_get_backend(vq);
drivers/vhost/net.c
982
if (!sock)
drivers/vhost/net.c
991
if (vhost_sock_zcopy(sock))
drivers/vhost/net.c
992
handle_tx_zerocopy(net, sock);
drivers/vhost/net.c
994
handle_tx_copy(net, sock);
drivers/vhost/vsock.c
750
static void vhost_vsock_reset_orphans(struct sock *sk)
drivers/vhost/vsock.c
96
struct sock *sk = sk_vsock(vsk);
drivers/xen/pvcalls-back.c
117
spin_lock_irqsave(&map->sock->sk->sk_receive_queue.lock, flags);
drivers/xen/pvcalls-back.c
118
if (skb_queue_empty(&map->sock->sk->sk_receive_queue)) {
drivers/xen/pvcalls-back.c
120
spin_unlock_irqrestore(&map->sock->sk->sk_receive_queue.lock,
drivers/xen/pvcalls-back.c
124
spin_unlock_irqrestore(&map->sock->sk->sk_receive_queue.lock, flags);
drivers/xen/pvcalls-back.c
143
ret = inet_recvmsg(map->sock, &msg, wanted, MSG_DONTWAIT);
drivers/xen/pvcalls-back.c
149
spin_lock_irqsave(&map->sock->sk->sk_receive_queue.lock, flags);
drivers/xen/pvcalls-back.c
150
if (ret > 0 && !skb_queue_empty(&map->sock->sk->sk_receive_queue))
drivers/xen/pvcalls-back.c
152
spin_unlock_irqrestore(&map->sock->sk->sk_receive_queue.lock, flags);
drivers/xen/pvcalls-back.c
203
ret = inet_sendmsg(map->sock, &msg, size);
drivers/xen/pvcalls-back.c
289
static void pvcalls_sk_state_change(struct sock *sock)
drivers/xen/pvcalls-back.c
291
struct sock_mapping *map = sock->sk_user_data;
drivers/xen/pvcalls-back.c
300
static void pvcalls_sk_data_ready(struct sock *sock)
drivers/xen/pvcalls-back.c
302
struct sock_mapping *map = sock->sk_user_data;
drivers/xen/pvcalls-back.c
305
trace_sk_data_ready(sock);
drivers/xen/pvcalls-back.c
321
struct socket *sock)
drivers/xen/pvcalls-back.c
329
sock_release(sock);
drivers/xen/pvcalls-back.c
334
map->sock = sock;
drivers/xen/pvcalls-back.c
376
write_lock_bh(&map->sock->sk->sk_callback_lock);
drivers/xen/pvcalls-back.c
377
map->saved_data_ready = map->sock->sk->sk_data_ready;
drivers/xen/pvcalls-back.c
378
map->sock->sk->sk_user_data = map;
drivers/xen/pvcalls-back.c
379
map->sock->sk->sk_data_ready = pvcalls_sk_data_ready;
drivers/xen/pvcalls-back.c
380
map->sock->sk->sk_state_change = pvcalls_sk_state_change;
drivers/xen/pvcalls-back.c
381
write_unlock_bh(&map->sock->sk->sk_callback_lock);
drivers/xen/pvcalls-back.c
397
struct socket *sock;
drivers/xen/pvcalls-back.c
409
ret = sock_create(AF_INET, SOCK_STREAM, 0, &sock);
drivers/xen/pvcalls-back.c
412
ret = inet_stream_connect(sock, (struct sockaddr_unsized *)sa, req->u.connect.len, 0);
drivers/xen/pvcalls-back.c
414
sock_release(sock);
drivers/xen/pvcalls-back.c
422
sock);
drivers/xen/pvcalls-back.c
441
if (map->sock->sk != NULL) {
drivers/xen/pvcalls-back.c
442
write_lock_bh(&map->sock->sk->sk_callback_lock);
drivers/xen/pvcalls-back.c
443
map->sock->sk->sk_user_data = NULL;
drivers/xen/pvcalls-back.c
444
map->sock->sk->sk_data_ready = map->saved_data_ready;
drivers/xen/pvcalls-back.c
445
write_unlock_bh(&map->sock->sk->sk_callback_lock);
drivers/xen/pvcalls-back.c
455
sock_release(map->sock);
drivers/xen/pvcalls-back.c
465
if (mappass->sock->sk != NULL) {
drivers/xen/pvcalls-back.c
466
write_lock_bh(&mappass->sock->sk->sk_callback_lock);
drivers/xen/pvcalls-back.c
467
mappass->sock->sk->sk_user_data = NULL;
drivers/xen/pvcalls-back.c
468
mappass->sock->sk->sk_data_ready = mappass->saved_data_ready;
drivers/xen/pvcalls-back.c
469
write_unlock_bh(&mappass->sock->sk->sk_callback_lock);
drivers/xen/pvcalls-back.c
471
sock_release(mappass->sock);
drivers/xen/pvcalls-back.c
527
struct socket *sock;
drivers/xen/pvcalls-back.c
549
sock = sock_alloc();
drivers/xen/pvcalls-back.c
550
if (sock == NULL)
drivers/xen/pvcalls-back.c
552
sock->type = mappass->sock->type;
drivers/xen/pvcalls-back.c
553
sock->ops = mappass->sock->ops;
drivers/xen/pvcalls-back.c
555
ret = inet_accept(mappass->sock, sock, &arg);
drivers/xen/pvcalls-back.c
557
sock_release(sock);
drivers/xen/pvcalls-back.c
565
sock);
drivers/xen/pvcalls-back.c
58
struct socket *sock;
drivers/xen/pvcalls-back.c
590
static void pvcalls_pass_sk_data_ready(struct sock *sock)
drivers/xen/pvcalls-back.c
592
struct sockpass_mapping *mappass = sock->sk_user_data;
drivers/xen/pvcalls-back.c
598
trace_sk_data_ready(sock);
drivers/xen/pvcalls-back.c
649
ret = sock_create(AF_INET, SOCK_STREAM, 0, &map->sock);
drivers/xen/pvcalls-back.c
653
ret = inet_bind(map->sock, (struct sockaddr_unsized *)&req->u.bind.addr,
drivers/xen/pvcalls-back.c
668
write_lock_bh(&map->sock->sk->sk_callback_lock);
drivers/xen/pvcalls-back.c
669
map->saved_data_ready = map->sock->sk->sk_data_ready;
drivers/xen/pvcalls-back.c
670
map->sock->sk->sk_user_data = map;
drivers/xen/pvcalls-back.c
671
map->sock->sk->sk_data_ready = pvcalls_pass_sk_data_ready;
drivers/xen/pvcalls-back.c
672
write_unlock_bh(&map->sock->sk->sk_callback_lock);
drivers/xen/pvcalls-back.c
676
if (map && map->sock)
drivers/xen/pvcalls-back.c
677
sock_release(map->sock);
drivers/xen/pvcalls-back.c
706
ret = inet_listen(map->sock, req->u.listen.backlog);
drivers/xen/pvcalls-back.c
71
void (*saved_data_ready)(struct sock *sk);
drivers/xen/pvcalls-back.c
78
struct socket *sock;
drivers/xen/pvcalls-back.c
794
icsk = inet_csk(mappass->sock->sk);
drivers/xen/pvcalls-back.c
84
void (*saved_data_ready)(struct sock *sk);
drivers/xen/pvcalls-back.c
914
if (map == NULL || map->sock == NULL || map->sock->sk == NULL ||
drivers/xen/pvcalls-back.c
915
map->sock->sk->sk_user_data != map) {
drivers/xen/pvcalls-front.c
100
static inline struct sock_mapping *pvcalls_enter_sock(struct socket *sock)
drivers/xen/pvcalls-front.c
1059
__poll_t pvcalls_front_poll(struct file *file, struct socket *sock,
drivers/xen/pvcalls-front.c
1066
map = pvcalls_enter_sock(sock);
drivers/xen/pvcalls-front.c
1075
pvcalls_exit_sock(sock);
drivers/xen/pvcalls-front.c
108
map = (struct sock_mapping *)sock->sk->sk_send_head;
drivers/xen/pvcalls-front.c
1080
int pvcalls_front_release(struct socket *sock)
drivers/xen/pvcalls-front.c
1087
if (sock->sk == NULL)
drivers/xen/pvcalls-front.c
1090
map = pvcalls_enter_sock(sock);
drivers/xen/pvcalls-front.c
1103
pvcalls_exit_sock(sock);
drivers/xen/pvcalls-front.c
1106
sock->sk->sk_send_head = NULL;
drivers/xen/pvcalls-front.c
117
static inline void pvcalls_exit_sock(struct socket *sock)
drivers/xen/pvcalls-front.c
1182
map->sock->sk->sk_send_head = NULL;
drivers/xen/pvcalls-front.c
121
map = (struct sock_mapping *)sock->sk->sk_send_head;
drivers/xen/pvcalls-front.c
28
.obj_size = sizeof(struct sock),
drivers/xen/pvcalls-front.c
305
int pvcalls_front_socket(struct socket *sock)
drivers/xen/pvcalls-front.c
319
if (sock->type != SOCK_STREAM)
drivers/xen/pvcalls-front.c
351
sock->sk->sk_send_head = (void *)map;
drivers/xen/pvcalls-front.c
461
int pvcalls_front_connect(struct socket *sock, struct sockaddr *addr,
drivers/xen/pvcalls-front.c
470
if (addr->sa_family != AF_INET || sock->type != SOCK_STREAM)
drivers/xen/pvcalls-front.c
473
map = pvcalls_enter_sock(sock);
drivers/xen/pvcalls-front.c
480
pvcalls_exit_sock(sock);
drivers/xen/pvcalls-front.c
486
pvcalls_exit_sock(sock);
drivers/xen/pvcalls-front.c
495
pvcalls_exit_sock(sock);
drivers/xen/pvcalls-front.c
509
map->sock = sock;
drivers/xen/pvcalls-front.c
520
pvcalls_exit_sock(sock);
drivers/xen/pvcalls-front.c
528
pvcalls_exit_sock(sock);
drivers/xen/pvcalls-front.c
584
int pvcalls_front_sendmsg(struct socket *sock, struct msghdr *msg,
drivers/xen/pvcalls-front.c
595
map = pvcalls_enter_sock(sock);
drivers/xen/pvcalls-front.c
60
struct socket *sock;
drivers/xen/pvcalls-front.c
602
pvcalls_exit_sock(sock);
drivers/xen/pvcalls-front.c
624
pvcalls_exit_sock(sock);
drivers/xen/pvcalls-front.c
678
int pvcalls_front_recvmsg(struct socket *sock, struct msghdr *msg, size_t len,
drivers/xen/pvcalls-front.c
687
map = pvcalls_enter_sock(sock);
drivers/xen/pvcalls-front.c
710
pvcalls_exit_sock(sock);
drivers/xen/pvcalls-front.c
715
int pvcalls_front_bind(struct socket *sock, struct sockaddr *addr, int addr_len)
drivers/xen/pvcalls-front.c
722
if (addr->sa_family != AF_INET || sock->type != SOCK_STREAM)
drivers/xen/pvcalls-front.c
725
map = pvcalls_enter_sock(sock);
drivers/xen/pvcalls-front.c
734
pvcalls_exit_sock(sock);
drivers/xen/pvcalls-front.c
739
map->sock = sock;
drivers/xen/pvcalls-front.c
757
pvcalls_exit_sock(sock);
drivers/xen/pvcalls-front.c
767
pvcalls_exit_sock(sock);
drivers/xen/pvcalls-front.c
772
int pvcalls_front_listen(struct socket *sock, int backlog)
drivers/xen/pvcalls-front.c
779
map = pvcalls_enter_sock(sock);
drivers/xen/pvcalls-front.c
785
pvcalls_exit_sock(sock);
drivers/xen/pvcalls-front.c
793
pvcalls_exit_sock(sock);
drivers/xen/pvcalls-front.c
810
pvcalls_exit_sock(sock);
drivers/xen/pvcalls-front.c
820
pvcalls_exit_sock(sock);
drivers/xen/pvcalls-front.c
825
int pvcalls_front_accept(struct socket *sock, struct socket *newsock,
drivers/xen/pvcalls-front.c
835
map = pvcalls_enter_sock(sock);
drivers/xen/pvcalls-front.c
841
pvcalls_exit_sock(sock);
drivers/xen/pvcalls-front.c
859
pvcalls_exit_sock(sock);
drivers/xen/pvcalls-front.c
865
pvcalls_exit_sock(sock);
drivers/xen/pvcalls-front.c
874
pvcalls_exit_sock(sock);
drivers/xen/pvcalls-front.c
882
pvcalls_exit_sock(sock);
drivers/xen/pvcalls-front.c
890
pvcalls_exit_sock(sock);
drivers/xen/pvcalls-front.c
899
pvcalls_exit_sock(sock);
drivers/xen/pvcalls-front.c
910
pvcalls_exit_sock(sock);
drivers/xen/pvcalls-front.c
933
pvcalls_exit_sock(sock);
drivers/xen/pvcalls-front.c
940
pvcalls_exit_sock(sock);
drivers/xen/pvcalls-front.c
947
pvcalls_exit_sock(sock);
drivers/xen/pvcalls-front.c
954
map2->sock = newsock;
drivers/xen/pvcalls-front.c
955
newsock->sk = sk_alloc(sock_net(sock->sk), PF_INET, GFP_KERNEL, &pvcalls_proto, false);
drivers/xen/pvcalls-front.c
962
pvcalls_exit_sock(sock);
drivers/xen/pvcalls-front.c
974
pvcalls_exit_sock(sock);
drivers/xen/pvcalls-front.h
12
int pvcalls_front_listen(struct socket *sock, int backlog);
drivers/xen/pvcalls-front.h
13
int pvcalls_front_accept(struct socket *sock,
drivers/xen/pvcalls-front.h
16
int pvcalls_front_sendmsg(struct socket *sock,
drivers/xen/pvcalls-front.h
19
int pvcalls_front_recvmsg(struct socket *sock,
drivers/xen/pvcalls-front.h
24
struct socket *sock,
drivers/xen/pvcalls-front.h
26
int pvcalls_front_release(struct socket *sock);
drivers/xen/pvcalls-front.h
6
int pvcalls_front_socket(struct socket *sock);
drivers/xen/pvcalls-front.h
7
int pvcalls_front_connect(struct socket *sock, struct sockaddr *addr,
drivers/xen/pvcalls-front.h
9
int pvcalls_front_bind(struct socket *sock,
fs/afs/internal.h
1298
static inline struct afs_net *afs_sock2net(struct sock *sk)
fs/afs/rxrpc.c
22
static void afs_wake_up_call_waiter(struct sock *, struct rxrpc_call *, unsigned long);
fs/afs/rxrpc.c
23
static void afs_wake_up_async_call(struct sock *, struct rxrpc_call *, unsigned long);
fs/afs/rxrpc.c
25
static void afs_rx_new_call(struct sock *, struct rxrpc_call *, unsigned long);
fs/afs/rxrpc.c
28
static void afs_rx_notify_oob(struct sock *sk, struct sk_buff *oob);
fs/afs/rxrpc.c
332
static void afs_notify_end_request_tx(struct sock *sock,
fs/afs/rxrpc.c
686
static void afs_wake_up_call_waiter(struct sock *sk, struct rxrpc_call *rxcall,
fs/afs/rxrpc.c
699
static void afs_wake_up_async_call(struct sock *sk, struct rxrpc_call *rxcall,
fs/afs/rxrpc.c
792
static void afs_rx_new_call(struct sock *sk, struct rxrpc_call *rxcall,
fs/afs/rxrpc.c
846
static void afs_notify_end_reply_tx(struct sock *sock,
fs/afs/rxrpc.c
990
static void afs_rx_notify_oob(struct sock *sk, struct sk_buff *oob)
fs/dlm/lowcomms.c
1053
if (newcon->sock) {
fs/dlm/lowcomms.c
1079
lock_sock(othercon->sock->sk);
fs/dlm/lowcomms.c
1081
release_sock(othercon->sock->sk);
fs/dlm/lowcomms.c
1091
lock_sock(newcon->sock->sk);
fs/dlm/lowcomms.c
1093
release_sock(newcon->sock->sk);
fs/dlm/lowcomms.c
1128
static int sctp_bind_addrs(struct socket *sock, __be16 port)
fs/dlm/lowcomms.c
1139
result = kernel_bind(sock, addr, addr_len);
fs/dlm/lowcomms.c
1141
result = sock_bind_add(sock->sk, addr, addr_len);
fs/dlm/lowcomms.c
118
struct socket *sock;
fs/dlm/lowcomms.c
1389
ret = sock_sendmsg(con->sock, &msg);
fs/dlm/lowcomms.c
1392
lock_sock(con->sock->sk);
fs/dlm/lowcomms.c
1394
if (test_bit(SOCKWQ_ASYNC_NOSPACE, &con->sock->flags) &&
fs/dlm/lowcomms.c
1399
set_bit(SOCK_NOSPACE, &con->sock->sk->sk_socket->flags);
fs/dlm/lowcomms.c
1400
con->sock->sk->sk_write_pending++;
fs/dlm/lowcomms.c
1404
release_sock(con->sock->sk);
fs/dlm/lowcomms.c
1410
release_sock(con->sock->sk);
fs/dlm/lowcomms.c
1440
WARN_ON_ONCE(con->sock);
fs/dlm/lowcomms.c
1492
if (!con->sock) {
fs/dlm/lowcomms.c
1559
if (WARN_ON_ONCE(!listen_con.sock))
fs/dlm/lowcomms.c
1574
struct socket *sock;
fs/dlm/lowcomms.c
1587
SOCK_STREAM, dlm_proto_ops->proto, &sock);
fs/dlm/lowcomms.c
1591
sock_set_mark(sock->sk, mark);
fs/dlm/lowcomms.c
1592
dlm_proto_ops->sockopts(sock);
fs/dlm/lowcomms.c
1594
result = dlm_proto_ops->bind(sock);
fs/dlm/lowcomms.c
1596
sock_release(sock);
fs/dlm/lowcomms.c
1600
add_sock(sock, con);
fs/dlm/lowcomms.c
1604
result = kernel_connect(sock, (struct sockaddr_unsized *)&addr, addr_len, 0);
fs/dlm/lowcomms.c
1613
dlm_close_sock(&con->sock);
fs/dlm/lowcomms.c
1630
if (!con->sock) {
fs/dlm/lowcomms.c
1633
if (!con->sock) {
fs/dlm/lowcomms.c
165
void (*sockopts)(struct socket *sock);
fs/dlm/lowcomms.c
166
int (*bind)(struct socket *sock);
fs/dlm/lowcomms.c
168
void (*listen_sockopts)(struct socket *sock);
fs/dlm/lowcomms.c
169
int (*listen_bind)(struct socket *sock);
fs/dlm/lowcomms.c
1725
lock_sock(listen_con.sock->sk);
fs/dlm/lowcomms.c
1726
listen_con.sock->sk->sk_data_ready = listen_sock.sk_data_ready;
fs/dlm/lowcomms.c
1727
release_sock(listen_con.sock->sk);
fs/dlm/lowcomms.c
173
void (*sk_error_report)(struct sock *);
fs/dlm/lowcomms.c
1730
dlm_close_sock(&listen_con.sock);
fs/dlm/lowcomms.c
174
void (*sk_data_ready)(struct sock *);
fs/dlm/lowcomms.c
175
void (*sk_state_change)(struct sock *);
fs/dlm/lowcomms.c
1758
struct socket *sock;
fs/dlm/lowcomms.c
176
void (*sk_write_space)(struct sock *);
fs/dlm/lowcomms.c
1769
SOCK_STREAM, dlm_proto_ops->proto, &sock);
fs/dlm/lowcomms.c
1775
sock_set_mark(sock->sk, dlm_config.ci_mark);
fs/dlm/lowcomms.c
1776
dlm_proto_ops->listen_sockopts(sock);
fs/dlm/lowcomms.c
1778
result = dlm_proto_ops->listen_bind(sock);
fs/dlm/lowcomms.c
1782
lock_sock(sock->sk);
fs/dlm/lowcomms.c
1783
listen_sock.sk_data_ready = sock->sk->sk_data_ready;
fs/dlm/lowcomms.c
1784
listen_sock.sk_write_space = sock->sk->sk_write_space;
fs/dlm/lowcomms.c
1785
listen_sock.sk_error_report = sock->sk->sk_error_report;
fs/dlm/lowcomms.c
1786
listen_sock.sk_state_change = sock->sk->sk_state_change;
fs/dlm/lowcomms.c
1788
listen_con.sock = sock;
fs/dlm/lowcomms.c
1790
sock->sk->sk_allocation = GFP_NOFS;
fs/dlm/lowcomms.c
1791
sock->sk->sk_use_task_frag = false;
fs/dlm/lowcomms.c
1792
sock->sk->sk_data_ready = lowcomms_listen_data_ready;
fs/dlm/lowcomms.c
1793
release_sock(sock->sk);
fs/dlm/lowcomms.c
1795
result = sock->ops->listen(sock, 128);
fs/dlm/lowcomms.c
1797
dlm_close_sock(&listen_con.sock);
fs/dlm/lowcomms.c
1804
sock_release(sock);
fs/dlm/lowcomms.c
1808
static int dlm_tcp_bind(struct socket *sock)
fs/dlm/lowcomms.c
1819
result = kernel_bind(sock, (struct sockaddr_unsized *)&src_addr,
fs/dlm/lowcomms.c
1840
static void dlm_tcp_sockopts(struct socket *sock)
fs/dlm/lowcomms.c
1843
tcp_sock_set_nodelay(sock->sk);
fs/dlm/lowcomms.c
1846
static void dlm_tcp_listen_sockopts(struct socket *sock)
fs/dlm/lowcomms.c
1848
dlm_tcp_sockopts(sock);
fs/dlm/lowcomms.c
1849
sock_set_reuseaddr(sock->sk);
fs/dlm/lowcomms.c
1852
static int dlm_tcp_listen_bind(struct socket *sock)
fs/dlm/lowcomms.c
1858
return kernel_bind(sock, (struct sockaddr_unsized *)&dlm_local_addr[0],
fs/dlm/lowcomms.c
1873
static int dlm_sctp_bind(struct socket *sock)
fs/dlm/lowcomms.c
1875
return sctp_bind_addrs(sock, 0);
fs/dlm/lowcomms.c
1889
static int dlm_sctp_bind_listen(struct socket *sock)
fs/dlm/lowcomms.c
1891
return sctp_bind_addrs(sock, dlm_config.ci_tcp_port);
fs/dlm/lowcomms.c
1894
static void dlm_sctp_sockopts(struct socket *sock)
fs/dlm/lowcomms.c
1897
sctp_sock_set_nodelay(sock->sk);
fs/dlm/lowcomms.c
1898
sock_set_rcvbuf(sock->sk, NEEDED_RMEM);
fs/dlm/lowcomms.c
212
return !!listen_con.sock;
fs/dlm/lowcomms.c
228
WARN_ON_ONCE(!lockdep_sock_is_held(con->sock->sk));
fs/dlm/lowcomms.c
508
static void lowcomms_data_ready(struct sock *sk)
fs/dlm/lowcomms.c
518
static void lowcomms_write_space(struct sock *sk)
fs/dlm/lowcomms.c
522
clear_bit(SOCK_NOSPACE, &con->sock->flags);
fs/dlm/lowcomms.c
526
con->sock->sk->sk_write_pending--;
fs/dlm/lowcomms.c
527
clear_bit(SOCKWQ_ASYNC_NOSPACE, &con->sock->flags);
fs/dlm/lowcomms.c
534
static void lowcomms_state_change(struct sock *sk)
fs/dlm/lowcomms.c
543
static void lowcomms_listen_data_ready(struct sock *sk)
fs/dlm/lowcomms.c
563
if (!con->sock) {
fs/dlm/lowcomms.c
594
static void lowcomms_error_report(struct sock *sk)
fs/dlm/lowcomms.c
633
static void restore_callbacks(struct sock *sk)
fs/dlm/lowcomms.c
647
static void add_sock(struct socket *sock, struct connection *con)
fs/dlm/lowcomms.c
649
struct sock *sk = sock->sk;
fs/dlm/lowcomms.c
652
con->sock = sock;
fs/dlm/lowcomms.c
70
struct socket *sock; /* NULL if not connected */
fs/dlm/lowcomms.c
719
static void dlm_close_sock(struct socket **sock)
fs/dlm/lowcomms.c
721
lock_sock((*sock)->sk);
fs/dlm/lowcomms.c
722
restore_callbacks((*sock)->sk);
fs/dlm/lowcomms.c
723
release_sock((*sock)->sk);
fs/dlm/lowcomms.c
725
sock_release(*sock);
fs/dlm/lowcomms.c
726
*sock = NULL;
fs/dlm/lowcomms.c
746
if (con->sock) {
fs/dlm/lowcomms.c
747
lock_sock(con->sock->sk);
fs/dlm/lowcomms.c
748
restore_callbacks(con->sock->sk);
fs/dlm/lowcomms.c
749
release_sock(con->sock->sk);
fs/dlm/lowcomms.c
766
if (!con->sock) {
fs/dlm/lowcomms.c
771
dlm_close_sock(&con->sock);
fs/dlm/lowcomms.c
811
if (!con->sock) {
fs/dlm/lowcomms.c
816
ret = kernel_sock_shutdown(con->sock, dlm_proto_ops->how);
fs/dlm/lowcomms.c
823
ret = wait_event_timeout(con->shutdown_wait, !con->sock,
fs/dlm/lowcomms.c
926
ret = kernel_recvmsg(con->sock, &msg, &iov, 1, iov.iov_len,
fs/dlm/lowcomms.c
930
lock_sock(con->sock->sk);
fs/dlm/lowcomms.c
932
release_sock(con->sock->sk);
fs/dlm/lowcomms.c
937
release_sock(con->sock->sk);
fs/dlm/lowcomms.c
992
result = kernel_accept(listen_con.sock, &newsock, O_NONBLOCK);
fs/eventpoll.c
703
struct socket *sock;
fs/eventpoll.c
704
struct sock *sk;
fs/eventpoll.c
709
sock = sock_from_file(epi->ffd.file);
fs/eventpoll.c
710
if (!sock)
fs/eventpoll.c
713
sk = sock->sk;
fs/ocfs2/cluster/netdebug.c
113
s64 sock, send, status;
fs/ocfs2/cluster/netdebug.c
121
sock = ktime_to_us(ktime_sub(now, nst->st_sock_time));
fs/ocfs2/cluster/netdebug.c
143
(long long)sock,
fs/ocfs2/cluster/tcp.c
1146
static int o2net_send_status_magic(struct socket *sock, struct o2net_msg *hdr,
fs/ocfs2/cluster/tcp.c
1165
return o2net_send_tcp_msg(sock, &vec, 1, sizeof(struct o2net_msg));
fs/ocfs2/cluster/tcp.c
126
static void o2net_listen_data_ready(struct sock *sk);
fs/ocfs2/cluster/tcp.c
1555
struct socket *sock = NULL;
fs/ocfs2/cluster/tcp.c
1604
ret = sock_create(PF_INET, SOCK_STREAM, IPPROTO_TCP, &sock);
fs/ocfs2/cluster/tcp.c
1609
sc->sc_sock = sock; /* freed by sc_kref_release */
fs/ocfs2/cluster/tcp.c
1611
sock->sk->sk_allocation = GFP_ATOMIC;
fs/ocfs2/cluster/tcp.c
1612
sock->sk->sk_use_task_frag = false;
fs/ocfs2/cluster/tcp.c
1618
ret = sock->ops->bind(sock, (struct sockaddr_unsized *)&myaddr,
fs/ocfs2/cluster/tcp.c
1627
tcp_sock_set_user_timeout(sock->sk, O2NET_TCP_USER_TIMEOUT);
fs/ocfs2/cluster/tcp.c
1780
static int o2net_accept_one(struct socket *sock, int *more)
fs/ocfs2/cluster/tcp.c
1800
BUG_ON(sock == NULL);
fs/ocfs2/cluster/tcp.c
1802
ret = sock_create_lite(sock->sk->sk_family, sock->sk->sk_type,
fs/ocfs2/cluster/tcp.c
1803
sock->sk->sk_protocol, &new_sock);
fs/ocfs2/cluster/tcp.c
1807
new_sock->type = sock->type;
fs/ocfs2/cluster/tcp.c
1808
new_sock->ops = sock->ops;
fs/ocfs2/cluster/tcp.c
1809
ret = sock->ops->accept(sock, new_sock, &arg);
fs/ocfs2/cluster/tcp.c
1917
struct socket *sock = o2net_listen_sock;
fs/ocfs2/cluster/tcp.c
1933
o2net_accept_one(sock, &more);
fs/ocfs2/cluster/tcp.c
1940
static void o2net_listen_data_ready(struct sock *sk)
fs/ocfs2/cluster/tcp.c
1942
void (*ready)(struct sock *sk);
fs/ocfs2/cluster/tcp.c
1980
struct socket *sock = NULL;
fs/ocfs2/cluster/tcp.c
1988
ret = sock_create(PF_INET, SOCK_STREAM, IPPROTO_TCP, &sock);
fs/ocfs2/cluster/tcp.c
1994
sock->sk->sk_allocation = GFP_ATOMIC;
fs/ocfs2/cluster/tcp.c
1996
write_lock_bh(&sock->sk->sk_callback_lock);
fs/ocfs2/cluster/tcp.c
1997
sock->sk->sk_user_data = sock->sk->sk_data_ready;
fs/ocfs2/cluster/tcp.c
1998
sock->sk->sk_data_ready = o2net_listen_data_ready;
fs/ocfs2/cluster/tcp.c
1999
write_unlock_bh(&sock->sk->sk_callback_lock);
fs/ocfs2/cluster/tcp.c
2001
o2net_listen_sock = sock;
fs/ocfs2/cluster/tcp.c
2004
sock->sk->sk_reuse = SK_CAN_REUSE;
fs/ocfs2/cluster/tcp.c
2005
ret = sock->ops->bind(sock, (struct sockaddr_unsized *)&sin, sizeof(sin));
fs/ocfs2/cluster/tcp.c
2012
ret = sock->ops->listen(sock, 64);
fs/ocfs2/cluster/tcp.c
2020
if (sock)
fs/ocfs2/cluster/tcp.c
2021
sock_release(sock);
fs/ocfs2/cluster/tcp.c
2062
struct socket *sock = o2net_listen_sock;
fs/ocfs2/cluster/tcp.c
2069
write_lock_bh(&sock->sk->sk_callback_lock);
fs/ocfs2/cluster/tcp.c
2070
sock->sk->sk_data_ready = sock->sk->sk_user_data;
fs/ocfs2/cluster/tcp.c
2071
sock->sk->sk_user_data = NULL;
fs/ocfs2/cluster/tcp.c
2072
write_unlock_bh(&sock->sk->sk_callback_lock);
fs/ocfs2/cluster/tcp.c
584
static void o2net_data_ready(struct sock *sk)
fs/ocfs2/cluster/tcp.c
586
void (*ready)(struct sock *sk);
fs/ocfs2/cluster/tcp.c
607
static void o2net_state_change(struct sock *sk)
fs/ocfs2/cluster/tcp.c
609
void (*state_change)(struct sock *sk);
fs/ocfs2/cluster/tcp.c
648
static void o2net_register_callbacks(struct sock *sk,
fs/ocfs2/cluster/tcp.c
673
static int o2net_unregister_callbacks(struct sock *sk,
fs/ocfs2/cluster/tcp.c
902
static int o2net_recv_tcp_msg(struct socket *sock, void *data, size_t len)
fs/ocfs2/cluster/tcp.c
907
return sock_recvmsg(sock, &msg, MSG_DONTWAIT);
fs/ocfs2/cluster/tcp.c
910
static int o2net_send_tcp_msg(struct socket *sock, struct kvec *vec,
fs/ocfs2/cluster/tcp.c
916
if (sock == NULL) {
fs/ocfs2/cluster/tcp.c
921
ret = kernel_sendmsg(sock, &msg, vec, veclen, total);
fs/ocfs2/cluster/tcp.h
52
static inline int o2net_link_down(int err, struct socket *sock)
fs/ocfs2/cluster/tcp.h
54
if (sock) {
fs/ocfs2/cluster/tcp.h
55
if (sock->sk->sk_state != TCP_ESTABLISHED &&
fs/ocfs2/cluster/tcp.h
56
sock->sk->sk_state != TCP_CLOSE_WAIT)
fs/ocfs2/cluster/tcp_internal.h
151
void (*sc_state_change)(struct sock *sk);
fs/ocfs2/cluster/tcp_internal.h
152
void (*sc_data_ready)(struct sock *sk);
fs/smb/client/connect.c
3062
cifs_reclassify_socket4(struct socket *sock)
fs/smb/client/connect.c
3064
struct sock *sk = sock->sk;
fs/smb/client/connect.c
3072
cifs_reclassify_socket6(struct socket *sock)
fs/smb/client/connect.c
3074
struct sock *sk = sock->sk;
fs/smb/client/connect.c
3082
cifs_reclassify_socket4(struct socket *sock)
fs/smb/client/connect.c
3087
cifs_reclassify_socket6(struct socket *sock)
fs/smb/client/connect.c
3366
struct sock *sk;
fs/smb/server/transport_tcp.c
101
sock_release(t->sock);
fs/smb/server/transport_tcp.c
108
kernel_sock_shutdown(t->sock, SHUT_RDWR);
fs/smb/server/transport_tcp.c
34
struct socket *sock;
fs/smb/server/transport_tcp.c
367
length = kernel_recvmsg(t->sock, &ksmbd_msg,
fs/smb/server/transport_tcp.c
427
return kernel_sendmsg(TCP_TRANS(t)->sock, &smb_msg, iov, nvecs, size);
fs/smb/server/transport_tcp.c
49
static inline void ksmbd_tcp_nodelay(struct socket *sock)
fs/smb/server/transport_tcp.c
51
tcp_sock_set_nodelay(sock->sk);
fs/smb/server/transport_tcp.c
54
static inline void ksmbd_tcp_reuseaddr(struct socket *sock)
fs/smb/server/transport_tcp.c
56
sock_set_reuseaddr(sock->sk);
fs/smb/server/transport_tcp.c
67
t->sock = client_sk;
fs/splice.c
798
struct socket *sock = sock_from_file(out);
fs/splice.c
884
ret = sock_sendmsg(sock, &msg);
include/crypto/if_alg.h
167
int af_alg_release(struct socket *sock);
include/crypto/if_alg.h
168
void af_alg_release_parent(struct sock *sk);
include/crypto/if_alg.h
169
int af_alg_accept(struct sock *sk, struct socket *newsock,
include/crypto/if_alg.h
174
static inline struct alg_sock *alg_sk(struct sock *sk)
include/crypto/if_alg.h
185
static inline int af_alg_sndbuf(struct sock *sk)
include/crypto/if_alg.h
200
static inline bool af_alg_writable(struct sock *sk)
include/crypto/if_alg.h
211
static inline int af_alg_rcvbuf(struct sock *sk)
include/crypto/if_alg.h
226
static inline bool af_alg_readable(struct sock *sk)
include/crypto/if_alg.h
231
unsigned int af_alg_count_tsgl(struct sock *sk, size_t bytes);
include/crypto/if_alg.h
232
void af_alg_pull_tsgl(struct sock *sk, size_t used, struct scatterlist *dst);
include/crypto/if_alg.h
233
void af_alg_wmem_wakeup(struct sock *sk);
include/crypto/if_alg.h
234
int af_alg_wait_for_data(struct sock *sk, unsigned flags, unsigned min);
include/crypto/if_alg.h
235
int af_alg_sendmsg(struct socket *sock, struct msghdr *msg, size_t size,
include/crypto/if_alg.h
238
__poll_t af_alg_poll(struct file *file, struct socket *sock,
include/crypto/if_alg.h
240
struct af_alg_async_req *af_alg_alloc_areq(struct sock *sk,
include/crypto/if_alg.h
242
int af_alg_get_rsgl(struct sock *sk, struct msghdr *msg, int flags,
include/crypto/if_alg.h
26
struct sock sk;
include/crypto/if_alg.h
28
struct sock *parent;
include/crypto/if_alg.h
48
int (*accept)(void *private, struct sock *sk);
include/crypto/if_alg.h
49
int (*accept_nokey)(void *private, struct sock *sk);
include/crypto/if_alg.h
94
struct sock *sk;
include/linux/atmdev.h
100
return atm_sk(sock->sk);
include/linux/atmdev.h
103
static inline struct sock *sk_atm(struct atm_vcc *vcc)
include/linux/atmdev.h
105
return (struct sock *)vcc;
include/linux/atmdev.h
170
void vcc_insert_socket(struct sock *sk);
include/linux/atmdev.h
72
struct sock sk;
include/linux/atmdev.h
93
static inline struct atm_vcc *atm_sk(struct sock *sk)
include/linux/atmdev.h
98
static inline struct atm_vcc *ATM_SD(struct socket *sock)
include/linux/bpf-cgroup.h
115
int __cgroup_bpf_run_filter_skb(struct sock *sk,
include/linux/bpf-cgroup.h
119
int __cgroup_bpf_run_filter_sk(struct sock *sk,
include/linux/bpf-cgroup.h
122
int __cgroup_bpf_run_filter_sock_addr(struct sock *sk,
include/linux/bpf-cgroup.h
129
int __cgroup_bpf_run_filter_sock_ops(struct sock *sk,
include/linux/bpf-cgroup.h
14
struct sock;
include/linux/bpf-cgroup.h
141
int __cgroup_bpf_run_filter_setsockopt(struct sock *sock, int *level,
include/linux/bpf-cgroup.h
145
int __cgroup_bpf_run_filter_getsockopt(struct sock *sk, int level,
include/linux/bpf-cgroup.h
150
int __cgroup_bpf_run_filter_getsockopt_kern(struct sock *sk, int level,
include/linux/bpf-cgroup.h
180
static inline bool cgroup_bpf_sock_enabled(struct sock *sk,
include/linux/bpf-cgroup.h
379
#define BPF_CGROUP_RUN_PROG_SETSOCKOPT(sock, level, optname, optval, optlen, \
include/linux/bpf-cgroup.h
384
cgroup_bpf_sock_enabled(sock, CGROUP_SETSOCKOPT)) \
include/linux/bpf-cgroup.h
385
__ret = __cgroup_bpf_run_filter_setsockopt(sock, level, \
include/linux/bpf-cgroup.h
392
#define BPF_CGROUP_RUN_PROG_GETSOCKOPT(sock, level, optname, optval, optlen, \
include/linux/bpf-cgroup.h
397
cgroup_bpf_sock_enabled(sock, CGROUP_GETSOCKOPT)) \
include/linux/bpf-cgroup.h
398
if (!(sock)->sk_prot->bpf_bypass_getsockopt || \
include/linux/bpf-cgroup.h
399
!INDIRECT_CALL_INET_1((sock)->sk_prot->bpf_bypass_getsockopt, \
include/linux/bpf-cgroup.h
403
sock, level, optname, optval, optlen, \
include/linux/bpf-cgroup.h
408
#define BPF_CGROUP_RUN_PROG_GETSOCKOPT_KERN(sock, level, optname, optval, \
include/linux/bpf-cgroup.h
414
sock, level, optname, optval, optlen, retval); \
include/linux/bpf-cgroup.h
507
#define BPF_CGROUP_RUN_PROG_GETSOCKOPT(sock, level, optname, optval, \
include/linux/bpf-cgroup.h
509
#define BPF_CGROUP_RUN_PROG_GETSOCKOPT_KERN(sock, level, optname, optval, \
include/linux/bpf-cgroup.h
511
#define BPF_CGROUP_RUN_PROG_SETSOCKOPT(sock, level, optname, optval, optlen, \
include/linux/bpf.h
3665
void sock_map_unhash(struct sock *sk);
include/linux/bpf.h
3666
void sock_map_destroy(struct sock *sk);
include/linux/bpf.h
3667
void sock_map_close(struct sock *sk, long timeout);
include/linux/bpf.h
3787
void bpf_sk_reuseport_detach(struct sock *sk);
include/linux/bpf.h
3793
static inline void bpf_sk_reuseport_detach(struct sock *sk)
include/linux/bpf.h
4000
struct sock *sk;
include/linux/bpf.h
4001
struct sock *selected_sk;
include/linux/bpf.h
4002
struct sock *migrating_sk;
include/linux/bpf.h
47
struct sock;
include/linux/bpf_types.h
17
struct bpf_sock, struct sock)
include/linux/btf_ids.h
248
BTF_SOCK_TYPE(BTF_SOCK_TYPE_SOCK, sock) \
include/linux/can/core.h
53
void *data, char *ident, struct sock *sk);
include/linux/can/core.h
62
void can_sock_destruct(struct sock *sk);
include/linux/can/skb.h
57
static inline void can_skb_set_owner(struct sk_buff *skb, struct sock *sk)
include/linux/ceph/messenger.h
481
struct socket *sock;
include/linux/connector.h
135
struct cn_queue_dev *cn_queue_alloc_dev(const char *name, struct sock *);
include/linux/connector.h
29
struct sock *nls;
include/linux/connector.h
52
struct sock *nls;
include/linux/filter.h
1118
sk_filter_trim_cap(struct sock *sk, struct sk_buff *skb, unsigned int cap);
include/linux/filter.h
1120
static inline int sk_filter(struct sock *sk, struct sk_buff *skb)
include/linux/filter.h
1129
sk_filter_reason(struct sock *sk, struct sk_buff *skb)
include/linux/filter.h
1165
int sk_attach_filter(struct sock_fprog *fprog, struct sock *sk);
include/linux/filter.h
1166
int sk_attach_bpf(u32 ufd, struct sock *sk);
include/linux/filter.h
1167
int sk_reuseport_attach_filter(struct sock_fprog *fprog, struct sock *sk);
include/linux/filter.h
1168
int sk_reuseport_attach_bpf(u32 ufd, struct sock *sk);
include/linux/filter.h
1170
int sk_detach_filter(struct sock *sk);
include/linux/filter.h
1171
int sk_get_filter(struct sock *sk, sockptr_t optval, unsigned int len);
include/linux/filter.h
1173
bool sk_filter_charge(struct sock *sk, struct sk_filter *fp);
include/linux/filter.h
1174
void sk_filter_uncharge(struct sock *sk, struct sk_filter *fp);
include/linux/filter.h
1294
struct sock *bpf_run_sk_reuseport(struct sock_reuseport *reuse, struct sock *sk,
include/linux/filter.h
1296
struct sock *migrating_sk,
include/linux/filter.h
1299
static inline struct sock *
include/linux/filter.h
1300
bpf_run_sk_reuseport(struct sock_reuseport *reuse, struct sock *sk,
include/linux/filter.h
1302
struct sock *migrating_sk,
include/linux/filter.h
1599
struct sock *sk;
include/linux/filter.h
1611
struct sock *sk;
include/linux/filter.h
1655
struct sock *sk;
include/linux/filter.h
1682
struct sock *selected_sk;
include/linux/filter.h
1714
struct sock *_selected_sk = NULL; \
include/linux/filter.h
1746
const int ifindex, struct sock **psk)
include/linux/filter.h
1749
struct sock *selected_sk = NULL;
include/linux/filter.h
1785
const int ifindex, struct sock **psk)
include/linux/filter.h
1788
struct sock *selected_sk = NULL;
include/linux/filter.h
33
struct sock;
include/linux/icmpv6.h
64
void icmpv6_flow_init(const struct sock *sk, struct flowi6 *fl6, u8 type,
include/linux/if_pppox.h
42
struct sock sk;
include/linux/if_pppox.h
55
static inline struct pppox_sock *pppox_sk(struct sock *sk)
include/linux/if_pppox.h
63
int (*create)(struct net *net, struct socket *sock, int kern);
include/linux/if_pppox.h
64
int (*ioctl)(struct socket *sock, unsigned int cmd,
include/linux/if_pppox.h
71
extern void pppox_unbind_sock(struct sock *sk);/* delete ppp-channel binding */
include/linux/if_pppox.h
72
extern int pppox_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg);
include/linux/if_pppox.h
73
extern int pppox_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg);
include/linux/if_tap.h
64
struct sock sk;
include/linux/if_tap.h
65
struct socket sock;
include/linux/igmp.h
266
extern int ip_mc_join_group(struct sock *sk, struct ip_mreqn *imr);
include/linux/igmp.h
267
extern int ip_mc_join_group_ssm(struct sock *sk, struct ip_mreqn *imr,
include/linux/igmp.h
269
extern int ip_mc_leave_group(struct sock *sk, struct ip_mreqn *imr);
include/linux/igmp.h
270
extern void ip_mc_drop_socket(struct sock *sk);
include/linux/igmp.h
271
extern int ip_mc_source(int add, int omode, struct sock *sk,
include/linux/igmp.h
273
extern int ip_mc_msfilter(struct sock *sk, struct ip_msfilter *msf,int ifindex);
include/linux/igmp.h
274
extern int ip_mc_msfget(struct sock *sk, struct ip_msfilter *msf,
include/linux/igmp.h
276
extern int ip_mc_gsfget(struct sock *sk, struct group_filter *gsf,
include/linux/igmp.h
278
extern int ip_mc_sf_allow(const struct sock *sk, __be32 local, __be32 rmt,
include/linux/inet_diag.h
19
void (*idiag_get_info)(struct sock *sk,
include/linux/inet_diag.h
23
int (*idiag_get_aux)(struct sock *sk,
include/linux/inet_diag.h
49
int inet_sk_diag_fill(struct sock *sk, struct inet_connection_sock *icsk,
include/linux/inet_diag.h
54
int inet_diag_bc_sk(const struct inet_diag_dump_data *cb_data, struct sock *sk);
include/linux/inet_diag.h
56
void inet_diag_msg_common_fill(struct inet_diag_msg *r, struct sock *sk);
include/linux/inet_diag.h
75
int inet_diag_msg_attrs_fill(struct sock *sk, struct sk_buff *skb,
include/linux/ipv6.h
329
extern int inet6_sk_rebuild_header(struct sock *sk);
include/linux/ipv6.h
343
static inline struct ipv6_pinfo *inet6_sk(const struct sock *__sk)
include/linux/ipv6.h
354
static inline const struct in6_addr *inet6_rcv_saddr(const struct sock *sk)
include/linux/ipv6.h
361
static inline int inet_v6_ipv6only(const struct sock *sk)
include/linux/ipv6.h
375
static inline struct ipv6_pinfo * inet6_sk(const struct sock *__sk)
include/linux/ipv6.h
380
static inline struct raw6_sock *raw6_sk(const struct sock *sk)
include/linux/kobject.h
149
struct sock;
include/linux/kobject_ns.h
20
struct sock;
include/linux/kobject_ns.h
44
const struct ns_common *(*netlink_ns)(struct sock *sk);
include/linux/lsm_audit.h
29
const struct sock *sk;
include/linux/lsm_hook_defs.h
294
LSM_HOOK(int, 0, netlink_send, struct sock *sk, struct sk_buff *skb)
include/linux/lsm_hook_defs.h
326
LSM_HOOK(int, 0, unix_find, const struct path *path, struct sock *other,
include/linux/lsm_hook_defs.h
331
LSM_HOOK(int, 0, unix_stream_connect, struct sock *sock, struct sock *other,
include/linux/lsm_hook_defs.h
332
struct sock *newsk)
include/linux/lsm_hook_defs.h
333
LSM_HOOK(int, 0, unix_may_send, struct socket *sock, struct socket *other)
include/linux/lsm_hook_defs.h
335
LSM_HOOK(int, 0, socket_post_create, struct socket *sock, int family, int type,
include/linux/lsm_hook_defs.h
338
LSM_HOOK(int, 0, socket_bind, struct socket *sock, struct sockaddr *address,
include/linux/lsm_hook_defs.h
340
LSM_HOOK(int, 0, socket_connect, struct socket *sock, struct sockaddr *address,
include/linux/lsm_hook_defs.h
342
LSM_HOOK(int, 0, socket_listen, struct socket *sock, int backlog)
include/linux/lsm_hook_defs.h
343
LSM_HOOK(int, 0, socket_accept, struct socket *sock, struct socket *newsock)
include/linux/lsm_hook_defs.h
344
LSM_HOOK(int, 0, socket_sendmsg, struct socket *sock, struct msghdr *msg,
include/linux/lsm_hook_defs.h
346
LSM_HOOK(int, 0, socket_recvmsg, struct socket *sock, struct msghdr *msg,
include/linux/lsm_hook_defs.h
348
LSM_HOOK(int, 0, socket_getsockname, struct socket *sock)
include/linux/lsm_hook_defs.h
349
LSM_HOOK(int, 0, socket_getpeername, struct socket *sock)
include/linux/lsm_hook_defs.h
350
LSM_HOOK(int, 0, socket_getsockopt, struct socket *sock, int level, int optname)
include/linux/lsm_hook_defs.h
351
LSM_HOOK(int, 0, socket_setsockopt, struct socket *sock, int level, int optname)
include/linux/lsm_hook_defs.h
352
LSM_HOOK(int, 0, socket_shutdown, struct socket *sock, int how)
include/linux/lsm_hook_defs.h
353
LSM_HOOK(int, 0, socket_sock_rcv_skb, struct sock *sk, struct sk_buff *skb)
include/linux/lsm_hook_defs.h
354
LSM_HOOK(int, -ENOPROTOOPT, socket_getpeersec_stream, struct socket *sock,
include/linux/lsm_hook_defs.h
356
LSM_HOOK(int, -ENOPROTOOPT, socket_getpeersec_dgram, struct socket *sock,
include/linux/lsm_hook_defs.h
358
LSM_HOOK(int, 0, sk_alloc_security, struct sock *sk, int family, gfp_t priority)
include/linux/lsm_hook_defs.h
359
LSM_HOOK(void, LSM_RET_VOID, sk_free_security, struct sock *sk)
include/linux/lsm_hook_defs.h
360
LSM_HOOK(void, LSM_RET_VOID, sk_clone_security, const struct sock *sk,
include/linux/lsm_hook_defs.h
361
struct sock *newsk)
include/linux/lsm_hook_defs.h
362
LSM_HOOK(void, LSM_RET_VOID, sk_getsecid, const struct sock *sk, u32 *secid)
include/linux/lsm_hook_defs.h
363
LSM_HOOK(void, LSM_RET_VOID, sock_graft, struct sock *sk, struct socket *parent)
include/linux/lsm_hook_defs.h
364
LSM_HOOK(int, 0, inet_conn_request, const struct sock *sk, struct sk_buff *skb,
include/linux/lsm_hook_defs.h
366
LSM_HOOK(void, LSM_RET_VOID, inet_csk_clone, struct sock *newsk,
include/linux/lsm_hook_defs.h
368
LSM_HOOK(void, LSM_RET_VOID, inet_conn_established, struct sock *sk,
include/linux/lsm_hook_defs.h
378
LSM_HOOK(int, 0, tun_dev_attach, struct sock *sk, void *security)
include/linux/lsm_hook_defs.h
382
LSM_HOOK(int, 0, sctp_bind_connect, struct sock *sk, int optname,
include/linux/lsm_hook_defs.h
385
struct sock *sk, struct sock *newsk)
include/linux/lsm_hook_defs.h
388
LSM_HOOK(int, 0, mptcp_add_subflow, struct sock *sk, struct sock *ssk)
include/linux/memcontrol.h
1631
struct sock;
include/linux/memcontrol.h
1636
void mem_cgroup_sk_alloc(struct sock *sk);
include/linux/memcontrol.h
1637
void mem_cgroup_sk_free(struct sock *sk);
include/linux/memcontrol.h
1638
void mem_cgroup_sk_inherit(const struct sock *sk, struct sock *newsk);
include/linux/memcontrol.h
1639
bool mem_cgroup_sk_charge(const struct sock *sk, unsigned int nr_pages,
include/linux/memcontrol.h
1641
void mem_cgroup_sk_uncharge(const struct sock *sk, unsigned int nr_pages);
include/linux/memcontrol.h
1690
static inline void mem_cgroup_sk_alloc(struct sock *sk)
include/linux/memcontrol.h
1694
static inline void mem_cgroup_sk_free(struct sock *sk)
include/linux/memcontrol.h
1698
static inline void mem_cgroup_sk_inherit(const struct sock *sk, struct sock *newsk)
include/linux/memcontrol.h
1702
static inline bool mem_cgroup_sk_charge(const struct sock *sk,
include/linux/memcontrol.h
1709
static inline void mem_cgroup_sk_uncharge(const struct sock *sk,
include/linux/mroute.h
19
int ip_mroute_setsockopt(struct sock *, int, sockptr_t, unsigned int);
include/linux/mroute.h
20
int ip_mroute_getsockopt(struct sock *, int, sockptr_t, sockptr_t);
include/linux/mroute.h
21
int ipmr_ioctl(struct sock *sk, int cmd, void *arg);
include/linux/mroute.h
22
int ipmr_compat_ioctl(struct sock *sk, unsigned int cmd, void __user *arg);
include/linux/mroute.h
25
int ipmr_sk_ioctl(struct sock *sk, unsigned int cmd, void __user *arg);
include/linux/mroute.h
27
static inline int ip_mroute_setsockopt(struct sock *sock, int optname,
include/linux/mroute.h
33
static inline int ip_mroute_getsockopt(struct sock *sk, int optname,
include/linux/mroute.h
39
static inline int ipmr_ioctl(struct sock *sk, int cmd, void *arg)
include/linux/mroute.h
59
static inline int ipmr_sk_ioctl(struct sock *sk, unsigned int cmd,
include/linux/mroute6.h
109
extern int ip6mr_sk_done(struct sock *sk);
include/linux/mroute6.h
110
static inline int ip6mr_sk_ioctl(struct sock *sk, unsigned int cmd,
include/linux/mroute6.h
136
static inline int ip6mr_sk_done(struct sock *sk)
include/linux/mroute6.h
141
static inline int ip6mr_sk_ioctl(struct sock *sk, unsigned int cmd,
include/linux/mroute6.h
26
struct sock;
include/linux/mroute6.h
29
extern int ip6_mroute_setsockopt(struct sock *, int, sockptr_t, unsigned int);
include/linux/mroute6.h
30
extern int ip6_mroute_getsockopt(struct sock *, int, sockptr_t, sockptr_t);
include/linux/mroute6.h
32
extern int ip6mr_compat_ioctl(struct sock *sk, unsigned int cmd, void __user *arg);
include/linux/mroute6.h
34
extern int ip6_mr_output(struct net *net, struct sock *sk, struct sk_buff *skb);
include/linux/mroute6.h
36
int ip6mr_ioctl(struct sock *sk, int cmd, void *arg);
include/linux/mroute6.h
38
static inline int ip6_mroute_setsockopt(struct sock *sock, int optname,
include/linux/mroute6.h
45
int ip6_mroute_getsockopt(struct sock *sock,
include/linux/mroute6.h
52
int ip6mr_ioctl(struct sock *sk, int cmd, void *arg)
include/linux/mroute6.h
63
ip6_mr_output(struct net *net, struct sock *sk, struct sk_buff *skb)
include/linux/mroute_base.h
252
struct sock __rcu *mroute_sk;
include/linux/net.h
145
struct sock *sk;
include/linux/net.h
178
typedef int (*skb_read_actor_t)(struct sock *, struct sk_buff *);
include/linux/net.h
184
int (*release) (struct socket *sock);
include/linux/net.h
185
int (*bind) (struct socket *sock,
include/linux/net.h
188
int (*connect) (struct socket *sock,
include/linux/net.h
193
int (*accept) (struct socket *sock,
include/linux/net.h
196
int (*getname) (struct socket *sock,
include/linux/net.h
199
__poll_t (*poll) (struct file *file, struct socket *sock,
include/linux/net.h
201
int (*ioctl) (struct socket *sock, unsigned int cmd,
include/linux/net.h
204
int (*compat_ioctl) (struct socket *sock, unsigned int cmd,
include/linux/net.h
207
int (*gettstamp) (struct socket *sock, void __user *userstamp,
include/linux/net.h
209
int (*listen) (struct socket *sock, int len);
include/linux/net.h
210
int (*shutdown) (struct socket *sock, int flags);
include/linux/net.h
211
int (*setsockopt)(struct socket *sock, int level,
include/linux/net.h
214
int (*getsockopt)(struct socket *sock, int level,
include/linux/net.h
216
int (*getsockopt_iter)(struct socket *sock, int level,
include/linux/net.h
218
void (*show_fdinfo)(struct seq_file *m, struct socket *sock);
include/linux/net.h
219
int (*sendmsg) (struct socket *sock, struct msghdr *m,
include/linux/net.h
229
int (*recvmsg) (struct socket *sock, struct msghdr *m,
include/linux/net.h
231
int (*mmap) (struct file *file, struct socket *sock,
include/linux/net.h
233
ssize_t (*splice_read)(struct socket *sock, loff_t *ppos,
include/linux/net.h
235
void (*splice_eof)(struct socket *sock);
include/linux/net.h
236
int (*set_peek_off)(struct sock *sk, int val);
include/linux/net.h
237
int (*peek_len)(struct socket *sock);
include/linux/net.h
242
int (*read_sock)(struct sock *sk, read_descriptor_t *desc,
include/linux/net.h
245
int (*read_skb)(struct sock *sk, skb_read_actor_t recv_actor);
include/linux/net.h
246
int (*sendmsg_locked)(struct sock *sk, struct msghdr *msg,
include/linux/net.h
248
int (*set_rcvlowat)(struct sock *sk, int val);
include/linux/net.h
249
void (*set_rcvbuf)(struct sock *sk, int val);
include/linux/net.h
257
int (*create)(struct net *net, struct socket *sock,
include/linux/net.h
282
void sock_release(struct socket *sock);
include/linux/net.h
283
int sock_sendmsg(struct socket *sock, struct msghdr *msg);
include/linux/net.h
284
int sock_recvmsg(struct socket *sock, struct msghdr *msg, int flags);
include/linux/net.h
285
struct file *sock_alloc_file(struct socket *sock, int flags, const char *dname);
include/linux/net.h
288
#define sockfd_put(sock) fput(sock->file)
include/linux/net.h
368
int kernel_sendmsg(struct socket *sock, struct msghdr *msg, struct kvec *vec,
include/linux/net.h
370
int kernel_recvmsg(struct socket *sock, struct msghdr *msg, struct kvec *vec,
include/linux/net.h
373
int kernel_bind(struct socket *sock, struct sockaddr_unsized *addr, int addrlen);
include/linux/net.h
374
int kernel_listen(struct socket *sock, int backlog);
include/linux/net.h
375
int kernel_accept(struct socket *sock, struct socket **newsock, int flags);
include/linux/net.h
376
int kernel_connect(struct socket *sock, struct sockaddr_unsized *addr, int addrlen,
include/linux/net.h
378
int kernel_getsockname(struct socket *sock, struct sockaddr *addr);
include/linux/net.h
379
int kernel_getpeername(struct socket *sock, struct sockaddr *addr);
include/linux/net.h
380
int kernel_sock_shutdown(struct socket *sock, enum sock_shutdown_cmd how);
include/linux/net.h
383
u32 kernel_sock_ip_overhead(struct sock *sk);
include/linux/netdevice.h
1586
struct sock *sk);
include/linux/netdevice.h
3010
struct sock *sk);
include/linux/netdevice.h
3437
int dev_loopback_xmit(struct net *net, struct sock *sk, struct sk_buff *newskb);
include/linux/netdevice.h
3482
struct sock *sk);
include/linux/netfilter.h
166
struct sock *sk,
include/linux/netfilter.h
168
int (*okfn)(struct net *, struct sock *, struct sk_buff *))
include/linux/netfilter.h
189
int (*set)(struct sock *sk, int optval, sockptr_t arg,
include/linux/netfilter.h
193
int (*get)(struct sock *sk, int optval, void __user *user, int *len);
include/linux/netfilter.h
228
struct sock *sk, struct sk_buff *skb,
include/linux/netfilter.h
230
int (*okfn)(struct net *, struct sock *, struct sk_buff *))
include/linux/netfilter.h
298
NF_HOOK_COND(uint8_t pf, unsigned int hook, struct net *net, struct sock *sk,
include/linux/netfilter.h
300
int (*okfn)(struct net *, struct sock *, struct sk_buff *),
include/linux/netfilter.h
312
NF_HOOK(uint8_t pf, unsigned int hook, struct net *net, struct sock *sk, struct sk_buff *skb,
include/linux/netfilter.h
314
int (*okfn)(struct net *, struct sock *, struct sk_buff *))
include/linux/netfilter.h
323
NF_HOOK_LIST(uint8_t pf, unsigned int hook, struct net *net, struct sock *sk,
include/linux/netfilter.h
325
int (*okfn)(struct net *, struct sock *, struct sk_buff *))
include/linux/netfilter.h
360
int nf_setsockopt(struct sock *sk, u_int8_t pf, int optval, sockptr_t opt,
include/linux/netfilter.h
362
int nf_getsockopt(struct sock *sk, u_int8_t pf, int optval, char __user *opt,
include/linux/netfilter.h
409
NF_HOOK_COND(uint8_t pf, unsigned int hook, struct net *net, struct sock *sk,
include/linux/netfilter.h
411
int (*okfn)(struct net *, struct sock *, struct sk_buff *),
include/linux/netfilter.h
418
NF_HOOK(uint8_t pf, unsigned int hook, struct net *net, struct sock *sk,
include/linux/netfilter.h
420
int (*okfn)(struct net *, struct sock *, struct sk_buff *))
include/linux/netfilter.h
426
NF_HOOK_LIST(uint8_t pf, unsigned int hook, struct net *net, struct sock *sk,
include/linux/netfilter.h
428
int (*okfn)(struct net *, struct sock *, struct sk_buff *))
include/linux/netfilter.h
434
struct sock *sk, struct sk_buff *skb,
include/linux/netfilter.h
436
int (*okfn)(struct net *, struct sock *, struct sk_buff *))
include/linux/netfilter.h
76
struct sock;
include/linux/netfilter.h
83
struct sock *sk;
include/linux/netfilter.h
85
int (*okfn)(struct net *, struct sock *, struct sk_buff *);
include/linux/netfilter/nfnetlink.h
12
struct sock *sk;
include/linux/netfilter_bridge.h
17
int br_handle_frame_finish(struct net *net, struct sock *sk, struct sk_buff *skb);
include/linux/netfilter_ipv4.h
19
int ip_route_me_harder(struct net *net, struct sock *sk, struct sk_buff *skb, unsigned addr_type);
include/linux/netfilter_ipv6.h
65
int br_ip6_fragment(struct net *net, struct sock *sk, struct sk_buff *skb,
include/linux/netfilter_ipv6.h
67
int (*output)(struct net *, struct sock *sk,
include/linux/netfilter_ipv6.h
71
static inline int nf_br_ip6_fragment(struct net *net, struct sock *sk,
include/linux/netfilter_ipv6.h
74
int (*output)(struct net *, struct sock *sk,
include/linux/netfilter_ipv6.h
85
int ip6_route_me_harder(struct net *net, struct sock *sk, struct sk_buff *skb);
include/linux/netfilter_ipv6.h
87
static inline int nf_ip6_route_me_harder(struct net *net, struct sock *sk, struct sk_buff *skb)
include/linux/netlink.h
220
void netlink_kernel_release(struct sock *sk);
include/linux/netlink.h
221
int __netlink_change_ngroups(struct sock *sk, unsigned int groups);
include/linux/netlink.h
222
int netlink_change_ngroups(struct sock *sk, unsigned int groups);
include/linux/netlink.h
223
void __netlink_clear_multicast_users(struct sock *sk, unsigned int group);
include/linux/netlink.h
226
int netlink_has_listeners(struct sock *sk, unsigned int group);
include/linux/netlink.h
229
int netlink_unicast(struct sock *ssk, struct sk_buff *skb, __u32 portid, int nonblock);
include/linux/netlink.h
230
int netlink_broadcast(struct sock *ssk, struct sk_buff *skb, __u32 portid,
include/linux/netlink.h
233
typedef int (*netlink_filter_fn)(struct sock *dsk, struct sk_buff *skb, void *data);
include/linux/netlink.h
235
int netlink_broadcast_filtered(struct sock *ssk, struct sk_buff *skb,
include/linux/netlink.h
239
int netlink_set_err(struct sock *ssk, __u32 portid, __u32 group, int code);
include/linux/netlink.h
244
struct sock *netlink_getsockbyfd(int fd);
include/linux/netlink.h
245
int netlink_attachskb(struct sock *sk, struct sk_buff *skb,
include/linux/netlink.h
246
long *timeo, struct sock *ssk);
include/linux/netlink.h
247
void netlink_detachskb(struct sock *sk, struct sk_buff *skb);
include/linux/netlink.h
248
int netlink_sendskb(struct sock *sk, struct sk_buff *skb);
include/linux/netlink.h
30
struct sock *sk;
include/linux/netlink.h
331
int __netlink_dump_start(struct sock *ssk, struct sk_buff *skb,
include/linux/netlink.h
334
static inline int netlink_dump_start(struct sock *ssk, struct sk_buff *skb,
include/linux/netlink.h
53
void (*release) (struct sock *sk, unsigned long *groups);
include/linux/netlink.h
56
struct sock *__netlink_kernel_create(struct net *net, int unit,
include/linux/netlink.h
59
static inline struct sock *
include/linux/rtnetlink.h
223
struct sock *rtnl = net->rtnl;
include/linux/security.h
1665
int security_netlink_send(struct sock *sk, struct sk_buff *skb);
include/linux/security.h
1666
int security_unix_stream_connect(struct sock *sock, struct sock *other, struct sock *newsk);
include/linux/security.h
1667
int security_unix_may_send(struct socket *sock, struct socket *other);
include/linux/security.h
1669
int security_socket_post_create(struct socket *sock, int family,
include/linux/security.h
1672
int security_socket_bind(struct socket *sock, struct sockaddr *address, int addrlen);
include/linux/security.h
1673
int security_socket_connect(struct socket *sock, struct sockaddr *address, int addrlen);
include/linux/security.h
1674
int security_socket_listen(struct socket *sock, int backlog);
include/linux/security.h
1675
int security_socket_accept(struct socket *sock, struct socket *newsock);
include/linux/security.h
1676
int security_socket_sendmsg(struct socket *sock, struct msghdr *msg, int size);
include/linux/security.h
1677
int security_socket_recvmsg(struct socket *sock, struct msghdr *msg,
include/linux/security.h
1679
int security_socket_getsockname(struct socket *sock);
include/linux/security.h
1680
int security_socket_getpeername(struct socket *sock);
include/linux/security.h
1681
int security_socket_getsockopt(struct socket *sock, int level, int optname);
include/linux/security.h
1682
int security_socket_setsockopt(struct socket *sock, int level, int optname);
include/linux/security.h
1683
int security_socket_shutdown(struct socket *sock, int how);
include/linux/security.h
1684
int security_sock_rcv_skb(struct sock *sk, struct sk_buff *skb);
include/linux/security.h
1685
int security_socket_getpeersec_stream(struct socket *sock, sockptr_t optval,
include/linux/security.h
1687
int security_socket_getpeersec_dgram(struct socket *sock, struct sk_buff *skb, u32 *secid);
include/linux/security.h
1688
int security_sk_alloc(struct sock *sk, int family, gfp_t priority);
include/linux/security.h
1689
void security_sk_free(struct sock *sk);
include/linux/security.h
1690
void security_sk_clone(const struct sock *sk, struct sock *newsk);
include/linux/security.h
1691
void security_sk_classify_flow(const struct sock *sk,
include/linux/security.h
1695
void security_sock_graft(struct sock*sk, struct socket *parent);
include/linux/security.h
1696
int security_inet_conn_request(const struct sock *sk,
include/linux/security.h
1698
void security_inet_csk_clone(struct sock *newsk,
include/linux/security.h
1700
void security_inet_conn_established(struct sock *sk,
include/linux/security.h
1709
int security_tun_dev_attach(struct sock *sk, void *security);
include/linux/security.h
1712
int security_sctp_bind_connect(struct sock *sk, int optname,
include/linux/security.h
1714
void security_sctp_sk_clone(struct sctp_association *asoc, struct sock *sk,
include/linux/security.h
1715
struct sock *newsk);
include/linux/security.h
1718
int security_mptcp_add_subflow(struct sock *sk, struct sock *ssk);
include/linux/security.h
1721
static inline int security_netlink_send(struct sock *sk, struct sk_buff *skb)
include/linux/security.h
1726
static inline int security_unix_stream_connect(struct sock *sock,
include/linux/security.h
1727
struct sock *other,
include/linux/security.h
1728
struct sock *newsk)
include/linux/security.h
1733
static inline int security_unix_may_send(struct socket *sock,
include/linux/security.h
1745
static inline int security_socket_post_create(struct socket *sock,
include/linux/security.h
1759
static inline int security_socket_bind(struct socket *sock,
include/linux/security.h
1766
static inline int security_socket_connect(struct socket *sock,
include/linux/security.h
1773
static inline int security_socket_listen(struct socket *sock, int backlog)
include/linux/security.h
1778
static inline int security_socket_accept(struct socket *sock,
include/linux/security.h
1784
static inline int security_socket_sendmsg(struct socket *sock,
include/linux/security.h
1790
static inline int security_socket_recvmsg(struct socket *sock,
include/linux/security.h
1797
static inline int security_socket_getsockname(struct socket *sock)
include/linux/security.h
1802
static inline int security_socket_getpeername(struct socket *sock)
include/linux/security.h
1807
static inline int security_socket_getsockopt(struct socket *sock,
include/linux/security.h
1813
static inline int security_socket_setsockopt(struct socket *sock,
include/linux/security.h
1819
static inline int security_socket_shutdown(struct socket *sock, int how)
include/linux/security.h
1823
static inline int security_sock_rcv_skb(struct sock *sk,
include/linux/security.h
1829
static inline int security_socket_getpeersec_stream(struct socket *sock,
include/linux/security.h
1837
static inline int security_socket_getpeersec_dgram(struct socket *sock, struct sk_buff *skb, u32 *secid)
include/linux/security.h
1842
static inline int security_sk_alloc(struct sock *sk, int family, gfp_t priority)
include/linux/security.h
1847
static inline void security_sk_free(struct sock *sk)
include/linux/security.h
1851
static inline void security_sk_clone(const struct sock *sk, struct sock *newsk)
include/linux/security.h
1855
static inline void security_sk_classify_flow(const struct sock *sk,
include/linux/security.h
1865
static inline void security_sock_graft(struct sock *sk, struct socket *parent)
include/linux/security.h
1869
static inline int security_inet_conn_request(const struct sock *sk,
include/linux/security.h
1875
static inline void security_inet_csk_clone(struct sock *newsk,
include/linux/security.h
1880
static inline void security_inet_conn_established(struct sock *sk,
include/linux/security.h
1917
static inline int security_tun_dev_attach(struct sock *sk, void *security)
include/linux/security.h
1933
static inline int security_sctp_bind_connect(struct sock *sk, int optname,
include/linux/security.h
1941
struct sock *sk,
include/linux/security.h
1942
struct sock *newsk)
include/linux/security.h
1952
static inline int security_mptcp_add_subflow(struct sock *sk, struct sock *ssk)
include/linux/security.h
1960
int security_unix_find(const struct path *path, struct sock *other, int flags);
include/linux/security.h
1963
static inline int security_unix_find(const struct path *path, struct sock *other, int flags)
include/linux/security.h
206
struct sock;
include/linux/skbuff.h
1316
void __fix_address sk_skb_reason_drop(const struct sock *sk,
include/linux/skbuff.h
1412
static inline bool skb_fclone_busy(const struct sock *sk,
include/linux/skbuff.h
1756
struct ubuf_info *msg_zerocopy_realloc(struct sock *sk, size_t size,
include/linux/skbuff.h
1763
int __zerocopy_sg_from_iter(struct msghdr *msg, struct sock *sk,
include/linux/skbuff.h
1778
int skb_zerocopy_iter_stream(struct sock *sk, struct sk_buff *skb,
include/linux/skbuff.h
4219
int __skb_wait_for_more_packets(struct sock *sk, struct sk_buff_head *queue,
include/linux/skbuff.h
4226
struct sk_buff *__skb_try_recv_datagram(struct sock *sk,
include/linux/skbuff.h
4230
struct sk_buff *__skb_recv_datagram(struct sock *sk,
include/linux/skbuff.h
4233
struct sk_buff *skb_recv_datagram(struct sock *sk, unsigned int flags, int *err);
include/linux/skbuff.h
4234
__poll_t datagram_poll_queue(struct file *file, struct socket *sock,
include/linux/skbuff.h
4237
__poll_t datagram_poll(struct file *file, struct socket *sock,
include/linux/skbuff.h
4255
void skb_free_datagram(struct sock *sk, struct sk_buff *skb);
include/linux/skbuff.h
4256
int skb_kill_datagram(struct sock *sk, struct sk_buff *skb, unsigned int flags);
include/linux/skbuff.h
4261
int skb_splice_bits(struct sk_buff *skb, struct sock *sk, unsigned int offset,
include/linux/skbuff.h
4264
int skb_send_sock_locked(struct sock *sk, struct sk_buff *skb, int offset,
include/linux/skbuff.h
4266
int skb_send_sock_locked_with_flags(struct sock *sk, struct sk_buff *skb,
include/linux/skbuff.h
4268
int skb_send_sock(struct sock *sk, struct sk_buff *skb, int offset, int len);
include/linux/skbuff.h
4719
struct sock *sk, int tstype);
include/linux/skbuff.h
907
struct sock *sk;
include/linux/skmsg.h
107
void (*saved_unhash)(struct sock *sk);
include/linux/skmsg.h
108
void (*saved_destroy)(struct sock *sk);
include/linux/skmsg.h
109
void (*saved_close)(struct sock *sk, long timeout);
include/linux/skmsg.h
110
void (*saved_write_space)(struct sock *sk);
include/linux/skmsg.h
111
void (*saved_data_ready)(struct sock *sk);
include/linux/skmsg.h
117
int (*psock_update_sk_prot)(struct sock *sk, struct sk_psock *psock,
include/linux/skmsg.h
123
struct sock *sk_pair;
include/linux/skmsg.h
127
int sk_msg_alloc(struct sock *sk, struct sk_msg *msg, int len,
include/linux/skmsg.h
129
int sk_msg_clone(struct sock *sk, struct sk_msg *dst, struct sk_msg *src,
include/linux/skmsg.h
131
void sk_msg_trim(struct sock *sk, struct sk_msg *msg, int len);
include/linux/skmsg.h
132
int sk_msg_free(struct sock *sk, struct sk_msg *msg);
include/linux/skmsg.h
133
int sk_msg_free_nocharge(struct sock *sk, struct sk_msg *msg);
include/linux/skmsg.h
134
void sk_msg_free_partial(struct sock *sk, struct sk_msg *msg, u32 bytes);
include/linux/skmsg.h
135
void sk_msg_free_partial_nocharge(struct sock *sk, struct sk_msg *msg,
include/linux/skmsg.h
138
void sk_msg_return(struct sock *sk, struct sk_msg *msg, int bytes);
include/linux/skmsg.h
139
void sk_msg_return_zero(struct sock *sk, struct sk_msg *msg, int bytes);
include/linux/skmsg.h
141
int sk_msg_zerocopy_from_iter(struct sock *sk, struct iov_iter *from,
include/linux/skmsg.h
143
int sk_msg_memcopy_from_iter(struct sock *sk, struct iov_iter *from,
include/linux/skmsg.h
145
int sk_msg_recvmsg(struct sock *sk, struct sk_psock *psock, struct msghdr *msg,
include/linux/skmsg.h
147
int __sk_msg_recvmsg(struct sock *sk, struct sk_psock *psock, struct msghdr *msg,
include/linux/skmsg.h
149
bool sk_msg_is_readable(struct sock *sk);
include/linux/skmsg.h
303
static inline struct sk_psock *sk_psock(const struct sock *sk)
include/linux/skmsg.h
327
static inline void sock_drop(struct sock *sk, struct sk_buff *skb)
include/linux/skmsg.h
430
struct sock *sk = psock->sk;
include/linux/skmsg.h
436
struct sk_psock *sk_psock_init(struct sock *sk, int node);
include/linux/skmsg.h
440
int sk_psock_init_strp(struct sock *sk, struct sk_psock *psock);
include/linux/skmsg.h
441
void sk_psock_start_strp(struct sock *sk, struct sk_psock *psock);
include/linux/skmsg.h
442
void sk_psock_stop_strp(struct sock *sk, struct sk_psock *psock);
include/linux/skmsg.h
444
static inline int sk_psock_init_strp(struct sock *sk, struct sk_psock *psock)
include/linux/skmsg.h
449
static inline void sk_psock_start_strp(struct sock *sk, struct sk_psock *psock)
include/linux/skmsg.h
453
static inline void sk_psock_stop_strp(struct sock *sk, struct sk_psock *psock)
include/linux/skmsg.h
458
void sk_psock_start_verdict(struct sock *sk, struct sk_psock *psock);
include/linux/skmsg.h
459
void sk_psock_stop_verdict(struct sock *sk, struct sk_psock *psock);
include/linux/skmsg.h
461
int sk_psock_msg_verdict(struct sock *sk, struct sk_psock *psock,
include/linux/skmsg.h
488
static inline void sk_psock_restore_proto(struct sock *sk,
include/linux/skmsg.h
495
static inline struct sk_psock *sk_psock_get(struct sock *sk)
include/linux/skmsg.h
507
void sk_psock_drop(struct sock *sk, struct sk_psock *psock);
include/linux/skmsg.h
509
static inline void sk_psock_put(struct sock *sk, struct sk_psock *psock)
include/linux/skmsg.h
515
static inline void sk_psock_data_ready(struct sock *sk, struct sk_psock *psock)
include/linux/skmsg.h
52
struct sock *sk_redir;
include/linux/skmsg.h
53
struct sock *sk;
include/linux/skmsg.h
555
static inline ssize_t sk_msg_first_len(struct sock *sk)
include/linux/skmsg.h
604
static inline void skb_bpf_set_redir(struct sk_buff *skb, struct sock *sk_redir,
include/linux/skmsg.h
612
static inline struct sock *skb_bpf_redirect_fetch(const struct sk_buff *skb)
include/linux/skmsg.h
616
return (struct sock *)(sk_redir & BPF_F_PTR_MASK);
include/linux/skmsg.h
85
struct sock *sk;
include/linux/skmsg.h
86
struct sock *sk_redir;
include/linux/soc/pxa/smemc.h
7
void pxa_smemc_set_pcmcia_timing(int sock, u32 mcmem, u32 mcatt, u32 mcio);
include/linux/soc/qcom/qmi.h
229
struct socket *sock;
include/linux/sock_diag.h
13
struct sock;
include/linux/sock_diag.h
19
int (*get_info)(struct sk_buff *skb, struct sock *sk);
include/linux/sock_diag.h
34
u64 __sock_gen_cookie(struct sock *sk);
include/linux/sock_diag.h
36
static inline u64 sock_gen_cookie(struct sock *sk)
include/linux/sock_diag.h
47
int sock_diag_check_cookie(struct sock *sk, const __u32 *cookie);
include/linux/sock_diag.h
48
void sock_diag_save_cookie(struct sock *sk, __u32 *cookie);
include/linux/sock_diag.h
50
int sock_diag_put_meminfo(struct sock *sk, struct sk_buff *skb, int attr);
include/linux/sock_diag.h
51
int sock_diag_put_filterinfo(bool may_report_filterinfo, struct sock *sk,
include/linux/sock_diag.h
55
enum sknetlink_groups sock_diag_destroy_group(const struct sock *sk)
include/linux/sock_diag.h
88
bool sock_diag_has_destroy_listeners(const struct sock *sk)
include/linux/sock_diag.h
96
void sock_diag_broadcast_destroy(struct sock *sk);
include/linux/sock_diag.h
98
int sock_diag_destroy(struct sock *sk, int err);
include/linux/socket.h
17
struct sock;
include/linux/socket.h
437
extern long __sys_sendmsg_sock(struct socket *sock, struct msghdr *msg,
include/linux/socket.h
439
extern long __sys_recvmsg_sock(struct socket *sock, struct msghdr *msg,
include/linux/socket.h
462
extern int __sys_bind_socket(struct socket *sock, struct sockaddr_storage *address,
include/linux/socket.h
469
extern int __sys_listen_socket(struct socket *sock, int backlog);
include/linux/socket.h
470
extern int do_getsockname(struct socket *sock, int peer,
include/linux/socket.h
476
extern int __sys_shutdown_sock(struct socket *sock, int how);
include/linux/sunrpc/svcsock.h
22
struct sock * sk_sk; /* INET layer */
include/linux/sunrpc/svcsock.h
25
void (*sk_ostate)(struct sock *);
include/linux/sunrpc/svcsock.h
26
void (*sk_odata)(struct sock *);
include/linux/sunrpc/svcsock.h
27
void (*sk_owspace)(struct sock *);
include/linux/sunrpc/xprtsock.h
25
struct socket * sock;
include/linux/sunrpc/xprtsock.h
26
struct sock * inet;
include/linux/sunrpc/xprtsock.h
77
void (*old_data_ready)(struct sock *);
include/linux/sunrpc/xprtsock.h
78
void (*old_state_change)(struct sock *);
include/linux/sunrpc/xprtsock.h
79
void (*old_write_space)(struct sock *);
include/linux/sunrpc/xprtsock.h
80
void (*old_error_report)(struct sock *);
include/linux/tcp.h
216
void (*tcp_clean_acked)(struct sock *sk, u32 acked_seq);
include/linux/tcp.h
507
bool (*smc_hs_congested)(const struct sock *sk);
include/linux/tcp.h
589
static inline struct tcp_timewait_sock *tcp_twsk(const struct sock *sk)
include/linux/tcp.h
594
static inline bool tcp_passive_fastopen(const struct sock *sk)
include/linux/tcp.h
600
static inline void fastopen_queue_tune(struct sock *sk, int backlog)
include/linux/tcp.h
627
struct sk_buff *tcp_get_timestamping_opt_stats(const struct sock *sk,
include/linux/tcp.h
644
void __tcp_sock_set_cork(struct sock *sk, bool on);
include/linux/tcp.h
645
void tcp_sock_set_cork(struct sock *sk, bool on);
include/linux/tcp.h
646
int tcp_sock_set_keepcnt(struct sock *sk, int val);
include/linux/tcp.h
647
int tcp_sock_set_keepidle_locked(struct sock *sk, int val);
include/linux/tcp.h
648
int tcp_sock_set_keepidle(struct sock *sk, int val);
include/linux/tcp.h
649
int tcp_sock_set_keepintvl(struct sock *sk, int val);
include/linux/tcp.h
650
void __tcp_sock_set_nodelay(struct sock *sk, bool on);
include/linux/tcp.h
651
void tcp_sock_set_nodelay(struct sock *sk);
include/linux/tcp.h
652
void tcp_sock_set_quickack(struct sock *sk, int val);
include/linux/tcp.h
653
int tcp_sock_set_syncnt(struct sock *sk, int val);
include/linux/tcp.h
654
int tcp_sock_set_user_timeout(struct sock *sk, int val);
include/linux/tcp.h
655
int tcp_sock_set_maxseg(struct sock *sk, int val);
include/linux/tifm.h
123
struct tifm_dev *sock);
include/linux/tifm.h
125
struct tifm_dev *sock);
include/linux/tifm.h
142
void tifm_eject(struct tifm_dev *sock);
include/linux/tifm.h
143
int tifm_has_ms_pif(struct tifm_dev *sock);
include/linux/tifm.h
144
int tifm_map_sg(struct tifm_dev *sock, struct scatterlist *sg, int nents,
include/linux/tifm.h
146
void tifm_unmap_sg(struct tifm_dev *sock, struct scatterlist *sg, int nents,
include/linux/tifm.h
93
void (*card_event)(struct tifm_dev *sock);
include/linux/tifm.h
94
void (*data_event)(struct tifm_dev *sock);
include/linux/udp.h
131
static inline int udp_set_peek_off(struct sock *sk, int val)
include/linux/udp.h
138
static inline void udp_set_no_check6_tx(struct sock *sk, bool val)
include/linux/udp.h
143
static inline void udp_set_no_check6_rx(struct sock *sk, bool val)
include/linux/udp.h
148
static inline bool udp_get_no_check6_tx(const struct sock *sk)
include/linux/udp.h
153
static inline bool udp_get_no_check6_rx(const struct sock *sk)
include/linux/udp.h
158
static inline void udp_cmsg_recv(struct msghdr *msg, struct sock *sk,
include/linux/udp.h
187
static inline bool udp_unexpected_gso(struct sock *sk, struct sk_buff *skb)
include/linux/udp.h
213
static inline void udp_allow_gso(struct sock *sk)
include/linux/udp.h
233
static inline struct sock *udp_tunnel_sk(const struct net *net, bool is_ipv6)
include/linux/udp.h
79
int (*encap_rcv)(struct sock *sk, struct sk_buff *skb);
include/linux/udp.h
80
void (*encap_err_rcv)(struct sock *sk, struct sk_buff *skb, int err,
include/linux/udp.h
82
int (*encap_err_lookup)(struct sock *sk, struct sk_buff *skb);
include/linux/udp.h
83
void (*encap_destroy)(struct sock *sk);
include/linux/udp.h
86
struct sk_buff * (*gro_receive)(struct sock *sk,
include/linux/udp.h
89
int (*gro_complete)(struct sock *sk,
include/net/addrconf.h
147
bool inet_rcv_saddr_equal(const struct sock *sk, const struct sock *sk2,
include/net/addrconf.h
149
bool inet_rcv_saddr_any(const struct sock *sk);
include/net/addrconf.h
253
int ipv6_sock_mc_join(struct sock *sk, int ifindex,
include/net/addrconf.h
255
int ipv6_sock_mc_drop(struct sock *sk, int ifindex,
include/net/addrconf.h
257
void __ipv6_sock_mc_close(struct sock *sk);
include/net/addrconf.h
258
void ipv6_sock_mc_close(struct sock *sk);
include/net/addrconf.h
259
bool inet6_mc_check(const struct sock *sk, const struct in6_addr *mc_addr,
include/net/addrconf.h
310
int ipv6_sock_ac_join(struct sock *sk, int ifindex,
include/net/addrconf.h
312
int ipv6_sock_ac_drop(struct sock *sk, int ifindex,
include/net/addrconf.h
314
void __ipv6_sock_ac_close(struct sock *sk);
include/net/addrconf.h
315
void ipv6_sock_ac_close(struct sock *sk);
include/net/af_rxrpc.h
15
struct sock;
include/net/af_rxrpc.h
41
void (*notify_new_call)(struct sock *sk, struct rxrpc_call *call,
include/net/af_rxrpc.h
45
void (*notify_oob)(struct sock *sk, struct sk_buff *oob);
include/net/af_rxrpc.h
48
typedef void (*rxrpc_notify_rx_t)(struct sock *, struct rxrpc_call *,
include/net/af_rxrpc.h
50
typedef void (*rxrpc_notify_end_tx_t)(struct sock *, struct rxrpc_call *,
include/net/af_rxrpc.h
53
void rxrpc_kernel_set_notifications(struct socket *sock,
include/net/af_rxrpc.h
55
struct rxrpc_call *rxrpc_kernel_begin_call(struct socket *sock,
include/net/af_rxrpc.h
74
void rxrpc_kernel_shutdown_call(struct socket *sock, struct rxrpc_call *call);
include/net/af_rxrpc.h
75
void rxrpc_kernel_put_call(struct socket *sock, struct rxrpc_call *call);
include/net/af_rxrpc.h
76
struct rxrpc_peer *rxrpc_kernel_lookup_peer(struct socket *sock,
include/net/af_rxrpc.h
80
struct rxrpc_peer *rxrpc_kernel_get_call_peer(struct socket *sock, struct rxrpc_call *call);
include/net/af_rxrpc.h
86
int rxrpc_kernel_charge_accept(struct socket *sock, rxrpc_notify_rx_t notify_rx,
include/net/af_rxrpc.h
92
int rxrpc_sock_set_min_security_level(struct sock *sk, unsigned int val);
include/net/af_rxrpc.h
93
int rxrpc_sock_set_security_keyring(struct sock *, struct key *);
include/net/af_rxrpc.h
94
int rxrpc_sock_set_manage_response(struct sock *sk, bool set);
include/net/af_rxrpc.h
99
struct sk_buff *rxrpc_kernel_dequeue_oob(struct socket *sock,
include/net/af_unix.h
38
struct sock sk;
include/net/af_unix.h
42
struct sock *peer;
include/net/af_unix.h
43
struct sock *listener;
include/net/af_vsock.h
220
void vsock_add_pending(struct sock *listener, struct sock *pending);
include/net/af_vsock.h
221
void vsock_remove_pending(struct sock *listener, struct sock *pending);
include/net/af_vsock.h
222
void vsock_enqueue_accept(struct sock *listener, struct sock *connected);
include/net/af_vsock.h
223
void vsock_pending_to_accept(struct sock *listener, struct sock *pending);
include/net/af_vsock.h
227
struct sock *vsock_find_bound_socket(struct sockaddr_vm *addr);
include/net/af_vsock.h
228
struct sock *vsock_find_connected_socket(struct sockaddr_vm *src,
include/net/af_vsock.h
230
struct sock *vsock_find_bound_socket_net(struct sockaddr_vm *addr,
include/net/af_vsock.h
232
struct sock *vsock_find_connected_socket_net(struct sockaddr_vm *src,
include/net/af_vsock.h
237
void (*fn)(struct sock *sk));
include/net/af_vsock.h
240
void vsock_linger(struct sock *sk);
include/net/af_vsock.h
253
int __vsock_connectible_recvmsg(struct socket *sock, struct msghdr *msg, size_t len,
include/net/af_vsock.h
255
int vsock_connectible_recvmsg(struct socket *sock, struct msghdr *msg, size_t len,
include/net/af_vsock.h
257
int __vsock_dgram_recvmsg(struct socket *sock, struct msghdr *msg,
include/net/af_vsock.h
259
int vsock_dgram_recvmsg(struct socket *sock, struct msghdr *msg,
include/net/af_vsock.h
264
int vsock_bpf_update_proto(struct sock *sk, struct sk_psock *psock, bool restore);
include/net/af_vsock.h
31
struct sock sk;
include/net/af_vsock.h
50
struct sock *listener;
include/net/af_vsock.h
82
struct sock *vsock_create_connected(struct sock *parent);
include/net/af_vsock.h
83
void vsock_data_ready(struct sock *sk);
include/net/amt.h
334
struct sock __rcu *sk;
include/net/bluetooth/bluetooth.h
396
struct sock sk;
include/net/bluetooth/bluetooth.h
399
struct sock *parent;
include/net/bluetooth/bluetooth.h
402
void (*skb_put_cmsg)(struct sk_buff *, struct msghdr *, struct sock *);
include/net/bluetooth/bluetooth.h
422
void bt_sock_link(struct bt_sock_list *l, struct sock *s);
include/net/bluetooth/bluetooth.h
423
void bt_sock_unlink(struct bt_sock_list *l, struct sock *s);
include/net/bluetooth/bluetooth.h
424
bool bt_sock_linked(struct bt_sock_list *l, struct sock *s);
include/net/bluetooth/bluetooth.h
425
struct sock *bt_sock_alloc(struct net *net, struct socket *sock,
include/net/bluetooth/bluetooth.h
427
int bt_sock_recvmsg(struct socket *sock, struct msghdr *msg, size_t len,
include/net/bluetooth/bluetooth.h
429
int bt_sock_stream_recvmsg(struct socket *sock, struct msghdr *msg,
include/net/bluetooth/bluetooth.h
431
__poll_t bt_sock_poll(struct file *file, struct socket *sock, poll_table *wait);
include/net/bluetooth/bluetooth.h
432
int bt_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg);
include/net/bluetooth/bluetooth.h
433
int bt_sock_wait_state(struct sock *sk, int state, unsigned long timeo);
include/net/bluetooth/bluetooth.h
434
int bt_sock_wait_ready(struct sock *sk, unsigned int msg_flags);
include/net/bluetooth/bluetooth.h
436
void bt_accept_enqueue(struct sock *parent, struct sock *sk, bool bh);
include/net/bluetooth/bluetooth.h
437
void bt_accept_unlink(struct sock *sk);
include/net/bluetooth/bluetooth.h
438
struct sock *bt_accept_dequeue(struct sock *parent, struct socket *newsock);
include/net/bluetooth/bluetooth.h
474
struct sock *sk;
include/net/bluetooth/bluetooth.h
523
static inline struct sk_buff *bt_skb_send_alloc(struct sock *sk,
include/net/bluetooth/bluetooth.h
552
static inline struct sk_buff *bt_skb_sendmsg(struct sock *sk,
include/net/bluetooth/bluetooth.h
582
static inline struct sk_buff *bt_skb_sendmmsg(struct sock *sk,
include/net/bluetooth/bluetooth.h
619
void hci_sock_set_flag(struct sock *sk, int nr);
include/net/bluetooth/bluetooth.h
620
void hci_sock_clear_flag(struct sock *sk, int nr);
include/net/bluetooth/bluetooth.h
621
int hci_sock_test_flag(struct sock *sk, int nr);
include/net/bluetooth/bluetooth.h
622
unsigned short hci_sock_get_channel(struct sock *sk);
include/net/bluetooth/bluetooth.h
623
u32 hci_sock_get_cookie(struct sock *sk);
include/net/bluetooth/bluetooth.h
678
void mgmt_cleanup(struct sock *sk);
include/net/bluetooth/bluetooth.h
680
void bt_sock_reclassify_lock(struct sock *sk, int proto);
include/net/bluetooth/hci_core.h
1637
static inline void hci_sockcm_init(struct sockcm_cookie *sockc, struct sock *sk)
include/net/bluetooth/hci_core.h
2350
int flag, struct sock *skip_sk);
include/net/bluetooth/hci_core.h
2354
int flag, struct sock *skip_sk);
include/net/bluetooth/hci_core.h
2365
int (*func) (struct sock *sk, struct hci_dev *hdev, void *data,
include/net/bluetooth/hci_core.h
2376
void (*hdev_init) (struct sock *sk, struct hci_dev *hdev);
include/net/bluetooth/hci_core.h
2490
void mgmt_advertising_added(struct sock *sk, struct hci_dev *hdev,
include/net/bluetooth/hci_core.h
2492
void mgmt_advertising_removed(struct sock *sk, struct hci_dev *hdev,
include/net/bluetooth/hci_core.h
2494
int mgmt_phy_configuration_changed(struct hci_dev *hdev, struct sock *skip);
include/net/bluetooth/hci_sync.h
124
int hci_remove_advertising_sync(struct hci_dev *hdev, struct sock *sk,
include/net/bluetooth/hci_sync.h
127
int hci_clear_adv_instance_sync(struct hci_dev *hdev, struct sock *sk,
include/net/bluetooth/hci_sync.h
142
struct sock *sk);
include/net/bluetooth/hci_sync.h
144
struct sock *sk);
include/net/bluetooth/hci_sync.h
42
const void *param, struct sock *sk);
include/net/bluetooth/hci_sync.h
56
struct sock *sk);
include/net/bluetooth/hci_sync.h
61
struct sock *sk);
include/net/bluetooth/l2cap.h
947
bool l2cap_is_socket(struct socket *sock);
include/net/bluetooth/rfcomm.h
153
struct socket *sock;
include/net/bluetooth/rfcomm.h
361
int rfcomm_dev_ioctl(struct sock *sk, unsigned int cmd, void __user *arg);
include/net/bpf_sk_storage.h
17
struct sock;
include/net/bpf_sk_storage.h
19
void bpf_sk_storage_free(struct sock *sk);
include/net/bpf_sk_storage.h
32
int bpf_sk_storage_clone(const struct sock *sk, struct sock *newsk);
include/net/bpf_sk_storage.h
37
struct sock *sk, struct sk_buff *skb,
include/net/bpf_sk_storage.h
41
static inline int bpf_sk_storage_clone(const struct sock *sk,
include/net/bpf_sk_storage.h
42
struct sock *newsk)
include/net/bpf_sk_storage.h
55
struct sock *sk, struct sk_buff *skb,
include/net/busy_poll.h
101
static inline bool sk_busy_loop_timeout(struct sock *sk,
include/net/busy_poll.h
117
static inline void sk_busy_loop(struct sock *sk, int nonblock)
include/net/busy_poll.h
149
static inline void sk_mark_napi_id(struct sock *sk, const struct sk_buff *skb)
include/net/busy_poll.h
162
static inline void sk_mark_napi_id_set(struct sock *sk,
include/net/busy_poll.h
171
static inline void __sk_mark_napi_id_once(struct sock *sk, unsigned int napi_id)
include/net/busy_poll.h
180
static inline void sk_mark_napi_id_once(struct sock *sk,
include/net/busy_poll.h
45
static inline bool sk_can_busy_loop(const struct sock *sk)
include/net/busy_poll.h
69
static inline bool sk_can_busy_loop(struct sock *sk)
include/net/cfg80211.h
3808
struct socket *sock;
include/net/cipso_ipv4.h
184
int cipso_v4_sock_setattr(struct sock *sk,
include/net/cipso_ipv4.h
188
void cipso_v4_sock_delattr(struct sock *sk);
include/net/cipso_ipv4.h
189
int cipso_v4_sock_getattr(struct sock *sk, struct netlbl_lsm_secattr *secattr);
include/net/cipso_ipv4.h
216
static inline int cipso_v4_sock_setattr(struct sock *sk,
include/net/cipso_ipv4.h
224
static inline void cipso_v4_sock_delattr(struct sock *sk)
include/net/cipso_ipv4.h
228
static inline int cipso_v4_sock_getattr(struct sock *sk,
include/net/cls_cgroup.h
67
struct sock *sk = skb_to_full_sk(skb);
include/net/compat.h
55
int cmsghdr_from_user_compat_to_kern(struct msghdr *, struct sock *,
include/net/compat.h
6
struct sock;
include/net/dst.h
392
int dst_discard_out(struct net *net, struct sock *sk, struct sk_buff *skb);
include/net/dst.h
40
int (*output)(struct net *net, struct sock *sk, struct sk_buff *skb);
include/net/dst.h
463
INDIRECT_CALLABLE_DECLARE(int ip6_output(struct net *, struct sock *,
include/net/dst.h
465
INDIRECT_CALLABLE_DECLARE(int ip_output(struct net *, struct sock *,
include/net/dst.h
468
static inline int dst_output(struct net *net, struct sock *sk, struct sk_buff *skb)
include/net/dst.h
508
const struct sock *sk,
include/net/dst.h
516
const struct flowi *fl, const struct sock *sk,
include/net/dst.h
525
const struct sock *sk,
include/net/dst.h
538
const struct flowi *fl, const struct sock *sk,
include/net/dst.h
544
const struct sock *sk, int flags,
include/net/dst.h
548
const struct flowi *fl, const struct sock *sk,
include/net/dst.h
611
void dst_blackhole_update_pmtu(struct dst_entry *dst, struct sock *sk,
include/net/dst.h
613
void dst_blackhole_redirect(struct dst_entry *dst, struct sock *sk,
include/net/dst_ops.h
12
struct sock;
include/net/dst_ops.h
27
void (*negative_advice)(struct sock *sk, struct dst_entry *);
include/net/dst_ops.h
29
void (*update_pmtu)(struct dst_entry *dst, struct sock *sk,
include/net/dst_ops.h
32
void (*redirect)(struct dst_entry *dst, struct sock *sk,
include/net/dst_ops.h
34
int (*local_out)(struct net *net, struct sock *sk, struct sk_buff *skb);
include/net/espintcp.h
10
int espintcp_push_skb(struct sock *sk, struct sk_buff *skb);
include/net/espintcp.h
11
int espintcp_queue_out(struct sock *sk, struct sk_buff *skb);
include/net/espintcp.h
12
bool tcp_is_ulp_esp(struct sock *sk);
include/net/espintcp.h
26
void (*saved_data_ready)(struct sock *sk);
include/net/espintcp.h
27
void (*saved_write_space)(struct sock *sk);
include/net/espintcp.h
28
void (*saved_destruct)(struct sock *sk);
include/net/espintcp.h
33
static inline struct espintcp_ctx *espintcp_getctx(const struct sock *sk)
include/net/genetlink.h
329
void *__genl_sk_priv_get(struct genl_family *family, struct sock *sk);
include/net/genetlink.h
330
void *genl_sk_priv_get(struct genl_family *family, struct sock *sk);
include/net/gro.h
124
struct sock *sk,
include/net/gro.h
419
struct udphdr *uh, struct sock *sk);
include/net/handshake.h
42
bool tls_handshake_cancel(struct sock *sk);
include/net/handshake.h
43
void tls_handshake_close(struct socket *sock);
include/net/handshake.h
45
u8 tls_get_record_type(const struct sock *sk, const struct cmsghdr *msg);
include/net/handshake.h
46
void tls_alert_recv(const struct sock *sk, const struct msghdr *msg,
include/net/inet6_connection_sock.h
18
struct sock;
include/net/inet6_connection_sock.h
21
struct dst_entry *inet6_csk_route_socket(struct sock *sk,
include/net/inet6_connection_sock.h
24
struct dst_entry *inet6_csk_route_req(const struct sock *sk,
include/net/inet6_connection_sock.h
29
int inet6_csk_xmit(struct sock *sk, struct sk_buff *skb, struct flowi *fl);
include/net/inet6_hashtables.h
106
struct sock *inet6_steal_sock(struct net *net, struct sk_buff *skb, int doff,
include/net/inet6_hashtables.h
111
struct sock *sk, *reuse_sk;
include/net/inet6_hashtables.h
145
static inline struct sock *__inet6_lookup_skb(struct sk_buff *skb, int doff,
include/net/inet6_hashtables.h
153
struct sock *sk;
include/net/inet6_hashtables.h
167
struct sock *inet6_lookup(const struct net *net, struct sk_buff *skb, int doff,
include/net/inet6_hashtables.h
172
static inline bool inet6_match(const struct net *net, const struct sock *sk,
include/net/inet6_hashtables.h
45
struct sock *__inet6_lookup_established(const struct net *net,
include/net/inet6_hashtables.h
60
struct sock *inet6_lookup_reuseport(const struct net *net, struct sock *sk,
include/net/inet6_hashtables.h
68
struct sock *inet6_lookup_listener(const struct net *net,
include/net/inet6_hashtables.h
76
struct sock *inet6_lookup_run_sk_lookup(const struct net *net,
include/net/inet6_hashtables.h
85
static inline struct sock *__inet6_lookup(const struct net *net,
include/net/inet6_hashtables.h
94
struct sock *sk = __inet6_lookup_established(net, saddr, sport,
include/net/inet_common.h
21
struct sock;
include/net/inet_common.h
24
int inet_release(struct socket *sock);
include/net/inet_common.h
25
int inet_stream_connect(struct socket *sock, struct sockaddr_unsized *uaddr,
include/net/inet_common.h
27
int __inet_stream_connect(struct socket *sock, struct sockaddr_unsized *uaddr,
include/net/inet_common.h
29
int inet_dgram_connect(struct socket *sock, struct sockaddr_unsized *uaddr,
include/net/inet_common.h
31
int inet_accept(struct socket *sock, struct socket *newsock,
include/net/inet_common.h
33
void __inet_accept(struct socket *sock, struct socket *newsock,
include/net/inet_common.h
34
struct sock *newsk);
include/net/inet_common.h
35
int inet_send_prepare(struct sock *sk);
include/net/inet_common.h
36
int inet_sendmsg(struct socket *sock, struct msghdr *msg, size_t size);
include/net/inet_common.h
37
void inet_splice_eof(struct socket *sock);
include/net/inet_common.h
38
int inet_recvmsg(struct socket *sock, struct msghdr *msg, size_t size,
include/net/inet_common.h
40
int inet_shutdown(struct socket *sock, int how);
include/net/inet_common.h
41
int inet_listen(struct socket *sock, int backlog);
include/net/inet_common.h
42
int __inet_listen_sk(struct sock *sk, int backlog);
include/net/inet_common.h
43
void inet_sock_destruct(struct sock *sk);
include/net/inet_common.h
44
int inet_bind(struct socket *sock, struct sockaddr_unsized *uaddr, int addr_len);
include/net/inet_common.h
45
int inet_bind_sk(struct sock *sk, struct sockaddr_unsized *uaddr, int addr_len);
include/net/inet_common.h
54
int __inet_bind(struct sock *sk, struct sockaddr_unsized *uaddr, int addr_len,
include/net/inet_common.h
56
int inet_getname(struct socket *sock, struct sockaddr *uaddr,
include/net/inet_common.h
58
int inet_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg);
include/net/inet_common.h
59
int inet_ctl_sock_create(struct sock **sk, unsigned short family,
include/net/inet_common.h
62
int inet_recv_error(struct sock *sk, struct msghdr *msg, int len);
include/net/inet_common.h
69
static inline void inet_ctl_sock_destroy(struct sock *sk)
include/net/inet_connection_sock.h
101
unsigned int (*icsk_sync_mss)(struct sock *sk, u32 pmtu);
include/net/inet_connection_sock.h
153
static inline void *inet_csk_ca(const struct sock *sk)
include/net/inet_connection_sock.h
158
struct sock *inet_csk_clone_lock(const struct sock *sk,
include/net/inet_connection_sock.h
171
void inet_csk_init_xmit_timers(struct sock *sk,
include/net/inet_connection_sock.h
175
void inet_csk_clear_xmit_timers(struct sock *sk);
include/net/inet_connection_sock.h
176
void inet_csk_clear_xmit_timers_sync(struct sock *sk);
include/net/inet_connection_sock.h
178
static inline void inet_csk_schedule_ack(struct sock *sk)
include/net/inet_connection_sock.h
183
static inline int inet_csk_ack_scheduled(const struct sock *sk)
include/net/inet_connection_sock.h
188
static inline void inet_csk_delack_init(struct sock *sk)
include/net/inet_connection_sock.h
193
static inline unsigned long tcp_timeout_expires(const struct sock *sk)
include/net/inet_connection_sock.h
204
static inline void inet_csk_clear_xmit_timer(struct sock *sk, const int what)
include/net/inet_connection_sock.h
227
static inline void inet_csk_reset_xmit_timer(struct sock *sk, const int what,
include/net/inet_connection_sock.h
262
struct sock *inet_csk_accept(struct sock *sk, struct proto_accept_arg *arg);
include/net/inet_connection_sock.h
264
int inet_csk_get_port(struct sock *sk, unsigned short snum);
include/net/inet_connection_sock.h
266
struct dst_entry *inet_csk_route_req(const struct sock *sk, struct flowi4 *fl4,
include/net/inet_connection_sock.h
268
struct dst_entry *inet_csk_route_child_sock(const struct sock *sk,
include/net/inet_connection_sock.h
269
struct sock *newsk,
include/net/inet_connection_sock.h
272
struct sock *inet_csk_reqsk_queue_add(struct sock *sk,
include/net/inet_connection_sock.h
274
struct sock *child);
include/net/inet_connection_sock.h
275
bool inet_csk_reqsk_queue_hash_add(struct sock *sk, struct request_sock *req);
include/net/inet_connection_sock.h
276
struct sock *inet_csk_complete_hashdance(struct sock *sk, struct sock *child,
include/net/inet_connection_sock.h
280
static inline void inet_csk_reqsk_queue_added(struct sock *sk)
include/net/inet_connection_sock.h
285
static inline int inet_csk_reqsk_queue_len(const struct sock *sk)
include/net/inet_connection_sock.h
290
static inline int inet_csk_reqsk_queue_is_full(const struct sock *sk)
include/net/inet_connection_sock.h
295
bool inet_csk_reqsk_queue_drop(struct sock *sk, struct request_sock *req);
include/net/inet_connection_sock.h
296
void inet_csk_reqsk_queue_drop_and_put(struct sock *sk, struct request_sock *req);
include/net/inet_connection_sock.h
298
void inet_csk_destroy_sock(struct sock *sk);
include/net/inet_connection_sock.h
299
void inet_csk_prepare_for_destroy_sock(struct sock *sk);
include/net/inet_connection_sock.h
300
void inet_csk_prepare_forced_close(struct sock *sk);
include/net/inet_connection_sock.h
305
static inline __poll_t inet_csk_listen_poll(const struct sock *sk)
include/net/inet_connection_sock.h
311
int inet_csk_listen_start(struct sock *sk);
include/net/inet_connection_sock.h
312
void inet_csk_listen_stop(struct sock *sk);
include/net/inet_connection_sock.h
315
void inet_csk_update_fastreuse(const struct sock *sk,
include/net/inet_connection_sock.h
319
struct dst_entry *inet_csk_update_pmtu(struct sock *sk, u32 mtu);
include/net/inet_connection_sock.h
321
static inline void inet_csk_enter_pingpong_mode(struct sock *sk)
include/net/inet_connection_sock.h
327
static inline void inet_csk_exit_pingpong_mode(struct sock *sk)
include/net/inet_connection_sock.h
332
static inline bool inet_csk_in_pingpong_mode(struct sock *sk)
include/net/inet_connection_sock.h
338
static inline void inet_csk_inc_pingpong_cnt(struct sock *sk)
include/net/inet_connection_sock.h
346
static inline bool inet_csk_has_ulp(const struct sock *sk)
include/net/inet_connection_sock.h
351
static inline void inet_init_csk_locks(struct sock *sk)
include/net/inet_connection_sock.h
36
int (*queue_xmit)(struct sock *sk, struct sk_buff *skb, struct flowi *fl);
include/net/inet_connection_sock.h
38
int (*rebuild_header)(struct sock *sk);
include/net/inet_connection_sock.h
39
void (*sk_rx_dst_set)(struct sock *sk, const struct sk_buff *skb);
include/net/inet_connection_sock.h
40
int (*conn_request)(struct sock *sk, struct sk_buff *skb);
include/net/inet_connection_sock.h
41
struct sock *(*syn_recv_sock)(const struct sock *sk, struct sk_buff *skb,
include/net/inet_connection_sock.h
46
void (*opt_child_init)(struct sock *newsk,
include/net/inet_connection_sock.h
47
const struct sock *sk));
include/net/inet_connection_sock.h
48
int (*setsockopt)(struct sock *sk, int level, int optname,
include/net/inet_connection_sock.h
50
int (*getsockopt)(struct sock *sk, int level, int optname,
include/net/inet_connection_sock.h
52
void (*mtu_reduced)(struct sock *sk);
include/net/inet_ecn.h
55
static inline void __INET_ECN_xmit(struct sock *sk, bool use_ect_1)
include/net/inet_ecn.h
70
static inline void INET_ECN_xmit(struct sock *sk)
include/net/inet_ecn.h
75
static inline void INET_ECN_dontxmit(struct sock *sk)
include/net/inet_hashtables.h
180
static inline struct inet_hashinfo *tcp_get_hashinfo(const struct sock *sk)
include/net/inet_hashtables.h
231
const struct sock *sk);
include/net/inet_hashtables.h
240
const struct sock *sk);
include/net/inet_hashtables.h
244
int l3mdev, const struct sock *sk);
include/net/inet_hashtables.h
253
inet_bhashfn_portaddr(const struct inet_hashinfo *hinfo, const struct sock *sk,
include/net/inet_hashtables.h
267
static inline bool inet_use_hash2_on_bind(const struct sock *sk)
include/net/inet_hashtables.h
282
inet_bhash2_addr_any_hashbucket(const struct sock *sk, const struct net *net, int port);
include/net/inet_hashtables.h
288
int inet_bhash2_update_saddr(struct sock *sk, void *saddr, int family);
include/net/inet_hashtables.h
289
void inet_bhash2_reset_saddr(struct sock *sk);
include/net/inet_hashtables.h
291
void inet_bind_hash(struct sock *sk, struct inet_bind_bucket *tb,
include/net/inet_hashtables.h
295
int __inet_inherit_port(const struct sock *sk, struct sock *child);
include/net/inet_hashtables.h
297
void inet_put_port(struct sock *sk);
include/net/inet_hashtables.h
304
bool inet_ehash_insert(struct sock *sk, struct sock *osk, bool *found_dup_sk);
include/net/inet_hashtables.h
305
bool inet_ehash_nolisten(struct sock *sk, struct sock *osk,
include/net/inet_hashtables.h
307
int inet_hash(struct sock *sk);
include/net/inet_hashtables.h
308
void inet_unhash(struct sock *sk);
include/net/inet_hashtables.h
310
struct sock *__inet_lookup_listener(const struct net *net,
include/net/inet_hashtables.h
317
static inline struct sock *inet_lookup_listener(struct net *net,
include/net/inet_hashtables.h
356
static inline bool inet_match(const struct net *net, const struct sock *sk,
include/net/inet_hashtables.h
373
struct sock *__inet_lookup_established(const struct net *net,
include/net/inet_hashtables.h
386
struct sock *inet_lookup_reuseport(const struct net *net, struct sock *sk,
include/net/inet_hashtables.h
392
struct sock *inet_lookup_run_sk_lookup(const struct net *net,
include/net/inet_hashtables.h
399
static inline struct sock *inet_lookup_established(struct net *net,
include/net/inet_hashtables.h
408
static inline struct sock *__inet_lookup(struct net *net,
include/net/inet_hashtables.h
416
struct sock *sk;
include/net/inet_hashtables.h
428
static inline struct sock *inet_lookup(struct net *net,
include/net/inet_hashtables.h
434
struct sock *sk;
include/net/inet_hashtables.h
446
struct sock *inet_steal_sock(struct net *net, struct sk_buff *skb, int doff,
include/net/inet_hashtables.h
451
struct sock *sk, *reuse_sk;
include/net/inet_hashtables.h
485
static inline struct sock *__inet_lookup_skb(struct sk_buff *skb,
include/net/inet_hashtables.h
494
struct sock *sk;
include/net/inet_hashtables.h
508
static inline void sk_daddr_set(struct sock *sk, __be32 addr)
include/net/inet_hashtables.h
516
static inline void sk_rcv_saddr_set(struct sock *sk, __be32 addr)
include/net/inet_hashtables.h
525
struct sock *sk, u64 port_offset,
include/net/inet_hashtables.h
528
struct sock *, __u16,
include/net/inet_hashtables.h
534
struct sock *sk);
include/net/inet_sock.h
105
static inline u32 inet_request_mark(const struct sock *sk, struct sk_buff *skb)
include/net/inet_sock.h
115
static inline int inet_request_bound_dev_if(const struct sock *sk,
include/net/inet_sock.h
129
static inline int inet_sk_bound_l3mdev(const struct sock *sk)
include/net/inet_sock.h
220
struct sock sk;
include/net/inet_sock.h
334
static inline struct sock *sk_to_full_sk(struct sock *sk)
include/net/inet_sock.h
346
static inline const struct sock *sk_const_to_full_sk(const struct sock *sk)
include/net/inet_sock.h
357
static inline struct sock *skb_to_full_sk(const struct sk_buff *skb)
include/net/inet_sock.h
364
int inet_sk_rebuild_header(struct sock *sk);
include/net/inet_sock.h
373
static inline int inet_sk_state_load(const struct sock *sk)
include/net/inet_sock.h
387
void inet_sk_state_store(struct sock *sk, int newstate);
include/net/inet_sock.h
389
void inet_sk_set_state(struct sock *sk, int state);
include/net/inet_sock.h
404
struct sock *sk_listener,
include/net/inet_sock.h
407
static inline __u8 inet_sk_flowi_flags(const struct sock *sk)
include/net/inet_sock.h
416
static inline void inet_inc_convert_csum(struct sock *sk)
include/net/inet_sock.h
421
static inline void inet_dec_convert_csum(struct sock *sk)
include/net/inet_sock.h
427
static inline bool inet_get_convert_csum(struct sock *sk)
include/net/inet_timewait_sock.h
107
struct inet_timewait_sock *inet_twsk_alloc(const struct sock *sk,
include/net/inet_timewait_sock.h
112
struct sock *sk,
include/net/inet_timewait_sock.h
89
struct sk_buff* (*tw_validate_xmit_skb)(struct sock *sk,
include/net/inet_timewait_sock.h
96
static inline struct inet_timewait_sock *inet_twsk(const struct sock *sk)
include/net/ip.h
133
struct sock *sk;
include/net/ip.h
135
void (*destructor)(struct sock *);
include/net/ip.h
136
struct sock *saved_sk;
include/net/ip.h
161
int ip_build_and_send_pkt(struct sk_buff *skb, const struct sock *sk,
include/net/ip.h
171
int ip_mr_output(struct net *net, struct sock *sk, struct sk_buff *skb);
include/net/ip.h
172
int ip_output(struct net *net, struct sock *sk, struct sk_buff *skb);
include/net/ip.h
173
int ip_mc_output(struct net *net, struct sock *sk, struct sk_buff *skb);
include/net/ip.h
174
int ip_do_fragment(struct net *net, struct sock *sk, struct sk_buff *skb,
include/net/ip.h
175
int (*output)(struct net *, struct sock *, struct sk_buff *));
include/net/ip.h
215
int __ip_local_out(struct net *net, struct sock *sk, struct sk_buff *skb);
include/net/ip.h
216
int ip_local_out(struct net *net, struct sock *sk, struct sk_buff *skb);
include/net/ip.h
218
int __ip_queue_xmit(struct sock *sk, struct sk_buff *skb, struct flowi *fl,
include/net/ip.h
221
int ip_append_data(struct sock *sk, struct flowi4 *fl4,
include/net/ip.h
230
struct sk_buff *__ip_make_skb(struct sock *sk, struct flowi4 *fl4,
include/net/ip.h
234
int ip_push_pending_frames(struct sock *sk, struct flowi4 *fl4);
include/net/ip.h
235
void ip_flush_pending_frames(struct sock *sk);
include/net/ip.h
236
struct sk_buff *ip_make_skb(struct sock *sk, struct flowi4 *fl4,
include/net/ip.h
243
int ip_queue_xmit(struct sock *sk, struct sk_buff *skb, struct flowi *fl);
include/net/ip.h
245
static inline struct sk_buff *ip_finish_skb(struct sock *sk, struct flowi4 *fl4)
include/net/ip.h
264
int __ip4_datagram_connect(struct sock *sk, struct sockaddr_unsized *uaddr, int addr_len);
include/net/ip.h
265
int ip4_datagram_connect(struct sock *sk, struct sockaddr_unsized *uaddr, int addr_len);
include/net/ip.h
267
void ip4_datagram_release_cb(struct sock *sk);
include/net/ip.h
287
void ip_send_unicast_reply(struct sock *sk, const struct sock *orig_sk,
include/net/ip.h
360
bool inet_sk_get_local_port_range(const struct sock *sk, int *low, int *high);
include/net/ip.h
438
int ip_dont_fragment(const struct sock *sk, const struct dst_entry *dst)
include/net/ip.h
447
static inline bool ip_sk_accept_pmtu(const struct sock *sk)
include/net/ip.h
45
struct sock;
include/net/ip.h
455
static inline bool ip_sk_use_pmtu(const struct sock *sk)
include/net/ip.h
460
static inline bool ip_sk_ignore_df(const struct sock *sk)
include/net/ip.h
509
static inline unsigned int ip_skb_dst_mtu(struct sock *sk,
include/net/ip.h
558
struct sock *sk, int segs)
include/net/ip.h
590
struct sock *sk)
include/net/ip.h
680
static __inline__ void inet_reset_saddr(struct sock *sk)
include/net/ip.h
790
void ipv4_pktinfo_prepare(const struct sock *sk, struct sk_buff *skb, bool drop_dst);
include/net/ip.h
791
void ip_cmsg_recv_offset(struct msghdr *msg, struct sock *sk,
include/net/ip.h
793
int ip_cmsg_send(struct sock *sk, struct msghdr *msg,
include/net/ip.h
796
int do_ip_setsockopt(struct sock *sk, int level, int optname, sockptr_t optval,
include/net/ip.h
798
int ip_setsockopt(struct sock *sk, int level, int optname, sockptr_t optval,
include/net/ip.h
800
int do_ip_getsockopt(struct sock *sk, int level, int optname,
include/net/ip.h
802
int ip_getsockopt(struct sock *sk, int level, int optname, char __user *optval,
include/net/ip.h
804
int ip_ra_control(struct sock *sk, unsigned char on,
include/net/ip.h
805
void (*destructor)(struct sock *));
include/net/ip.h
807
int ip_recv_error(struct sock *sk, struct msghdr *msg, int len);
include/net/ip.h
808
void ip_icmp_error(struct sock *sk, struct sk_buff *skb, int err, __be16 port,
include/net/ip.h
810
void ip_local_error(struct sock *sk, int err, __be32 daddr, __be16 dport,
include/net/ip.h
833
void ip_sock_set_freebind(struct sock *sk);
include/net/ip.h
834
int ip_sock_set_mtu_discover(struct sock *sk, int val);
include/net/ip.h
835
void ip_sock_set_pktinfo(struct sock *sk);
include/net/ip.h
836
void ip_sock_set_recverr(struct sock *sk);
include/net/ip.h
837
void ip_sock_set_tos(struct sock *sk, int val);
include/net/ip.h
838
void __ip_sock_set_tos(struct sock *sk, int val);
include/net/ip6_route.h
206
void ip6_sk_update_pmtu(struct sk_buff *skb, struct sock *sk, __be32 mtu);
include/net/ip6_route.h
210
void ip6_sk_redirect(struct sk_buff *skb, struct sock *sk);
include/net/ip6_route.h
246
static inline void ip6_dst_store(struct sock *sk, struct dst_entry *dst,
include/net/ip6_route.h
260
void ip6_sk_dst_store_flow(struct sock *sk, struct dst_entry *dst,
include/net/ip6_route.h
289
int ip6_fragment(struct net *net, struct sock *sk, struct sk_buff *skb,
include/net/ip6_route.h
290
int (*output)(struct net *, struct sock *, struct sk_buff *));
include/net/ip6_route.h
292
static inline int ip6_fragment(struct net *net, struct sock *sk,
include/net/ip6_route.h
294
int (*output)(struct net *, struct sock *,
include/net/ip6_route.h
324
static inline bool ip6_sk_accept_pmtu(const struct sock *sk)
include/net/ip6_route.h
332
static inline bool ip6_sk_ignore_df(const struct sock *sk)
include/net/ip6_route.h
93
struct dst_entry *ip6_route_output_flags(struct net *net, const struct sock *sk,
include/net/ip6_route.h
97
const struct sock *sk,
include/net/ip6_tunnel.h
154
static inline void ip6tunnel_xmit(struct sock *sk, struct sk_buff *skb,
include/net/ip_tunnels.h
624
void iptunnel_xmit(struct sock *sk, struct rtable *rt, struct sk_buff *skb,
include/net/ipv6.h
1022
int ip6_rcv_finish(struct net *net, struct sock *sk, struct sk_buff *skb);
include/net/ipv6.h
1027
int ip6_xmit(const struct sock *sk, struct sk_buff *skb, struct flowi6 *fl6,
include/net/ipv6.h
1032
int ip6_append_data(struct sock *sk,
include/net/ipv6.h
1039
int ip6_push_pending_frames(struct sock *sk);
include/net/ipv6.h
1041
void ip6_flush_pending_frames(struct sock *sk);
include/net/ipv6.h
1045
struct sk_buff *__ip6_make_skb(struct sock *sk, struct sk_buff_head *queue,
include/net/ipv6.h
1047
struct sk_buff *ip6_make_skb(struct sock *sk,
include/net/ipv6.h
1055
static inline struct sk_buff *ip6_finish_skb(struct sock *sk)
include/net/ipv6.h
1060
int ip6_dst_lookup(struct net *net, struct sock *sk, struct dst_entry **dst,
include/net/ipv6.h
1063
struct dst_entry *ip6_dst_lookup_flow(struct net *net, const struct sock *sk, struct flowi6 *fl6,
include/net/ipv6.h
1066
static inline struct dst_entry *ip6_dst_lookup_flow(struct net *net, const struct sock *sk,
include/net/ipv6.h
1074
struct dst_entry *ip6_sk_dst_lookup_flow(struct sock *sk, struct flowi6 *fl6,
include/net/ipv6.h
1084
int ip6_output(struct net *net, struct sock *sk, struct sk_buff *skb);
include/net/ipv6.h
1091
int __ip6_local_out(struct net *net, struct sock *sk, struct sk_buff *skb);
include/net/ipv6.h
1092
int ip6_local_out(struct net *net, struct sock *sk, struct sk_buff *skb);
include/net/ipv6.h
1140
int do_ipv6_setsockopt(struct sock *sk, int level, int optname, sockptr_t optval,
include/net/ipv6.h
1142
int ipv6_setsockopt(struct sock *sk, int level, int optname, sockptr_t optval,
include/net/ipv6.h
1144
int do_ipv6_getsockopt(struct sock *sk, int level, int optname,
include/net/ipv6.h
1146
int ipv6_getsockopt(struct sock *sk, int level, int optname,
include/net/ipv6.h
1149
int __ip6_datagram_connect(struct sock *sk, struct sockaddr_unsized *addr,
include/net/ipv6.h
1151
int ip6_datagram_connect(struct sock *sk, struct sockaddr_unsized *addr, int addr_len);
include/net/ipv6.h
1152
int ip6_datagram_connect_v6_only(struct sock *sk, struct sockaddr_unsized *addr,
include/net/ipv6.h
1154
int ip6_datagram_dst_update(struct sock *sk, bool fix_sk_saddr);
include/net/ipv6.h
1155
void ip6_datagram_release_cb(struct sock *sk);
include/net/ipv6.h
1157
int ipv6_recv_error(struct sock *sk, struct msghdr *msg, int len);
include/net/ipv6.h
1158
int ipv6_recv_rxpmtu(struct sock *sk, struct msghdr *msg, int len);
include/net/ipv6.h
1159
void ipv6_icmp_error(struct sock *sk, struct sk_buff *skb, int err, __be16 port,
include/net/ipv6.h
1161
void ipv6_local_error(struct sock *sk, int err, struct flowi6 *fl6, u32 info);
include/net/ipv6.h
1162
void ipv6_local_rxpmtu(struct sock *sk, struct flowi6 *fl6, u32 mtu);
include/net/ipv6.h
1164
void inet6_cleanup_sock(struct sock *sk);
include/net/ipv6.h
1165
void inet6_sock_destruct(struct sock *sk);
include/net/ipv6.h
1166
int inet6_release(struct socket *sock);
include/net/ipv6.h
1167
int __inet6_bind(struct sock *sk, struct sockaddr_unsized *uaddr, int addr_len,
include/net/ipv6.h
1169
int inet6_bind(struct socket *sock, struct sockaddr_unsized *uaddr, int addr_len);
include/net/ipv6.h
1170
int inet6_bind_sk(struct sock *sk, struct sockaddr_unsized *uaddr, int addr_len);
include/net/ipv6.h
1171
int inet6_getname(struct socket *sock, struct sockaddr *uaddr,
include/net/ipv6.h
1173
int inet6_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg);
include/net/ipv6.h
1174
int inet6_compat_ioctl(struct socket *sock, unsigned int cmd,
include/net/ipv6.h
1178
struct sock *sk);
include/net/ipv6.h
1179
int inet6_sendmsg(struct socket *sock, struct msghdr *msg, size_t size);
include/net/ipv6.h
1180
int inet6_recvmsg(struct socket *sock, struct msghdr *msg, size_t size,
include/net/ipv6.h
1193
int ip6_mc_source(int add, int omode, struct sock *sk,
include/net/ipv6.h
1195
int ip6_mc_msfilter(struct sock *sk, struct group_filter *gsf,
include/net/ipv6.h
1197
int ip6_mc_msfget(struct sock *sk, struct group_filter *gsf,
include/net/ipv6.h
1230
int ipv6_sock_mc_join(struct sock *sk, int ifindex,
include/net/ipv6.h
1232
int ipv6_sock_mc_join_ssm(struct sock *sk, int ifindex,
include/net/ipv6.h
1234
int ipv6_sock_mc_drop(struct sock *sk, int ifindex,
include/net/ipv6.h
1237
static inline int ip6_sock_set_v6only(struct sock *sk)
include/net/ipv6.h
1250
static inline void ip6_sock_set_recverr(struct sock *sk)
include/net/ipv6.h
1258
static inline int ip6_sock_set_addr_preferences(struct sock *sk, int val)
include/net/ipv6.h
1316
static inline void ip6_sock_set_recvpktinfo(struct sock *sk)
include/net/ipv6.h
281
struct sock *sk;
include/net/ipv6.h
283
void (*destructor)(struct sock *);
include/net/ipv6.h
360
const struct sock *sk)
include/net/ipv6.h
394
struct ip6_flowlabel *__fl6_sock_lookup(struct sock *sk, __be32 label);
include/net/ipv6.h
397
static inline struct ip6_flowlabel *fl6_sock_lookup(struct sock *sk,
include/net/ipv6.h
411
void fl6_free_socklist(struct sock *sk);
include/net/ipv6.h
412
int ipv6_flowlabel_opt(struct sock *sk, sockptr_t optval, int optlen);
include/net/ipv6.h
413
int ipv6_flowlabel_opt_get(struct sock *sk, struct in6_flowlabel_req *freq,
include/net/ipv6.h
417
bool ip6_autoflowlabel(struct net *net, const struct sock *sk);
include/net/ipv6.h
428
void icmpv6_push_pending_frames(struct sock *sk, struct flowi6 *fl6,
include/net/ipv6.h
431
int ip6_ra_control(struct sock *sk, int sel);
include/net/ipv6.h
435
struct ipv6_txoptions *ipv6_dup_options(struct sock *sk,
include/net/ipv6.h
437
struct ipv6_txoptions *ipv6_renew_options(struct sock *sk,
include/net/ipv6.h
452
bool ipv6_opt_accepted(const struct sock *sk, const struct sk_buff *skb,
include/net/ipv6.h
454
struct ipv6_txoptions *ipv6_update_options(struct sock *sk,
include/net/iucv/af_iucv.h
114
struct sock sk;
include/net/iucv/af_iucv.h
123
struct sock *parent;
include/net/iucv/af_iucv.h
138
void (*sk_txnotify)(struct sock *sk,
include/net/kcm.h
100
void (*save_data_ready)(struct sock *sk);
include/net/kcm.h
101
void (*save_write_space)(struct sock *sk);
include/net/kcm.h
59
struct sock sk;
include/net/kcm.h
90
struct sock *sk;
include/net/kcm.h
99
void (*save_state_change)(struct sock *sk);
include/net/l3mdev.h
208
struct sk_buff *l3mdev_l3_out(struct sock *sk, struct sk_buff *skb, u16 proto)
include/net/l3mdev.h
228
struct sk_buff *l3mdev_ip_out(struct sock *sk, struct sk_buff *skb)
include/net/l3mdev.h
234
struct sk_buff *l3mdev_ip6_out(struct sock *sk, struct sk_buff *skb)
include/net/l3mdev.h
308
struct sk_buff *l3mdev_ip_out(struct sock *sk, struct sk_buff *skb)
include/net/l3mdev.h
314
struct sk_buff *l3mdev_ip6_out(struct sock *sk, struct sk_buff *skb)
include/net/l3mdev.h
40
struct sock *sk, struct sk_buff *skb,
include/net/llc_c_ac.h
100
int llc_conn_ac_clear_remote_busy_if_f_eq_1(struct sock *sk,
include/net/llc_c_ac.h
102
int llc_conn_ac_stop_rej_tmr_if_data_flag_eq_2(struct sock *sk,
include/net/llc_c_ac.h
104
int llc_conn_ac_send_disc_cmd_p_set_x(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
105
int llc_conn_ac_send_dm_rsp_f_set_p(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
106
int llc_conn_ac_send_dm_rsp_f_set_1(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
107
int llc_conn_ac_send_frmr_rsp_f_set_x(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
108
int llc_conn_ac_resend_frmr_rsp_f_set_0(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
109
int llc_conn_ac_resend_frmr_rsp_f_set_p(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
110
int llc_conn_ac_send_i_cmd_p_set_1(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
111
int llc_conn_ac_send_i_xxx_x_set_0(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
112
int llc_conn_ac_resend_i_xxx_x_set_0(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
113
int llc_conn_ac_resend_i_xxx_x_set_0_or_send_rr(struct sock *sk,
include/net/llc_c_ac.h
115
int llc_conn_ac_resend_i_rsp_f_set_1(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
116
int llc_conn_ac_send_rej_cmd_p_set_1(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
117
int llc_conn_ac_send_rej_rsp_f_set_1(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
118
int llc_conn_ac_send_rej_xxx_x_set_0(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
119
int llc_conn_ac_send_rnr_cmd_p_set_1(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
120
int llc_conn_ac_send_rnr_rsp_f_set_1(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
121
int llc_conn_ac_send_rnr_xxx_x_set_0(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
122
int llc_conn_ac_set_remote_busy(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
123
int llc_conn_ac_opt_send_rnr_xxx_x_set_0(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
124
int llc_conn_ac_send_rr_cmd_p_set_1(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
125
int llc_conn_ac_send_rr_rsp_f_set_1(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
126
int llc_conn_ac_send_ack_rsp_f_set_1(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
127
int llc_conn_ac_send_rr_xxx_x_set_0(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
128
int llc_conn_ac_send_ack_xxx_x_set_0(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
129
int llc_conn_ac_send_sabme_cmd_p_set_x(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
130
int llc_conn_ac_send_ua_rsp_f_set_p(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
131
int llc_conn_ac_set_s_flag_0(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
132
int llc_conn_ac_set_s_flag_1(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
133
int llc_conn_ac_start_p_timer(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
134
int llc_conn_ac_start_ack_timer(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
135
int llc_conn_ac_start_rej_timer(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
136
int llc_conn_ac_start_ack_tmr_if_not_running(struct sock *sk,
include/net/llc_c_ac.h
138
int llc_conn_ac_stop_ack_timer(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
139
int llc_conn_ac_stop_p_timer(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
140
int llc_conn_ac_stop_rej_timer(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
141
int llc_conn_ac_stop_all_timers(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
142
int llc_conn_ac_stop_other_timers(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
143
int llc_conn_ac_upd_nr_received(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
144
int llc_conn_ac_inc_tx_win_size(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
145
int llc_conn_ac_dec_tx_win_size(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
146
int llc_conn_ac_upd_p_flag(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
147
int llc_conn_ac_set_data_flag_2(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
148
int llc_conn_ac_set_data_flag_0(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
149
int llc_conn_ac_set_data_flag_1(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
150
int llc_conn_ac_set_data_flag_1_if_data_flag_eq_0(struct sock *sk,
include/net/llc_c_ac.h
152
int llc_conn_ac_set_p_flag_0(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
153
int llc_conn_ac_set_remote_busy_0(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
154
int llc_conn_ac_set_retry_cnt_0(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
155
int llc_conn_ac_set_cause_flag_0(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
156
int llc_conn_ac_set_cause_flag_1(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
157
int llc_conn_ac_inc_retry_cnt_by_1(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
158
int llc_conn_ac_set_vr_0(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
159
int llc_conn_ac_inc_vr_by_1(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
160
int llc_conn_ac_set_vs_0(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
161
int llc_conn_ac_set_vs_nr(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
162
int llc_conn_ac_rst_vs(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
163
int llc_conn_ac_upd_vs(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
164
int llc_conn_disc(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
165
int llc_conn_reset(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
166
int llc_conn_ac_disc_confirm(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
168
int llc_conn_ac_send_ack_if_needed(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
169
int llc_conn_ac_adjust_npta_by_rr(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
17
struct sock;
include/net/llc_c_ac.h
170
int llc_conn_ac_adjust_npta_by_rnr(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
171
int llc_conn_ac_rst_sendack_flag(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
172
int llc_conn_ac_send_i_as_ack(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
179
void llc_conn_set_p_flag(struct sock *sk, u8 value);
include/net/llc_c_ac.h
91
typedef int (*llc_conn_action_t)(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
93
int llc_conn_ac_clear_remote_busy(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
94
int llc_conn_ac_conn_ind(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
95
int llc_conn_ac_conn_confirm(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
96
int llc_conn_ac_data_ind(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
97
int llc_conn_ac_disc_ind(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
98
int llc_conn_ac_rst_ind(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
99
int llc_conn_ac_rst_confirm(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
122
typedef int (*llc_conn_ev_t)(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
123
typedef int (*llc_conn_ev_qfyr_t)(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
125
int llc_conn_ev_conn_req(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
126
int llc_conn_ev_data_req(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
127
int llc_conn_ev_disc_req(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
128
int llc_conn_ev_rst_req(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
129
int llc_conn_ev_local_busy_detected(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
130
int llc_conn_ev_local_busy_cleared(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
131
int llc_conn_ev_rx_bad_pdu(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
132
int llc_conn_ev_rx_disc_cmd_pbit_set_x(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
133
int llc_conn_ev_rx_dm_rsp_fbit_set_x(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
134
int llc_conn_ev_rx_frmr_rsp_fbit_set_x(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
135
int llc_conn_ev_rx_i_cmd_pbit_set_x_inval_ns(struct sock *sk,
include/net/llc_c_ev.h
137
int llc_conn_ev_rx_i_rsp_fbit_set_x(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
138
int llc_conn_ev_rx_i_rsp_fbit_set_x_unexpd_ns(struct sock *sk,
include/net/llc_c_ev.h
140
int llc_conn_ev_rx_i_rsp_fbit_set_x_inval_ns(struct sock *sk,
include/net/llc_c_ev.h
142
int llc_conn_ev_rx_rej_rsp_fbit_set_x(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
143
int llc_conn_ev_rx_sabme_cmd_pbit_set_x(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
144
int llc_conn_ev_rx_ua_rsp_fbit_set_x(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
145
int llc_conn_ev_rx_xxx_cmd_pbit_set_x(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
146
int llc_conn_ev_rx_xxx_rsp_fbit_set_x(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
147
int llc_conn_ev_rx_zzz_cmd_pbit_set_x_inval_nr(struct sock *sk,
include/net/llc_c_ev.h
149
int llc_conn_ev_rx_zzz_rsp_fbit_set_x_inval_nr(struct sock *sk,
include/net/llc_c_ev.h
151
int llc_conn_ev_p_tmr_exp(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
152
int llc_conn_ev_ack_tmr_exp(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
153
int llc_conn_ev_rej_tmr_exp(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
154
int llc_conn_ev_busy_tmr_exp(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
156
int llc_conn_ev_rx_xxx_cmd_pbit_set_1(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
157
int llc_conn_ev_rx_xxx_rsp_fbit_set_1(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
158
int llc_conn_ev_rx_i_cmd_pbit_set_0_unexpd_ns(struct sock *sk,
include/net/llc_c_ev.h
160
int llc_conn_ev_rx_i_cmd_pbit_set_1_unexpd_ns(struct sock *sk,
include/net/llc_c_ev.h
162
int llc_conn_ev_rx_i_cmd_pbit_set_0(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
163
int llc_conn_ev_rx_i_cmd_pbit_set_1(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
164
int llc_conn_ev_rx_i_rsp_fbit_set_0_unexpd_ns(struct sock *sk,
include/net/llc_c_ev.h
166
int llc_conn_ev_rx_i_rsp_fbit_set_1_unexpd_ns(struct sock *sk,
include/net/llc_c_ev.h
168
int llc_conn_ev_rx_i_rsp_fbit_set_0(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
169
int llc_conn_ev_rx_i_rsp_fbit_set_1(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
170
int llc_conn_ev_rx_rr_cmd_pbit_set_0(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
171
int llc_conn_ev_rx_rr_cmd_pbit_set_1(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
172
int llc_conn_ev_rx_rr_rsp_fbit_set_0(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
173
int llc_conn_ev_rx_rr_rsp_fbit_set_1(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
174
int llc_conn_ev_rx_rnr_cmd_pbit_set_0(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
175
int llc_conn_ev_rx_rnr_cmd_pbit_set_1(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
176
int llc_conn_ev_rx_rnr_rsp_fbit_set_0(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
177
int llc_conn_ev_rx_rnr_rsp_fbit_set_1(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
178
int llc_conn_ev_rx_rej_cmd_pbit_set_0(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
179
int llc_conn_ev_rx_rej_cmd_pbit_set_1(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
180
int llc_conn_ev_rx_rej_rsp_fbit_set_0(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
181
int llc_conn_ev_rx_rej_rsp_fbit_set_1(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
182
int llc_conn_ev_rx_any_frame(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
183
int llc_conn_ev_tx_buffer_full(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
184
int llc_conn_ev_init_p_f_cycle(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
187
int llc_conn_ev_qlfy_data_flag_eq_1(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
188
int llc_conn_ev_qlfy_data_flag_eq_0(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
189
int llc_conn_ev_qlfy_data_flag_eq_2(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
190
int llc_conn_ev_qlfy_p_flag_eq_1(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
191
int llc_conn_ev_qlfy_last_frame_eq_1(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
192
int llc_conn_ev_qlfy_last_frame_eq_0(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
193
int llc_conn_ev_qlfy_p_flag_eq_0(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
194
int llc_conn_ev_qlfy_p_flag_eq_f(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
195
int llc_conn_ev_qlfy_remote_busy_eq_0(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
196
int llc_conn_ev_qlfy_remote_busy_eq_1(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
197
int llc_conn_ev_qlfy_retry_cnt_lt_n2(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
198
int llc_conn_ev_qlfy_retry_cnt_gte_n2(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
199
int llc_conn_ev_qlfy_s_flag_eq_1(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
200
int llc_conn_ev_qlfy_s_flag_eq_0(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
201
int llc_conn_ev_qlfy_cause_flag_eq_1(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
202
int llc_conn_ev_qlfy_cause_flag_eq_0(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
203
int llc_conn_ev_qlfy_set_status_conn(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
204
int llc_conn_ev_qlfy_set_status_disc(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
205
int llc_conn_ev_qlfy_set_status_failed(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
206
int llc_conn_ev_qlfy_set_status_remote_busy(struct sock *sk,
include/net/llc_c_ev.h
208
int llc_conn_ev_qlfy_set_status_refuse(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
209
int llc_conn_ev_qlfy_set_status_conflict(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
210
int llc_conn_ev_qlfy_set_status_rst_done(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
212
static __inline__ int llc_conn_space(struct sock *sk, struct sk_buff *skb)
include/net/llc_conn.h
101
int llc_conn_state_process(struct sock *sk, struct sk_buff *skb);
include/net/llc_conn.h
102
void llc_conn_send_pdu(struct sock *sk, struct sk_buff *skb);
include/net/llc_conn.h
103
void llc_conn_rtn_pdu(struct sock *sk, struct sk_buff *skb);
include/net/llc_conn.h
104
void llc_conn_resend_i_pdu_as_cmd(struct sock *sk, u8 nr, u8 first_p_bit);
include/net/llc_conn.h
105
void llc_conn_resend_i_pdu_as_rsp(struct sock *sk, u8 nr, u8 first_f_bit);
include/net/llc_conn.h
106
int llc_conn_remove_acked_pdus(struct sock *conn, u8 nr, u16 *how_many_unacked);
include/net/llc_conn.h
107
struct sock *llc_lookup_established(struct llc_sap *sap, struct llc_addr *daddr,
include/net/llc_conn.h
109
void llc_sap_add_socket(struct llc_sap *sap, struct sock *sk);
include/net/llc_conn.h
110
void llc_sap_remove_socket(struct llc_sap *sap, struct sock *sk);
include/net/llc_conn.h
28
struct sock sk;
include/net/llc_conn.h
78
static inline struct llc_sock *llc_sk(const struct sock *sk)
include/net/llc_conn.h
93
struct sock *llc_sk_alloc(struct net *net, int family, gfp_t priority,
include/net/llc_conn.h
95
void llc_sk_stop_all_timers(struct sock *sk, bool sync);
include/net/llc_conn.h
96
void llc_sk_free(struct sock *sk);
include/net/llc_conn.h
98
void llc_sk_reset(struct sock *sk);
include/net/llc_if.h
59
int llc_establish_connection(struct sock *sk, const u8 *lmac, u8 *dmac,
include/net/llc_if.h
61
int llc_build_and_send_pkt(struct sock *sk, struct sk_buff *skb);
include/net/llc_if.h
62
int llc_send_disc(struct sock *sk);
include/net/llc_sap.h
14
struct sock;
include/net/llc_sap.h
17
void llc_save_primitive(struct sock *sk, struct sk_buff *skb,
include/net/llc_sap.h
19
struct sk_buff *llc_alloc_frame(struct sock *sk, struct net_device *dev,
include/net/lwtunnel.h
132
int lwtunnel_output(struct net *net, struct sock *sk, struct sk_buff *skb);
include/net/lwtunnel.h
251
static inline int lwtunnel_output(struct net *net, struct sock *sk, struct sk_buff *skb)
include/net/lwtunnel.h
33
int (*orig_output)(struct net *net, struct sock *sk, struct sk_buff *skb);
include/net/lwtunnel.h
45
int (*output)(struct net *net, struct sock *sk, struct sk_buff *skb);
include/net/mctp.h
148
struct sock *sk;
include/net/mctp.h
295
int mctp_local_output(struct sock *sk, struct mctp_dst *dst,
include/net/mctp.h
71
struct sock sk;
include/net/mptcp.h
136
static inline bool sk_is_mptcp(const struct sock *sk)
include/net/mptcp.h
151
void mptcp_space(const struct sock *ssk, int *space, int *full_space);
include/net/mptcp.h
152
bool mptcp_syn_options(struct sock *sk, const struct sk_buff *skb,
include/net/mptcp.h
156
int mptcp_established_options(struct sock *sk, struct sk_buff *skb,
include/net/mptcp.h
159
bool mptcp_incoming_options(struct sock *sk, struct sk_buff *skb);
include/net/mptcp.h
221
const struct sock *sk_listener,
include/net/mptcp.h
224
struct sock *sk_listener,
include/net/mptcp.h
237
void mptcp_active_detect_blackhole(struct sock *sk, bool expired);
include/net/mptcp.h
244
static inline bool sk_is_mptcp(const struct sock *sk)
include/net/mptcp.h
259
static inline bool mptcp_syn_options(struct sock *sk, const struct sk_buff *skb,
include/net/mptcp.h
273
static inline bool mptcp_incoming_options(struct sock *sk,
include/net/mptcp.h
295
static inline void mptcp_space(const struct sock *ssk, int *s, int *fs) { }
include/net/mptcp.h
299
const struct sock *sk_listener,
include/net/mptcp.h
306
struct sock *sk_listener,
include/net/mptcp.h
314
static inline void mptcp_active_detect_blackhole(struct sock *sk, bool expired) { }
include/net/mptcp.h
319
void mptcpv6_handle_mapped(struct sock *sk, bool mapped);
include/net/mptcp.h
322
static inline void mptcpv6_handle_mapped(struct sock *sk, bool mapped) { }
include/net/mptcp.h
326
struct mptcp_sock *bpf_mptcp_sock_from_subflow(struct sock *sk);
include/net/mptcp.h
328
static inline struct mptcp_sock *bpf_mptcp_sock_from_subflow(struct sock *sk) { return NULL; }
include/net/net_namespace.h
110
struct sock *rtnl; /* rtnetlink socket */
include/net/net_namespace.h
111
struct sock *genl_sock;
include/net/net_namespace.h
191
struct sock *crypto_nlsk;
include/net/net_namespace.h
193
struct sock *diag_nlsk;
include/net/net_namespace.h
51
struct sock;
include/net/netfilter/br_netfilter.h
25
int br_nf_hook_thresh(unsigned int hook, struct net *net, struct sock *sk,
include/net/netfilter/br_netfilter.h
28
int (*okfn)(struct net *, struct sock *,
include/net/netfilter/br_netfilter.h
41
int br_nf_pre_routing_finish_bridge(struct net *net, struct sock *sk, struct sk_buff *skb);
include/net/netfilter/ipv4/nf_reject.h
11
void nf_send_reset(struct net *net, struct sock *, struct sk_buff *oldskb,
include/net/netfilter/ipv6/nf_reject.h
10
void nf_send_reset6(struct net *net, struct sock *sk, struct sk_buff *oldskb,
include/net/netfilter/nf_socket.h
10
struct sock *nf_sk_lookup_slow_v6(struct net *net, const struct sk_buff *skb,
include/net/netfilter/nf_socket.h
7
struct sock *nf_sk_lookup_slow_v4(struct net *net, const struct sk_buff *skb,
include/net/netfilter/nf_tables.h
41
static inline struct sock *nft_sk(const struct nft_pktinfo *pkt)
include/net/netfilter/nf_tproxy.h
11
static inline bool nf_tproxy_sk_is_transparent(struct sock *sk)
include/net/netfilter/nf_tproxy.h
114
struct sock *
include/net/netfilter/nf_tproxy.h
119
struct sock *sk);
include/net/netfilter/nf_tproxy.h
121
struct sock *
include/net/netfilter/nf_tproxy.h
28
static inline void nf_tproxy_assign_sock(struct sk_buff *skb, struct sock *sk)
include/net/netfilter/nf_tproxy.h
55
struct sock *
include/net/netfilter/nf_tproxy.h
57
__be32 laddr, __be16 lport, struct sock *sk);
include/net/netfilter/nf_tproxy.h
82
struct sock *
include/net/netfilter/nft_fib.h
25
const struct sock *sk;
include/net/netlabel.h
243
int (*sock_getattr)(struct sock *sk,
include/net/netlabel.h
245
int (*sock_setattr)(struct sock *sk,
include/net/netlabel.h
248
void (*sock_delattr)(struct sock *sk);
include/net/netlabel.h
476
int netlbl_sock_setattr(struct sock *sk,
include/net/netlabel.h
480
void netlbl_sock_delattr(struct sock *sk);
include/net/netlabel.h
481
int netlbl_sock_getattr(struct sock *sk,
include/net/netlabel.h
483
int netlbl_conn_setattr(struct sock *sk,
include/net/netlabel.h
496
bool netlbl_sk_lock_check(struct sock *sk);
include/net/netlabel.h
622
static inline int netlbl_sock_setattr(struct sock *sk,
include/net/netlabel.h
629
static inline void netlbl_sock_delattr(struct sock *sk)
include/net/netlabel.h
632
static inline int netlbl_sock_getattr(struct sock *sk,
include/net/netlabel.h
637
static inline int netlbl_conn_setattr(struct sock *sk,
include/net/netlabel.h
685
static inline bool netlbl_sk_lock_check(struct sock *sk)
include/net/netlink.h
1155
static inline int nlmsg_multicast_filtered(struct sock *sk, struct sk_buff *skb,
include/net/netlink.h
1181
static inline int nlmsg_multicast(struct sock *sk, struct sk_buff *skb,
include/net/netlink.h
1194
static inline int nlmsg_unicast(struct sock *sk, struct sk_buff *skb, u32 portid)
include/net/netlink.h
538
int nlmsg_notify(struct sock *sk, struct sk_buff *skb, u32 portid,
include/net/netns/ipv4.h
130
struct sock *fibnl;
include/net/netns/ipv4.h
135
struct sock *mc_autojoin_sk;
include/net/netns/ipv4.h
20
struct sock;
include/net/netns/ipv4.h
51
struct sock __rcu *sk;
include/net/netns/ipv6.h
100
struct sock *tcp_sk;
include/net/netns/ipv6.h
101
struct sock *igmp_sk;
include/net/netns/ipv6.h
102
struct sock *mc_autojoin_sk;
include/net/netns/ipv6.h
99
struct sock *ndisc_sk;
include/net/netns/sctp.h
26
struct sock *ctl_sock;
include/net/netns/sctp.h
29
struct sock *udp4_sock;
include/net/netns/sctp.h
30
struct sock *udp6_sock;
include/net/netns/sctp.h
8
struct sock;
include/net/netns/xfrm.h
62
struct sock __rcu *nlsk;
include/net/netns/xfrm.h
63
struct sock *nlsk_stash;
include/net/nfc/nfc.h
269
struct sk_buff *nfc_alloc_send_skb(struct nfc_dev *dev, struct sock *sk,
include/net/phonet/gprs.h
15
struct sock;
include/net/phonet/gprs.h
18
int pep_writeable(struct sock *sk);
include/net/phonet/gprs.h
19
int pep_write(struct sock *sk, struct sk_buff *skb);
include/net/phonet/gprs.h
20
struct sk_buff *pep_read(struct sock *sk);
include/net/phonet/gprs.h
22
int gprs_attach(struct sock *sk);
include/net/phonet/gprs.h
23
void gprs_detach(struct sock *sk);
include/net/phonet/pep.h
24
struct sock *listener;
include/net/phonet/pep.h
39
static inline struct pep_sock *pep_sk(struct sock *sk)
include/net/phonet/phonet.h
112
static inline bool sk_is_phonet(struct sock *sk)
include/net/phonet/phonet.h
117
static inline int phonet_sk_ioctl(struct sock *sk, unsigned int cmd,
include/net/phonet/phonet.h
28
struct sock sk;
include/net/phonet/phonet.h
34
static inline struct pn_sock *pn_sk(struct sock *sk)
include/net/phonet/phonet.h
42
struct sock *pn_find_sock_by_sa(struct net *net, const struct sockaddr_pn *sa);
include/net/phonet/phonet.h
45
int pn_sock_hash(struct sock *sk);
include/net/phonet/phonet.h
46
void pn_sock_unhash(struct sock *sk);
include/net/phonet/phonet.h
47
int pn_sock_get_port(struct sock *sk, unsigned short sport);
include/net/phonet/phonet.h
49
struct sock *pn_find_sock_by_res(struct net *net, u8 res);
include/net/phonet/phonet.h
50
int pn_sock_bind_res(struct sock *sock, u8 res);
include/net/phonet/phonet.h
51
int pn_sock_unbind_res(struct sock *sk, u8 res);
include/net/phonet/phonet.h
52
void pn_sock_unbind_all_res(struct sock *sk);
include/net/phonet/phonet.h
54
int pn_skb_send(struct sock *sk, struct sk_buff *skb,
include/net/ping.h
23
int (*ipv6_recv_error)(struct sock *sk, struct msghdr *msg, int len);
include/net/ping.h
24
void (*ip6_datagram_recv_common_ctl)(struct sock *sk,
include/net/ping.h
27
void (*ip6_datagram_recv_specific_ctl)(struct sock *sk,
include/net/ping.h
31
void (*ipv6_icmp_error)(struct sock *sk, struct sk_buff *skb, int err,
include/net/ping.h
55
int ping_get_port(struct sock *sk, unsigned short ident);
include/net/ping.h
56
void ping_unhash(struct sock *sk);
include/net/ping.h
58
int ping_init_sock(struct sock *sk);
include/net/ping.h
59
void ping_close(struct sock *sk, long timeout);
include/net/ping.h
60
int ping_bind(struct sock *sk, struct sockaddr_unsized *uaddr, int addr_len);
include/net/ping.h
65
int ping_recvmsg(struct sock *sk, struct msghdr *msg, size_t len,
include/net/ping.h
69
int ping_queue_rcv_skb(struct sock *sk, struct sk_buff *skb);
include/net/proto_memory.h
11
static inline bool sk_has_memory_pressure(const struct sock *sk)
include/net/proto_memory.h
24
static inline bool sk_under_global_memory_pressure(const struct sock *sk)
include/net/proto_memory.h
29
static inline bool sk_under_memory_pressure(const struct sock *sk)
include/net/proto_memory.h
51
sk_memory_allocated(const struct sock *sk)
include/net/proto_memory.h
65
sk_memory_allocated_add(const struct sock *sk, int val)
include/net/proto_memory.h
76
sk_memory_allocated_sub(const struct sock *sk, int val)
include/net/psp/functions.h
116
psp_sk_rx_policy_check(struct sock *sk, struct sk_buff *skb)
include/net/psp/functions.h
127
static inline struct psp_assoc *psp_sk_get_assoc_rcu(const struct sock *sk)
include/net/psp/functions.h
150
static inline unsigned int psp_sk_overhead(const struct sock *sk)
include/net/psp/functions.h
158
static inline void psp_sk_assoc_free(struct sock *sk) { }
include/net/psp/functions.h
160
psp_twsk_init(struct inet_timewait_sock *tw, const struct sock *sk) { }
include/net/psp/functions.h
163
psp_reply_set_decrypted(const struct sock *sk, struct sk_buff *skb) { }
include/net/psp/functions.h
165
static inline struct psp_assoc *psp_sk_assoc(const struct sock *sk)
include/net/psp/functions.h
171
psp_enqueue_set_decrypted(struct sock *sk, struct sk_buff *skb) { }
include/net/psp/functions.h
181
psp_sk_rx_policy_check(struct sock *sk, struct sk_buff *skb)
include/net/psp/functions.h
197
static inline unsigned int psp_sk_overhead(const struct sock *sk)
include/net/psp/functions.h
34
void psp_sk_assoc_free(struct sock *sk);
include/net/psp/functions.h
35
void psp_twsk_init(struct inet_timewait_sock *tw, const struct sock *sk);
include/net/psp/functions.h
37
void psp_reply_set_decrypted(const struct sock *sk, struct sk_buff *skb);
include/net/psp/functions.h
39
static inline struct psp_assoc *psp_sk_assoc(const struct sock *sk)
include/net/psp/functions.h
45
psp_enqueue_set_decrypted(struct sock *sk, struct sk_buff *skb)
include/net/raw.h
25
bool raw_v4_match(struct net *net, const struct sock *sk, unsigned short num,
include/net/raw.h
28
int raw_abort(struct sock *sk, int err);
include/net/raw.h
32
int raw_rcv(struct sock *, struct sk_buff *);
include/net/raw.h
75
int raw_hash_sk(struct sock *sk);
include/net/raw.h
76
void raw_unhash_sk(struct sock *sk);
include/net/rawv6.h
13
int raw_abort(struct sock *sk, int err);
include/net/rawv6.h
19
int rawv6_rcv(struct sock *sk, struct sk_buff *skb);
include/net/rawv6.h
22
int rawv6_mh_filter_register(int (*filter)(struct sock *sock,
include/net/rawv6.h
24
int rawv6_mh_filter_unregister(int (*filter)(struct sock *sock,
include/net/rawv6.h
9
bool raw_v6_match(struct net *net, const struct sock *sk, unsigned short num,
include/net/request_sock.h
192
void reqsk_fastopen_remove(struct sock *sk, struct request_sock *req,
include/net/request_sock.h
201
struct sock *parent)
include/net/request_sock.h
33
void (*send_ack)(const struct sock *sk, struct sk_buff *skb,
include/net/request_sock.h
35
void (*send_reset)(const struct sock *sk,
include/net/request_sock.h
70
struct sock *sk;
include/net/request_sock.h
77
static inline struct request_sock *inet_reqsk(const struct sock *sk)
include/net/request_sock.h
82
static inline struct sock *req_to_sk(struct request_sock *req)
include/net/request_sock.h
84
return (struct sock *)req;
include/net/request_sock.h
93
static inline struct sock *skb_steal_sock(struct sk_buff *skb,
include/net/request_sock.h
96
struct sock *sk = skb->sk;
include/net/route.h
138
const struct sock *sk;
include/net/route.h
173
const struct sock *sk);
include/net/route.h
202
const struct sock *sk,
include/net/route.h
248
void ipv4_sk_update_pmtu(struct sk_buff *skb, struct sock *sk, u32 mtu);
include/net/route.h
250
void ipv4_sk_redirect(struct sk_buff *skb, struct sock *sk);
include/net/route.h
322
const struct sock *sk)
include/net/route.h
340
const struct sock *sk)
include/net/route.h
361
const struct sock *sk)
include/net/route.h
40
static inline __u8 ip_sock_rt_scope(const struct sock *sk)
include/net/route.h
48
static inline __u8 ip_sock_rt_tos(const struct sock *sk)
include/net/rps.h
108
static inline void _sock_rps_delete_flow(const struct sock *sk)
include/net/rps.h
149
static inline void sock_rps_record_flow(const struct sock *sk)
include/net/rps.h
159
static inline void sock_rps_delete_flow(const struct sock *sk)
include/net/rps.h
88
static inline void _sock_rps_record_flow(const struct sock *sk)
include/net/rtnetlink.h
258
struct net *rtnl_get_net_ns_capable(struct sock *sk, int netnsid);
include/net/scm.h
102
return __scm_send(sock, msg, scm);
include/net/scm.h
105
void scm_recv(struct socket *sock, struct msghdr *msg,
include/net/scm.h
107
void scm_recv_unix(struct socket *sock, struct msghdr *msg,
include/net/scm.h
55
int __scm_send(struct socket *sock, struct msghdr *msg, struct scm_cookie *scm);
include/net/scm.h
60
static __inline__ void unix_get_peersec_dgram(struct socket *sock, struct scm_cookie *scm)
include/net/scm.h
62
security_socket_getpeersec_dgram(sock, NULL, &scm->secid);
include/net/scm.h
65
static __inline__ void unix_get_peersec_dgram(struct socket *sock, struct scm_cookie *scm)
include/net/scm.h
91
static __inline__ int scm_send(struct socket *sock, struct msghdr *msg,
include/net/scm.h
99
unix_get_peersec_dgram(sock, scm);
include/net/sctp/sctp.h
100
struct sk_buff *sctp_skb_recv_datagram(struct sock *, int, int *);
include/net/sctp/sctp.h
116
int sctp_get_sctp_info(struct sock *sk, struct sctp_association *asoc,
include/net/sctp/sctp.h
138
struct sock *sctp_err_lookup(struct net *net, int family, struct sk_buff *,
include/net/sctp/sctp.h
141
void sctp_err_finish(struct sock *, struct sctp_transport *);
include/net/sctp/sctp.h
142
int sctp_udp_v4_err(struct sock *sk, struct sk_buff *skb);
include/net/sctp/sctp.h
143
int sctp_udp_v6_err(struct sock *sk, struct sk_buff *skb);
include/net/sctp/sctp.h
144
void sctp_icmp_frag_needed(struct sock *, struct sctp_association *,
include/net/sctp/sctp.h
146
void sctp_icmp_redirect(struct sock *, struct sctp_transport *,
include/net/sctp/sctp.h
148
void sctp_icmp_proto_unreachable(struct sock *sk,
include/net/sctp/sctp.h
365
struct sctp_association *sctp_id2assoc(struct sock *sk, sctp_assoc_t id);
include/net/sctp/sctp.h
394
static inline void sctp_skb_set_owner_r(struct sk_buff *skb, struct sock *sk)
include/net/sctp/sctp.h
459
void sctp_put_port(struct sock *sk);
include/net/sctp/sctp.h
510
static inline int __sctp_style(const struct sock *sk,
include/net/sctp/sctp.h
526
static inline int __sctp_sstate(const struct sock *sk,
include/net/sctp/sctp.h
660
static inline bool sctp_newsk_ready(const struct sock *sk)
include/net/sctp/sctp.h
665
static inline void sctp_sock_set_nodelay(struct sock *sk)
include/net/sctp/sctp.h
88
int sctp_inet_connect(struct socket *sock, struct sockaddr_unsized *uaddr,
include/net/sctp/sctp.h
90
int sctp_backlog_rcv(struct sock *sk, struct sk_buff *skb);
include/net/sctp/sctp.h
91
int sctp_inet_listen(struct socket *sock, int backlog);
include/net/sctp/sctp.h
92
void sctp_write_space(struct sock *sk);
include/net/sctp/sctp.h
93
void sctp_data_ready(struct sock *sk);
include/net/sctp/sctp.h
94
__poll_t sctp_poll(struct file *file, struct socket *sock,
include/net/sctp/structs.h
1207
int sctp_is_any(struct sock *sk, const union sctp_addr *addr);
include/net/sctp/structs.h
1208
int sctp_is_ep_boundall(struct sock *sk);
include/net/sctp/structs.h
1245
struct sock *sk;
include/net/sctp/structs.h
1340
struct sctp_endpoint *sctp_endpoint_new(struct sock *, gfp_t);
include/net/sctp/structs.h
2111
sctp_association_new(const struct sctp_endpoint *ep, const struct sock *sk,
include/net/sctp/structs.h
2135
void sctp_assoc_migrate(struct sctp_association *, struct sock *);
include/net/sctp/structs.h
240
static inline struct sock *sctp_opt2sk(const struct sctp_sock *sp)
include/net/sctp/structs.h
242
return (struct sock *)sp;
include/net/sctp/structs.h
429
int (*setsockopt) (struct sock *sk,
include/net/sctp/structs.h
434
int (*getsockopt) (struct sock *sk,
include/net/sctp/structs.h
442
struct sock *sk);
include/net/sctp/structs.h
456
struct sock *sk);
include/net/sctp/structs.h
475
void (*ecn_capable)(struct sock *sk);
include/net/sctp/structs.h
478
int (*ip_options_len)(struct sock *sk);
include/net/sctp/structs.h
498
void (*to_sk_saddr)(union sctp_addr *, struct sock *sk);
include/net/sctp/structs.h
499
void (*to_sk_daddr)(union sctp_addr *, struct sock *sk);
include/net/sctp/structs.h
500
void (*copy_ip_options)(struct sock *sk, struct sock *newsk);
include/net/sctp/structs.h
664
struct sock *, gfp_t gfp);
include/net/sctp/structs.h
996
void sctp_transport_pmtu(struct sctp_transport *, struct sock *sk);
include/net/sctp/ulpevent.h
150
struct msghdr *, struct sock *sk);
include/net/sctp/ulpqueue.h
58
int sctp_clear_pd(struct sock *sk, struct sctp_association *asoc);
include/net/smc.h
22
struct sock;
include/net/smc.h
96
ctrl = rcu_dereference(sock_net((struct sock *)(tp))->smc.hs_ctrl); \
include/net/sock.h
103
struct sock;
include/net/sock.h
1035
static inline void sock_copy_flags(struct sock *nsk, const struct sock *osk)
include/net/sock.h
1040
static inline void sock_set_flag(struct sock *sk, enum sock_flags flag)
include/net/sock.h
1045
static inline void sock_reset_flag(struct sock *sk, enum sock_flags flag)
include/net/sock.h
1050
static inline void sock_valbool_flag(struct sock *sk, enum sock_flags bit,
include/net/sock.h
1059
static inline bool sock_flag(const struct sock *sk, enum sock_flags flag)
include/net/sock.h
1083
static inline gfp_t sk_gfp_mask(const struct sock *sk, gfp_t gfp_mask)
include/net/sock.h
1088
static inline void sk_acceptq_removed(struct sock *sk)
include/net/sock.h
1093
static inline void sk_acceptq_added(struct sock *sk)
include/net/sock.h
1102
static inline bool sk_acceptq_is_full(const struct sock *sk)
include/net/sock.h
1110
static inline int sk_stream_min_wspace(const struct sock *sk)
include/net/sock.h
1115
static inline int sk_stream_wspace(const struct sock *sk)
include/net/sock.h
1120
static inline void sk_wmem_queued_add(struct sock *sk, int val)
include/net/sock.h
1125
static inline void sk_forward_alloc_add(struct sock *sk, int val)
include/net/sock.h
1131
void sk_stream_write_space(struct sock *sk);
include/net/sock.h
1134
static inline void __sk_add_backlog(struct sock *sk, struct sk_buff *skb)
include/net/sock.h
1153
static inline bool sk_rcvqueues_full(const struct sock *sk, unsigned int limit)
include/net/sock.h
1161
static inline __must_check int sk_add_backlog(struct sock *sk, struct sk_buff *skb,
include/net/sock.h
1180
int __sk_backlog_rcv(struct sock *sk, struct sk_buff *skb);
include/net/sock.h
1182
INDIRECT_CALLABLE_DECLARE(int tcp_v4_do_rcv(struct sock *sk, struct sk_buff *skb));
include/net/sock.h
1183
INDIRECT_CALLABLE_DECLARE(int tcp_v6_do_rcv(struct sock *sk, struct sk_buff *skb));
include/net/sock.h
1185
static inline int sk_backlog_rcv(struct sock *sk, struct sk_buff *skb)
include/net/sock.h
1196
static inline void sk_incoming_cpu_update(struct sock *sk)
include/net/sock.h
1205
static inline void sock_rps_save_rxhash(struct sock *sk,
include/net/sock.h
1217
static inline void sock_rps_reset_rxhash(struct sock *sk)
include/net/sock.h
1240
int sk_stream_wait_connect(struct sock *sk, long *timeo_p);
include/net/sock.h
1241
int sk_stream_wait_memory(struct sock *sk, long *timeo_p);
include/net/sock.h
1242
void sk_stream_wait_close(struct sock *sk, long timeo_p);
include/net/sock.h
1243
int sk_stream_error(struct sock *sk, int flags, int err);
include/net/sock.h
1244
void sk_stream_kill_queues(struct sock *sk);
include/net/sock.h
1245
void sk_set_memalloc(struct sock *sk);
include/net/sock.h
1246
void sk_clear_memalloc(struct sock *sk);
include/net/sock.h
1248
void __sk_flush_backlog(struct sock *sk);
include/net/sock.h
1250
static inline bool sk_flush_backlog(struct sock *sk)
include/net/sock.h
1259
int sk_wait_data(struct sock *sk, long *timeo, const struct sk_buff *skb);
include/net/sock.h
1273
static inline void sk_prot_clear_nulls(struct sock *sk, int size)
include/net/sock.h
1275
if (offsetof(struct sock, sk_node.next) != 0)
include/net/sock.h
1276
memset(sk, 0, offsetof(struct sock, sk_node.next));
include/net/sock.h
1278
size - offsetof(struct sock, sk_node.pprev));
include/net/sock.h
1292
void (*close)(struct sock *sk,
include/net/sock.h
1294
int (*pre_connect)(struct sock *sk,
include/net/sock.h
1297
int (*connect)(struct sock *sk,
include/net/sock.h
1300
int (*disconnect)(struct sock *sk, int flags);
include/net/sock.h
1302
struct sock * (*accept)(struct sock *sk,
include/net/sock.h
1305
int (*ioctl)(struct sock *sk, int cmd,
include/net/sock.h
1307
int (*init)(struct sock *sk);
include/net/sock.h
1308
void (*destroy)(struct sock *sk);
include/net/sock.h
1309
void (*shutdown)(struct sock *sk, int how);
include/net/sock.h
1310
int (*setsockopt)(struct sock *sk, int level,
include/net/sock.h
1313
int (*getsockopt)(struct sock *sk, int level,
include/net/sock.h
1316
void (*keepalive)(struct sock *sk, int valbool);
include/net/sock.h
1318
int (*compat_ioctl)(struct sock *sk,
include/net/sock.h
1321
int (*sendmsg)(struct sock *sk, struct msghdr *msg,
include/net/sock.h
1323
int (*recvmsg)(struct sock *sk, struct msghdr *msg,
include/net/sock.h
1325
void (*splice_eof)(struct socket *sock);
include/net/sock.h
1326
int (*bind)(struct sock *sk,
include/net/sock.h
1328
int (*bind_add)(struct sock *sk,
include/net/sock.h
1331
int (*backlog_rcv) (struct sock *sk,
include/net/sock.h
1336
void (*release_cb)(struct sock *sk);
include/net/sock.h
1339
int (*hash)(struct sock *sk);
include/net/sock.h
1340
void (*unhash)(struct sock *sk);
include/net/sock.h
1341
void (*rehash)(struct sock *sk);
include/net/sock.h
1342
int (*get_port)(struct sock *sk, unsigned short snum);
include/net/sock.h
1343
void (*put_port)(struct sock *sk);
include/net/sock.h
1345
int (*psock_update_sk_prot)(struct sock *sk,
include/net/sock.h
1355
bool (*stream_memory_free)(const struct sock *sk, int wake);
include/net/sock.h
1356
bool (*sock_is_readable)(struct sock *sk);
include/net/sock.h
1358
void (*enter_memory_pressure)(struct sock *sk);
include/net/sock.h
1359
void (*leave_memory_pressure)(struct sock *sk);
include/net/sock.h
1404
int (*diag_destroy)(struct sock *sk, int err);
include/net/sock.h
1411
INDIRECT_CALLABLE_DECLARE(bool tcp_stream_memory_free(const struct sock *sk, int wake));
include/net/sock.h
1413
static inline bool __sk_stream_memory_free(const struct sock *sk, int wake)
include/net/sock.h
1423
static inline bool sk_stream_memory_free(const struct sock *sk)
include/net/sock.h
1428
static inline bool __sk_stream_is_writeable(const struct sock *sk, int wake)
include/net/sock.h
1434
static inline bool sk_stream_is_writeable(const struct sock *sk)
include/net/sock.h
1439
static inline int sk_under_cgroup_hierarchy(struct sock *sk,
include/net/sock.h
1452
static inline void sk_sockets_allocated_dec(struct sock *sk)
include/net/sock.h
1458
static inline void sk_sockets_allocated_inc(struct sock *sk)
include/net/sock.h
1465
sk_sockets_allocated_read_positive(struct sock *sk)
include/net/sock.h
1511
static inline int __sk_prot_rehash(struct sock *sk)
include/net/sock.h
1552
int __sk_mem_raise_allocated(struct sock *sk, int size, int amt, int kind);
include/net/sock.h
1553
int __sk_mem_schedule(struct sock *sk, int size, int kind);
include/net/sock.h
1554
void __sk_mem_reduce_allocated(struct sock *sk, int amount);
include/net/sock.h
1555
void __sk_mem_reclaim(struct sock *sk, int amount);
include/net/sock.h
1561
static inline long sk_prot_mem_limits(const struct sock *sk, int index)
include/net/sock.h
1571
static inline bool sk_has_account(struct sock *sk)
include/net/sock.h
1577
static inline bool sk_wmem_schedule(struct sock *sk, int size)
include/net/sock.h
1588
__sk_rmem_schedule(struct sock *sk, int size, bool pfmemalloc)
include/net/sock.h
1600
sk_rmem_schedule(struct sock *sk, const struct sk_buff *skb, int size)
include/net/sock.h
1605
static inline int sk_unused_reserved_mem(const struct sock *sk)
include/net/sock.h
1618
static inline void sk_mem_reclaim(struct sock *sk)
include/net/sock.h
1631
static inline void sk_mem_reclaim_final(struct sock *sk)
include/net/sock.h
1637
static inline void sk_mem_charge(struct sock *sk, int size)
include/net/sock.h
1644
static inline void sk_mem_uncharge(struct sock *sk, int size)
include/net/sock.h
1652
void __sk_charge(struct sock *sk, gfp_t gfp);
include/net/sock.h
1655
static inline void sk_owner_set(struct sock *sk, struct module *owner)
include/net/sock.h
1661
static inline void sk_owner_clear(struct sock *sk)
include/net/sock.h
1666
static inline void sk_owner_put(struct sock *sk)
include/net/sock.h
1671
static inline void sk_owner_set(struct sock *sk, struct module *owner)
include/net/sock.h
1675
static inline void sk_owner_clear(struct sock *sk)
include/net/sock.h
1679
static inline void sk_owner_put(struct sock *sk)
include/net/sock.h
1703
static inline bool lockdep_sock_is_held(const struct sock *sk)
include/net/sock.h
1709
void lock_sock_nested(struct sock *sk, int subclass);
include/net/sock.h
1711
static inline void lock_sock(struct sock *sk)
include/net/sock.h
1716
void __release_sock(struct sock *sk);
include/net/sock.h
1717
void release_sock(struct sock *sk);
include/net/sock.h
1726
bool __lock_sock_fast(struct sock *sk) __acquires(&sk->sk_lock.slock);
include/net/sock.h
1741
static inline bool lock_sock_fast(struct sock *sk)
include/net/sock.h
1750
static inline bool lock_sock_fast_nested(struct sock *sk)
include/net/sock.h
1765
static inline void unlock_sock_fast(struct sock *sk, bool slow)
include/net/sock.h
1777
void sockopt_lock_sock(struct sock *sk);
include/net/sock.h
1778
void sockopt_release_sock(struct sock *sk);
include/net/sock.h
1796
static inline void sock_owned_by_me(const struct sock *sk)
include/net/sock.h
1803
static inline void sock_not_owned_by_me(const struct sock *sk)
include/net/sock.h
1810
static inline bool sock_owned_by_user(const struct sock *sk)
include/net/sock.h
1816
static inline bool sock_owned_by_user_nocheck(const struct sock *sk)
include/net/sock.h
1821
static inline void sock_release_ownership(struct sock *sk)
include/net/sock.h
1831
static inline bool sock_allow_reclassification(const struct sock *csk)
include/net/sock.h
1833
struct sock *sk = (struct sock *)csk;
include/net/sock.h
1839
struct sock *sk_alloc(struct net *net, int family, gfp_t priority,
include/net/sock.h
1841
void sk_free(struct sock *sk);
include/net/sock.h
1842
void sk_net_refcnt_upgrade(struct sock *sk);
include/net/sock.h
1843
void sk_destruct(struct sock *sk);
include/net/sock.h
1844
struct sock *sk_clone(const struct sock *sk, const gfp_t priority, bool lock);
include/net/sock.h
1846
static inline struct sock *sk_clone_lock(const struct sock *sk, const gfp_t priority)
include/net/sock.h
1851
struct sk_buff *sock_wmalloc(struct sock *sk, unsigned long size, int force,
include/net/sock.h
1864
struct sk_buff *sock_omalloc(struct sock *sk, unsigned long size,
include/net/sock.h
1874
static inline void skb_set_owner_edemux(struct sk_buff *skb, struct sock *sk)
include/net/sock.h
1886
int sk_setsockopt(struct sock *sk, int level, int optname,
include/net/sock.h
1888
int sock_setsockopt(struct socket *sock, int level, int op,
include/net/sock.h
1890
int do_sock_setsockopt(struct socket *sock, bool compat, int level,
include/net/sock.h
1892
int do_sock_getsockopt(struct socket *sock, bool compat, int level,
include/net/sock.h
1895
int sk_getsockopt(struct sock *sk, int level, int optname,
include/net/sock.h
1897
int sock_gettstamp(struct socket *sock, void __user *userstamp,
include/net/sock.h
1899
struct sk_buff *sock_alloc_send_pskb(struct sock *sk, unsigned long header_len,
include/net/sock.h
1903
static inline struct sk_buff *sock_alloc_send_skb(struct sock *sk,
include/net/sock.h
1910
void *sock_kmalloc(struct sock *sk, int size, gfp_t priority);
include/net/sock.h
1911
void *sock_kmemdup(struct sock *sk, const void *src,
include/net/sock.h
1913
void sock_kfree_s(struct sock *sk, void *mem, int size);
include/net/sock.h
1914
void sock_kzfree_s(struct sock *sk, void *mem, int size);
include/net/sock.h
1915
void sk_send_sigurg(struct sock *sk);
include/net/sock.h
1917
static inline void sock_replace_proto(struct sock *sk, struct proto *proto)
include/net/sock.h
1934
const struct sock *sk)
include/net/sock.h
1943
int __sock_cmsg_send(struct sock *sk, struct cmsghdr *cmsg,
include/net/sock.h
1945
int sock_cmsg_send(struct sock *sk, struct msghdr *msg,
include/net/sock.h
1952
int sock_no_bind(struct socket *sock, struct sockaddr_unsized *saddr, int len);
include/net/sock.h
1953
int sock_no_connect(struct socket *sock, struct sockaddr_unsized *saddr, int len, int flags);
include/net/sock.h
1961
int sock_no_sendmsg_locked(struct sock *sk, struct msghdr *msg, size_t len);
include/net/sock.h
1963
int sock_no_mmap(struct file *file, struct socket *sock,
include/net/sock.h
1970
int sock_common_getsockopt(struct socket *sock, int level, int optname,
include/net/sock.h
1972
int sock_common_recvmsg(struct socket *sock, struct msghdr *msg, size_t size,
include/net/sock.h
1974
int sock_common_setsockopt(struct socket *sock, int level, int optname,
include/net/sock.h
1977
void sk_common_release(struct sock *sk);
include/net/sock.h
1984
void sock_init_data_uid(struct socket *sock, struct sock *sk, kuid_t uid);
include/net/sock.h
1989
void sock_init_data(struct socket *sock, struct sock *sk);
include/net/sock.h
2017
static inline void sock_put(struct sock *sk)
include/net/sock.h
2025
void sock_gen_put(struct sock *sk);
include/net/sock.h
2027
int __sk_receive_skb(struct sock *sk, struct sk_buff *skb, const int nested,
include/net/sock.h
2029
static inline int sk_receive_skb(struct sock *sk, struct sk_buff *skb,
include/net/sock.h
2035
static inline void sk_tx_queue_set(struct sock *sk, int tx_queue)
include/net/sock.h
2056
static inline void sk_tx_queue_clear(struct sock *sk)
include/net/sock.h
206
struct sock *skc_listener; /* request_sock */
include/net/sock.h
2064
int sk_tx_queue_get(const struct sock *sk);
include/net/sock.h
2066
static inline void __sk_rx_queue_set(struct sock *sk,
include/net/sock.h
2081
static inline void sk_rx_queue_set(struct sock *sk, const struct sk_buff *skb)
include/net/sock.h
2086
static inline void sk_rx_queue_update(struct sock *sk, const struct sk_buff *skb)
include/net/sock.h
2091
static inline void sk_rx_queue_clear(struct sock *sk)
include/net/sock.h
2098
static inline int sk_rx_queue_get(const struct sock *sk)
include/net/sock.h
2112
static inline void sk_set_socket(struct sock *sk, struct socket *sock)
include/net/sock.h
2114
WRITE_ONCE(sk->sk_socket, sock);
include/net/sock.h
2115
if (sock) {
include/net/sock.h
2116
WRITE_ONCE(sk->sk_uid, SOCK_INODE(sock)->i_uid);
include/net/sock.h
2117
WRITE_ONCE(sk->sk_ino, SOCK_INODE(sock)->i_ino);
include/net/sock.h
2124
static inline wait_queue_head_t *sk_sleep(struct sock *sk)
include/net/sock.h
2136
static inline void sock_orphan(struct sock *sk)
include/net/sock.h
2145
static inline void sock_graft(struct sock *sk, struct socket *parent)
include/net/sock.h
2156
static inline u64 sock_i_ino(const struct sock *sk)
include/net/sock.h
2162
static inline kuid_t sk_uid(const struct sock *sk)
include/net/sock.h
2168
static inline kuid_t sock_net_uid(const struct net *net, const struct sock *sk)
include/net/sock.h
2180
static inline void sk_set_txhash(struct sock *sk)
include/net/sock.h
2186
static inline bool sk_rethink_txhash(struct sock *sk)
include/net/sock.h
2196
__sk_dst_get(const struct sock *sk)
include/net/sock.h
2203
sk_dst_get(const struct sock *sk)
include/net/sock.h
2215
static inline void __dst_negative_advice(struct sock *sk)
include/net/sock.h
2223
static inline void dst_negative_advice(struct sock *sk)
include/net/sock.h
2230
__sk_dst_set(struct sock *sk, struct dst_entry *dst)
include/net/sock.h
2243
sk_dst_set(struct sock *sk, struct dst_entry *dst)
include/net/sock.h
2254
__sk_dst_reset(struct sock *sk)
include/net/sock.h
2260
sk_dst_reset(struct sock *sk)
include/net/sock.h
2269
static inline bool __sk_rethink_txhash_reset_dst(struct sock *sk)
include/net/sock.h
2279
struct dst_entry *__sk_dst_check(struct sock *sk, u32 cookie);
include/net/sock.h
2281
struct dst_entry *sk_dst_check(struct sock *sk, u32 cookie);
include/net/sock.h
2283
static inline void sk_dst_confirm(struct sock *sk)
include/net/sock.h
2292
struct sock *sk = skb->sk;
include/net/sock.h
2300
bool sk_mc_loop(const struct sock *sk);
include/net/sock.h
2302
static inline bool sk_can_gso(const struct sock *sk)
include/net/sock.h
2307
void sk_setup_caps(struct sock *sk, struct dst_entry *dst);
include/net/sock.h
2309
static inline void sk_gso_disable(struct sock *sk)
include/net/sock.h
2315
static inline int skb_do_copy_data_nocache(struct sock *sk, struct sk_buff *skb,
include/net/sock.h
2333
static inline int skb_add_data_nocache(struct sock *sk, struct sk_buff *skb,
include/net/sock.h
2346
static inline int skb_copy_to_page_nocache(struct sock *sk, struct iov_iter *from,
include/net/sock.h
2371
static inline int sk_wmem_alloc_get(const struct sock *sk)
include/net/sock.h
2382
static inline int sk_rmem_alloc_get(const struct sock *sk)
include/net/sock.h
2393
static inline bool sk_has_allocations(const struct sock *sk)
include/net/sock.h
2442
static inline void sock_poll_wait(struct file *filp, struct socket *sock,
include/net/sock.h
2450
poll_wait(filp, &sock->wq.wait, p);
include/net/sock.h
2453
static inline void skb_set_hash_from_sk(struct sk_buff *skb, struct sock *sk)
include/net/sock.h
2464
void skb_set_owner_w(struct sk_buff *skb, struct sock *sk);
include/net/sock.h
2474
static inline void skb_set_owner_r(struct sk_buff *skb, struct sock *sk)
include/net/sock.h
2483
static inline __must_check bool skb_set_owner_sk_safe(struct sk_buff *skb, struct sock *sk)
include/net/sock.h
2494
static inline struct sk_buff *skb_clone_and_charge_r(struct sk_buff *skb, struct sock *sk)
include/net/sock.h
2516
void sk_reset_timer(struct sock *sk, struct timer_list *timer,
include/net/sock.h
2519
void sk_stop_timer(struct sock *sk, struct timer_list *timer);
include/net/sock.h
2521
void sk_stop_timer_sync(struct sock *sk, struct timer_list *timer);
include/net/sock.h
2523
int __sk_queue_drop_skb(struct sock *sk, struct sk_buff_head *sk_queue,
include/net/sock.h
2525
void (*destructor)(struct sock *sk,
include/net/sock.h
2527
int __sock_queue_rcv_skb(struct sock *sk, struct sk_buff *skb);
include/net/sock.h
2530
sock_queue_rcv_skb_reason(struct sock *sk, struct sk_buff *skb);
include/net/sock.h
2532
static inline int sock_queue_rcv_skb(struct sock *sk, struct sk_buff *skb)
include/net/sock.h
2548
int sock_queue_err_skb(struct sock *sk, struct sk_buff *skb);
include/net/sock.h
2549
struct sk_buff *sock_dequeue_err_skb(struct sock *sk);
include/net/sock.h
2555
static inline int sock_error(struct sock *sk)
include/net/sock.h
2569
void sk_error_report(struct sock *sk);
include/net/sock.h
2571
static inline unsigned long sock_wspace(struct sock *sk)
include/net/sock.h
2587
static inline void sk_set_bit(int nr, struct sock *sk)
include/net/sock.h
2596
static inline void sk_clear_bit(int nr, struct sock *sk)
include/net/sock.h
2605
static inline void sk_wake_async(const struct sock *sk, int how, int band)
include/net/sock.h
2614
static inline void sk_wake_async_rcu(const struct sock *sk, int how, int band)
include/net/sock.h
2630
static inline void sk_stream_moderate_sndbuf(struct sock *sk)
include/net/sock.h
2659
static inline struct page_frag *sk_page_frag(struct sock *sk)
include/net/sock.h
2667
bool sk_page_frag_refill(struct sock *sk, struct page_frag *pfrag);
include/net/sock.h
2669
static inline bool __sock_writeable(const struct sock *sk, int wmem_alloc)
include/net/sock.h
2676
static inline bool sock_writeable(const struct sock *sk)
include/net/sock.h
2692
static inline struct mem_cgroup *mem_cgroup_from_sk(const struct sock *sk)
include/net/sock.h
2697
static inline bool mem_cgroup_sk_enabled(const struct sock *sk)
include/net/sock.h
2702
static inline bool mem_cgroup_sk_under_memory_pressure(const struct sock *sk)
include/net/sock.h
2723
static inline struct mem_cgroup *mem_cgroup_from_sk(const struct sock *sk)
include/net/sock.h
2728
static inline bool mem_cgroup_sk_enabled(const struct sock *sk)
include/net/sock.h
2733
static inline bool mem_cgroup_sk_under_memory_pressure(const struct sock *sk)
include/net/sock.h
2739
static inline long sock_rcvtimeo(const struct sock *sk, bool noblock)
include/net/sock.h
2744
static inline long sock_sndtimeo(const struct sock *sk, bool noblock)
include/net/sock.h
2749
static inline int sock_rcvlowat(const struct sock *sk, int waitall, int len)
include/net/sock.h
2781
static inline void sk_drops_add(struct sock *sk, int segs)
include/net/sock.h
2791
static inline void sk_drops_inc(struct sock *sk)
include/net/sock.h
2796
static inline int sk_drops_read(const struct sock *sk)
include/net/sock.h
2807
static inline void sk_drops_reset(struct sock *sk)
include/net/sock.h
2817
sock_skb_set_dropcount(const struct sock *sk, struct sk_buff *skb)
include/net/sock.h
2823
static inline void sk_drops_skbadd(struct sock *sk, const struct sk_buff *skb)
include/net/sock.h
2830
static inline ktime_t sock_read_timestamp(struct sock *sk)
include/net/sock.h
2847
static inline void sock_write_timestamp(struct sock *sk, ktime_t kt)
include/net/sock.h
2858
void __sock_recv_timestamp(struct msghdr *msg, struct sock *sk,
include/net/sock.h
2860
void __sock_recv_wifi_status(struct msghdr *msg, struct sock *sk,
include/net/sock.h
2863
bool skb_has_tx_timestamp(struct sk_buff *skb, const struct sock *sk);
include/net/sock.h
2864
int skb_get_tx_timestamp(struct sk_buff *skb, struct sock *sk,
include/net/sock.h
2868
sock_recv_timestamp(struct msghdr *msg, struct sock *sk, struct sk_buff *skb)
include/net/sock.h
2892
void __sock_recv_cmsgs(struct msghdr *msg, struct sock *sk,
include/net/sock.h
2896
static inline void sock_recv_cmsgs(struct msghdr *msg, struct sock *sk,
include/net/sock.h
2926
static inline void _sock_tx_timestamp(struct sock *sk,
include/net/sock.h
2944
static inline void sock_tx_timestamp(struct sock *sk,
include/net/sock.h
2958
static inline bool sk_is_inet(const struct sock *sk)
include/net/sock.h
2965
static inline bool sk_is_tcp(const struct sock *sk)
include/net/sock.h
2972
static inline bool sk_is_udp(const struct sock *sk)
include/net/sock.h
2979
static inline bool sk_is_unix(const struct sock *sk)
include/net/sock.h
2984
static inline bool sk_is_stream_unix(const struct sock *sk)
include/net/sock.h
2989
static inline bool sk_is_vsock(const struct sock *sk)
include/net/sock.h
2994
static inline bool sk_may_scm_recv(const struct sock *sk)
include/net/sock.h
3009
static inline void sk_eat_skb(struct sock *sk, struct sk_buff *skb)
include/net/sock.h
3028
static inline bool sk_fullsock(const struct sock *sk)
include/net/sock.h
3034
sk_is_refcounted(struct sock *sk)
include/net/sock.h
3041
sk_requests_wifi_status(struct sock *sk)
include/net/sock.h
3049
static inline bool sk_listener(const struct sock *sk)
include/net/sock.h
3058
static inline bool sk_listener_or_tw(const struct sock *sk)
include/net/sock.h
3064
void sock_enable_timestamp(struct sock *sk, enum sock_flags flag);
include/net/sock.h
3065
int sock_recv_errqueue(struct sock *sk, struct msghdr *msg, int len, int level,
include/net/sock.h
3068
bool sk_ns_capable(const struct sock *sk,
include/net/sock.h
3070
bool sk_capable(const struct sock *sk, int cap);
include/net/sock.h
3071
bool sk_net_capable(const struct sock *sk, int cap);
include/net/sock.h
3073
void sk_get_meminfo(const struct sock *sk, u32 *meminfo);
include/net/sock.h
3094
static inline int sk_get_wmem0(const struct sock *sk, const struct proto *proto)
include/net/sock.h
3103
static inline int sk_get_rmem0(const struct sock *sk, const struct proto *proto)
include/net/sock.h
3116
static inline void sk_pacing_shift_update(struct sock *sk, int val)
include/net/sock.h
3128
static inline bool sk_dev_equal_l3scope(struct sock *sk, int dif)
include/net/sock.h
3143
void sock_def_readable(struct sock *sk);
include/net/sock.h
3145
int sock_bindtoindex(struct sock *sk, int ifindex, bool lock_sk);
include/net/sock.h
3146
void sock_set_timestamp(struct sock *sk, int optname, bool valbool);
include/net/sock.h
3147
int sock_set_timestamping(struct sock *sk, int optname,
include/net/sock.h
3151
void bpf_skops_tx_timestamping(struct sock *sk, struct sk_buff *skb, int op);
include/net/sock.h
3153
static inline void bpf_skops_tx_timestamping(struct sock *sk, struct sk_buff *skb, int op)
include/net/sock.h
3157
void sock_no_linger(struct sock *sk);
include/net/sock.h
3158
void sock_set_keepalive(struct sock *sk);
include/net/sock.h
3159
void sock_set_priority(struct sock *sk, u32 priority);
include/net/sock.h
3160
void sock_set_rcvbuf(struct sock *sk, int val);
include/net/sock.h
3161
void sock_set_mark(struct sock *sk, u32 val);
include/net/sock.h
3162
void sock_set_reuseaddr(struct sock *sk);
include/net/sock.h
3163
void sock_set_reuseport(struct sock *sk);
include/net/sock.h
3164
void sock_set_sndtimeo(struct sock *sk, s64 secs);
include/net/sock.h
3166
int sock_bind_add(struct sock *sk, struct sockaddr_unsized *addr, int addr_len);
include/net/sock.h
3172
int sock_ioctl_inout(struct sock *sk, unsigned int cmd,
include/net/sock.h
3174
int sk_ioctl(struct sock *sk, unsigned int cmd, void __user *arg);
include/net/sock.h
3175
static inline bool sk_is_readable(struct sock *sk)
include/net/sock.h
453
void (*sk_data_ready)(struct sock *sk);
include/net/sock.h
517
struct sk_buff* (*sk_validate_xmit_skb)(struct sock *sk,
include/net/sock.h
580
void (*sk_state_change)(struct sock *sk);
include/net/sock.h
581
void (*sk_write_space)(struct sock *sk);
include/net/sock.h
582
void (*sk_error_report)(struct sock *sk);
include/net/sock.h
583
int (*sk_backlog_rcv)(struct sock *sk,
include/net/sock.h
585
void (*sk_destruct)(struct sock *sk);
include/net/sock.h
608
struct sock *sock;
include/net/sock.h
643
static inline bool sk_user_data_is_nocopy(const struct sock *sk)
include/net/sock.h
661
__locked_read_sk_user_data_with_flags(const struct sock *sk,
include/net/sock.h
684
__rcu_dereference_sk_user_data_with_flags(const struct sock *sk,
include/net/sock.h
711
struct net *sock_net(const struct sock *sk)
include/net/sock.h
717
void sock_net_set(struct sock *sk, struct net *net)
include/net/sock.h
733
int sk_set_peek_off(struct sock *sk, int val);
include/net/sock.h
735
static inline int sk_peek_offset(const struct sock *sk, int flags)
include/net/sock.h
744
static inline void sk_peek_offset_bwd(struct sock *sk, int val)
include/net/sock.h
754
static inline void sk_peek_offset_fwd(struct sock *sk, int val)
include/net/sock.h
762
static inline struct sock *sk_entry(const struct hlist_node *node)
include/net/sock.h
764
return hlist_entry(node, struct sock, sk_node);
include/net/sock.h
767
static inline struct sock *__sk_head(const struct hlist_head *head)
include/net/sock.h
769
return hlist_entry(head->first, struct sock, sk_node);
include/net/sock.h
772
static inline struct sock *sk_head(const struct hlist_head *head)
include/net/sock.h
777
static inline struct sock *__sk_nulls_head(const struct hlist_nulls_head *head)
include/net/sock.h
779
return hlist_nulls_entry(head->first, struct sock, sk_nulls_node);
include/net/sock.h
782
static inline struct sock *sk_nulls_head(const struct hlist_nulls_head *head)
include/net/sock.h
787
static inline struct sock *sk_next(const struct sock *sk)
include/net/sock.h
789
return hlist_entry_safe(sk->sk_node.next, struct sock, sk_node);
include/net/sock.h
792
static inline struct sock *sk_nulls_next(const struct sock *sk)
include/net/sock.h
796
struct sock, sk_nulls_node) :
include/net/sock.h
800
static inline bool sk_unhashed(const struct sock *sk)
include/net/sock.h
805
static inline bool sk_hashed(const struct sock *sk)
include/net/sock.h
815
static inline void __sk_del_node(struct sock *sk)
include/net/sock.h
821
static inline bool __sk_del_node_init(struct sock *sk)
include/net/sock.h
837
static __always_inline void sock_hold(struct sock *sk)
include/net/sock.h
845
static __always_inline void __sock_put(struct sock *sk)
include/net/sock.h
850
static inline bool sk_del_node_init(struct sock *sk)
include/net/sock.h
861
static inline bool __sk_nulls_del_node_init_rcu(struct sock *sk)
include/net/sock.h
870
static inline bool sk_nulls_del_node_init_rcu(struct sock *sk)
include/net/sock.h
880
static inline bool sk_nulls_replace_node_init_rcu(struct sock *old,
include/net/sock.h
881
struct sock *new)
include/net/sock.h
893
static inline void __sk_add_node(struct sock *sk, struct hlist_head *list)
include/net/sock.h
898
static inline void sk_add_node(struct sock *sk, struct hlist_head *list)
include/net/sock.h
904
static inline void sk_add_node_rcu(struct sock *sk, struct hlist_head *list)
include/net/sock.h
914
static inline void sk_add_node_tail_rcu(struct sock *sk, struct hlist_head *list)
include/net/sock.h
920
static inline void __sk_nulls_add_node_rcu(struct sock *sk, struct hlist_nulls_head *list)
include/net/sock.h
925
static inline void __sk_nulls_add_node_tail_rcu(struct sock *sk, struct hlist_nulls_head *list)
include/net/sock.h
930
static inline void sk_nulls_add_node_rcu(struct sock *sk, struct hlist_nulls_head *list)
include/net/sock.h
936
static inline void __sk_del_bind_node(struct sock *sk)
include/net/sock.h
941
static inline void sk_add_bind_node(struct sock *sk,
include/net/sock.h
981
static inline struct user_namespace *sk_user_ns(const struct sock *sk)
include/net/sock_reuseport.h
29
struct sock *socks[] __counted_by(max_socks);
include/net/sock_reuseport.h
32
extern int reuseport_alloc(struct sock *sk, bool bind_inany);
include/net/sock_reuseport.h
33
extern int reuseport_add_sock(struct sock *sk, struct sock *sk2,
include/net/sock_reuseport.h
35
extern void reuseport_detach_sock(struct sock *sk);
include/net/sock_reuseport.h
36
void reuseport_stop_listen_sock(struct sock *sk);
include/net/sock_reuseport.h
37
extern struct sock *reuseport_select_sock(struct sock *sk,
include/net/sock_reuseport.h
41
struct sock *reuseport_migrate_sock(struct sock *sk,
include/net/sock_reuseport.h
42
struct sock *migrating_sk,
include/net/sock_reuseport.h
44
extern int reuseport_attach_prog(struct sock *sk, struct bpf_prog *prog);
include/net/sock_reuseport.h
45
extern int reuseport_detach_prog(struct sock *sk);
include/net/sock_reuseport.h
47
static inline bool reuseport_has_conns(struct sock *sk)
include/net/sock_reuseport.h
61
void reuseport_has_conns_set(struct sock *sk);
include/net/sock_reuseport.h
62
void reuseport_update_incoming_cpu(struct sock *sk, int val);
include/net/strparser.h
163
int strp_init(struct strparser *strp, struct sock *sk,
include/net/strparser.h
92
struct sock *sk;
include/net/tcp.h
1340
void (*cong_avoid)(struct sock *sk, u32 ack, u32 acked);
include/net/tcp.h
1344
void (*cong_control)(struct sock *sk, u32 ack, int flag, const struct rate_sample *rs);
include/net/tcp.h
1347
u32 (*ssthresh)(struct sock *sk);
include/net/tcp.h
1350
void (*set_state)(struct sock *sk, u8 new_state);
include/net/tcp.h
1353
void (*cwnd_event)(struct sock *sk, enum tcp_ca_event ev);
include/net/tcp.h
1356
void (*cwnd_event_tx_start)(struct sock *sk);
include/net/tcp.h
1359
void (*in_ack_event)(struct sock *sk, u32 flags);
include/net/tcp.h
1362
void (*pkts_acked)(struct sock *sk, const struct ack_sample *sample);
include/net/tcp.h
1365
u32 (*min_tso_segs)(struct sock *sk);
include/net/tcp.h
1368
u32 (*undo_cwnd)(struct sock *sk);
include/net/tcp.h
1370
u32 (*sndbuf_expand)(struct sock *sk);
include/net/tcp.h
1374
size_t (*get_info)(struct sock *sk, u32 ext, int *attr,
include/net/tcp.h
1384
void (*init)(struct sock *sk);
include/net/tcp.h
1386
void (*release)(struct sock *sk);
include/net/tcp.h
1395
void tcp_assign_congestion_control(struct sock *sk);
include/net/tcp.h
1396
void tcp_init_congestion_control(struct sock *sk);
include/net/tcp.h
1397
void tcp_cleanup_congestion_control(struct sock *sk);
include/net/tcp.h
1403
int tcp_set_congestion_control(struct sock *sk, const char *name, bool load,
include/net/tcp.h
1408
u32 tcp_reno_ssthresh(struct sock *sk);
include/net/tcp.h
1409
u32 tcp_reno_undo_cwnd(struct sock *sk);
include/net/tcp.h
1410
void tcp_reno_cong_avoid(struct sock *sk, u32 ack, u32 acked);
include/net/tcp.h
1425
static inline bool tcp_ca_needs_ecn(const struct sock *sk)
include/net/tcp.h
1432
static inline bool tcp_ca_needs_accecn(const struct sock *sk)
include/net/tcp.h
1439
static inline bool tcp_ca_ect_1_negotiation(const struct sock *sk)
include/net/tcp.h
1446
static inline bool tcp_ca_no_fallback_rfc3168(const struct sock *sk)
include/net/tcp.h
1453
static inline void tcp_ca_event(struct sock *sk, const enum tcp_ca_event event)
include/net/tcp.h
1467
void tcp_set_ca_state(struct sock *sk, const u8 ca_state);
include/net/tcp.h
1539
static inline bool tcp_in_cwnd_reduction(const struct sock *sk)
include/net/tcp.h
1549
static inline __u32 tcp_current_ssthresh(const struct sock *sk)
include/net/tcp.h
1564
void tcp_enter_cwr(struct sock *sk);
include/net/tcp.h
1594
static inline bool tcp_is_cwnd_limited(const struct sock *sk)
include/net/tcp.h
1614
static inline bool tcp_needs_internal_pacing(const struct sock *sk)
include/net/tcp.h
1622
static inline unsigned long tcp_pacing_delay(const struct sock *sk)
include/net/tcp.h
1629
static inline void tcp_reset_xmit_timer(struct sock *sk,
include/net/tcp.h
1646
static inline unsigned long tcp_probe0_base(const struct sock *sk)
include/net/tcp.h
1652
static inline unsigned long tcp_probe0_when(const struct sock *sk,
include/net/tcp.h
1662
static inline void tcp_check_probe_timer(struct sock *sk)
include/net/tcp.h
1694
enum skb_drop_reason tcp_add_backlog(struct sock *sk, struct sk_buff *skb);
include/net/tcp.h
1697
tcp_filter(struct sock *sk, struct sk_buff *skb)
include/net/tcp.h
1704
void tcp_set_state(struct sock *sk, int state);
include/net/tcp.h
1705
void tcp_done(struct sock *sk);
include/net/tcp.h
1706
int tcp_abort(struct sock *sk, int err);
include/net/tcp.h
1714
void tcp_cwnd_restart(struct sock *sk, s32 delta);
include/net/tcp.h
1716
static inline void tcp_slow_start_after_idle_check(struct sock *sk)
include/net/tcp.h
1731
void tcp_select_initial_window(const struct sock *sk, int __space,
include/net/tcp.h
1743
static inline int tcp_win_from_space(const struct sock *sk, int space)
include/net/tcp.h
1757
static inline int tcp_space_from_win(const struct sock *sk, int win)
include/net/tcp.h
1767
static inline void tcp_scaling_ratio_init(struct sock *sk)
include/net/tcp.h
1773
static inline int tcp_space(const struct sock *sk)
include/net/tcp.h
1780
static inline int tcp_full_space(const struct sock *sk)
include/net/tcp.h
1785
static inline void __tcp_adjust_rcv_ssthresh(struct sock *sk, u32 new_ssthresh)
include/net/tcp.h
1796
static inline void tcp_adjust_rcv_ssthresh(struct sock *sk)
include/net/tcp.h
1801
void tcp_cleanup_rbuf(struct sock *sk, int copied);
include/net/tcp.h
1802
void __tcp_cleanup_rbuf(struct sock *sk, int copied);
include/net/tcp.h
1810
static inline bool tcp_rmem_pressure(const struct sock *sk)
include/net/tcp.h
1823
static inline bool tcp_epollin_ready(const struct sock *sk, int target)
include/net/tcp.h
1836
const struct sock *sk_listener,
include/net/tcp.h
1839
void tcp_enter_memory_pressure(struct sock *sk);
include/net/tcp.h
1840
void tcp_leave_memory_pressure(struct sock *sk);
include/net/tcp.h
1844
struct net *net = sock_net((struct sock *)tp);
include/net/tcp.h
1857
struct net *net = sock_net((struct sock *)tp);
include/net/tcp.h
1868
struct net *net = sock_net((struct sock *)tp);
include/net/tcp.h
1887
static inline int tcp_fin_time(const struct sock *sk)
include/net/tcp.h
1946
if (sk_is_mptcp((struct sock *)tp))
include/net/tcp.h
1964
static inline void tcp_fast_path_check(struct sock *sk)
include/net/tcp.h
1977
void tcp_reqsk_send_challenge_ack(struct sock *sk, struct sk_buff *skb,
include/net/tcp.h
2033
const struct sock *sk, const struct sk_buff *skb);
include/net/tcp.h
2034
int tcp_md5_do_add(struct sock *sk, const union tcp_md5_addr *addr,
include/net/tcp.h
2037
int tcp_md5_key_copy(struct sock *sk, const union tcp_md5_addr *addr,
include/net/tcp.h
2041
int tcp_md5_do_del(struct sock *sk, const union tcp_md5_addr *addr,
include/net/tcp.h
2043
void tcp_clear_md5_list(struct sock *sk);
include/net/tcp.h
2044
struct tcp_md5sig_key *tcp_v4_md5_lookup(const struct sock *sk,
include/net/tcp.h
2045
const struct sock *addr_sk);
include/net/tcp.h
2048
struct tcp_md5sig_key *__tcp_md5_do_lookup(const struct sock *sk, int l3index,
include/net/tcp.h
2052
tcp_md5_do_lookup(const struct sock *sk, int l3index,
include/net/tcp.h
2061
tcp_md5_do_lookup_any_l3index(const struct sock *sk,
include/net/tcp.h
2070
void tcp_md5_destruct_sock(struct sock *sk);
include/net/tcp.h
2073
tcp_md5_do_lookup(const struct sock *sk, int l3index,
include/net/tcp.h
2080
tcp_md5_do_lookup_any_l3index(const struct sock *sk,
include/net/tcp.h
2087
static inline void tcp_md5_destruct_sock(struct sock *sk)
include/net/tcp.h
2098
void tcp_fastopen_cache_get(struct sock *sk, u16 *mss,
include/net/tcp.h
2100
void tcp_fastopen_cache_set(struct sock *sk, u16 mss,
include/net/tcp.h
2112
void tcp_fastopen_destroy_cipher(struct sock *sk);
include/net/tcp.h
2114
int tcp_fastopen_reset_cipher(struct net *net, struct sock *sk,
include/net/tcp.h
2118
void tcp_fastopen_add_skb(struct sock *sk, struct sk_buff *skb);
include/net/tcp.h
2119
struct sock *tcp_try_fastopen(struct sock *sk, struct sk_buff *skb,
include/net/tcp.h
2124
bool tcp_fastopen_cookie_check(struct sock *sk, u16 *mss,
include/net/tcp.h
2126
bool tcp_fastopen_defer_connect(struct sock *sk, int *err);
include/net/tcp.h
2139
void tcp_fastopen_active_disable(struct sock *sk);
include/net/tcp.h
2140
bool tcp_fastopen_active_should_disable(struct sock *sk);
include/net/tcp.h
2141
void tcp_fastopen_active_disable_ofo_check(struct sock *sk);
include/net/tcp.h
2142
void tcp_fastopen_active_detect_blackhole(struct sock *sk, bool expired);
include/net/tcp.h
2146
struct tcp_fastopen_context *tcp_fastopen_get_ctx(const struct sock *sk)
include/net/tcp.h
2199
static inline void tcp_chrono_start(struct sock *sk, const enum tcp_chrono type)
include/net/tcp.h
2212
void tcp_chrono_stop(struct sock *sk, const enum tcp_chrono type);
include/net/tcp.h
2231
void tcp_write_queue_purge(struct sock *sk);
include/net/tcp.h
2233
static inline struct sk_buff *tcp_rtx_queue_head(const struct sock *sk)
include/net/tcp.h
2238
static inline struct sk_buff *tcp_rtx_queue_tail(const struct sock *sk)
include/net/tcp.h
2243
static inline struct sk_buff *tcp_write_queue_tail(const struct sock *sk)
include/net/tcp.h
2251
static inline struct sk_buff *tcp_send_head(const struct sock *sk)
include/net/tcp.h
2256
static inline bool tcp_skb_is_last(const struct sock *sk,
include/net/tcp.h
2269
static inline bool tcp_write_queue_empty(const struct sock *sk)
include/net/tcp.h
2276
static inline bool tcp_rtx_queue_empty(const struct sock *sk)
include/net/tcp.h
2281
static inline bool tcp_rtx_and_write_queues_empty(const struct sock *sk)
include/net/tcp.h
2286
static inline void tcp_add_write_queue_tail(struct sock *sk, struct sk_buff *skb)
include/net/tcp.h
2298
struct sock *sk)
include/net/tcp.h
2303
static inline void tcp_unlink_write_queue(struct sk_buff *skb, struct sock *sk)
include/net/tcp.h
2311
static inline void tcp_rtx_queue_unlink(struct sk_buff *skb, struct sock *sk)
include/net/tcp.h
2317
static inline void tcp_rtx_queue_unlink_and_free(struct sk_buff *skb, struct sock *sk)
include/net/tcp.h
2324
static inline void tcp_write_collapse_fence(struct sock *sk)
include/net/tcp.h
2332
static inline void tcp_push_pending_frames(struct sock *sk)
include/net/tcp.h
2356
static inline void tcp_advance_highest_sack(struct sock *sk, struct sk_buff *skb)
include/net/tcp.h
2361
static inline struct sk_buff *tcp_highest_sack(struct sock *sk)
include/net/tcp.h
2366
static inline void tcp_highest_sack_reset(struct sock *sk)
include/net/tcp.h
2372
static inline void tcp_highest_sack_replace(struct sock *sk,
include/net/tcp.h
2381
static inline bool inet_sk_transparent(const struct sock *sk)
include/net/tcp.h
2417
struct sock *syn_wait_sk;
include/net/tcp.h
2425
void tcp_v4_destroy_sock(struct sock *sk);
include/net/tcp.h
2452
struct net *net = sock_net((struct sock *)tp);
include/net/tcp.h
2460
bool tcp_stream_memory_free(const struct sock *sk, int wake);
include/net/tcp.h
2467
int tcp_rtx_synack(const struct sock *sk, struct request_sock *req);
include/net/tcp.h
2470
struct sock *sk, struct sk_buff *skb);
include/net/tcp.h
2475
struct tcp_md5sig_key *(*md5_lookup) (const struct sock *sk,
include/net/tcp.h
2476
const struct sock *addr_sk);
include/net/tcp.h
2479
const struct sock *sk,
include/net/tcp.h
2481
int (*md5_parse)(struct sock *sk,
include/net/tcp.h
2487
int (*ao_parse)(struct sock *sk, int optname, sockptr_t optval, int optlen);
include/net/tcp.h
2488
struct tcp_ao_key *(*ao_lookup)(const struct sock *sk,
include/net/tcp.h
2489
struct sock *addr_sk,
include/net/tcp.h
2492
const struct sock *sk,
include/net/tcp.h
2495
const struct sock *sk, const struct sk_buff *skb,
include/net/tcp.h
2503
struct tcp_md5sig_key *(*req_md5_lookup)(const struct sock *sk,
include/net/tcp.h
2504
const struct sock *addr_sk);
include/net/tcp.h
2507
const struct sock *sk,
include/net/tcp.h
2511
struct tcp_ao_key *(*ao_lookup)(const struct sock *sk,
include/net/tcp.h
2523
struct dst_entry *(*route_req)(const struct sock *sk,
include/net/tcp.h
2531
int (*send_synack)(const struct sock *sk, struct dst_entry *dst,
include/net/tcp.h
2558
static inline void cookie_record_sent(const struct sock *sk)
include/net/tcp.h
2564
static inline void cookie_record_sent(const struct sock *sk)
include/net/tcp.h
2586
static inline void tcp_get_current_key(const struct sock *sk,
include/net/tcp.h
2639
void tcp_mark_skb_lost(struct sock *sk, struct sk_buff *skb);
include/net/tcp.h
2640
void tcp_newreno_mark_lost(struct sock *sk, bool snd_una_advanced);
include/net/tcp.h
2643
extern bool tcp_rack_mark_lost(struct sock *sk);
include/net/tcp.h
2644
extern void tcp_rack_reo_timeout(struct sock *sk);
include/net/tcp.h
2663
static inline void tcp_plb_init(const struct sock *sk,
include/net/tcp.h
2669
void tcp_plb_update_state(const struct sock *sk, struct tcp_plb_state *plb,
include/net/tcp.h
2671
void tcp_plb_check_rehash(struct sock *sk, struct tcp_plb_state *plb);
include/net/tcp.h
2672
void tcp_plb_update_state_upon_rto(struct sock *sk, struct tcp_plb_state *plb);
include/net/tcp.h
2674
static inline void tcp_warn_once(const struct sock *sk, bool cond, const char *str)
include/net/tcp.h
2689
static inline s64 tcp_rto_delta_us(const struct sock *sk)
include/net/tcp.h
2741
static inline int tcp_inq(struct sock *sk)
include/net/tcp.h
2765
int tcp_peek_len(struct socket *sock);
include/net/tcp.h
2788
static inline void tcp_listendrop(const struct sock *sk)
include/net/tcp.h
2790
sk_drops_inc((struct sock *)sk);
include/net/tcp.h
2808
int (*init)(struct sock *sk);
include/net/tcp.h
2810
void (*update)(struct sock *sk, struct proto *p,
include/net/tcp.h
2811
void (*write_space)(struct sock *sk));
include/net/tcp.h
2813
void (*release)(struct sock *sk);
include/net/tcp.h
2815
int (*get_info)(struct sock *sk, struct sk_buff *skb, bool net_admin);
include/net/tcp.h
2816
size_t (*get_info_size)(const struct sock *sk, bool net_admin);
include/net/tcp.h
2818
void (*clone)(const struct request_sock *req, struct sock *newsk,
include/net/tcp.h
2826
int tcp_set_ulp(struct sock *sk, const char *name);
include/net/tcp.h
2828
void tcp_cleanup_ulp(struct sock *sk);
include/net/tcp.h
2829
void tcp_update_ulp(struct sock *sk, struct proto *p,
include/net/tcp.h
2830
void (*write_space)(struct sock *sk));
include/net/tcp.h
2841
int tcp_bpf_update_proto(struct sock *sk, struct sk_psock *psock, bool restore);
include/net/tcp.h
2842
void tcp_bpf_clone(const struct sock *sk, struct sock *newsk);
include/net/tcp.h
2851
void tcp_eat_skb(struct sock *sk, struct sk_buff *skb);
include/net/tcp.h
2853
static inline void tcp_eat_skb(struct sock *sk, struct sk_buff *skb)
include/net/tcp.h
2858
int tcp_bpf_sendmsg_redir(struct sock *sk, bool ingress,
include/net/tcp.h
2863
static inline void tcp_bpf_clone(const struct sock *sk, struct sock *newsk)
include/net/tcp.h
2890
static inline int tcp_call_bpf(struct sock *sk, int op, u32 nargs, u32 *args)
include/net/tcp.h
2915
static inline int tcp_call_bpf_2arg(struct sock *sk, int op, u32 arg1, u32 arg2)
include/net/tcp.h
2922
static inline int tcp_call_bpf_3arg(struct sock *sk, int op, u32 arg1, u32 arg2,
include/net/tcp.h
2930
static inline void tcp_clear_sock_ops_cb_flags(struct sock *sk)
include/net/tcp.h
2936
static inline int tcp_call_bpf(struct sock *sk, int op, u32 nargs, u32 *args)
include/net/tcp.h
2941
static inline int tcp_call_bpf_2arg(struct sock *sk, int op, u32 arg1, u32 arg2)
include/net/tcp.h
2946
static inline int tcp_call_bpf_3arg(struct sock *sk, int op, u32 arg1, u32 arg2,
include/net/tcp.h
2952
static inline void tcp_clear_sock_ops_cb_flags(struct sock *sk)
include/net/tcp.h
2958
static inline u32 tcp_timeout_init(struct sock *sk)
include/net/tcp.h
2969
static inline u32 tcp_rwnd_init_bpf(struct sock *sk)
include/net/tcp.h
2980
static inline bool tcp_bpf_ca_needs_ecn(struct sock *sk)
include/net/tcp.h
2985
static inline void tcp_bpf_rtt(struct sock *sk, long mrtt, u32 srtt)
include/net/tcp.h
299
static inline bool tcp_under_memory_pressure(const struct sock *sk)
include/net/tcp.h
2997
void (*cad)(struct sock *sk, u32 ack_seq));
include/net/tcp.h
3013
static inline u64 tcp_transmit_time(const struct sock *sk)
include/net/tcp.h
3047
static inline bool tcp_ao_required(struct sock *sk, const void *saddr,
include/net/tcp.h
3074
enum skb_drop_reason tcp_inbound_hash(struct sock *sk,
include/net/tcp.h
3079
static inline int tcp_recv_should_stop(struct sock *sk)
include/net/tcp.h
327
static inline void tcp_wmem_free_skb(struct sock *sk, struct sk_buff *skb)
include/net/tcp.h
337
void sk_forced_mem_schedule(struct sock *sk, int size);
include/net/tcp.h
339
bool tcp_check_oom(const struct sock *sk, int shift);
include/net/tcp.h
362
void tcp_shutdown(struct sock *sk, int how);
include/net/tcp.h
366
void tcp_remove_empty_skb(struct sock *sk);
include/net/tcp.h
367
int tcp_sendmsg(struct sock *sk, struct msghdr *msg, size_t size);
include/net/tcp.h
368
int tcp_sendmsg_locked(struct sock *sk, struct msghdr *msg, size_t size);
include/net/tcp.h
369
int tcp_sendmsg_fastopen(struct sock *sk, struct msghdr *msg, int *copied,
include/net/tcp.h
371
void tcp_splice_eof(struct socket *sock);
include/net/tcp.h
372
int tcp_send_mss(struct sock *sk, int *size_goal, int flags);
include/net/tcp.h
373
int tcp_wmem_schedule(struct sock *sk, int copy);
include/net/tcp.h
374
void tcp_push(struct sock *sk, int flags, int mss_now, int nonagle,
include/net/tcp.h
377
void tcp_release_cb(struct sock *sk);
include/net/tcp.h
379
static inline bool tcp_release_cb_cond(struct sock *sk)
include/net/tcp.h
391
void tcp_write_timer_handler(struct sock *sk);
include/net/tcp.h
392
void tcp_delack_timer_handler(struct sock *sk);
include/net/tcp.h
393
int tcp_ioctl(struct sock *sk, int cmd, int *karg);
include/net/tcp.h
394
enum skb_drop_reason tcp_rcv_state_process(struct sock *sk, struct sk_buff *skb);
include/net/tcp.h
395
void tcp_rcv_established(struct sock *sk, struct sk_buff *skb);
include/net/tcp.h
396
void tcp_rcvbuf_grow(struct sock *sk, u32 newval);
include/net/tcp.h
397
void tcp_rcv_space_adjust(struct sock *sk);
include/net/tcp.h
398
int tcp_twsk_unique(struct sock *sk, struct sock *sktw, void *twp);
include/net/tcp.h
399
void tcp_twsk_destructor(struct sock *sk);
include/net/tcp.h
406
struct sk_buff *tcp_stream_alloc_skb(struct sock *sk, gfp_t gfp,
include/net/tcp.h
409
static inline void tcp_dec_quickack_mode(struct sock *sk)
include/net/tcp.h
481
struct sock *tcp_check_req(struct sock *sk, struct sk_buff *skb,
include/net/tcp.h
484
enum skb_drop_reason tcp_child_process(struct sock *parent, struct sock *child,
include/net/tcp.h
486
void tcp_enter_loss(struct sock *sk);
include/net/tcp.h
487
void tcp_cwnd_reduction(struct sock *sk, int newly_acked_sacked, int newly_lost, int flag);
include/net/tcp.h
489
void tcp_update_pacing_rate(struct sock *sk);
include/net/tcp.h
490
void tcp_set_rto(struct sock *sk);
include/net/tcp.h
491
void tcp_update_metrics(struct sock *sk);
include/net/tcp.h
492
void tcp_init_metrics(struct sock *sk);
include/net/tcp.h
495
void __tcp_close(struct sock *sk, long timeout);
include/net/tcp.h
496
void tcp_close(struct sock *sk, long timeout);
include/net/tcp.h
497
void tcp_init_sock(struct sock *sk);
include/net/tcp.h
498
void tcp_init_transfer(struct sock *sk, int bpf_op, struct sk_buff *skb);
include/net/tcp.h
499
__poll_t tcp_poll(struct file *file, struct socket *sock,
include/net/tcp.h
501
int do_tcp_getsockopt(struct sock *sk, int level,
include/net/tcp.h
503
int tcp_getsockopt(struct sock *sk, int level, int optname,
include/net/tcp.h
506
int do_tcp_setsockopt(struct sock *sk, int level, int optname,
include/net/tcp.h
508
int tcp_setsockopt(struct sock *sk, int level, int optname, sockptr_t optval,
include/net/tcp.h
510
void tcp_reset_keepalive_timer(struct sock *sk, unsigned long timeout);
include/net/tcp.h
511
void tcp_set_keepalive(struct sock *sk, int val);
include/net/tcp.h
513
int tcp_recvmsg(struct sock *sk, struct msghdr *msg, size_t len,
include/net/tcp.h
515
int tcp_set_rcvlowat(struct sock *sk, int val);
include/net/tcp.h
516
void tcp_set_rcvbuf(struct sock *sk, int val);
include/net/tcp.h
517
int tcp_set_window_clamp(struct sock *sk, int val);
include/net/tcp.h
527
void tcp_recv_timestamp(struct msghdr *msg, const struct sock *sk,
include/net/tcp.h
529
void tcp_data_ready(struct sock *sk);
include/net/tcp.h
531
int tcp_mmap(struct file *file, struct socket *sock,
include/net/tcp.h
541
u16 tcp_v4_get_syncookie(struct sock *sk, struct iphdr *iph,
include/net/tcp.h
543
u16 tcp_v6_get_syncookie(struct sock *sk, struct ipv6hdr *iph,
include/net/tcp.h
548
struct sock *sk, struct tcphdr *th);
include/net/tcp.h
553
void tcp_v4_mtu_reduced(struct sock *sk);
include/net/tcp.h
554
void tcp_req_err(struct sock *sk, u32 seq, bool abort);
include/net/tcp.h
555
void tcp_ld_RTO_revert(struct sock *sk, u32 seq);
include/net/tcp.h
556
int tcp_v4_conn_request(struct sock *sk, struct sk_buff *skb);
include/net/tcp.h
557
struct sock *tcp_create_openreq_child(const struct sock *sk,
include/net/tcp.h
560
void tcp_ca_openreq_child(struct sock *sk, const struct dst_entry *dst);
include/net/tcp.h
561
struct sock *tcp_v4_syn_recv_sock(const struct sock *sk, struct sk_buff *skb,
include/net/tcp.h
566
void (*opt_child_init)(struct sock *newsk,
include/net/tcp.h
567
const struct sock *sk));
include/net/tcp.h
568
int tcp_v4_do_rcv(struct sock *sk, struct sk_buff *skb);
include/net/tcp.h
569
int tcp_v4_connect(struct sock *sk, struct sockaddr_unsized *uaddr, int addr_len);
include/net/tcp.h
570
int tcp_connect(struct sock *sk);
include/net/tcp.h
577
struct sk_buff *tcp_make_synack(const struct sock *sk, struct dst_entry *dst,
include/net/tcp.h
582
int tcp_disconnect(struct sock *sk, int flags);
include/net/tcp.h
584
void tcp_finish_connect(struct sock *sk, struct sk_buff *skb);
include/net/tcp.h
585
int tcp_send_rcvq(struct sock *sk, struct msghdr *msg, size_t size);
include/net/tcp.h
586
void inet_sk_rx_dst_set(struct sock *sk, const struct sk_buff *skb);
include/net/tcp.h
589
struct sock *tcp_get_cookie_sock(struct sock *sk, struct sk_buff *skb,
include/net/tcp.h
593
struct sock *cookie_v4_check(struct sock *sk, struct sk_buff *skb);
include/net/tcp.h
595
struct sock *sk, struct sk_buff *skb,
include/net/tcp.h
632
static inline void tcp_synq_overflow(const struct sock *sk)
include/net/tcp.h
656
static inline bool tcp_synq_no_recent_overflow(const struct sock *sk)
include/net/tcp.h
68
void tcp_time_wait(struct sock *sk, int state, int timeo);
include/net/tcp.h
722
struct request_sock *cookie_bpf_check(struct sock *sk, struct sk_buff *skb);
include/net/tcp.h
729
static inline struct request_sock *cookie_bpf_check(struct net *net, struct sock *sk,
include/net/tcp.h
738
struct sock *cookie_v6_check(struct sock *sk, struct sk_buff *skb);
include/net/tcp.h
746
void tcp_skb_entail(struct sock *sk, struct sk_buff *skb);
include/net/tcp.h
748
void __tcp_push_pending_frames(struct sock *sk, unsigned int cur_mss,
include/net/tcp.h
750
int __tcp_retransmit_skb(struct sock *sk, struct sk_buff *skb, int segs);
include/net/tcp.h
751
int tcp_retransmit_skb(struct sock *sk, struct sk_buff *skb, int segs);
include/net/tcp.h
752
void tcp_retransmit_timer(struct sock *sk);
include/net/tcp.h
753
void tcp_xmit_retransmit_queue(struct sock *);
include/net/tcp.h
754
void tcp_simple_retransmit(struct sock *);
include/net/tcp.h
755
void tcp_enter_recovery(struct sock *sk, bool ece_ack);
include/net/tcp.h
756
int tcp_trim_head(struct sock *, struct sk_buff *, u32);
include/net/tcp.h
761
int tcp_fragment(struct sock *sk, enum tcp_queue tcp_queue,
include/net/tcp.h
765
void tcp_send_probe0(struct sock *);
include/net/tcp.h
766
int tcp_write_wakeup(struct sock *, int mib);
include/net/tcp.h
767
void tcp_send_fin(struct sock *sk);
include/net/tcp.h
768
void tcp_send_active_reset(struct sock *sk, gfp_t priority,
include/net/tcp.h
770
int tcp_send_synack(struct sock *);
include/net/tcp.h
771
void tcp_push_one(struct sock *, unsigned int mss_now);
include/net/tcp.h
772
void __tcp_send_ack(struct sock *sk, u32 rcv_nxt, u16 flags);
include/net/tcp.h
773
void tcp_send_ack(struct sock *sk);
include/net/tcp.h
774
void tcp_send_delayed_ack(struct sock *sk);
include/net/tcp.h
775
void tcp_send_loss_probe(struct sock *sk);
include/net/tcp.h
776
bool tcp_schedule_loss_probe(struct sock *sk, bool advancing_rto);
include/net/tcp.h
781
void tcp_rearm_rto(struct sock *sk);
include/net/tcp.h
782
void tcp_synack_rtt_meas(struct sock *sk, struct request_sock *req);
include/net/tcp.h
783
void tcp_done_with_error(struct sock *sk, int err);
include/net/tcp.h
784
void tcp_reset(struct sock *sk, struct sk_buff *skb);
include/net/tcp.h
785
void tcp_fin(struct sock *sk);
include/net/tcp.h
786
void __tcp_check_space(struct sock *sk);
include/net/tcp.h
787
static inline void tcp_check_space(struct sock *sk)
include/net/tcp.h
795
void tcp_sack_compress_send_ack(struct sock *sk);
include/net/tcp.h
803
static inline void tcp_add_receive_queue(struct sock *sk, struct sk_buff *skb)
include/net/tcp.h
811
void tcp_init_xmit_timers(struct sock *);
include/net/tcp.h
812
static inline void tcp_clear_xmit_timers(struct sock *sk)
include/net/tcp.h
823
unsigned int tcp_sync_mss(struct sock *sk, u32 pmtu);
include/net/tcp.h
824
unsigned int tcp_current_mss(struct sock *sk);
include/net/tcp.h
825
u32 tcp_clamp_probe0_to_user_timeout(const struct sock *sk, u32 when);
include/net/tcp.h
851
void tcp_get_info(struct sock *, struct tcp_info *);
include/net/tcp.h
852
void tcp_rate_check_app_limited(struct sock *sk);
include/net/tcp.h
855
int tcp_read_sock(struct sock *sk, read_descriptor_t *desc,
include/net/tcp.h
857
int tcp_read_sock_noack(struct sock *sk, read_descriptor_t *desc,
include/net/tcp.h
860
int tcp_read_skb(struct sock *sk, skb_read_actor_t recv_actor);
include/net/tcp.h
861
struct sk_buff *tcp_recv_skb(struct sock *sk, u32 seq, u32 *off);
include/net/tcp.h
862
void tcp_read_done(struct sock *sk, size_t len);
include/net/tcp.h
864
void tcp_initialize_rcv_mss(struct sock *sk);
include/net/tcp.h
866
int tcp_mtu_to_mss(struct sock *sk, int pmtu);
include/net/tcp.h
867
int tcp_mss_to_mtu(struct sock *sk, int mss);
include/net/tcp.h
868
void tcp_mtup_init(struct sock *sk);
include/net/tcp.h
870
static inline unsigned int tcp_rto_max(const struct sock *sk)
include/net/tcp.h
875
static inline void tcp_bound_rto(struct sock *sk)
include/net/tcp.h
893
u32 tcp_delack_max(const struct sock *sk);
include/net/tcp.h
896
static inline u32 tcp_rto_min(const struct sock *sk)
include/net/tcp.h
906
static inline u32 tcp_rto_min_us(const struct sock *sk)
include/net/tcp.h
961
u32 __tcp_select_window(struct sock *sk);
include/net/tcp.h
963
void tcp_send_window_probe(struct sock *sk);
include/net/tcp_ao.h
191
void tcp_ao_transmit_skb(struct sock *sk, struct sk_buff *skb,
include/net/tcp_ao.h
198
const struct sock *sk, const struct sk_buff *skb,
include/net/tcp_ao.h
200
int tcp_parse_ao(struct sock *sk, int cmd, unsigned short int family,
include/net/tcp_ao.h
202
struct tcp_ao_key *tcp_ao_established_key(const struct sock *sk,
include/net/tcp_ao.h
205
int tcp_ao_copy_all_matching(const struct sock *sk, struct sock *newsk,
include/net/tcp_ao.h
210
void tcp_ao_destroy_sock(struct sock *sk, bool twsk);
include/net/tcp_ao.h
212
bool tcp_ao_ignore_icmp(const struct sock *sk, int family, int type, int code);
include/net/tcp_ao.h
213
int tcp_ao_get_mkts(struct sock *sk, sockptr_t optval, sockptr_t optlen);
include/net/tcp_ao.h
214
int tcp_ao_get_sock_info(struct sock *sk, sockptr_t optval, sockptr_t optlen);
include/net/tcp_ao.h
215
int tcp_ao_get_repair(struct sock *sk, sockptr_t optval, sockptr_t optlen);
include/net/tcp_ao.h
216
int tcp_ao_set_repair(struct sock *sk, sockptr_t optval, unsigned int optlen);
include/net/tcp_ao.h
217
enum skb_drop_reason tcp_inbound_ao_hash(struct sock *sk,
include/net/tcp_ao.h
222
struct tcp_ao_key *tcp_ao_do_lookup(const struct sock *sk, int l3index,
include/net/tcp_ao.h
230
int tcp_ao_prepare_reset(const struct sock *sk, struct sk_buff *skb,
include/net/tcp_ao.h
236
int tcp_v4_parse_ao(struct sock *sk, int cmd, sockptr_t optval, int optlen);
include/net/tcp_ao.h
237
struct tcp_ao_key *tcp_v4_ao_lookup(const struct sock *sk, struct sock *addr_sk,
include/net/tcp_ao.h
243
const struct sock *sk,
include/net/tcp_ao.h
247
struct tcp_ao_key *tcp_v4_ao_lookup_rsk(const struct sock *sk,
include/net/tcp_ao.h
251
const struct sock *sk, const struct sk_buff *skb,
include/net/tcp_ao.h
261
const struct sock *sk, __be32 sisn,
include/net/tcp_ao.h
265
struct tcp_ao_key *tcp_v6_ao_lookup(const struct sock *sk,
include/net/tcp_ao.h
266
struct sock *addr_sk, int sndid, int rcvid);
include/net/tcp_ao.h
267
struct tcp_ao_key *tcp_v6_ao_lookup_rsk(const struct sock *sk,
include/net/tcp_ao.h
271
const struct sock *sk, const struct sk_buff *skb,
include/net/tcp_ao.h
273
int tcp_v6_parse_ao(struct sock *sk, int cmd, sockptr_t optval, int optlen);
include/net/tcp_ao.h
277
void tcp_ao_established(struct sock *sk);
include/net/tcp_ao.h
278
void tcp_ao_finish_connect(struct sock *sk, struct sk_buff *skb);
include/net/tcp_ao.h
279
void tcp_ao_connect_init(struct sock *sk);
include/net/tcp_ao.h
280
void tcp_ao_syncookie(struct sock *sk, const struct sk_buff *skb,
include/net/tcp_ao.h
284
static inline void tcp_ao_transmit_skb(struct sock *sk, struct sk_buff *skb,
include/net/tcp_ao.h
290
static inline void tcp_ao_syncookie(struct sock *sk, const struct sk_buff *skb,
include/net/tcp_ao.h
295
static inline bool tcp_ao_ignore_icmp(const struct sock *sk, int family,
include/net/tcp_ao.h
301
static inline enum skb_drop_reason tcp_inbound_ao_hash(struct sock *sk,
include/net/tcp_ao.h
309
static inline struct tcp_ao_key *tcp_ao_do_lookup(const struct sock *sk,
include/net/tcp_ao.h
316
static inline void tcp_ao_destroy_sock(struct sock *sk, bool twsk)
include/net/tcp_ao.h
320
static inline void tcp_ao_established(struct sock *sk)
include/net/tcp_ao.h
324
static inline void tcp_ao_finish_connect(struct sock *sk, struct sk_buff *skb)
include/net/tcp_ao.h
333
static inline void tcp_ao_connect_init(struct sock *sk)
include/net/tcp_ao.h
337
static inline int tcp_ao_get_mkts(struct sock *sk, sockptr_t optval, sockptr_t optlen)
include/net/tcp_ao.h
342
static inline int tcp_ao_get_sock_info(struct sock *sk, sockptr_t optval, sockptr_t optlen)
include/net/tcp_ao.h
347
static inline int tcp_ao_get_repair(struct sock *sk,
include/net/tcp_ao.h
353
static inline int tcp_ao_set_repair(struct sock *sk,
include/net/tcp_ecn.h
133
static inline bool tcp_accecn_validate_syn_feedback(struct sock *sk, u8 ace,
include/net/tcp_ecn.h
159
static inline void tcp_accecn_third_ack(struct sock *sk,
include/net/tcp_ecn.h
191
static inline void tcp_accecn_opt_demand_min(struct sock *sk,
include/net/tcp_ecn.h
275
static inline void tcp_ecn_received_counters(struct sock *sk,
include/net/tcp_ecn.h
336
static inline void tcp_ecn_received_counters_payload(struct sock *sk,
include/net/tcp_ecn.h
36
static inline void INET_ECN_xmit_ect_1_negotiation(struct sock *sk)
include/net/tcp_ecn.h
469
static inline void tcp_ecn_rcv_synack_accecn(struct sock *sk,
include/net/tcp_ecn.h
48
static inline void tcp_ecn_accept_cwr(struct sock *sk,
include/net/tcp_ecn.h
490
static inline void tcp_ecn_rcv_synack(struct sock *sk, const struct sk_buff *skb,
include/net/tcp_ecn.h
547
static inline void tcp_ecn_rcv_syn(struct sock *sk, const struct tcphdr *th,
include/net/tcp_ecn.h
577
static inline void tcp_ecn_send_synack(struct sock *sk, struct sk_buff *skb)
include/net/tcp_ecn.h
597
static inline void tcp_ecn_send_syn(struct sock *sk, struct sk_buff *skb)
include/net/tcp_ecn.h
634
static inline void tcp_ecn_clear_syn(struct sock *sk, struct sk_buff *skb)
include/net/tcp_ecn.h
663
static inline bool tcp_accecn_option_beacon_check(const struct sock *sk)
include/net/tls.h
111
struct sock *sk;
include/net/tls.h
135
void (*saved_data_ready)(struct sock *sk);
include/net/tls.h
169
void (*sk_destruct)(struct sock *sk);
include/net/tls.h
237
int (*push_pending_record)(struct sock *sk, int flags);
include/net/tls.h
238
void (*sk_write_space)(struct sock *sk);
include/net/tls.h
262
struct sock *sk;
include/net/tls.h
264
void (*sk_destruct)(struct sock *sk);
include/net/tls.h
280
int (*tls_dev_add)(struct net_device *netdev, struct sock *sk,
include/net/tls.h
288
struct sock *sk, u32 seq, u8 *rcd_sn,
include/net/tls.h
354
tls_validate_xmit_skb(struct sock *sk, struct net_device *dev,
include/net/tls.h
357
tls_validate_xmit_skb_sw(struct sock *sk, struct net_device *dev,
include/net/tls.h
363
struct sock *sk = skb->sk;
include/net/tls.h
373
static inline struct tls_context *tls_get_ctx(const struct sock *sk)
include/net/tls.h
401
static inline bool tls_sw_has_ctx_tx(const struct sock *sk)
include/net/tls.h
414
static inline bool tls_sw_has_ctx_rx(const struct sock *sk)
include/net/tls.h
443
tls_driver_ctx(const struct sock *sk, enum tls_offload_ctx_dir direction)
include/net/tls.h
451
static inline void tls_offload_rx_resync_request(struct sock *sk, __be32 seq)
include/net/tls.h
484
tls_offload_rx_resync_set_type(struct sock *sk, enum tls_offload_sync_type type)
include/net/tls.h
492
static inline bool tls_offload_tx_resync_pending(struct sock *sk)
include/net/tls.h
505
void tls_device_sk_destruct(struct sock *sk);
include/net/tls.h
506
void tls_offload_tx_resync_request(struct sock *sk, u32 got_seq, u32 exp_seq);
include/net/tls.h
508
static inline bool tls_is_sk_rx_device_offloaded(struct sock *sk)
include/net/tls.h
93
struct sock *sk;
include/net/transp_v6.h
34
void ip6_datagram_recv_ctl(struct sock *sk, struct msghdr *msg,
include/net/transp_v6.h
36
void ip6_datagram_recv_common_ctl(struct sock *sk, struct msghdr *msg,
include/net/transp_v6.h
38
void ip6_datagram_recv_specific_ctl(struct sock *sk, struct msghdr *msg,
include/net/transp_v6.h
41
int ip6_datagram_send_ctl(struct net *net, struct sock *sk, struct msghdr *msg,
include/net/transp_v6.h
44
void __ip6_dgram_sock_seq_show(struct seq_file *seq, struct sock *sp,
include/net/transp_v6.h
47
ip6_dgram_sock_seq_show(struct seq_file *seq, struct sock *sp, __u16 srcp,
include/net/udp.h
134
static inline bool udp_hashed4(const struct sock *sk)
include/net/udp.h
177
static inline bool udp_hashed4(const struct sock *sk)
include/net/udp.h
234
static inline __wsum udp_csum_outgoing(struct sock *sk, struct sk_buff *skb)
include/net/udp.h
272
typedef struct sock *(*udp_lookup_t)(const struct sk_buff *skb, __be16 sport,
include/net/udp.h
278
int udpv6_sendmsg(struct sock *sk, struct msghdr *msg, size_t len);
include/net/udp.h
279
INDIRECT_CALLABLE_DECLARE(int udpv6_recvmsg(struct sock *sk, struct msghdr *msg,
include/net/udp.h
285
static inline int udp_lib_init_sock(struct sock *sk)
include/net/udp.h
303
static inline void udp_drops_inc(struct sock *sk)
include/net/udp.h
309
static inline int udp_lib_hash(struct sock *sk)
include/net/udp.h
315
void udp_lib_unhash(struct sock *sk);
include/net/udp.h
316
void udp_lib_rehash(struct sock *sk, u16 new_hash, u16 new_hash4);
include/net/udp.h
320
static inline void udp_lib_close(struct sock *sk, long timeout)
include/net/udp.h
327
static inline void udp_lib_hash4(struct sock *sk, u16 hash)
include/net/udp.h
331
static inline void udp4_hash4(struct sock *sk)
include/net/udp.h
335
void udp_lib_hash4(struct sock *sk, u16 hash);
include/net/udp.h
336
void udp4_hash4(struct sock *sk);
include/net/udp.h
339
int udp_lib_get_port(struct sock *sk, unsigned short snum,
include/net/udp.h
380
static inline int udp_rqueue_get(struct sock *sk)
include/net/udp.h
397
void udp_destruct_common(struct sock *sk);
include/net/udp.h
398
void skb_consume_udp(struct sock *sk, struct sk_buff *skb, int len);
include/net/udp.h
399
int __udp_enqueue_schedule_skb(struct sock *sk, struct sk_buff *skb);
include/net/udp.h
400
void udp_skb_destructor(struct sock *sk, struct sk_buff *skb);
include/net/udp.h
401
struct sk_buff *__skb_recv_udp(struct sock *sk, unsigned int flags, int *off,
include/net/udp.h
403
static inline struct sk_buff *skb_recv_udp(struct sock *sk, unsigned int flags,
include/net/udp.h
412
bool udp_sk_rx_dst_set(struct sock *sk, struct dst_entry *dst);
include/net/udp.h
414
int udp_abort(struct sock *sk, int err);
include/net/udp.h
415
int udp_sendmsg(struct sock *sk, struct msghdr *msg, size_t len);
include/net/udp.h
416
INDIRECT_CALLABLE_DECLARE(int udp_recvmsg(struct sock *sk, struct msghdr *msg,
include/net/udp.h
418
void udp_splice_eof(struct socket *sock);
include/net/udp.h
419
int udp_push_pending_frames(struct sock *sk);
include/net/udp.h
420
void udp_flush_pending_frames(struct sock *sk);
include/net/udp.h
421
int udp_cmsg_send(struct sock *sk, struct msghdr *msg, u16 *gso_size);
include/net/udp.h
424
int udp_ioctl(struct sock *sk, int cmd, int *karg);
include/net/udp.h
425
int udp_pre_connect(struct sock *sk, struct sockaddr_unsized *uaddr, int addr_len);
include/net/udp.h
426
int __udp_disconnect(struct sock *sk, int flags);
include/net/udp.h
427
int udp_disconnect(struct sock *sk, int flags);
include/net/udp.h
428
__poll_t udp_poll(struct file *file, struct socket *sock, poll_table *wait);
include/net/udp.h
432
int udp_lib_getsockopt(struct sock *sk, int level, int optname,
include/net/udp.h
434
int udp_lib_setsockopt(struct sock *sk, int level, int optname,
include/net/udp.h
436
int (*push_pending_frames)(struct sock *));
include/net/udp.h
437
struct sock *udp4_lib_lookup(const struct net *net, __be32 saddr, __be16 sport,
include/net/udp.h
439
struct sock *__udp4_lib_lookup(const struct net *net, __be32 saddr,
include/net/udp.h
442
struct sock *udp4_lib_lookup_skb(const struct sk_buff *skb,
include/net/udp.h
444
struct sock *udp6_lib_lookup(const struct net *net,
include/net/udp.h
448
struct sock *__udp6_lib_lookup(const struct net *net,
include/net/udp.h
452
struct sock *udp6_lib_lookup_skb(const struct sk_buff *skb,
include/net/udp.h
454
int udp_read_skb(struct sock *sk, skb_read_actor_t recv_actor);
include/net/udp.h
580
static inline struct sk_buff *udp_rcv_segment(struct sock *sk,
include/net/udp.h
653
int udp_bpf_update_proto(struct sock *sk, struct sk_psock *psock, bool restore);
include/net/udp_tunnel.h
130
void udp_tunnel_push_rx_port(struct net_device *dev, struct sock *sk,
include/net/udp_tunnel.h
132
void udp_tunnel_drop_rx_port(struct net_device *dev, struct sock *sk,
include/net/udp_tunnel.h
134
void udp_tunnel_notify_add_rx_port(struct sock *sk, unsigned short type);
include/net/udp_tunnel.h
135
void udp_tunnel_notify_del_rx_port(struct sock *sk, unsigned short type);
include/net/udp_tunnel.h
138
void udp_tunnel_xmit_skb(struct rtable *rt, struct sock *sk, struct sk_buff *skb,
include/net/udp_tunnel.h
143
void udp_tunnel6_xmit_skb(struct dst_entry *dst, struct sock *sk,
include/net/udp_tunnel.h
179
void udp_tunnel_sock_release(struct sock *sk);
include/net/udp_tunnel.h
191
struct sock *sk, int oif,
include/net/udp_tunnel.h
211
void udp_tunnel_update_gro_lookup(struct net *net, struct sock *sk, bool add);
include/net/udp_tunnel.h
212
void udp_tunnel_update_gro_rcv(struct sock *sk, bool add);
include/net/udp_tunnel.h
215
struct sock *sk, bool add) {}
include/net/udp_tunnel.h
216
static inline void udp_tunnel_update_gro_rcv(struct sock *sk, bool add) {}
include/net/udp_tunnel.h
219
static inline void udp_tunnel_cleanup_gro(struct sock *sk)
include/net/udp_tunnel.h
225
static inline void udp_tunnel_encap_enable(struct sock *sk)
include/net/udp_tunnel.h
71
typedef int (*udp_tunnel_encap_rcv_t)(struct sock *sk, struct sk_buff *skb);
include/net/udp_tunnel.h
72
typedef int (*udp_tunnel_encap_err_lookup_t)(struct sock *sk,
include/net/udp_tunnel.h
74
typedef void (*udp_tunnel_encap_err_rcv_t)(struct sock *sk,
include/net/udp_tunnel.h
77
typedef void (*udp_tunnel_encap_destroy_t)(struct sock *sk);
include/net/udp_tunnel.h
81
typedef int (*udp_tunnel_gro_complete_t)(struct sock *sk, struct sk_buff *skb,
include/net/udp_tunnel.h
97
void setup_udp_tunnel_sock(struct net *net, struct sock *sk,
include/net/vxlan.h
188
struct sock *sk;
include/net/x25.h
151
struct sock sk;
include/net/x25.h
196
struct sock *x25_find_socket(unsigned int, struct x25_neigh *);
include/net/x25.h
197
void x25_destroy_socket_from_timer(struct sock *);
include/net/x25.h
212
int x25_negotiate_facilities(struct sk_buff *, struct sock *,
include/net/x25.h
225
int x25_process_rx_frame(struct sock *, struct sk_buff *);
include/net/x25.h
226
int x25_backlog_rcv(struct sock *, struct sk_buff *);
include/net/x25.h
254
int x25_output(struct sock *, struct sk_buff *);
include/net/x25.h
255
void x25_kick(struct sock *);
include/net/x25.h
256
void x25_enquiry_response(struct sock *);
include/net/x25.h
277
void x25_clear_queues(struct sock *);
include/net/x25.h
278
void x25_frames_acked(struct sock *, unsigned short);
include/net/x25.h
279
void x25_requeue_frames(struct sock *);
include/net/x25.h
280
int x25_validate_nr(struct sock *, unsigned short);
include/net/x25.h
281
void x25_write_internal(struct sock *, int);
include/net/x25.h
282
int x25_decode(struct sock *, struct sk_buff *, int *, int *, int *, int *,
include/net/x25.h
284
void x25_disconnect(struct sock *, int, unsigned char, unsigned char);
include/net/x25.h
287
void x25_init_timers(struct sock *sk);
include/net/x25.h
288
void x25_start_heartbeat(struct sock *);
include/net/x25.h
289
void x25_start_t2timer(struct sock *);
include/net/x25.h
290
void x25_start_t21timer(struct sock *);
include/net/x25.h
291
void x25_start_t22timer(struct sock *);
include/net/x25.h
292
void x25_start_t23timer(struct sock *);
include/net/x25.h
293
void x25_stop_heartbeat(struct sock *);
include/net/x25.h
294
void x25_stop_timer(struct sock *);
include/net/x25.h
295
unsigned long x25_display_timer(struct sock *);
include/net/x25.h
296
void x25_check_rbuf(struct sock *);
include/net/xdp_sock.h
50
struct sock sk;
include/net/xfrm.h
1266
int __xfrm_policy_check(struct sock *, int dir, struct sk_buff *skb,
include/net/xfrm.h
1290
static inline int __xfrm_policy_check2(struct sock *sk, int dir,
include/net/xfrm.h
1324
static inline int xfrm_policy_check(struct sock *sk, int dir, struct sk_buff *skb, unsigned short family)
include/net/xfrm.h
1329
static inline int xfrm4_policy_check(struct sock *sk, int dir, struct sk_buff *skb)
include/net/xfrm.h
1334
static inline int xfrm6_policy_check(struct sock *sk, int dir, struct sk_buff *skb)
include/net/xfrm.h
1339
static inline int xfrm4_policy_check_reverse(struct sock *sk, int dir,
include/net/xfrm.h
1345
static inline int xfrm6_policy_check_reverse(struct sock *sk, int dir,
include/net/xfrm.h
1391
int __xfrm_sk_clone_policy(struct sock *sk, const struct sock *osk);
include/net/xfrm.h
1393
static inline int xfrm_sk_clone_policy(struct sock *sk, const struct sock *osk)
include/net/xfrm.h
1406
static inline void xfrm_sk_free_policy(struct sock *sk)
include/net/xfrm.h
1424
static inline void xfrm_sk_free_policy(struct sock *sk) {}
include/net/xfrm.h
1425
static inline int xfrm_sk_clone_policy(struct sock *sk, const struct sock *osk) { return 0; }
include/net/xfrm.h
1428
static inline int xfrm6_policy_check(struct sock *sk, int dir, struct sk_buff *skb)
include/net/xfrm.h
1432
static inline int xfrm4_policy_check(struct sock *sk, int dir, struct sk_buff *skb)
include/net/xfrm.h
1436
static inline int xfrm_policy_check(struct sock *sk, int dir, struct sk_buff *skb, unsigned short family)
include/net/xfrm.h
1446
static inline int xfrm4_policy_check_reverse(struct sock *sk, int dir,
include/net/xfrm.h
1451
static inline int xfrm6_policy_check_reverse(struct sock *sk, int dir,
include/net/xfrm.h
1801
int (*finish)(struct net *, struct sock *,
include/net/xfrm.h
1804
int (*finish)(struct net *, struct sock *,
include/net/xfrm.h
1806
int xfrm_output_resume(struct sock *sk, struct sk_buff *skb, int err);
include/net/xfrm.h
1807
int xfrm_output(struct sock *sk, struct sk_buff *skb);
include/net/xfrm.h
1836
int xfrm4_output(struct net *net, struct sock *sk, struct sk_buff *skb);
include/net/xfrm.h
1858
int xfrm6_output(struct net *net, struct sock *sk, struct sk_buff *skb);
include/net/xfrm.h
1862
int xfrm4_udp_encap_rcv(struct sock *sk, struct sk_buff *skb);
include/net/xfrm.h
1863
int xfrm6_udp_encap_rcv(struct sock *sk, struct sk_buff *skb);
include/net/xfrm.h
1864
struct sk_buff *xfrm4_gro_udp_encap_rcv(struct sock *sk, struct list_head *head,
include/net/xfrm.h
1866
struct sk_buff *xfrm6_gro_udp_encap_rcv(struct sock *sk, struct list_head *head,
include/net/xfrm.h
1868
int xfrm_user_policy(struct sock *sk, int optname, sockptr_t optval,
include/net/xfrm.h
1871
static inline int xfrm_user_policy(struct sock *sk, int optname,
include/net/xfrm.h
1909
int xfrm_sk_policy_insert(struct sock *sk, int dir, struct xfrm_policy *pol);
include/net/xfrm.h
1994
struct sock *nlsk;
include/net/xfrm.h
2007
struct sock *nlsk;
include/net/xfrm.h
2331
static inline bool xfrm6_local_dontfrag(const struct sock *sk)
include/net/xfrm.h
424
int (*output)(struct net *net, struct sock *sk, struct sk_buff *skb);
include/net/xfrm.h
520
int (*output)(struct net *net, struct sock *sk, struct sk_buff *skb);
include/net/xfrm.h
721
struct xfrm_policy *(*compile_policy)(struct sock *sk, int opt, u8 *data, int len, int *dir);
include/pcmcia/ss.h
149
unsigned int sock; /* socket number */
include/pcmcia/ss.h
176
int (*power_hook)(struct pcmcia_socket *sock, int operation);
include/pcmcia/ss.h
180
void (*tune_bridge)(struct pcmcia_socket *sock, struct pci_bus *bus);
include/target/iscsi/iscsi_target_core.h
13
struct sock;
include/target/iscsi/iscsi_target_core.h
554
struct socket *sock;
include/target/iscsi/iscsi_target_core.h
555
void (*orig_data_ready)(struct sock *);
include/target/iscsi/iscsi_target_core.h
556
void (*orig_state_change)(struct sock *);
include/trace/events/handshake.h
116
const struct sock *sk \
include/trace/events/handshake.h
124
const struct sock *sk,
include/trace/events/handshake.h
149
const struct sock *sk, \
include/trace/events/handshake.h
158
const struct sock *sk,
include/trace/events/handshake.h
183
const struct sock *sk, \
include/trace/events/handshake.h
190
const struct sock *sk,
include/trace/events/handshake.h
223
const struct sock *sk, \
include/trace/events/handshake.h
246
const struct sock *sk,
include/trace/events/handshake.h
283
const struct sock *sk,
include/trace/events/handshake.h
94
const struct sock *sk
include/trace/events/mptcp.h
191
TP_PROTO(struct sock *sk, int time),
include/trace/events/mptcp.h
40
struct sock *ssk;
include/trace/events/skb.h
27
enum skb_drop_reason reason, const struct sock *rx_sk),
include/trace/events/sock.h
142
TP_PROTO(const struct sock *sk, const int oldstate, const int newstate),
include/trace/events/sock.h
195
TP_PROTO(const struct sock *sk),
include/trace/events/sock.h
242
TP_PROTO(const struct sock *sk),
include/trace/events/sock.h
269
TP_PROTO(struct sock *sk, int ret, int flags),
include/trace/events/sock.h
299
TP_PROTO(struct sock *sk, int ret, int flags),
include/trace/events/sock.h
3
#define TRACE_SYSTEM sock
include/trace/events/sock.h
305
TP_PROTO(struct sock *sk, int ret, int flags),
include/trace/events/sock.h
73
TP_PROTO(struct sock *sk, struct sk_buff *skb),
include/trace/events/sock.h
95
TP_PROTO(struct sock *sk, struct proto *prot, long allocated, int kind),
include/trace/events/sunrpc.h
2226
struct sock *sk = socket->sk;
include/trace/events/sunrpc.h
859
const struct sock *sk = socket->sk;
include/trace/events/sunrpc.h
914
const struct sock *sk = socket->sk;
include/trace/events/tcp.h
140
TP_PROTO(struct sock *sk),
include/trace/events/tcp.h
18
TP_PROTO(const struct sock *sk, const struct sk_buff *skb, int err),
include/trace/events/tcp.h
188
TP_PROTO(struct sock *sk),
include/trace/events/tcp.h
195
TP_PROTO(struct sock *sk),
include/trace/events/tcp.h
202
TP_PROTO(struct sock *sk),
include/trace/events/tcp.h
209
TP_PROTO(struct sock *sk, int time),
include/trace/events/tcp.h
291
TP_PROTO(const struct sock *sk, const struct request_sock *req),
include/trace/events/tcp.h
336
TP_PROTO(const struct sock *sk, const struct msghdr *msg,
include/trace/events/tcp.h
360
TP_PROTO(const struct sock *sk, int newly_acked_sacked,
include/trace/events/tcp.h
369
TP_PROTO(struct sock *sk, const struct sk_buff *skb),
include/trace/events/tcp.h
471
TP_PROTO(struct sock *sk, const u8 ca_state),
include/trace/events/tcp.h
519
TP_PROTO(const struct sock *sk, const struct sk_buff *skb),
include/trace/events/tcp.h
585
TP_PROTO(const struct sock *sk, const struct sk_buff *skb),
include/trace/events/tcp.h
591
TP_PROTO(const struct sock *sk, const struct sk_buff *skb),
include/trace/events/tcp.h
597
TP_PROTO(const struct sock *sk, const struct sk_buff *skb),
include/trace/events/tcp.h
603
TP_PROTO(const struct sock *sk, const struct sk_buff *skb),
include/trace/events/tcp.h
609
TP_PROTO(const struct sock *sk, const struct sk_buff *skb),
include/trace/events/tcp.h
615
TP_PROTO(const struct sock *sk, const struct sk_buff *skb,
include/trace/events/tcp.h
690
TP_PROTO(const struct sock *sk, const struct sk_buff *skb,
include/trace/events/tcp.h
697
TP_PROTO(const struct sock *sk, const struct sk_buff *skb,
include/trace/events/tcp.h
703
TP_PROTO(const struct sock *sk, const struct sk_buff *skb,
include/trace/events/tcp.h
709
TP_PROTO(const struct sock *sk, const struct sk_buff *skb,
include/trace/events/tcp.h
715
TP_PROTO(const struct sock *sk, const struct sk_buff *skb,
include/trace/events/tcp.h
722
TP_PROTO(const struct sock *sk, const __u8 keyid, const __u8 rnext),
include/trace/events/tcp.h
772
TP_PROTO(const struct sock *sk, const __u8 keyid, const __u8 rnext),
include/trace/events/tcp.h
778
TP_PROTO(const struct sock *sk, __u32 new_sne),
include/trace/events/tcp.h
826
TP_PROTO(const struct sock *sk, __u32 new_sne),
include/trace/events/tcp.h
831
TP_PROTO(const struct sock *sk, __u32 new_sne),
include/trace/events/tcp.h
84
TP_PROTO(const struct sock *sk,
include/trace/events/udp.h
14
TP_PROTO(int rc, struct sock *sk, struct sk_buff *skb),
io_uring/cmd_net.c
10
static int io_uring_cmd_get_sock_ioctl(struct socket *sock, int op)
io_uring/cmd_net.c
104
static int io_uring_cmd_timestamp(struct socket *sock,
io_uring/cmd_net.c
108
struct sock *sk = sock->sk;
io_uring/cmd_net.c
12
struct sock *sk = sock->sk;
io_uring/cmd_net.c
151
static int io_uring_cmd_getsockname(struct socket *sock,
io_uring/cmd_net.c
168
return do_getsockname(sock, peer, uaddr, ulen);
io_uring/cmd_net.c
173
struct socket *sock = cmd->file->private_data;
io_uring/cmd_net.c
177
return io_uring_cmd_get_sock_ioctl(sock, SIOCINQ);
io_uring/cmd_net.c
179
return io_uring_cmd_get_sock_ioctl(sock, SIOCOUTQ);
io_uring/cmd_net.c
181
return io_uring_cmd_getsockopt(sock, cmd, issue_flags);
io_uring/cmd_net.c
183
return io_uring_cmd_setsockopt(sock, cmd, issue_flags);
io_uring/cmd_net.c
185
return io_uring_cmd_timestamp(sock, cmd, issue_flags);
io_uring/cmd_net.c
187
return io_uring_cmd_getsockname(sock, cmd, issue_flags);
io_uring/cmd_net.c
25
static inline int io_uring_cmd_getsockopt(struct socket *sock,
io_uring/cmd_net.c
42
err = do_sock_getsockopt(sock, compat, level, optname,
io_uring/cmd_net.c
52
static inline int io_uring_cmd_setsockopt(struct socket *sock,
io_uring/cmd_net.c
68
return do_sock_setsockopt(sock, compat, level, optname, optval_s,
io_uring/cmd_net.c
72
static bool io_process_timestamp_skb(struct io_uring_cmd *cmd, struct sock *sk,
io_uring/napi.h
46
struct socket *sock;
io_uring/napi.h
52
sock = sock_from_file(req->file);
io_uring/napi.h
53
if (sock && sock->sk)
io_uring/napi.h
54
__io_napi_add_id(ctx, READ_ONCE(sock->sk->sk_napi_id), mode);
io_uring/net.c
1009
if (sock->file->f_flags & O_NONBLOCK)
io_uring/net.c
1012
err = sock_recvmsg(sock, &kmsg->msg, flags);
io_uring/net.c
1055
struct socket *sock;
io_uring/net.c
1061
sock = sock_from_file(req->file);
io_uring/net.c
1062
if (unlikely(!sock))
io_uring/net.c
1096
ret = io_recvmsg_multishot(sock, sr, kmsg, flags,
io_uring/net.c
1103
ret = __sys_recvmsg_sock(sock, &kmsg->msg, sr->umsg,
io_uring/net.c
1112
if (ret > 0 && io_net_retry(sock, flags)) {
io_uring/net.c
1214
struct socket *sock;
io_uring/net.c
1220
sock = sock_from_file(req->file);
io_uring/net.c
1221
if (unlikely(!sock))
io_uring/net.c
1262
ret = sock_recvmsg(sock, &kmsg->msg, flags);
io_uring/net.c
1268
if (ret > 0 && io_net_retry(sock, flags)) {
io_uring/net.c
1328
struct socket *sock;
io_uring/net.c
1332
sock = sock_from_file(req->file);
io_uring/net.c
1333
if (unlikely(!sock))
io_uring/net.c
1341
ret = io_zcrx_recv(req, zc->ifq, sock, 0, issue_flags, &zc->len);
io_uring/net.c
140
struct socket *sock;
io_uring/net.c
145
sock = sock_from_file(req->file);
io_uring/net.c
146
if (unlikely(!sock))
io_uring/net.c
149
ret = __sys_shutdown_sock(sock, shutdown->how);
io_uring/net.c
1534
struct socket *sock;
io_uring/net.c
1538
sock = sock_from_file(req->file);
io_uring/net.c
1539
if (unlikely(!sock))
io_uring/net.c
154
static bool io_net_retry(struct socket *sock, int flags)
io_uring/net.c
1541
if (!test_bit(SOCK_SUPPORT_ZC, &sock->flags))
io_uring/net.c
1564
ret = sock_sendmsg(sock, &kmsg->msg);
io_uring/net.c
1567
ret = __sys_sendmsg_sock(sock, &kmsg->msg, msg_flags);
io_uring/net.c
1574
if (ret > 0 && io_net_retry(sock, sr->msg_flags)) {
io_uring/net.c
158
return sock->type == SOCK_STREAM || sock->type == SOCK_SEQPACKET;
io_uring/net.c
1713
struct io_socket *sock = io_kiocb_to_cmd(req, struct io_socket);
io_uring/net.c
1715
bctx->socket.family = sock->domain;
io_uring/net.c
1716
bctx->socket.type = sock->type;
io_uring/net.c
1717
bctx->socket.protocol = sock->protocol;
io_uring/net.c
1762
struct io_socket *sock = io_kiocb_to_cmd(req, struct io_socket);
io_uring/net.c
1767
sock->domain = READ_ONCE(sqe->fd);
io_uring/net.c
1768
sock->type = READ_ONCE(sqe->off);
io_uring/net.c
1769
sock->protocol = READ_ONCE(sqe->len);
io_uring/net.c
1770
sock->file_slot = READ_ONCE(sqe->file_index);
io_uring/net.c
1771
sock->nofile = rlimit(RLIMIT_NOFILE);
io_uring/net.c
1773
sock->flags = sock->type & ~SOCK_TYPE_MASK;
io_uring/net.c
1774
if (sock->file_slot && (sock->flags & SOCK_CLOEXEC))
io_uring/net.c
1776
if (sock->flags & ~(SOCK_CLOEXEC | SOCK_NONBLOCK))
io_uring/net.c
1783
struct io_socket *sock = io_kiocb_to_cmd(req, struct io_socket);
io_uring/net.c
1784
bool fixed = !!sock->file_slot;
io_uring/net.c
1789
fd = __get_unused_fd_flags(sock->flags, sock->nofile);
io_uring/net.c
1793
file = __sys_socket_file(sock->domain, sock->type, sock->protocol);
io_uring/net.c
1808
sock->file_slot);
io_uring/net.c
1929
struct socket *sock;
io_uring/net.c
1932
sock = sock_from_file(req->file);
io_uring/net.c
1933
if (unlikely(!sock))
io_uring/net.c
1936
ret = __sys_bind_socket(sock, addr, bind->addr_len);
io_uring/net.c
1957
struct socket *sock;
io_uring/net.c
1960
sock = sock_from_file(req->file);
io_uring/net.c
1961
if (unlikely(!sock))
io_uring/net.c
1964
ret = __sys_listen_socket(sock, listen->backlog);
io_uring/net.c
563
struct socket *sock;
io_uring/net.c
568
sock = sock_from_file(req->file);
io_uring/net.c
569
if (unlikely(!sock))
io_uring/net.c
584
ret = __sys_sendmsg_sock(sock, &kmsg->msg, flags);
io_uring/net.c
589
if (ret > 0 && io_net_retry(sock, flags)) {
io_uring/net.c
661
struct socket *sock;
io_uring/net.c
666
sock = sock_from_file(req->file);
io_uring/net.c
667
if (unlikely(!sock))
io_uring/net.c
705
ret = sock_sendmsg(sock, &kmsg->msg);
io_uring/net.c
710
if (ret > 0 && io_net_retry(sock, flags)) {
io_uring/net.c
996
static int io_recvmsg_multishot(struct socket *sock, struct io_sr_msg *io,
io_uring/zcrx.c
1736
struct sock *sk, int flags,
io_uring/zcrx.c
1781
struct socket *sock, unsigned int flags,
io_uring/zcrx.c
1784
struct sock *sk = sock->sk;
io_uring/zcrx.h
111
struct socket *sock, unsigned int flags,
io_uring/zcrx.h
94
struct socket *sock, unsigned int flags,
ipc/mqueue.c
1269
struct sock *sock;
ipc/mqueue.c
1277
sock = NULL;
ipc/mqueue.c
1306
sock = netlink_getsockbyfd(notification->sigev_signo);
ipc/mqueue.c
1307
if (IS_ERR(sock)) {
ipc/mqueue.c
1309
return PTR_ERR(sock);
ipc/mqueue.c
1313
ret = netlink_attachskb(sock, nc, &timeo, NULL);
ipc/mqueue.c
1350
info->notify_sock = sock;
ipc/mqueue.c
1352
sock = NULL;
ipc/mqueue.c
1370
if (sock)
ipc/mqueue.c
1371
netlink_detachskb(sock, nc);
ipc/mqueue.c
148
struct sock *notify_sock;
kernel/audit.c
102
struct sock *sk;
kernel/audit.c
331
static struct sock *audit_get_sk(const struct net *net)
kernel/audit.c
734
struct sock *sk;
kernel/audit.c
785
static int kauditd_send_queue(struct sock *sk, u32 portid,
kernel/audit.c
851
struct sock *sock = audit_get_sk(&init_net);
kernel/audit.c
857
if (!netlink_has_listeners(sock, AUDIT_NLGRP_READLOG))
kernel/audit.c
876
nlmsg_multicast(sock, copy, 0, AUDIT_NLGRP_READLOG, GFP_KERNEL);
kernel/audit.c
888
struct sock *sk = NULL;
kernel/audit.c
964
struct sock *sk = audit_get_sk(dest->net);
kernel/bpf/cgroup.c
122
struct sock *sk;
kernel/bpf/cgroup.c
144
struct socket *sock;
kernel/bpf/cgroup.c
150
sock = (void *)(unsigned long)args[0];
kernel/bpf/cgroup.c
154
cgrp = sock_cgroup_ptr(&sock->sk->sk_cgrp_data);
kernel/bpf/cgroup.c
1599
int __cgroup_bpf_run_filter_skb(struct sock *sk,
kernel/bpf/cgroup.c
1604
struct sock *save_sk;
kernel/bpf/cgroup.c
1677
int __cgroup_bpf_run_filter_sk(struct sock *sk,
kernel/bpf/cgroup.c
1705
int __cgroup_bpf_run_filter_sock_addr(struct sock *sk,
kernel/bpf/cgroup.c
1759
int __cgroup_bpf_run_filter_sock_ops(struct sock *sk,
kernel/bpf/cgroup.c
2033
int __cgroup_bpf_run_filter_setsockopt(struct sock *sk, int *level,
kernel/bpf/cgroup.c
2124
int __cgroup_bpf_run_filter_getsockopt(struct sock *sk, int level,
kernel/bpf/cgroup.c
2209
int __cgroup_bpf_run_filter_getsockopt_kern(struct sock *sk, int level,
kernel/bpf/reuseport_array.c
13
struct sock __rcu *ptrs[];
kernel/bpf/reuseport_array.c
168
struct sock *sk;
kernel/bpf/reuseport_array.c
189
const struct sock *nsk,
kernel/bpf/reuseport_array.c
190
const struct sock *osk,
kernel/bpf/reuseport_array.c
22
void bpf_sk_reuseport_detach(struct sock *sk)
kernel/bpf/reuseport_array.c
236
struct sock *free_osk = NULL, *osk, *nsk;
kernel/bpf/reuseport_array.c
24
struct sock __rcu **socks;
kernel/bpf/reuseport_array.c
66
struct sock *sk;
kernel/bpf/reuseport_array.c
97
struct sock *sk;
kernel/bpf/verifier.c
5648
struct sock *sk;
kernel/bpf/verifier.c
5652
struct sock *sk;
kernel/bpf/verifier.c
5678
struct sock *sk;
lib/kobject_uevent.c
319
struct sock *uevent_sock = ue_sk->sk;
lib/kobject_uevent.c
343
static int uevent_net_broadcast_tagged(struct sock *usk,
lib/kobject_uevent.c
40
struct sock *sk;
lib/kobject_uevent.c
699
static int uevent_net_broadcast(struct sock *usk, struct sk_buff *skb,
mm/memcontrol.c
5415
void mem_cgroup_sk_alloc(struct sock *sk)
mm/memcontrol.c
5438
void mem_cgroup_sk_free(struct sock *sk)
mm/memcontrol.c
5446
void mem_cgroup_sk_inherit(const struct sock *sk, struct sock *newsk)
mm/memcontrol.c
5471
bool mem_cgroup_sk_charge(const struct sock *sk, unsigned int nr_pages,
mm/memcontrol.c
5492
void mem_cgroup_sk_uncharge(const struct sock *sk, unsigned int nr_pages)
net/9p/trans_fd.c
850
static int p9_bind_privport(struct socket *sock)
net/9p/trans_fd.c
855
stor.ss_family = sock->ops->family;
net/9p/trans_fd.c
865
err = kernel_bind(sock, (struct sockaddr_unsized *)&stor, sizeof(stor));
net/atm/atm_misc.c
29
struct sock *sk = sk_atm(vcc);
net/atm/br2684.c
721
static int br2684_ioctl(struct socket *sock, unsigned int cmd,
net/atm/br2684.c
724
struct atm_vcc *atmvcc = ATM_SD(sock);
net/atm/br2684.c
740
if (sock->state != SS_CONNECTED)
net/atm/common.c
107
static void vcc_write_space(struct sock *sk)
net/atm/common.c
124
static void vcc_release_cb(struct sock *sk)
net/atm/common.c
139
int vcc_create(struct net *net, struct socket *sock, int protocol, int family, int kern)
net/atm/common.c
141
struct sock *sk;
net/atm/common.c
144
sock->sk = NULL;
net/atm/common.c
145
if (sock->type == SOCK_STREAM)
net/atm/common.c
150
sock_init_data(sock, sk);
net/atm/common.c
169
static void vcc_destroy_socket(struct sock *sk)
net/atm/common.c
195
int vcc_release(struct socket *sock)
net/atm/common.c
197
struct sock *sk = sock->sk;
net/atm/common.c
201
vcc_destroy_socket(sock->sk);
net/atm/common.c
211
struct sock *sk = sk_atm(vcc);
net/atm/common.c
265
struct sock *s;
net/atm/common.c
308
struct sock *s;
net/atm/common.c
377
struct sock *sk = sk_atm(vcc);
net/atm/common.c
42
static void __vcc_insert_socket(struct sock *sk)
net/atm/common.c
450
int vcc_connect(struct socket *sock, int itf, short vpi, int vci)
net/atm/common.c
453
struct atm_vcc *vcc = ATM_SD(sock);
net/atm/common.c
457
if (sock->state == SS_CONNECTED)
net/atm/common.c
459
if (sock->state != SS_UNCONNECTED)
net/atm/common.c
50
void vcc_insert_socket(struct sock *sk)
net/atm/common.c
505
if (test_bit(ATM_VF_READY, &ATM_SD(sock)->flags))
net/atm/common.c
506
sock->state = SS_CONNECTED;
net/atm/common.c
510
int vcc_recvmsg(struct socket *sock, struct msghdr *msg, size_t size,
net/atm/common.c
513
struct sock *sk = sock->sk;
net/atm/common.c
518
if (sock->state != SS_CONNECTED)
net/atm/common.c
525
vcc = ATM_SD(sock);
net/atm/common.c
555
int vcc_sendmsg(struct socket *sock, struct msghdr *m, size_t size)
net/atm/common.c
557
struct sock *sk = sock->sk;
net/atm/common.c
564
if (sock->state != SS_CONNECTED) {
net/atm/common.c
572
vcc = ATM_SD(sock);
net/atm/common.c
58
static void vcc_remove_socket(struct sock *sk)
net/atm/common.c
640
__poll_t vcc_poll(struct file *file, struct socket *sock, poll_table *wait)
net/atm/common.c
642
struct sock *sk = sock->sk;
net/atm/common.c
646
sock_poll_wait(file, sock, wait);
net/atm/common.c
649
vcc = ATM_SD(sock);
net/atm/common.c
67
struct sock *sk = sk_atm(vcc);
net/atm/common.c
709
int vcc_setsockopt(struct socket *sock, int level, int optname,
net/atm/common.c
719
vcc = ATM_SD(sock);
net/atm/common.c
731
if (sock->state == SS_CONNECTED)
net/atm/common.c
733
if (sock->state != SS_UNCONNECTED)
net/atm/common.c
752
int vcc_getsockopt(struct socket *sock, int level, int optname,
net/atm/common.c
763
vcc = ATM_SD(sock);
net/atm/common.c
77
static void vcc_sock_destruct(struct sock *sk)
net/atm/common.c
88
static void vcc_def_wakeup(struct sock *sk)
net/atm/common.c
99
static inline int vcc_writable(struct sock *sk)
net/atm/common.h
14
int vcc_create(struct net *net, struct socket *sock, int protocol, int family, int kern);
net/atm/common.h
15
int vcc_release(struct socket *sock);
net/atm/common.h
16
int vcc_connect(struct socket *sock, int itf, short vpi, int vci);
net/atm/common.h
17
int vcc_recvmsg(struct socket *sock, struct msghdr *msg, size_t size,
net/atm/common.h
19
int vcc_sendmsg(struct socket *sock, struct msghdr *m, size_t total_len);
net/atm/common.h
20
__poll_t vcc_poll(struct file *file, struct socket *sock, poll_table *wait);
net/atm/common.h
21
int vcc_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg);
net/atm/common.h
22
int vcc_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg);
net/atm/common.h
23
int vcc_setsockopt(struct socket *sock, int level, int optname,
net/atm/common.h
25
int vcc_getsockopt(struct socket *sock, int level, int optname,
net/atm/ioctl.c
111
error = ic->ioctl(sock, cmd, arg);
net/atm/ioctl.c
170
int vcc_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
net/atm/ioctl.c
172
return do_vcc_ioctl(sock, cmd, arg, 0);
net/atm/ioctl.c
221
static int do_atm_iobuf(struct socket *sock, unsigned int cmd,
net/atm/ioctl.c
233
static int do_atmif_sioc(struct socket *sock, unsigned int cmd,
net/atm/ioctl.c
245
static int do_atm_ioctl(struct socket *sock, unsigned int cmd32,
net/atm/ioctl.c
262
return do_atm_iobuf(sock, cmd, arg);
net/atm/ioctl.c
276
return do_atmif_sioc(sock, cmd, arg);
net/atm/ioctl.c
282
int vcc_compat_ioctl(struct socket *sock, unsigned int cmd,
net/atm/ioctl.c
287
ret = do_vcc_ioctl(sock, cmd, arg, 1);
net/atm/ioctl.c
291
return do_atm_ioctl(sock, cmd, arg);
net/atm/ioctl.c
43
static int do_vcc_ioctl(struct socket *sock, unsigned int cmd,
net/atm/ioctl.c
46
struct sock *sk = sock->sk;
net/atm/ioctl.c
54
vcc = ATM_SD(sock);
net/atm/ioctl.c
57
if (sock->state != SS_CONNECTED ||
net/atm/ioctl.c
70
if (sock->state != SS_CONNECTED) {
net/atm/pppoatm.c
438
static int pppoatm_ioctl(struct socket *sock, unsigned int cmd,
net/atm/pppoatm.c
441
struct atm_vcc *atmvcc = ATM_SD(sock);
net/atm/pppoatm.c
455
if (sock->state != SS_CONNECTED)
net/atm/proc.c
101
*sock = sk;
net/atm/proc.c
160
struct sock *sk = sk_atm(vcc);
net/atm/proc.c
67
struct sock *sk;
net/atm/proc.c
70
static inline int compare_family(struct sock *sk, int family)
net/atm/proc.c
75
static int __vcc_walk(struct sock **sock, int family, int *bucket, loff_t l)
net/atm/proc.c
77
struct sock *sk = *sock;
net/atm/pvc.c
132
static int pvc_create(struct net *net, struct socket *sock, int protocol,
net/atm/pvc.c
138
sock->ops = &pvc_proto_ops;
net/atm/pvc.c
139
return vcc_create(net, sock, protocol, PF_ATMPVC, kern);
net/atm/pvc.c
22
static int pvc_shutdown(struct socket *sock, int how)
net/atm/pvc.c
27
static int pvc_bind(struct socket *sock, struct sockaddr_unsized *sockaddr,
net/atm/pvc.c
30
struct sock *sk = sock->sk;
net/atm/pvc.c
41
vcc = ATM_SD(sock);
net/atm/pvc.c
52
error = vcc_connect(sock, addr->sap_addr.itf, addr->sap_addr.vpi,
net/atm/pvc.c
59
static int pvc_connect(struct socket *sock, struct sockaddr_unsized *sockaddr,
net/atm/pvc.c
62
return pvc_bind(sock, sockaddr, sockaddr_len);
net/atm/pvc.c
65
static int pvc_setsockopt(struct socket *sock, int level, int optname,
net/atm/pvc.c
68
struct sock *sk = sock->sk;
net/atm/pvc.c
72
error = vcc_setsockopt(sock, level, optname, optval, optlen);
net/atm/pvc.c
77
static int pvc_getsockopt(struct socket *sock, int level, int optname,
net/atm/pvc.c
80
struct sock *sk = sock->sk;
net/atm/pvc.c
84
error = vcc_getsockopt(sock, level, optname, opt);
net/atm/pvc.c
89
static int pvc_getname(struct socket *sock, struct sockaddr *sockaddr,
net/atm/pvc.c
93
struct atm_vcc *vcc = ATM_SD(sock);
net/atm/raw.c
26
struct sock *sk = sk_atm(vcc);
net/atm/raw.c
35
struct sock *sk = sk_atm(vcc);
net/bluetooth/af_bluetooth.c
113
static int bt_sock_create(struct net *net, struct socket *sock, int proto,
net/bluetooth/af_bluetooth.c
132
err = bt_proto[proto]->create(net, sock, proto, kern);
net/bluetooth/af_bluetooth.c
134
bt_sock_reclassify_lock(sock->sk, proto);
net/bluetooth/af_bluetooth.c
143
struct sock *bt_sock_alloc(struct net *net, struct socket *sock,
net/bluetooth/af_bluetooth.c
146
struct sock *sk;
net/bluetooth/af_bluetooth.c
152
sock_init_data(sock, sk);
net/bluetooth/af_bluetooth.c
173
void bt_sock_link(struct bt_sock_list *l, struct sock *sk)
net/bluetooth/af_bluetooth.c
181
void bt_sock_unlink(struct bt_sock_list *l, struct sock *sk)
net/bluetooth/af_bluetooth.c
189
bool bt_sock_linked(struct bt_sock_list *l, struct sock *s)
net/bluetooth/af_bluetooth.c
191
struct sock *sk;
net/bluetooth/af_bluetooth.c
211
void bt_accept_enqueue(struct sock *parent, struct sock *sk, bool bh)
net/bluetooth/af_bluetooth.c
256
void bt_accept_unlink(struct sock *sk)
net/bluetooth/af_bluetooth.c
258
struct sock *parent = bt_sk(sk)->parent;
net/bluetooth/af_bluetooth.c
271
static struct sock *bt_accept_get(struct sock *parent, struct sock *sk)
net/bluetooth/af_bluetooth.c
274
struct sock *next = NULL;
net/bluetooth/af_bluetooth.c
300
struct sock *bt_accept_dequeue(struct sock *parent, struct socket *newsock)
net/bluetooth/af_bluetooth.c
302
struct sock *sk, *next;
net/bluetooth/af_bluetooth.c
352
int bt_sock_recvmsg(struct socket *sock, struct msghdr *msg, size_t len,
net/bluetooth/af_bluetooth.c
355
struct sock *sk = sock->sk;
net/bluetooth/af_bluetooth.c
361
BT_DBG("sock %p sk %p len %zu", sock, sk, len);
net/bluetooth/af_bluetooth.c
414
static long bt_sock_data_wait(struct sock *sk, long timeo)
net/bluetooth/af_bluetooth.c
443
int bt_sock_stream_recvmsg(struct socket *sock, struct msghdr *msg,
net/bluetooth/af_bluetooth.c
446
struct sock *sk = sock->sk;
net/bluetooth/af_bluetooth.c
548
static inline __poll_t bt_accept_poll(struct sock *parent)
net/bluetooth/af_bluetooth.c
552
struct sock *sk;
net/bluetooth/af_bluetooth.c
559
sk = (struct sock *)s;
net/bluetooth/af_bluetooth.c
574
__poll_t bt_sock_poll(struct file *file, struct socket *sock,
net/bluetooth/af_bluetooth.c
577
struct sock *sk = sock->sk;
net/bluetooth/af_bluetooth.c
615
static int bt_ethtool_get_ts_info(struct sock *sk, unsigned int index,
net/bluetooth/af_bluetooth.c
642
static int bt_ethtool(struct sock *sk, const struct ifreq *ifr,
net/bluetooth/af_bluetooth.c
664
static int bt_dev_ioctl(struct socket *sock, unsigned int cmd, void __user *arg)
net/bluetooth/af_bluetooth.c
666
struct sock *sk = sock->sk;
net/bluetooth/af_bluetooth.c
695
int bt_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
net/bluetooth/af_bluetooth.c
697
struct sock *sk = sock->sk;
net/bluetooth/af_bluetooth.c
71
void bt_sock_reclassify_lock(struct sock *sk, int proto)
net/bluetooth/af_bluetooth.c
728
err = bt_dev_ioctl(sock, cmd, (void __user *)arg);
net/bluetooth/af_bluetooth.c
741
int bt_sock_wait_state(struct sock *sk, int state, unsigned long timeo)
net/bluetooth/af_bluetooth.c
777
int bt_sock_wait_ready(struct sock *sk, unsigned int msg_flags)
net/bluetooth/af_bluetooth.c
855
struct sock *sk = sk_entry(v);
net/bluetooth/bnep/bnep.h
110
int sock; /* Connected socket */
net/bluetooth/bnep/bnep.h
139
int bnep_add_connection(struct bnep_connadd_req *req, struct socket *sock);
net/bluetooth/bnep/bnep.h
160
struct socket *sock;
net/bluetooth/bnep/core.c
442
struct socket *sock = s->sock;
net/bluetooth/bnep/core.c
485
len = kernel_sendmsg(sock, &s->msg, iv, il, len);
net/bluetooth/bnep/core.c
502
struct sock *sk = s->sock->sk;
net/bluetooth/bnep/core.c
547
s->sock->sk->sk_err = EUNATCH;
net/bluetooth/bnep/core.c
549
wake_up_interruptible(sk_sleep(s->sock->sk));
net/bluetooth/bnep/core.c
552
fput(s->sock->file);
net/bluetooth/bnep/core.c
564
struct l2cap_chan *chan = l2cap_pi(session->sock->sk)->chan;
net/bluetooth/bnep/core.c
580
int bnep_add_connection(struct bnep_connadd_req *req, struct socket *sock)
net/bluetooth/bnep/core.c
591
if (!l2cap_is_socket(sock))
net/bluetooth/bnep/core.c
597
baswap((void *) dst, &l2cap_pi(sock->sk)->chan->dst);
net/bluetooth/bnep/core.c
598
baswap((void *) src, &l2cap_pi(sock->sk)->chan->src);
net/bluetooth/bnep/core.c
625
s->sock = sock;
net/bluetooth/bnep/core.c
70
struct socket *sock = s->sock;
net/bluetooth/bnep/core.c
701
wake_up_interruptible(sk_sleep(s->sock->sk));
net/bluetooth/bnep/core.c
73
return kernel_sendmsg(sock, &s->msg, &iv, 1, len);
net/bluetooth/bnep/netdev.c
165
struct sock *sk = s->sock->sk;
net/bluetooth/bnep/netdev.c
51
struct sock *sk = s->sock->sk;
net/bluetooth/bnep/sock.c
134
static int bnep_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
net/bluetooth/bnep/sock.c
136
return do_bnep_sock_ioctl(sock, cmd, (void __user *)arg);
net/bluetooth/bnep/sock.c
140
static int bnep_sock_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
net/bluetooth/bnep/sock.c
165
return do_bnep_sock_ioctl(sock, cmd, argp);
net/bluetooth/bnep/sock.c
195
static int bnep_sock_create(struct net *net, struct socket *sock, int protocol,
net/bluetooth/bnep/sock.c
198
struct sock *sk;
net/bluetooth/bnep/sock.c
200
BT_DBG("sock %p", sock);
net/bluetooth/bnep/sock.c
202
if (sock->type != SOCK_RAW)
net/bluetooth/bnep/sock.c
205
sk = bt_sock_alloc(net, sock, &bnep_proto, protocol, GFP_ATOMIC, kern);
net/bluetooth/bnep/sock.c
209
sock->ops = &bnep_sock_ops;
net/bluetooth/bnep/sock.c
210
sock->state = SS_UNCONNECTED;
net/bluetooth/bnep/sock.c
34
static int bnep_sock_release(struct socket *sock)
net/bluetooth/bnep/sock.c
36
struct sock *sk = sock->sk;
net/bluetooth/bnep/sock.c
38
BT_DBG("sock %p sk %p", sock, sk);
net/bluetooth/bnep/sock.c
50
static int do_bnep_sock_ioctl(struct socket *sock, unsigned int cmd, void __user *argp)
net/bluetooth/bnep/sock.c
70
nsock = sockfd_lookup(ca.sock, &err);
net/bluetooth/hci_conn.c
3210
struct sock *sk = skb ? skb->sk : NULL;
net/bluetooth/hci_sock.c
1001
static int hci_sock_bound_ioctl(struct sock *sk, unsigned int cmd,
net/bluetooth/hci_sock.c
1041
static int hci_sock_ioctl(struct socket *sock, unsigned int cmd,
net/bluetooth/hci_sock.c
1045
struct sock *sk = sock->sk;
net/bluetooth/hci_sock.c
114
static void hci_sock_free_cookie(struct sock *sk)
net/bluetooth/hci_sock.c
1171
static int hci_sock_compat_ioctl(struct socket *sock, unsigned int cmd,
net/bluetooth/hci_sock.c
1179
return hci_sock_ioctl(sock, cmd, arg);
net/bluetooth/hci_sock.c
1182
return hci_sock_ioctl(sock, cmd, (unsigned long)compat_ptr(arg));
net/bluetooth/hci_sock.c
1186
static int hci_sock_bind(struct socket *sock, struct sockaddr_unsized *addr,
net/bluetooth/hci_sock.c
1190
struct sock *sk = sock->sk;
net/bluetooth/hci_sock.c
1195
BT_DBG("sock %p sk %p", sock, sk);
net/bluetooth/hci_sock.c
1488
static int hci_sock_getname(struct socket *sock, struct sockaddr *addr,
net/bluetooth/hci_sock.c
1492
struct sock *sk = sock->sk;
net/bluetooth/hci_sock.c
1496
BT_DBG("sock %p sk %p", sock, sk);
net/bluetooth/hci_sock.c
1519
static void hci_sock_cmsg(struct sock *sk, struct msghdr *msg,
net/bluetooth/hci_sock.c
1556
static int hci_sock_recvmsg(struct socket *sock, struct msghdr *msg,
net/bluetooth/hci_sock.c
1560
struct sock *sk = sock->sk;
net/bluetooth/hci_sock.c
1565
BT_DBG("sock %p, sk %p", sock, sk);
net/bluetooth/hci_sock.c
1612
scm_recv(sock, msg, &scm, flags);
net/bluetooth/hci_sock.c
1617
static int hci_mgmt_cmd(struct hci_mgmt_chan *chan, struct sock *sk,
net/bluetooth/hci_sock.c
163
static bool is_filtered_packet(struct sock *sk, struct sk_buff *skb)
net/bluetooth/hci_sock.c
1732
static int hci_logging_frame(struct sock *sk, struct sk_buff *skb,
net/bluetooth/hci_sock.c
1798
static int hci_sock_sendmsg(struct socket *sock, struct msghdr *msg,
net/bluetooth/hci_sock.c
1801
struct sock *sk = sock->sk;
net/bluetooth/hci_sock.c
1808
BT_DBG("sock %p sk %p", sock, sk);
net/bluetooth/hci_sock.c
1936
static int hci_sock_setsockopt_old(struct socket *sock, int level, int optname,
net/bluetooth/hci_sock.c
1940
struct sock *sk = sock->sk;
net/bluetooth/hci_sock.c
2015
static int hci_sock_setsockopt(struct socket *sock, int level, int optname,
net/bluetooth/hci_sock.c
2018
struct sock *sk = sock->sk;
net/bluetooth/hci_sock.c
2025
return hci_sock_setsockopt_old(sock, level, optname, optval,
net/bluetooth/hci_sock.c
203
struct sock *sk;
net/bluetooth/hci_sock.c
2063
static int hci_sock_getsockopt_old(struct socket *sock, int level, int optname,
net/bluetooth/hci_sock.c
2067
struct sock *sk = sock->sk;
net/bluetooth/hci_sock.c
2130
static int hci_sock_getsockopt(struct socket *sock, int level, int optname,
net/bluetooth/hci_sock.c
2133
struct sock *sk = sock->sk;
net/bluetooth/hci_sock.c
2140
return hci_sock_getsockopt_old(sock, level, optname, sopt);
net/bluetooth/hci_sock.c
2165
static void hci_sock_destruct(struct sock *sk)
net/bluetooth/hci_sock.c
2202
static int hci_sock_create(struct net *net, struct socket *sock, int protocol,
net/bluetooth/hci_sock.c
2205
struct sock *sk;
net/bluetooth/hci_sock.c
2207
BT_DBG("sock %p", sock);
net/bluetooth/hci_sock.c
2209
if (sock->type != SOCK_RAW)
net/bluetooth/hci_sock.c
2212
sock->ops = &hci_sock_ops;
net/bluetooth/hci_sock.c
2214
sk = bt_sock_alloc(net, sock, &hci_sk_proto, protocol, GFP_ATOMIC,
net/bluetooth/hci_sock.c
2219
sock->state = SS_UNCONNECTED;
net/bluetooth/hci_sock.c
266
static void hci_sock_copy_creds(struct sock *sk, struct sk_buff *skb)
net/bluetooth/hci_sock.c
315
int flag, struct sock *skip_sk)
net/bluetooth/hci_sock.c
317
struct sock *sk;
net/bluetooth/hci_sock.c
349
int flag, struct sock *skip_sk)
net/bluetooth/hci_sock.c
426
int flag, struct sock *skip_sk)
net/bluetooth/hci_sock.c
428
struct sock *sk;
net/bluetooth/hci_sock.c
557
static struct sk_buff *create_monitor_ctrl_open(struct sock *sk)
net/bluetooth/hci_sock.c
61
static struct hci_dev *hci_hdev_from_sock(struct sock *sk)
net/bluetooth/hci_sock.c
617
static struct sk_buff *create_monitor_ctrl_close(struct sock *sk)
net/bluetooth/hci_sock.c
657
static struct sk_buff *create_monitor_ctrl_command(struct sock *sk, u16 index,
net/bluetooth/hci_sock.c
687
send_monitor_note(struct sock *sk, const char *fmt, ...)
net/bluetooth/hci_sock.c
72
void hci_sock_set_flag(struct sock *sk, int nr)
net/bluetooth/hci_sock.c
720
static void send_monitor_replay(struct sock *sk)
net/bluetooth/hci_sock.c
762
static void send_monitor_control_replay(struct sock *mon_sk)
net/bluetooth/hci_sock.c
764
struct sock *sk;
net/bluetooth/hci_sock.c
77
void hci_sock_clear_flag(struct sock *sk, int nr)
net/bluetooth/hci_sock.c
82
int hci_sock_test_flag(struct sock *sk, int nr)
net/bluetooth/hci_sock.c
835
struct sock *sk;
net/bluetooth/hci_sock.c
87
unsigned short hci_sock_get_channel(struct sock *sk)
net/bluetooth/hci_sock.c
899
static int hci_sock_release(struct socket *sock)
net/bluetooth/hci_sock.c
901
struct sock *sk = sock->sk;
net/bluetooth/hci_sock.c
905
BT_DBG("sock %p sk %p", sock, sk);
net/bluetooth/hci_sock.c
92
u32 hci_sock_get_cookie(struct sock *sk)
net/bluetooth/hci_sock.c
97
static bool hci_sock_gen_cookie(struct sock *sk)
net/bluetooth/hci_sync.c
158
struct sock *sk)
net/bluetooth/hci_sync.c
2011
struct sock *sk)
net/bluetooth/hci_sync.c
2099
static int hci_clear_adv_sets_sync(struct hci_dev *hdev, struct sock *sk)
net/bluetooth/hci_sync.c
2115
static int hci_clear_adv_sync(struct hci_dev *hdev, struct sock *sk, bool force)
net/bluetooth/hci_sync.c
2147
struct sock *sk)
net/bluetooth/hci_sync.c
2180
int hci_remove_advertising_sync(struct hci_dev *hdev, struct sock *sk,
net/bluetooth/hci_sync.c
258
struct sock *sk)
net/bluetooth/hci_sync.c
2759
bool extended, struct sock *sk)
net/bluetooth/hci_sync.c
39
struct sock *sk = hci_skb_sk(skb);
net/bluetooth/hci_sync.c
483
int hci_clear_adv_instance_sync(struct hci_dev *hdev, struct sock *sk,
net/bluetooth/hci_sync.c
52
const void *param, struct sock *sk)
net/bluetooth/hci_sync.c
86
const void *param, u8 event, struct sock *sk)
net/bluetooth/hidp/core.c
100
struct sock *sk = sock->sk;
net/bluetooth/hidp/core.c
1237
struct sock *ctrl_sk = session->ctrl_sock->sk;
net/bluetooth/hidp/core.c
1238
struct sock *intr_sk = session->intr_sock->sk;
net/bluetooth/hidp/core.c
631
static int hidp_send_frame(struct socket *sock, unsigned char *data, int len)
net/bluetooth/hidp/core.c
636
BT_DBG("sock %p data %p len %d", sock, data, len);
net/bluetooth/hidp/core.c
643
return kernel_sendmsg(sock, &msg, &iv, 1, len);
net/bluetooth/hidp/core.c
649
struct socket *sock)
net/bluetooth/hidp/core.c
657
ret = hidp_send_frame(sock, skb->data, skb->len);
net/bluetooth/hidp/core.c
95
static int hidp_send_message(struct hidp_session *session, struct socket *sock,
net/bluetooth/hidp/sock.c
123
static int hidp_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
net/bluetooth/hidp/sock.c
125
return do_hidp_sock_ioctl(sock, cmd, (void __user *)arg);
net/bluetooth/hidp/sock.c
145
static int hidp_sock_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
net/bluetooth/hidp/sock.c
216
return hidp_sock_ioctl(sock, cmd, arg);
net/bluetooth/hidp/sock.c
246
static int hidp_sock_create(struct net *net, struct socket *sock, int protocol,
net/bluetooth/hidp/sock.c
249
struct sock *sk;
net/bluetooth/hidp/sock.c
251
BT_DBG("sock %p", sock);
net/bluetooth/hidp/sock.c
253
if (sock->type != SOCK_RAW)
net/bluetooth/hidp/sock.c
256
sk = bt_sock_alloc(net, sock, &hidp_proto, protocol, GFP_ATOMIC, kern);
net/bluetooth/hidp/sock.c
260
sock->ops = &hidp_sock_ops;
net/bluetooth/hidp/sock.c
261
sock->state = SS_UNCONNECTED;
net/bluetooth/hidp/sock.c
30
static int hidp_sock_release(struct socket *sock)
net/bluetooth/hidp/sock.c
32
struct sock *sk = sock->sk;
net/bluetooth/hidp/sock.c
34
BT_DBG("sock %p sk %p", sock, sk);
net/bluetooth/hidp/sock.c
47
static int do_hidp_sock_ioctl(struct socket *sock, unsigned int cmd, void __user *argp)
net/bluetooth/iso.c
1001
static struct sock *iso_sock_alloc(struct net *net, struct socket *sock,
net/bluetooth/iso.c
1004
struct sock *sk;
net/bluetooth/iso.c
1006
sk = bt_sock_alloc(net, sock, &iso_proto, proto, prio, kern);
net/bluetooth/iso.c
1025
static int iso_sock_create(struct net *net, struct socket *sock, int protocol,
net/bluetooth/iso.c
1028
struct sock *sk;
net/bluetooth/iso.c
1030
BT_DBG("sock %p", sock);
net/bluetooth/iso.c
1032
sock->state = SS_UNCONNECTED;
net/bluetooth/iso.c
1034
if (sock->type != SOCK_SEQPACKET)
net/bluetooth/iso.c
1037
sock->ops = &iso_sock_ops;
net/bluetooth/iso.c
1039
sk = iso_sock_alloc(net, sock, protocol, GFP_ATOMIC, kern);
net/bluetooth/iso.c
1047
static int iso_sock_bind_bc(struct socket *sock, struct sockaddr_unsized *addr,
net/bluetooth/iso.c
1051
struct sock *sk = sock->sk;
net/bluetooth/iso.c
1090
static int iso_sock_rebind_bis(struct sock *sk, struct sockaddr_iso *sa,
net/bluetooth/iso.c
1132
static int iso_sock_rebind_bc(struct sock *sk, struct sockaddr_iso *sa,
net/bluetooth/iso.c
1190
static int iso_sock_bind(struct socket *sock, struct sockaddr_unsized *addr,
net/bluetooth/iso.c
1194
struct sock *sk = sock->sk;
net/bluetooth/iso.c
1235
err = iso_sock_bind_bc(sock, addr, addr_len);
net/bluetooth/iso.c
1247
static int iso_sock_connect(struct socket *sock, struct sockaddr_unsized *addr,
net/bluetooth/iso.c
1251
struct sock *sk = sock->sk;
net/bluetooth/iso.c
1296
static int iso_listen_bis(struct sock *sk)
net/bluetooth/iso.c
1367
static int iso_listen_cis(struct sock *sk)
net/bluetooth/iso.c
1383
static int iso_sock_listen(struct socket *sock, int backlog)
net/bluetooth/iso.c
1385
struct sock *sk = sock->sk;
net/bluetooth/iso.c
1428
static int iso_sock_accept(struct socket *sock, struct socket *newsock,
net/bluetooth/iso.c
1432
struct sock *sk = sock->sk, *ch;
net/bluetooth/iso.c
1528
static int iso_sock_getname(struct socket *sock, struct sockaddr *addr,
net/bluetooth/iso.c
1532
struct sock *sk = sock->sk;
net/bluetooth/iso.c
1535
BT_DBG("sock %p, sk %p", sock, sk);
net/bluetooth/iso.c
1565
static int iso_sock_sendmsg(struct socket *sock, struct msghdr *msg,
net/bluetooth/iso.c
1568
struct sock *sk = sock->sk;
net/bluetooth/iso.c
1574
BT_DBG("sock %p, sk %p", sock, sk);
net/bluetooth/iso.c
1661
static void iso_conn_big_sync(struct sock *sk)
net/bluetooth/iso.c
1713
static int iso_sock_recvmsg(struct socket *sock, struct msghdr *msg,
net/bluetooth/iso.c
1716
struct sock *sk = sock->sk;
net/bluetooth/iso.c
174
static struct sock *iso_sock_hold(struct iso_conn *conn)
net/bluetooth/iso.c
1775
return bt_sock_recvmsg(sock, msg, len, flags);
net/bluetooth/iso.c
1869
static int iso_sock_setsockopt(struct socket *sock, int level, int optname,
net/bluetooth/iso.c
1872
struct sock *sk = sock->sk;
net/bluetooth/iso.c
188
struct sock *sk = &pi->bt.sk;
net/bluetooth/iso.c
1968
static int iso_sock_getsockopt(struct socket *sock, int level, int optname,
net/bluetooth/iso.c
1971
struct sock *sk = sock->sk;
net/bluetooth/iso.c
200
static void iso_sock_set_timer(struct sock *sk, long timeout)
net/bluetooth/iso.c
2039
static int iso_sock_shutdown(struct socket *sock, int how)
net/bluetooth/iso.c
2041
struct sock *sk = sock->sk;
net/bluetooth/iso.c
2044
BT_DBG("sock %p, sk %p, how %d", sock, sk, how);
net/bluetooth/iso.c
2084
static int iso_sock_release(struct socket *sock)
net/bluetooth/iso.c
2086
struct sock *sk = sock->sk;
net/bluetooth/iso.c
2089
BT_DBG("sock %p, sk %p", sock, sk);
net/bluetooth/iso.c
2116
static void iso_sock_ready(struct sock *sk)
net/bluetooth/iso.c
213
static void iso_sock_clear_timer(struct sock *sk)
net/bluetooth/iso.c
2133
static bool iso_match_big(struct sock *sk, void *data)
net/bluetooth/iso.c
2140
static bool iso_match_big_hcon(struct sock *sk, void *data)
net/bluetooth/iso.c
2147
static bool iso_match_pa_sync_flag(struct sock *sk, void *data)
net/bluetooth/iso.c
2152
static bool iso_match_dst(struct sock *sk, void *data)
net/bluetooth/iso.c
2159
struct sock *parent = NULL;
net/bluetooth/iso.c
2160
struct sock *sk;
net/bluetooth/iso.c
219
static void iso_sock_disable_timer(struct sock *sk)
net/bluetooth/iso.c
2336
static bool iso_match_sid(struct sock *sk, void *data)
net/bluetooth/iso.c
2346
static bool iso_match_sid_past(struct sock *sk, void *data)
net/bluetooth/iso.c
2356
static bool iso_match_sync_handle(struct sock *sk, void *data)
net/bluetooth/iso.c
2363
static bool iso_match_sync_handle_pa_report(struct sock *sk, void *data)
net/bluetooth/iso.c
2378
struct sock *sk;
net/bluetooth/iso.c
267
static void iso_chan_del(struct sock *sk, int err)
net/bluetooth/iso.c
270
struct sock *parent;
net/bluetooth/iso.c
2797
struct sock *sk;
net/bluetooth/iso.c
302
struct sock *sk;
net/bluetooth/iso.c
340
static int __iso_chan_add(struct iso_conn *conn, struct sock *sk,
net/bluetooth/iso.c
341
struct sock *parent)
net/bluetooth/iso.c
368
static int iso_chan_add(struct iso_conn *conn, struct sock *sk,
net/bluetooth/iso.c
369
struct sock *parent)
net/bluetooth/iso.c
38
struct sock *sk;
net/bluetooth/iso.c
388
static int iso_connect_bis(struct sock *sk)
net/bluetooth/iso.c
49
static void iso_sock_close(struct sock *sk);
net/bluetooth/iso.c
492
static int iso_connect_cis(struct sock *sk)
net/bluetooth/iso.c
50
static void iso_sock_kill(struct sock *sk);
net/bluetooth/iso.c
597
static struct bt_iso_qos *iso_sock_get_qos(struct sock *sk)
net/bluetooth/iso.c
605
static int iso_send_frame(struct sock *sk, struct sk_buff *skb,
net/bluetooth/iso.c
638
struct sock *sk;
net/bluetooth/iso.c
664
static struct sock *__iso_get_sock_listen_by_addr(bdaddr_t *src, bdaddr_t *dst)
net/bluetooth/iso.c
666
struct sock *sk;
net/bluetooth/iso.c
682
static struct sock *__iso_get_sock_listen_by_sid(bdaddr_t *ba, bdaddr_t *bc,
net/bluetooth/iso.c
685
struct sock *sk;
net/bluetooth/iso.c
711
static struct sock *iso_get_sock(struct hci_dev *hdev, bdaddr_t *src,
net/bluetooth/iso.c
715
struct sock *sk = NULL, *sk1 = NULL;
net/bluetooth/iso.c
772
static struct sock *iso_get_sock_big(struct sock *match_sk, bdaddr_t *src,
net/bluetooth/iso.c
775
struct sock *sk = NULL;
net/bluetooth/iso.c
811
static void iso_sock_destruct(struct sock *sk)
net/bluetooth/iso.c
822
static void iso_sock_cleanup_listen(struct sock *parent)
net/bluetooth/iso.c
824
struct sock *sk;
net/bluetooth/iso.c
849
static void iso_sock_kill(struct sock *sk)
net/bluetooth/iso.c
879
static void iso_sock_disconn(struct sock *sk)
net/bluetooth/iso.c
881
struct sock *bis_sk;
net/bluetooth/iso.c
89
static bool iso_match_sid(struct sock *sk, void *data);
net/bluetooth/iso.c
90
static bool iso_match_sid_past(struct sock *sk, void *data);
net/bluetooth/iso.c
909
static void __iso_sock_close(struct sock *sk)
net/bluetooth/iso.c
91
static bool iso_match_sync_handle(struct sock *sk, void *data);
net/bluetooth/iso.c
92
static bool iso_match_sync_handle_pa_report(struct sock *sk, void *data);
net/bluetooth/iso.c
93
static void iso_sock_disconn(struct sock *sk);
net/bluetooth/iso.c
946
static void iso_sock_close(struct sock *sk)
net/bluetooth/iso.c
95
typedef bool (*iso_sock_match_t)(struct sock *sk, void *data);
net/bluetooth/iso.c
955
static void iso_sock_init(struct sock *sk, struct sock *parent)
net/bluetooth/iso.c
97
static struct sock *iso_get_sock(struct hci_dev *hdev, bdaddr_t *src,
net/bluetooth/l2cap_core.c
2561
struct sock *sk = skb ? skb->sk : NULL;
net/bluetooth/l2cap_core.c
2574
struct sock *sk = skb ? skb->sk : NULL;
net/bluetooth/l2cap_sock.c
1145
static int l2cap_sock_sendmsg(struct socket *sock, struct msghdr *msg,
net/bluetooth/l2cap_sock.c
1148
struct sock *sk = sock->sk;
net/bluetooth/l2cap_sock.c
1153
BT_DBG("sock %p, sk %p", sock, sk);
net/bluetooth/l2cap_sock.c
1188
struct sock *sk = chan->data;
net/bluetooth/l2cap_sock.c
1214
static int l2cap_sock_recvmsg(struct socket *sock, struct msghdr *msg,
net/bluetooth/l2cap_sock.c
1217
struct sock *sk = sock->sk;
net/bluetooth/l2cap_sock.c
1249
if (sock->type == SOCK_STREAM)
net/bluetooth/l2cap_sock.c
1250
err = bt_sock_stream_recvmsg(sock, msg, len, flags);
net/bluetooth/l2cap_sock.c
1252
err = bt_sock_recvmsg(sock, msg, len, flags);
net/bluetooth/l2cap_sock.c
1293
static void l2cap_sock_put_chan(struct sock *sk)
net/bluetooth/l2cap_sock.c
1308
static void l2cap_sock_kill(struct sock *sk)
net/bluetooth/l2cap_sock.c
1322
static int __l2cap_wait_ack(struct sock *sk, struct l2cap_chan *chan)
net/bluetooth/l2cap_sock.c
1367
static int l2cap_sock_shutdown(struct socket *sock, int how)
net/bluetooth/l2cap_sock.c
1369
struct sock *sk = sock->sk;
net/bluetooth/l2cap_sock.c
1374
BT_DBG("sock %p, sk %p, how %d", sock, sk, how);
net/bluetooth/l2cap_sock.c
1468
static int l2cap_sock_release(struct socket *sock)
net/bluetooth/l2cap_sock.c
1470
struct sock *sk = sock->sk;
net/bluetooth/l2cap_sock.c
1474
BT_DBG("sock %p, sk %p", sock, sk);
net/bluetooth/l2cap_sock.c
1485
err = l2cap_sock_shutdown(sock, SHUT_RDWR);
net/bluetooth/l2cap_sock.c
1500
static void l2cap_sock_cleanup_listen(struct sock *parent)
net/bluetooth/l2cap_sock.c
1502
struct sock *sk;
net/bluetooth/l2cap_sock.c
1563
struct sock *sk, *parent = chan->data;
net/bluetooth/l2cap_sock.c
1600
struct sock *sk;
net/bluetooth/l2cap_sock.c
1663
struct sock *sk = chan->data;
net/bluetooth/l2cap_sock.c
1673
struct sock *sk = chan->data;
net/bluetooth/l2cap_sock.c
1674
struct sock *parent;
net/bluetooth/l2cap_sock.c
1728
struct sock *sk = chan->data;
net/bluetooth/l2cap_sock.c
1743
struct sock *sk = chan->data;
net/bluetooth/l2cap_sock.c
1771
struct sock *sk = chan->data;
net/bluetooth/l2cap_sock.c
1772
struct sock *parent;
net/bluetooth/l2cap_sock.c
1794
struct sock *parent, *sk = chan->data;
net/bluetooth/l2cap_sock.c
180
static int l2cap_sock_connect(struct socket *sock, struct sockaddr_unsized *addr,
net/bluetooth/l2cap_sock.c
1807
struct sock *sk = chan->data;
net/bluetooth/l2cap_sock.c
1823
struct sock *sk = chan->data;
net/bluetooth/l2cap_sock.c
183
struct sock *sk = sock->sk;
net/bluetooth/l2cap_sock.c
1832
struct sock *sk = chan->data;
net/bluetooth/l2cap_sock.c
1842
struct sock *sk = chan->data;
net/bluetooth/l2cap_sock.c
1849
struct sock *sk = chan->data;
net/bluetooth/l2cap_sock.c
1857
struct sock *sk = chan->data;
net/bluetooth/l2cap_sock.c
1886
static void l2cap_sock_destruct(struct sock *sk)
net/bluetooth/l2cap_sock.c
1918
static void l2cap_sock_init(struct sock *sk, struct sock *parent)
net/bluetooth/l2cap_sock.c
1974
static struct sock *l2cap_sock_alloc(struct net *net, struct socket *sock,
net/bluetooth/l2cap_sock.c
1978
struct sock *sk;
net/bluetooth/l2cap_sock.c
1980
sk = bt_sock_alloc(net, sock, &l2cap_proto, proto, prio, kern);
net/bluetooth/l2cap_sock.c
1995
static int l2cap_sock_create(struct net *net, struct socket *sock, int protocol,
net/bluetooth/l2cap_sock.c
1998
struct sock *sk;
net/bluetooth/l2cap_sock.c
2001
BT_DBG("sock %p", sock);
net/bluetooth/l2cap_sock.c
2003
sock->state = SS_UNCONNECTED;
net/bluetooth/l2cap_sock.c
2005
if (sock->type != SOCK_SEQPACKET && sock->type != SOCK_STREAM &&
net/bluetooth/l2cap_sock.c
2006
sock->type != SOCK_DGRAM && sock->type != SOCK_RAW)
net/bluetooth/l2cap_sock.c
2009
if (sock->type == SOCK_RAW && !kern && !capable(CAP_NET_RAW))
net/bluetooth/l2cap_sock.c
2012
sock->ops = &l2cap_sock_ops;
net/bluetooth/l2cap_sock.c
2018
sk = l2cap_sock_alloc(net, sock, protocol, GFP_ATOMIC, kern, chan);
net/bluetooth/l2cap_sock.c
271
static int l2cap_sock_listen(struct socket *sock, int backlog)
net/bluetooth/l2cap_sock.c
273
struct sock *sk = sock->sk;
net/bluetooth/l2cap_sock.c
328
static int l2cap_sock_accept(struct socket *sock, struct socket *newsock,
net/bluetooth/l2cap_sock.c
332
struct sock *sk = sock->sk, *nsk;
net/bluetooth/l2cap_sock.c
389
static int l2cap_sock_getname(struct socket *sock, struct sockaddr *addr,
net/bluetooth/l2cap_sock.c
393
struct sock *sk = sock->sk;
net/bluetooth/l2cap_sock.c
396
BT_DBG("sock %p, sk %p", sock, sk);
net/bluetooth/l2cap_sock.c
439
static int l2cap_sock_getsockopt_old(struct socket *sock, int optname,
net/bluetooth/l2cap_sock.c
44
static void l2cap_sock_init(struct sock *sk, struct sock *parent);
net/bluetooth/l2cap_sock.c
442
struct sock *sk = sock->sk;
net/bluetooth/l2cap_sock.c
45
static struct sock *l2cap_sock_alloc(struct net *net, struct socket *sock,
net/bluetooth/l2cap_sock.c
48
static void l2cap_sock_cleanup_listen(struct sock *parent);
net/bluetooth/l2cap_sock.c
50
bool l2cap_is_socket(struct socket *sock)
net/bluetooth/l2cap_sock.c
52
return sock && sock->ops == &l2cap_sock_ops;
net/bluetooth/l2cap_sock.c
559
static int l2cap_sock_getsockopt(struct socket *sock, int level, int optname,
net/bluetooth/l2cap_sock.c
562
struct sock *sk = sock->sk;
net/bluetooth/l2cap_sock.c
574
return l2cap_sock_getsockopt_old(sock, optname, sopt);
net/bluetooth/l2cap_sock.c
741
static int l2cap_sock_setsockopt_old(struct socket *sock, int optname,
net/bluetooth/l2cap_sock.c
744
struct sock *sk = sock->sk;
net/bluetooth/l2cap_sock.c
82
static int l2cap_sock_bind(struct socket *sock, struct sockaddr_unsized *addr, int alen)
net/bluetooth/l2cap_sock.c
84
struct sock *sk = sock->sk;
net/bluetooth/l2cap_sock.c
895
static int l2cap_sock_setsockopt(struct socket *sock, int level, int optname,
net/bluetooth/l2cap_sock.c
898
struct sock *sk = sock->sk;
net/bluetooth/l2cap_sock.c
911
return l2cap_sock_setsockopt_old(sock, optname, optval, optlen);
net/bluetooth/mgmt.c
10410
struct sock *skip_sk,
net/bluetooth/mgmt.c
10441
struct sock *skip_sk)
net/bluetooth/mgmt.c
10743
void mgmt_cleanup(struct sock *sk)
net/bluetooth/mgmt.c
1077
static int send_settings_rsp(struct sock *sk, u16 opcode, struct hci_dev *hdev);
net/bluetooth/mgmt.c
1135
static void mgmt_init_hdev(struct sock *sk, struct hci_dev *hdev)
net/bluetooth/mgmt.c
1157
static int read_controller_info(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
1211
static int read_ext_controller_info(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
1251
static int ext_info_changed(struct hci_dev *hdev, struct sock *skip)
net/bluetooth/mgmt.c
1267
static int send_settings_rsp(struct sock *sk, u16 opcode, struct hci_dev *hdev)
net/bluetooth/mgmt.c
1275
void mgmt_advertising_added(struct sock *sk, struct hci_dev *hdev, u8 instance)
net/bluetooth/mgmt.c
1284
void mgmt_advertising_removed(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
1327
static int new_settings(struct hci_dev *hdev, struct sock *skip)
net/bluetooth/mgmt.c
1393
static int set_powered(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt.c
1458
struct sock *sk;
net/bluetooth/mgmt.c
1575
static int set_discoverable(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt.c
1737
struct sock *sk, u8 val)
net/bluetooth/mgmt.c
1775
static int set_connectable(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt.c
1835
static int set_bondable(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt.c
1873
static int set_link_security(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt.c
2017
static int set_ssp(struct sock *sk, struct hci_dev *hdev, void *data, u16 len)
net/bluetooth/mgmt.c
2092
static int set_hs(struct sock *sk, struct hci_dev *hdev, void *data, u16 len)
net/bluetooth/mgmt.c
2187
struct sock *sk;
net/bluetooth/mgmt.c
2244
static int set_mesh(struct sock *sk, struct hci_dev *hdev, void *data, u16 len)
net/bluetooth/mgmt.c
2385
static int mesh_features(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
2439
static int mesh_send_cancel(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
2473
static int mesh_send(struct sock *sk, struct hci_dev *hdev, void *data, u16 len)
net/bluetooth/mgmt.c
2542
static int set_le(struct sock *sk, struct hci_dev *hdev, void *data, u16 len)
net/bluetooth/mgmt.c
2659
static int mgmt_hci_cmd_sync(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
2765
static int add_uuid(struct sock *sk, struct hci_dev *hdev, void *data, u16 len)
net/bluetooth/mgmt.c
2840
static int remove_uuid(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt.c
2926
static int set_dev_class(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt.c
2981
static int load_link_keys(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt.c
3075
u8 addr_type, struct sock *skip_sk)
net/bluetooth/mgmt.c
3130
static int unpair_device(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt.c
328
u16 len, int flag, struct sock *skip_sk)
net/bluetooth/mgmt.c
3299
static int disconnect(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt.c
335
struct sock *skip_sk)
net/bluetooth/mgmt.c
3367
static int get_connections(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt.c
341
static int mgmt_event_skb(struct sk_buff *skb, struct sock *skip_sk)
net/bluetooth/mgmt.c
3421
static int send_pin_code_neg_reply(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
3442
static int pin_code_reply(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt.c
3504
static int set_io_capability(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt.c
363
static int read_version(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt.c
3653
static int pair_device(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt.c
376
static int read_commands(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt.c
3789
static int cancel_pair_device(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt.c
3842
static int user_pairing_resp(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
3913
static int pin_code_neg_reply(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
3925
static int user_confirm_reply(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt.c
3941
static int user_confirm_neg_reply(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
3953
static int user_passkey_reply(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt.c
3965
static int user_passkey_neg_reply(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
4062
static int set_local_name(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt.c
4136
static int set_appearance(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt.c
4171
static int get_phy_configuration(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
4192
int mgmt_phy_configuration_changed(struct hci_dev *hdev, struct sock *skip)
net/bluetooth/mgmt.c
428
static int read_index_list(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt.c
4281
static int set_phy_configuration(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
4410
static int set_blocked_keys(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt.c
4459
static int set_wideband_speech(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
4508
static int read_controller_cap(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
4613
static int read_exp_features_info(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
4706
bool enabled, struct sock *skip)
net/bluetooth/mgmt.c
4726
static int set_zero_key_func(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
4753
static int set_debug_func(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
4799
static int set_mgmt_mesh_func(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
4850
static int set_quality_report_func(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
486
static int read_unconf_index_list(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
4924
static int set_offload_codec_func(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
4982
static int set_le_simultaneous_roles_func(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
5041
static int set_iso_socket_func(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
5093
int (*set_func)(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
5112
static int set_exp_feature(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
5130
static int get_device_flags(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt.c
5181
static void device_flags_changed(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
5258
static int set_device_flags(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt.c
5342
static void mgmt_adv_monitor_added(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
5352
static void mgmt_adv_monitor_removed(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
5362
static int read_adv_mon_features(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
544
static int read_ext_index_list(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
5470
static int __add_adv_patterns_monitor(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
5573
static int add_adv_patterns_monitor(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
5610
static int add_adv_patterns_monitor_rssi(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
5689
static int remove_adv_monitor(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
5818
static int read_local_oob_data(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
5860
static int add_remote_oob_data(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
5968
static int remove_remote_oob_data(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
6057
static int start_discovery_internal(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
6128
static int start_discovery(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
6135
static int start_limited_discovery(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
6143
static int start_service_discovery(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
6280
static int stop_discovery(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt.c
6325
static int confirm_name(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt.c
6367
static int block_device(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt.c
640
static int new_options(struct hci_dev *hdev, struct sock *skip)
net/bluetooth/mgmt.c
6403
static int unblock_device(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt.c
6444
static int set_device_id(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt.c
648
static int send_options_rsp(struct sock *sk, u16 opcode, struct hci_dev *hdev)
net/bluetooth/mgmt.c
656
static int read_config_info(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
6583
static int set_advertising(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt.c
6668
static int set_static_address(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
6712
static int set_scan_params(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
6794
static int set_fast_connectable(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
6891
static int set_bredr(struct sock *sk, struct hci_dev *hdev, void *data, u16 len)
net/bluetooth/mgmt.c
7041
static int set_secure_conn(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
7122
static int set_debug_keys(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
7169
static int set_privacy(struct sock *sk, struct hci_dev *hdev, void *cp_data,
net/bluetooth/mgmt.c
7242
static int load_irks(struct sock *sk, struct hci_dev *hdev, void *cp_data,
net/bluetooth/mgmt.c
7335
static int load_long_term_keys(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
7504
static int get_conn_info(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt.c
7657
static int get_clock_info(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt.c
7721
static void device_added(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
7764
static int add_device(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
7876
static void device_removed(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
7892
static int remove_device(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
8050
static int load_conn_param(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt.c
8173
static int set_external_config(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
8229
static int set_public_address(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
8401
static int read_local_ssp_oob_req(struct hci_dev *hdev, struct sock *sk,
net/bluetooth/mgmt.c
8423
static int read_local_oob_ext_data(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
8621
static int read_adv_features(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
8795
static void add_adv_complete(struct hci_dev *hdev, struct sock *sk, u8 instance,
net/bluetooth/mgmt.c
8857
static int add_advertising(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
9050
static int add_ext_adv_params(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
9209
static int add_ext_adv_data(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt.c
9373
static int remove_advertising(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
9421
static int get_adv_size_info(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
9976
struct sock *sk = NULL;
net/bluetooth/mgmt_config.c
143
int set_def_system_config(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt_config.c
351
int read_def_runtime_config(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt_config.c
360
int set_def_runtime_config(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt_config.c
56
int read_def_system_config(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt_config.h
10
int set_def_system_config(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt_config.h
13
int read_def_runtime_config(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt_config.h
16
int set_def_runtime_config(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt_config.h
7
int read_def_system_config(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt_util.c
109
void *data, u16 data_len, int flag, struct sock *skip_sk)
net/bluetooth/mgmt_util.c
123
int mgmt_cmd_status(struct sock *sk, u16 index, u16 cmd, u8 status)
net/bluetooth/mgmt_util.c
166
int mgmt_cmd_complete(struct sock *sk, u16 index, u16 cmd, u8 status,
net/bluetooth/mgmt_util.c
260
struct mgmt_pending_cmd *mgmt_pending_new(struct sock *sk, u16 opcode,
net/bluetooth/mgmt_util.c
287
struct mgmt_pending_cmd *mgmt_pending_add(struct sock *sk, u16 opcode,
net/bluetooth/mgmt_util.c
368
void *data, struct sock *sk)
net/bluetooth/mgmt_util.c
378
struct mgmt_mesh_tx *mgmt_mesh_next(struct hci_dev *hdev, struct sock *sk)
net/bluetooth/mgmt_util.c
408
struct mgmt_mesh_tx *mgmt_mesh_add(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt_util.c
73
struct sock *skip_sk)
net/bluetooth/mgmt_util.h
24
struct sock *sk;
net/bluetooth/mgmt_util.h
36
struct sock *sk;
net/bluetooth/mgmt_util.h
45
struct sock *skip_sk);
net/bluetooth/mgmt_util.h
47
void *data, u16 data_len, int flag, struct sock *skip_sk);
net/bluetooth/mgmt_util.h
48
int mgmt_cmd_status(struct sock *sk, u16 index, u16 cmd, u8 status);
net/bluetooth/mgmt_util.h
49
int mgmt_cmd_complete(struct sock *sk, u16 index, u16 cmd, u8 status,
net/bluetooth/mgmt_util.h
57
struct mgmt_pending_cmd *mgmt_pending_add(struct sock *sk, u16 opcode,
net/bluetooth/mgmt_util.h
60
struct mgmt_pending_cmd *mgmt_pending_new(struct sock *sk, u16 opcode,
net/bluetooth/mgmt_util.h
70
void *data, struct sock *sk);
net/bluetooth/mgmt_util.h
72
struct mgmt_mesh_tx *mgmt_mesh_next(struct hci_dev *hdev, struct sock *sk);
net/bluetooth/mgmt_util.h
73
struct mgmt_mesh_tx *mgmt_mesh_add(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/rfcomm/core.c
1148
struct socket *sock = s->sock;
net/bluetooth/rfcomm/core.c
1175
return kernel_sendmsg(sock, &msg, iv, 3, 6 + len);
net/bluetooth/rfcomm/core.c
1336
struct sock *sk = d->session->sock->sk;
net/bluetooth/rfcomm/core.c
180
static void rfcomm_l2state_change(struct sock *sk)
net/bluetooth/rfcomm/core.c
186
static void rfcomm_l2data_ready(struct sock *sk)
net/bluetooth/rfcomm/core.c
194
static int rfcomm_l2sock_create(struct socket **sock)
net/bluetooth/rfcomm/core.c
1988
struct socket *sock = s->sock;
net/bluetooth/rfcomm/core.c
1989
struct sock *sk = sock->sk;
net/bluetooth/rfcomm/core.c
200
err = sock_create_kern(&init_net, PF_BLUETOOTH, SOCK_SEQPACKET, BTPROTO_L2CAP, sock);
net/bluetooth/rfcomm/core.c
2014
struct socket *sock = s->sock, *nsock;
net/bluetooth/rfcomm/core.c
202
struct sock *sk = (*sock)->sk;
net/bluetooth/rfcomm/core.c
2020
if (list_empty(&bt_sk(sock->sk)->accept_q))
net/bluetooth/rfcomm/core.c
2025
err = kernel_accept(sock, &nsock, O_NONBLOCK);
net/bluetooth/rfcomm/core.c
2047
struct sock *sk = s->sock->sk;
net/bluetooth/rfcomm/core.c
2106
struct socket *sock;
net/bluetooth/rfcomm/core.c
2107
struct sock *sk;
net/bluetooth/rfcomm/core.c
211
struct sock *sk = d->session->sock->sk;
net/bluetooth/rfcomm/core.c
2112
err = rfcomm_l2sock_create(&sock);
net/bluetooth/rfcomm/core.c
2124
err = kernel_bind(sock, (struct sockaddr_unsized *)&addr, sizeof(addr));
net/bluetooth/rfcomm/core.c
2131
sk = sock->sk;
net/bluetooth/rfcomm/core.c
2138
err = kernel_listen(sock, 10);
net/bluetooth/rfcomm/core.c
2145
s = rfcomm_session_add(sock, BT_LISTEN);
net/bluetooth/rfcomm/core.c
2153
sock_release(sock);
net/bluetooth/rfcomm/core.c
2247
struct l2cap_chan *chan = l2cap_pi(s->sock->sk)->chan;
net/bluetooth/rfcomm/core.c
678
static struct rfcomm_session *rfcomm_session_add(struct socket *sock, int state)
net/bluetooth/rfcomm/core.c
685
BT_DBG("session %p sock %p", s, sock);
net/bluetooth/rfcomm/core.c
691
s->sock = sock;
net/bluetooth/rfcomm/core.c
718
sock_release(s->sock);
net/bluetooth/rfcomm/core.c
732
chan = l2cap_pi(s->sock->sk)->chan;
net/bluetooth/rfcomm/core.c
767
struct socket *sock;
net/bluetooth/rfcomm/core.c
768
struct sock *sk;
net/bluetooth/rfcomm/core.c
772
*err = rfcomm_l2sock_create(&sock);
net/bluetooth/rfcomm/core.c
781
*err = kernel_bind(sock, (struct sockaddr_unsized *)&addr, sizeof(addr));
net/bluetooth/rfcomm/core.c
786
sk = sock->sk;
net/bluetooth/rfcomm/core.c
795
s = rfcomm_session_add(sock, BT_BOUND);
net/bluetooth/rfcomm/core.c
808
*err = kernel_connect(sock, (struct sockaddr_unsized *)&addr, sizeof(addr), O_NONBLOCK);
net/bluetooth/rfcomm/core.c
815
sock_release(sock);
net/bluetooth/rfcomm/core.c
821
struct l2cap_chan *chan = l2cap_pi(s->sock->sk)->chan;
net/bluetooth/rfcomm/core.c
838
return kernel_sendmsg(s->sock, &msg, &iv, 1, len);
net/bluetooth/rfcomm/sock.c
1011
struct sock *sk;
net/bluetooth/rfcomm/sock.c
104
static struct sock *__rfcomm_get_listen_sock_by_addr(u8 channel, bdaddr_t *src)
net/bluetooth/rfcomm/sock.c
106
struct sock *sk = NULL;
net/bluetooth/rfcomm/sock.c
125
static struct sock *rfcomm_get_sock_by_channel(int state, u8 channel, bdaddr_t *src)
net/bluetooth/rfcomm/sock.c
127
struct sock *sk = NULL, *sk1 = NULL;
net/bluetooth/rfcomm/sock.c
161
static void rfcomm_sock_destruct(struct sock *sk)
net/bluetooth/rfcomm/sock.c
181
static void rfcomm_sock_cleanup_listen(struct sock *parent)
net/bluetooth/rfcomm/sock.c
183
struct sock *sk;
net/bluetooth/rfcomm/sock.c
202
static void rfcomm_sock_kill(struct sock *sk)
net/bluetooth/rfcomm/sock.c
215
static void __rfcomm_sock_close(struct sock *sk)
net/bluetooth/rfcomm/sock.c
242
static void rfcomm_sock_close(struct sock *sk)
net/bluetooth/rfcomm/sock.c
249
static void rfcomm_sock_init(struct sock *sk, struct sock *parent)
net/bluetooth/rfcomm/sock.c
281
static struct sock *rfcomm_sock_alloc(struct net *net, struct socket *sock,
net/bluetooth/rfcomm/sock.c
285
struct sock *sk;
net/bluetooth/rfcomm/sock.c
291
sk = bt_sock_alloc(net, sock, &rfcomm_proto, proto, prio, kern);
net/bluetooth/rfcomm/sock.c
315
static int rfcomm_sock_create(struct net *net, struct socket *sock,
net/bluetooth/rfcomm/sock.c
318
struct sock *sk;
net/bluetooth/rfcomm/sock.c
320
BT_DBG("sock %p", sock);
net/bluetooth/rfcomm/sock.c
322
sock->state = SS_UNCONNECTED;
net/bluetooth/rfcomm/sock.c
324
if (sock->type != SOCK_STREAM && sock->type != SOCK_RAW)
net/bluetooth/rfcomm/sock.c
327
sock->ops = &rfcomm_sock_ops;
net/bluetooth/rfcomm/sock.c
329
sk = rfcomm_sock_alloc(net, sock, protocol, GFP_ATOMIC, kern);
net/bluetooth/rfcomm/sock.c
337
static int rfcomm_sock_bind(struct socket *sock, struct sockaddr_unsized *addr, int addr_len)
net/bluetooth/rfcomm/sock.c
340
struct sock *sk = sock->sk;
net/bluetooth/rfcomm/sock.c
384
static int rfcomm_sock_connect(struct socket *sock, struct sockaddr_unsized *addr,
net/bluetooth/rfcomm/sock.c
388
struct sock *sk = sock->sk;
net/bluetooth/rfcomm/sock.c
41
static void rfcomm_sock_close(struct sock *sk);
net/bluetooth/rfcomm/sock.c
42
static void rfcomm_sock_kill(struct sock *sk);
net/bluetooth/rfcomm/sock.c
433
static int rfcomm_sock_listen(struct socket *sock, int backlog)
net/bluetooth/rfcomm/sock.c
435
struct sock *sk = sock->sk;
net/bluetooth/rfcomm/sock.c
482
static int rfcomm_sock_accept(struct socket *sock, struct socket *newsock,
net/bluetooth/rfcomm/sock.c
486
struct sock *sk = sock->sk, *nsk;
net/bluetooth/rfcomm/sock.c
50
struct sock *sk = d->owner;
net/bluetooth/rfcomm/sock.c
548
static int rfcomm_sock_getname(struct socket *sock, struct sockaddr *addr, int peer)
net/bluetooth/rfcomm/sock.c
551
struct sock *sk = sock->sk;
net/bluetooth/rfcomm/sock.c
553
BT_DBG("sock %p, sk %p", sock, sk);
net/bluetooth/rfcomm/sock.c
570
static int rfcomm_sock_sendmsg(struct socket *sock, struct msghdr *msg,
net/bluetooth/rfcomm/sock.c
573
struct sock *sk = sock->sk;
net/bluetooth/rfcomm/sock.c
587
BT_DBG("sock %p, sk %p", sock, sk);
net/bluetooth/rfcomm/sock.c
610
static int rfcomm_sock_recvmsg(struct socket *sock, struct msghdr *msg,
net/bluetooth/rfcomm/sock.c
613
struct sock *sk = sock->sk;
net/bluetooth/rfcomm/sock.c
622
len = bt_sock_stream_recvmsg(sock, msg, size, flags);
net/bluetooth/rfcomm/sock.c
635
static int rfcomm_sock_setsockopt_old(struct socket *sock, int optname,
net/bluetooth/rfcomm/sock.c
638
struct sock *sk = sock->sk;
net/bluetooth/rfcomm/sock.c
64
struct sock *sk = d->owner, *parent;
net/bluetooth/rfcomm/sock.c
676
static int rfcomm_sock_setsockopt(struct socket *sock, int level, int optname,
net/bluetooth/rfcomm/sock.c
679
struct sock *sk = sock->sk;
net/bluetooth/rfcomm/sock.c
687
return rfcomm_sock_setsockopt_old(sock, optname, optval, optlen);
net/bluetooth/rfcomm/sock.c
741
static int rfcomm_sock_getsockopt_old(struct socket *sock, int optname,
net/bluetooth/rfcomm/sock.c
744
struct sock *sk = sock->sk;
net/bluetooth/rfcomm/sock.c
745
struct sock *l2cap_sk;
net/bluetooth/rfcomm/sock.c
796
l2cap_sk = rfcomm_pi(sk)->dlc->session->sock->sk;
net/bluetooth/rfcomm/sock.c
818
static int rfcomm_sock_getsockopt(struct socket *sock, int level, int optname,
net/bluetooth/rfcomm/sock.c
821
struct sock *sk = sock->sk;
net/bluetooth/rfcomm/sock.c
830
return rfcomm_sock_getsockopt_old(sock, optname, sopt);
net/bluetooth/rfcomm/sock.c
877
static int rfcomm_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
net/bluetooth/rfcomm/sock.c
879
struct sock *sk __maybe_unused = sock->sk;
net/bluetooth/rfcomm/sock.c
884
err = bt_sock_ioctl(sock, cmd, arg);
net/bluetooth/rfcomm/sock.c
898
static int rfcomm_sock_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
net/bluetooth/rfcomm/sock.c
900
return rfcomm_sock_ioctl(sock, cmd, (unsigned long)compat_ptr(arg));
net/bluetooth/rfcomm/sock.c
904
static int rfcomm_sock_shutdown(struct socket *sock, int how)
net/bluetooth/rfcomm/sock.c
906
struct sock *sk = sock->sk;
net/bluetooth/rfcomm/sock.c
909
BT_DBG("sock %p, sk %p", sock, sk);
net/bluetooth/rfcomm/sock.c
930
static int rfcomm_sock_release(struct socket *sock)
net/bluetooth/rfcomm/sock.c
932
struct sock *sk = sock->sk;
net/bluetooth/rfcomm/sock.c
935
BT_DBG("sock %p, sk %p", sock, sk);
net/bluetooth/rfcomm/sock.c
940
err = rfcomm_sock_shutdown(sock, 2);
net/bluetooth/rfcomm/sock.c
953
struct sock *sk, *parent;
net/bluetooth/rfcomm/tty.c
277
struct sock *sk = dlc->owner;
net/bluetooth/rfcomm/tty.c
388
static int __rfcomm_create_dev(struct sock *sk, void __user *arg)
net/bluetooth/rfcomm/tty.c
472
static int rfcomm_create_dev(struct sock *sk, void __user *arg)
net/bluetooth/rfcomm/tty.c
570
int rfcomm_dev_ioctl(struct sock *sk, unsigned int cmd, void __user *arg)
net/bluetooth/sco.c
1106
static int sco_sock_getsockopt_old(struct socket *sock, int optname,
net/bluetooth/sco.c
1109
struct sock *sk = sock->sk;
net/bluetooth/sco.c
1167
static int sco_sock_getsockopt(struct socket *sock, int level, int optname,
net/bluetooth/sco.c
1170
struct sock *sk = sock->sk;
net/bluetooth/sco.c
1184
return sco_sock_getsockopt_old(sock, optname, opt);
net/bluetooth/sco.c
129
static struct sock *sco_sock_hold(struct sco_conn *conn)
net/bluetooth/sco.c
1352
static int sco_sock_shutdown(struct socket *sock, int how)
net/bluetooth/sco.c
1354
struct sock *sk = sock->sk;
net/bluetooth/sco.c
1357
BT_DBG("sock %p, sk %p", sock, sk);
net/bluetooth/sco.c
1382
static int sco_sock_release(struct socket *sock)
net/bluetooth/sco.c
1384
struct sock *sk = sock->sk;
net/bluetooth/sco.c
1387
BT_DBG("sock %p, sk %p", sock, sk);
net/bluetooth/sco.c
1408
struct sock *parent, *sk;
net/bluetooth/sco.c
143
struct sock *sk;
net/bluetooth/sco.c
1479
struct sock *sk;
net/bluetooth/sco.c
1578
struct sock *sk;
net/bluetooth/sco.c
171
static void sco_sock_set_timer(struct sock *sk, long timeout)
net/bluetooth/sco.c
181
static void sco_sock_clear_timer(struct sock *sk)
net/bluetooth/sco.c
235
static void sco_chan_del(struct sock *sk, int err)
net/bluetooth/sco.c
261
struct sock *sk;
net/bluetooth/sco.c
285
static void __sco_chan_add(struct sco_conn *conn, struct sock *sk,
net/bluetooth/sco.c
286
struct sock *parent)
net/bluetooth/sco.c
297
static int sco_chan_add(struct sco_conn *conn, struct sock *sk,
net/bluetooth/sco.c
298
struct sock *parent)
net/bluetooth/sco.c
312
static int sco_connect(struct sock *sk)
net/bluetooth/sco.c
404
static int sco_send_frame(struct sock *sk, struct sk_buff *skb,
net/bluetooth/sco.c
424
struct sock *sk;
net/bluetooth/sco.c
450
static struct sock *__sco_get_sock_listen_by_addr(bdaddr_t *ba)
net/bluetooth/sco.c
452
struct sock *sk;
net/bluetooth/sco.c
468
static struct sock *sco_get_sock_listen(bdaddr_t *src)
net/bluetooth/sco.c
47
struct sock *sk;
net/bluetooth/sco.c
470
struct sock *sk = NULL, *sk1 = NULL;
net/bluetooth/sco.c
496
static void sco_sock_destruct(struct sock *sk)
net/bluetooth/sco.c
507
static void sco_sock_cleanup_listen(struct sock *parent)
net/bluetooth/sco.c
509
struct sock *sk;
net/bluetooth/sco.c
528
static void sco_sock_kill(struct sock *sk)
net/bluetooth/sco.c
550
static void __sco_sock_close(struct sock *sk)
net/bluetooth/sco.c
575
static void sco_sock_close(struct sock *sk)
net/bluetooth/sco.c
58
static void sco_sock_close(struct sock *sk);
net/bluetooth/sco.c
59
static void sco_sock_kill(struct sock *sk);
net/bluetooth/sco.c
596
static void sco_sock_init(struct sock *sk, struct sock *parent)
net/bluetooth/sco.c
613
static struct sock *sco_sock_alloc(struct net *net, struct socket *sock,
net/bluetooth/sco.c
616
struct sock *sk;
net/bluetooth/sco.c
618
sk = bt_sock_alloc(net, sock, &sco_proto, proto, prio, kern);
net/bluetooth/sco.c
635
static int sco_sock_create(struct net *net, struct socket *sock, int protocol,
net/bluetooth/sco.c
638
struct sock *sk;
net/bluetooth/sco.c
640
BT_DBG("sock %p", sock);
net/bluetooth/sco.c
642
sock->state = SS_UNCONNECTED;
net/bluetooth/sco.c
644
if (sock->type != SOCK_SEQPACKET)
net/bluetooth/sco.c
647
sock->ops = &sco_sock_ops;
net/bluetooth/sco.c
649
sk = sco_sock_alloc(net, sock, protocol, GFP_ATOMIC, kern);
net/bluetooth/sco.c
657
static int sco_sock_bind(struct socket *sock, struct sockaddr_unsized *addr,
net/bluetooth/sco.c
661
struct sock *sk = sock->sk;
net/bluetooth/sco.c
691
static int sco_sock_connect(struct socket *sock, struct sockaddr_unsized *addr, int alen, int flags)
net/bluetooth/sco.c
694
struct sock *sk = sock->sk;
net/bluetooth/sco.c
732
static int sco_sock_listen(struct socket *sock, int backlog)
net/bluetooth/sco.c
734
struct sock *sk = sock->sk;
net/bluetooth/sco.c
772
static int sco_sock_accept(struct socket *sock, struct socket *newsock,
net/bluetooth/sco.c
776
struct sock *sk = sock->sk, *ch;
net/bluetooth/sco.c
832
static int sco_sock_getname(struct socket *sock, struct sockaddr *addr,
net/bluetooth/sco.c
836
struct sock *sk = sock->sk;
net/bluetooth/sco.c
838
BT_DBG("sock %p, sk %p", sock, sk);
net/bluetooth/sco.c
850
static int sco_sock_sendmsg(struct socket *sock, struct msghdr *msg,
net/bluetooth/sco.c
853
struct sock *sk = sock->sk;
net/bluetooth/sco.c
858
BT_DBG("sock %p, sk %p", sock, sk);
net/bluetooth/sco.c
942
static int sco_sock_recvmsg(struct socket *sock, struct msghdr *msg,
net/bluetooth/sco.c
945
struct sock *sk = sock->sk;
net/bluetooth/sco.c
965
return bt_sock_recvmsg(sock, msg, len, flags);
net/bluetooth/sco.c
968
static int sco_sock_setsockopt(struct socket *sock, int level, int optname,
net/bluetooth/sco.c
971
struct sock *sk = sock->sk;
net/bpf/test_run.c
1032
.obj_size = sizeof(struct sock),
net/bpf/test_run.c
1047
struct sock *sk = NULL;
net/bridge/br_forward.c
33
int br_dev_queue_push_xmit(struct net *net, struct sock *sk, struct sk_buff *skb)
net/bridge/br_forward.c
63
int br_forward_finish(struct net *net, struct sock *sk, struct sk_buff *skb)
net/bridge/br_input.c
259
static int br_handle_local_finish(struct net *net, struct sock *sk, struct sk_buff *skb)
net/bridge/br_input.c
27
br_netif_receive_skb(struct net *net, struct sock *sk, struct sk_buff *skb)
net/bridge/br_input.c
76
int br_handle_frame_finish(struct net *net, struct sock *sk, struct sk_buff *skb)
net/bridge/br_netfilter_hooks.c
1124
struct sock *sk, struct sk_buff *skb,
net/bridge/br_netfilter_hooks.c
1127
int (*okfn)(struct net *, struct sock *,
net/bridge/br_netfilter_hooks.c
276
int br_nf_pre_routing_finish_bridge(struct net *net, struct sock *sk, struct sk_buff *skb)
net/bridge/br_netfilter_hooks.c
376
static int br_nf_pre_routing_finish(struct net *net, struct sock *sk, struct sk_buff *skb)
net/bridge/br_netfilter_hooks.c
639
static int br_nf_forward_finish(struct net *net, struct sock *sk, struct sk_buff *skb)
net/bridge/br_netfilter_hooks.c
785
static int br_nf_push_frag_xmit(struct net *net, struct sock *sk, struct sk_buff *skb)
net/bridge/br_netfilter_hooks.c
809
br_nf_ip_fragment(struct net *net, struct sock *sk, struct sk_buff *skb,
net/bridge/br_netfilter_hooks.c
810
int (*output)(struct net *, struct sock *, struct sk_buff *))
net/bridge/br_netfilter_hooks.c
835
static int br_nf_dev_queue_xmit(struct net *net, struct sock *sk, struct sk_buff *skb)
net/bridge/br_netfilter_ipv6.c
101
static int br_nf_pre_routing_finish_ipv6(struct net *net, struct sock *sk, struct sk_buff *skb)
net/bridge/br_nf_core.c
24
static void fake_update_pmtu(struct dst_entry *dst, struct sock *sk,
net/bridge/br_nf_core.c
30
static void fake_redirect(struct dst_entry *dst, struct sock *sk,
net/bridge/br_private.h
897
int br_dev_queue_push_xmit(struct net *net, struct sock *sk, struct sk_buff *skb);
net/bridge/br_private.h
900
int br_forward_finish(struct net *net, struct sock *sk, struct sk_buff *skb);
net/bridge/br_private.h
928
int br_handle_frame_finish(struct net *net, struct sock *sk, struct sk_buff *skb);
net/bridge/br_stp_bpdu.c
29
static int br_send_bpdu_finish(struct net *net, struct sock *sk,
net/bridge/netfilter/ebtables.c
2414
static int compat_do_ebt_get_ctl(struct sock *sk, int cmd,
net/bridge/netfilter/ebtables.c
2487
static int do_ebt_get_ctl(struct sock *sk, int cmd, void __user *user, int *len)
net/bridge/netfilter/ebtables.c
2555
static int do_ebt_set_ctl(struct sock *sk, int cmd, sockptr_t arg,
net/bridge/netfilter/nf_conntrack_bridge.c
26
static int nf_br_ip_fragment(struct net *net, struct sock *sk,
net/bridge/netfilter/nf_conntrack_bridge.c
29
int (*output)(struct net *, struct sock *sk,
net/bridge/netfilter/nf_conntrack_bridge.c
338
int (*output)(struct net *, struct sock *sk,
net/bridge/netfilter/nf_conntrack_bridge.c
385
static int nf_ct_bridge_refrag_post(struct net *net, struct sock *sk,
net/can/af_can.c
114
static int can_create(struct net *net, struct socket *sock, int protocol,
net/can/af_can.c
117
struct sock *sk;
net/can/af_can.c
121
sock->state = SS_UNCONNECTED;
net/can/af_can.c
151
if (cp->type != sock->type) {
net/can/af_can.c
156
sock->ops = cp->ops;
net/can/af_can.c
164
sock_init_data(sock, sk);
net/can/af_can.c
174
sock->sk = NULL;
net/can/af_can.c
446
void *data, char *ident, struct sock *sk)
net/can/af_can.c
494
struct sock *sk = rcv->sk;
net/can/af_can.c
89
void can_sock_destruct(struct sock *sk)
net/can/af_can.h
59
struct sock *sk;
net/can/bcm.c
1072
int ifindex, struct sock *sk)
net/can/bcm.c
130
struct sock *sk;
net/can/bcm.c
1315
int ifindex, struct sock *sk)
net/can/bcm.c
138
struct sock sk;
net/can/bcm.c
1602
static int bcm_tx_send(struct msghdr *msg, int ifindex, struct sock *sk,
net/can/bcm.c
163
static inline struct bcm_sock *bcm_sk(const struct sock *sk)
net/can/bcm.c
1651
static int bcm_sendmsg(struct socket *sock, struct msghdr *msg, size_t size)
net/can/bcm.c
1653
struct sock *sk = sock->sk;
net/can/bcm.c
1793
struct sock *sk = &bo->sk;
net/can/bcm.c
1891
static int bcm_init(struct sock *sk)
net/can/bcm.c
1914
static int bcm_release(struct socket *sock)
net/can/bcm.c
1916
struct sock *sk = sock->sk;
net/can/bcm.c
1990
sock->sk = NULL;
net/can/bcm.c
1999
static int bcm_connect(struct socket *sock, struct sockaddr_unsized *uaddr, int len,
net/can/bcm.c
2003
struct sock *sk = sock->sk;
net/can/bcm.c
2066
static int bcm_recvmsg(struct socket *sock, struct msghdr *msg, size_t size,
net/can/bcm.c
2069
struct sock *sk = sock->sk;
net/can/bcm.c
2103
static int bcm_sock_no_ioctlcmd(struct socket *sock, unsigned int cmd,
net/can/bcm.c
219
struct sock *sk = (struct sock *)pde_data(m->file->f_inode);
net/can/bcm.c
405
struct sock *sk = op->sk;
net/can/isotp.c
1043
struct sock *sk = &so->sk;
net/can/isotp.c
1104
static int isotp_sendmsg(struct socket *sock, struct msghdr *msg, size_t size)
net/can/isotp.c
1106
struct sock *sk = sock->sk;
net/can/isotp.c
1402
static int isotp_recvmsg(struct socket *sock, struct msghdr *msg, size_t size,
net/can/isotp.c
1405
struct sock *sk = sock->sk;
net/can/isotp.c
1446
static int isotp_release(struct socket *sock)
net/can/isotp.c
1448
struct sock *sk = sock->sk;
net/can/isotp.c
1525
sock->sk = NULL;
net/can/isotp.c
1534
static int isotp_bind(struct socket *sock, struct sockaddr_unsized *uaddr, int len)
net/can/isotp.c
1537
struct sock *sk = sock->sk;
net/can/isotp.c
161
struct sock sk;
net/can/isotp.c
1662
static int isotp_getname(struct socket *sock, struct sockaddr *uaddr, int peer)
net/can/isotp.c
1665
struct sock *sk = sock->sk;
net/can/isotp.c
1680
static int isotp_setsockopt_locked(struct socket *sock, int level, int optname,
net/can/isotp.c
1683
struct sock *sk = sock->sk;
net/can/isotp.c
1778
static int isotp_setsockopt(struct socket *sock, int level, int optname,
net/can/isotp.c
1782
struct sock *sk = sock->sk;
net/can/isotp.c
1789
ret = isotp_setsockopt_locked(sock, level, optname, optval, optlen);
net/can/isotp.c
1794
static int isotp_getsockopt(struct socket *sock, int level, int optname,
net/can/isotp.c
1797
struct sock *sk = sock->sk;
net/can/isotp.c
1849
struct sock *sk = &so->sk;
net/can/isotp.c
1914
static void isotp_sock_destruct(struct sock *sk)
net/can/isotp.c
1929
static int isotp_init(struct sock *sk)
net/can/isotp.c
1984
static __poll_t isotp_poll(struct file *file, struct socket *sock, poll_table *wait)
net/can/isotp.c
1986
struct sock *sk = sock->sk;
net/can/isotp.c
1989
__poll_t mask = datagram_poll(file, sock, wait);
net/can/isotp.c
1999
static int isotp_sock_no_ioctlcmd(struct socket *sock, unsigned int cmd,
net/can/isotp.c
249
static inline struct isotp_sock *isotp_sk(const struct sock *sk)
net/can/isotp.c
269
struct sock *sk = &so->sk;
net/can/isotp.c
286
static int isotp_send_fc(struct sock *sk, int ae, u8 flowstatus)
net/can/isotp.c
355
static void isotp_rcv_skb(struct sk_buff *skb, struct sock *sk)
net/can/isotp.c
443
struct sock *sk = &so->sk;
net/can/isotp.c
538
static int isotp_rcv_sf(struct sock *sk, struct canfd_frame *cf, int pcilen,
net/can/isotp.c
571
static int isotp_rcv_ff(struct sock *sk, struct canfd_frame *cf, int ae)
net/can/isotp.c
644
static int isotp_rcv_cf(struct sock *sk, struct canfd_frame *cf, int ae,
net/can/isotp.c
746
struct sock *sk = (struct sock *)data;
net/can/isotp.c
865
struct sock *sk = &so->sk;
net/can/isotp.c
970
struct sock *sk = (struct sock *)data;
net/can/j1939/j1939-priv.h
189
void j1939_sk_send_loop_abort(struct sock *sk, int err);
net/can/j1939/j1939-priv.h
218
int j1939_cancel_active_session(struct j1939_priv *priv, struct sock *sk);
net/can/j1939/j1939-priv.h
222
void j1939_sock_pending_del(struct sock *sk);
net/can/j1939/j1939-priv.h
239
struct sock *sk;
net/can/j1939/j1939-priv.h
296
struct sock sk; /* must be first to skip with memset */
net/can/j1939/j1939-priv.h
325
static inline struct j1939_sock *j1939_sk(const struct sock *sk)
net/can/j1939/socket.c
1001
static void __j1939_sk_errqueue(struct j1939_session *session, struct sock *sk,
net/can/j1939/socket.c
1123
void j1939_sk_send_loop_abort(struct sock *sk, int err)
net/can/j1939/socket.c
1135
static int j1939_sk_send_loop(struct j1939_priv *priv, struct sock *sk,
net/can/j1939/socket.c
1229
static int j1939_sk_sendmsg(struct socket *sock, struct msghdr *msg,
net/can/j1939/socket.c
1232
struct sock *sk = sock->sk;
net/can/j1939/socket.c
1238
lock_sock(sock->sk);
net/can/j1939/socket.c
1298
release_sock(sock->sk);
net/can/j1939/socket.c
1321
struct sock *sk;
net/can/j1939/socket.c
1368
static int j1939_sk_no_ioctlcmd(struct socket *sock, unsigned int cmd,
net/can/j1939/socket.c
368
static void j1939_sk_sock_destruct(struct sock *sk)
net/can/j1939/socket.c
396
static int j1939_sk_init(struct sock *sk)
net/can/j1939/socket.c
445
static int j1939_sk_bind(struct socket *sock, struct sockaddr_unsized *uaddr, int len)
net/can/j1939/socket.c
448
struct j1939_sock *jsk = j1939_sk(sock->sk);
net/can/j1939/socket.c
450
struct sock *sk;
net/can/j1939/socket.c
458
lock_sock(sock->sk);
net/can/j1939/socket.c
461
sk = sock->sk;
net/can/j1939/socket.c
541
release_sock(sock->sk);
net/can/j1939/socket.c
546
static int j1939_sk_connect(struct socket *sock, struct sockaddr_unsized *uaddr,
net/can/j1939/socket.c
550
struct j1939_sock *jsk = j1939_sk(sock->sk);
net/can/j1939/socket.c
557
lock_sock(sock->sk);
net/can/j1939/socket.c
56
static inline void j1939_sock_pending_add(struct sock *sk)
net/can/j1939/socket.c
588
release_sock(sock->sk);
net/can/j1939/socket.c
613
static int j1939_sk_getname(struct socket *sock, struct sockaddr *uaddr,
net/can/j1939/socket.c
617
struct sock *sk = sock->sk;
net/can/j1939/socket.c
63
static int j1939_sock_pending_get(struct sock *sk)
net/can/j1939/socket.c
637
static int j1939_sk_release(struct socket *sock)
net/can/j1939/socket.c
639
struct sock *sk = sock->sk;
net/can/j1939/socket.c
667
sock->sk = NULL;
net/can/j1939/socket.c
694
static int j1939_sk_setsockopt(struct socket *sock, int level, int optname,
net/can/j1939/socket.c
697
struct sock *sk = sock->sk;
net/can/j1939/socket.c
70
void j1939_sock_pending_del(struct sock *sk)
net/can/j1939/socket.c
769
static int j1939_sk_getsockopt(struct socket *sock, int level, int optname,
net/can/j1939/socket.c
772
struct sock *sk = sock->sk;
net/can/j1939/socket.c
820
static int j1939_sk_recvmsg(struct socket *sock, struct msghdr *msg,
net/can/j1939/socket.c
823
struct sock *sk = sock->sk;
net/can/j1939/socket.c
832
return sock_recv_errqueue(sock->sk, msg, size, SOL_CAN_J1939,
net/can/j1939/socket.c
882
struct sock *sk,
net/can/j1939/transport.c
2235
int j1939_cancel_active_session(struct j1939_priv *priv, struct sock *sk)
net/can/raw.c
1019
static int raw_recvmsg(struct socket *sock, struct msghdr *msg, size_t size,
net/can/raw.c
1022
struct sock *sk = sock->sk;
net/can/raw.c
1061
static int raw_sock_no_ioctlcmd(struct socket *sock, unsigned int cmd,
net/can/raw.c
124
static inline struct raw_sock *raw_sk(const struct sock *sk)
net/can/raw.c
131
struct sock *sk = (struct sock *)data;
net/can/raw.c
216
struct sock *sk, struct can_filter *filter,
net/can/raw.c
240
struct sock *sk, can_err_mask_t err_mask)
net/can/raw.c
252
struct sock *sk, struct can_filter *filter,
net/can/raw.c
264
struct sock *sk,
net/can/raw.c
275
struct sock *sk)
net/can/raw.c
284
struct sock *sk)
net/can/raw.c
303
struct sock *sk = &ro->sk;
net/can/raw.c
365
static void raw_sock_destruct(struct sock *sk)
net/can/raw.c
373
static int raw_init(struct sock *sk)
net/can/raw.c
409
static int raw_release(struct socket *sock)
net/can/raw.c
411
struct sock *sk = sock->sk;
net/can/raw.c
452
sock->sk = NULL;
net/can/raw.c
463
static int raw_bind(struct socket *sock, struct sockaddr_unsized *uaddr, int len)
net/can/raw.c
466
struct sock *sk = sock->sk;
net/can/raw.c
548
static int raw_getname(struct socket *sock, struct sockaddr *uaddr,
net/can/raw.c
552
struct sock *sk = sock->sk;
net/can/raw.c
565
static int raw_setsockopt_locked(struct socket *sock, int optname,
net/can/raw.c
568
struct sock *sk = sock->sk;
net/can/raw.c
746
static int raw_setsockopt(struct socket *sock, int level, int optname,
net/can/raw.c
749
struct sock *sk = sock->sk;
net/can/raw.c
758
err = raw_setsockopt_locked(sock, optname, optval, optlen);
net/can/raw.c
766
static int raw_getsockopt(struct socket *sock, int level, int optname,
net/can/raw.c
769
struct sock *sk = sock->sk;
net/can/raw.c
85
struct sock sk;
net/can/raw.c
918
static int raw_sendmsg(struct socket *sock, struct msghdr *msg, size_t size)
net/can/raw.c
920
struct sock *sk = sock->sk;
net/ceph/messenger.c
1566
BUG_ON(con->sock);
net/ceph/messenger.c
1571
BUG_ON(con->sock);
net/ceph/messenger.c
346
static void ceph_sock_data_ready(struct sock *sk)
net/ceph/messenger.c
364
static void ceph_sock_write_space(struct sock *sk)
net/ceph/messenger.c
387
static void ceph_sock_state_change(struct sock *sk)
net/ceph/messenger.c
417
static void set_sock_callbacks(struct socket *sock,
net/ceph/messenger.c
420
struct sock *sk = sock->sk;
net/ceph/messenger.c
438
struct socket *sock;
net/ceph/messenger.c
444
BUG_ON(con->sock);
net/ceph/messenger.c
449
SOCK_STREAM, IPPROTO_TCP, &sock);
net/ceph/messenger.c
453
sock->sk->sk_allocation = GFP_NOFS;
net/ceph/messenger.c
454
sock->sk->sk_use_task_frag = false;
net/ceph/messenger.c
457
lockdep_set_class(&sock->sk->sk_lock, &socket_class);
net/ceph/messenger.c
460
set_sock_callbacks(sock, con);
net/ceph/messenger.c
463
ret = kernel_connect(sock, (struct sockaddr_unsized *)&ss, sizeof(ss),
net/ceph/messenger.c
468
sock->sk->sk_state);
net/ceph/messenger.c
472
sock_release(sock);
net/ceph/messenger.c
477
tcp_sock_set_nodelay(sock->sk);
net/ceph/messenger.c
479
con->sock = sock;
net/ceph/messenger.c
490
dout("%s con %p sock %p\n", __func__, con, con->sock);
net/ceph/messenger.c
491
if (con->sock) {
net/ceph/messenger.c
492
rc = con->sock->ops->shutdown(con->sock, SHUT_RDWR);
net/ceph/messenger.c
493
sock_release(con->sock);
net/ceph/messenger.c
494
con->sock = NULL;
net/ceph/messenger_v1.c
1014
ret = ceph_tcp_recvpage(con->sock, rpage, (int)off, len);
net/ceph/messenger_v1.c
103
ret = sock_sendmsg(sock, &msg);
net/ceph/messenger_v1.c
1082
ret = ceph_tcp_recvpage(con->sock, page, page_offset, length);
net/ceph/messenger_v1.c
1124
ret = ceph_tcp_recvpage(con->sock, con->bounce_page, 0, len);
net/ceph/messenger_v1.c
1333
BUG_ON(!con->sock);
net/ceph/messenger_v1.c
1378
ret = ceph_tcp_recvmsg(con->sock, NULL, -con->v1.in_base_pos);
net/ceph/messenger_v1.c
1390
ret = ceph_tcp_recvmsg(con->sock, &con->v1.in_tag, 1);
net/ceph/messenger_v1.c
1483
BUG_ON(con->sock);
net/ceph/messenger_v1.c
1503
BUG_ON(!con->sock);
net/ceph/messenger_v1.c
24
static int ceph_tcp_recvmsg(struct socket *sock, void *buf, size_t len)
net/ceph/messenger_v1.c
34
r = sock_recvmsg(sock, &msg, msg.msg_flags);
net/ceph/messenger_v1.c
40
static int ceph_tcp_recvpage(struct socket *sock, struct page *page,
net/ceph/messenger_v1.c
423
ret = ceph_tcp_sendmsg(con->sock, con->v1.out_kvec_cur,
net/ceph/messenger_v1.c
494
ret = ceph_tcp_sendpage(con->sock, page, page_offset, length,
net/ceph/messenger_v1.c
50
r = sock_recvmsg(sock, &msg, msg.msg_flags);
net/ceph/messenger_v1.c
531
ret = ceph_tcp_sendpage(con->sock, ceph_zero_page, 0, size,
net/ceph/messenger_v1.c
60
static int ceph_tcp_sendmsg(struct socket *sock, struct kvec *iov,
net/ceph/messenger_v1.c
601
int ret = ceph_tcp_recvmsg(con->sock, object + have, left);
net/ceph/messenger_v1.c
71
r = kernel_sendmsg(sock, &msg, iov, kvlen, len);
net/ceph/messenger_v1.c
80
static int ceph_tcp_sendpage(struct socket *sock, struct page *page,
net/ceph/messenger_v1.c
971
ret = ceph_tcp_recvmsg(con->sock, (char *)section->iov_base +
net/ceph/messenger_v2.c
115
ret = do_recvmsg(con->sock, &con->v2.in_iter);
net/ceph/messenger_v2.c
121
static int do_sendmsg(struct socket *sock, struct iov_iter *it)
net/ceph/messenger_v2.c
128
ret = sock_sendmsg(sock, &msg);
net/ceph/messenger_v2.c
142
static int do_try_sendpage(struct socket *sock, struct iov_iter *it)
net/ceph/messenger_v2.c
173
ret = sock_sendmsg(sock, &msg);
net/ceph/messenger_v2.c
202
ret = do_try_sendpage(con->sock, &con->v2.out_iter);
net/ceph/messenger_v2.c
204
ret = do_sendmsg(con->sock, &con->v2.out_iter);
net/ceph/messenger_v2.c
3406
tcp_sock_set_cork(con->sock->sk, true);
net/ceph/messenger_v2.c
3420
tcp_sock_set_cork(con->sock->sk, false);
net/ceph/messenger_v2.c
79
static int do_recvmsg(struct socket *sock, struct iov_iter *it)
net/ceph/messenger_v2.c
86
ret = sock_recvmsg(sock, &msg, msg.msg_flags);
net/compat.c
138
int cmsghdr_from_user_compat_to_kern(struct msghdr *kmsg, struct sock *sk,
net/core/bpf_sk_storage.c
101
struct socket *sock;
net/core/bpf_sk_storage.c
105
sock = sockfd_lookup(fd, &err);
net/core/bpf_sk_storage.c
106
if (sock) {
net/core/bpf_sk_storage.c
108
sock->sk, (struct bpf_local_storage_map *)map, value,
net/core/bpf_sk_storage.c
110
sockfd_put(sock);
net/core/bpf_sk_storage.c
119
struct socket *sock;
net/core/bpf_sk_storage.c
123
sock = sockfd_lookup(fd, &err);
net/core/bpf_sk_storage.c
124
if (sock) {
net/core/bpf_sk_storage.c
125
err = bpf_sk_storage_del(sock->sk, map);
net/core/bpf_sk_storage.c
126
sockfd_put(sock);
net/core/bpf_sk_storage.c
134
bpf_sk_storage_clone_elem(struct sock *newsk,
net/core/bpf_sk_storage.c
154
int bpf_sk_storage_clone(const struct sock *sk, struct sock *newsk)
net/core/bpf_sk_storage.c
21
bpf_sk_storage_lookup(struct sock *sk, struct bpf_map *map, bool cacheit_lockit)
net/core/bpf_sk_storage.c
228
BPF_CALL_4(bpf_sk_storage_get, struct bpf_map *, map, struct sock *, sk,
net/core/bpf_sk_storage.c
262
BPF_CALL_2(bpf_sk_storage_delete, struct bpf_map *, map, struct sock *, sk)
net/core/bpf_sk_storage.c
282
struct sock *sk = (struct sock *)owner;
net/core/bpf_sk_storage.c
299
struct sock *sk = owner;
net/core/bpf_sk_storage.c
307
struct sock *sk = owner;
net/core/bpf_sk_storage.c
35
static int bpf_sk_storage_del(struct sock *sk, struct bpf_map *map)
net/core/bpf_sk_storage.c
383
BPF_CALL_4(bpf_sk_storage_get_tracing, struct bpf_map *, map, struct sock *, sk,
net/core/bpf_sk_storage.c
394
struct sock *, sk)
net/core/bpf_sk_storage.c
47
void bpf_sk_storage_free(struct sock *sk)
net/core/bpf_sk_storage.c
568
static int bpf_sk_storage_diag_put_all(struct sock *sk, struct sk_buff *skb,
net/core/bpf_sk_storage.c
625
struct sock *sk, struct sk_buff *skb,
net/core/bpf_sk_storage.c
784
__bpf_md_ptr(struct sock *, sk);
net/core/bpf_sk_storage.c
789
struct bpf_map *map, struct sock *sk,
net/core/bpf_sk_storage.c
83
struct socket *sock;
net/core/bpf_sk_storage.c
87
sock = sockfd_lookup(fd, &err);
net/core/bpf_sk_storage.c
88
if (sock) {
net/core/bpf_sk_storage.c
89
sdata = bpf_sk_storage_lookup(sock->sk, map, true);
net/core/bpf_sk_storage.c
90
sockfd_put(sock);
net/core/datagram.c
1000
__poll_t datagram_poll(struct file *file, struct socket *sock, poll_table *wait)
net/core/datagram.c
1002
return datagram_poll_queue(file, sock, wait,
net/core/datagram.c
1003
&sock->sk->sk_receive_queue);
net/core/datagram.c
242
struct sk_buff *__skb_try_recv_datagram(struct sock *sk,
net/core/datagram.c
287
struct sk_buff *__skb_recv_datagram(struct sock *sk,
net/core/datagram.c
312
struct sk_buff *skb_recv_datagram(struct sock *sk, unsigned int flags,
net/core/datagram.c
322
void skb_free_datagram(struct sock *sk, struct sk_buff *skb)
net/core/datagram.c
328
int __sk_queue_drop_skb(struct sock *sk, struct sk_buff_head *sk_queue,
net/core/datagram.c
330
void (*destructor)(struct sock *sk,
net/core/datagram.c
374
int skb_kill_datagram(struct sock *sk, struct sk_buff *skb, unsigned int flags)
net/core/datagram.c
71
static inline int connection_based(struct sock *sk)
net/core/datagram.c
746
int __zerocopy_sg_from_iter(struct msghdr *msg, struct sock *sk,
net/core/datagram.c
89
int __skb_wait_for_more_packets(struct sock *sk, struct sk_buff_head *queue,
net/core/datagram.c
937
__poll_t datagram_poll_queue(struct file *file, struct socket *sock,
net/core/datagram.c
940
struct sock *sk = sock->sk;
net/core/datagram.c
944
sock_poll_wait(file, sock, wait);
net/core/dev.c
2521
else if ((struct sock *)ptype->af_packet_priv == skb->sk)
net/core/dev.c
3967
struct sk_buff *(*sk_validate)(struct sock *sk, struct net_device *dev,
net/core/dev.c
3969
struct sock *sk = skb->sk;
net/core/dev.c
4314
const struct sock *sk;
net/core/dev.c
4341
int dev_loopback_xmit(struct net *net, struct sock *sk, struct sk_buff *skb)
net/core/dev.c
4626
struct sock *sk = skb->sk;
net/core/dev.c
4670
int sk_tx_queue_get(const struct sock *sk)
net/core/dev.c
4699
struct sock *sk = skb->sk;
net/core/dev.c
9441
struct sock *sk)
net/core/dev.c
9459
struct sock *sk)
net/core/devmem.c
377
struct net_devmem_dmabuf_binding *net_devmem_get_binding(struct sock *sk,
net/core/devmem.h
152
net_devmem_get_binding(struct sock *sk, unsigned int dmabuf_id);
net/core/devmem.h
224
net_devmem_get_binding(struct sock *sk, unsigned int dmabuf_id)
net/core/drop_monitor.c
113
const struct sock *rx_sk);
net/core/drop_monitor.c
269
const struct sock *rx_sk)
net/core/drop_monitor.c
496
const struct sock *rx_sk)
net/core/dst.c
250
void dst_blackhole_update_pmtu(struct dst_entry *dst, struct sock *sk,
net/core/dst.c
257
void dst_blackhole_redirect(struct dst_entry *dst, struct sock *sk,
net/core/dst.c
30
int dst_discard_out(struct net *net, struct sock *sk, struct sk_buff *skb)
net/core/filter.c
10255
BUILD_BUG_ON(sizeof_field(struct sock, sk_bound_dev_if) != 4);
net/core/filter.c
10259
offsetof(struct sock, sk_bound_dev_if));
net/core/filter.c
10262
offsetof(struct sock, sk_bound_dev_if));
net/core/filter.c
10266
BUILD_BUG_ON(sizeof_field(struct sock, sk_mark) != 4);
net/core/filter.c
10270
offsetof(struct sock, sk_mark));
net/core/filter.c
10273
offsetof(struct sock, sk_mark));
net/core/filter.c
10277
BUILD_BUG_ON(sizeof_field(struct sock, sk_priority) != 4);
net/core/filter.c
10281
offsetof(struct sock, sk_priority));
net/core/filter.c
10284
offsetof(struct sock, sk_priority));
net/core/filter.c
10300
BPF_FIELD_SIZEOF(struct sock, sk_type),
net/core/filter.c
10302
bpf_target_off(struct sock, sk_type,
net/core/filter.c
10303
sizeof_field(struct sock, sk_type),
net/core/filter.c
10309
BPF_FIELD_SIZEOF(struct sock, sk_protocol),
net/core/filter.c
10311
bpf_target_off(struct sock, sk_protocol,
net/core/filter.c
10312
sizeof_field(struct sock, sk_protocol),
net/core/filter.c
10401
BPF_FIELD_SIZEOF(struct sock, sk_rx_queue_mapping),
net/core/filter.c
10403
bpf_target_off(struct sock, sk_rx_queue_mapping,
net/core/filter.c
10404
sizeof_field(struct sock,
net/core/filter.c
10618
struct sock, sk, sk_family);
net/core/filter.c
10623
struct sock, sk, sk_type);
net/core/filter.c
10628
struct sock, sk, sk_protocol);
net/core/filter.c
10970
struct sock, type);
net/core/filter.c
11477
int sk_detach_filter(struct sock *sk)
net/core/filter.c
11497
int sk_get_filter(struct sock *sk, sockptr_t optval, unsigned int len)
net/core/filter.c
11543
struct sock *sk, struct sk_buff *skb,
net/core/filter.c
11544
struct sock *migrating_sk,
net/core/filter.c
11557
struct sock *bpf_run_sk_reuseport(struct sock_reuseport *reuse, struct sock *sk,
net/core/filter.c
11559
struct sock *migrating_sk,
net/core/filter.c
11579
struct sock *selected_sk;
net/core/filter.c
11600
struct sock *sk = reuse_kern->sk;
net/core/filter.c
11754
struct sock, \
net/core/filter.c
11820
struct sock *, sk, u64, flags)
net/core/filter.c
12039
BPF_CALL_1(bpf_skc_to_tcp6_sock, struct sock *, sk)
net/core/filter.c
12060
BPF_CALL_1(bpf_skc_to_tcp_sock, struct sock *, sk)
net/core/filter.c
12076
BPF_CALL_1(bpf_skc_to_tcp_timewait_sock, struct sock *, sk)
net/core/filter.c
12105
BPF_CALL_1(bpf_skc_to_tcp_request_sock, struct sock *, sk)
net/core/filter.c
12128
BPF_CALL_1(bpf_skc_to_udp6_sock, struct sock *, sk)
net/core/filter.c
12149
BPF_CALL_1(bpf_skc_to_unix_sock, struct sock *, sk)
net/core/filter.c
12169
BPF_CALL_1(bpf_skc_to_mptcp_sock, struct sock *, sk)
net/core/filter.c
1225
void sk_filter_uncharge(struct sock *sk, struct sk_filter *fp)
net/core/filter.c
12346
__bpf_kfunc int bpf_sk_assign_tcp_reqsk(struct __sk_buff *s, struct sock *sk,
net/core/filter.c
1236
static bool __sk_filter_charge(struct sock *sk, struct sk_filter *fp)
net/core/filter.c
1250
bool sk_filter_charge(struct sock *sk, struct sk_filter *fp)
net/core/filter.c
12669
__bpf_kfunc int bpf_sock_destroy(struct sock_common *sock)
net/core/filter.c
12671
struct sock *sk = (struct sock *)sock;
net/core/filter.c
133
sk_filter_trim_cap(struct sock *sk, struct sk_buff *skb, unsigned int cap)
net/core/filter.c
1475
static int __sk_attach_prog(struct bpf_prog *prog, struct sock *sk)
net/core/filter.c
1502
struct bpf_prog *__get_filter(struct sock_fprog *fprog, struct sock *sk)
net/core/filter.c
1548
int sk_attach_filter(struct sock_fprog *fprog, struct sock *sk)
net/core/filter.c
1566
int sk_reuseport_attach_filter(struct sock_fprog *fprog, struct sock *sk)
net/core/filter.c
1586
static struct bpf_prog *__get_bpf(u32 ufd, struct sock *sk)
net/core/filter.c
1594
int sk_attach_bpf(u32 ufd, struct sock *sk)
net/core/filter.c
160
struct sock *save_sk = skb->sk;
net/core/filter.c
1611
int sk_reuseport_attach_bpf(u32 ufd, struct sock *sk)
net/core/filter.c
1893
BPF_CALL_1(bpf_sk_fullsock, struct sock *, sk)
net/core/filter.c
3201
struct sock *sk = skb_to_full_sk(skb);
net/core/filter.c
5067
struct sock *sk;
net/core/filter.c
5092
static inline u64 __bpf_sk_cgroup_id(struct sock *sk)
net/core/filter.c
5116
static inline u64 __bpf_sk_ancestor_cgroup_id(struct sock *sk,
net/core/filter.c
5148
BPF_CALL_1(bpf_sk_cgroup_id, struct sock *, sk)
net/core/filter.c
5160
BPF_CALL_2(bpf_sk_ancestor_cgroup_id, struct sock *, sk, int, ancestor_level)
net/core/filter.c
5247
BPF_CALL_1(bpf_get_socket_cookie_sock, struct sock *, ctx)
net/core/filter.c
5259
BPF_CALL_1(bpf_get_socket_ptr_cookie, struct sock *, sk)
net/core/filter.c
5283
static u64 __bpf_get_netns_cookie(struct sock *sk)
net/core/filter.c
5301
BPF_CALL_1(bpf_get_netns_cookie_sock, struct sock *, ctx)
net/core/filter.c
5351
struct sock *sk = sk_to_full_sk(skb->sk);
net/core/filter.c
5367
static int sk_bpf_set_get_cb_flags(struct sock *sk, char *optval, bool getopt)
net/core/filter.c
5386
static int sol_socket_sockopt(struct sock *sk, int optname,
net/core/filter.c
5427
static int bpf_sol_tcp_getsockopt(struct sock *sk, int optname,
net/core/filter.c
5459
static int bpf_sol_tcp_setsockopt(struct sock *sk, int optname,
net/core/filter.c
5510
static int sol_tcp_sockopt_congestion(struct sock *sk, char *optval,
net/core/filter.c
5563
static int sol_tcp_sockopt(struct sock *sk, int optname,
net/core/filter.c
5621
static bool sk_allows_sol_ip_sockopt(struct sock *sk)
net/core/filter.c
5634
static int sol_ip_sockopt(struct sock *sk, int optname,
net/core/filter.c
5659
static int sol_ipv6_sockopt(struct sock *sk, int optname,
net/core/filter.c
5685
static int __bpf_setsockopt(struct sock *sk, int level, int optname,
net/core/filter.c
5708
static int _bpf_setsockopt(struct sock *sk, int level, int optname,
net/core/filter.c
5716
static int __bpf_getsockopt(struct sock *sk, int level, int optname,
net/core/filter.c
5745
static int _bpf_getsockopt(struct sock *sk, int level, int optname,
net/core/filter.c
5753
BPF_CALL_5(bpf_sk_setsockopt, struct sock *, sk, int, level,
net/core/filter.c
5770
BPF_CALL_5(bpf_sk_getsockopt, struct sock *, sk, int, level,
net/core/filter.c
5787
BPF_CALL_5(bpf_sk_setsockopt_nodelay, struct sock *, sk, int, level,
net/core/filter.c
5811
BPF_CALL_5(bpf_unlocked_sk_setsockopt, struct sock *, sk, int, level,
net/core/filter.c
5828
BPF_CALL_5(bpf_unlocked_sk_getsockopt, struct sock *, sk, int, level,
net/core/filter.c
5879
static int sk_bpf_set_get_bypass_prot_mem(struct sock *sk,
net/core/filter.c
5904
BPF_CALL_5(bpf_sock_create_setsockopt, struct sock *, sk, int, level,
net/core/filter.c
5924
BPF_CALL_5(bpf_sock_create_getsockopt, struct sock *, sk, int, level,
net/core/filter.c
6001
struct sock *sk = bpf_sock->sk;
net/core/filter.c
6089
struct sock *sk = bpf_sock->sk;
net/core/filter.c
6115
struct sock *sk = ctx->sk;
net/core/filter.c
6995
static struct sock *sk_lookup(struct net *net, struct bpf_sock_tuple *tuple,
net/core/filter.c
6999
struct sock *sk = NULL;
net/core/filter.c
7041
static struct sock *
net/core/filter.c
7046
struct sock *sk = NULL;
net/core/filter.c
7082
static struct sock *
net/core/filter.c
7087
struct sock *sk = __bpf_skc_lookup(skb, tuple, len, caller_net,
net/core/filter.c
7092
struct sock *sk2 = sk_to_full_sk(sk);
net/core/filter.c
7111
static struct sock *
net/core/filter.c
7130
static struct sock *
net/core/filter.c
7134
struct sock *sk = bpf_skc_lookup(skb, tuple, len, proto, netns_id,
net/core/filter.c
7138
struct sock *sk2 = sk_to_full_sk(sk);
net/core/filter.c
7286
BPF_CALL_1(bpf_sk_release, struct sock *, sk)
net/core/filter.c
7572
BPF_CALL_1(bpf_tcp_sock, struct sock *, sk)
net/core/filter.c
7587
BPF_CALL_1(bpf_get_listener_sock, struct sock *, sk)
net/core/filter.c
7677
BPF_CALL_5(bpf_tcp_check_syncookie, struct sock *, sk, void *, iph, u32, iph_len,
net/core/filter.c
7750
BPF_CALL_5(bpf_tcp_gen_syncookie, struct sock *, sk, void *, iph, u32, iph_len,
net/core/filter.c
7819
BPF_CALL_3(bpf_sk_assign, struct sk_buff *, skb, struct sock *, sk, u64, flags)
net/core/lwt_bpf.c
147
static int bpf_output(struct net *net, struct sock *sk, struct sk_buff *skb)
net/core/lwt_bpf.c
188
struct sock *sk;
net/core/lwtunnel.c
320
int lwtunnel_output(struct net *net, struct sock *sk, struct sk_buff *skb)
net/core/net-sysfs.c
2182
static const struct ns_common *net_netlink_ns(struct sock *sk)
net/core/net_namespace.c
1104
static int rtnl_valid_dump_net_req(const struct nlmsghdr *nlh, struct sock *sk,
net/core/netclassid_cgroup.c
74
struct socket *sock = sock_from_file(file);
net/core/netclassid_cgroup.c
76
if (sock)
net/core/netclassid_cgroup.c
77
sock_cgroup_set_classid(&sock->sk->sk_cgrp_data, ctx->classid);
net/core/netprio_cgroup.c
221
struct socket *sock = sock_from_file(file);
net/core/netprio_cgroup.c
223
if (sock)
net/core/netprio_cgroup.c
224
sock_cgroup_set_prioidx(&sock->sk->sk_cgrp_data,
net/core/rtnetlink.c
2422
struct net *rtnl_get_net_ns_capable(struct sock *sk, int netnsid)
net/core/rtnetlink.c
6963
static int rtnetlink_dump_start(struct sock *ssk, struct sk_buff *skb,
net/core/rtnetlink.c
7008
struct sock *rtnl;
net/core/rtnetlink.c
7152
struct sock *sk;
net/core/rtnetlink.c
945
struct sock *rtnl = net->rtnl;
net/core/rtnetlink.c
952
struct sock *rtnl = net->rtnl;
net/core/rtnetlink.c
961
struct sock *rtnl = net->rtnl;
net/core/rtnetlink.c
969
struct sock *rtnl = net->rtnl;
net/core/scm.c
166
int __scm_send(struct socket *sock, struct msghdr *msg, struct scm_cookie *p)
net/core/scm.c
168
const struct proto_ops *ops = READ_ONCE(sock->ops);
net/core/scm.c
433
static void scm_passec(struct sock *sk, struct msghdr *msg, struct scm_cookie *scm)
net/core/scm.c
450
static bool scm_has_secdata(struct sock *sk)
net/core/scm.c
455
static void scm_passec(struct sock *sk, struct msghdr *msg, struct scm_cookie *scm)
net/core/scm.c
459
static bool scm_has_secdata(struct sock *sk)
net/core/scm.c
501
static bool __scm_recv_common(struct sock *sk, struct msghdr *msg,
net/core/scm.c
532
void scm_recv(struct socket *sock, struct msghdr *msg,
net/core/scm.c
535
if (!__scm_recv_common(sock->sk, msg, scm, flags))
net/core/scm.c
542
void scm_recv_unix(struct socket *sock, struct msghdr *msg,
net/core/scm.c
545
if (!__scm_recv_common(sock->sk, msg, scm, flags))
net/core/scm.c
548
if (sock->sk->sk_scm_pidfd)
net/core/skbuff.c
1217
bool __sk_skb_reason_drop(const struct sock *sk, struct sk_buff *skb,
net/core/skbuff.c
1246
sk_skb_reason_drop(const struct sock *sk, struct sk_buff *skb,
net/core/skbuff.c
1314
struct sock *sk = skb->sk;
net/core/skbuff.c
1725
static struct ubuf_info *msg_zerocopy_alloc(struct sock *sk, size_t size,
net/core/skbuff.c
1763
struct ubuf_info *msg_zerocopy_realloc(struct sock *sk, size_t size,
net/core/skbuff.c
1838
struct sock *sk = skb->sk;
net/core/skbuff.c
1897
struct sock *sk = skb_from_uarg(uarg_to_msgzc(uarg))->sk;
net/core/skbuff.c
1912
int skb_zerocopy_iter_stream(struct sock *sk, struct sk_buff *skb,
net/core/skbuff.c
1937
struct sock *save_sk = skb->sk;
net/core/skbuff.c
2449
struct sock *sk = skb->sk;
net/core/skbuff.c
3111
struct sock *sk)
net/core/skbuff.c
3143
struct sock *sk)
net/core/skbuff.c
3170
struct sock *sk)
net/core/skbuff.c
3207
struct splice_pipe_desc *spd, struct sock *sk)
net/core/skbuff.c
3263
int skb_splice_bits(struct sk_buff *skb, struct sock *sk, unsigned int offset,
net/core/skbuff.c
3287
static int sendmsg_locked(struct sock *sk, struct msghdr *msg)
net/core/skbuff.c
3289
struct socket *sock = sk->sk_socket;
net/core/skbuff.c
3292
if (!sock)
net/core/skbuff.c
3295
if (!sock->ops->sendmsg_locked)
net/core/skbuff.c
3298
return sock->ops->sendmsg_locked(sk, msg, size);
net/core/skbuff.c
3301
static int sendmsg_unlocked(struct sock *sk, struct msghdr *msg)
net/core/skbuff.c
3303
struct socket *sock = sk->sk_socket;
net/core/skbuff.c
3305
if (!sock)
net/core/skbuff.c
3307
return sock_sendmsg(sock, msg);
net/core/skbuff.c
3310
typedef int (*sendmsg_func)(struct sock *sk, struct msghdr *msg);
net/core/skbuff.c
3311
static int __skb_send_sock(struct sock *sk, struct sk_buff *skb, int offset,
net/core/skbuff.c
3416
int skb_send_sock_locked(struct sock *sk, struct sk_buff *skb, int offset,
net/core/skbuff.c
3423
int skb_send_sock_locked_with_flags(struct sock *sk, struct sk_buff *skb,
net/core/skbuff.c
3431
int skb_send_sock(struct sock *sk, struct sk_buff *skb, int offset, int len)
net/core/skbuff.c
5464
struct sock *sk = skb->sk;
net/core/skbuff.c
5481
int sock_queue_err_skb(struct sock *sk, struct sk_buff *skb)
net/core/skbuff.c
5509
struct sk_buff *sock_dequeue_err_skb(struct sock *sk)
net/core/skbuff.c
5553
struct sock *sk = skb->sk;
net/core/skbuff.c
5573
struct sock *sk,
net/core/skbuff.c
5601
static bool skb_may_tx_timestamp(struct sock *sk, bool tsonly)
net/core/skbuff.c
5603
struct socket *sock;
net/core/skbuff.c
5616
sock = READ_ONCE(sk->sk_socket);
net/core/skbuff.c
5617
if (!sock)
net/core/skbuff.c
5619
file = READ_ONCE(sock->file);
net/core/skbuff.c
5631
struct sock *sk = skb->sk;
net/core/skbuff.c
5672
struct sock *sk,
net/core/skbuff.c
5702
struct sock *sk, int tstype)
net/core/skbuff.c
5774
struct sock *sk = skb->sk;
net/core/skmsg.c
1057
static void sk_psock_write_space(struct sock *sk)
net/core/skmsg.c
1060
void (*write_space)(struct sock *sk) = NULL;
net/core/skmsg.c
1080
struct sock *sk;
net/core/skmsg.c
1127
static void sk_psock_strp_data_ready(struct sock *sk)
net/core/skmsg.c
1143
int sk_psock_init_strp(struct sock *sk, struct sk_psock *psock)
net/core/skmsg.c
1164
void sk_psock_start_strp(struct sock *sk, struct sk_psock *psock)
net/core/skmsg.c
1174
void sk_psock_stop_strp(struct sock *sk, struct sk_psock *psock)
net/core/skmsg.c
1198
static int sk_psock_verdict_recv(struct sock *sk, struct sk_buff *skb)
net/core/skmsg.c
1230
static void sk_psock_verdict_data_ready(struct sock *sk)
net/core/skmsg.c
1234
struct socket *sock;
net/core/skmsg.c
1240
sock = READ_ONCE(sk->sk_socket);
net/core/skmsg.c
1241
if (likely(sock))
net/core/skmsg.c
1242
ops = READ_ONCE(sock->ops);
net/core/skmsg.c
1257
void sk_psock_start_verdict(struct sock *sk, struct sk_psock *psock)
net/core/skmsg.c
1267
void sk_psock_stop_verdict(struct sock *sk, struct sk_psock *psock)
net/core/skmsg.c
138
void sk_msg_return_zero(struct sock *sk, struct sk_msg *msg, int bytes)
net/core/skmsg.c
162
void sk_msg_return(struct sock *sk, struct sk_msg *msg, int bytes)
net/core/skmsg.c
177
static int sk_msg_free_elem(struct sock *sk, struct sk_msg *msg, u32 i,
net/core/skmsg.c
194
static int __sk_msg_free(struct sock *sk, struct sk_msg *msg, u32 i,
net/core/skmsg.c
212
int sk_msg_free_nocharge(struct sock *sk, struct sk_msg *msg)
net/core/skmsg.c
218
int sk_msg_free(struct sock *sk, struct sk_msg *msg)
net/core/skmsg.c
224
static void __sk_msg_free_partial(struct sock *sk, struct sk_msg *msg,
net/core/skmsg.c
252
void sk_msg_free_partial(struct sock *sk, struct sk_msg *msg, u32 bytes)
net/core/skmsg.c
258
void sk_msg_free_partial_nocharge(struct sock *sk, struct sk_msg *msg,
net/core/skmsg.c
26
int sk_msg_alloc(struct sock *sk, struct sk_msg *msg, int len,
net/core/skmsg.c
264
void sk_msg_trim(struct sock *sk, struct sk_msg *msg, int len)
net/core/skmsg.c
312
int sk_msg_zerocopy_from_iter(struct sock *sk, struct iov_iter *from,
net/core/skmsg.c
369
int sk_msg_memcopy_from_iter(struct sock *sk, struct iov_iter *from,
net/core/skmsg.c
413
int __sk_msg_recvmsg(struct sock *sk, struct sk_psock *psock, struct msghdr *msg,
net/core/skmsg.c
501
int sk_msg_recvmsg(struct sock *sk, struct sk_psock *psock, struct msghdr *msg,
net/core/skmsg.c
508
bool sk_msg_is_readable(struct sock *sk)
net/core/skmsg.c
533
static struct sk_msg *sk_psock_create_ingress_msg(struct sock *sk,
net/core/skmsg.c
548
struct sock *sk,
net/core/skmsg.c
594
struct sock *sk = psock->sk;
net/core/skmsg.c
629
struct sock *sk = psock->sk;
net/core/skmsg.c
750
struct sk_psock *sk_psock_init(struct sock *sk, int node)
net/core/skmsg.c
87
int sk_msg_clone(struct sock *sk, struct sk_msg *dst, struct sk_msg *src,
net/core/skmsg.c
889
void sk_psock_drop(struct sock *sk, struct sk_psock *psock)
net/core/skmsg.c
920
int sk_psock_msg_verdict(struct sock *sk, struct sk_psock *psock,
net/core/skmsg.c
961
struct sock *sk_other;
net/core/skmsg.c
999
struct sock *sk_other;
net/core/sock.c
1005
static void __sock_set_mark(struct sock *sk, u32 val)
net/core/sock.c
1013
void sock_set_mark(struct sock *sk, u32 val)
net/core/sock.c
1021
static void sock_release_reserved_memory(struct sock *sk, int bytes)
net/core/sock.c
1031
static int sock_reserve_memory(struct sock *sk, int bytes)
net/core/sock.c
1087
sock_devmem_dontneed(struct sock *sk, sockptr_t optval, unsigned int optlen)
net/core/sock.c
1145
void sockopt_lock_sock(struct sock *sk)
net/core/sock.c
1158
void sockopt_release_sock(struct sock *sk)
net/core/sock.c
1195
int sk_setsockopt(struct sock *sk, int level, int optname,
net/core/sock.c
1199
struct socket *sock = sk->sk_socket;
net/core/sock.c
1289
int (*set_peek_off)(struct sock *sk, int val);
net/core/sock.c
1291
set_peek_off = READ_ONCE(sock->ops)->set_peek_off;
net/core/sock.c
1453
int (*set_rcvlowat)(struct sock *sk, int val) = NULL;
net/core/sock.c
1457
if (sock)
net/core/sock.c
1458
set_rcvlowat = READ_ONCE(sock->ops)->set_rcvlowat;
net/core/sock.c
158
static void sock_def_write_space_wfree(struct sock *sk, int wmem_alloc);
net/core/sock.c
159
static void sock_def_write_space(struct sock *sk);
net/core/sock.c
1685
int sock_setsockopt(struct socket *sock, int level, int optname,
net/core/sock.c
1688
return sk_setsockopt(sock->sk, level, optname,
net/core/sock.c
1693
static const struct cred *sk_get_peer_cred(struct sock *sk)
net/core/sock.c
171
bool sk_ns_capable(const struct sock *sk,
net/core/sock.c
1732
int sk_getsockopt(struct sock *sk, int level, int optname,
net/core/sock.c
1735
struct socket *sock = sk->sk_socket;
net/core/sock.c
188
bool sk_capable(const struct sock *sk, int cap)
net/core/sock.c
1987
lv = READ_ONCE(sock->ops)->getname(sock, (struct sockaddr *)&address, 2);
net/core/sock.c
2012
return security_socket_getpeersec_stream(sock,
net/core/sock.c
203
bool sk_net_capable(const struct sock *sk, int cap)
net/core/sock.c
2036
if (!READ_ONCE(sock->ops)->set_peek_off)
net/core/sock.c
2185
static inline void sock_lock_init(struct sock *sk)
net/core/sock.c
2210
static void sock_copy(struct sock *nsk, const struct sock *osk)
net/core/sock.c
2221
BUILD_BUG_ON(offsetof(struct sock, sk_tx_queue_mapping) <
net/core/sock.c
2222
offsetof(struct sock, sk_dontcopy_begin) ||
net/core/sock.c
2223
offsetof(struct sock, sk_tx_queue_mapping) >=
net/core/sock.c
2224
offsetof(struct sock, sk_dontcopy_end));
net/core/sock.c
2226
memcpy(nsk, osk, offsetof(struct sock, sk_dontcopy_begin));
net/core/sock.c
2229
prot->obj_size - offsetof(struct sock, sk_dontcopy_end),
net/core/sock.c
2238
static struct sock *sk_prot_alloc(struct proto *prot, gfp_t priority,
net/core/sock.c
2241
struct sock *sk;
net/core/sock.c
2274
static void sk_prot_free(struct proto *prot, struct sock *sk)
net/core/sock.c
2303
struct sock *sk_alloc(struct net *net, int family, gfp_t priority,
net/core/sock.c
2306
struct sock *sk;
net/core/sock.c
2352
struct sock *sk = container_of(head, struct sock, sk_rcu);
net/core/sock.c
2394
void sk_net_refcnt_upgrade(struct sock *sk)
net/core/sock.c
2407
void sk_destruct(struct sock *sk)
net/core/sock.c
2422
static void __sk_free(struct sock *sk)
net/core/sock.c
2433
void sk_free(struct sock *sk)
net/core/sock.c
2445
static void sk_init_common(struct sock *sk)
net/core/sock.c
2480
struct sock *sk_clone(const struct sock *sk, const gfp_t priority,
net/core/sock.c
2486
struct sock *newsk;
net/core/sock.c
2619
static u32 sk_dst_gso_max_size(struct sock *sk, const struct net_device *dev)
net/core/sock.c
2637
void sk_setup_caps(struct sock *sk, struct dst_entry *dst)
net/core/sock.c
2682
struct sock *sk = skb->sk;
net/core/sock.c
2687
void (*sk_write_space)(struct sock *sk);
net/core/sock.c
2726
struct sock *sk = skb->sk;
net/core/sock.c
2734
void skb_set_owner_w(struct sk_buff *skb, struct sock *sk)
net/core/sock.c
2798
struct sock *sk = skb->sk;
net/core/sock.c
2822
struct sock *sk = skb->sk;
net/core/sock.c
2841
struct sk_buff *sock_wmalloc(struct sock *sk, unsigned long size, int force,
net/core/sock.c
2859
struct sock *sk = skb->sk;
net/core/sock.c
2864
struct sk_buff *sock_omalloc(struct sock *sk, unsigned long size,
net/core/sock.c
2887
void *sock_kmalloc(struct sock *sk, int size, gfp_t priority)
net/core/sock.c
2911
void *sock_kmemdup(struct sock *sk, const void *src,
net/core/sock.c
2927
static inline void __sock_kfree_s(struct sock *sk, void *mem, int size,
net/core/sock.c
2939
void sock_kfree_s(struct sock *sk, void *mem, int size)
net/core/sock.c
2945
void sock_kzfree_s(struct sock *sk, void *mem, int size)
net/core/sock.c
2954
static long sock_wait_for_wmem(struct sock *sk, long timeo)
net/core/sock.c
2983
struct sk_buff *sock_alloc_send_pskb(struct sock *sk, unsigned long header_len,
net/core/sock.c
302
void sk_set_memalloc(struct sock *sk)
net/core/sock.c
3027
int __sock_cmsg_send(struct sock *sk, struct cmsghdr *cmsg,
net/core/sock.c
310
void sk_clear_memalloc(struct sock *sk)
net/core/sock.c
3126
int sock_cmsg_send(struct sock *sk, struct msghdr *msg,
net/core/sock.c
3145
static void sk_enter_memory_pressure(struct sock *sk)
net/core/sock.c
3153
static void sk_leave_memory_pressure(struct sock *sk)
net/core/sock.c
3212
bool sk_page_frag_refill(struct sock *sk, struct page_frag *pfrag)
net/core/sock.c
3226
static void __lock_sock(struct sock *sk)
net/core/sock.c
3244
void __release_sock(struct sock *sk)
net/core/sock.c
327
int __sk_backlog_rcv(struct sock *sk, struct sk_buff *skb)
net/core/sock.c
3281
void __sk_flush_backlog(struct sock *sk)
net/core/sock.c
3305
int sk_wait_data(struct sock *sk, long *timeo, const struct sk_buff *skb)
net/core/sock.c
3334
int __sk_mem_raise_allocated(struct sock *sk, int size, int amt, int kind)
net/core/sock.c
3452
int __sk_mem_schedule(struct sock *sk, int size, int kind)
net/core/sock.c
346
void sk_error_report(struct sock *sk)
net/core/sock.c
3471
void __sk_mem_reduce_allocated(struct sock *sk, int amount)
net/core/sock.c
3491
void __sk_mem_reclaim(struct sock *sk, int amount)
net/core/sock.c
3499
void __sk_charge(struct sock *sk, gfp_t gfp)
net/core/sock.c
3517
int sk_set_peek_off(struct sock *sk, int val)
net/core/sock.c
3531
int sock_no_bind(struct socket *sock, struct sockaddr_unsized *saddr, int len)
net/core/sock.c
3537
int sock_no_connect(struct socket *sock, struct sockaddr_unsized *saddr,
net/core/sock.c
3550
int sock_no_accept(struct socket *sock, struct socket *newsock,
net/core/sock.c
3557
int sock_no_getname(struct socket *sock, struct sockaddr *saddr,
net/core/sock.c
3564
int sock_no_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
net/core/sock.c
3570
int sock_no_listen(struct socket *sock, int backlog)
net/core/sock.c
3576
int sock_no_shutdown(struct socket *sock, int how)
net/core/sock.c
3582
int sock_no_sendmsg(struct socket *sock, struct msghdr *m, size_t len)
net/core/sock.c
3588
int sock_no_sendmsg_locked(struct sock *sk, struct msghdr *m, size_t len)
net/core/sock.c
3594
int sock_no_recvmsg(struct socket *sock, struct msghdr *m, size_t len,
net/core/sock.c
3601
int sock_no_mmap(struct file *file, struct socket *sock, struct vm_area_struct *vma)
net/core/sock.c
3614
struct socket *sock;
net/core/sock.c
3616
sock = sock_from_file(file);
net/core/sock.c
3617
if (sock) {
net/core/sock.c
3618
sock_update_netprioidx(&sock->sk->sk_cgrp_data);
net/core/sock.c
3619
sock_update_classid(&sock->sk->sk_cgrp_data);
net/core/sock.c
3627
static void sock_def_wakeup(struct sock *sk)
net/core/sock.c
3638
static void sock_def_error_report(struct sock *sk)
net/core/sock.c
3650
void sock_def_readable(struct sock *sk)
net/core/sock.c
3665
static void sock_def_write_space(struct sock *sk)
net/core/sock.c
3691
static void sock_def_write_space_wfree(struct sock *sk, int wmem_alloc)
net/core/sock.c
3710
static void sock_def_destruct(struct sock *sk)
net/core/sock.c
3714
void sk_send_sigurg(struct sock *sk)
net/core/sock.c
3722
void sk_reset_timer(struct sock *sk, struct timer_list* timer,
net/core/sock.c
3730
void sk_stop_timer(struct sock *sk, struct timer_list* timer)
net/core/sock.c
3737
void sk_stop_timer_sync(struct sock *sk, struct timer_list *timer)
net/core/sock.c
3744
void sock_init_data_uid(struct socket *sock, struct sock *sk, kuid_t uid)
net/core/sock.c
3756
sk_set_socket(sk, sock);
net/core/sock.c
3760
if (sock) {
net/core/sock.c
3761
sk->sk_type = sock->type;
net/core/sock.c
3762
RCU_INIT_POINTER(sk->sk_wq, &sock->wq);
net/core/sock.c
3763
sock->sk = sk;
net/core/sock.c
3815
void sock_init_data(struct socket *sock, struct sock *sk)
net/core/sock.c
3817
kuid_t uid = sock ?
net/core/sock.c
3818
SOCK_INODE(sock)->i_uid :
net/core/sock.c
3821
sock_init_data_uid(sock, sk, uid);
net/core/sock.c
3825
void noinline lock_sock_nested(struct sock *sk, int subclass)
net/core/sock.c
3855
void release_sock(struct sock *sk)
net/core/sock.c
3874
bool __lock_sock_fast(struct sock *sk) __acquires(&sk->sk_lock.slock)
net/core/sock.c
3906
int sock_gettstamp(struct socket *sock, void __user *userstamp,
net/core/sock.c
3909
struct sock *sk = sock->sk;
net/core/sock.c
3945
void sock_enable_timestamp(struct sock *sk, enum sock_flags flag)
net/core/sock.c
3962
int sock_recv_errqueue(struct sock *sk, struct msghdr *msg, int len,
net/core/sock.c
4006
int sock_common_getsockopt(struct socket *sock, int level, int optname,
net/core/sock.c
4009
struct sock *sk = sock->sk;
net/core/sock.c
4016
int sock_common_recvmsg(struct socket *sock, struct msghdr *msg, size_t size,
net/core/sock.c
4019
struct sock *sk = sock->sk;
net/core/sock.c
4028
int sock_common_setsockopt(struct socket *sock, int level, int optname,
net/core/sock.c
4031
struct sock *sk = sock->sk;
net/core/sock.c
4038
void sk_common_release(struct sock *sk)
net/core/sock.c
4073
void sk_get_meminfo(const struct sock *sk, u32 *mem)
net/core/sock.c
4468
struct sock *sk = p;
net/core/sock.c
4482
int sock_bind_add(struct sock *sk, struct sockaddr_unsized *addr, int addr_len)
net/core/sock.c
4491
int sock_ioctl_inout(struct sock *sk, unsigned int cmd,
net/core/sock.c
4514
static int sock_ioctl_out(struct sock *sk, unsigned int cmd, void __user *arg)
net/core/sock.c
4530
int sk_ioctl(struct sock *sk, unsigned int cmd, void __user *arg)
net/core/sock.c
4552
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_write_rx, sk_drops);
net/core/sock.c
4553
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_write_rx, sk_peek_off);
net/core/sock.c
4554
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_write_rx, sk_error_queue);
net/core/sock.c
4555
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_write_rx, sk_receive_queue);
net/core/sock.c
4556
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_write_rx, sk_backlog);
net/core/sock.c
4558
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_read_rx, sk_rx_dst);
net/core/sock.c
4559
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_read_rx, sk_rx_dst_ifindex);
net/core/sock.c
4560
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_read_rx, sk_rx_dst_cookie);
net/core/sock.c
4561
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_read_rx, sk_rcvbuf);
net/core/sock.c
4562
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_read_rx, sk_filter);
net/core/sock.c
4563
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_read_rx, sk_wq);
net/core/sock.c
4564
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_read_rx, sk_data_ready);
net/core/sock.c
4565
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_read_rx, sk_rcvtimeo);
net/core/sock.c
4566
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_read_rx, sk_rcvlowat);
net/core/sock.c
4568
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_read_rxtx, sk_err);
net/core/sock.c
4569
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_read_rxtx, sk_socket);
net/core/sock.c
4571
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_read_rxtx, sk_memcg);
net/core/sock.c
4574
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_write_rxtx, sk_lock);
net/core/sock.c
4575
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_write_rxtx, sk_reserved_mem);
net/core/sock.c
4576
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_write_rxtx, sk_forward_alloc);
net/core/sock.c
4577
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_write_rxtx, sk_tsflags);
net/core/sock.c
4579
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_write_tx, sk_omem_alloc);
net/core/sock.c
4580
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_write_tx, sk_omem_alloc);
net/core/sock.c
4581
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_write_tx, sk_err_soft);
net/core/sock.c
4582
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_write_tx, sk_wmem_queued);
net/core/sock.c
4583
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_write_tx, sk_wmem_alloc);
net/core/sock.c
4584
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_write_tx, sk_tsq_flags);
net/core/sock.c
4585
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_write_tx, sk_send_head);
net/core/sock.c
4586
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_write_tx, sk_write_queue);
net/core/sock.c
4587
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_write_tx, sk_write_pending);
net/core/sock.c
4588
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_write_tx, sk_frag);
net/core/sock.c
4589
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_write_tx, sk_timer);
net/core/sock.c
459
static bool sk_set_prio_allowed(const struct sock *sk, int val)
net/core/sock.c
4590
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_write_tx, sk_pacing_rate);
net/core/sock.c
4591
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_write_tx, sk_zckey);
net/core/sock.c
4592
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_write_tx, sk_tskey);
net/core/sock.c
4594
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_read_tx, sk_dst_pending_confirm);
net/core/sock.c
4595
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_read_tx, sk_pacing_status);
net/core/sock.c
4596
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_read_tx, sk_max_pacing_rate);
net/core/sock.c
4597
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_read_tx, sk_sndtimeo);
net/core/sock.c
4598
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_read_tx, sk_priority);
net/core/sock.c
4599
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_read_tx, sk_mark);
net/core/sock.c
4600
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_read_tx, sk_uid);
net/core/sock.c
4601
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_read_tx, sk_protocol);
net/core/sock.c
4602
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_read_tx, sk_dst_cache);
net/core/sock.c
4603
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_read_tx, sk_route_caps);
net/core/sock.c
4604
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_read_tx, sk_gso_type);
net/core/sock.c
4605
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_read_tx, sk_gso_max_size);
net/core/sock.c
4606
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_read_tx, sk_allocation);
net/core/sock.c
4607
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_read_tx, sk_txhash);
net/core/sock.c
4608
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_read_tx, sk_sndbuf);
net/core/sock.c
4609
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_read_tx, sk_gso_max_segs);
net/core/sock.c
4610
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_read_tx, sk_pacing_shift);
net/core/sock.c
4611
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_read_tx, sk_use_task_frag);
net/core/sock.c
466
static bool sock_needs_netstamp(const struct sock *sk)
net/core/sock.c
477
static void sock_disable_timestamp(struct sock *sk, unsigned long flags)
net/core/sock.c
488
int __sock_queue_rcv_skb(struct sock *sk, struct sk_buff *skb)
net/core/sock.c
524
sock_queue_rcv_skb_reason(struct sock *sk, struct sk_buff *skb)
net/core/sock.c
544
int __sk_receive_skb(struct sock *sk, struct sk_buff *skb,
net/core/sock.c
600
struct dst_entry *__sk_dst_check(struct sock *sk, u32 cookie)
net/core/sock.c
618
struct dst_entry *sk_dst_check(struct sock *sk, u32 cookie)
net/core/sock.c
634
static int sock_bindtoindex_locked(struct sock *sk, int ifindex)
net/core/sock.c
664
int sock_bindtoindex(struct sock *sk, int ifindex, bool lock_sk)
net/core/sock.c
678
static int sock_setbindtodevice(struct sock *sk, sockptr_t optval, int optlen)
net/core/sock.c
726
static int sock_getbindtodevice(struct sock *sk, sockptr_t optval,
net/core/sock.c
767
bool sk_mc_loop(const struct sock *sk)
net/core/sock.c
787
void sock_set_reuseaddr(struct sock *sk)
net/core/sock.c
795
void sock_set_reuseport(struct sock *sk)
net/core/sock.c
803
void sock_no_linger(struct sock *sk)
net/core/sock.c
812
void sock_set_priority(struct sock *sk, u32 priority)
net/core/sock.c
818
void sock_set_sndtimeo(struct sock *sk, s64 secs)
net/core/sock.c
827
static void __sock_set_timestamps(struct sock *sk, bool val, bool new, bool ns)
net/core/sock.c
837
void sock_set_timestamp(struct sock *sk, int optname, bool valbool)
net/core/sock.c
855
static int sock_timestamping_bind_phc(struct sock *sk, int phc_index)
net/core/sock.c
892
int sock_set_timestamping(struct sock *sk, int optname,
net/core/sock.c
944
void bpf_skops_tx_timestamping(struct sock *sk, struct sk_buff *skb, int op)
net/core/sock.c
957
void sock_set_keepalive(struct sock *sk)
net/core/sock.c
967
static void __sock_set_rcvbuf(struct sock *sk, int val)
net/core/sock.c
969
struct socket *sock = sk->sk_socket;
net/core/sock.c
989
if (sock) {
net/core/sock.c
990
const struct proto_ops *ops = READ_ONCE(sock->ops);
net/core/sock.c
997
void sock_set_rcvbuf(struct sock *sk, int val)
net/core/sock_diag.c
114
struct sock *sk;
net/core/sock_diag.c
147
struct sock *sk = bsk->sk;
net/core/sock_diag.c
175
void sock_diag_broadcast_destroy(struct sock *sk)
net/core/sock_diag.c
26
u64 __sock_gen_cookie(struct sock *sk)
net/core/sock_diag.c
312
int sock_diag_destroy(struct sock *sk, int err)
net/core/sock_diag.c
41
int sock_diag_check_cookie(struct sock *sk, const __u32 *cookie)
net/core/sock_diag.c
56
void sock_diag_save_cookie(struct sock *sk, __u32 *cookie)
net/core/sock_diag.c
65
int sock_diag_put_meminfo(struct sock *sk, struct sk_buff *skb, int attrtype)
net/core/sock_diag.c
75
int sock_diag_put_filterinfo(bool may_report_filterinfo, struct sock *sk,
net/core/sock_map.c
117
static void sock_map_sk_acquire(struct sock *sk)
net/core/sock_map.c
1201
struct sock *sk;
net/core/sock_map.c
1216
struct sock *sk;
net/core/sock_map.c
124
static void sock_map_sk_release(struct sock *sk)
net/core/sock_map.c
1256
struct sock *sk;
net/core/sock_map.c
1284
struct sock *sk;
net/core/sock_map.c
142
static void sock_map_del_link(struct sock *sk,
net/core/sock_map.c
1621
static void sock_map_unlink(struct sock *sk, struct sk_psock_link *link)
net/core/sock_map.c
1635
static void sock_map_remove_links(struct sock *sk, struct sk_psock *psock)
net/core/sock_map.c
1645
void sock_map_unhash(struct sock *sk)
net/core/sock_map.c
1647
void (*saved_unhash)(struct sock *sk);
net/core/sock_map.c
1672
void sock_map_destroy(struct sock *sk)
net/core/sock_map.c
1674
void (*saved_destroy)(struct sock *sk);
net/core/sock_map.c
1701
void sock_map_close(struct sock *sk, long timeout)
net/core/sock_map.c
1703
void (*saved_close)(struct sock *sk, long timeout);
net/core/sock_map.c
179
static void sock_map_unref(struct sock *sk, void *link_raw)
net/core/sock_map.c
189
static int sock_map_init_proto(struct sock *sk, struct sk_psock *psock)
net/core/sock_map.c
19
struct sock **sks;
net/core/sock_map.c
197
static struct sk_psock *sock_map_psock_get_checked(struct sock *sk)
net/core/sock_map.c
217
static int sock_map_link(struct bpf_map *map, struct sock *sk)
net/core/sock_map.c
350
struct sock **psk = &stab->sks[i];
net/core/sock_map.c
351
struct sock *sk;
net/core/sock_map.c
377
static struct sock *__sock_map_lookup_elem(struct bpf_map *map, u32 key)
net/core/sock_map.c
390
struct sock *sk;
net/core/sock_map.c
402
struct sock *sk;
net/core/sock_map.c
415
static int __sock_map_delete(struct bpf_stab *stab, struct sock *sk_test,
net/core/sock_map.c
416
struct sock **psk)
net/core/sock_map.c
418
struct sock *sk = NULL;
net/core/sock_map.c
434
static void sock_map_delete_from_link(struct bpf_map *map, struct sock *sk,
net/core/sock_map.c
446
struct sock **psk;
net/core/sock_map.c
471
struct sock *sk, u64 flags)
net/core/sock_map.c
476
struct sock *osk;
net/core/sock_map.c
528
static bool sock_map_redirect_allowed(const struct sock *sk)
net/core/sock_map.c
536
static bool sock_map_sk_is_suitable(const struct sock *sk)
net/core/sock_map.c
541
static bool sock_map_sk_state_allowed(const struct sock *sk)
net/core/sock_map.c
556
struct sock *sk, u64 flags);
net/core/sock_map.c
561
struct socket *sock;
net/core/sock_map.c
562
struct sock *sk;
net/core/sock_map.c
573
sock = sockfd_lookup(ufd, &ret);
net/core/sock_map.c
574
if (!sock)
net/core/sock_map.c
576
sk = sock->sk;
net/core/sock_map.c
58
sizeof(struct sock *),
net/core/sock_map.c
595
sockfd_put(sock);
net/core/sock_map.c
602
struct sock *sk = (struct sock *)value;
net/core/sock_map.c
650
struct sock *sk;
net/core/sock_map.c
678
struct sock *sk;
net/core/sock_map.c
708
struct sock *sk;
net/core/sock_map.c
716
__bpf_md_ptr(struct sock *, sk);
net/core/sock_map.c
721
struct sock *sk)
net/core/sock_map.c
819
usage += (u64)map->max_entries * sizeof(struct sock *);
net/core/sock_map.c
850
struct sock *sk;
net/core/sock_map.c
895
static struct sock *__sock_hash_lookup_elem(struct bpf_map *map, void *key)
net/core/sock_map.c
918
static void sock_hash_delete_from_link(struct bpf_map *map, struct sock *sk,
net/core/sock_map.c
968
u32 hash, struct sock *sk,
net/core/sock_map.c
994
struct sock *sk, u64 flags)
net/core/sock_reuseport.c
104
static int reuseport_sock_index(struct sock *sk,
net/core/sock_reuseport.c
124
static void __reuseport_add_sock(struct sock *sk,
net/core/sock_reuseport.c
134
static bool __reuseport_detach_sock(struct sock *sk,
net/core/sock_reuseport.c
149
static void __reuseport_add_closed_sock(struct sock *sk,
net/core/sock_reuseport.c
158
static bool __reuseport_detach_closed_sock(struct sock *sk,
net/core/sock_reuseport.c
188
int reuseport_alloc(struct sock *sk, bool bind_inany)
net/core/sock_reuseport.c
21
static int reuseport_resurrect(struct sock *sk, struct sock_reuseport *old_reuse,
net/core/sock_reuseport.c
24
void reuseport_has_conns_set(struct sock *sk)
net/core/sock_reuseport.c
258
struct sock *sk;
net/core/sock_reuseport.c
283
reuse->num_socks * sizeof(struct sock *));
net/core/sock_reuseport.c
287
reuse->num_closed_socks * sizeof(struct sock *));
net/core/sock_reuseport.c
320
int reuseport_add_sock(struct sock *sk, struct sock *sk2, bool bind_inany)
net/core/sock_reuseport.c
368
static int reuseport_resurrect(struct sock *sk, struct sock_reuseport *old_reuse,
net/core/sock_reuseport.c
427
void reuseport_detach_sock(struct sock *sk)
net/core/sock_reuseport.c
462
void reuseport_stop_listen_sock(struct sock *sk)
net/core/sock_reuseport.c
497
static struct sock *run_bpf_filter(struct sock_reuseport *reuse, u16 socks,
net/core/sock_reuseport.c
52
static void reuseport_get_incoming_cpu(struct sock *sk, struct sock_reuseport *reuse)
net/core/sock_reuseport.c
527
static struct sock *reuseport_select_sock_by_hash(struct sock_reuseport *reuse,
net/core/sock_reuseport.c
530
struct sock *first_valid_sk = NULL;
net/core/sock_reuseport.c
535
struct sock *sk = reuse->socks[i];
net/core/sock_reuseport.c
568
struct sock *reuseport_select_sock(struct sock *sk,
net/core/sock_reuseport.c
575
struct sock *sk2 = NULL;
net/core/sock_reuseport.c
58
static void reuseport_put_incoming_cpu(struct sock *sk, struct sock_reuseport *reuse)
net/core/sock_reuseport.c
620
struct sock *reuseport_migrate_sock(struct sock *sk,
net/core/sock_reuseport.c
621
struct sock *migrating_sk,
net/core/sock_reuseport.c
625
struct sock *nsk = NULL;
net/core/sock_reuseport.c
64
void reuseport_update_incoming_cpu(struct sock *sk, int val)
net/core/sock_reuseport.c
683
int reuseport_attach_prog(struct sock *sk, struct bpf_prog *prog)
net/core/sock_reuseport.c
715
int reuseport_detach_prog(struct sock *sk)
net/core/stream.c
100
void sk_stream_wait_close(struct sock *sk, long timeout)
net/core/stream.c
121
int sk_stream_wait_memory(struct sock *sk, long *timeo_p)
net/core/stream.c
189
int sk_stream_error(struct sock *sk, int flags, int err)
net/core/stream.c
199
void sk_stream_kill_queues(struct sock *sk)
net/core/stream.c
34
void sk_stream_write_space(struct sock *sk)
net/core/stream.c
36
struct socket *sock = sk->sk_socket;
net/core/stream.c
39
if (__sk_stream_is_writeable(sk, 1) && sock) {
net/core/stream.c
40
clear_bit(SOCK_NOSPACE, &sock->flags);
net/core/stream.c
60
int sk_stream_wait_connect(struct sock *sk, long *timeo_p)
net/core/stream.c
94
static int sk_stream_closing(const struct sock *sk)
net/devlink/devl_internal.h
250
int devlink_nl_notify_filter(struct sock *dsk, struct sk_buff *skb, void *data);
net/devlink/health.c
1296
struct sock *sk = skb->sk;
net/devlink/netlink.c
124
int devlink_nl_notify_filter(struct sock *dsk, struct sk_buff *skb, void *data)
net/handshake/alert.c
34
int tls_alert_send(struct socket *sock, u8 level, u8 description)
net/handshake/alert.c
44
trace_tls_alert_send(sock->sk, level, description);
net/handshake/alert.c
63
ret = sock_sendmsg(sock, &msg);
net/handshake/alert.c
74
u8 tls_get_record_type(const struct sock *sk, const struct cmsghdr *cmsg)
net/handshake/alert.c
97
void tls_alert_recv(const struct sock *sk, const struct msghdr *msg,
net/handshake/handshake-test.c
148
struct socket *sock;
net/handshake/handshake-test.c
153
&sock, 1);
net/handshake/handshake-test.c
157
result = handshake_req_submit(sock, NULL, GFP_KERNEL);
net/handshake/handshake-test.c
162
sock_release(sock);
net/handshake/handshake-test.c
186
struct socket *sock;
net/handshake/handshake-test.c
194
&sock, 1);
net/handshake/handshake-test.c
196
sock->file = NULL;
net/handshake/handshake-test.c
199
result = handshake_req_submit(sock, req, GFP_KERNEL);
net/handshake/handshake-test.c
205
sock_release(sock);
net/handshake/handshake-test.c
212
struct socket *sock;
net/handshake/handshake-test.c
221
&sock, 1);
net/handshake/handshake-test.c
223
filp = sock_alloc_file(sock, O_NONBLOCK, NULL);
net/handshake/handshake-test.c
225
KUNIT_ASSERT_NOT_NULL(test, sock->sk);
net/handshake/handshake-test.c
226
sock->file = filp;
net/handshake/handshake-test.c
229
err = handshake_req_submit(sock, req, GFP_KERNEL);
net/handshake/handshake-test.c
234
result = handshake_req_hash_lookup(sock->sk);
net/handshake/handshake-test.c
240
handshake_req_cancel(sock->sk);
net/handshake/handshake-test.c
250
struct socket *sock;
net/handshake/handshake-test.c
260
&sock, 1);
net/handshake/handshake-test.c
262
filp = sock_alloc_file(sock, O_NONBLOCK, NULL);
net/handshake/handshake-test.c
264
KUNIT_ASSERT_NOT_NULL(test, sock->sk);
net/handshake/handshake-test.c
265
sock->file = filp;
net/handshake/handshake-test.c
267
net = sock_net(sock->sk);
net/handshake/handshake-test.c
276
err = handshake_req_submit(sock, req, GFP_KERNEL);
net/handshake/handshake-test.c
290
struct socket *sock;
net/handshake/handshake-test.c
301
&sock, 1);
net/handshake/handshake-test.c
303
filp = sock_alloc_file(sock, O_NONBLOCK, NULL);
net/handshake/handshake-test.c
305
KUNIT_ASSERT_NOT_NULL(test, sock->sk);
net/handshake/handshake-test.c
306
sock->file = filp;
net/handshake/handshake-test.c
310
err = handshake_req_submit(sock, req1, GFP_KERNEL);
net/handshake/handshake-test.c
313
err = handshake_req_submit(sock, req2, GFP_KERNEL);
net/handshake/handshake-test.c
319
handshake_req_cancel(sock->sk);
net/handshake/handshake-test.c
328
struct socket *sock;
net/handshake/handshake-test.c
338
&sock, 1);
net/handshake/handshake-test.c
341
filp = sock_alloc_file(sock, O_NONBLOCK, NULL);
net/handshake/handshake-test.c
343
sock->file = filp;
net/handshake/handshake-test.c
346
err = handshake_req_submit(sock, req, GFP_KERNEL);
net/handshake/handshake-test.c
353
result = handshake_req_cancel(sock->sk);
net/handshake/handshake-test.c
367
struct socket *sock;
net/handshake/handshake-test.c
378
&sock, 1);
net/handshake/handshake-test.c
381
filp = sock_alloc_file(sock, O_NONBLOCK, NULL);
net/handshake/handshake-test.c
383
sock->file = filp;
net/handshake/handshake-test.c
386
err = handshake_req_submit(sock, req, GFP_KERNEL);
net/handshake/handshake-test.c
390
net = sock_net(sock->sk);
net/handshake/handshake-test.c
403
result = handshake_req_cancel(sock->sk);
net/handshake/handshake-test.c
417
struct socket *sock;
net/handshake/handshake-test.c
428
&sock, 1);
net/handshake/handshake-test.c
431
filp = sock_alloc_file(sock, O_NONBLOCK, NULL);
net/handshake/handshake-test.c
433
sock->file = filp;
net/handshake/handshake-test.c
436
err = handshake_req_submit(sock, req, GFP_KERNEL);
net/handshake/handshake-test.c
440
net = sock_net(sock->sk);
net/handshake/handshake-test.c
457
result = handshake_req_cancel(sock->sk);
net/handshake/handshake-test.c
484
struct socket *sock;
net/handshake/handshake-test.c
495
&sock, 1);
net/handshake/handshake-test.c
498
filp = sock_alloc_file(sock, O_NONBLOCK, NULL);
net/handshake/handshake-test.c
500
sock->file = filp;
net/handshake/handshake-test.c
503
err = handshake_req_submit(sock, req, GFP_KERNEL);
net/handshake/handshake-test.c
506
handshake_req_cancel(sock->sk);
net/handshake/handshake.h
37
struct sock *hr_sk;
net/handshake/handshake.h
38
void (*hr_odestruct)(struct sock *sk);
net/handshake/handshake.h
72
int tls_alert_send(struct socket *sock, u8 level, u8 description);
net/handshake/handshake.h
87
struct handshake_req *handshake_req_hash_lookup(struct sock *sk);
net/handshake/handshake.h
89
int handshake_req_submit(struct socket *sock, struct handshake_req *req,
net/handshake/handshake.h
93
bool handshake_req_cancel(struct sock *sk);
net/handshake/netlink.c
137
struct socket *sock;
net/handshake/netlink.c
144
sock = sockfd_lookup(fd, &err);
net/handshake/netlink.c
145
if (!sock)
net/handshake/netlink.c
148
req = handshake_req_hash_lookup(sock->sk);
net/handshake/netlink.c
151
trace_handshake_cmd_done_err(net, req, sock->sk, err);
net/handshake/netlink.c
152
sockfd_put(sock);
net/handshake/netlink.c
156
trace_handshake_cmd_done(net, req, sock->sk, fd);
net/handshake/netlink.c
163
sockfd_put(sock);
net/handshake/request.c
251
int handshake_req_submit(struct socket *sock, struct handshake_req *req,
net/handshake/request.c
258
if (!sock || !req || !sock->file) {
net/handshake/request.c
263
req->hr_sk = sock->sk;
net/handshake/request.c
274
req->hr_file = get_file(sock->file);
net/handshake/request.c
327
struct sock *sk = req->hr_sk;
net/handshake/request.c
352
bool handshake_req_cancel(struct sock *sk)
net/handshake/request.c
60
struct handshake_req *handshake_req_hash_lookup(struct sock *sk)
net/handshake/request.c
86
static void handshake_sk_destruct(struct sock *sk)
net/handshake/request.c
88
void (*sk_destruct)(struct sock *sk);
net/handshake/tlshd.c
434
bool tls_handshake_cancel(struct sock *sk)
net/handshake/tlshd.c
445
void tls_handshake_close(struct socket *sock)
net/handshake/tlshd.c
449
req = handshake_req_hash_lookup(sock->sk);
net/handshake/tlshd.c
454
tls_alert_send(sock, TLS_ALERT_LEVEL_WARNING,
net/ieee802154/socket.c
1001
static int ieee802154_create(struct net *net, struct socket *sock,
net/ieee802154/socket.c
1004
struct sock *sk;
net/ieee802154/socket.c
1012
switch (sock->type) {
net/ieee802154/socket.c
102
struct sock *sk = sock->sk;
net/ieee802154/socket.c
1035
sock->ops = ops;
net/ieee802154/socket.c
1037
sock_init_data(sock, sk);
net/ieee802154/socket.c
1059
sock->sk = NULL;
net/ieee802154/socket.c
107
return sock_no_bind(sock, uaddr, addr_len);
net/ieee802154/socket.c
110
static int ieee802154_sock_connect(struct socket *sock, struct sockaddr_unsized *uaddr,
net/ieee802154/socket.c
113
struct sock *sk = sock->sk;
net/ieee802154/socket.c
124
static int ieee802154_dev_ioctl(struct sock *sk, struct ifreq __user *arg,
net/ieee802154/socket.c
152
static int ieee802154_sock_ioctl(struct socket *sock, unsigned int cmd,
net/ieee802154/socket.c
155
struct sock *sk = sock->sk;
net/ieee802154/socket.c
173
static int raw_hash(struct sock *sk)
net/ieee802154/socket.c
183
static void raw_unhash(struct sock *sk)
net/ieee802154/socket.c
191
static void raw_close(struct sock *sk, long timeout)
net/ieee802154/socket.c
196
static int raw_bind(struct sock *sk, struct sockaddr_unsized *_uaddr, int len)
net/ieee802154/socket.c
230
static int raw_connect(struct sock *sk, struct sockaddr_unsized *uaddr,
net/ieee802154/socket.c
236
static int raw_disconnect(struct sock *sk, int flags)
net/ieee802154/socket.c
241
static int raw_sendmsg(struct sock *sk, struct msghdr *msg, size_t size)
net/ieee802154/socket.c
315
static int raw_recvmsg(struct sock *sk, struct msghdr *msg, size_t len,
net/ieee802154/socket.c
348
static int raw_rcv_skb(struct sock *sk, struct sk_buff *skb)
net/ieee802154/socket.c
364
struct sock *sk;
net/ieee802154/socket.c
382
static int raw_getsockopt(struct sock *sk, int level, int optname,
net/ieee802154/socket.c
388
static int raw_setsockopt(struct sock *sk, int level, int optname,
net/ieee802154/socket.c
397
.obj_size = sizeof(struct sock),
net/ieee802154/socket.c
436
struct sock sk;
net/ieee802154/socket.c
451
static inline struct dgram_sock *dgram_sk(const struct sock *sk)
net/ieee802154/socket.c
456
static int dgram_hash(struct sock *sk)
net/ieee802154/socket.c
466
static void dgram_unhash(struct sock *sk)
net/ieee802154/socket.c
474
static int dgram_init(struct sock *sk)
net/ieee802154/socket.c
483
static void dgram_close(struct sock *sk, long timeout)
net/ieee802154/socket.c
488
static int dgram_bind(struct sock *sk, struct sockaddr_unsized *uaddr, int len)
net/ieee802154/socket.c
533
static int dgram_ioctl(struct sock *sk, int cmd, int *karg)
net/ieee802154/socket.c
566
static int dgram_connect(struct sock *sk, struct sockaddr_unsized *uaddr,
net/ieee802154/socket.c
595
static int dgram_disconnect(struct sock *sk, int flags)
net/ieee802154/socket.c
606
static int dgram_sendmsg(struct sock *sk, struct msghdr *msg, size_t size)
net/ieee802154/socket.c
705
static int dgram_recvmsg(struct sock *sk, struct msghdr *msg, size_t len,
net/ieee802154/socket.c
760
static int dgram_rcv_skb(struct sock *sk, struct sk_buff *skb)
net/ieee802154/socket.c
795
struct sock *sk, *prev = NULL;
net/ieee802154/socket.c
80
static int ieee802154_sock_release(struct socket *sock)
net/ieee802154/socket.c
82
struct sock *sk = sock->sk;
net/ieee802154/socket.c
834
static int dgram_getsockopt(struct sock *sk, int level, int optname,
net/ieee802154/socket.c
85
sock->sk = NULL;
net/ieee802154/socket.c
881
static int dgram_setsockopt(struct sock *sk, int level, int optname,
net/ieee802154/socket.c
91
static int ieee802154_sock_sendmsg(struct socket *sock, struct msghdr *msg,
net/ieee802154/socket.c
94
struct sock *sk = sock->sk;
net/ieee802154/socket.c
99
static int ieee802154_sock_bind(struct socket *sock, struct sockaddr_unsized *uaddr,
net/ieee802154/socket.c
993
static void ieee802154_sock_destruct(struct sock *sk)
net/ipv4/af_inet.c
1023
static int inet_compat_routing_ioctl(struct sock *sk, unsigned int cmd,
net/ipv4/af_inet.c
1043
static int inet_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
net/ipv4/af_inet.c
1046
struct sock *sk = sock->sk;
net/ipv4/af_inet.c
1262
static int inet_sk_reselect_saddr(struct sock *sk)
net/ipv4/af_inet.c
1317
int inet_sk_rebuild_header(struct sock *sk)
net/ipv4/af_inet.c
1351
void inet_sk_set_state(struct sock *sk, int state)
net/ipv4/af_inet.c
1358
void inet_sk_state_store(struct sock *sk, int newstate)
net/ipv4/af_inet.c
140
void inet_sock_destruct(struct sock *sk)
net/ipv4/af_inet.c
1580
int inet_recv_error(struct sock *sk, struct msghdr *msg, int len)
net/ipv4/af_inet.c
1634
int inet_ctl_sock_create(struct sock **sk, unsigned short family,
net/ipv4/af_inet.c
1638
struct socket *sock;
net/ipv4/af_inet.c
1639
int rc = sock_create_kern(net, family, type, protocol, &sock);
net/ipv4/af_inet.c
1642
*sk = sock->sk;
net/ipv4/af_inet.c
181
static int inet_autobind(struct sock *sk)
net/ipv4/af_inet.c
198
int __inet_listen_sk(struct sock *sk, int backlog)
net/ipv4/af_inet.c
237
int inet_listen(struct socket *sock, int backlog)
net/ipv4/af_inet.c
239
struct sock *sk = sock->sk;
net/ipv4/af_inet.c
244
if (sock->state != SS_UNCONNECTED || sock->type != SOCK_STREAM)
net/ipv4/af_inet.c
259
static int inet_create(struct net *net, struct socket *sock, int protocol,
net/ipv4/af_inet.c
262
struct sock *sk;
net/ipv4/af_inet.c
273
sock->state = SS_UNCONNECTED;
net/ipv4/af_inet.c
279
list_for_each_entry_rcu(answer, &inetsw[sock->type], list) {
net/ipv4/af_inet.c
307
PF_INET, protocol, sock->type);
net/ipv4/af_inet.c
321
if (sock->type == SOCK_RAW && !kern &&
net/ipv4/af_inet.c
325
sock->ops = answer->ops;
net/ipv4/af_inet.c
349
if (SOCK_RAW == sock->type) {
net/ipv4/af_inet.c
362
sock_init_data(sock, sk);
net/ipv4/af_inet.c
408
sock->sk = NULL;
net/ipv4/af_inet.c
418
int inet_release(struct socket *sock)
net/ipv4/af_inet.c
420
struct sock *sk = sock->sk;
net/ipv4/af_inet.c
443
sock->sk = NULL;
net/ipv4/af_inet.c
449
int inet_bind_sk(struct sock *sk, struct sockaddr_unsized *uaddr, int addr_len)
net/ipv4/af_inet.c
472
int inet_bind(struct socket *sock, struct sockaddr_unsized *uaddr, int addr_len)
net/ipv4/af_inet.c
474
return inet_bind_sk(sock->sk, uaddr, addr_len);
net/ipv4/af_inet.c
478
int __inet_bind(struct sock *sk, struct sockaddr_unsized *uaddr, int addr_len,
net/ipv4/af_inet.c
575
int inet_dgram_connect(struct socket *sock, struct sockaddr_unsized *uaddr,
net/ipv4/af_inet.c
578
struct sock *sk = sock->sk;
net/ipv4/af_inet.c
603
static long inet_wait_for_connect(struct sock *sk, long timeo, int writebias)
net/ipv4/af_inet.c
631
int __inet_stream_connect(struct socket *sock, struct sockaddr_unsized *uaddr,
net/ipv4/af_inet.c
634
struct sock *sk = sock->sk;
net/ipv4/af_inet.c
654
sock->state = err ? SS_DISCONNECTING : SS_UNCONNECTED;
net/ipv4/af_inet.c
659
switch (sock->state) {
net/ipv4/af_inet.c
688
sock->state = SS_CONNECTING;
net/ipv4/af_inet.c
734
sock->state = SS_CONNECTED;
net/ipv4/af_inet.c
741
sock->state = SS_UNCONNECTED;
net/ipv4/af_inet.c
744
sock->state = SS_DISCONNECTING;
net/ipv4/af_inet.c
749
int inet_stream_connect(struct socket *sock, struct sockaddr_unsized *uaddr,
net/ipv4/af_inet.c
754
lock_sock(sock->sk);
net/ipv4/af_inet.c
755
err = __inet_stream_connect(sock, uaddr, addr_len, flags, 0);
net/ipv4/af_inet.c
756
release_sock(sock->sk);
net/ipv4/af_inet.c
761
void __inet_accept(struct socket *sock, struct socket *newsock, struct sock *newsk)
net/ipv4/af_inet.c
775
if (test_bit(SOCK_SUPPORT_ZC, &sock->flags))
net/ipv4/af_inet.c
787
int inet_accept(struct socket *sock, struct socket *newsock,
net/ipv4/af_inet.c
790
struct sock *sk1 = sock->sk, *sk2;
net/ipv4/af_inet.c
799
__inet_accept(sock, newsock, sk2);
net/ipv4/af_inet.c
808
int inet_getname(struct socket *sock, struct sockaddr *uaddr,
net/ipv4/af_inet.c
811
struct sock *sk = sock->sk;
net/ipv4/af_inet.c
844
int inet_send_prepare(struct sock *sk)
net/ipv4/af_inet.c
856
int inet_sendmsg(struct socket *sock, struct msghdr *msg, size_t size)
net/ipv4/af_inet.c
858
struct sock *sk = sock->sk;
net/ipv4/af_inet.c
870
void inet_splice_eof(struct socket *sock)
net/ipv4/af_inet.c
873
struct sock *sk = sock->sk;
net/ipv4/af_inet.c
881
prot->splice_eof(sock);
net/ipv4/af_inet.c
884
int inet_recvmsg(struct socket *sock, struct msghdr *msg, size_t size,
net/ipv4/af_inet.c
887
struct sock *sk = sock->sk;
net/ipv4/af_inet.c
899
int inet_shutdown(struct socket *sock, int how)
net/ipv4/af_inet.c
901
struct sock *sk = sock->sk;
net/ipv4/af_inet.c
914
if (sock->state == SS_CONNECTING) {
net/ipv4/af_inet.c
917
sock->state = SS_DISCONNECTING;
net/ipv4/af_inet.c
919
sock->state = SS_CONNECTED;
net/ipv4/af_inet.c
944
sock->state = err ? SS_DISCONNECTING : SS_UNCONNECTED;
net/ipv4/af_inet.c
965
int inet_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
net/ipv4/af_inet.c
967
struct sock *sk = sock->sk;
net/ipv4/arp.c
653
static int arp_xmit_finish(struct net *net, struct sock *sk, struct sk_buff *skb)
net/ipv4/arp.c
702
static int arp_process(struct net *net, struct sock *sk, struct sk_buff *skb)
net/ipv4/bpf_tcp_ca.c
124
__tcp_send_ack((struct sock *)tp, rcv_nxt, 0);
net/ipv4/bpf_tcp_ca.c
258
static u32 bpf_tcp_ca_ssthresh(struct sock *sk)
net/ipv4/bpf_tcp_ca.c
263
static void bpf_tcp_ca_cong_avoid(struct sock *sk, u32 ack, u32 acked)
net/ipv4/bpf_tcp_ca.c
267
static void bpf_tcp_ca_set_state(struct sock *sk, u8 new_state)
net/ipv4/bpf_tcp_ca.c
271
static void bpf_tcp_ca_cwnd_event(struct sock *sk, enum tcp_ca_event ev)
net/ipv4/bpf_tcp_ca.c
275
static void bpf_tcp_ca_cwnd_event_tx_start(struct sock *sk)
net/ipv4/bpf_tcp_ca.c
279
static void bpf_tcp_ca_in_ack_event(struct sock *sk, u32 flags)
net/ipv4/bpf_tcp_ca.c
283
static void bpf_tcp_ca_pkts_acked(struct sock *sk, const struct ack_sample *sample)
net/ipv4/bpf_tcp_ca.c
287
static u32 bpf_tcp_ca_min_tso_segs(struct sock *sk)
net/ipv4/bpf_tcp_ca.c
292
static void bpf_tcp_ca_cong_control(struct sock *sk, u32 ack, int flag,
net/ipv4/bpf_tcp_ca.c
297
static u32 bpf_tcp_ca_undo_cwnd(struct sock *sk)
net/ipv4/bpf_tcp_ca.c
302
static u32 bpf_tcp_ca_sndbuf_expand(struct sock *sk)
net/ipv4/bpf_tcp_ca.c
307
static void __bpf_tcp_ca_init(struct sock *sk)
net/ipv4/bpf_tcp_ca.c
311
static void __bpf_tcp_ca_release(struct sock *sk)
net/ipv4/bpf_tcp_ca.c
75
case offsetof(struct sock, sk_pacing_rate):
net/ipv4/bpf_tcp_ca.c
76
end = offsetofend(struct sock, sk_pacing_rate);
net/ipv4/bpf_tcp_ca.c
78
case offsetof(struct sock, sk_pacing_status):
net/ipv4/bpf_tcp_ca.c
79
end = offsetofend(struct sock, sk_pacing_status);
net/ipv4/cipso_ipv4.c
1849
int cipso_v4_sock_setattr(struct sock *sk,
net/ipv4/cipso_ipv4.c
2053
void cipso_v4_sock_delattr(struct sock *sk)
net/ipv4/cipso_ipv4.c
2143
int cipso_v4_sock_getattr(struct sock *sk, struct netlbl_lsm_secattr *secattr)
net/ipv4/datagram.c
102
void ip4_datagram_release_cb(struct sock *sk)
net/ipv4/datagram.c
19
int __ip4_datagram_connect(struct sock *sk, struct sockaddr_unsized *uaddr, int addr_len)
net/ipv4/datagram.c
87
int ip4_datagram_connect(struct sock *sk, struct sockaddr_unsized *uaddr, int addr_len)
net/ipv4/devinet.c
1786
struct net **tgt_net, struct sock *sk,
net/ipv4/devinet.c
634
struct sock *sk = net->ipv4.mc_autojoin_sk;
net/ipv4/esp4.c
126
static struct sock *esp_find_tcp_sk(struct xfrm_state *x)
net/ipv4/esp4.c
131
struct sock *sk;
net/ipv4/esp4.c
153
struct sock *sk;
net/ipv4/esp4.c
179
static int esp_output_tcp_encap_cb(struct net *net, struct sock *sk,
net/ipv4/esp4.c
347
struct sock *sk;
net/ipv4/esp4.c
439
struct sock *sk = skb->sk;
net/ipv4/fib_frontend.c
1428
struct sock *sk;
net/ipv4/fou_core.c
120
static int gue_udp_recv(struct sock *sk, struct sk_buff *skb)
net/ipv4/fou_core.c
234
static const struct net_offload *fou_gro_ops(const struct sock *sk,
net/ipv4/fou_core.c
244
static struct sk_buff *fou_gro_receive(struct sock *sk,
net/ipv4/fou_core.c
25
struct sock *sk;
net/ipv4/fou_core.c
276
static int fou_gro_complete(struct sock *sk, struct sk_buff *skb,
net/ipv4/fou_core.c
325
static struct sk_buff *gue_gro_receive(struct sock *sk,
net/ipv4/fou_core.c
468
static int gue_gro_complete(struct sock *sk, struct sk_buff *skb, int nhoff)
net/ipv4/fou_core.c
51
static inline struct fou *fou_from_sock(struct sock *sk)
net/ipv4/fou_core.c
512
struct sock *sk = fou->sk;
net/ipv4/fou_core.c
569
struct socket *sock = NULL;
net/ipv4/fou_core.c
571
struct sock *sk;
net/ipv4/fou_core.c
576
err = udp_sock_create(net, &cfg->udp_config, &sock);
net/ipv4/fou_core.c
587
sk = sock->sk;
net/ipv4/fou_core.c
627
*sockp = sock;
net/ipv4/fou_core.c
632
if (sock)
net/ipv4/fou_core.c
633
udp_tunnel_sock_release(sock->sk);
net/ipv4/fou_core.c
73
static int fou_udp_recv(struct sock *sk, struct sk_buff *skb)
net/ipv4/fou_core.c
779
struct sock *sk = fou->sk;
net/ipv4/icmp.c
1760
struct sock *sk;
net/ipv4/icmp.c
203
static DEFINE_PER_CPU(struct sock *, ipv4_icmp_sk);
net/ipv4/icmp.c
206
static inline struct sock *icmp_xmit_lock(struct net *net)
net/ipv4/icmp.c
208
struct sock *sk;
net/ipv4/icmp.c
222
static inline void icmp_xmit_unlock(struct sock *sk)
net/ipv4/icmp.c
382
static void icmp_push_reply(struct sock *sk,
net/ipv4/icmp.c
423
struct sock *sk;
net/ipv4/icmp.c
830
struct sock *sk;
net/ipv4/igmp.c
2294
static int __ip_mc_join_group(struct sock *sk, struct ip_mreqn *imr,
net/ipv4/igmp.c
2346
int ip_mc_join_group(struct sock *sk, struct ip_mreqn *imr)
net/ipv4/igmp.c
2354
int ip_mc_join_group_ssm(struct sock *sk, struct ip_mreqn *imr,
net/ipv4/igmp.c
2360
static int ip_mc_leave_src(struct sock *sk, struct ip_mc_socklist *iml,
net/ipv4/igmp.c
2380
int ip_mc_leave_group(struct sock *sk, struct ip_mreqn *imr)
net/ipv4/igmp.c
2428
int ip_mc_source(int add, int omode, struct sock *sk, struct
net/ipv4/igmp.c
2567
int ip_mc_msfilter(struct sock *sk, struct ip_msfilter *msf, int ifindex)
net/ipv4/igmp.c
2657
int ip_mc_msfget(struct sock *sk, struct ip_msfilter *msf,
net/ipv4/igmp.c
2717
int ip_mc_gsfget(struct sock *sk, struct group_filter *gsf,
net/ipv4/igmp.c
2766
int ip_mc_sf_allow(const struct sock *sk, __be32 loc_addr, __be32 rmt_addr,
net/ipv4/igmp.c
2814
void ip_mc_drop_socket(struct sock *sk)
net/ipv4/inet_connection_sock.c
1010
bool inet_csk_reqsk_queue_drop(struct sock *sk, struct request_sock *req)
net/ipv4/inet_connection_sock.c
1015
void inet_csk_reqsk_queue_drop_and_put(struct sock *sk, struct request_sock *req)
net/ipv4/inet_connection_sock.c
1025
struct sock *sk_listener = req->rsk_listener;
net/ipv4/inet_connection_sock.c
1032
struct sock *nsk;
net/ipv4/inet_connection_sock.c
111
bool inet_rcv_saddr_any(const struct sock *sk)
net/ipv4/inet_connection_sock.c
1146
req->timeout = tcp_timeout_init((struct sock *)req);
net/ipv4/inet_connection_sock.c
1164
bool inet_csk_reqsk_queue_hash_add(struct sock *sk, struct request_sock *req)
net/ipv4/inet_connection_sock.c
1173
static void inet_clone_ulp(const struct request_sock *req, struct sock *newsk,
net/ipv4/inet_connection_sock.c
1192
struct sock *inet_csk_clone_lock(const struct sock *sk,
net/ipv4/inet_connection_sock.c
1196
struct sock *newsk = sk_clone_lock(sk, priority);
net/ipv4/inet_connection_sock.c
1259
void inet_csk_destroy_sock(struct sock *sk)
net/ipv4/inet_connection_sock.c
1281
void inet_csk_prepare_for_destroy_sock(struct sock *sk)
net/ipv4/inet_connection_sock.c
1292
void inet_csk_prepare_forced_close(struct sock *sk)
net/ipv4/inet_connection_sock.c
130
bool inet_sk_get_local_port_range(const struct sock *sk, int *low, int *high)
net/ipv4/inet_connection_sock.c
1302
static int inet_ulp_can_listen(const struct sock *sk)
net/ipv4/inet_connection_sock.c
1321
int inet_csk_listen_start(struct sock *sk)
net/ipv4/inet_connection_sock.c
1357
static void inet_child_forget(struct sock *sk, struct request_sock *req,
net/ipv4/inet_connection_sock.c
1358
struct sock *child)
net/ipv4/inet_connection_sock.c
1381
struct sock *inet_csk_reqsk_queue_add(struct sock *sk,
net/ipv4/inet_connection_sock.c
1383
struct sock *child)
net/ipv4/inet_connection_sock.c
1405
struct sock *inet_csk_complete_hashdance(struct sock *sk, struct sock *child,
net/ipv4/inet_connection_sock.c
1454
void inet_csk_listen_stop(struct sock *sk)
net/ipv4/inet_connection_sock.c
1469
struct sock *child = req->sk, *nsk;
net/ipv4/inet_connection_sock.c
1528
static struct dst_entry *inet_csk_rebuild_route(struct sock *sk, struct flowi *fl)
net/ipv4/inet_connection_sock.c
1547
struct dst_entry *inet_csk_update_pmtu(struct sock *sk, u32 mtu)
net/ipv4/inet_connection_sock.c
156
static bool inet_bind_conflict(const struct sock *sk, struct sock *sk2,
net/ipv4/inet_connection_sock.c
186
static bool __inet_bhash2_conflict(const struct sock *sk, struct sock *sk2,
net/ipv4/inet_connection_sock.c
204
static bool inet_bhash2_conflict(const struct sock *sk,
net/ipv4/inet_connection_sock.c
210
struct sock *sk2;
net/ipv4/inet_connection_sock.c
226
static int inet_csk_bind_conflict(const struct sock *sk,
net/ipv4/inet_connection_sock.c
234
struct sock *sk2;
net/ipv4/inet_connection_sock.c
273
static bool inet_bhash2_addr_any_conflict(const struct sock *sk, int port, int l3mdev,
net/ipv4/inet_connection_sock.c
315
inet_csk_find_open_port(const struct sock *sk, struct inet_bind_bucket **tb_ret,
net/ipv4/inet_connection_sock.c
412
const struct sock *sk)
net/ipv4/inet_connection_sock.c
442
void inet_csk_update_fastreuse(const struct sock *sk,
net/ipv4/inet_connection_sock.c
500
int inet_csk_get_port(struct sock *sk, unsigned short snum)
net/ipv4/inet_connection_sock.c
601
static int inet_csk_wait_for_connect(struct sock *sk, long timeo)
net/ipv4/inet_connection_sock.c
649
struct sock *inet_csk_accept(struct sock *sk, struct proto_accept_arg *arg)
net/ipv4/inet_connection_sock.c
654
struct sock *newsk;
net/ipv4/inet_connection_sock.c
718
void inet_csk_init_xmit_timers(struct sock *sk,
net/ipv4/inet_connection_sock.c
731
void inet_csk_clear_xmit_timers(struct sock *sk)
net/ipv4/inet_connection_sock.c
743
void inet_csk_clear_xmit_timers_sync(struct sock *sk)
net/ipv4/inet_connection_sock.c
758
struct dst_entry *inet_csk_route_req(const struct sock *sk,
net/ipv4/inet_connection_sock.c
793
struct dst_entry *inet_csk_route_child_sock(const struct sock *sk,
net/ipv4/inet_connection_sock.c
794
struct sock *newsk,
net/ipv4/inet_connection_sock.c
850
reqsk_alloc_noprof(const struct request_sock_ops *ops, struct sock *sk_listener,
net/ipv4/inet_connection_sock.c
882
struct sock *sk_listener,
net/ipv4/inet_connection_sock.c
914
struct sock *sk)
net/ipv4/inet_connection_sock.c
916
struct sock *req_sk, *nreq_sk;
net/ipv4/inet_connection_sock.c
92
bool inet_rcv_saddr_equal(const struct sock *sk, const struct sock *sk2,
net/ipv4/inet_connection_sock.c
932
offsetof(struct sock, sk_dontcopy_begin));
net/ipv4/inet_connection_sock.c
934
req->rsk_ops->obj_size - offsetof(struct sock, sk_dontcopy_end),
net/ipv4/inet_connection_sock.c
977
struct sock *sk = req_to_sk(req);
net/ipv4/inet_connection_sock.c
993
static bool __inet_csk_reqsk_queue_drop(struct sock *sk,
net/ipv4/inet_diag.c
209
int inet_sk_diag_fill(struct sock *sk, struct inet_connection_sock *icsk,
net/ipv4/inet_diag.c
585
const struct sock *sk)
net/ipv4/inet_diag.c
599
int inet_diag_bc_sk(const struct inet_diag_dump_data *cb_data, struct sock *sk)
net/ipv4/inet_diag.c
72
void inet_diag_msg_common_fill(struct inet_diag_msg *r, struct sock *sk)
net/ipv4/inet_diag.c
97
int inet_diag_msg_attrs_fill(struct sock *sk, struct sk_buff *skb,
net/ipv4/inet_diag.c
991
int inet_diag_handler_get_info(struct sk_buff *skb, struct sock *sk)
net/ipv4/inet_fragment.c
506
struct sock *sk = skb->sk;
net/ipv4/inet_fragment.c
605
struct sock *sk = is_skb_wmem(head) ? head->sk : NULL;
net/ipv4/inet_hashtables.c
1016
int inet_bhash2_update_saddr(struct sock *sk, void *saddr, int family)
net/ipv4/inet_hashtables.c
1021
void inet_bhash2_reset_saddr(struct sock *sk)
net/ipv4/inet_hashtables.c
1041
struct sock *sk, u64 port_offset,
net/ipv4/inet_hashtables.c
1044
struct sock *, __u16, struct inet_timewait_sock **,
net/ipv4/inet_hashtables.c
1210
inet_ehash_nolisten(sk, (struct sock *)tw, NULL);
net/ipv4/inet_hashtables.c
1258
struct sock *sk)
net/ipv4/inet_hashtables.c
132
const struct sock *sk)
net/ipv4/inet_hashtables.c
160
const struct sock *sk)
net/ipv4/inet_hashtables.c
173
const struct sock *sk;
net/ipv4/inet_hashtables.c
193
const struct sock *sk)
net/ipv4/inet_hashtables.c
205
void inet_bind_hash(struct sock *sk, struct inet_bind_bucket *tb,
net/ipv4/inet_hashtables.c
217
static void __inet_put_port(struct sock *sk)
net/ipv4/inet_hashtables.c
249
void inet_put_port(struct sock *sk)
net/ipv4/inet_hashtables.c
256
int __inet_inherit_port(const struct sock *sk, struct sock *child)
net/ipv4/inet_hashtables.c
335
inet_lhash2_bucket_sk(struct inet_hashinfo *h, struct sock *sk)
net/ipv4/inet_hashtables.c
352
static inline int compute_score(struct sock *sk, const struct net *net,
net/ipv4/inet_hashtables.c
390
struct sock *inet_lookup_reuseport(const struct net *net, struct sock *sk,
net/ipv4/inet_hashtables.c
396
struct sock *reuse_sk = NULL;
net/ipv4/inet_hashtables.c
416
static struct sock *inet_lhash2_lookup(const struct net *net,
net/ipv4/inet_hashtables.c
423
struct sock *sk, *result = NULL;
net/ipv4/inet_hashtables.c
443
struct sock *inet_lookup_run_sk_lookup(const struct net *net,
net/ipv4/inet_hashtables.c
450
struct sock *sk, *reuse_sk;
net/ipv4/inet_hashtables.c
465
struct sock *__inet_lookup_listener(const struct net *net,
net/ipv4/inet_hashtables.c
473
struct sock *result = NULL;
net/ipv4/inet_hashtables.c
510
void sock_gen_put(struct sock *sk)
net/ipv4/inet_hashtables.c
52
static u32 sk_ehashfn(const struct sock *sk)
net/ipv4/inet_hashtables.c
530
struct sock *__inet_lookup_established(const struct net *net,
net/ipv4/inet_hashtables.c
541
struct sock *sk;
net/ipv4/inet_hashtables.c
579
struct sock *sk, __u16 lport,
net/ipv4/inet_hashtables.c
596
struct sock *sk2;
net/ipv4/inet_hashtables.c
637
sk_nulls_del_node_init_rcu((struct sock *)tw);
net/ipv4/inet_hashtables.c
656
static u64 inet_sk_port_offset(const struct sock *sk)
net/ipv4/inet_hashtables.c
66
static bool sk_is_connect_bind(const struct sock *sk)
net/ipv4/inet_hashtables.c
668
static bool inet_ehash_lookup_by_sk(struct sock *sk,
net/ipv4/inet_hashtables.c
676
struct sock *esk;
net/ipv4/inet_hashtables.c
708
bool inet_ehash_insert(struct sock *sk, struct sock *osk, bool *found_dup_sk)
net/ipv4/inet_hashtables.c
745
bool inet_ehash_nolisten(struct sock *sk, struct sock *osk, bool *found_dup_sk)
net/ipv4/inet_hashtables.c
760
static int inet_reuseport_add_sock(struct sock *sk,
net/ipv4/inet_hashtables.c
766
struct sock *sk2;
net/ipv4/inet_hashtables.c
783
int inet_hash(struct sock *sk)
net/ipv4/inet_hashtables.c
827
void inet_unhash(struct sock *sk)
net/ipv4/inet_hashtables.c
861
int l3mdev, const struct sock *sk)
net/ipv4/inet_hashtables.c
871
unsigned short port, int l3mdev, const struct sock *sk)
net/ipv4/inet_hashtables.c
894
unsigned short port, int l3mdev, const struct sock *sk)
net/ipv4/inet_hashtables.c
906
inet_bhash2_addr_any_hashbucket(const struct sock *sk, const struct net *net, int port)
net/ipv4/inet_hashtables.c
921
static void inet_update_saddr(struct sock *sk, void *saddr, int family)
net/ipv4/inet_hashtables.c
934
static int __inet_bhash2_update_saddr(struct sock *sk, void *saddr, int family, bool reset)
net/ipv4/inet_timewait_sock.c
104
struct sock *sk,
net/ipv4/inet_timewait_sock.c
130
sk_add_bind_node((struct sock *)tw, &tw->tw_tb2->owners);
net/ipv4/inet_timewait_sock.c
168
struct inet_timewait_sock *inet_twsk_alloc(const struct sock *sk,
net/ipv4/inet_timewait_sock.c
311
struct sock *sk;
net/ipv4/inet_timewait_sock.c
39
__sk_del_bind_node((struct sock *)tw);
net/ipv4/inet_timewait_sock.c
45
__sock_put((struct sock *)tw);
net/ipv4/inet_timewait_sock.c
56
sk_nulls_del_node_init_rcu((struct sock *)tw);
net/ipv4/inet_timewait_sock.c
62
bhead2 = inet_bhashfn_portaddr(hashinfo, (struct sock *)tw,
net/ipv4/inet_timewait_sock.c
79
tcp_twsk_destructor((struct sock *)tw);
net/ipv4/ip_forward.c
65
static int ip_forward_finish(struct net *net, struct sock *sk, struct sk_buff *skb)
net/ipv4/ip_input.c
154
struct sock *last = NULL;
net/ipv4/ip_input.c
159
struct sock *sk = ra->sk;
net/ipv4/ip_input.c
229
static int ip_local_deliver_finish(struct net *net, struct sock *sk, struct sk_buff *skb)
net/ipv4/ip_input.c
327
struct sock *sk;
net/ipv4/ip_input.c
478
static int ip_rcv_finish(struct net *net, struct sock *sk, struct sk_buff *skb)
net/ipv4/ip_output.c
102
int __ip_local_out(struct net *net, struct sock *sk, struct sk_buff *skb)
net/ipv4/ip_output.c
125
int ip_local_out(struct net *net, struct sock *sk, struct sk_buff *skb)
net/ipv4/ip_output.c
1290
static int ip_setup_cork(struct sock *sk, struct inet_cork *cork,
net/ipv4/ip_output.c
1355
int ip_append_data(struct sock *sk, struct flowi4 *fl4,
net/ipv4/ip_output.c
1394
struct sk_buff *__ip_make_skb(struct sock *sk,
net/ipv4/ip_output.c
151
int ip_build_and_send_pkt(struct sk_buff *skb, const struct sock *sk,
net/ipv4/ip_output.c
1517
int ip_push_pending_frames(struct sock *sk, struct flowi4 *fl4)
net/ipv4/ip_output.c
1532
static void __ip_flush_pending_frames(struct sock *sk,
net/ipv4/ip_output.c
1544
void ip_flush_pending_frames(struct sock *sk)
net/ipv4/ip_output.c
1549
struct sk_buff *ip_make_skb(struct sock *sk,
net/ipv4/ip_output.c
1600
void ip_send_unicast_reply(struct sock *sk, const struct sock *orig_sk,
net/ipv4/ip_output.c
1669
skb_set_owner_edemux(nskb, (struct sock *)orig_sk);
net/ipv4/ip_output.c
199
static int ip_finish_output2(struct net *net, struct sock *sk, struct sk_buff *skb)
net/ipv4/ip_output.c
248
static int ip_finish_output_gso(struct net *net, struct sock *sk,
net/ipv4/ip_output.c
296
static int __ip_finish_output(struct net *net, struct sock *sk, struct sk_buff *skb)
net/ipv4/ip_output.c
317
static int ip_finish_output(struct net *net, struct sock *sk, struct sk_buff *skb)
net/ipv4/ip_output.c
333
static int ip_mc_finish_output(struct net *net, struct sock *sk,
net/ipv4/ip_output.c
367
int ip_mc_output(struct net *net, struct sock *sk, struct sk_buff *skb)
net/ipv4/ip_output.c
427
int ip_output(struct net *net, struct sock *sk, struct sk_buff *skb)
net/ipv4/ip_output.c
462
int __ip_queue_xmit(struct sock *sk, struct sk_buff *skb, struct flowi *fl,
net/ipv4/ip_output.c
545
int ip_queue_xmit(struct sock *sk, struct sk_buff *skb, struct flowi *fl)
net/ipv4/ip_output.c
575
static int ip_fragment(struct net *net, struct sock *sk, struct sk_buff *skb,
net/ipv4/ip_output.c
577
int (*output)(struct net *, struct sock *, struct sk_buff *))
net/ipv4/ip_output.c
760
int ip_do_fragment(struct net *net, struct sock *sk, struct sk_buff *skb,
net/ipv4/ip_output.c
761
int (*output)(struct net *, struct sock *, struct sk_buff *))
net/ipv4/ip_output.c
90
ip_fragment(struct net *net, struct sock *sk, struct sk_buff *skb,
net/ipv4/ip_output.c
92
int (*output)(struct net *, struct sock *, struct sk_buff *));
net/ipv4/ip_output.c
949
static int __ip_append_data(struct sock *sk,
net/ipv4/ip_sockglue.c
1376
void ipv4_pktinfo_prepare(const struct sock *sk, struct sk_buff *skb, bool drop_dst)
net/ipv4/ip_sockglue.c
1409
int ip_setsockopt(struct sock *sk, int level, int optname, sockptr_t optval,
net/ipv4/ip_sockglue.c
1445
static int ip_get_mcast_msfilter(struct sock *sk, sockptr_t optval,
net/ipv4/ip_sockglue.c
1472
static int compat_ip_get_mcast_msfilter(struct sock *sk, sockptr_t optval,
net/ipv4/ip_sockglue.c
1507
int do_ip_getsockopt(struct sock *sk, int level, int optname,
net/ipv4/ip_sockglue.c
169
void ip_cmsg_recv_offset(struct msghdr *msg, struct sock *sk,
net/ipv4/ip_sockglue.c
1760
int ip_getsockopt(struct sock *sk, int level,
net/ipv4/ip_sockglue.c
242
int ip_cmsg_send(struct sock *sk, struct msghdr *msg, struct ipcm_cookie *ipc,
net/ipv4/ip_sockglue.c
343
int ip_ra_control(struct sock *sk, unsigned char on,
net/ipv4/ip_sockglue.c
344
void (*destructor)(struct sock *))
net/ipv4/ip_sockglue.c
412
void ip_icmp_error(struct sock *sk, struct sk_buff *skb, int err,
net/ipv4/ip_sockglue.c
445
void ip_local_error(struct sock *sk, int err, __be32 daddr, __be16 port, u32 info)
net/ipv4/ip_sockglue.c
495
static bool ipv4_datagram_support_cmsg(const struct sock *sk,
net/ipv4/ip_sockglue.c
523
int ip_recv_error(struct sock *sk, struct msghdr *msg, int len)
net/ipv4/ip_sockglue.c
586
void __ip_sock_set_tos(struct sock *sk, int val)
net/ipv4/ip_sockglue.c
601
void ip_sock_set_tos(struct sock *sk, int val)
net/ipv4/ip_sockglue.c
609
void ip_sock_set_freebind(struct sock *sk)
net/ipv4/ip_sockglue.c
615
void ip_sock_set_recverr(struct sock *sk)
net/ipv4/ip_sockglue.c
621
int ip_sock_set_mtu_discover(struct sock *sk, int val)
net/ipv4/ip_sockglue.c
630
void ip_sock_set_pktinfo(struct sock *sk)
net/ipv4/ip_sockglue.c
662
static int set_mcast_msfilter(struct sock *sk, int ifindex,
net/ipv4/ip_sockglue.c
721
static int do_mcast_group_source(struct sock *sk, int optname,
net/ipv4/ip_sockglue.c
769
static int ip_set_mcast_msfilter(struct sock *sk, sockptr_t optval, int optlen)
net/ipv4/ip_sockglue.c
801
static int compat_ip_set_mcast_msfilter(struct sock *sk, sockptr_t optval,
net/ipv4/ip_sockglue.c
845
static int ip_mcast_join_leave(struct sock *sk, int optname,
net/ipv4/ip_sockglue.c
867
static int compat_ip_mcast_join_leave(struct sock *sk, int optname,
net/ipv4/ip_sockglue.c
892
int do_ip_setsockopt(struct sock *sk, int level, int optname,
net/ipv4/ip_tunnel_core.c
50
void iptunnel_xmit(struct sock *sk, struct rtable *rt, struct sk_buff *skb,
net/ipv4/ipmr.c
1061
struct sock *mroute_sk;
net/ipv4/ipmr.c
1378
static void mrtsock_destruct(struct sock *sk)
net/ipv4/ipmr.c
1410
int ip_mroute_setsockopt(struct sock *sk, int optname, sockptr_t optval,
net/ipv4/ipmr.c
1613
int ipmr_sk_ioctl(struct sock *sk, unsigned int cmd, void __user *arg)
net/ipv4/ipmr.c
1635
int ip_mroute_getsockopt(struct sock *sk, int optname, sockptr_t optval,
net/ipv4/ipmr.c
1682
int ipmr_ioctl(struct sock *sk, int cmd, void *arg)
net/ipv4/ipmr.c
1750
int ipmr_compat_ioctl(struct sock *sk, unsigned int cmd, void __user *arg)
net/ipv4/ipmr.c
1865
static inline int ipmr_forward_finish(struct net *net, struct sock *sk,
net/ipv4/ipmr.c
2232
struct sock *mroute_sk;
net/ipv4/ipmr.c
2340
int ip_mr_output(struct net *net, struct sock *sk, struct sk_buff *skb)
net/ipv4/netfilter.c
22
int ip_route_me_harder(struct net *net, struct sock *sk, struct sk_buff *skb, unsigned int addr_type)
net/ipv4/netfilter/arp_tables.c
1423
static int do_arpt_set_ctl(struct sock *sk, int cmd, sockptr_t arg,
net/ipv4/netfilter/arp_tables.c
1454
static int do_arpt_get_ctl(struct sock *sk, int cmd, void __user *user, int *len)
net/ipv4/netfilter/ip_tables.c
1618
do_ipt_set_ctl(struct sock *sk, int cmd, sockptr_t arg, unsigned int len)
net/ipv4/netfilter/ip_tables.c
1649
do_ipt_get_ctl(struct sock *sk, int cmd, void __user *user, int *len)
net/ipv4/netfilter/nf_defrag_ipv4.c
66
struct sock *sk = skb->sk;
net/ipv4/netfilter/nf_reject_ipv4.c
271
void nf_send_reset(struct net *net, struct sock *sk, struct sk_buff *oldskb,
net/ipv4/netfilter/nf_socket_ipv4.c
65
static struct sock *
net/ipv4/netfilter/nf_socket_ipv4.c
83
struct sock *nf_sk_lookup_slow_v4(struct net *net, const struct sk_buff *skb,
net/ipv4/netfilter/nf_tproxy_ipv4.c
18
struct sock *
net/ipv4/netfilter/nf_tproxy_ipv4.c
20
__be32 laddr, __be16 lport, struct sock *sk)
net/ipv4/netfilter/nf_tproxy_ipv4.c
34
struct sock *sk2;
net/ipv4/netfilter/nf_tproxy_ipv4.c
76
struct sock *
net/ipv4/netfilter/nf_tproxy_ipv4.c
84
struct sock *sk;
net/ipv4/ping.c
1002
static struct sock *ping_get_first(struct seq_file *seq, int start)
net/ipv4/ping.c
1004
struct sock *sk;
net/ipv4/ping.c
1028
static struct sock *ping_get_next(struct seq_file *seq, struct sock *sk)
net/ipv4/ping.c
1042
static struct sock *ping_get_idx(struct seq_file *seq, loff_t pos)
net/ipv4/ping.c
1044
struct sock *sk = ping_get_first(seq, 0);
net/ipv4/ping.c
1071
struct sock *sk;
net/ipv4/ping.c
1088
static void ping_v4_format_sock(struct sock *sp, struct seq_file *f,
net/ipv4/ping.c
142
void ping_unhash(struct sock *sk)
net/ipv4/ping.c
157
static struct sock *ping_lookup(struct net *net, struct sk_buff *skb, u16 ident)
net/ipv4/ping.c
160
struct sock *sk = NULL;
net/ipv4/ping.c
248
int ping_init_sock(struct sock *sk)
net/ipv4/ping.c
279
void ping_close(struct sock *sk, long timeout)
net/ipv4/ping.c
288
static int ping_pre_connect(struct sock *sk, struct sockaddr_unsized *uaddr,
net/ipv4/ping.c
302
static int ping_check_bind_addr(struct sock *sk, struct inet_sock *isk,
net/ipv4/ping.c
389
static void ping_set_saddr(struct sock *sk, struct sockaddr_unsized *saddr)
net/ipv4/ping.c
411
int ping_bind(struct sock *sk, struct sockaddr_unsized *uaddr, int addr_len)
net/ipv4/ping.c
492
struct sock *sk;
net/ipv4/ping.c
628
static int ping_v4_push_pending_frames(struct sock *sk, struct pingfakehdr *pfh,
net/ipv4/ping.c
688
static int ping_v4_sendmsg(struct sock *sk, struct msghdr *msg, size_t len)
net/ipv4/ping.c
74
int ping_get_port(struct sock *sk, unsigned short ident)
net/ipv4/ping.c
79
struct sock *sk2 = NULL;
net/ipv4/ping.c
842
int ping_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, int flags)
net/ipv4/ping.c
931
static enum skb_drop_reason __ping_queue_rcv_skb(struct sock *sk,
net/ipv4/ping.c
947
int ping_queue_rcv_skb(struct sock *sk, struct sk_buff *skb)
net/ipv4/ping.c
961
struct sock *sk;
net/ipv4/raw.c
1001
struct sock *sk = raw_get_first(seq, 0);
net/ipv4/raw.c
1021
struct sock *sk;
net/ipv4/raw.c
1039
static void raw_sock_seq_show(struct seq_file *seq, struct sock *sp, int i)
net/ipv4/raw.c
107
void raw_unhash_sk(struct sock *sk)
net/ipv4/raw.c
117
bool raw_v4_match(struct net *net, const struct sock *sk, unsigned short num,
net/ipv4/raw.c
143
static int icmp_filter(const struct sock *sk, const struct sk_buff *skb)
net/ipv4/raw.c
176
struct sock *sk;
net/ipv4/raw.c
214
static void raw_err(struct sock *sk, struct sk_buff *skb, u32 info)
net/ipv4/raw.c
285
struct sock *sk;
net/ipv4/raw.c
302
static int raw_rcv_skb(struct sock *sk, struct sk_buff *skb)
net/ipv4/raw.c
318
int raw_rcv(struct sock *sk, struct sk_buff *skb)
net/ipv4/raw.c
333
static int raw_send_hdrinc(struct sock *sk, struct flowi4 *fl4,
net/ipv4/raw.c
489
static int raw_sendmsg(struct sock *sk, struct msghdr *msg, size_t len)
net/ipv4/raw.c
690
static void raw_close(struct sock *sk, long timeout)
net/ipv4/raw.c
700
static void raw_destroy(struct sock *sk)
net/ipv4/raw.c
708
static int raw_bind(struct sock *sk, struct sockaddr_unsized *uaddr,
net/ipv4/raw.c
749
static int raw_recvmsg(struct sock *sk, struct msghdr *msg, size_t len,
net/ipv4/raw.c
802
static int raw_sk_init(struct sock *sk)
net/ipv4/raw.c
812
static int raw_seticmpfilter(struct sock *sk, sockptr_t optval, int optlen)
net/ipv4/raw.c
821
static int raw_geticmpfilter(struct sock *sk, char __user *optval, int __user *optlen)
net/ipv4/raw.c
840
static int do_raw_setsockopt(struct sock *sk, int optname,
net/ipv4/raw.c
852
static int raw_setsockopt(struct sock *sk, int level, int optname,
net/ipv4/raw.c
860
static int do_raw_getsockopt(struct sock *sk, int optname,
net/ipv4/raw.c
872
static int raw_getsockopt(struct sock *sk, int level, int optname,
net/ipv4/raw.c
880
static int raw_ioctl(struct sock *sk, int cmd, int *karg)
net/ipv4/raw.c
91
int raw_hash_sk(struct sock *sk)
net/ipv4/raw.c
910
static int compat_raw_ioctl(struct sock *sk, unsigned int cmd, unsigned long arg)
net/ipv4/raw.c
926
int raw_abort(struct sock *sk, int err)
net/ipv4/raw.c
968
static struct sock *raw_get_first(struct seq_file *seq, int bucket)
net/ipv4/raw.c
973
struct sock *sk;
net/ipv4/raw.c
986
static struct sock *raw_get_next(struct seq_file *seq, struct sock *sk)
net/ipv4/raw.c
999
static struct sock *raw_get_idx(struct seq_file *seq, loff_t pos)
net/ipv4/raw_diag.c
126
static int sk_diag_dump(struct sock *sk, struct sk_buff *skb,
net/ipv4/raw_diag.c
145
struct sock *sk = NULL;
net/ipv4/raw_diag.c
187
static void raw_diag_get_info(struct sock *sk, struct inet_diag_msg *r,
net/ipv4/raw_diag.c
199
struct sock *sk;
net/ipv4/raw_diag.c
37
static bool raw_lookup(struct net *net, const struct sock *sk,
net/ipv4/raw_diag.c
57
static struct sock *raw_sock_get(struct net *net, const struct inet_diag_req_v2 *r)
net/ipv4/raw_diag.c
61
struct sock *sk;
net/ipv4/raw_diag.c
94
struct sock *sk;
net/ipv4/route.c
1068
static void ip_rt_update_pmtu(struct dst_entry *dst, struct sock *sk,
net/ipv4/route.c
1102
static void __ipv4_sk_update_pmtu(struct sk_buff *skb, struct sock *sk, u32 mtu)
net/ipv4/route.c
1120
void ipv4_sk_update_pmtu(struct sk_buff *skb, struct sock *sk, u32 mtu)
net/ipv4/route.c
1189
void ipv4_sk_redirect(struct sk_buff *skb, struct sock *sk)
net/ipv4/route.c
1265
static int ip_rt_bug(struct net *net, struct sock *sk, struct sk_buff *skb)
net/ipv4/route.c
133
static void ipv4_negative_advice(struct sock *sk,
net/ipv4/route.c
136
static void ip_rt_update_pmtu(struct dst_entry *dst, struct sock *sk,
net/ipv4/route.c
139
static void ip_do_redirect(struct dst_entry *dst, struct sock *sk,
net/ipv4/route.c
2925
const struct sock *sk)
net/ipv4/route.c
511
const struct sock *sk, const struct iphdr *iph,
net/ipv4/route.c
532
const struct sock *sk)
net/ipv4/route.c
544
static void build_sk_flow_key(struct flowi4 *fl4, const struct sock *sk)
net/ipv4/route.c
565
static void ip_rt_build_flow_key(struct flowi4 *fl4, const struct sock *sk,
net/ipv4/route.c
829
static void ip_do_redirect(struct dst_entry *dst, struct sock *sk, struct sk_buff *skb)
net/ipv4/route.c
846
static void ipv4_negative_advice(struct sock *sk,
net/ipv4/syncookies.c
197
struct sock *tcp_get_cookie_sock(struct sock *sk, struct sk_buff *skb,
net/ipv4/syncookies.c
202
struct sock *child;
net/ipv4/syncookies.c
263
static int cookie_tcp_reqsk_init(struct sock *sk, struct sk_buff *skb,
net/ipv4/syncookies.c
302
struct request_sock *cookie_bpf_check(struct sock *sk, struct sk_buff *skb)
net/ipv4/syncookies.c
319
struct sock *sk, struct sk_buff *skb,
net/ipv4/syncookies.c
358
static struct request_sock *cookie_tcp_check(struct net *net, struct sock *sk,
net/ipv4/syncookies.c
405
struct sock *cookie_v4_check(struct sock *sk, struct sk_buff *skb)
net/ipv4/syncookies.c
414
struct sock *ret = sk;
net/ipv4/tcp.c
1010
static int tcp_downgrade_zcopy_pure(struct sock *sk, struct sk_buff *skb)
net/ipv4/tcp.c
1026
int tcp_wmem_schedule(struct sock *sk, int copy)
net/ipv4/tcp.c
1051
int tcp_sendmsg_fastopen(struct sock *sk, struct msghdr *msg, int *copied,
net/ipv4/tcp.c
1099
void tcp_rate_check_app_limited(struct sock *sk)
net/ipv4/tcp.c
1116
int tcp_sendmsg_locked(struct sock *sk, struct msghdr *msg, size_t size)
net/ipv4/tcp.c
1446
int tcp_sendmsg(struct sock *sk, struct msghdr *msg, size_t size)
net/ipv4/tcp.c
1458
void tcp_splice_eof(struct socket *sock)
net/ipv4/tcp.c
1460
struct sock *sk = sock->sk;
net/ipv4/tcp.c
1478
static int tcp_recv_urg(struct sock *sk, struct msghdr *msg, int len, int flags)
net/ipv4/tcp.c
1522
static int tcp_peek_sndq(struct sock *sk, struct msghdr *msg, int len)
net/ipv4/tcp.c
1551
void __tcp_cleanup_rbuf(struct sock *sk, int copied)
net/ipv4/tcp.c
1603
void tcp_cleanup_rbuf(struct sock *sk, int copied)
net/ipv4/tcp.c
1614
static void tcp_eat_recv_skb(struct sock *sk, struct sk_buff *skb)
net/ipv4/tcp.c
1626
struct sk_buff *tcp_recv_skb(struct sock *sk, u32 seq, u32 *off)
net/ipv4/tcp.c
1662
static int __tcp_read_sock(struct sock *sk, read_descriptor_t *desc,
net/ipv4/tcp.c
1740
int tcp_read_sock(struct sock *sk, read_descriptor_t *desc,
net/ipv4/tcp.c
1748
int tcp_read_sock_noack(struct sock *sk, read_descriptor_t *desc,
net/ipv4/tcp.c
1755
int tcp_read_skb(struct sock *sk, skb_read_actor_t recv_actor)
net/ipv4/tcp.c
1784
void tcp_read_done(struct sock *sk, size_t len)
net/ipv4/tcp.c
1823
int tcp_peek_len(struct socket *sock)
net/ipv4/tcp.c
1825
return tcp_inq(sock->sk);
net/ipv4/tcp.c
1829
int tcp_set_rcvlowat(struct sock *sk, int val)
net/ipv4/tcp.c
1857
void tcp_set_rcvbuf(struct sock *sk, int val)
net/ipv4/tcp.c
1866
int tcp_mmap(struct file *file, struct socket *sock,
net/ipv4/tcp.c
1935
static void tcp_zerocopy_set_hint_for_skb(struct sock *sk,
net/ipv4/tcp.c
1972
static int tcp_recvmsg_locked(struct sock *sk, struct msghdr *msg, size_t len,
net/ipv4/tcp.c
1975
static int receive_fallback_to_copy(struct sock *sk,
net/ipv4/tcp.c
2036
struct sock *sk,
net/ipv4/tcp.c
2143
static void tcp_zc_finalize_rx_tstamp(struct sock *sk,
net/ipv4/tcp.c
2195
static int tcp_zerocopy_receive(struct sock *sk,
net/ipv4/tcp.c
2346
void tcp_recv_timestamp(struct msghdr *msg, const struct sock *sk,
net/ipv4/tcp.c
2413
static int tcp_inq_hint(struct sock *sk)
net/ipv4/tcp.c
2442
static void tcp_xa_pool_commit_locked(struct sock *sk, struct tcp_xa_pool *p)
net/ipv4/tcp.c
2458
static void tcp_xa_pool_commit(struct sock *sk, struct tcp_xa_pool *p)
net/ipv4/tcp.c
2470
static int tcp_xa_pool_refill(struct sock *sk, struct tcp_xa_pool *p,
net/ipv4/tcp.c
2499
static int tcp_recvmsg_dmabuf(struct sock *sk, const struct sk_buff *skb,
net/ipv4/tcp.c
2655
static int tcp_recvmsg_locked(struct sock *sk, struct msghdr *msg, size_t len,
net/ipv4/tcp.c
2930
int tcp_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, int flags)
net/ipv4/tcp.c
2960
void tcp_set_state(struct sock *sk, int state)
net/ipv4/tcp.c
3054
static int tcp_close_state(struct sock *sk)
net/ipv4/tcp.c
3069
void tcp_shutdown(struct sock *sk, int how)
net/ipv4/tcp.c
3114
static bool tcp_out_of_memory(const struct sock *sk)
net/ipv4/tcp.c
3122
bool tcp_check_oom(const struct sock *sk, int shift)
net/ipv4/tcp.c
3136
void __tcp_close(struct sock *sk, long timeout)
net/ipv4/tcp.c
325
void tcp_enter_memory_pressure(struct sock *sk)
net/ipv4/tcp.c
3308
void tcp_close(struct sock *sk, long timeout)
net/ipv4/tcp.c
3328
static void tcp_rtx_queue_purge(struct sock *sk)
net/ipv4/tcp.c
3345
void tcp_write_queue_purge(struct sock *sk)
net/ipv4/tcp.c
3361
int tcp_disconnect(struct sock *sk, int flags)
net/ipv4/tcp.c
339
void tcp_leave_memory_pressure(struct sock *sk)
net/ipv4/tcp.c
3508
static inline bool tcp_can_repair_sock(const struct sock *sk)
net/ipv4/tcp.c
3547
static int tcp_repair_options_est(struct sock *sk, sockptr_t optbuf,
net/ipv4/tcp.c
3599
static void tcp_enable_tx_delay(struct sock *sk, int val)
net/ipv4/tcp.c
3640
void __tcp_sock_set_cork(struct sock *sk, bool on)
net/ipv4/tcp.c
3654
void tcp_sock_set_cork(struct sock *sk, bool on)
net/ipv4/tcp.c
3668
void __tcp_sock_set_nodelay(struct sock *sk, bool on)
net/ipv4/tcp.c
3678
void tcp_sock_set_nodelay(struct sock *sk)
net/ipv4/tcp.c
3686
static void __tcp_sock_set_quickack(struct sock *sk, int val)
net/ipv4/tcp.c
3703
void tcp_sock_set_quickack(struct sock *sk, int val)
net/ipv4/tcp.c
3711
int tcp_sock_set_syncnt(struct sock *sk, int val)
net/ipv4/tcp.c
3721
int tcp_sock_set_user_timeout(struct sock *sk, int val)
net/ipv4/tcp.c
3734
int tcp_sock_set_keepidle_locked(struct sock *sk, int val)
net/ipv4/tcp.c
3757
int tcp_sock_set_keepidle(struct sock *sk, int val)
net/ipv4/tcp.c
3768
int tcp_sock_set_keepintvl(struct sock *sk, int val)
net/ipv4/tcp.c
3778
int tcp_sock_set_keepcnt(struct sock *sk, int val)
net/ipv4/tcp.c
3789
int tcp_set_window_clamp(struct sock *sk, int val)
net/ipv4/tcp.c
3821
int tcp_sock_set_maxseg(struct sock *sk, int val)
net/ipv4/tcp.c
3837
int do_tcp_setsockopt(struct sock *sk, int level, int optname,
net/ipv4/tcp.c
402
void tcp_md5_destruct_sock(struct sock *sk)
net/ipv4/tcp.c
4172
int tcp_setsockopt(struct sock *sk, int level, int optname, sockptr_t optval,
net/ipv4/tcp.c
420
void tcp_init_sock(struct sock *sk)
net/ipv4/tcp.c
4210
void tcp_get_info(struct sock *sk, struct tcp_info *info)
net/ipv4/tcp.c
4409
struct sk_buff *tcp_get_timestamping_opt_stats(const struct sock *sk,
net/ipv4/tcp.c
4481
int do_tcp_getsockopt(struct sock *sk, int level,
net/ipv4/tcp.c
481
static void tcp_tx_timestamp(struct sock *sk, struct sockcm_cookie *sockc)
net/ipv4/tcp.c
4857
int tcp_getsockopt(struct sock *sk, int level, int optname, char __user *optval,
net/ipv4/tcp.c
4913
tcp_inbound_md5_hash(const struct sock *sk, const struct sk_buff *skb,
net/ipv4/tcp.c
4950
tcp_inbound_md5_hash(const struct sock *sk, const struct sk_buff *skb,
net/ipv4/tcp.c
5014
tcp_inbound_hash(struct sock *sk, const struct request_sock *req,
net/ipv4/tcp.c
5079
void tcp_done(struct sock *sk)
net/ipv4/tcp.c
509
bool tcp_stream_memory_free(const struct sock *sk, int wake)
net/ipv4/tcp.c
5105
int tcp_abort(struct sock *sk, int err)
net/ipv4/tcp.c
518
static bool tcp_stream_is_readable(struct sock *sk, int target)
net/ipv4/tcp.c
532
__poll_t tcp_poll(struct file *file, struct socket *sock, poll_table *wait)
net/ipv4/tcp.c
535
struct sock *sk = sock->sk;
net/ipv4/tcp.c
540
sock_poll_wait(file, sock, wait);
net/ipv4/tcp.c
639
int tcp_ioctl(struct sock *sk, int cmd, int *karg)
net/ipv4/tcp.c
696
void tcp_skb_entail(struct sock *sk, struct sk_buff *skb)
net/ipv4/tcp.c
730
static bool tcp_should_autocork(struct sock *sk, struct sk_buff *skb,
net/ipv4/tcp.c
740
void tcp_push(struct sock *sk, int flags, int mss_now,
net/ipv4/tcp.c
788
static int __tcp_splice_read(struct sock *sk, struct tcp_splice_state *tss)
net/ipv4/tcp.c
811
ssize_t tcp_splice_read(struct socket *sock, loff_t *ppos,
net/ipv4/tcp.c
815
struct sock *sk = sock->sk;
net/ipv4/tcp.c
836
timeo = sock_rcvtimeo(sk, sock->file->f_flags & O_NONBLOCK);
net/ipv4/tcp.c
906
void sk_forced_mem_schedule(struct sock *sk, int size)
net/ipv4/tcp.c
926
struct sk_buff *tcp_stream_alloc_skb(struct sock *sk, gfp_t gfp,
net/ipv4/tcp.c
957
static unsigned int tcp_xmit_size_goal(struct sock *sk, u32 mss_now,
net/ipv4/tcp.c
981
int tcp_send_mss(struct sock *sk, int *size_goal, int flags)
net/ipv4/tcp.c
997
void tcp_remove_empty_skb(struct sock *sk)
net/ipv4/tcp_ao.c
1118
static int tcp_ao_cache_traffic_keys(const struct sock *sk,
net/ipv4/tcp_ao.c
1136
void tcp_ao_connect_init(struct sock *sk)
net/ipv4/tcp_ao.c
1199
void tcp_ao_established(struct sock *sk)
net/ipv4/tcp_ao.c
1213
void tcp_ao_finish_connect(struct sock *sk, struct sk_buff *skb)
net/ipv4/tcp_ao.c
1232
int tcp_ao_copy_all_matching(const struct sock *sk, struct sock *newsk,
net/ipv4/tcp_ao.c
1333
static bool tcp_ao_can_set_current_rnext(struct sock *sk)
net/ipv4/tcp_ao.c
1341
static int tcp_ao_verify_ipv4(struct sock *sk, struct tcp_ao_add *cmd,
net/ipv4/tcp_ao.c
1443
static int tcp_ao_verify_ipv6(struct sock *sk, struct tcp_ao_add *cmd,
net/ipv4/tcp_ao.c
1507
static int tcp_ao_verify_ipv6(struct sock *sk, struct tcp_ao_add *cmd,
net/ipv4/tcp_ao.c
1515
static struct tcp_ao_info *setsockopt_ao_info(struct sock *sk)
net/ipv4/tcp_ao.c
1527
static struct tcp_ao_info *getsockopt_ao_info(struct sock *sk)
net/ipv4/tcp_ao.c
1540
static struct tcp_ao_key *tcp_ao_key_alloc(struct sock *sk,
net/ipv4/tcp_ao.c
155
bool tcp_ao_ignore_icmp(const struct sock *sk, int family, int type, int code)
net/ipv4/tcp_ao.c
1572
static int tcp_ao_add_cmd(struct sock *sk, unsigned short int family,
net/ipv4/tcp_ao.c
1737
static int tcp_ao_delete_key(struct sock *sk, struct tcp_ao_info *ao_info,
net/ipv4/tcp_ao.c
1791
static int tcp_ao_del_cmd(struct sock *sk, unsigned short int family,
net/ipv4/tcp_ao.c
1917
static int tcp_ao_required_verify(struct sock *sk)
net/ipv4/tcp_ao.c
1937
static int tcp_ao_info_cmd(struct sock *sk, unsigned short int family,
net/ipv4/tcp_ao.c
2026
int tcp_parse_ao(struct sock *sk, int cmd, unsigned short int family,
net/ipv4/tcp_ao.c
2045
int tcp_v4_parse_ao(struct sock *sk, int cmd, sockptr_t optval, int optlen)
net/ipv4/tcp_ao.c
2085
static int tcp_ao_copy_mkts_to_user(const struct sock *sk,
net/ipv4/tcp_ao.c
216
struct tcp_ao_key *tcp_ao_established_key(const struct sock *sk,
net/ipv4/tcp_ao.c
2289
int tcp_ao_get_mkts(struct sock *sk, sockptr_t optval, sockptr_t optlen)
net/ipv4/tcp_ao.c
2302
int tcp_ao_get_sock_info(struct sock *sk, sockptr_t optval, sockptr_t optlen)
net/ipv4/tcp_ao.c
2357
int tcp_ao_set_repair(struct sock *sk, sockptr_t optval, unsigned int optlen)
net/ipv4/tcp_ao.c
2392
int tcp_ao_get_repair(struct sock *sk, sockptr_t optval, sockptr_t optlen)
net/ipv4/tcp_ao.c
299
static struct tcp_ao_key *__tcp_ao_do_lookup(const struct sock *sk, int l3index,
net/ipv4/tcp_ao.c
324
struct tcp_ao_key *tcp_ao_do_lookup(const struct sock *sk, int l3index,
net/ipv4/tcp_ao.c
349
static struct tcp_ao_key *tcp_ao_copy_key(struct sock *sk,
net/ipv4/tcp_ao.c
388
static void tcp_ao_sk_omem_free(struct sock *sk, struct tcp_ao_info *ao)
net/ipv4/tcp_ao.c
398
void tcp_ao_destroy_sock(struct sock *sk, bool twsk)
net/ipv4/tcp_ao.c
432
atomic_sub(omem, &(((struct sock *)tp)->sk_omem_alloc));
net/ipv4/tcp_ao.c
469
const struct sock *sk,
net/ipv4/tcp_ao.c
481
const struct sock *sk,
net/ipv4/tcp_ao.c
551
const struct sock *sk,
net/ipv4/tcp_ao.c
715
const struct sock *sk, const struct sk_buff *skb,
net/ipv4/tcp_ao.c
741
const struct sock *sk, const struct sk_buff *skb,
net/ipv4/tcp_ao.c
760
struct tcp_ao_key *tcp_v4_ao_lookup_rsk(const struct sock *sk,
net/ipv4/tcp_ao.c
772
struct tcp_ao_key *tcp_v4_ao_lookup(const struct sock *sk, struct sock *addr_sk,
net/ipv4/tcp_ao.c
782
int tcp_ao_prepare_reset(const struct sock *sk, struct sk_buff *skb,
net/ipv4/tcp_ao.c
867
void tcp_ao_transmit_skb(struct sock *sk, struct sk_buff *skb,
net/ipv4/tcp_ao.c
900
const struct sock *sk, const struct sk_buff *skb,
net/ipv4/tcp_ao.c
918
void tcp_ao_syncookie(struct sock *sk, const struct sk_buff *skb,
net/ipv4/tcp_ao.c
954
tcp_ao_verify_hash(const struct sock *sk, const struct sk_buff *skb,
net/ipv4/tcp_ao.c
990
tcp_inbound_ao_hash(struct sock *sk, const struct sk_buff *skb,
net/ipv4/tcp_bbr.c
1017
static void bbr_update_model(struct sock *sk, const struct rate_sample *rs)
net/ipv4/tcp_bbr.c
1028
__bpf_kfunc static void bbr_main(struct sock *sk, u32 ack, int flag, const struct rate_sample *rs)
net/ipv4/tcp_bbr.c
1040
__bpf_kfunc static void bbr_init(struct sock *sk)
net/ipv4/tcp_bbr.c
1082
__bpf_kfunc static u32 bbr_sndbuf_expand(struct sock *sk)
net/ipv4/tcp_bbr.c
1091
__bpf_kfunc static u32 bbr_undo_cwnd(struct sock *sk)
net/ipv4/tcp_bbr.c
1102
__bpf_kfunc static u32 bbr_ssthresh(struct sock *sk)
net/ipv4/tcp_bbr.c
1108
static size_t bbr_get_info(struct sock *sk, u32 ext, int *attr,
net/ipv4/tcp_bbr.c
1130
__bpf_kfunc static void bbr_set_state(struct sock *sk, u8 new_state)
net/ipv4/tcp_bbr.c
205
static void bbr_check_probe_rtt_done(struct sock *sk);
net/ipv4/tcp_bbr.c
208
static bool bbr_full_bw_reached(const struct sock *sk)
net/ipv4/tcp_bbr.c
216
static u32 bbr_max_bw(const struct sock *sk)
net/ipv4/tcp_bbr.c
224
static u32 bbr_bw(const struct sock *sk)
net/ipv4/tcp_bbr.c
234
static u16 bbr_extra_acked(const struct sock *sk)
net/ipv4/tcp_bbr.c
245
static u64 bbr_rate_bytes_per_sec(struct sock *sk, u64 rate, int gain)
net/ipv4/tcp_bbr.c
257
static unsigned long bbr_bw_to_pacing_rate(struct sock *sk, u32 bw, int gain)
net/ipv4/tcp_bbr.c
267
static void bbr_init_pacing_rate_from_rtt(struct sock *sk)
net/ipv4/tcp_bbr.c
287
static void bbr_set_pacing_rate(struct sock *sk, u32 bw, int gain)
net/ipv4/tcp_bbr.c
300
__bpf_kfunc static u32 bbr_min_tso_segs(struct sock *sk)
net/ipv4/tcp_bbr.c
305
static u32 bbr_tso_segs_goal(struct sock *sk)
net/ipv4/tcp_bbr.c
322
static void bbr_save_cwnd(struct sock *sk)
net/ipv4/tcp_bbr.c
333
__bpf_kfunc static void bbr_cwnd_event_tx_start(struct sock *sk)
net/ipv4/tcp_bbr.c
361
static u32 bbr_bdp(struct sock *sk, u32 bw, int gain)
net/ipv4/tcp_bbr.c
396
static u32 bbr_quantization_budget(struct sock *sk, u32 cwnd)
net/ipv4/tcp_bbr.c
414
static u32 bbr_inflight(struct sock *sk, u32 bw, int gain)
net/ipv4/tcp_bbr.c
438
static u32 bbr_packets_in_net_at_edt(struct sock *sk, u32 inflight_now)
net/ipv4/tcp_bbr.c
458
static u32 bbr_ack_aggregation_cwnd(struct sock *sk)
net/ipv4/tcp_bbr.c
482
struct sock *sk, const struct rate_sample *rs, u32 acked, u32 *new_cwnd)
net/ipv4/tcp_bbr.c
520
static void bbr_set_cwnd(struct sock *sk, const struct rate_sample *rs,
net/ipv4/tcp_bbr.c
555
static bool bbr_is_next_cycle_phase(struct sock *sk,
net/ipv4/tcp_bbr.c
592
static void bbr_advance_cycle_phase(struct sock *sk)
net/ipv4/tcp_bbr.c
602
static void bbr_update_cycle_phase(struct sock *sk,
net/ipv4/tcp_bbr.c
611
static void bbr_reset_startup_mode(struct sock *sk)
net/ipv4/tcp_bbr.c
618
static void bbr_reset_probe_bw_mode(struct sock *sk)
net/ipv4/tcp_bbr.c
627
static void bbr_reset_mode(struct sock *sk)
net/ipv4/tcp_bbr.c
636
static void bbr_reset_lt_bw_sampling_interval(struct sock *sk)
net/ipv4/tcp_bbr.c
648
static void bbr_reset_lt_bw_sampling(struct sock *sk)
net/ipv4/tcp_bbr.c
659
static void bbr_lt_bw_interval_done(struct sock *sk, u32 bw)
net/ipv4/tcp_bbr.c
689
static void bbr_lt_bw_sampling(struct sock *sk, const struct rate_sample *rs)
net/ipv4/tcp_bbr.c
762
static void bbr_update_bw(struct sock *sk, const struct rate_sample *rs)
net/ipv4/tcp_bbr.c
818
static void bbr_update_ack_aggregation(struct sock *sk,
net/ipv4/tcp_bbr.c
874
static void bbr_check_full_bw_reached(struct sock *sk,
net/ipv4/tcp_bbr.c
894
static void bbr_check_drain(struct sock *sk, const struct rate_sample *rs)
net/ipv4/tcp_bbr.c
909
static void bbr_check_probe_rtt_done(struct sock *sk)
net/ipv4/tcp_bbr.c
942
static void bbr_update_min_rtt(struct sock *sk, const struct rate_sample *rs)
net/ipv4/tcp_bbr.c
988
static void bbr_update_gains(struct sock *sk)
net/ipv4/tcp_bic.c
140
static void bictcp_cong_avoid(struct sock *sk, u32 ack, u32 acked)
net/ipv4/tcp_bic.c
161
static u32 bictcp_recalc_ssthresh(struct sock *sk)
net/ipv4/tcp_bic.c
181
static void bictcp_state(struct sock *sk, u8 new_state)
net/ipv4/tcp_bic.c
190
static void bictcp_acked(struct sock *sk, const struct ack_sample *sample)
net/ipv4/tcp_bic.c
70
static void bictcp_init(struct sock *sk)
net/ipv4/tcp_bpf.c
15
void tcp_eat_skb(struct sock *sk, struct sk_buff *skb)
net/ipv4/tcp_bpf.c
153
static int tcp_bpf_push_locked(struct sock *sk, struct sk_msg *msg,
net/ipv4/tcp_bpf.c
164
int tcp_bpf_sendmsg_redir(struct sock *sk, bool ingress,
net/ipv4/tcp_bpf.c
181
static int tcp_msg_wait_data(struct sock *sk, struct sk_psock *psock,
net/ipv4/tcp_bpf.c
221
static int tcp_bpf_recvmsg_parser(struct sock *sk,
net/ipv4/tcp_bpf.c
33
static int bpf_tcp_ingress(struct sock *sk, struct sk_psock *psock,
net/ipv4/tcp_bpf.c
335
static int tcp_bpf_ioctl(struct sock *sk, int cmd, int *karg)
net/ipv4/tcp_bpf.c
368
static int tcp_bpf_recvmsg(struct sock *sk, struct msghdr *msg, size_t len,
net/ipv4/tcp_bpf.c
418
static int tcp_bpf_send_verdict(struct sock *sk, struct sk_psock *psock,
net/ipv4/tcp_bpf.c
422
struct sock *sk_redir;
net/ipv4/tcp_bpf.c
532
static int tcp_bpf_sendmsg(struct sock *sk, struct msghdr *msg, size_t size)
net/ipv4/tcp_bpf.c
691
struct sock *sk = strp->sk;
net/ipv4/tcp_bpf.c
723
int tcp_bpf_update_proto(struct sock *sk, struct sk_psock *psock, bool restore)
net/ipv4/tcp_bpf.c
767
void tcp_bpf_clone(const struct sock *sk, struct sock *newsk)
net/ipv4/tcp_bpf.c
91
static int tcp_bpf_push(struct sock *sk, struct sk_msg *msg, u32 apply_bytes,
net/ipv4/tcp_cdg.c
140
static void tcp_cdg_hystart_update(struct sock *sk)
net/ipv4/tcp_cdg.c
241
static bool tcp_cdg_backoff(struct sock *sk, u32 grad)
net/ipv4/tcp_cdg.c
262
static void tcp_cdg_cong_avoid(struct sock *sk, u32 ack, u32 acked)
net/ipv4/tcp_cdg.c
299
static void tcp_cdg_acked(struct sock *sk, const struct ack_sample *sample)
net/ipv4/tcp_cdg.c
328
static u32 tcp_cdg_ssthresh(struct sock *sk)
net/ipv4/tcp_cdg.c
345
static void tcp_cdg_cwnd_event(struct sock *sk, const enum tcp_ca_event ev)
net/ipv4/tcp_cdg.c
373
static void tcp_cdg_init(struct sock *sk)
net/ipv4/tcp_cdg.c
387
static void tcp_cdg_release(struct sock *sk)
net/ipv4/tcp_cong.c
216
void tcp_assign_congestion_control(struct sock *sk)
net/ipv4/tcp_cong.c
236
void tcp_init_congestion_control(struct sock *sk)
net/ipv4/tcp_cong.c
250
static void tcp_reinit_congestion_control(struct sock *sk,
net/ipv4/tcp_cong.c
270
void tcp_cleanup_congestion_control(struct sock *sk)
net/ipv4/tcp_cong.c
38
void tcp_set_ca_state(struct sock *sk, const u8 ca_state)
net/ipv4/tcp_cong.c
412
int tcp_set_congestion_control(struct sock *sk, const char *name, bool load,
net/ipv4/tcp_cong.c
496
__bpf_kfunc void tcp_reno_cong_avoid(struct sock *sk, u32 ack, u32 acked)
net/ipv4/tcp_cong.c
515
__bpf_kfunc u32 tcp_reno_ssthresh(struct sock *sk)
net/ipv4/tcp_cong.c
523
__bpf_kfunc u32 tcp_reno_undo_cwnd(struct sock *sk)
net/ipv4/tcp_cubic.c
113
static inline u32 bictcp_clock_us(const struct sock *sk)
net/ipv4/tcp_cubic.c
118
static inline void bictcp_hystart_reset(struct sock *sk)
net/ipv4/tcp_cubic.c
129
__bpf_kfunc static void cubictcp_init(struct sock *sk)
net/ipv4/tcp_cubic.c
142
__bpf_kfunc static void cubictcp_cwnd_event_tx_start(struct sock *sk)
net/ipv4/tcp_cubic.c
321
__bpf_kfunc static void cubictcp_cong_avoid(struct sock *sk, u32 ack, u32 acked)
net/ipv4/tcp_cubic.c
338
__bpf_kfunc static u32 cubictcp_recalc_ssthresh(struct sock *sk)
net/ipv4/tcp_cubic.c
355
__bpf_kfunc static void cubictcp_state(struct sock *sk, u8 new_state)
net/ipv4/tcp_cubic.c
372
static u32 hystart_ack_delay(const struct sock *sk)
net/ipv4/tcp_cubic.c
383
static void hystart_update(struct sock *sk, u32 delay)
net/ipv4/tcp_cubic.c
449
__bpf_kfunc static void cubictcp_acked(struct sock *sk, const struct ack_sample *sample)
net/ipv4/tcp_dctcp.c
118
__bpf_kfunc static u32 dctcp_ssthresh(struct sock *sk)
net/ipv4/tcp_dctcp.c
127
__bpf_kfunc static void dctcp_update_alpha(struct sock *sk, u32 flags)
net/ipv4/tcp_dctcp.c
174
static void dctcp_react_to_loss(struct sock *sk)
net/ipv4/tcp_dctcp.c
183
__bpf_kfunc static void dctcp_state(struct sock *sk, u8 new_state)
net/ipv4/tcp_dctcp.c
193
__bpf_kfunc static void dctcp_cwnd_event(struct sock *sk, enum tcp_ca_event ev)
net/ipv4/tcp_dctcp.c
212
__bpf_kfunc static void dctcp_cwnd_event_tx_start(struct sock *sk)
net/ipv4/tcp_dctcp.c
219
static size_t dctcp_get_info(struct sock *sk, u32 ext, int *attr,
net/ipv4/tcp_dctcp.c
247
__bpf_kfunc static u32 dctcp_cwnd_undo(struct sock *sk)
net/ipv4/tcp_dctcp.c
89
__bpf_kfunc static void dctcp_init(struct sock *sk)
net/ipv4/tcp_dctcp.h
20
static inline void dctcp_ece_ack_update(struct sock *sk, enum tcp_ca_event evt,
net/ipv4/tcp_dctcp.h
5
static inline void dctcp_ece_ack_cwr(struct sock *sk, u32 ce_state)
net/ipv4/tcp_diag.c
115
static int tcp_diag_get_aux(struct sock *sk, bool net_admin,
net/ipv4/tcp_diag.c
146
static size_t tcp_diag_get_aux_size(struct sock *sk, bool net_admin)
net/ipv4/tcp_diag.c
192
static int tcp_twsk_diag_fill(struct sock *sk,
net/ipv4/tcp_diag.c
21
static void tcp_diag_get_info(struct sock *sk, struct inet_diag_msg *r,
net/ipv4/tcp_diag.c
233
static int tcp_req_diag_fill(struct sock *sk, struct sk_buff *skb,
net/ipv4/tcp_diag.c
254
offsetof(struct sock, sk_cookie));
net/ipv4/tcp_diag.c
273
static int sk_diag_fill(struct sock *sk, struct sk_buff *skb,
net/ipv4/tcp_diag.c
291
offsetof(struct sock, sk_family));
net/ipv4/tcp_diag.c
307
offsetof(struct sock, sk_v6_rcv_saddr));
net/ipv4/tcp_diag.c
310
offsetof(struct sock, sk_v6_daddr));
net/ipv4/tcp_diag.c
323
struct sock *sk;
net/ipv4/tcp_diag.c
401
struct sock *sk_arr[SKARR_SZ];
net/ipv4/tcp_diag.c
484
struct sock *sk_arr[SKARR_SZ];
net/ipv4/tcp_diag.c
563
static struct sock *tcp_diag_find_one_icsk(struct net *net,
net/ipv4/tcp_diag.c
566
struct sock *sk;
net/ipv4/tcp_diag.c
609
struct sock *sk;
net/ipv4/tcp_diag.c
646
struct sock *sk;
net/ipv4/tcp_diag.c
88
static int tcp_diag_put_ulp(struct sk_buff *skb, struct sock *sk,
net/ipv4/tcp_fastopen.c
125
void tcp_fastopen_destroy_cipher(struct sock *sk)
net/ipv4/tcp_fastopen.c
145
int tcp_fastopen_reset_cipher(struct net *net, struct sock *sk,
net/ipv4/tcp_fastopen.c
240
static void tcp_fastopen_cookie_gen(struct sock *sk,
net/ipv4/tcp_fastopen.c
257
void tcp_fastopen_add_skb(struct sock *sk, struct sk_buff *skb)
net/ipv4/tcp_fastopen.c
298
static int tcp_fastopen_cookie_gen_check(struct sock *sk,
net/ipv4/tcp_fastopen.c
326
static struct sock *tcp_fastopen_create_child(struct sock *sk,
net/ipv4/tcp_fastopen.c
332
struct sock *child;
net/ipv4/tcp_fastopen.c
387
static bool tcp_fastopen_queue_check(struct sock *sk)
net/ipv4/tcp_fastopen.c
425
static bool tcp_fastopen_no_cookie(const struct sock *sk,
net/ipv4/tcp_fastopen.c
438
struct sock *tcp_try_fastopen(struct sock *sk, struct sk_buff *skb,
net/ipv4/tcp_fastopen.c
446
struct sock *child;
net/ipv4/tcp_fastopen.c
506
bool tcp_fastopen_cookie_check(struct sock *sk, u16 *mss,
net/ipv4/tcp_fastopen.c
51
void reqsk_fastopen_remove(struct sock *sk, struct request_sock *req,
net/ipv4/tcp_fastopen.c
538
bool tcp_fastopen_defer_connect(struct sock *sk, int *err)
net/ipv4/tcp_fastopen.c
54
struct sock *lsk = req->rsk_listener;
net/ipv4/tcp_fastopen.c
582
void tcp_fastopen_active_disable(struct sock *sk)
net/ipv4/tcp_fastopen.c
605
bool tcp_fastopen_active_should_disable(struct sock *sk)
net/ipv4/tcp_fastopen.c
645
void tcp_fastopen_active_disable_ofo_check(struct sock *sk)
net/ipv4/tcp_fastopen.c
674
void tcp_fastopen_active_detect_blackhole(struct sock *sk, bool expired)
net/ipv4/tcp_highspeed.c
100
static void hstcp_init(struct sock *sk)
net/ipv4/tcp_highspeed.c
112
static void hstcp_cong_avoid(struct sock *sk, u32 ack, u32 acked)
net/ipv4/tcp_highspeed.c
151
static u32 hstcp_ssthresh(struct sock *sk)
net/ipv4/tcp_htcp.c
101
static void measure_achieved_throughput(struct sock *sk,
net/ipv4/tcp_htcp.c
208
static void htcp_param_update(struct sock *sk)
net/ipv4/tcp_htcp.c
222
static u32 htcp_recalc_ssthresh(struct sock *sk)
net/ipv4/tcp_htcp.c
231
static void htcp_cong_avoid(struct sock *sk, u32 ack, u32 acked)
net/ipv4/tcp_htcp.c
257
static void htcp_init(struct sock *sk)
net/ipv4/tcp_htcp.c
268
static void htcp_state(struct sock *sk, u8 new_state)
net/ipv4/tcp_htcp.c
68
static u32 htcp_cwnd_undo(struct sock *sk)
net/ipv4/tcp_htcp.c
82
static inline void measure_rtt(struct sock *sk, u32 srtt)
net/ipv4/tcp_hybla.c
34
static inline void hybla_recalc_param (struct sock *sk)
net/ipv4/tcp_hybla.c
46
static void hybla_init(struct sock *sk)
net/ipv4/tcp_hybla.c
68
static void hybla_state(struct sock *sk, u8 ca_state)
net/ipv4/tcp_hybla.c
90
static void hybla_cong_avoid(struct sock *sk, u32 ack, u32 acked)
net/ipv4/tcp_illinois.c
222
static void update_params(struct sock *sk)
net/ipv4/tcp_illinois.c
244
static void tcp_illinois_state(struct sock *sk, u8 new_state)
net/ipv4/tcp_illinois.c
260
static void tcp_illinois_cong_avoid(struct sock *sk, u32 ack, u32 acked)
net/ipv4/tcp_illinois.c
295
static u32 tcp_illinois_ssthresh(struct sock *sk)
net/ipv4/tcp_illinois.c
307
static size_t tcp_illinois_info(struct sock *sk, u32 ext, int *attr,
net/ipv4/tcp_illinois.c
57
static void rtt_reset(struct sock *sk)
net/ipv4/tcp_illinois.c
69
static void tcp_illinois_init(struct sock *sk)
net/ipv4/tcp_illinois.c
86
static void tcp_illinois_acked(struct sock *sk, const struct ack_sample *sample)
net/ipv4/tcp_input.c
1015
static void tcp_event_data_recv(struct sock *sk, struct sk_buff *skb)
net/ipv4/tcp_input.c
1070
static void tcp_rtt_estimator(struct sock *sk, long mrtt_us)
net/ipv4/tcp_input.c
1138
void tcp_update_pacing_rate(struct sock *sk)
net/ipv4/tcp_input.c
1175
void tcp_set_rto(struct sock *sk)
net/ipv4/tcp_input.c
125
void (*cad)(struct sock *sk, u32 ack_seq))
net/ipv4/tcp_input.c
1275
static void tcp_check_sack_reordering(struct sock *sk, const u32 low_seq,
net/ipv4/tcp_input.c
1329
void tcp_mark_skb_lost(struct sock *sk, struct sk_buff *skb)
net/ipv4/tcp_input.c
147
static void bpf_skops_parse_hdr(struct sock *sk, struct sk_buff *skb)
net/ipv4/tcp_input.c
1484
static bool tcp_check_dsack(struct sock *sk, const struct sk_buff *ack_skb,
net/ipv4/tcp_input.c
1531
static int tcp_match_skb_to_sack(struct sock *sk, struct sk_buff *skb,
net/ipv4/tcp_input.c
1612
static u8 tcp_sacktag_one(struct sock *sk,
net/ipv4/tcp_input.c
1724
static void tcp_rate_gen(struct sock *sk, u32 delivered, u32 lost,
net/ipv4/tcp_input.c
1808
static void tcp_rate_skb_delivered(struct sock *sk, struct sk_buff *skb,
net/ipv4/tcp_input.c
182
static void bpf_skops_established(struct sock *sk, int bpf_op,
net/ipv4/tcp_input.c
1847
static bool tcp_shifted_skb(struct sock *sk, struct sk_buff *prev,
net/ipv4/tcp_input.c
1954
static struct sk_buff *tcp_shift_skb_data(struct sock *sk, struct sk_buff *skb,
net/ipv4/tcp_input.c
201
static void bpf_skops_parse_hdr(struct sock *sk, struct sk_buff *skb)
net/ipv4/tcp_input.c
205
static void bpf_skops_established(struct sock *sk, int bpf_op,
net/ipv4/tcp_input.c
2092
static struct sk_buff *tcp_sacktag_walk(struct sk_buff *skb, struct sock *sk,
net/ipv4/tcp_input.c
211
static __cold void tcp_gro_dev_warn(const struct sock *sk, const struct sk_buff *skb,
net/ipv4/tcp_input.c
2165
static struct sk_buff *tcp_sacktag_bsearch(struct sock *sk, u32 seq)
net/ipv4/tcp_input.c
2186
static struct sk_buff *tcp_sacktag_skip(struct sk_buff *skb, struct sock *sk,
net/ipv4/tcp_input.c
2196
struct sock *sk,
net/ipv4/tcp_input.c
2220
tcp_sacktag_write_queue(struct sock *sk, const struct sk_buff *ack_skb,
net/ipv4/tcp_input.c
227
static void tcp_measure_rcv_mss(struct sock *sk, const struct sk_buff *skb)
net/ipv4/tcp_input.c
2436
static void tcp_check_reno_reordering(struct sock *sk, const int addend)
net/ipv4/tcp_input.c
2452
static void tcp_add_reno_sack(struct sock *sk, int num_dupack, bool ece_ack)
net/ipv4/tcp_input.c
2470
static void tcp_remove_reno_sacks(struct sock *sk, int acked, bool ece_ack)
net/ipv4/tcp_input.c
2524
static void tcp_timeout_mark_lost(struct sock *sk)
net/ipv4/tcp_input.c
2554
void tcp_enter_loss(struct sock *sk)
net/ipv4/tcp_input.c
2611
static bool tcp_check_sack_reneging(struct sock *sk, int *ack_flag)
net/ipv4/tcp_input.c
2744
const struct sock *sk = (const struct sock *)tp;
net/ipv4/tcp_input.c
2791
static bool tcp_any_retrans_done(const struct sock *sk)
net/ipv4/tcp_input.c
2810
static void tcp_retrans_stamp_cleanup(struct sock *sk)
net/ipv4/tcp_input.c
2816
static void DBGUNDO(struct sock *sk, const char *msg)
net/ipv4/tcp_input.c
2843
static void tcp_undo_cwnd_reduction(struct sock *sk, bool unmark_loss)
net/ipv4/tcp_input.c
2877
static bool tcp_is_non_sack_preventing_reopen(struct sock *sk)
net/ipv4/tcp_input.c
2893
static bool tcp_try_undo_recovery(struct sock *sk)
net/ipv4/tcp_input.c
2922
static bool tcp_try_undo_dsack(struct sock *sk)
net/ipv4/tcp_input.c
2938
static bool tcp_try_undo_loss(struct sock *sk, bool frto_undo)
net/ipv4/tcp_input.c
2971
static void tcp_init_cwnd_reduction(struct sock *sk)
net/ipv4/tcp_input.c
2985
void tcp_cwnd_reduction(struct sock *sk, int newly_acked_sacked, int newly_lost, int flag)
net/ipv4/tcp_input.c
3013
static inline void tcp_end_cwnd_reduction(struct sock *sk)
net/ipv4/tcp_input.c
3030
void tcp_enter_cwr(struct sock *sk)
net/ipv4/tcp_input.c
3043
static void tcp_try_keep_open(struct sock *sk)
net/ipv4/tcp_input.c
3057
static void tcp_try_to_open(struct sock *sk, int flag)
net/ipv4/tcp_input.c
3074
static void tcp_mtup_probe_failed(struct sock *sk)
net/ipv4/tcp_input.c
3083
static void tcp_mtup_probe_success(struct sock *sk)
net/ipv4/tcp_input.c
311
static void tcp_incr_quickack(struct sock *sk, unsigned int max_quickacks)
net/ipv4/tcp_input.c
3116
static void tcp_non_congestion_loss_retransmit(struct sock *sk)
net/ipv4/tcp_input.c
3135
void tcp_simple_retransmit(struct sock *sk)
net/ipv4/tcp_input.c
3177
void tcp_enter_recovery(struct sock *sk, bool ece_ack)
net/ipv4/tcp_input.c
3214
static void tcp_process_loss(struct sock *sk, int flag, int num_dupack,
net/ipv4/tcp_input.c
323
static void tcp_enter_quickack_mode(struct sock *sk, unsigned int max_quickacks)
net/ipv4/tcp_input.c
3268
static bool tcp_try_undo_partial(struct sock *sk, u32 prior_snd_una)
net/ipv4/tcp_input.c
3297
static void tcp_identify_packet_loss(struct sock *sk, int *ack_flag)
net/ipv4/tcp_input.c
3328
static void tcp_fastretrans_alert(struct sock *sk, const u32 prior_snd_una,
net/ipv4/tcp_input.c
336
static bool tcp_in_quickack_mode(struct sock *sk)
net/ipv4/tcp_input.c
344
static void tcp_data_ecn_check(struct sock *sk, const struct sk_buff *skb)
net/ipv4/tcp_input.c
3443
static void tcp_update_rtt_min(struct sock *sk, u32 rtt_us, const int flag)
net/ipv4/tcp_input.c
3459
static bool tcp_ack_update_rtt(struct sock *sk, const int flag,
net/ipv4/tcp_input.c
3501
void tcp_synack_rtt_meas(struct sock *sk, struct request_sock *req)
net/ipv4/tcp_input.c
3513
static void tcp_cong_avoid(struct sock *sk, u32 ack, u32 acked)
net/ipv4/tcp_input.c
3524
void tcp_rearm_rto(struct sock *sk)
net/ipv4/tcp_input.c
3553
static void tcp_set_xmit_timer(struct sock *sk)
net/ipv4/tcp_input.c
3560
static u32 tcp_tso_acked(struct sock *sk, struct sk_buff *skb)
net/ipv4/tcp_input.c
3580
static void tcp_ack_tstamp(struct sock *sk, struct sk_buff *skb,
net/ipv4/tcp_input.c
3602
static int tcp_clean_rtx_queue(struct sock *sk, const struct sk_buff *ack_skb,
net/ipv4/tcp_input.c
3807
static void tcp_ack_probe(struct sock *sk)
net/ipv4/tcp_input.c
3831
static inline bool tcp_ack_is_dubious(const struct sock *sk, const int flag)
net/ipv4/tcp_input.c
3838
static inline bool tcp_may_raise_cwnd(const struct sock *sk, const int flag)
net/ipv4/tcp_input.c
3858
static void tcp_cong_control(struct sock *sk, u32 ack, u32 acked_sacked,
net/ipv4/tcp_input.c
3899
lockdep_sock_is_held((struct sock *)tp));
net/ipv4/tcp_input.c
3902
trace_tcp_ao_snd_sne_update((struct sock *)tp, ao->snd_sne);
net/ipv4/tcp_input.c
3912
sock_owned_by_me((struct sock *)tp);
net/ipv4/tcp_input.c
3927
lockdep_sock_is_held((struct sock *)tp));
net/ipv4/tcp_input.c
3930
trace_tcp_ao_rcv_sne_update((struct sock *)tp, ao->rcv_sne);
net/ipv4/tcp_input.c
3940
sock_owned_by_me((struct sock *)tp);
net/ipv4/tcp_input.c
3951
static int tcp_ack_update_window(struct sock *sk, const struct sk_buff *skb, u32 ack,
net/ipv4/tcp_input.c
4031
static void tcp_send_ack_reflect_ect(struct sock *sk, bool accecn_reflector)
net/ipv4/tcp_input.c
4069
static void tcp_send_challenge_ack(struct sock *sk, bool accecn_reflector)
net/ipv4/tcp_input.c
4091
void tcp_reqsk_send_challenge_ack(struct sock *sk, struct sk_buff *skb,
net/ipv4/tcp_input.c
4142
static void tcp_process_tlp_ack(struct sock *sk, u32 ack, int flag)
net/ipv4/tcp_input.c
4172
static void tcp_in_ack_event(struct sock *sk, int flag)
net/ipv4/tcp_input.c
4195
static void tcp_xmit_recovery(struct sock *sk, int rexmit)
net/ipv4/tcp_input.c
4213
static u32 tcp_newly_delivered(struct sock *sk, u32 prior_delivered,
net/ipv4/tcp_input.c
4250
static void tcp_rack_update_reo_wnd(struct sock *sk, struct rate_sample *rs)
net/ipv4/tcp_input.c
4276
static int tcp_ack(struct sock *sk, const struct sk_buff *skb, int flag)
net/ipv4/tcp_input.c
4777
static u32 tcp_tsval_replay(const struct sock *sk)
net/ipv4/tcp_input.c
4791
static enum skb_drop_reason tcp_disordered_ack_check(const struct sock *sk,
net/ipv4/tcp_input.c
4840
static enum skb_drop_reason tcp_sequence(const struct sock *sk,
net/ipv4/tcp_input.c
4870
void tcp_done_with_error(struct sock *sk, int err)
net/ipv4/tcp_input.c
4884
void tcp_reset(struct sock *sk, struct sk_buff *skb)
net/ipv4/tcp_input.c
4926
void tcp_fin(struct sock *sk)
net/ipv4/tcp_input.c
496
static u32 __tcp_accecn_process(struct sock *sk, const struct sk_buff *skb,
net/ipv4/tcp_input.c
5007
static void tcp_dsack_set(struct sock *sk, u32 seq, u32 end_seq)
net/ipv4/tcp_input.c
5027
static void tcp_dsack_extend(struct sock *sk, u32 seq, u32 end_seq)
net/ipv4/tcp_input.c
5037
static void tcp_rcv_spurious_retrans(struct sock *sk,
net/ipv4/tcp_input.c
5072
static void tcp_send_dupack(struct sock *sk, const struct sk_buff *skb)
net/ipv4/tcp_input.c
5123
void tcp_sack_compress_send_ack(struct sock *sk)
net/ipv4/tcp_input.c
5150
static void tcp_sack_new_ofo_skb(struct sock *sk, u32 seq, u32 end_seq)
net/ipv4/tcp_input.c
5244
static bool tcp_try_coalesce(struct sock *sk,
net/ipv4/tcp_input.c
5279
static bool tcp_ooo_try_coalesce(struct sock *sk,
net/ipv4/tcp_input.c
5297
tcp_drop_reason(struct sock *sk, struct sk_buff *skb, enum skb_drop_reason reason)
net/ipv4/tcp_input.c
5306
static void tcp_ofo_queue(struct sock *sk)
net/ipv4/tcp_input.c
5354
static bool tcp_prune_ofo_queue(struct sock *sk, const struct sk_buff *in_skb);
net/ipv4/tcp_input.c
5355
static int tcp_prune_queue(struct sock *sk, const struct sk_buff *in_skb);
net/ipv4/tcp_input.c
5357
static bool tcp_can_ingest(const struct sock *sk, const struct sk_buff *skb)
net/ipv4/tcp_input.c
5364
static int tcp_try_rmem_schedule(struct sock *sk, const struct sk_buff *skb,
net/ipv4/tcp_input.c
5381
static void tcp_data_queue_ofo(struct sock *sk, struct sk_buff *skb)
net/ipv4/tcp_input.c
5532
static int __must_check tcp_queue_rcv(struct sock *sk, struct sk_buff *skb,
net/ipv4/tcp_input.c
5549
int tcp_send_rcvq(struct sock *sk, struct msghdr *msg, size_t size)
net/ipv4/tcp_input.c
5601
void tcp_data_ready(struct sock *sk)
net/ipv4/tcp_input.c
5607
static void tcp_data_queue(struct sock *sk, struct sk_buff *skb)
net/ipv4/tcp_input.c
5747
static struct sk_buff *tcp_collapse_one(struct sock *sk, struct sk_buff *skb,
net/ipv4/tcp_input.c
5773
tcp_collapse(struct sock *sk, struct sk_buff_head *list, struct rb_root *root,
net/ipv4/tcp_input.c
581
static u32 tcp_accecn_process(struct sock *sk, const struct sk_buff *skb,
net/ipv4/tcp_input.c
5879
static void tcp_collapse_ofo_queue(struct sock *sk)
net/ipv4/tcp_input.c
5939
static bool tcp_prune_ofo_queue(struct sock *sk, const struct sk_buff *in_skb)
net/ipv4/tcp_input.c
5993
static int tcp_prune_queue(struct sock *sk, const struct sk_buff *in_skb)
net/ipv4/tcp_input.c
6040
static bool tcp_should_expand_sndbuf(struct sock *sk)
net/ipv4/tcp_input.c
605
static void tcp_sndbuf_expand(struct sock *sk)
net/ipv4/tcp_input.c
6075
static void tcp_new_space(struct sock *sk)
net/ipv4/tcp_input.c
6099
void __tcp_check_space(struct sock *sk)
net/ipv4/tcp_input.c
6106
static inline void tcp_data_snd_check(struct sock *sk)
net/ipv4/tcp_input.c
6115
static void __tcp_ack_snd_check(struct sock *sk, int ofo_possible)
net/ipv4/tcp_input.c
6192
static inline void tcp_ack_snd_check(struct sock *sk)
net/ipv4/tcp_input.c
6211
static void tcp_check_urg(struct sock *sk, const struct tcphdr *th)
net/ipv4/tcp_input.c
6277
static void tcp_urg(struct sock *sk, struct sk_buff *skb, const struct tcphdr *th)
net/ipv4/tcp_input.c
6310
static bool tcp_reset_check(const struct sock *sk, const struct sk_buff *skb)
net/ipv4/tcp_input.c
6322
static bool tcp_validate_incoming(struct sock *sk, struct sk_buff *skb,
net/ipv4/tcp_input.c
6500
void tcp_rcv_established(struct sock *sk, struct sk_buff *skb)
net/ipv4/tcp_input.c
663
static int __tcp_grow_window(const struct sock *sk, const struct sk_buff *skb,
net/ipv4/tcp_input.c
6705
void tcp_init_transfer(struct sock *sk, int bpf_op, struct sk_buff *skb)
net/ipv4/tcp_input.c
6733
void tcp_finish_connect(struct sock *sk, struct sk_buff *skb)
net/ipv4/tcp_input.c
6764
static bool tcp_rcv_fastopen_synack(struct sock *sk, struct sk_buff *synack,
net/ipv4/tcp_input.c
6837
static void tcp_try_undo_spurious_syn(struct sock *sk)
net/ipv4/tcp_input.c
6852
static int tcp_rcv_synsent_state_process(struct sock *sk, struct sk_buff *skb,
net/ipv4/tcp_input.c
700
static void tcp_grow_window(struct sock *sk, const struct sk_buff *skb,
net/ipv4/tcp_input.c
7103
static void tcp_rcv_synrecv_state_fastopen(struct sock *sk)
net/ipv4/tcp_input.c
7152
tcp_rcv_state_process(struct sock *sk, struct sk_buff *skb)
net/ipv4/tcp_input.c
740
static void tcp_init_buffer_space(struct sock *sk)
net/ipv4/tcp_input.c
7456
const struct sock *listen_sk,
net/ipv4/tcp_input.c
7485
tcp_bpf_ca_needs_ecn((struct sock *)req))
net/ipv4/tcp_input.c
7491
struct sk_buff *skb, const struct sock *sk)
net/ipv4/tcp_input.c
7526
static bool tcp_syn_flood_action(struct sock *sk, const char *proto)
net/ipv4/tcp_input.c
7561
static void tcp_reqsk_record_syn(const struct sock *sk,
net/ipv4/tcp_input.c
7596
struct sock *sk, struct tcphdr *th)
net/ipv4/tcp_input.c
7622
struct sock *sk, struct sk_buff *skb)
net/ipv4/tcp_input.c
7629
struct sock *fastopen_sk = NULL;
net/ipv4/tcp_input.c
778
static void tcp_clamp_window(struct sock *sk)
net/ipv4/tcp_input.c
806
void tcp_initialize_rcv_mss(struct sock *sk)
net/ipv4/tcp_input.c
893
static inline void tcp_rcv_rtt_measure_ts(struct sock *sk,
net/ipv4/tcp_input.c
911
void tcp_rcvbuf_grow(struct sock *sk, u32 newval)
net/ipv4/tcp_input.c
960
void tcp_rcv_space_adjust(struct sock *sk)
net/ipv4/tcp_input.c
995
static void tcp_save_lrcv_flowlabel(struct sock *sk, const struct sk_buff *skb)
net/ipv4/tcp_ipv4.c
1015
static void tcp_v4_timewait_ack(struct sock *sk, struct sk_buff *skb,
net/ipv4/tcp_ipv4.c
1079
static void tcp_v4_reqsk_send_ack(const struct sock *sk, struct sk_buff *skb,
net/ipv4/tcp_ipv4.c
1162
static int tcp_v4_send_synack(const struct sock *sk, struct dst_entry *dst,
net/ipv4/tcp_ipv4.c
118
int tcp_twsk_unique(struct sock *sk, struct sock *sktw, void *twp)
net/ipv4/tcp_ipv4.c
1192
tcp_bpf_ca_needs_ecn((struct sock *)req))
net/ipv4/tcp_ipv4.c
1239
struct tcp_md5sig_key *__tcp_md5_do_lookup(const struct sock *sk, int l3index,
net/ipv4/tcp_ipv4.c
1282
static struct tcp_md5sig_key *tcp_md5_do_lookup_exact(const struct sock *sk,
net/ipv4/tcp_ipv4.c
1316
struct tcp_md5sig_key *tcp_v4_md5_lookup(const struct sock *sk,
net/ipv4/tcp_ipv4.c
1317
const struct sock *addr_sk)
net/ipv4/tcp_ipv4.c
1328
static int tcp_md5sig_info_add(struct sock *sk, gfp_t gfp)
net/ipv4/tcp_ipv4.c
1344
static int __tcp_md5_do_add(struct sock *sk, const union tcp_md5_addr *addr,
net/ipv4/tcp_ipv4.c
1393
int tcp_md5_do_add(struct sock *sk, const union tcp_md5_addr *addr,
net/ipv4/tcp_ipv4.c
1422
int tcp_md5_key_copy(struct sock *sk, const union tcp_md5_addr *addr,
net/ipv4/tcp_ipv4.c
1449
int tcp_md5_do_del(struct sock *sk, const union tcp_md5_addr *addr, int family,
net/ipv4/tcp_ipv4.c
1463
void tcp_clear_md5_list(struct sock *sk)
net/ipv4/tcp_ipv4.c
1479
static int tcp_v4_parse_md5_keys(struct sock *sk, int optname,
net/ipv4/tcp_ipv4.c
1578
const struct sock *sk, const struct sk_buff *skb)
net/ipv4/tcp_ipv4.c
1603
const struct sock *sk_listener,
net/ipv4/tcp_ipv4.c
1614
static struct dst_entry *tcp_v4_route_req(const struct sock *sk,
net/ipv4/tcp_ipv4.c
1655
int tcp_v4_conn_request(struct sock *sk, struct sk_buff *skb)
net/ipv4/tcp_ipv4.c
1674
struct sock *tcp_v4_syn_recv_sock(const struct sock *sk, struct sk_buff *skb,
net/ipv4/tcp_ipv4.c
1679
void (*opt_child_init)(struct sock *newsk,
net/ipv4/tcp_ipv4.c
1680
const struct sock *sk))
net/ipv4/tcp_ipv4.c
1686
struct sock *newsk;
net/ipv4/tcp_ipv4.c
1794
static struct sock *tcp_v4_cookie_check(struct sock *sk, struct sk_buff *skb)
net/ipv4/tcp_ipv4.c
1805
u16 tcp_v4_get_syncookie(struct sock *sk, struct iphdr *iph,
net/ipv4/tcp_ipv4.c
1830
int tcp_v4_do_rcv(struct sock *sk, struct sk_buff *skb)
net/ipv4/tcp_ipv4.c
1862
struct sock *nsk = tcp_v4_cookie_check(sk, skb);
net/ipv4/tcp_ipv4.c
1901
enum skb_drop_reason tcp_add_backlog(struct sock *sk, struct sk_buff *skb)
net/ipv4/tcp_ipv4.c
205
static int tcp_v4_pre_connect(struct sock *sk, struct sockaddr_unsized *uaddr,
net/ipv4/tcp_ipv4.c
2079
struct sock *sk = NULL;
net/ipv4/tcp_ipv4.c
2125
struct sock *nsk;
net/ipv4/tcp_ipv4.c
221
int tcp_v4_connect(struct sock *sk, struct sockaddr_unsized *uaddr, int addr_len)
net/ipv4/tcp_ipv4.c
2310
struct sock *sk2 = inet_lookup_listener(net, skb, __tcp_hdrlen(th),
net/ipv4/tcp_ipv4.c
2348
void inet_sk_rx_dst_set(struct sock *sk, const struct sk_buff *skb)
net/ipv4/tcp_ipv4.c
2385
static void tcp4_destruct_sock(struct sock *sk)
net/ipv4/tcp_ipv4.c
2396
static int tcp_v4_init_sock(struct sock *sk)
net/ipv4/tcp_ipv4.c
2412
static void tcp_release_user_frags(struct sock *sk)
net/ipv4/tcp_ipv4.c
2423
void tcp_v4_destroy_sock(struct sock *sk)
net/ipv4/tcp_ipv4.c
2467
static bool seq_sk_match(struct seq_file *seq, const struct sock *sk)
net/ipv4/tcp_ipv4.c
2488
struct sock *sk;
net/ipv4/tcp_ipv4.c
2516
struct sock *sk = cur;
net/ipv4/tcp_ipv4.c
2567
struct sock *sk;
net/ipv4/tcp_ipv4.c
2593
struct sock *sk = cur;
net/ipv4/tcp_ipv4.c
2770
static void get_tcp4_sock(struct sock *sk, struct seq_file *f, int i)
net/ipv4/tcp_ipv4.c
2858
struct sock *sk = v;
net/ipv4/tcp_ipv4.c
2882
struct sock *sk;
net/ipv4/tcp_ipv4.c
2947
static struct sock *bpf_iter_tcp_resume_bucket(struct sock *first_sk,
net/ipv4/tcp_ipv4.c
2952
struct sock *sk;
net/ipv4/tcp_ipv4.c
2965
static struct sock *bpf_iter_tcp_resume_listening(struct seq_file *seq)
net/ipv4/tcp_ipv4.c
2973
struct sock *sk;
net/ipv4/tcp_ipv4.c
2995
static struct sock *bpf_iter_tcp_resume_established(struct seq_file *seq)
net/ipv4/tcp_ipv4.c
3003
struct sock *sk;
net/ipv4/tcp_ipv4.c
3025
static struct sock *bpf_iter_tcp_resume(struct seq_file *seq)
net/ipv4/tcp_ipv4.c
3029
struct sock *sk = NULL;
net/ipv4/tcp_ipv4.c
3048
struct sock **start_sk)
net/ipv4/tcp_ipv4.c
3053
struct sock *sk;
net/ipv4/tcp_ipv4.c
3077
struct sock **start_sk)
net/ipv4/tcp_ipv4.c
3082
struct sock *sk;
net/ipv4/tcp_ipv4.c
3106
struct sock **start_sk)
net/ipv4/tcp_ipv4.c
3129
static struct sock *bpf_iter_tcp_batch(struct seq_file *seq)
net/ipv4/tcp_ipv4.c
3133
struct sock *sk;
net/ipv4/tcp_ipv4.c
3195
struct sock *sk;
net/ipv4/tcp_ipv4.c
3227
struct sock *sk = v;
net/ipv4/tcp_ipv4.c
3650
struct sock *sk;
net/ipv4/tcp_ipv4.c
3665
per_cpu(ipv4_tcp_sk.sock, cpu) = sk;
net/ipv4/tcp_ipv4.c
370
void tcp_v4_mtu_reduced(struct sock *sk)
net/ipv4/tcp_ipv4.c
404
static void do_redirect(struct sk_buff *skb, struct sock *sk)
net/ipv4/tcp_ipv4.c
414
void tcp_req_err(struct sock *sk, u32 seq, bool abort)
net/ipv4/tcp_ipv4.c
438
void tcp_ld_RTO_revert(struct sock *sk, u32 seq)
net/ipv4/tcp_ipv4.c
501
struct sock *sk;
net/ipv4/tcp_ipv4.c
660
static bool tcp_v4_ao_sign_reset(const struct sock *sk, struct sk_buff *skb,
net/ipv4/tcp_ipv4.c
717
static void tcp_v4_send_reset(const struct sock *sk, struct sk_buff *skb,
net/ipv4/tcp_ipv4.c
731
struct sock *sk1 = NULL;
net/ipv4/tcp_ipv4.c
734
struct sock *ctl_sk;
net/ipv4/tcp_ipv4.c
862
BUILD_BUG_ON(offsetof(struct sock, sk_bound_dev_if) !=
net/ipv4/tcp_ipv4.c
870
ctl_sk = this_cpu_read(ipv4_tcp_sk.sock);
net/ipv4/tcp_ipv4.c
909
static void tcp_v4_send_ack(const struct sock *sk,
net/ipv4/tcp_ipv4.c
922
struct sock *ctl_sk;
net/ipv4/tcp_ipv4.c
996
ctl_sk = this_cpu_read(ipv4_tcp_sk.sock);
net/ipv4/tcp_lp.c
123
static void tcp_lp_cong_avoid(struct sock *sk, u32 ack, u32 acked)
net/ipv4/tcp_lp.c
139
static u32 tcp_lp_remote_hz_estimator(struct sock *sk)
net/ipv4/tcp_lp.c
193
static u32 tcp_lp_owd_calculator(struct sock *sk)
net/ipv4/tcp_lp.c
229
static void tcp_lp_rtt_sample(struct sock *sk, u32 rtt)
net/ipv4/tcp_lp.c
274
static void tcp_lp_pkts_acked(struct sock *sk, const struct ack_sample *sample)
net/ipv4/tcp_lp.c
97
static void tcp_lp_init(struct sock *sk)
net/ipv4/tcp_metrics.c
291
static struct tcp_metrics_block *tcp_get_metrics(struct sock *sk,
net/ipv4/tcp_metrics.c
340
void tcp_update_metrics(struct sock *sk)
net/ipv4/tcp_metrics.c
464
void tcp_init_metrics(struct sock *sk)
net/ipv4/tcp_metrics.c
561
void tcp_fastopen_cache_get(struct sock *sk, u16 *mss,
net/ipv4/tcp_metrics.c
584
void tcp_fastopen_cache_set(struct sock *sk, u16 mss,
net/ipv4/tcp_minisocks.c
105
struct tcp_timewait_sock *tcptw = tcp_twsk((struct sock *)tw);
net/ipv4/tcp_minisocks.c
291
static void tcp_time_wait_init(struct sock *sk, struct tcp_timewait_sock *tcptw)
net/ipv4/tcp_minisocks.c
326
void tcp_time_wait(struct sock *sk, int state, int timeo)
net/ipv4/tcp_minisocks.c
336
struct tcp_timewait_sock *tcptw = tcp_twsk((struct sock *)tw);
net/ipv4/tcp_minisocks.c
396
void tcp_twsk_destructor(struct sock *sk)
net/ipv4/tcp_minisocks.c
42
struct tcp_timewait_sock *tcptw = tcp_twsk((struct sock *)tw);
net/ipv4/tcp_minisocks.c
432
const struct sock *sk_listener,
net/ipv4/tcp_minisocks.c
453
rcv_wnd = tcp_rwnd_init_bpf((struct sock *)req);
net/ipv4/tcp_minisocks.c
470
static void tcp_ecn_openreq_child(struct sock *sk,
net/ipv4/tcp_minisocks.c
497
void tcp_ca_openreq_child(struct sock *sk, const struct dst_entry *dst)
net/ipv4/tcp_minisocks.c
546
struct sock *tcp_create_openreq_child(const struct sock *sk,
net/ipv4/tcp_minisocks.c
550
struct sock *newsk = inet_csk_clone_lock(sk, req, GFP_ATOMIC);
net/ipv4/tcp_minisocks.c
687
struct sock *tcp_check_req(struct sock *sk, struct sk_buff *skb,
net/ipv4/tcp_minisocks.c
693
struct sock *child;
net/ipv4/tcp_minisocks.c
998
enum skb_drop_reason tcp_child_process(struct sock *parent, struct sock *child,
net/ipv4/tcp_nv.c
123
static inline void tcpnv_reset(struct tcpnv *ca, struct sock *sk)
net/ipv4/tcp_nv.c
137
static void tcpnv_init(struct sock *sk)
net/ipv4/tcp_nv.c
180
static void tcpnv_cong_avoid(struct sock *sk, u32 ack, u32 acked)
net/ipv4/tcp_nv.c
208
static u32 tcpnv_recalc_ssthresh(struct sock *sk)
net/ipv4/tcp_nv.c
215
static void tcpnv_state(struct sock *sk, u8 new_state)
net/ipv4/tcp_nv.c
239
static void tcpnv_acked(struct sock *sk, const struct ack_sample *sample)
net/ipv4/tcp_nv.c
453
static size_t tcpnv_get_info(struct sock *sk, u32 ext, int *attr,
net/ipv4/tcp_offload.c
394
struct sock *sk;
net/ipv4/tcp_output.c
1061
static unsigned int tcp_synack_options(const struct sock *sk,
net/ipv4/tcp_output.c
113
static inline __u32 tcp_acceptable_seq(const struct sock *sk)
net/ipv4/tcp_output.c
1142
remaining = bpf_skops_hdr_opt_len((struct sock *)sk, skb, req, syn_skb,
net/ipv4/tcp_output.c
1151
static unsigned int tcp_established_options(struct sock *sk, struct sk_buff *skb,
net/ipv4/tcp_output.c
1271
static void tcp_tsq_write(struct sock *sk)
net/ipv4/tcp_output.c
1289
static void tcp_tsq_handler(struct sock *sk)
net/ipv4/tcp_output.c
1311
struct sock *sk;
net/ipv4/tcp_output.c
1321
sk = (struct sock *)tp;
net/ipv4/tcp_output.c
1337
void tcp_release_cb(struct sock *sk)
net/ipv4/tcp_output.c
1389
struct sock *sk = skb->sk;
net/ipv4/tcp_output.c
139
static __u16 tcp_advertise_mss(struct sock *sk)
net/ipv4/tcp_output.c
1438
struct sock *sk = (struct sock *)tp;
net/ipv4/tcp_output.c
1446
static void tcp_update_skb_after_send(struct sock *sk, struct sk_buff *skb,
net/ipv4/tcp_output.c
1473
static void tcp_rate_skb_sent(struct sock *sk, struct sk_buff *skb)
net/ipv4/tcp_output.c
1505
INDIRECT_CALLABLE_DECLARE(int ip_queue_xmit(struct sock *sk, struct sk_buff *skb, struct flowi *fl));
net/ipv4/tcp_output.c
1506
INDIRECT_CALLABLE_DECLARE(int inet6_csk_xmit(struct sock *sk, struct sk_buff *skb, struct flowi *fl));
net/ipv4/tcp_output.c
1509
static void tcp_v4_send_check(struct sock *sk, struct sk_buff *skb)
net/ipv4/tcp_output.c
1519
static void tcp_v6_send_check(struct sock *sk, struct sk_buff *skb)
net/ipv4/tcp_output.c
1536
static int __tcp_transmit_skb(struct sock *sk, struct sk_buff *skb,
net/ipv4/tcp_output.c
160
void tcp_cwnd_restart(struct sock *sk, s32 delta)
net/ipv4/tcp_output.c
1731
static int tcp_transmit_skb(struct sock *sk, struct sk_buff *skb, int clone_it,
net/ipv4/tcp_output.c
1743
static void tcp_queue_skb(struct sock *sk, struct sk_buff *skb)
net/ipv4/tcp_output.c
1778
static void tcp_adjust_pcount(struct sock *sk, const struct sk_buff *skb, int decr)
net/ipv4/tcp_output.c
180
struct sock *sk)
net/ipv4/tcp_output.c
1830
struct sock *sk,
net/ipv4/tcp_output.c
1844
int tcp_fragment(struct sock *sk, enum tcp_queue tcp_queue,
net/ipv4/tcp_output.c
1972
int tcp_trim_head(struct sock *sk, struct sk_buff *skb, u32 len)
net/ipv4/tcp_output.c
198
static inline void tcp_event_ack_sent(struct sock *sk, u32 rcv_nxt)
net/ipv4/tcp_output.c
1996
static inline int __tcp_mtu_to_mss(struct sock *sk, int pmtu)
net/ipv4/tcp_output.c
2021
int tcp_mtu_to_mss(struct sock *sk, int pmtu)
net/ipv4/tcp_output.c
2029
int tcp_mss_to_mtu(struct sock *sk, int mss)
net/ipv4/tcp_output.c
2042
void tcp_mtup_init(struct sock *sk)
net/ipv4/tcp_output.c
2079
unsigned int tcp_sync_mss(struct sock *sk, u32 pmtu)
net/ipv4/tcp_output.c
2103
unsigned int tcp_current_mss(struct sock *sk)
net/ipv4/tcp_output.c
2138
static void tcp_cwnd_application_limited(struct sock *sk)
net/ipv4/tcp_output.c
2156
static void tcp_cwnd_validate(struct sock *sk, bool is_cwnd_limited)
net/ipv4/tcp_output.c
223
void tcp_select_initial_window(const struct sock *sk, int __space, __u32 mss,
net/ipv4/tcp_output.c
2256
static u32 tcp_tso_autosize(const struct sock *sk, unsigned int mss_now,
net/ipv4/tcp_output.c
2276
static u32 tcp_tso_segs(struct sock *sk, unsigned int mss_now)
net/ipv4/tcp_output.c
2290
static unsigned int tcp_mss_split_point(const struct sock *sk,
net/ipv4/tcp_output.c
2400
static int tso_fragment(struct sock *sk, struct sk_buff *skb, unsigned int len,
net/ipv4/tcp_output.c
2452
static bool tcp_tso_should_defer(struct sock *sk, struct sk_buff *skb,
net/ipv4/tcp_output.c
2565
static inline void tcp_mtu_check_reprobe(struct sock *sk)
net/ipv4/tcp_output.c
2590
static bool tcp_can_coalesce_send_queue_head(struct sock *sk, int len)
net/ipv4/tcp_output.c
2608
static int tcp_clone_payload(struct sock *sk, struct sk_buff *to,
net/ipv4/tcp_output.c
2664
static void tcp_eat_one_skb(struct sock *sk,
net/ipv4/tcp_output.c
2684
static int tcp_mtu_probe(struct sock *sk)
net/ipv4/tcp_output.c
275
static u16 tcp_select_window(struct sock *sk)
net/ipv4/tcp_output.c
2815
static bool tcp_pacing_check(struct sock *sk)
net/ipv4/tcp_output.c
2834
static bool tcp_rtx_queue_empty_or_single_skb(const struct sock *sk)
net/ipv4/tcp_output.c
2857
static bool tcp_small_queue_check(struct sock *sk, const struct sk_buff *skb,
net/ipv4/tcp_output.c
2903
void tcp_chrono_stop(struct sock *sk, const enum tcp_chrono type)
net/ipv4/tcp_output.c
2924
static void tcp_grow_skb(struct sock *sk, struct sk_buff *skb, int amount)
net/ipv4/tcp_output.c
2964
static bool tcp_write_xmit(struct sock *sk, unsigned int mss_now, int nonagle,
net/ipv4/tcp_output.c
3099
bool tcp_schedule_loss_probe(struct sock *sk, bool advancing_rto)
net/ipv4/tcp_output.c
3152
static bool skb_still_in_host_queue(struct sock *sk,
net/ipv4/tcp_output.c
3170
void tcp_send_loss_probe(struct sock *sk)
net/ipv4/tcp_output.c
3235
void __tcp_push_pending_frames(struct sock *sk, unsigned int cur_mss,
net/ipv4/tcp_output.c
3253
void tcp_push_one(struct sock *sk, unsigned int mss_now)
net/ipv4/tcp_output.c
3314
u32 __tcp_select_window(struct sock *sk)
net/ipv4/tcp_output.c
342
static void tcp_ecn_send(struct sock *sk, struct sk_buff *skb,
net/ipv4/tcp_output.c
3451
static bool tcp_collapse_retrans(struct sock *sk, struct sk_buff *skb)
net/ipv4/tcp_output.c
3491
static bool tcp_can_collapse(const struct sock *sk, const struct sk_buff *skb)
net/ipv4/tcp_output.c
3509
static void tcp_retrans_try_collapse(struct sock *sk, struct sk_buff *to,
net/ipv4/tcp_output.c
3550
int __tcp_retransmit_skb(struct sock *sk, struct sk_buff *skb, int segs)
net/ipv4/tcp_output.c
3695
int tcp_retransmit_skb(struct sock *sk, struct sk_buff *skb, int segs)
net/ipv4/tcp_output.c
3725
void tcp_xmit_retransmit_queue(struct sock *sk)
net/ipv4/tcp_output.c
380
static void tcp_init_nondata_skb(struct sk_buff *skb, struct sock *sk,
net/ipv4/tcp_output.c
3801
void tcp_send_fin(struct sock *sk)
net/ipv4/tcp_output.c
3852
void tcp_send_active_reset(struct sock *sk, gfp_t priority,
net/ipv4/tcp_output.c
3887
int tcp_send_synack(struct sock *sk)
net/ipv4/tcp_output.c
3931
struct sk_buff *tcp_make_synack(const struct sock *sk, struct dst_entry *dst,
net/ipv4/tcp_output.c
3970
skb_set_owner_w(skb, (struct sock *)sk);
net/ipv4/tcp_output.c
4072
bpf_skops_write_hdr_opt((struct sock *)sk, skb, req, syn_skb,
net/ipv4/tcp_output.c
4081
static void tcp_ca_dst_init(struct sock *sk, const struct dst_entry *dst)
net/ipv4/tcp_output.c
4101
static void tcp_connect_init(struct sock *sk)
net/ipv4/tcp_output.c
4177
static void tcp_connect_queue_skb(struct sock *sk, struct sk_buff *skb)
net/ipv4/tcp_output.c
4197
static int tcp_send_syn_data(struct sock *sk, struct sk_buff *syn)
net/ipv4/tcp_output.c
4294
int tcp_connect(struct sock *sk)
net/ipv4/tcp_output.c
4402
u32 tcp_delack_max(const struct sock *sk)
net/ipv4/tcp_output.c
4413
void tcp_send_delayed_ack(struct sock *sk)
net/ipv4/tcp_output.c
4466
void __tcp_send_ack(struct sock *sk, u32 rcv_nxt, u16 flags)
net/ipv4/tcp_output.c
4509
void tcp_send_ack(struct sock *sk)
net/ipv4/tcp_output.c
4525
static int tcp_xmit_probe_skb(struct sock *sk, int urgent, int mib)
net/ipv4/tcp_output.c
4548
void tcp_send_window_probe(struct sock *sk)
net/ipv4/tcp_output.c
4558
int tcp_write_wakeup(struct sock *sk, int mib)
net/ipv4/tcp_output.c
4604
void tcp_send_probe0(struct sock *sk)
net/ipv4/tcp_output.c
4638
int tcp_rtx_synack(const struct sock *sk, struct request_sock *req)
net/ipv4/tcp_output.c
469
static u32 bpf_skops_hdr_opt_len(struct sock *sk, struct sk_buff *skb,
net/ipv4/tcp_output.c
505
sock_ops.sk = (struct sock *)req;
net/ipv4/tcp_output.c
533
static void bpf_skops_write_hdr_opt(struct sock *sk, struct sk_buff *skb,
net/ipv4/tcp_output.c
551
sock_ops.sk = (struct sock *)req;
net/ipv4/tcp_output.c
578
static u32 bpf_skops_hdr_opt_len(struct sock *sk, struct sk_buff *skb,
net/ipv4/tcp_output.c
588
static void bpf_skops_write_hdr_opt(struct sock *sk, struct sk_buff *skb,
net/ipv4/tcp_output.c
60
static bool tcp_write_xmit(struct sock *sk, unsigned int mss_now, int nonagle,
net/ipv4/tcp_output.c
83
static void tcp_event_new_data_sent(struct sock *sk, struct sk_buff *skb)
net/ipv4/tcp_output.c
959
static unsigned int tcp_syn_options(struct sock *sk, struct sk_buff *skb,
net/ipv4/tcp_plb.c
26
void tcp_plb_update_state(const struct sock *sk, struct tcp_plb_state *plb,
net/ipv4/tcp_plb.c
47
void tcp_plb_check_rehash(struct sock *sk, struct tcp_plb_state *plb)
net/ipv4/tcp_plb.c
92
void tcp_plb_update_state_upon_rto(struct sock *sk, struct tcp_plb_state *plb)
net/ipv4/tcp_recovery.c
117
void tcp_rack_reo_timeout(struct sock *sk)
net/ipv4/tcp_recovery.c
142
void tcp_newreno_mark_lost(struct sock *sk, bool snd_una_advanced)
net/ipv4/tcp_recovery.c
5
static u32 tcp_rack_reo_wnd(const struct sock *sk)
net/ipv4/tcp_recovery.c
58
static void tcp_rack_detect_loss(struct sock *sk, u32 *reo_timeout)
net/ipv4/tcp_recovery.c
95
bool tcp_rack_mark_lost(struct sock *sk)
net/ipv4/tcp_scalable.c
18
static void tcp_scalable_cong_avoid(struct sock *sk, u32 ack, u32 acked)
net/ipv4/tcp_scalable.c
34
static u32 tcp_scalable_ssthresh(struct sock *sk)
net/ipv4/tcp_timer.c
107
static int tcp_out_of_resources(struct sock *sk, bool do_reset)
net/ipv4/tcp_timer.c
150
static int tcp_orphan_retries(struct sock *sk, bool alive)
net/ipv4/tcp_timer.c
166
static void tcp_mtu_probing(struct inet_connection_sock *icsk, struct sock *sk)
net/ipv4/tcp_timer.c
188
static unsigned int tcp_model_timeout(struct sock *sk,
net/ipv4/tcp_timer.c
215
static bool retransmits_timed_out(struct sock *sk,
net/ipv4/tcp_timer.c
243
static int tcp_write_timeout(struct sock *sk)
net/ipv4/tcp_timer.c
28
static u32 tcp_clamp_rto_to_user_timeout(const struct sock *sk)
net/ipv4/tcp_timer.c
309
void tcp_delack_timer_handler(struct sock *sk)
net/ipv4/tcp_timer.c
365
struct sock *sk = &icsk->icsk_inet.sk;
net/ipv4/tcp_timer.c
389
static void tcp_probe_timer(struct sock *sk)
net/ipv4/tcp_timer.c
440
static void tcp_update_rto_stats(struct sock *sk)
net/ipv4/tcp_timer.c
457
static void tcp_fastopen_synack_timer(struct sock *sk, struct request_sock *req)
net/ipv4/tcp_timer.c
494
static bool tcp_rtx_probe0_timed_out(const struct sock *sk,
net/ipv4/tcp_timer.c
50
u32 tcp_clamp_probe0_to_user_timeout(const struct sock *sk, u32 when)
net/ipv4/tcp_timer.c
535
void tcp_retransmit_timer(struct sock *sk)
net/ipv4/tcp_timer.c
695
void tcp_write_timer_handler(struct sock *sk)
net/ipv4/tcp_timer.c
732
struct sock *sk = timer_container_of(sk, t, tcp_retransmit_timer);
net/ipv4/tcp_timer.c
758
void tcp_reset_keepalive_timer(struct sock *sk, unsigned long len)
net/ipv4/tcp_timer.c
763
static void tcp_delete_keepalive_timer(struct sock *sk)
net/ipv4/tcp_timer.c
768
void tcp_set_keepalive(struct sock *sk, int val)
net/ipv4/tcp_timer.c
77
static void tcp_write_err(struct sock *sk)
net/ipv4/tcp_timer.c
783
struct sock *sk = &icsk->icsk_inet.sk;
net/ipv4/tcp_timer.c
871
struct sock *sk = (struct sock *)tp;
net/ipv4/tcp_timer.c
896
void tcp_init_xmit_timers(struct sock *sk)
net/ipv4/tcp_ulp.c
103
void tcp_update_ulp(struct sock *sk, struct proto *proto,
net/ipv4/tcp_ulp.c
104
void (*write_space)(struct sock *sk))
net/ipv4/tcp_ulp.c
112
void tcp_cleanup_ulp(struct sock *sk)
net/ipv4/tcp_ulp.c
130
static int __tcp_set_ulp(struct sock *sk, const struct tcp_ulp_ops *ulp_ops)
net/ipv4/tcp_ulp.c
157
int tcp_set_ulp(struct sock *sk, const char *name)
net/ipv4/tcp_vegas.c
111
void tcp_vegas_pkts_acked(struct sock *sk, const struct ack_sample *sample)
net/ipv4/tcp_vegas.c
134
void tcp_vegas_state(struct sock *sk, u8 ca_state)
net/ipv4/tcp_vegas.c
152
void tcp_vegas_cwnd_event(struct sock *sk, enum tcp_ca_event event)
net/ipv4/tcp_vegas.c
159
void tcp_vegas_cwnd_event_tx_start(struct sock *sk)
net/ipv4/tcp_vegas.c
170
static void tcp_vegas_cong_avoid(struct sock *sk, u32 ack, u32 acked)
net/ipv4/tcp_vegas.c
297
size_t tcp_vegas_get_info(struct sock *sk, u32 ext, int *attr,
net/ipv4/tcp_vegas.c
71
static void vegas_enable(struct sock *sk)
net/ipv4/tcp_vegas.c
87
static inline void vegas_disable(struct sock *sk)
net/ipv4/tcp_vegas.c
94
void tcp_vegas_init(struct sock *sk)
net/ipv4/tcp_vegas.h
19
void tcp_vegas_init(struct sock *sk);
net/ipv4/tcp_vegas.h
20
void tcp_vegas_state(struct sock *sk, u8 ca_state);
net/ipv4/tcp_vegas.h
21
void tcp_vegas_pkts_acked(struct sock *sk, const struct ack_sample *sample);
net/ipv4/tcp_vegas.h
22
void tcp_vegas_cwnd_event(struct sock *sk, enum tcp_ca_event event);
net/ipv4/tcp_vegas.h
23
void tcp_vegas_cwnd_event_tx_start(struct sock *sk);
net/ipv4/tcp_vegas.h
24
size_t tcp_vegas_get_info(struct sock *sk, u32 ext, int *attr,
net/ipv4/tcp_veno.c
113
static void tcp_veno_cwnd_event(struct sock *sk, enum tcp_ca_event event)
net/ipv4/tcp_veno.c
119
static void tcp_veno_cwnd_event_tx_start(struct sock *sk)
net/ipv4/tcp_veno.c
124
static void tcp_veno_cong_avoid(struct sock *sk, u32 ack, u32 acked)
net/ipv4/tcp_veno.c
200
static u32 tcp_veno_ssthresh(struct sock *sk)
net/ipv4/tcp_veno.c
45
static inline void veno_enable(struct sock *sk)
net/ipv4/tcp_veno.c
55
static inline void veno_disable(struct sock *sk)
net/ipv4/tcp_veno.c
63
static void tcp_veno_init(struct sock *sk)
net/ipv4/tcp_veno.c
73
static void tcp_veno_pkts_acked(struct sock *sk,
net/ipv4/tcp_veno.c
96
static void tcp_veno_state(struct sock *sk, u8 ca_state)
net/ipv4/tcp_westwood.c
103
static void tcp_westwood_pkts_acked(struct sock *sk,
net/ipv4/tcp_westwood.c
117
static void westwood_update_window(struct sock *sk)
net/ipv4/tcp_westwood.c
163
static inline void westwood_fast_bw(struct sock *sk)
net/ipv4/tcp_westwood.c
180
static inline u32 westwood_acked_count(struct sock *sk)
net/ipv4/tcp_westwood.c
217
static u32 tcp_westwood_bw_rttmin(const struct sock *sk)
net/ipv4/tcp_westwood.c
225
static void tcp_westwood_ack(struct sock *sk, u32 ack_flags)
net/ipv4/tcp_westwood.c
240
static void tcp_westwood_event(struct sock *sk, enum tcp_ca_event event)
net/ipv4/tcp_westwood.c
262
static size_t tcp_westwood_info(struct sock *sk, u32 ext, int *attr,
net/ipv4/tcp_westwood.c
61
static void tcp_westwood_init(struct sock *sk)
net/ipv4/tcp_yeah.c
188
static u32 tcp_yeah_ssthresh(struct sock *sk)
net/ipv4/tcp_yeah.c
41
static void tcp_yeah_init(struct sock *sk)
net/ipv4/tcp_yeah.c
58
static void tcp_yeah_cong_avoid(struct sock *sk, u32 ack, u32 acked)
net/ipv4/udp.c
1009
void udp_flush_pending_frames(struct sock *sk)
net/ipv4/udp.c
1095
struct sock *sk = skb->sk;
net/ipv4/udp.c
1177
int udp_push_pending_frames(struct sock *sk)
net/ipv4/udp.c
1210
int udp_cmsg_send(struct sock *sk, struct msghdr *msg, u16 *gso_size)
net/ipv4/udp.c
1233
int udp_sendmsg(struct sock *sk, struct msghdr *msg, size_t len)
net/ipv4/udp.c
136
struct sock *sk, unsigned int log)
net/ipv4/udp.c
139
struct sock *sk2;
net/ipv4/udp.c
1509
void udp_splice_eof(struct socket *sock)
net/ipv4/udp.c
1511
struct sock *sk = sock->sk;
net/ipv4/udp.c
1586
static void udp_rmem_release(struct sock *sk, unsigned int size,
net/ipv4/udp.c
1631
void udp_skb_destructor(struct sock *sk, struct sk_buff *skb)
net/ipv4/udp.c
1638
static void udp_skb_dtor_locked(struct sock *sk, struct sk_buff *skb)
net/ipv4/udp.c
1644
static int udp_rmem_schedule(struct sock *sk, int size)
net/ipv4/udp.c
1655
int __udp_enqueue_schedule_skb(struct sock *sk, struct sk_buff *skb)
net/ipv4/udp.c
171
struct sock *sk)
net/ipv4/udp.c
174
struct sock *sk2;
net/ipv4/udp.c
1789
void udp_destruct_common(struct sock *sk)
net/ipv4/udp.c
1805
static void udp_destruct_sock(struct sock *sk)
net/ipv4/udp.c
1811
static int udp_init_sock(struct sock *sk)
net/ipv4/udp.c
1820
void skb_consume_udp(struct sock *sk, struct sk_buff *skb, int len)
net/ipv4/udp.c
1842
static struct sk_buff *__first_packet_length(struct sock *sk,
net/ipv4/udp.c
1873
static int first_packet_length(struct sock *sk)
net/ipv4/udp.c
1901
int udp_ioctl(struct sock *sk, int cmd, int *karg)
net/ipv4/udp.c
1923
struct sk_buff *__skb_recv_udp(struct sock *sk, unsigned int flags,
net/ipv4/udp.c
1993
int udp_read_skb(struct sock *sk, skb_read_actor_t recv_actor)
net/ipv4/udp.c
200
static int udp_reuseport_add_sock(struct sock *sk, struct udp_hslot *hslot)
net/ipv4/udp.c
2031
int udp_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, int flags)
net/ipv4/udp.c
204
struct sock *sk2;
net/ipv4/udp.c
2133
int udp_pre_connect(struct sock *sk, struct sockaddr_unsized *uaddr,
net/ipv4/udp.c
2146
static int udp_connect(struct sock *sk, struct sockaddr_unsized *uaddr,
net/ipv4/udp.c
2159
int __udp_disconnect(struct sock *sk, int flags)
net/ipv4/udp.c
2187
int udp_disconnect(struct sock *sk, int flags)
net/ipv4/udp.c
2195
void udp_lib_unhash(struct sock *sk)
net/ipv4/udp.c
2229
void udp_lib_rehash(struct sock *sk, u16 newhash, u16 newhash4)
net/ipv4/udp.c
2295
static void udp_v4_rehash(struct sock *sk)
net/ipv4/udp.c
2307
static int __udp_queue_rcv_skb(struct sock *sk, struct sk_buff *skb)
net/ipv4/udp.c
231
int udp_lib_get_port(struct sock *sk, unsigned short snum,
net/ipv4/udp.c
2349
static int udp_queue_rcv_one_skb(struct sock *sk, struct sk_buff *skb)
net/ipv4/udp.c
2366
int (*encap_rcv)(struct sock *sk, struct sk_buff *skb);
net/ipv4/udp.c
2422
static int udp_queue_rcv_skb(struct sock *sk, struct sk_buff *skb)
net/ipv4/udp.c
2447
bool udp_sk_rx_dst_set(struct sock *sk, struct dst_entry *dst)
net/ipv4/udp.c
2471
struct sock *sk, *first = NULL;
net/ipv4/udp.c
2566
static int udp_unicast_rcv_skb(struct sock *sk, struct sk_buff *skb,
net/ipv4/udp.c
2592
struct sock *sk = NULL;
net/ipv4/udp.c
2699
static struct sock *__udp4_lib_mcast_demux_lookup(struct net *net,
net/ipv4/udp.c
2706
struct sock *sk, *result;
net/ipv4/udp.c
2734
static struct sock *__udp4_lib_demux_lookup(struct net *net,
net/ipv4/udp.c
2745
struct sock *sk;
net/ipv4/udp.c
2766
struct sock *sk = NULL;
net/ipv4/udp.c
2829
static void udp_destroy_sock(struct sock *sk)
net/ipv4/udp.c
2840
void (*encap_destroy)(struct sock *sk);
net/ipv4/udp.c
2857
struct sock *sk)
net/ipv4/udp.c
2886
int udp_lib_setsockopt(struct sock *sk, int level, int optname,
net/ipv4/udp.c
2888
int (*push_pending_frames)(struct sock *))
net/ipv4/udp.c
2987
static int udp_setsockopt(struct sock *sk, int level, int optname, sockptr_t optval,
net/ipv4/udp.c
2997
int udp_lib_getsockopt(struct sock *sk, int level, int optname,
net/ipv4/udp.c
3047
static int udp_getsockopt(struct sock *sk, int level, int optname,
net/ipv4/udp.c
3068
__poll_t udp_poll(struct file *file, struct socket *sock, poll_table *wait)
net/ipv4/udp.c
3070
__poll_t mask = datagram_poll(file, sock, wait);
net/ipv4/udp.c
3071
struct sock *sk = sock->sk;
net/ipv4/udp.c
3088
int udp_abort(struct sock *sk, int err)
net/ipv4/udp.c
3149
static bool seq_sk_match(struct seq_file *seq, const struct sock *sk)
net/ipv4/udp.c
3162
static struct sock *udp_get_first(struct seq_file *seq, int start)
net/ipv4/udp.c
3167
struct sock *sk;
net/ipv4/udp.c
3190
static struct sock *udp_get_next(struct seq_file *seq, struct sock *sk)
net/ipv4/udp.c
3211
static struct sock *udp_get_idx(struct seq_file *seq, loff_t pos)
net/ipv4/udp.c
3213
struct sock *sk = udp_get_first(seq, 0);
net/ipv4/udp.c
3231
struct sock *sk;
net/ipv4/udp.c
3254
static void udp4_format_sock(struct sock *sp, struct seq_file *f,
net/ipv4/udp.c
3300
struct sock *sk;
net/ipv4/udp.c
3314
static struct sock *bpf_iter_udp_resume(struct sock *first_sk,
net/ipv4/udp.c
3318
struct sock *sk = NULL;
net/ipv4/udp.c
3331
static struct sock *bpf_iter_udp_batch(struct seq_file *seq)
net/ipv4/udp.c
3341
struct sock *sk;
net/ipv4/udp.c
3373
sk = hlist_entry_safe(hslot2->head.first, struct sock,
net/ipv4/udp.c
3427
struct sock,
net/ipv4/udp.c
3448
struct sock *sk;
net/ipv4/udp.c
349
static int udp_v4_get_port(struct sock *sk, unsigned short snum)
net/ipv4/udp.c
3498
struct sock *sk = v;
net/ipv4/udp.c
362
compute_score(struct sock *sk, const struct net *net,
net/ipv4/udp.c
434
static struct sock *udp4_lib_lookup1(const struct net *net,
net/ipv4/udp.c
442
struct sock *sk, *result = NULL;
net/ipv4/udp.c
458
static struct sock *udp4_lib_lookup2(const struct net *net,
net/ipv4/udp.c
465
struct sock *sk, *result;
net/ipv4/udp.c
516
static struct sock *udp4_lib_lookup4(const struct net *net,
net/ipv4/udp.c
525
static void udp_rehash4(struct udp_table *udptable, struct sock *sk,
net/ipv4/udp.c
530
static void udp_unhash4(struct udp_table *udptable, struct sock *sk)
net/ipv4/udp.c
534
static struct sock *udp4_lib_lookup4(const struct net *net,
net/ipv4/udp.c
545
struct sock *sk;
net/ipv4/udp.c
555
sk = (struct sock *)up;
net/ipv4/udp.c
571
static void udp_rehash4(struct udp_table *udptable, struct sock *sk,
net/ipv4/udp.c
594
static void udp_unhash4(struct udp_table *udptable, struct sock *sk)
net/ipv4/udp.c
613
void udp_lib_hash4(struct sock *sk, u16 hash)
net/ipv4/udp.c
649
void udp4_hash4(struct sock *sk)
net/ipv4/udp.c
667
struct sock *__udp4_lib_lookup(const struct net *net, __be32 saddr,
net/ipv4/udp.c
674
struct sock *result, *sk;
net/ipv4/udp.c
736
static inline struct sock *__udp4_lib_lookup_skb(struct sk_buff *skb,
net/ipv4/udp.c
746
struct sock *udp4_lib_lookup_skb(const struct sk_buff *skb,
net/ipv4/udp.c
763
struct sock *udp4_lib_lookup(const struct net *net, __be32 saddr, __be16 sport,
net/ipv4/udp.c
766
struct sock *sk;
net/ipv4/udp.c
776
static inline bool __udp_is_mcast_sock(struct net *net, const struct sock *sk,
net/ipv4/udp.c
853
static struct sock *__udp4_lib_err_encap(struct net *net,
net/ipv4/udp.c
856
struct sock *sk,
net/ipv4/udp.c
859
int (*lookup)(struct sock *sk, struct sk_buff *skb);
net/ipv4/udp.c
921
struct sock *sk;
net/ipv4/udp_bpf.c
12
static int sk_udp_recvmsg(struct sock *sk, struct msghdr *msg, size_t len,
net/ipv4/udp_bpf.c
122
static int udp_bpf_ioctl(struct sock *sk, int cmd, int *karg)
net/ipv4/udp_bpf.c
163
int udp_bpf_update_proto(struct sock *sk, struct sk_psock *psock, bool restore)
net/ipv4/udp_bpf.c
22
static bool udp_sk_has_data(struct sock *sk)
net/ipv4/udp_bpf.c
37
static int udp_msg_wait_data(struct sock *sk, struct sk_psock *psock,
net/ipv4/udp_bpf.c
63
static int udp_bpf_recvmsg(struct sock *sk, struct msghdr *msg, size_t len,
net/ipv4/udp_diag.c
103
struct sock *sk;
net/ipv4/udp_diag.c
144
static void udp_diag_get_info(struct sock *sk, struct inet_diag_msg *r,
net/ipv4/udp_diag.c
15
static int sk_diag_dump(struct sock *sk, struct sk_buff *skb,
net/ipv4/udp_diag.c
156
struct sock *sk;
net/ipv4/udp_diag.c
31
struct sock *sk = NULL;
net/ipv4/udp_offload.c
147
static struct sk_buff *udp_tunnel_gro_rcv(struct sock *sk,
net/ipv4/udp_offload.c
163
static struct sk_buff *udp_tunnel_gro_rcv(struct sock *sk,
net/ipv4/udp_offload.c
23
static struct sk_buff *dummy_gro_rcv(struct sock *sk,
net/ipv4/udp_offload.c
482
struct sock *sk = gso_skb->sk;
net/ipv4/udp_offload.c
52
void udp_tunnel_update_gro_lookup(struct net *net, struct sock *sk, bool add)
net/ipv4/udp_offload.c
70
rcu_assign_pointer(udp_tunnel_gro->sk, (struct sock *)tup);
net/ipv4/udp_offload.c
780
struct udphdr *uh, struct sock *sk)
net/ipv4/udp_offload.c
79
void udp_tunnel_update_gro_rcv(struct sock *sk, bool add)
net/ipv4/udp_offload.c
848
static struct sock *udp4_gro_lookup_skb(struct sk_buff *skb, __be16 sport,
net/ipv4/udp_offload.c
853
struct sock *sk;
net/ipv4/udp_offload.c
870
struct sock *sk = NULL;
net/ipv4/udp_offload.c
920
struct sock *sk;
net/ipv4/udp_tunnel_core.c
100
void udp_tunnel_push_rx_port(struct net_device *dev, struct sock *sk,
net/ipv4/udp_tunnel_core.c
113
void udp_tunnel_drop_rx_port(struct net_device *dev, struct sock *sk,
net/ipv4/udp_tunnel_core.c
127
void udp_tunnel_notify_add_rx_port(struct sock *sk, unsigned short type)
net/ipv4/udp_tunnel_core.c
148
void udp_tunnel_notify_del_rx_port(struct sock *sk, unsigned short type)
net/ipv4/udp_tunnel_core.c
16
struct socket *sock = NULL;
net/ipv4/udp_tunnel_core.c
168
void udp_tunnel_xmit_skb(struct rtable *rt, struct sock *sk, struct sk_buff *skb,
net/ipv4/udp_tunnel_core.c
19
err = sock_create_kern(net, AF_INET, SOCK_DGRAM, 0, &sock);
net/ipv4/udp_tunnel_core.c
192
void udp_tunnel_sock_release(struct sock *sk)
net/ipv4/udp_tunnel_core.c
194
struct socket *sock = sk->sk_socket;
net/ipv4/udp_tunnel_core.c
197
kernel_sock_shutdown(sock, SHUT_RDWR);
net/ipv4/udp_tunnel_core.c
198
sock_release(sock);
net/ipv4/udp_tunnel_core.c
24
err = sock_bindtoindex(sock->sk, cfg->bind_ifindex, true);
net/ipv4/udp_tunnel_core.c
32
err = kernel_bind(sock, (struct sockaddr_unsized *)&udp_addr,
net/ipv4/udp_tunnel_core.c
41
err = kernel_connect(sock, (struct sockaddr_unsized *)&udp_addr,
net/ipv4/udp_tunnel_core.c
47
sock->sk->sk_no_check_tx = !cfg->use_udp_checksums;
net/ipv4/udp_tunnel_core.c
49
*sockp = sock;
net/ipv4/udp_tunnel_core.c
53
if (sock) {
net/ipv4/udp_tunnel_core.c
54
kernel_sock_shutdown(sock, SHUT_RDWR);
net/ipv4/udp_tunnel_core.c
55
sock_release(sock);
net/ipv4/udp_tunnel_core.c
62
static bool sk_saddr_any(struct sock *sk)
net/ipv4/udp_tunnel_core.c
71
void setup_udp_tunnel_sock(struct net *net, struct sock *sk,
net/ipv4/xfrm4_input.c
162
int xfrm4_udp_encap_rcv(struct sock *sk, struct sk_buff *skb)
net/ipv4/xfrm4_input.c
180
struct sk_buff *xfrm4_gro_udp_encap_rcv(struct sock *sk, struct list_head *head,
net/ipv4/xfrm4_input.c
23
static int xfrm4_rcv_encap_finish2(struct net *net, struct sock *sk,
net/ipv4/xfrm4_input.c
29
static inline int xfrm4_rcv_encap_finish(struct net *net, struct sock *sk,
net/ipv4/xfrm4_input.c
82
static int __xfrm4_udp_encap_rcv(struct sock *sk, struct sk_buff *skb, bool pull)
net/ipv4/xfrm4_output.c
17
static int __xfrm4_output(struct net *net, struct sock *sk, struct sk_buff *skb)
net/ipv4/xfrm4_output.c
31
int xfrm4_output(struct net *net, struct sock *sk, struct sk_buff *skb)
net/ipv4/xfrm4_policy.c
106
static void xfrm4_redirect(struct dst_entry *dst, struct sock *sk,
net/ipv4/xfrm4_policy.c
96
static void xfrm4_update_pmtu(struct dst_entry *dst, struct sock *sk,
net/ipv6/addrconf.c
3016
static int ipv6_mc_config(struct sock *sk, bool join,
net/ipv6/addrconf.c
5375
struct net **tgt_net, struct sock *sk,
net/ipv6/af_inet6.c
105
static int inet6_create(struct net *net, struct socket *sock, int protocol,
net/ipv6/af_inet6.c
110
struct sock *sk;
net/ipv6/af_inet6.c
124
list_for_each_entry_rcu(answer, &inetsw6[sock->type], list) {
net/ipv6/af_inet6.c
152
PF_INET6, protocol, sock->type);
net/ipv6/af_inet6.c
166
if (sock->type == SOCK_RAW && !kern &&
net/ipv6/af_inet6.c
170
sock->ops = answer->ops;
net/ipv6/af_inet6.c
182
sock_init_data(sock, sk);
net/ipv6/af_inet6.c
194
if (SOCK_RAW == sock->type) {
net/ipv6/af_inet6.c
261
sock->sk = NULL;
net/ipv6/af_inet6.c
265
int __inet6_bind(struct sock *sk, struct sockaddr_unsized *uaddr, int addr_len,
net/ipv6/af_inet6.c
426
int inet6_bind_sk(struct sock *sk, struct sockaddr_unsized *uaddr, int addr_len)
net/ipv6/af_inet6.c
453
int inet6_bind(struct socket *sock, struct sockaddr_unsized *uaddr, int addr_len)
net/ipv6/af_inet6.c
455
return inet6_bind_sk(sock->sk, uaddr, addr_len);
net/ipv6/af_inet6.c
459
int inet6_release(struct socket *sock)
net/ipv6/af_inet6.c
461
struct sock *sk = sock->sk;
net/ipv6/af_inet6.c
472
return inet_release(sock);
net/ipv6/af_inet6.c
476
void inet6_cleanup_sock(struct sock *sk)
net/ipv6/af_inet6.c
505
int inet6_getname(struct socket *sock, struct sockaddr *uaddr,
net/ipv6/af_inet6.c
510
struct sock *sk = sock->sk;
net/ipv6/af_inet6.c
547
int inet6_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
net/ipv6/af_inet6.c
550
struct sock *sk = sock->sk;
net/ipv6/af_inet6.c
595
static int inet6_compat_routing_ioctl(struct sock *sk, unsigned int cmd,
net/ipv6/af_inet6.c
615
int inet6_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
net/ipv6/af_inet6.c
618
struct sock *sk = sock->sk;
net/ipv6/af_inet6.c
631
int inet6_sendmsg(struct socket *sock, struct msghdr *msg, size_t size)
net/ipv6/af_inet6.c
633
struct sock *sk = sock->sk;
net/ipv6/af_inet6.c
645
int inet6_recvmsg(struct socket *sock, struct msghdr *msg, size_t size,
net/ipv6/af_inet6.c
648
struct sock *sk = sock->sk;
net/ipv6/af_inet6.c
800
int inet6_sk_rebuild_header(struct sock *sk)
net/ipv6/af_inet6.c
842
bool ipv6_opt_accepted(const struct sock *sk, const struct sk_buff *skb,
net/ipv6/af_inet6.c
91
static struct ipv6_pinfo *inet6_sk_generic(struct sock *sk)
net/ipv6/af_inet6.c
98
void inet6_sock_destruct(struct sock *sk)
net/ipv6/anycast.c
173
int ipv6_sock_ac_drop(struct sock *sk, int ifindex, const struct in6_addr *addr)
net/ipv6/anycast.c
204
void __ipv6_sock_ac_close(struct sock *sk)
net/ipv6/anycast.c
232
void ipv6_sock_ac_close(struct sock *sk)
net/ipv6/anycast.c
67
int ipv6_sock_ac_join(struct sock *sk, int ifindex, const struct in6_addr *addr)
net/ipv6/calipso.c
1068
static int calipso_sock_getattr(struct sock *sk,
net/ipv6/calipso.c
1126
static int calipso_sock_setattr(struct sock *sk,
net/ipv6/calipso.c
1162
static void calipso_sock_delattr(struct sock *sk)
net/ipv6/calipso.c
1207
struct sock *sk = sk_to_full_sk(req_to_sk(req));
net/ipv6/calipso.c
1251
struct sock *sk = sk_to_full_sk(req_to_sk(req));
net/ipv6/calipso.c
776
static int calipso_opt_update(struct sock *sk, struct ipv6_opt_hdr *hop)
net/ipv6/datagram.c
1096
void __ip6_dgram_sock_seq_show(struct seq_file *seq, struct sock *sp,
net/ipv6/datagram.c
122
void ip6_datagram_release_cb(struct sock *sk)
net/ipv6/datagram.c
142
int __ip6_datagram_connect(struct sock *sk, struct sockaddr_unsized *uaddr,
net/ipv6/datagram.c
275
int ip6_datagram_connect(struct sock *sk, struct sockaddr_unsized *uaddr, int addr_len)
net/ipv6/datagram.c
286
int ip6_datagram_connect_v6_only(struct sock *sk, struct sockaddr_unsized *uaddr,
net/ipv6/datagram.c
307
void ipv6_icmp_error(struct sock *sk, struct sk_buff *skb, int err,
net/ipv6/datagram.c
346
void ipv6_local_error(struct sock *sk, int err, struct flowi6 *fl6, u32 info)
net/ipv6/datagram.c
385
void ipv6_local_rxpmtu(struct sock *sk, struct flowi6 *fl6, u32 mtu)
net/ipv6/datagram.c
42
const struct sock *sk)
net/ipv6/datagram.c
455
int ipv6_recv_error(struct sock *sk, struct msghdr *msg, int len)
net/ipv6/datagram.c
548
int ipv6_recv_rxpmtu(struct sock *sk, struct msghdr *msg, int len)
net/ipv6/datagram.c
595
void ip6_datagram_recv_common_ctl(struct sock *sk, struct msghdr *msg,
net/ipv6/datagram.c
632
void ip6_datagram_recv_specific_ctl(struct sock *sk, struct msghdr *msg,
net/ipv6/datagram.c
72
int ip6_datagram_dst_update(struct sock *sk, bool fix_sk_saddr)
net/ipv6/datagram.c
789
void ip6_datagram_recv_ctl(struct sock *sk, struct msghdr *msg,
net/ipv6/datagram.c
797
int ip6_datagram_send_ctl(struct net *net, struct sock *sk,
net/ipv6/esp6.c
143
static struct sock *esp6_find_tcp_sk(struct xfrm_state *x)
net/ipv6/esp6.c
148
struct sock *sk;
net/ipv6/esp6.c
170
struct sock *sk;
net/ipv6/esp6.c
196
static int esp_output_tcp_encap_cb(struct net *net, struct sock *sk,
net/ipv6/esp6.c
377
struct sock *sk;
net/ipv6/esp6.c
468
struct sock *sk = skb->sk;
net/ipv6/exthdrs.c
1230
ipv6_dup_options(struct sock *sk, struct ipv6_txoptions *opt)
net/ipv6/exthdrs.c
1289
ipv6_renew_options(struct sock *sk, struct ipv6_txoptions *opt,
net/ipv6/icmp.c
103
static struct sock *icmpv6_xmit_lock(struct net *net)
net/ipv6/icmp.c
105
struct sock *sk;
net/ipv6/icmp.c
119
static void icmpv6_xmit_unlock(struct sock *sk)
net/ipv6/icmp.c
1252
void icmpv6_flow_init(const struct sock *sk, struct flowi6 *fl6, u8 type,
net/ipv6/icmp.c
1268
struct sock *sk;
net/ipv6/icmp.c
195
static bool icmpv6_xrlim_allow(struct sock *sk, u8 type,
net/ipv6/icmp.c
239
static bool icmpv6_rt_has_prefsrc(struct sock *sk, u8 type,
net/ipv6/icmp.c
276
void icmpv6_push_pending_frames(struct sock *sk, struct flowi6 *fl6,
net/ipv6/icmp.c
356
struct sock *sk,
net/ipv6/icmp.c
642
struct sock *sk;
net/ipv6/icmp.c
72
static DEFINE_PER_CPU(struct sock *, ipv6_icmp_sk);
net/ipv6/icmp.c
924
struct sock *sk;
net/ipv6/ila/ila_lwt.c
38
static int ila_output(struct net *net, struct sock *sk, struct sk_buff *skb)
net/ipv6/inet6_connection_sock.c
27
struct dst_entry *inet6_csk_route_req(const struct sock *sk,
net/ipv6/inet6_connection_sock.c
61
struct dst_entry *inet6_csk_route_socket(struct sock *sk,
net/ipv6/inet6_connection_sock.c
97
int inet6_csk_xmit(struct sock *sk, struct sk_buff *skb, struct flowi *fl_unused)
net/ipv6/inet6_hashtables.c
126
static inline int compute_score(struct sock *sk, const struct net *net,
net/ipv6/inet6_hashtables.c
164
struct sock *inet6_lookup_reuseport(const struct net *net, struct sock *sk,
net/ipv6/inet6_hashtables.c
172
struct sock *reuse_sk = NULL;
net/ipv6/inet6_hashtables.c
185
static struct sock *inet6_lhash2_lookup(const struct net *net,
net/ipv6/inet6_hashtables.c
192
struct sock *sk, *result = NULL;
net/ipv6/inet6_hashtables.c
212
struct sock *inet6_lookup_run_sk_lookup(const struct net *net,
net/ipv6/inet6_hashtables.c
221
struct sock *sk, *reuse_sk;
net/ipv6/inet6_hashtables.c
237
struct sock *inet6_lookup_listener(const struct net *net,
net/ipv6/inet6_hashtables.c
247
struct sock *result = NULL;
net/ipv6/inet6_hashtables.c
283
struct sock *inet6_lookup(const struct net *net,
net/ipv6/inet6_hashtables.c
289
struct sock *sk;
net/ipv6/inet6_hashtables.c
301
struct sock *sk, const __u16 lport,
net/ipv6/inet6_hashtables.c
317
struct sock *sk2;
net/ipv6/inet6_hashtables.c
360
sk_nulls_del_node_init_rcu((struct sock *)tw);
net/ipv6/inet6_hashtables.c
379
static u64 inet6_sk_port_offset(const struct sock *sk)
net/ipv6/inet6_hashtables.c
389
struct sock *sk)
net/ipv6/inet6_hashtables.c
84
struct sock *__inet6_lookup_established(const struct net *net,
net/ipv6/inet6_hashtables.c
96
struct sock *sk;
net/ipv6/ioam6_iptunnel.c
338
static int ioam6_output(struct net *net, struct sock *sk, struct sk_buff *skb)
net/ipv6/ip6_flowlabel.c
256
struct ip6_flowlabel *__fl6_sock_lookup(struct sock *sk, __be32 label)
net/ipv6/ip6_flowlabel.c
277
void fl6_free_socklist(struct sock *sk)
net/ipv6/ip6_flowlabel.c
369
fl_create(struct net *net, struct sock *sk, struct in6_flowlabel_req *freq,
net/ipv6/ip6_flowlabel.c
464
static int mem_check(struct sock *sk)
net/ipv6/ip6_flowlabel.c
496
static inline void fl_link(struct sock *sk, struct ipv6_fl_socklist *sfl,
net/ipv6/ip6_flowlabel.c
508
int ipv6_flowlabel_opt_get(struct sock *sk, struct in6_flowlabel_req *freq,
net/ipv6/ip6_flowlabel.c
548
static int ipv6_flowlabel_put(struct sock *sk, struct in6_flowlabel_req *freq)
net/ipv6/ip6_flowlabel.c
583
static int ipv6_flowlabel_renew(struct sock *sk, struct in6_flowlabel_req *freq)
net/ipv6/ip6_flowlabel.c
614
static int ipv6_flowlabel_get(struct sock *sk, struct in6_flowlabel_req *freq,
net/ipv6/ip6_flowlabel.c
736
int ipv6_flowlabel_opt(struct sock *sk, sockptr_t optval, int optlen)
net/ipv6/ip6_input.c
109
int ip6_rcv_finish(struct net *net, struct sock *sk, struct sk_buff *skb)
net/ipv6/ip6_input.c
149
static void ip6_list_rcv_finish(struct net *net, struct sock *sk,
net/ipv6/ip6_input.c
524
static int ip6_input_finish(struct net *net, struct sock *sk, struct sk_buff *skb)
net/ipv6/ip6_input.c
54
struct sock *sk;
net/ipv6/ip6_input.c
88
static void ip6_rcv_finish_core(struct net *net, struct sock *sk,
net/ipv6/ip6_output.c
1087
static struct dst_entry *ip6_sk_dst_check(struct sock *sk,
net/ipv6/ip6_output.c
1135
static int ip6_dst_lookup_tail(struct net *net, const struct sock *sk,
net/ipv6/ip6_output.c
1263
int ip6_dst_lookup(struct net *net, struct sock *sk, struct dst_entry **dst,
net/ipv6/ip6_output.c
1283
struct dst_entry *ip6_dst_lookup_flow(struct net *net, const struct sock *sk, struct flowi6 *fl6,
net/ipv6/ip6_output.c
1319
struct dst_entry *ip6_sk_dst_lookup_flow(struct sock *sk, struct flowi6 *fl6,
net/ipv6/ip6_output.c
1372
static int ip6_setup_cork(struct sock *sk, struct inet_cork_full *cork,
net/ipv6/ip6_output.c
141
ip6_finish_output_gso_slowpath_drop(struct net *net, struct sock *sk,
net/ipv6/ip6_output.c
1449
static int __ip6_append_data(struct sock *sk,
net/ipv6/ip6_output.c
179
static int ip6_finish_output_gso(struct net *net, struct sock *sk,
net/ipv6/ip6_output.c
1856
int ip6_append_data(struct sock *sk,
net/ipv6/ip6_output.c
188
static int __ip6_finish_output(struct net *net, struct sock *sk, struct sk_buff *skb)
net/ipv6/ip6_output.c
1922
struct sk_buff *__ip6_make_skb(struct sock *sk,
net/ipv6/ip6_output.c
2027
int ip6_push_pending_frames(struct sock *sk)
net/ipv6/ip6_output.c
2039
static void __ip6_flush_pending_frames(struct sock *sk,
net/ipv6/ip6_output.c
2055
void ip6_flush_pending_frames(struct sock *sk)
net/ipv6/ip6_output.c
2062
struct sk_buff *ip6_make_skb(struct sock *sk,
net/ipv6/ip6_output.c
211
static int ip6_finish_output(struct net *net, struct sock *sk, struct sk_buff *skb)
net/ipv6/ip6_output.c
226
int ip6_output(struct net *net, struct sock *sk, struct sk_buff *skb)
net/ipv6/ip6_output.c
255
bool ip6_autoflowlabel(struct net *net, const struct sock *sk)
net/ipv6/ip6_output.c
289
int ip6_xmit(const struct sock *sk, struct sk_buff *skb, struct flowi6 *fl6,
net/ipv6/ip6_output.c
370
skb = l3mdev_ip6_out((struct sock *)sk, skb);
net/ipv6/ip6_output.c
380
net, (struct sock *)sk, skb, NULL, dev,
net/ipv6/ip6_output.c
390
ipv6_local_error((struct sock *)sk, EMSGSIZE, fl6, mtu);
net/ipv6/ip6_output.c
403
struct sock *last = NULL;
net/ipv6/ip6_output.c
407
struct sock *sk = ra->sk;
net/ipv6/ip6_output.c
487
static inline int ip6_forward_finish(struct net *net, struct sock *sk,
net/ipv6/ip6_output.c
60
static int ip6_finish_output2(struct net *net, struct sock *sk, struct sk_buff *skb)
net/ipv6/ip6_output.c
885
int ip6_fragment(struct net *net, struct sock *sk, struct sk_buff *skb,
net/ipv6/ip6_output.c
886
int (*output)(struct net *, struct sock *, struct sk_buff *))
net/ipv6/ip6_udp_tunnel.c
138
struct sock *sk,
net/ipv6/ip6_udp_tunnel.c
22
struct socket *sock = NULL;
net/ipv6/ip6_udp_tunnel.c
24
err = sock_create_kern(net, AF_INET6, SOCK_DGRAM, 0, &sock);
net/ipv6/ip6_udp_tunnel.c
29
err = ip6_sock_set_v6only(sock->sk);
net/ipv6/ip6_udp_tunnel.c
34
err = sock_bindtoindex(sock->sk, cfg->bind_ifindex, true);
net/ipv6/ip6_udp_tunnel.c
43
err = kernel_bind(sock, (struct sockaddr_unsized *)&udp6_addr,
net/ipv6/ip6_udp_tunnel.c
54
err = kernel_connect(sock,
net/ipv6/ip6_udp_tunnel.c
61
udp_set_no_check6_tx(sock->sk, !cfg->use_udp6_tx_checksums);
net/ipv6/ip6_udp_tunnel.c
62
udp_set_no_check6_rx(sock->sk, !cfg->use_udp6_rx_checksums);
net/ipv6/ip6_udp_tunnel.c
64
*sockp = sock;
net/ipv6/ip6_udp_tunnel.c
68
if (sock) {
net/ipv6/ip6_udp_tunnel.c
69
kernel_sock_shutdown(sock, SHUT_RDWR);
net/ipv6/ip6_udp_tunnel.c
70
sock_release(sock);
net/ipv6/ip6_udp_tunnel.c
77
void udp_tunnel6_xmit_skb(struct dst_entry *dst, struct sock *sk,
net/ipv6/ip6mr.c
1093
struct sock *mroute6_sk;
net/ipv6/ip6mr.c
1618
static int ip6mr_sk_init(struct mr_table *mrt, struct sock *sk)
net/ipv6/ip6mr.c
1644
int ip6mr_sk_done(struct sock *sk)
net/ipv6/ip6mr.c
1711
int ip6_mroute_setsockopt(struct sock *sk, int optname, sockptr_t optval,
net/ipv6/ip6mr.c
1894
int ip6_mroute_getsockopt(struct sock *sk, int optname, sockptr_t optval,
net/ipv6/ip6mr.c
1943
int ip6mr_ioctl(struct sock *sk, int cmd, void *arg)
net/ipv6/ip6mr.c
2011
int ip6mr_compat_ioctl(struct sock *sk, unsigned int cmd, void __user *arg)
net/ipv6/ip6mr.c
2070
static inline int ip6mr_forward2_finish(struct net *net, struct sock *sk, struct sk_buff *skb)
net/ipv6/ip6mr.c
2406
int ip6_mr_output(struct net *net, struct sock *sk, struct sk_buff *skb)
net/ipv6/ipv6_sockglue.c
1010
static int ipv6_get_msfilter(struct sock *sk, sockptr_t optval,
net/ipv6/ipv6_sockglue.c
102
struct ipv6_txoptions *ipv6_update_options(struct sock *sk,
net/ipv6/ipv6_sockglue.c
1039
static int compat_ipv6_get_msfilter(struct sock *sk, sockptr_t optval,
net/ipv6/ipv6_sockglue.c
1078
int do_ipv6_getsockopt(struct sock *sk, int level, int optname,
net/ipv6/ipv6_sockglue.c
1443
int ipv6_getsockopt(struct sock *sk, int level, int optname,
net/ipv6/ipv6_sockglue.c
146
static int do_ipv6_mcast_group_source(struct sock *sk, int optname,
net/ipv6/ipv6_sockglue.c
187
static int ipv6_set_mcast_msfilter(struct sock *sk, sockptr_t optval,
net/ipv6/ipv6_sockglue.c
218
static int compat_ipv6_set_mcast_msfilter(struct sock *sk, sockptr_t optval,
net/ipv6/ipv6_sockglue.c
262
static int ipv6_mcast_join_leave(struct sock *sk, int optname,
net/ipv6/ipv6_sockglue.c
282
static int compat_ipv6_mcast_join_leave(struct sock *sk, int optname,
net/ipv6/ipv6_sockglue.c
302
static int ipv6_set_opt_hdr(struct sock *sk, int optname, sockptr_t optval,
net/ipv6/ipv6_sockglue.c
376
int do_ipv6_setsockopt(struct sock *sk, int level, int optname,
net/ipv6/ipv6_sockglue.c
60
int ip6_ra_control(struct sock *sk, int sel)
net/ipv6/ipv6_sockglue.c
954
int ipv6_setsockopt(struct sock *sk, int level, int optname, sockptr_t optval,
net/ipv6/ipv6_sockglue.c
976
static int ipv6_getsockopt_sticky(struct sock *sk, struct ipv6_txoptions *opt,
net/ipv6/mcast.c
1747
static void ip6_mc_hdr(const struct sock *sk, struct sk_buff *skb,
net/ipv6/mcast.c
1782
struct sock *sk;
net/ipv6/mcast.c
198
static int __ipv6_sock_mc_join(struct sock *sk, int ifindex,
net/ipv6/mcast.c
2189
struct sock *sk;
net/ipv6/mcast.c
249
int ipv6_sock_mc_join(struct sock *sk, int ifindex, const struct in6_addr *addr)
net/ipv6/mcast.c
255
int ipv6_sock_mc_join_ssm(struct sock *sk, int ifindex,
net/ipv6/mcast.c
264
static void __ipv6_sock_mc_drop(struct sock *sk, struct ipv6_mc_socklist *mc_lst)
net/ipv6/mcast.c
2645
static int ip6_mc_leave_src(struct sock *sk, struct ipv6_mc_socklist *iml,
net/ipv6/mcast.c
289
int ipv6_sock_mc_drop(struct sock *sk, int ifindex, const struct in6_addr *addr)
net/ipv6/mcast.c
330
void __ipv6_sock_mc_close(struct sock *sk)
net/ipv6/mcast.c
341
void ipv6_sock_mc_close(struct sock *sk)
net/ipv6/mcast.c
353
int ip6_mc_source(int add, int omode, struct sock *sk,
net/ipv6/mcast.c
487
int ip6_mc_msfilter(struct sock *sk, struct group_filter *gsf,
net/ipv6/mcast.c
585
int ip6_mc_msfget(struct sock *sk, struct group_filter *gsf,
net/ipv6/mcast.c
630
bool inet6_mc_check(const struct sock *sk, const struct in6_addr *mc_addr,
net/ipv6/mcast.c
91
static int ip6_mc_leave_src(struct sock *sk, struct ipv6_mc_socklist *iml,
net/ipv6/mip6.c
74
static int mip6_mh_filter(struct sock *sk, struct sk_buff *skb)
net/ipv6/ndisc.c
1659
struct sock *sk = net->ipv6.ndisc_sk;
net/ipv6/ndisc.c
1971
struct sock *sk;
net/ipv6/ndisc.c
476
struct sock *sk;
net/ipv6/netfilter.c
112
int br_ip6_fragment(struct net *net, struct sock *sk, struct sk_buff *skb,
net/ipv6/netfilter.c
114
int (*output)(struct net *, struct sock *sk,
net/ipv6/netfilter.c
24
int ip6_route_me_harder(struct net *net, struct sock *sk_partial, struct sk_buff *skb)
net/ipv6/netfilter.c
27
struct sock *sk = sk_to_full_sk(sk_partial);
net/ipv6/netfilter/ip6_tables.c
1627
do_ip6t_set_ctl(struct sock *sk, int cmd, sockptr_t arg, unsigned int len)
net/ipv6/netfilter/ip6_tables.c
1658
do_ip6t_get_ctl(struct sock *sk, int cmd, void __user *user, int *len)
net/ipv6/netfilter/nf_reject_ipv6.c
311
void nf_send_reset6(struct net *net, struct sock *sk, struct sk_buff *oldskb,
net/ipv6/netfilter/nf_socket_ipv6.c
77
static struct sock *
net/ipv6/netfilter/nf_socket_ipv6.c
96
struct sock *nf_sk_lookup_slow_v6(struct net *net, const struct sk_buff *skb,
net/ipv6/netfilter/nf_tproxy_ipv6.c
38
struct sock *
net/ipv6/netfilter/nf_tproxy_ipv6.c
43
struct sock *sk)
net/ipv6/netfilter/nf_tproxy_ipv6.c
57
struct sock *sk2;
net/ipv6/netfilter/nf_tproxy_ipv6.c
75
struct sock *
net/ipv6/netfilter/nf_tproxy_ipv6.c
83
struct sock *sk;
net/ipv6/output_core.c
102
int __ip6_local_out(struct net *net, struct sock *sk, struct sk_buff *skb)
net/ipv6/output_core.c
122
int ip6_local_out(struct net *net, struct sock *sk, struct sk_buff *skb)
net/ipv6/ping.c
238
struct inet_sock *inet = inet_sk((struct sock *)v);
net/ipv6/ping.c
27
static int dummy_ipv6_recv_error(struct sock *sk, struct msghdr *msg, int len)
net/ipv6/ping.c
31
static void dummy_ip6_datagram_recv_ctl(struct sock *sk, struct msghdr *msg,
net/ipv6/ping.c
39
static void dummy_ipv6_icmp_error(struct sock *sk, struct sk_buff *skb, int err,
net/ipv6/ping.c
47
static int ping_v6_pre_connect(struct sock *sk, struct sockaddr_unsized *uaddr,
net/ipv6/ping.c
61
static int ping_v6_sendmsg(struct sock *sk, struct msghdr *msg, size_t len)
net/ipv6/raw.c
1031
static int rawv6_setsockopt(struct sock *sk, int level, int optname,
net/ipv6/raw.c
1054
static int do_rawv6_getsockopt(struct sock *sk, int level, int optname,
net/ipv6/raw.c
1092
static int rawv6_getsockopt(struct sock *sk, int level, int optname,
net/ipv6/raw.c
1115
static int rawv6_ioctl(struct sock *sk, int cmd, int *karg)
net/ipv6/raw.c
114
typedef int mh_filter_t(struct sock *sock, struct sk_buff *skb);
net/ipv6/raw.c
1145
static int compat_rawv6_ioctl(struct sock *sk, unsigned int cmd, unsigned long arg)
net/ipv6/raw.c
1161
static void rawv6_close(struct sock *sk, long timeout)
net/ipv6/raw.c
1169
static void raw6_destroy(struct sock *sk)
net/ipv6/raw.c
1176
static int rawv6_init_sk(struct sock *sk)
net/ipv6/raw.c
1230
struct sock *sp = v;
net/ipv6/raw.c
148
struct sock *sk;
net/ipv6/raw.c
217
static int rawv6_bind(struct sock *sk, struct sockaddr_unsized *uaddr,
net/ipv6/raw.c
298
static void rawv6_err(struct sock *sk, struct sk_buff *skb,
net/ipv6/raw.c
341
struct sock *sk;
net/ipv6/raw.c
359
static inline int rawv6_rcv_skb(struct sock *sk, struct sk_buff *skb)
net/ipv6/raw.c
388
int rawv6_rcv(struct sock *sk, struct sk_buff *skb)
net/ipv6/raw.c
435
static int rawv6_recvmsg(struct sock *sk, struct msghdr *msg, size_t len,
net/ipv6/raw.c
512
static int rawv6_push_pending_frames(struct sock *sk, struct flowi6 *fl6,
net/ipv6/raw.c
595
static int rawv6_send_hdrinc(struct sock *sk, struct msghdr *msg, int length,
net/ipv6/raw.c
67
bool raw_v6_match(struct net *net, const struct sock *sk, unsigned short num,
net/ipv6/raw.c
742
static int rawv6_sendmsg(struct sock *sk, struct msghdr *msg, size_t len)
net/ipv6/raw.c
93
static int icmpv6_filter(const struct sock *sk, struct sk_buff *skb)
net/ipv6/raw.c
938
static int rawv6_seticmpfilter(struct sock *sk, int optname,
net/ipv6/raw.c
955
static int rawv6_geticmpfilter(struct sock *sk, int optname,
net/ipv6/raw.c
981
static int do_rawv6_setsockopt(struct sock *sk, int level, int optname,
net/ipv6/route.c
100
static int ip6_pkt_prohibit_out(struct net *net, struct sock *sk, struct sk_buff *skb);
net/ipv6/route.c
102
static void ip6_rt_update_pmtu(struct dst_entry *dst, struct sock *sk,
net/ipv6/route.c
105
static void rt6_do_redirect(struct dst_entry *dst, struct sock *sk,
net/ipv6/route.c
2681
const struct sock *sk,
net/ipv6/route.c
2714
const struct sock *sk,
net/ipv6/route.c
2845
static void ip6_negative_advice(struct sock *sk,
net/ipv6/route.c
2922
static void __ip6_rt_update_pmtu(struct dst_entry *dst, const struct sock *sk,
net/ipv6/route.c
3001
static void ip6_rt_update_pmtu(struct dst_entry *dst, struct sock *sk,
net/ipv6/route.c
3030
void ip6_sk_update_pmtu(struct sk_buff *skb, struct sock *sk, __be32 mtu)
net/ipv6/route.c
3052
void ip6_sk_dst_store_flow(struct sock *sk, struct dst_entry *dst,
net/ipv6/route.c
3256
void ip6_sk_redirect(struct sk_buff *skb, struct sock *sk)
net/ipv6/route.c
4229
static void rt6_do_redirect(struct dst_entry *dst, struct sock *sk, struct sk_buff *skb)
net/ipv6/route.c
4654
static int ip6_pkt_discard_out(struct net *net, struct sock *sk, struct sk_buff *skb)
net/ipv6/route.c
4665
static int ip6_pkt_prohibit_out(struct net *net, struct sock *sk, struct sk_buff *skb)
net/ipv6/route.c
90
static void ip6_negative_advice(struct sock *sk,
net/ipv6/route.c
98
static int ip6_pkt_discard_out(struct net *net, struct sock *sk, struct sk_buff *skb);
net/ipv6/rpl_iptunnel.c
204
static int rpl_output(struct net *net, struct sock *sk, struct sk_buff *skb)
net/ipv6/seg6_iptunnel.c
482
static int seg6_input_finish(struct net *net, struct sock *sk,
net/ipv6/seg6_iptunnel.c
488
static int seg6_input_core(struct net *net, struct sock *sk,
net/ipv6/seg6_iptunnel.c
581
static int seg6_output_core(struct net *net, struct sock *sk,
net/ipv6/seg6_iptunnel.c
642
static int seg6_output_nf(struct net *net, struct sock *sk, struct sk_buff *skb)
net/ipv6/seg6_iptunnel.c
658
static int seg6_output(struct net *net, struct sock *sk, struct sk_buff *skb)
net/ipv6/seg6_local.c
1609
static int seg6_local_input_core(struct net *net, struct sock *sk,
net/ipv6/seg6_local.c
905
static int input_action_end_dx6_finish(struct net *net, struct sock *sk,
net/ipv6/seg6_local.c
956
static int input_action_end_dx4_finish(struct net *net, struct sock *sk,
net/ipv6/syncookies.c
131
static struct request_sock *cookie_tcp_check(struct net *net, struct sock *sk,
net/ipv6/syncookies.c
174
struct sock *cookie_v6_check(struct sock *sk, struct sk_buff *skb)
net/ipv6/syncookies.c
183
struct sock *ret = sk;
net/ipv6/tcp_ao.c
120
const struct sock *sk, const struct sk_buff *skb,
net/ipv6/tcp_ao.c
127
int tcp_v6_parse_ao(struct sock *sk, int cmd,
net/ipv6/tcp_ao.c
54
const struct sock *sk, __be32 sisn,
net/ipv6/tcp_ao.c
79
struct tcp_ao_key *tcp_v6_ao_lookup(const struct sock *sk,
net/ipv6/tcp_ao.c
80
struct sock *addr_sk,
net/ipv6/tcp_ao.c
91
struct tcp_ao_key *tcp_v6_ao_lookup_rsk(const struct sock *sk,
net/ipv6/tcp_ipv6.c
1005
static void tcp_v6_send_reset(const struct sock *sk, struct sk_buff *skb,
net/ipv6/tcp_ipv6.c
1024
struct sock *sk1 = NULL;
net/ipv6/tcp_ipv6.c
1142
static void tcp_v6_send_ack(const struct sock *sk, struct sk_buff *skb, u32 seq,
net/ipv6/tcp_ipv6.c
1151
static void tcp_v6_timewait_ack(struct sock *sk, struct sk_buff *skb,
net/ipv6/tcp_ipv6.c
118
static int tcp_v6_pre_connect(struct sock *sk, struct sockaddr_unsized *uaddr,
net/ipv6/tcp_ipv6.c
1213
static void tcp_v6_reqsk_send_ack(const struct sock *sk, struct sk_buff *skb,
net/ipv6/tcp_ipv6.c
1290
static struct sock *tcp_v6_cookie_check(struct sock *sk, struct sk_buff *skb)
net/ipv6/tcp_ipv6.c
1301
u16 tcp_v6_get_syncookie(struct sock *sk, struct ipv6hdr *iph,
net/ipv6/tcp_ipv6.c
1316
static int tcp_v6_conn_request(struct sock *sk, struct sk_buff *skb)
net/ipv6/tcp_ipv6.c
133
static int tcp_v6_connect(struct sock *sk, struct sockaddr_unsized *uaddr,
net/ipv6/tcp_ipv6.c
1348
static void tcp_v6_mapped_child_init(struct sock *newsk, const struct sock *sk)
net/ipv6/tcp_ipv6.c
1382
static struct sock *tcp_v6_syn_recv_sock(const struct sock *sk, struct sk_buff *skb,
net/ipv6/tcp_ipv6.c
1387
void (*opt_child_init)(struct sock *newsk,
net/ipv6/tcp_ipv6.c
1388
const struct sock *sk))
net/ipv6/tcp_ipv6.c
1397
struct sock *newsk;
net/ipv6/tcp_ipv6.c
1567
int tcp_v6_do_rcv(struct sock *sk, struct sk_buff *skb)
net/ipv6/tcp_ipv6.c
1637
struct sock *nsk = tcp_v6_cookie_check(sk, skb);
net/ipv6/tcp_ipv6.c
1739
struct sock *sk = NULL;
net/ipv6/tcp_ipv6.c
1784
struct sock *nsk;
net/ipv6/tcp_ipv6.c
1964
struct sock *sk2;
net/ipv6/tcp_ipv6.c
2065
static void tcp6_destruct_sock(struct sock *sk)
net/ipv6/tcp_ipv6.c
2076
static int tcp_v6_init_sock(struct sock *sk)
net/ipv6/tcp_ipv6.c
2126
static void get_tcp6_sock(struct seq_file *seq, struct sock *sp, int i)
net/ipv6/tcp_ipv6.c
2228
struct sock *sk = v;
net/ipv6/tcp_ipv6.c
361
static struct dst_entry *inet6_csk_update_pmtu(struct sock *sk, u32 mtu)
net/ipv6/tcp_ipv6.c
376
static void tcp_v6_mtu_reduced(struct sock *sk)
net/ipv6/tcp_ipv6.c
413
struct sock *sk;
net/ipv6/tcp_ipv6.c
550
static int tcp_v6_send_synack(const struct sock *sk, struct dst_entry *dst,
net/ipv6/tcp_ipv6.c
587
tcp_bpf_ca_needs_ecn((struct sock *)req))
net/ipv6/tcp_ipv6.c
612
static struct tcp_md5sig_key *tcp_v6_md5_do_lookup(const struct sock *sk,
net/ipv6/tcp_ipv6.c
620
static struct tcp_md5sig_key *tcp_v6_md5_lookup(const struct sock *sk,
net/ipv6/tcp_ipv6.c
621
const struct sock *addr_sk)
net/ipv6/tcp_ipv6.c
631
static int tcp_v6_parse_md5_keys(struct sock *sk, int optname,
net/ipv6/tcp_ipv6.c
75
static void tcp_v6_send_reset(const struct sock *sk, struct sk_buff *skb,
net/ipv6/tcp_ipv6.c
753
const struct sock *sk, const struct sk_buff *skb)
net/ipv6/tcp_ipv6.c
77
static void tcp_v6_reqsk_send_ack(const struct sock *sk, struct sk_buff *skb,
net/ipv6/tcp_ipv6.c
777
const struct sock *sk_listener,
net/ipv6/tcp_ipv6.c
80
INDIRECT_CALLABLE_SCOPE int tcp_v6_do_rcv(struct sock *sk, struct sk_buff *skb);
net/ipv6/tcp_ipv6.c
805
static struct dst_entry *tcp_v6_route_req(const struct sock *sk,
net/ipv6/tcp_ipv6.c
847
static void tcp_v6_send_response(const struct sock *sk, struct sk_buff *skb, u32 seq,
net/ipv6/tcp_ipv6.c
854
struct sock *ctl_sk = net->ipv6.tcp_sk;
net/ipv6/tcp_ipv6.c
958
skb_set_owner_edemux(buff, (struct sock *)sk);
net/ipv6/tcp_ipv6.c
97
static void inet6_sk_rx_dst_set(struct sock *sk, const struct sk_buff *skb)
net/ipv6/tcpv6_offload.c
23
struct sock *sk;
net/ipv6/udp.c
1010
static void udp6_sk_rx_dst_set(struct sock *sk, struct dst_entry *dst)
net/ipv6/udp.c
1019
static int udp6_unicast_rcv_skb(struct sock *sk, struct sk_buff *skb,
net/ipv6/udp.c
1072
struct sock *sk = NULL;
net/ipv6/udp.c
110
static void udp_v6_rehash(struct sock *sk)
net/ipv6/udp.c
1186
static struct sock *__udp6_lib_demux_lookup(struct net *net,
net/ipv6/udp.c
1196
struct sock *sk;
net/ipv6/udp.c
1216
struct sock *sk;
net/ipv6/udp.c
1257
static void udp_v6_flush_pending_frames(struct sock *sk)
net/ipv6/udp.c
1270
static int udpv6_pre_connect(struct sock *sk, struct sockaddr_unsized *uaddr,
net/ipv6/udp.c
1291
static int udpv6_connect(struct sock *sk, struct sockaddr_unsized *uaddr,
net/ipv6/udp.c
131
compute_score(struct sock *sk, const struct net *net,
net/ipv6/udp.c
1313
static void udp6_hwcsum_outgoing(struct sock *sk, struct sk_buff *skb,
net/ipv6/udp.c
1357
struct sock *sk = skb->sk;
net/ipv6/udp.c
1435
static int udp_v6_push_pending_frames(struct sock *sk)
net/ipv6/udp.c
1456
int udpv6_sendmsg(struct sock *sk, struct msghdr *msg, size_t len)
net/ipv6/udp.c
1774
static void udpv6_splice_eof(struct socket *sock)
net/ipv6/udp.c
1776
struct sock *sk = sock->sk;
net/ipv6/udp.c
1788
static void udpv6_destroy_sock(struct sock *sk)
net/ipv6/udp.c
1800
void (*encap_destroy)(struct sock *sk);
net/ipv6/udp.c
1816
static int udpv6_setsockopt(struct sock *sk, int level, int optname,
net/ipv6/udp.c
1826
static int udpv6_getsockopt(struct sock *sk, int level, int optname,
net/ipv6/udp.c
1843
const struct inet_sock *inet = inet_sk((const struct sock *)v);
net/ipv6/udp.c
196
static struct sock *udp6_lib_lookup1(const struct net *net,
net/ipv6/udp.c
204
struct sock *sk, *result = NULL;
net/ipv6/udp.c
220
static struct sock *udp6_lib_lookup2(const struct net *net,
net/ipv6/udp.c
226
struct sock *sk, *result;
net/ipv6/udp.c
277
static struct sock *udp6_lib_lookup4(const struct net *net,
net/ipv6/udp.c
286
static void udp6_hash4(struct sock *sk)
net/ipv6/udp.c
290
static struct sock *udp6_lib_lookup4(const struct net *net,
net/ipv6/udp.c
301
struct sock *sk;
net/ipv6/udp.c
309
sk = (struct sock *)up;
net/ipv6/udp.c
324
static void udp6_hash4(struct sock *sk)
net/ipv6/udp.c
345
struct sock *__udp6_lib_lookup(const struct net *net,
net/ipv6/udp.c
353
struct sock *result, *sk;
net/ipv6/udp.c
409
static struct sock *__udp6_lib_lookup_skb(struct sk_buff *skb,
net/ipv6/udp.c
419
struct sock *udp6_lib_lookup_skb(const struct sk_buff *skb,
net/ipv6/udp.c
436
struct sock *udp6_lib_lookup(const struct net *net, const struct in6_addr *saddr, __be16 sport,
net/ipv6/udp.c
439
struct sock *sk;
net/ipv6/udp.c
464
int udpv6_recvmsg(struct sock *sk, struct msghdr *msg, size_t len,
net/ipv6/udp.c
62
static void udpv6_destruct_sock(struct sock *sk)
net/ipv6/udp.c
639
static struct sock *__udp6_lib_err_encap(struct net *net,
net/ipv6/udp.c
642
struct sock *sk,
net/ipv6/udp.c
647
int (*lookup)(struct sock *sk, struct sk_buff *skb);
net/ipv6/udp.c
68
static int udpv6_init_sock(struct sock *sk)
net/ipv6/udp.c
702
struct sock *sk;
net/ipv6/udp.c
772
static int __udpv6_queue_rcv_skb(struct sock *sk, struct sk_buff *skb)
net/ipv6/udp.c
806
static int udpv6_queue_rcv_one_skb(struct sock *sk, struct sk_buff *skb)
net/ipv6/udp.c
820
int (*encap_rcv)(struct sock *sk, struct sk_buff *skb);
net/ipv6/udp.c
877
static int udpv6_queue_rcv_skb(struct sock *sk, struct sk_buff *skb)
net/ipv6/udp.c
899
static bool __udp_v6_is_mcast_sock(struct net *net, const struct sock *sk,
net/ipv6/udp.c
945
struct sock *sk, *first = NULL;
net/ipv6/udp.c
98
static int udp_v6_get_port(struct sock *sk, unsigned short snum)
net/ipv6/udp_offload.c
116
static struct sock *udp6_gro_lookup_skb(struct sk_buff *skb, __be16 sport,
net/ipv6/udp_offload.c
121
struct sock *sk;
net/ipv6/udp_offload.c
137
struct sock *sk = NULL;
net/ipv6/xfrm6_input.c
157
int xfrm6_udp_encap_rcv(struct sock *sk, struct sk_buff *skb)
net/ipv6/xfrm6_input.c
177
struct sk_buff *xfrm6_gro_udp_encap_rcv(struct sock *sk, struct list_head *head,
net/ipv6/xfrm6_input.c
32
static int xfrm6_transport_finish2(struct net *net, struct sock *sk,
net/ipv6/xfrm6_input.c
77
static int __xfrm6_udp_encap_rcv(struct sock *sk, struct sk_buff *skb, bool pull)
net/ipv6/xfrm6_output.c
106
int xfrm6_output(struct net *net, struct sock *sk, struct sk_buff *skb)
net/ipv6/xfrm6_output.c
22
struct sock *sk = skb->sk;
net/ipv6/xfrm6_output.c
34
struct sock *sk = skb->sk;
net/ipv6/xfrm6_output.c
43
static int __xfrm6_output_finish(struct net *net, struct sock *sk, struct sk_buff *skb)
net/ipv6/xfrm6_output.c
61
static int __xfrm6_output(struct net *net, struct sock *sk, struct sk_buff *skb)
net/ipv6/xfrm6_policy.c
108
static void xfrm6_update_pmtu(struct dst_entry *dst, struct sock *sk,
net/ipv6/xfrm6_policy.c
118
static void xfrm6_redirect(struct dst_entry *dst, struct sock *sk,
net/iucv/af_iucv.c
1158
static void iucv_process_message(struct sock *sk, struct sk_buff *skb,
net/iucv/af_iucv.c
1219
static void iucv_process_message_q(struct sock *sk)
net/iucv/af_iucv.c
1237
static int iucv_sock_recvmsg(struct socket *sock, struct msghdr *msg,
net/iucv/af_iucv.c
1240
struct sock *sk = sock->sk;
net/iucv/af_iucv.c
1364
static inline __poll_t iucv_accept_poll(struct sock *parent)
net/iucv/af_iucv.c
1367
struct sock *sk;
net/iucv/af_iucv.c
1370
sk = (struct sock *) isk;
net/iucv/af_iucv.c
1379
static __poll_t iucv_sock_poll(struct file *file, struct socket *sock,
net/iucv/af_iucv.c
1382
struct sock *sk = sock->sk;
net/iucv/af_iucv.c
1385
sock_poll_wait(file, sock, wait);
net/iucv/af_iucv.c
1418
static int iucv_sock_shutdown(struct socket *sock, int how)
net/iucv/af_iucv.c
1420
struct sock *sk = sock->sk;
net/iucv/af_iucv.c
1486
static int iucv_sock_release(struct socket *sock)
net/iucv/af_iucv.c
1488
struct sock *sk = sock->sk;
net/iucv/af_iucv.c
1502
static int iucv_sock_setsockopt(struct socket *sock, int level, int optname,
net/iucv/af_iucv.c
1505
struct sock *sk = sock->sk;
net/iucv/af_iucv.c
153
static int iucv_sock_in_state(struct sock *sk, int state, int state2)
net/iucv/af_iucv.c
1552
static int iucv_sock_getsockopt(struct socket *sock, int level, int optname,
net/iucv/af_iucv.c
1555
struct sock *sk = sock->sk;
net/iucv/af_iucv.c
1613
struct sock *sk, *nsk;
net/iucv/af_iucv.c
166
static inline int iucv_below_msglim(struct sock *sk)
net/iucv/af_iucv.c
1706
struct sock *sk = path->private;
net/iucv/af_iucv.c
1714
struct sock *sk = path->private;
net/iucv/af_iucv.c
1759
struct sock *sk = path->private;
net/iucv/af_iucv.c
1803
struct sock *sk = path->private;
net/iucv/af_iucv.c
182
static void iucv_sock_wake_msglim(struct sock *sk)
net/iucv/af_iucv.c
1821
struct sock *sk = path->private;
net/iucv/af_iucv.c
1864
static int afiucv_hs_callback_syn(struct sock *sk, struct sk_buff *skb)
net/iucv/af_iucv.c
1867
struct sock *nsk;
net/iucv/af_iucv.c
1930
static int afiucv_hs_callback_synack(struct sock *sk, struct sk_buff *skb)
net/iucv/af_iucv.c
1951
static int afiucv_hs_callback_synfin(struct sock *sk, struct sk_buff *skb)
net/iucv/af_iucv.c
197
static int afiucv_hs_send(struct iucv_message *imsg, struct sock *sock,
net/iucv/af_iucv.c
1971
static int afiucv_hs_callback_fin(struct sock *sk, struct sk_buff *skb)
net/iucv/af_iucv.c
1994
static int afiucv_hs_callback_win(struct sock *sk, struct sk_buff *skb)
net/iucv/af_iucv.c
200
struct iucv_sock *iucv = iucv_sk(sock);
net/iucv/af_iucv.c
2012
static int afiucv_hs_callback_rx(struct sock *sk, struct sk_buff *skb)
net/iucv/af_iucv.c
2061
struct sock *sk;
net/iucv/af_iucv.c
2167
static void afiucv_hs_callback_txnotify(struct sock *sk, enum iucv_tx_notify n)
net/iucv/af_iucv.c
2210
struct sock *sk;
net/iucv/af_iucv.c
2259
static int iucv_sock_create(struct net *net, struct socket *sock, int protocol,
net/iucv/af_iucv.c
2262
struct sock *sk;
net/iucv/af_iucv.c
2267
sock->state = SS_UNCONNECTED;
net/iucv/af_iucv.c
2269
switch (sock->type) {
net/iucv/af_iucv.c
2273
sock->ops = &iucv_sock_ops;
net/iucv/af_iucv.c
2279
sk = iucv_sock_alloc(sock, protocol, GFP_KERNEL, kern);
net/iucv/af_iucv.c
243
if (sock->sk_type == SOCK_SEQPACKET) {
net/iucv/af_iucv.c
268
static struct sock *__iucv_get_sock_by_name(char *nm)
net/iucv/af_iucv.c
270
struct sock *sk;
net/iucv/af_iucv.c
279
static void iucv_sock_destruct(struct sock *sk)
net/iucv/af_iucv.c
296
static void iucv_sock_cleanup_listen(struct sock *parent)
net/iucv/af_iucv.c
298
struct sock *sk;
net/iucv/af_iucv.c
309
static void iucv_sock_link(struct iucv_sock_list *l, struct sock *sk)
net/iucv/af_iucv.c
316
static void iucv_sock_unlink(struct iucv_sock_list *l, struct sock *sk)
net/iucv/af_iucv.c
324
static void iucv_sock_kill(struct sock *sk)
net/iucv/af_iucv.c
335
static void iucv_sever_path(struct sock *sk, int with_user_data)
net/iucv/af_iucv.c
369
static int iucv_send_ctrl(struct sock *sk, u8 flags)
net/iucv/af_iucv.c
395
static void iucv_sock_close(struct sock *sk)
net/iucv/af_iucv.c
458
static void iucv_sock_init(struct sock *sk, struct sock *parent)
net/iucv/af_iucv.c
466
static struct sock *iucv_sock_alloc(struct socket *sock, int proto, gfp_t prio, int kern)
net/iucv/af_iucv.c
468
struct sock *sk;
net/iucv/af_iucv.c
476
sock_init_data(sock, sk);
net/iucv/af_iucv.c
510
static void iucv_accept_enqueue(struct sock *parent, struct sock *sk)
net/iucv/af_iucv.c
523
static void iucv_accept_unlink(struct sock *sk)
net/iucv/af_iucv.c
536
static struct sock *iucv_accept_dequeue(struct sock *parent,
net/iucv/af_iucv.c
540
struct sock *sk;
net/iucv/af_iucv.c
543
sk = (struct sock *) isk;
net/iucv/af_iucv.c
582
static int iucv_sock_bind(struct socket *sock, struct sockaddr_unsized *addr,
net/iucv/af_iucv.c
587
struct sock *sk = sock->sk;
net/iucv/af_iucv.c
665
static int iucv_sock_autobind(struct sock *sk)
net/iucv/af_iucv.c
687
static int afiucv_path_connect(struct socket *sock, struct sockaddr_unsized *addr)
net/iucv/af_iucv.c
690
struct sock *sk = sock->sk;
net/iucv/af_iucv.c
733
static int iucv_sock_connect(struct socket *sock, struct sockaddr_unsized *addr,
net/iucv/af_iucv.c
737
struct sock *sk = sock->sk;
net/iucv/af_iucv.c
767
err = iucv_send_ctrl(sock->sk, AF_IUCV_FLAG_SYN);
net/iucv/af_iucv.c
769
err = afiucv_path_connect(sock, addr);
net/iucv/af_iucv.c
790
static int iucv_sock_listen(struct socket *sock, int backlog)
net/iucv/af_iucv.c
792
struct sock *sk = sock->sk;
net/iucv/af_iucv.c
801
if (sock->type != SOCK_STREAM && sock->type != SOCK_SEQPACKET)
net/iucv/af_iucv.c
815
static int iucv_sock_accept(struct socket *sock, struct socket *newsock,
net/iucv/af_iucv.c
819
struct sock *sk = sock->sk, *nsk;
net/iucv/af_iucv.c
869
static int iucv_sock_getname(struct socket *sock, struct sockaddr *addr,
net/iucv/af_iucv.c
873
struct sock *sk = sock->sk;
net/iucv/af_iucv.c
90
static struct sock *iucv_accept_dequeue(struct sock *parent,
net/iucv/af_iucv.c
916
static int iucv_sock_sendmsg(struct socket *sock, struct msghdr *msg,
net/iucv/af_iucv.c
919
struct sock *sk = sock->sk;
net/iucv/af_iucv.c
92
static void iucv_sock_kill(struct sock *sk);
net/iucv/af_iucv.c
93
static void iucv_sock_close(struct sock *sk);
net/iucv/af_iucv.c
95
static void afiucv_hs_callback_txnotify(struct sock *sk, enum iucv_tx_notify);
net/kcm/kcmsock.c
1020
if (sock->type == SOCK_DGRAM) {
net/kcm/kcmsock.c
1040
static ssize_t kcm_splice_read(struct socket *sock, loff_t *ppos,
net/kcm/kcmsock.c
1044
struct sock *sk = sock->sk;
net/kcm/kcmsock.c
1051
if (sock->file->f_flags & O_NONBLOCK || flags & SPLICE_F_NONBLOCK)
net/kcm/kcmsock.c
1136
static int kcm_setsockopt(struct socket *sock, int level, int optname,
net/kcm/kcmsock.c
1139
struct kcm_sock *kcm = kcm_sk(sock->sk);
net/kcm/kcmsock.c
1170
static int kcm_getsockopt(struct socket *sock, int level, int optname,
net/kcm/kcmsock.c
1173
struct kcm_sock *kcm = kcm_sk(sock->sk);
net/kcm/kcmsock.c
119
static int kcm_queue_rcv_skb(struct sock *sk, struct sk_buff *skb);
net/kcm/kcmsock.c
1237
static int kcm_attach(struct socket *sock, struct socket *csock,
net/kcm/kcmsock.c
1240
struct kcm_sock *kcm = kcm_sk(sock->sk);
net/kcm/kcmsock.c
1242
struct sock *csk;
net/kcm/kcmsock.c
1340
static int kcm_attach_ioctl(struct socket *sock, struct kcm_attach *info)
net/kcm/kcmsock.c
1356
err = kcm_attach(sock, csock, prog);
net/kcm/kcmsock.c
1372
struct sock *csk = psock->sk;
net/kcm/kcmsock.c
1466
static int kcm_unattach_ioctl(struct socket *sock, struct kcm_unattach *info)
net/kcm/kcmsock.c
1468
struct kcm_sock *kcm = kcm_sk(sock->sk);
net/kcm/kcmsock.c
1472
struct sock *csk;
net/kcm/kcmsock.c
1528
struct sock *newsk;
net/kcm/kcmsock.c
1551
static int kcm_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
net/kcm/kcmsock.c
1562
err = kcm_attach_ioctl(sock, &info);
net/kcm/kcmsock.c
1572
err = kcm_unattach_ioctl(sock, &info);
net/kcm/kcmsock.c
1579
FD_PREPARE(fdf, 0, kcm_clone(sock));
net/kcm/kcmsock.c
1632
struct sock *sk = &kcm->sk;
net/kcm/kcmsock.c
1680
static int kcm_release(struct socket *sock)
net/kcm/kcmsock.c
1682
struct sock *sk = sock->sk;
net/kcm/kcmsock.c
1735
sock->sk = NULL;
net/kcm/kcmsock.c
174
struct sock *sk = skb->sk;
net/kcm/kcmsock.c
1786
static int kcm_create(struct net *net, struct socket *sock,
net/kcm/kcmsock.c
1790
struct sock *sk;
net/kcm/kcmsock.c
1793
switch (sock->type) {
net/kcm/kcmsock.c
1795
sock->ops = &kcm_dgram_ops;
net/kcm/kcmsock.c
1798
sock->ops = &kcm_seqpacket_ops;
net/kcm/kcmsock.c
1839
sock_init_data(sock, sk);
net/kcm/kcmsock.c
193
static int kcm_queue_rcv_skb(struct sock *sk, struct sk_buff *skb)
net/kcm/kcmsock.c
351
static void psock_data_ready(struct sock *sk)
net/kcm/kcmsock.c
407
static void psock_state_change(struct sock *sk)
net/kcm/kcmsock.c
41
static inline struct kcm_sock *kcm_sk(const struct sock *sk)
net/kcm/kcmsock.c
417
static void psock_write_space(struct sock *sk)
net/kcm/kcmsock.c
51
static void report_csk_error(struct sock *csk, int err)
net/kcm/kcmsock.c
587
struct sock *sk = &kcm->sk;
net/kcm/kcmsock.c
60
struct sock *csk = psock->sk;
net/kcm/kcmsock.c
716
struct sock *sk = &kcm->sk;
net/kcm/kcmsock.c
749
static int kcm_sendmsg(struct socket *sock, struct msghdr *msg, size_t len)
net/kcm/kcmsock.c
751
struct sock *sk = sock->sk;
net/kcm/kcmsock.c
756
int eor = (sock->type == SOCK_DGRAM) ?
net/kcm/kcmsock.c
954
if (sock->type == SOCK_SEQPACKET) {
net/kcm/kcmsock.c
978
static void kcm_splice_eof(struct socket *sock)
net/kcm/kcmsock.c
980
struct sock *sk = sock->sk;
net/kcm/kcmsock.c
991
static int kcm_recvmsg(struct socket *sock, struct msghdr *msg,
net/kcm/kcmsock.c
994
struct sock *sk = sock->sk;
net/key/af_key.c
115
static void pfkey_insert(struct sock *sk)
net/key/af_key.c
125
static void pfkey_remove(struct sock *sk)
net/key/af_key.c
1316
static int pfkey_reserved(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs)
net/key/af_key.c
1321
static int pfkey_getspi(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs)
net/key/af_key.c
138
static int pfkey_create(struct net *net, struct socket *sock, int protocol,
net/key/af_key.c
142
struct sock *sk;
net/key/af_key.c
1427
static int pfkey_acquire(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs)
net/key/af_key.c
147
if (sock->type != SOCK_RAW)
net/key/af_key.c
1514
static int pfkey_add(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs)
net/key/af_key.c
1551
static int pfkey_delete(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs)
net/key/af_key.c
159
sock->ops = &pfkey_ops;
net/key/af_key.c
1591
static int pfkey_get(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs)
net/key/af_key.c
160
sock_init_data(sock, sk);
net/key/af_key.c
1703
static int pfkey_register(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs)
net/key/af_key.c
172
static int pfkey_release(struct socket *sock)
net/key/af_key.c
1735
static int unicast_flush_resp(struct sock *sk, const struct sadb_msg *ihdr)
net/key/af_key.c
174
struct sock *sk = sock->sk;
net/key/af_key.c
1775
static int pfkey_flush(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs)
net/key/af_key.c
182
sock->sk = NULL;
net/key/af_key.c
1847
static int pfkey_dump(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs)
net/key/af_key.c
1900
static int pfkey_promisc(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs)
net/key/af_key.c
192
struct sock *sk)
net/key/af_key.c
216
int broadcast_flags, struct sock *one_sk,
net/key/af_key.c
220
struct sock *sk;
net/key/af_key.c
2263
static int pfkey_spdadd(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs)
net/key/af_key.c
2378
static int pfkey_spddelete(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs)
net/key/af_key.c
2453
static int key_pol_get_resp(struct sock *sk, struct xfrm_policy *xp, const struct sadb_msg *hdr, int dir)
net/key/af_key.c
2564
static int pfkey_migrate(struct sock *sk, struct sk_buff *skb,
net/key/af_key.c
2656
static int pfkey_migrate(struct sock *sk, struct sk_buff *skb,
net/key/af_key.c
2664
static int pfkey_spdget(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs)
net/key/af_key.c
2749
struct net *net = sock_net((struct sock *)pfk);
net/key/af_key.c
2754
static int pfkey_spddump(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs)
net/key/af_key.c
2796
static int pfkey_spdflush(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs)
net/key/af_key.c
2820
typedef int (*pfkey_handler)(struct sock *sk, struct sk_buff *skb,
net/key/af_key.c
2848
static int pfkey_process(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr)
net/key/af_key.c
314
static int pfkey_error(const struct sadb_msg *orig, int err, struct sock *sk)
net/key/af_key.c
3156
struct sock *sk;
net/key/af_key.c
3283
static struct xfrm_policy *pfkey_compile_policy(struct sock *sk, int opt,
net/key/af_key.c
3691
static int pfkey_sendmsg(struct socket *sock, struct msghdr *msg, size_t len)
net/key/af_key.c
3693
struct sock *sk = sock->sk;
net/key/af_key.c
3732
static int pfkey_recvmsg(struct socket *sock, struct msghdr *msg, size_t len,
net/key/af_key.c
3735
struct sock *sk = sock->sk;
net/key/af_key.c
3803
struct sock *s = sk_entry(v);
net/key/af_key.c
47
struct sock sk;
net/key/af_key.c
69
static inline struct pfkey_sock *pfkey_sk(struct sock *sk)
net/key/af_key.c
74
static int pfkey_can_dump(const struct sock *sk)
net/key/af_key.c
94
static void pfkey_sock_destruct(struct sock *sk)
net/l2tp/l2tp_core.c
1016
int l2tp_udp_encap_recv(struct sock *sk, struct sk_buff *skb)
net/l2tp/l2tp_core.c
1118
static void l2tp_udp_encap_err_recv(struct sock *sk, struct sk_buff *skb, int err,
net/l2tp/l2tp_core.c
1216
if (l2tp_sk_is_v6(tunnel->sock))
net/l2tp/l2tp_core.c
1217
err = inet6_csk_xmit(tunnel->sock, skb, NULL);
net/l2tp/l2tp_core.c
1220
err = ip_queue_xmit(tunnel->sock, skb, fl);
net/l2tp/l2tp_core.c
1229
struct sock *sk = tunnel->sock;
net/l2tp/l2tp_core.c
125
static unsigned long l2tp_v3_session_hashkey(struct sock *sk, u32 session_id)
net/l2tp/l2tp_core.c
131
static bool l2tp_sk_is_v6(struct sock *sk)
net/l2tp/l2tp_core.c
1400
static void l2tp_udp_encap_destroy(struct sock *sk)
net/l2tp/l2tp_core.c
1432
struct socket *sock = tunnel->sock->sk_socket;
net/l2tp/l2tp_core.c
1434
if (sock) {
net/l2tp/l2tp_core.c
1435
kernel_sock_shutdown(sock, SHUT_RDWR);
net/l2tp/l2tp_core.c
1436
sock_release(sock);
net/l2tp/l2tp_core.c
145
struct sock *sk = tunnel->sock;
net/l2tp/l2tp_core.c
1464
struct socket *sock = NULL;
net/l2tp/l2tp_core.c
1494
err = udp_sock_create(net, &udp_conf, &sock);
net/l2tp/l2tp_core.c
1506
IPPROTO_L2TP, &sock);
net/l2tp/l2tp_core.c
1514
err = kernel_bind(sock, (struct sockaddr_unsized *)&ip6_addr,
net/l2tp/l2tp_core.c
1523
err = kernel_connect(sock,
net/l2tp/l2tp_core.c
1534
IPPROTO_L2TP, &sock);
net/l2tp/l2tp_core.c
1541
err = kernel_bind(sock, (struct sockaddr_unsized *)&ip_addr,
net/l2tp/l2tp_core.c
1549
err = kernel_connect(sock, (struct sockaddr_unsized *)&ip_addr,
net/l2tp/l2tp_core.c
1561
*sockp = sock;
net/l2tp/l2tp_core.c
1562
if (err < 0 && sock) {
net/l2tp/l2tp_core.c
1563
kernel_sock_shutdown(sock, SHUT_RDWR);
net/l2tp/l2tp_core.c
1564
sock_release(sock);
net/l2tp/l2tp_core.c
1613
static int l2tp_validate_socket(const struct sock *sk, const struct net *net,
net/l2tp/l2tp_core.c
162
tunnel->sock = NULL;
net/l2tp/l2tp_core.c
1648
struct socket *sock;
net/l2tp/l2tp_core.c
1649
struct sock *sk;
net/l2tp/l2tp_core.c
1662
&sock);
net/l2tp/l2tp_core.c
1666
sock = sockfd_lookup(tunnel->fd, &ret);
net/l2tp/l2tp_core.c
1667
if (!sock)
net/l2tp/l2tp_core.c
1671
sk = sock->sk;
net/l2tp/l2tp_core.c
1687
setup_udp_tunnel_sock(net, sock->sk, &udp_cfg);
net/l2tp/l2tp_core.c
1694
tunnel->sock = sk;
net/l2tp/l2tp_core.c
1704
sockfd_put(sock);
net/l2tp/l2tp_core.c
1713
sock_release(sock);
net/l2tp/l2tp_core.c
1715
sockfd_put(sock);
net/l2tp/l2tp_core.c
177
struct l2tp_tunnel *l2tp_sk_to_tunnel(const struct sock *sk)
net/l2tp/l2tp_core.c
1808
session->hlist_key = l2tp_v3_session_hashkey(tunnel->sock, session->session_id);
net/l2tp/l2tp_core.c
188
tunnel->sock == sk &&
net/l2tp/l2tp_core.c
254
struct l2tp_session *l2tp_v3_session_get(const struct net *net, struct sock *sk, u32 session_id)
net/l2tp/l2tp_core.c
284
tunnel && tunnel->sock == sk &&
net/l2tp/l2tp_core.c
315
struct l2tp_session *l2tp_session_get(const struct net *net, struct sock *sk, int pver,
net/l2tp/l2tp_core.c
364
u32 tid, struct sock *sk,
net/l2tp/l2tp_core.c
419
struct l2tp_session *l2tp_session_get_next(const struct net *net, struct sock *sk, int pver,
net/l2tp/l2tp_core.h
178
struct sock *sock; /* parent socket */
net/l2tp/l2tp_core.h
222
struct l2tp_session *l2tp_v3_session_get(const struct net *net, struct sock *sk, u32 session_id);
net/l2tp/l2tp_core.h
224
struct l2tp_session *l2tp_session_get(const struct net *net, struct sock *sk, int pver,
net/l2tp/l2tp_core.h
226
struct l2tp_session *l2tp_session_get_next(const struct net *net, struct sock *sk, int pver,
net/l2tp/l2tp_core.h
257
int l2tp_udp_encap_recv(struct sock *sk, struct sk_buff *skb);
net/l2tp/l2tp_core.h
272
int l2tp_ioctl(struct sock *sk, int cmd, int *karg);
net/l2tp/l2tp_core.h
274
struct l2tp_tunnel *l2tp_sk_to_tunnel(const struct sock *sk);
net/l2tp/l2tp_core.h
292
dst = sk_dst_get(tunnel->sock);
net/l2tp/l2tp_core.h
305
struct sock *sk = tunnel->sock;
net/l2tp/l2tp_debugfs.c
140
if (tunnel->sock) {
net/l2tp/l2tp_debugfs.c
141
struct inet_sock *inet = inet_sk(tunnel->sock);
net/l2tp/l2tp_debugfs.c
144
if (tunnel->sock->sk_family == AF_INET6) {
net/l2tp/l2tp_debugfs.c
145
const struct ipv6_pinfo *np = inet6_sk(tunnel->sock);
net/l2tp/l2tp_debugfs.c
148
&np->saddr, &tunnel->sock->sk_v6_daddr);
net/l2tp/l2tp_debugfs.c
151
if (tunnel->sock->sk_family == AF_INET)
net/l2tp/l2tp_debugfs.c
164
tunnel->sock ? refcount_read(&tunnel->sock->sk_refcnt) : 0,
net/l2tp/l2tp_debugfs.c
59
pd->session = l2tp_session_get_next(pd->net, pd->tunnel->sock,
net/l2tp/l2tp_eth.c
200
lock_sock(tunnel->sock);
net/l2tp/l2tp_eth.c
201
l3_overhead = kernel_sock_ip_overhead(tunnel->sock);
net/l2tp/l2tp_eth.c
202
release_sock(tunnel->sock);
net/l2tp/l2tp_ip.c
129
struct sock *sk;
net/l2tp/l2tp_ip.c
214
static int l2tp_ip_hash(struct sock *sk)
net/l2tp/l2tp_ip.c
226
static void l2tp_ip_unhash(struct sock *sk)
net/l2tp/l2tp_ip.c
237
static int l2tp_ip_open(struct sock *sk)
net/l2tp/l2tp_ip.c
246
static void l2tp_ip_close(struct sock *sk, long timeout)
net/l2tp/l2tp_ip.c
257
static void l2tp_ip_destroy_sock(struct sock *sk)
net/l2tp/l2tp_ip.c
270
static int l2tp_ip_bind(struct sock *sk, struct sockaddr_unsized *uaddr,
net/l2tp/l2tp_ip.c
332
static int l2tp_ip_connect(struct sock *sk, struct sockaddr_unsized *uaddr,
net/l2tp/l2tp_ip.c
370
static int l2tp_ip_disconnect(struct sock *sk, int flags)
net/l2tp/l2tp_ip.c
378
static int l2tp_ip_getname(struct socket *sock, struct sockaddr *uaddr,
net/l2tp/l2tp_ip.c
381
struct sock *sk = sock->sk;
net/l2tp/l2tp_ip.c
404
static int l2tp_ip_backlog_recv(struct sock *sk, struct sk_buff *skb)
net/l2tp/l2tp_ip.c
424
static int l2tp_ip_sendmsg(struct sock *sk, struct msghdr *msg, size_t len)
net/l2tp/l2tp_ip.c
46
static struct l2tp_ip_sock *l2tp_ip_sk(const struct sock *sk)
net/l2tp/l2tp_ip.c
539
static int l2tp_ip_recvmsg(struct sock *sk, struct msghdr *msg,
net/l2tp/l2tp_ip.c
56
static struct sock *__l2tp_ip_bind_lookup(const struct net *net, __be32 laddr,
net/l2tp/l2tp_ip.c
585
int l2tp_ioctl(struct sock *sk, int cmd, int *karg)
net/l2tp/l2tp_ip.c
60
struct sock *sk;
net/l2tp/l2tp_ip6.c
139
struct sock *sk;
net/l2tp/l2tp_ip6.c
224
static int l2tp_ip6_hash(struct sock *sk)
net/l2tp/l2tp_ip6.c
236
static void l2tp_ip6_unhash(struct sock *sk)
net/l2tp/l2tp_ip6.c
247
static int l2tp_ip6_open(struct sock *sk)
net/l2tp/l2tp_ip6.c
256
static void l2tp_ip6_close(struct sock *sk, long timeout)
net/l2tp/l2tp_ip6.c
268
static void l2tp_ip6_destroy_sock(struct sock *sk)
net/l2tp/l2tp_ip6.c
283
static int l2tp_ip6_bind(struct sock *sk, struct sockaddr_unsized *uaddr,
net/l2tp/l2tp_ip6.c
387
static int l2tp_ip6_connect(struct sock *sk, struct sockaddr_unsized *uaddr,
net/l2tp/l2tp_ip6.c
439
static int l2tp_ip6_disconnect(struct sock *sk, int flags)
net/l2tp/l2tp_ip6.c
447
static int l2tp_ip6_getname(struct socket *sock, struct sockaddr *uaddr,
net/l2tp/l2tp_ip6.c
451
struct sock *sk = sock->sk;
net/l2tp/l2tp_ip6.c
479
static int l2tp_ip6_backlog_recv(struct sock *sk, struct sk_buff *skb)
net/l2tp/l2tp_ip6.c
496
static int l2tp_ip6_push_pending_frames(struct sock *sk)
net/l2tp/l2tp_ip6.c
518
static int l2tp_ip6_sendmsg(struct sock *sk, struct msghdr *msg, size_t len)
net/l2tp/l2tp_ip6.c
52
static struct l2tp_ip6_sock *l2tp_ip6_sk(const struct sock *sk)
net/l2tp/l2tp_ip6.c
62
static struct sock *__l2tp_ip6_bind_lookup(const struct net *net,
net/l2tp/l2tp_ip6.c
68
struct sock *sk;
net/l2tp/l2tp_ip6.c
681
static int l2tp_ip6_recvmsg(struct sock *sk, struct msghdr *msg, size_t len,
net/l2tp/l2tp_netlink.c
318
static int l2tp_nl_tunnel_send_addr6(struct sk_buff *skb, struct sock *sk,
net/l2tp/l2tp_netlink.c
346
static int l2tp_nl_tunnel_send_addr4(struct sk_buff *skb, struct sock *sk,
net/l2tp/l2tp_netlink.c
373
struct sock *sk = tunnel->sock;
net/l2tp/l2tp_netlink.c
64
session = l2tp_session_get(net, tunnel->sock, tunnel->version,
net/l2tp/l2tp_netlink.c
645
session = l2tp_session_get(net, tunnel->sock, tunnel->version,
net/l2tp/l2tp_netlink.c
855
session = l2tp_session_get_next(net, tunnel->sock, tunnel->version,
net/l2tp/l2tp_ppp.c
1028
session = l2tp_session_get(tunnel->l2tp_net, tunnel->sock, tunnel->version,
net/l2tp/l2tp_ppp.c
1044
static int pppol2tp_ioctl(struct socket *sock, unsigned int cmd,
net/l2tp/l2tp_ppp.c
1051
session = pppol2tp_sock_to_session(sock->sk);
net/l2tp/l2tp_ppp.c
1157
static int pppol2tp_tunnel_setsockopt(struct sock *sk,
net/l2tp/l2tp_ppp.c
1178
static int pppol2tp_session_setsockopt(struct sock *sk,
net/l2tp/l2tp_ppp.c
121
struct sock __rcu *sk; /* Pointer to the session PPPoX socket */
net/l2tp/l2tp_ppp.c
122
struct sock *__sk; /* Copy of .sk, for cleanup */
net/l2tp/l2tp_ppp.c
1232
static int pppol2tp_setsockopt(struct socket *sock, int level, int optname,
net/l2tp/l2tp_ppp.c
1235
struct sock *sk = sock->sk;
net/l2tp/l2tp_ppp.c
1276
static int pppol2tp_tunnel_getsockopt(struct sock *sk,
net/l2tp/l2tp_ppp.c
1298
static int pppol2tp_session_getsockopt(struct sock *sk,
net/l2tp/l2tp_ppp.c
1338
static int pppol2tp_getsockopt(struct socket *sock, int level, int optname,
net/l2tp/l2tp_ppp.c
134
static struct sock *pppol2tp_session_get_sock(struct l2tp_session *session)
net/l2tp/l2tp_ppp.c
1341
struct sock *sk = sock->sk;
net/l2tp/l2tp_ppp.c
1428
pd->session = l2tp_session_get_next(net, pd->tunnel->sock,
net/l2tp/l2tp_ppp.c
143
static struct l2tp_session *pppol2tp_sock_to_session(struct sock *sk)
net/l2tp/l2tp_ppp.c
1501
tunnel->sock ? 'Y' : 'N',
net/l2tp/l2tp_ppp.c
1519
struct sock *sk;
net/l2tp/l2tp_ppp.c
1523
if (tunnel->sock) {
net/l2tp/l2tp_ppp.c
1524
struct inet_sock *inet = inet_sk(tunnel->sock);
net/l2tp/l2tp_ppp.c
168
static int pppol2tp_recvmsg(struct socket *sock, struct msghdr *msg,
net/l2tp/l2tp_ppp.c
173
struct sock *sk = sock->sk;
net/l2tp/l2tp_ppp.c
200
struct sock *sk;
net/l2tp/l2tp_ppp.c
250
static int pppol2tp_sendmsg(struct socket *sock, struct msghdr *m,
net/l2tp/l2tp_ppp.c
253
struct sock *sk = sock->sk;
net/l2tp/l2tp_ppp.c
332
struct sock *sk = (struct sock *)chan->private;
net/l2tp/l2tp_ppp.c
384
static void pppol2tp_session_destruct(struct sock *sk)
net/l2tp/l2tp_ppp.c
412
static int pppol2tp_release(struct socket *sock)
net/l2tp/l2tp_ppp.c
414
struct sock *sk = sock->sk;
net/l2tp/l2tp_ppp.c
431
sock->sk = NULL;
net/l2tp/l2tp_ppp.c
457
static int pppol2tp_backlog_recv(struct sock *sk, struct sk_buff *skb)
net/l2tp/l2tp_ppp.c
470
static int pppol2tp_create(struct net *net, struct socket *sock, int kern)
net/l2tp/l2tp_ppp.c
473
struct sock *sk;
net/l2tp/l2tp_ppp.c
479
sock_init_data(sock, sk);
net/l2tp/l2tp_ppp.c
482
sock->state = SS_UNCONNECTED;
net/l2tp/l2tp_ppp.c
483
sock->ops = &pppol2tp_ops;
net/l2tp/l2tp_ppp.c
501
struct sock *sk;
net/l2tp/l2tp_ppp.c
677
if (!tunnel->sock) {
net/l2tp/l2tp_ppp.c
688
static int pppol2tp_connect(struct socket *sock, struct sockaddr_unsized *uservaddr,
net/l2tp/l2tp_ppp.c
691
struct sock *sk = sock->sk;
net/l2tp/l2tp_ppp.c
730
session = l2tp_session_get(sock_net(sk), tunnel->sock, tunnel->version,
net/l2tp/l2tp_ppp.c
850
if (!tunnel->sock) {
net/l2tp/l2tp_ppp.c
882
static int pppol2tp_getname(struct socket *sock, struct sockaddr *uaddr,
net/l2tp/l2tp_ppp.c
889
struct sock *sk = sock->sk;
net/l2tp/l2tp_ppp.c
907
inet = inet_sk(tunnel->sock);
net/l2tp/l2tp_ppp.c
908
if (tunnel->version == 2 && tunnel->sock->sk_family == AF_INET) {
net/l2tp/l2tp_ppp.c
926
} else if (tunnel->version == 2 && tunnel->sock->sk_family == AF_INET6) {
net/l2tp/l2tp_ppp.c
941
memcpy(&sp.pppol2tp.addr.sin6_addr, &tunnel->sock->sk_v6_daddr,
net/l2tp/l2tp_ppp.c
942
sizeof(tunnel->sock->sk_v6_daddr));
net/l2tp/l2tp_ppp.c
944
} else if (tunnel->version == 3 && tunnel->sock->sk_family == AF_INET6) {
net/l2tp/l2tp_ppp.c
959
memcpy(&sp.pppol2tp.addr.sin6_addr, &tunnel->sock->sk_v6_daddr,
net/l2tp/l2tp_ppp.c
960
sizeof(tunnel->sock->sk_v6_daddr));
net/llc/af_llc.c
1024
static int llc_ui_getname(struct socket *sock, struct sockaddr *uaddr,
net/llc/af_llc.c
1028
struct sock *sk = sock->sk;
net/llc/af_llc.c
1072
static int llc_ui_ioctl(struct socket *sock, unsigned int cmd,
net/llc/af_llc.c
1088
static int llc_ui_setsockopt(struct socket *sock, int level, int optname,
net/llc/af_llc.c
1091
struct sock *sk = sock->sk;
net/llc/af_llc.c
1169
static int llc_ui_getsockopt(struct socket *sock, int level, int optname,
net/llc/af_llc.c
1172
struct sock *sk = sock->sk;
net/llc/af_llc.c
122
static int llc_ui_send_data(struct sock* sk, struct sk_buff *skb, int noblock)
net/llc/af_llc.c
141
static void llc_ui_sk_init(struct socket *sock, struct sock *sk)
net/llc/af_llc.c
143
sock_graft(sk, sock);
net/llc/af_llc.c
144
sk->sk_type = sock->type;
net/llc/af_llc.c
145
sock->ops = &llc_ui_ops;
net/llc/af_llc.c
166
static int llc_ui_create(struct net *net, struct socket *sock, int protocol,
net/llc/af_llc.c
169
struct sock *sk;
net/llc/af_llc.c
178
if (likely(sock->type == SOCK_DGRAM || sock->type == SOCK_STREAM)) {
net/llc/af_llc.c
183
llc_ui_sk_init(sock, sk);
net/llc/af_llc.c
195
static int llc_ui_release(struct socket *sock)
net/llc/af_llc.c
197
struct sock *sk = sock->sk;
net/llc/af_llc.c
225
sock->sk = NULL;
net/llc/af_llc.c
271
static int llc_ui_autobind(struct socket *sock, struct sockaddr_llc *addr)
net/llc/af_llc.c
273
struct sock *sk = sock->sk;
net/llc/af_llc.c
336
static int llc_ui_bind(struct socket *sock, struct sockaddr_unsized *uaddr, int addrlen)
net/llc/af_llc.c
339
struct sock *sk = sock->sk;
net/llc/af_llc.c
38
static bool llc_ui_wait_for_conn(struct sock *sk, long timeout);
net/llc/af_llc.c
39
static int llc_ui_wait_for_disc(struct sock *sk, long timeout);
net/llc/af_llc.c
392
struct sock *ask;
net/llc/af_llc.c
40
static int llc_ui_wait_for_busy_core(struct sock *sk, long timeout);
net/llc/af_llc.c
441
static int llc_ui_shutdown(struct socket *sock, int how)
net/llc/af_llc.c
443
struct sock *sk = sock->sk;
net/llc/af_llc.c
476
static int llc_ui_connect(struct socket *sock, struct sockaddr_unsized *uaddr,
net/llc/af_llc.c
479
struct sock *sk = sock->sk;
net/llc/af_llc.c
493
if (unlikely(sock->state == SS_CONNECTING))
net/llc/af_llc.c
498
rc = llc_ui_autobind(sock, addr);
net/llc/af_llc.c
504
sock->state = SS_CONNECTING;
net/llc/af_llc.c
511
sock->state = SS_UNCONNECTED;
net/llc/af_llc.c
532
sock->state = SS_CONNECTED;
net/llc/af_llc.c
539
sock->state = SS_UNCONNECTED;
net/llc/af_llc.c
551
static int llc_ui_listen(struct socket *sock, int backlog)
net/llc/af_llc.c
553
struct sock *sk = sock->sk;
net/llc/af_llc.c
557
if (unlikely(sock->state != SS_UNCONNECTED))
net/llc/af_llc.c
579
static int llc_ui_wait_for_disc(struct sock *sk, long timeout)
net/llc/af_llc.c
601
static bool llc_ui_wait_for_conn(struct sock *sk, long timeout)
net/llc/af_llc.c
617
static int llc_ui_wait_for_busy_core(struct sock *sk, long timeout)
net/llc/af_llc.c
643
static int llc_wait_data(struct sock *sk, long timeo)
net/llc/af_llc.c
694
static int llc_ui_accept(struct socket *sock, struct socket *newsock,
net/llc/af_llc.c
697
struct sock *sk = sock->sk, *newsk;
net/llc/af_llc.c
708
if (unlikely(sock->state != SS_UNCONNECTED ||
net/llc/af_llc.c
757
static int llc_ui_recvmsg(struct socket *sock, struct msghdr *msg, size_t len,
net/llc/af_llc.c
763
struct sock *sk = sock->sk;
net/llc/af_llc.c
92
static inline u8 llc_ui_header_len(struct sock *sk, struct sockaddr_llc *addr)
net/llc/af_llc.c
928
static int llc_ui_sendmsg(struct socket *sock, struct msghdr *msg, size_t len)
net/llc/af_llc.c
931
struct sock *sk = sock->sk;
net/llc/af_llc.c
954
rc = llc_ui_autobind(sock, addr);
net/llc/llc_c_ac.c
1017
int llc_conn_ac_adjust_npta_by_rr(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
1043
int llc_conn_ac_adjust_npta_by_rnr(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
1068
int llc_conn_ac_dec_tx_win_size(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
1088
int llc_conn_ac_inc_tx_win_size(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
1098
int llc_conn_ac_stop_all_timers(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
1104
int llc_conn_ac_stop_other_timers(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
1116
int llc_conn_ac_start_ack_timer(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
1124
int llc_conn_ac_start_rej_timer(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
113
int llc_conn_ac_disc_confirm(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
1133
int llc_conn_ac_start_ack_tmr_if_not_running(struct sock *sk,
net/llc/llc_c_ac.c
1144
int llc_conn_ac_stop_ack_timer(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
1150
int llc_conn_ac_stop_p_timer(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
1159
int llc_conn_ac_stop_rej_timer(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
1165
int llc_conn_ac_upd_nr_received(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
1201
int llc_conn_ac_upd_p_flag(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
1217
int llc_conn_ac_set_data_flag_2(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
122
int llc_conn_ac_rst_ind(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
1223
int llc_conn_ac_set_data_flag_0(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
1229
int llc_conn_ac_set_data_flag_1(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
1235
int llc_conn_ac_set_data_flag_1_if_data_flag_eq_0(struct sock *sk,
net/llc/llc_c_ac.c
1243
int llc_conn_ac_set_p_flag_0(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
1249
static int llc_conn_ac_set_p_flag_1(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
1255
int llc_conn_ac_set_remote_busy_0(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
1261
int llc_conn_ac_set_cause_flag_0(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
1267
int llc_conn_ac_set_cause_flag_1(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
1273
int llc_conn_ac_set_retry_cnt_0(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
1279
int llc_conn_ac_inc_retry_cnt_by_1(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
1285
int llc_conn_ac_set_vr_0(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
1291
int llc_conn_ac_inc_vr_by_1(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
1297
int llc_conn_ac_set_vs_0(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
1303
int llc_conn_ac_set_vs_nr(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
1309
static int llc_conn_ac_inc_vs_by_1(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
1315
static void llc_conn_tmr_common_cb(struct sock *sk, u8 type)
net/llc/llc_c_ac.c
1361
int llc_conn_ac_rst_vs(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
1368
int llc_conn_ac_upd_vs(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
1387
int llc_conn_disc(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
1400
int llc_conn_reset(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
1434
static void llc_process_tmr_ev(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
161
int llc_conn_ac_rst_confirm(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
170
int llc_conn_ac_clear_remote_busy_if_f_eq_1(struct sock *sk,
net/llc/llc_c_ac.c
182
int llc_conn_ac_stop_rej_tmr_if_data_flag_eq_2(struct sock *sk,
net/llc/llc_c_ac.c
192
int llc_conn_ac_send_disc_cmd_p_set_x(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
217
int llc_conn_ac_send_dm_rsp_f_set_p(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
243
int llc_conn_ac_send_dm_rsp_f_set_1(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
26
static int llc_conn_ac_inc_vs_by_1(struct sock *sk, struct sk_buff *skb);
net/llc/llc_c_ac.c
267
int llc_conn_ac_send_frmr_rsp_f_set_x(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
27
static void llc_process_tmr_ev(struct sock *sk, struct sk_buff *skb);
net/llc/llc_c_ac.c
28
static int llc_conn_ac_data_confirm(struct sock *sk, struct sk_buff *ev);
net/llc/llc_c_ac.c
30
static int llc_conn_ac_inc_npta_value(struct sock *sk, struct sk_buff *skb);
net/llc/llc_c_ac.c
301
int llc_conn_ac_resend_frmr_rsp_f_set_0(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
32
static int llc_conn_ac_send_rr_rsp_f_set_ackpf(struct sock *sk,
net/llc/llc_c_ac.c
328
int llc_conn_ac_resend_frmr_rsp_f_set_p(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
35
static int llc_conn_ac_set_p_flag_1(struct sock *sk, struct sk_buff *skb);
net/llc/llc_c_ac.c
358
int llc_conn_ac_send_i_cmd_p_set_1(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
376
static int llc_conn_ac_send_i_cmd_p_set_0(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
39
int llc_conn_ac_clear_remote_busy(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
394
int llc_conn_ac_send_i_xxx_x_set_0(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
412
int llc_conn_ac_resend_i_xxx_x_set_0(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
421
int llc_conn_ac_resend_i_xxx_x_set_0_or_send_rr(struct sock *sk,
net/llc/llc_c_ac.c
450
int llc_conn_ac_resend_i_rsp_f_set_1(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
459
int llc_conn_ac_send_rej_cmd_p_set_1(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
483
int llc_conn_ac_send_rej_rsp_f_set_1(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
507
int llc_conn_ac_send_rej_xxx_x_set_0(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
531
int llc_conn_ac_send_rnr_cmd_p_set_1(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
55
int llc_conn_ac_conn_ind(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
555
int llc_conn_ac_send_rnr_rsp_f_set_1(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
579
int llc_conn_ac_send_rnr_xxx_x_set_0(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
603
int llc_conn_ac_set_remote_busy(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
615
int llc_conn_ac_opt_send_rnr_xxx_x_set_0(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
63
int llc_conn_ac_conn_confirm(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
639
int llc_conn_ac_send_rr_cmd_p_set_1(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
663
int llc_conn_ac_send_rr_rsp_f_set_1(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
688
int llc_conn_ac_send_ack_rsp_f_set_1(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
71
static int llc_conn_ac_data_confirm(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
712
int llc_conn_ac_send_rr_xxx_x_set_0(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
736
int llc_conn_ac_send_ack_xxx_x_set_0(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
760
void llc_conn_set_p_flag(struct sock *sk, u8 value)
net/llc/llc_c_ac.c
770
int llc_conn_ac_send_sabme_cmd_p_set_x(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
79
int llc_conn_ac_data_ind(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
798
int llc_conn_ac_send_ua_rsp_f_set_p(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
825
int llc_conn_ac_set_s_flag_0(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
831
int llc_conn_ac_set_s_flag_1(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
837
int llc_conn_ac_start_p_timer(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
85
int llc_conn_ac_disc_ind(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
857
int llc_conn_ac_send_ack_if_needed(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
888
int llc_conn_ac_rst_sendack_flag(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
904
static int llc_conn_ac_send_i_rsp_f_set_ackpf(struct sock *sk,
net/llc/llc_c_ac.c
933
int llc_conn_ac_send_i_as_ack(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
959
static int llc_conn_ac_send_rr_rsp_f_set_ackpf(struct sock *sk,
net/llc/llc_c_ac.c
994
static int llc_conn_ac_inc_npta_value(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
101
int llc_conn_ev_data_req(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
109
int llc_conn_ev_disc_req(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
117
int llc_conn_ev_rst_req(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
125
int llc_conn_ev_local_busy_detected(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
133
int llc_conn_ev_local_busy_cleared(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
141
int llc_conn_ev_rx_bad_pdu(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
146
int llc_conn_ev_rx_disc_cmd_pbit_set_x(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
154
int llc_conn_ev_rx_dm_rsp_fbit_set_x(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
162
int llc_conn_ev_rx_frmr_rsp_fbit_set_x(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
170
int llc_conn_ev_rx_i_cmd_pbit_set_0(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
180
int llc_conn_ev_rx_i_cmd_pbit_set_1(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
190
int llc_conn_ev_rx_i_cmd_pbit_set_0_unexpd_ns(struct sock *sk,
net/llc/llc_c_ev.c
202
int llc_conn_ev_rx_i_cmd_pbit_set_1_unexpd_ns(struct sock *sk,
net/llc/llc_c_ev.c
214
int llc_conn_ev_rx_i_cmd_pbit_set_x_inval_ns(struct sock *sk,
net/llc/llc_c_ev.c
229
int llc_conn_ev_rx_i_rsp_fbit_set_0(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
239
int llc_conn_ev_rx_i_rsp_fbit_set_1(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
248
int llc_conn_ev_rx_i_rsp_fbit_set_x(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
257
int llc_conn_ev_rx_i_rsp_fbit_set_0_unexpd_ns(struct sock *sk,
net/llc/llc_c_ev.c
269
int llc_conn_ev_rx_i_rsp_fbit_set_1_unexpd_ns(struct sock *sk,
net/llc/llc_c_ev.c
281
int llc_conn_ev_rx_i_rsp_fbit_set_x_unexpd_ns(struct sock *sk,
net/llc/llc_c_ev.c
292
int llc_conn_ev_rx_i_rsp_fbit_set_x_inval_ns(struct sock *sk,
net/llc/llc_c_ev.c
307
int llc_conn_ev_rx_rej_cmd_pbit_set_0(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
316
int llc_conn_ev_rx_rej_cmd_pbit_set_1(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
325
int llc_conn_ev_rx_rej_rsp_fbit_set_0(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
334
int llc_conn_ev_rx_rej_rsp_fbit_set_1(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
343
int llc_conn_ev_rx_rej_rsp_fbit_set_x(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
351
int llc_conn_ev_rx_rnr_cmd_pbit_set_0(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
360
int llc_conn_ev_rx_rnr_cmd_pbit_set_1(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
369
int llc_conn_ev_rx_rnr_rsp_fbit_set_0(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
378
int llc_conn_ev_rx_rnr_rsp_fbit_set_1(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
387
int llc_conn_ev_rx_rr_cmd_pbit_set_0(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
396
int llc_conn_ev_rx_rr_cmd_pbit_set_1(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
405
int llc_conn_ev_rx_rr_rsp_fbit_set_0(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
415
int llc_conn_ev_rx_rr_rsp_fbit_set_1(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
425
int llc_conn_ev_rx_sabme_cmd_pbit_set_x(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
433
int llc_conn_ev_rx_ua_rsp_fbit_set_x(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
441
int llc_conn_ev_rx_xxx_cmd_pbit_set_1(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
456
int llc_conn_ev_rx_xxx_cmd_pbit_set_x(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
475
int llc_conn_ev_rx_xxx_rsp_fbit_set_x(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
496
int llc_conn_ev_rx_zzz_cmd_pbit_set_x_inval_nr(struct sock *sk,
net/llc/llc_c_ev.c
514
int llc_conn_ev_rx_zzz_rsp_fbit_set_x_inval_nr(struct sock *sk,
net/llc/llc_c_ev.c
532
int llc_conn_ev_rx_any_frame(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
537
int llc_conn_ev_p_tmr_exp(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
544
int llc_conn_ev_ack_tmr_exp(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
551
int llc_conn_ev_rej_tmr_exp(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
558
int llc_conn_ev_busy_tmr_exp(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
565
int llc_conn_ev_init_p_f_cycle(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
570
int llc_conn_ev_tx_buffer_full(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
584
int llc_conn_ev_qlfy_data_flag_eq_1(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
589
int llc_conn_ev_qlfy_data_flag_eq_0(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
594
int llc_conn_ev_qlfy_data_flag_eq_2(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
599
int llc_conn_ev_qlfy_p_flag_eq_1(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
615
int llc_conn_ev_qlfy_last_frame_eq_1(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
629
int llc_conn_ev_qlfy_last_frame_eq_0(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
634
int llc_conn_ev_qlfy_p_flag_eq_0(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
639
int llc_conn_ev_qlfy_p_flag_eq_f(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
647
int llc_conn_ev_qlfy_remote_busy_eq_0(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
652
int llc_conn_ev_qlfy_remote_busy_eq_1(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
657
int llc_conn_ev_qlfy_retry_cnt_lt_n2(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
662
int llc_conn_ev_qlfy_retry_cnt_gte_n2(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
667
int llc_conn_ev_qlfy_s_flag_eq_1(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
672
int llc_conn_ev_qlfy_s_flag_eq_0(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
677
int llc_conn_ev_qlfy_cause_flag_eq_1(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
682
int llc_conn_ev_qlfy_cause_flag_eq_0(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
687
int llc_conn_ev_qlfy_set_status_conn(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
69
static u16 llc_util_nr_inside_tx_window(struct sock *sk, u8 nr)
net/llc/llc_c_ev.c
695
int llc_conn_ev_qlfy_set_status_disc(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
703
int llc_conn_ev_qlfy_set_status_failed(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
711
int llc_conn_ev_qlfy_set_status_remote_busy(struct sock *sk,
net/llc/llc_c_ev.c
720
int llc_conn_ev_qlfy_set_status_refuse(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
728
int llc_conn_ev_qlfy_set_status_conflict(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
736
int llc_conn_ev_qlfy_set_status_rst_done(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
93
int llc_conn_ev_conn_req(struct sock *sk, struct sk_buff *skb)
net/llc/llc_conn.c
1003
void llc_sk_reset(struct sock *sk)
net/llc/llc_conn.c
172
void llc_conn_send_pdu(struct sock *sk, struct sk_buff *skb)
net/llc/llc_conn.c
188
void llc_conn_rtn_pdu(struct sock *sk, struct sk_buff *skb)
net/llc/llc_conn.c
205
void llc_conn_resend_i_pdu_as_cmd(struct sock *sk, u8 nr, u8 first_p_bit)
net/llc/llc_conn.c
248
void llc_conn_resend_i_pdu_as_rsp(struct sock *sk, u8 nr, u8 first_f_bit)
net/llc/llc_conn.c
28
static void llc_conn_send_pdus(struct sock *sk);
net/llc/llc_conn.c
288
int llc_conn_remove_acked_pdus(struct sock *sk, u8 nr, u16 *how_many_unacked)
net/llc/llc_conn.c
29
static int llc_conn_service(struct sock *sk, struct sk_buff *skb);
net/llc/llc_conn.c
30
static int llc_exec_conn_trans_actions(struct sock *sk,
net/llc/llc_conn.c
322
static void llc_conn_send_pdus(struct sock *sk)
net/llc/llc_conn.c
33
static const struct llc_conn_state_trans *llc_qualify_conn_ev(struct sock *sk,
net/llc/llc_conn.c
351
static int llc_conn_service(struct sock *sk, struct sk_buff *skb)
net/llc/llc_conn.c
381
static const struct llc_conn_state_trans *llc_qualify_conn_ev(struct sock *sk,
net/llc/llc_conn.c
428
static int llc_exec_conn_trans_actions(struct sock *sk,
net/llc/llc_conn.c
451
const struct sock *sk,
net/llc/llc_conn.c
475
static struct sock *__llc_lookup_established(struct llc_sap *sap,
net/llc/llc_conn.c
480
struct sock *rc;
net/llc/llc_conn.c
513
struct sock *llc_lookup_established(struct llc_sap *sap,
net/llc/llc_conn.c
518
struct sock *sk;
net/llc/llc_conn.c
528
const struct sock *sk,
net/llc/llc_conn.c
539
static struct sock *__llc_lookup_listener(struct llc_sap *sap,
net/llc/llc_conn.c
543
struct sock *rc;
net/llc/llc_conn.c
56
int llc_conn_state_process(struct sock *sk, struct sk_buff *skb)
net/llc/llc_conn.c
587
static struct sock *llc_lookup_listener(struct llc_sap *sap,
net/llc/llc_conn.c
591
struct sock *rc = __llc_lookup_listener(sap, laddr, net);
net/llc/llc_conn.c
600
static struct sock *__llc_lookup(struct llc_sap *sap,
net/llc/llc_conn.c
605
struct sock *sk = __llc_lookup_established(sap, daddr, laddr, net);
net/llc/llc_conn.c
700
void llc_sap_add_socket(struct llc_sap *sap, struct sock *sk)
net/llc/llc_conn.c
725
void llc_sap_remove_socket(struct llc_sap *sap, struct sock *sk)
net/llc/llc_conn.c
744
static int llc_conn_rcv(struct sock *sk, struct sk_buff *skb)
net/llc/llc_conn.c
753
static struct sock *llc_create_incoming_sock(struct sock *sk,
net/llc/llc_conn.c
758
struct sock *newsk = llc_sk_alloc(sock_net(sk), sk->sk_family, GFP_ATOMIC,
net/llc/llc_conn.c
777
struct sock *sk;
net/llc/llc_conn.c
798
struct sock *newsk = llc_create_incoming_sock(sk, skb->dev,
net/llc/llc_conn.c
851
static int llc_backlog_rcv(struct sock *sk, struct sk_buff *skb)
net/llc/llc_conn.c
884
static void llc_sk_init(struct sock *sk)
net/llc/llc_conn.c
923
struct sock *llc_sk_alloc(struct net *net, int family, gfp_t priority, struct proto *prot, int kern)
net/llc/llc_conn.c
925
struct sock *sk = sk_alloc(net, family, priority, prot, kern);
net/llc/llc_conn.c
940
void llc_sk_stop_all_timers(struct sock *sk, bool sync)
net/llc/llc_conn.c
966
void llc_sk_free(struct sock *sk)
net/llc/llc_if.c
123
int llc_send_disc(struct sock *sk)
net/llc/llc_if.c
38
int llc_build_and_send_pkt(struct sock *sk, struct sk_buff *skb)
net/llc/llc_if.c
77
int llc_establish_connection(struct sock *sk, const u8 *lmac, u8 *dmac, u8 dsap)
net/llc/llc_if.c
83
struct sock *existing;
net/llc/llc_proc.c
111
struct sock *sk = v;
net/llc/llc_proc.c
122
struct sock* sk;
net/llc/llc_proc.c
171
struct sock* sk;
net/llc/llc_proc.c
28
static struct sock *llc_get_sk_idx(loff_t pos)
net/llc/llc_proc.c
31
struct sock *sk = NULL;
net/llc/llc_proc.c
61
static struct sock *laddr_hash_next(struct llc_sap *sap, int bucket)
net/llc/llc_proc.c
64
struct sock *sk = NULL;
net/llc/llc_proc.c
76
struct sock* sk, *next;
net/llc/llc_sap.c
276
struct sock *sk)
net/llc/llc_sap.c
291
const struct sock *sk,
net/llc/llc_sap.c
311
static struct sock *llc_lookup_dgram(struct llc_sap *sap,
net/llc/llc_sap.c
315
struct sock *rc;
net/llc/llc_sap.c
351
const struct sock *sk)
net/llc/llc_sap.c
361
struct sock **stack, int count)
net/llc/llc_sap.c
392
struct sock *sk;
net/llc/llc_sap.c
393
struct sock *stack[256 / sizeof(struct sock *)];
net/llc/llc_sap.c
42
struct sk_buff *llc_alloc_frame(struct sock *sk, struct net_device *dev,
net/llc/llc_sap.c
430
struct sock *sk = llc_lookup_dgram(sap, &laddr, dev_net(skb->dev));
net/llc/llc_sap.c
64
void llc_save_primitive(struct sock *sk, struct sk_buff *skb, u8 prim)
net/mctp/af_mctp.c
132
static int mctp_connect(struct socket *sock, struct sockaddr_unsized *addr,
net/mctp/af_mctp.c
135
struct sock *sk = sock->sk;
net/mctp/af_mctp.c
190
static int mctp_sendmsg(struct socket *sock, struct msghdr *msg, size_t len)
net/mctp/af_mctp.c
194
struct sock *sk = sock->sk;
net/mctp/af_mctp.c
28
static int mctp_release(struct socket *sock)
net/mctp/af_mctp.c
284
static int mctp_recvmsg(struct socket *sock, struct msghdr *msg, size_t len,
net/mctp/af_mctp.c
288
struct sock *sk = sock->sk;
net/mctp/af_mctp.c
30
struct sock *sk = sock->sk;
net/mctp/af_mctp.c
33
sock->sk = NULL;
net/mctp/af_mctp.c
387
static int mctp_setsockopt(struct socket *sock, int level, int optname,
net/mctp/af_mctp.c
390
struct mctp_sock *msk = container_of(sock->sk, struct mctp_sock, sk);
net/mctp/af_mctp.c
408
static int mctp_getsockopt(struct socket *sock, int level, int optname,
net/mctp/af_mctp.c
411
struct mctp_sock *msk = container_of(sock->sk, struct mctp_sock, sk);
net/mctp/af_mctp.c
53
static int mctp_bind(struct socket *sock, struct sockaddr_unsized *addr, int addrlen)
net/mctp/af_mctp.c
55
struct sock *sk = sock->sk;
net/mctp/af_mctp.c
592
static int mctp_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
net/mctp/af_mctp.c
594
struct mctp_sock *msk = container_of(sock->sk, struct mctp_sock, sk);
net/mctp/af_mctp.c
612
static int mctp_compat_ioctl(struct socket *sock, unsigned int cmd,
net/mctp/af_mctp.c
621
return mctp_ioctl(sock, cmd, (unsigned long)argp);
net/mctp/af_mctp.c
693
static int mctp_sk_init(struct sock *sk)
net/mctp/af_mctp.c
703
static void mctp_sk_close(struct sock *sk, long timeout)
net/mctp/af_mctp.c
708
static int mctp_sk_hash(struct sock *sk)
net/mctp/af_mctp.c
711
struct sock *existing;
net/mctp/af_mctp.c
755
static void mctp_sk_unhash(struct sock *sk)
net/mctp/af_mctp.c
784
static void mctp_sk_destruct(struct sock *sk)
net/mctp/af_mctp.c
799
static int mctp_pf_create(struct net *net, struct socket *sock,
net/mctp/af_mctp.c
804
struct sock *sk;
net/mctp/af_mctp.c
811
if (sock->type != SOCK_DGRAM)
net/mctp/af_mctp.c
817
sock->state = SS_UNCONNECTED;
net/mctp/af_mctp.c
818
sock->ops = ops;
net/mctp/af_mctp.c
824
sock_init_data(sock, sk);
net/mctp/route.c
1132
int mctp_local_output(struct sock *sk, struct mctp_dst *dst,
net/mctp/route.c
49
struct sock *sk;
net/mctp/test/route-test.c
1003
mctp_test_flow_init(test, &dev, &dst, &sock, &skb, 30);
net/mctp/test/route-test.c
1005
rc = mctp_local_output(sock->sk, &dst, skb, dst_eid, MCTP_TAG_OWNER);
net/mctp/test/route-test.c
1017
KUNIT_ASSERT_PTR_EQ(test, flow->key->sk, sock->sk);
net/mctp/test/route-test.c
1020
mctp_test_flow_fini(test, dev, &dst, sock);
net/mctp/test/route-test.c
1033
struct socket *sock;
net/mctp/test/route-test.c
1037
mctp_test_flow_init(test, &dev, &dst, &sock, &skb, 100);
net/mctp/test/route-test.c
1039
rc = mctp_local_output(sock->sk, &dst, skb, dst_eid, MCTP_TAG_OWNER);
net/mctp/test/route-test.c
1055
KUNIT_ASSERT_PTR_EQ(test, flows[0]->key->sk, sock->sk);
net/mctp/test/route-test.c
1063
mctp_test_flow_fini(test, dev, &dst, sock);
net/mctp/test/route-test.c
1087
struct socket *sock;
net/mctp/test/route-test.c
1098
rc = sock_create_kern(&init_net, AF_MCTP, SOCK_DGRAM, 0, &sock);
net/mctp/test/route-test.c
1113
mns = &sock_net(sock->sk)->mctp;
net/mctp/test/route-test.c
1123
rc = mctp_local_output(sock->sk, &dst, skb, dst_eid, MCTP_TAG_OWNER);
net/mctp/test/route-test.c
1144
sock_release(sock);
net/mctp/test/route-test.c
1158
struct socket *sock;
net/mctp/test/route-test.c
1166
__mctp_route_test_init(test, &dev, &dst, &sock, MCTP_NET_ANY);
net/mctp/test/route-test.c
1181
skb2 = skb_recv_datagram(sock->sk, MSG_DONTWAIT, &rc);
net/mctp/test/route-test.c
1195
__mctp_route_test_fini(test, dev, &dst, sock);
net/mctp/test/route-test.c
1615
struct socket *sock;
net/mctp/test/route-test.c
1628
rc = sock_create_kern(&init_net, AF_MCTP, SOCK_DGRAM, 0, &sock);
net/mctp/test/route-test.c
1637
rc = mctp_local_output(sock->sk, &dst, skb, 9, MCTP_TAG_OWNER);
net/mctp/test/route-test.c
1646
sock_release(sock);
net/mctp/test/route-test.c
1684
struct socket *sock;
net/mctp/test/route-test.c
1697
rc = sock_create_kern(net, AF_MCTP, SOCK_DGRAM, 0, &sock);
net/mctp/test/route-test.c
1706
rc = mctp_local_output(sock->sk, &dst, skb, 9, MCTP_TAG_OWNER);
net/mctp/test/route-test.c
1715
sock_release(sock);
net/mctp/test/route-test.c
188
struct socket *sock;
net/mctp/test/route-test.c
202
rc = sock_create_kern(&init_net, AF_MCTP, SOCK_DGRAM, 0, &sock);
net/mctp/test/route-test.c
209
rc = kernel_bind(sock, (struct sockaddr_unsized *)&addr, sizeof(addr));
net/mctp/test/route-test.c
213
*sockp = sock;
net/mctp/test/route-test.c
219
struct socket *sock)
net/mctp/test/route-test.c
221
sock_release(sock);
net/mctp/test/route-test.c
238
struct socket *sock;
net/mctp/test/route-test.c
243
__mctp_route_test_init(test, &dev, &dst, &sock, MCTP_NET_ANY);
net/mctp/test/route-test.c
255
skb2 = skb_recv_datagram(sock->sk, MSG_DONTWAIT, &rc);
net/mctp/test/route-test.c
259
skb_free_datagram(sock->sk, skb2);
net/mctp/test/route-test.c
263
skb2 = skb_recv_datagram(sock->sk, MSG_DONTWAIT, &rc);
net/mctp/test/route-test.c
267
__mctp_route_test_fini(test, dev, &dst, sock);
net/mctp/test/route-test.c
307
struct socket *sock;
net/mctp/test/route-test.c
313
__mctp_route_test_init(test, &dev, &dst, &sock, MCTP_NET_ANY);
net/mctp/test/route-test.c
325
skb2 = skb_recv_datagram(sock->sk, MSG_DONTWAIT, &rc);
net/mctp/test/route-test.c
330
skb_free_datagram(sock->sk, skb2);
net/mctp/test/route-test.c
336
__mctp_route_test_fini(test, dev, &dst, sock);
net/mctp/test/route-test.c
443
struct socket *sock;
net/mctp/test/route-test.c
458
rc = sock_create_kern(&init_net, AF_MCTP, SOCK_DGRAM, 0, &sock);
net/mctp/test/route-test.c
461
msk = container_of(sock->sk, struct mctp_sock, sk);
net/mctp/test/route-test.c
462
mns = &sock_net(sock->sk)->mctp;
net/mctp/test/route-test.c
485
skb2 = skb_recv_datagram(sock->sk, MSG_DONTWAIT, &rc);
net/mctp/test/route-test.c
493
skb_free_datagram(sock->sk, skb2);
net/mctp/test/route-test.c
496
__mctp_route_test_fini(test, dev, &dst, sock);
net/mctp/test/route-test.c
572
struct socket *sock;
net/mctp/test/route-test.c
589
__mctp_route_test_init(test, &t->dev, &t->dst, &t->sock, t->netid);
net/mctp/test/route-test.c
600
__mctp_route_test_fini(test, t->dev, &t->dst, t->sock);
net/mctp/test/route-test.c
626
rx_skb1 = skb_recv_datagram(t1.sock->sk, MSG_DONTWAIT, &rc);
net/mctp/test/route-test.c
634
rx_skb2 = skb_recv_datagram(t2.sock->sk, MSG_DONTWAIT, &rc);
net/mctp/test/route-test.c
657
__mctp_route_test_init(test, &t->dev, &t->dst, &t->sock, t->netid);
net/mctp/test/route-test.c
659
msk = container_of(t->sock->sk, struct mctp_sock, sk);
net/mctp/test/route-test.c
664
mns = &sock_net(t->sock->sk)->mctp;
net/mctp/test/route-test.c
680
__mctp_route_test_fini(test, t->dev, &t->dst, t->sock);
net/mctp/test/route-test.c
707
rx_skb1 = skb_recv_datagram(t1.sock->sk, MSG_DONTWAIT, &rc);
net/mctp/test/route-test.c
715
rx_skb2 = skb_recv_datagram(t2.sock->sk, MSG_DONTWAIT, &rc);
net/mctp/test/route-test.c
735
struct socket *sock;
net/mctp/test/route-test.c
739
__mctp_route_test_init(test, &dev, &dst, &sock, MCTP_NET_ANY);
net/mctp/test/route-test.c
744
lock_sock(sock->sk);
net/mctp/test/route-test.c
745
WRITE_ONCE(sock->sk->sk_rcvbuf, 0);
net/mctp/test/route-test.c
746
release_sock(sock->sk);
net/mctp/test/route-test.c
762
__mctp_route_test_fini(test, dev, &dst, sock);
net/mctp/test/route-test.c
773
struct socket *sock;
net/mctp/test/route-test.c
777
__mctp_route_test_init(test, &dev, &dst, &sock, MCTP_NET_ANY);
net/mctp/test/route-test.c
779
lock_sock(sock->sk);
net/mctp/test/route-test.c
780
WRITE_ONCE(sock->sk->sk_rcvbuf, 0);
net/mctp/test/route-test.c
781
release_sock(sock->sk);
net/mctp/test/route-test.c
808
__mctp_route_test_fini(test, dev, &dst, sock);
net/mctp/test/route-test.c
830
struct socket *sock;
net/mctp/test/route-test.c
837
__mctp_route_test_init(test, &dev, &dst, &sock, MCTP_NET_ANY);
net/mctp/test/route-test.c
875
rx_skb = skb_recv_datagram(sock->sk, MSG_DONTWAIT, &rc);
net/mctp/test/route-test.c
889
rx_skb = skb_recv_datagram(sock->sk, MSG_DONTWAIT, &rc);
net/mctp/test/route-test.c
908
__mctp_route_test_fini(test, dev, &dst, sock);
net/mctp/test/route-test.c
920
struct socket *sock;
net/mctp/test/route-test.c
927
rc = sock_create_kern(&init_net, AF_MCTP, SOCK_DGRAM, 0, &sock);
net/mctp/test/route-test.c
934
rc = kernel_bind(sock, (struct sockaddr_unsized *)&addr, sizeof(addr));
net/mctp/test/route-test.c
945
skb_sk = skb_recv_datagram(sock->sk, MSG_DONTWAIT, &rc);
net/mctp/test/route-test.c
948
skb_free_datagram(sock->sk, skb_sk);
net/mctp/test/route-test.c
949
sock_release(sock);
net/mctp/test/route-test.c
958
struct socket **sock,
net/mctp/test/route-test.c
971
__mctp_route_test_init(test, &dev, dst, sock, MCTP_NET_ANY);
net/mctp/test/route-test.c
987
struct socket *sock)
net/mctp/test/route-test.c
989
__mctp_route_test_fini(test, dev, dst, sock);
net/mctp/test/route-test.c
999
struct socket *sock;
net/mctp/test/sock-test.c
107
struct socket *sock;
net/mctp/test/sock-test.c
114
__mctp_sock_test_init(test, &dev, &rt, &sock);
net/mctp/test/sock-test.c
129
msk = container_of(sock->sk, struct mctp_sock, sk);
net/mctp/test/sock-test.c
140
send_len = mctp_sendmsg(sock, &msg, sizeof(buf));
net/mctp/test/sock-test.c
144
__mctp_sock_test_fini(test, dev, rt, sock);
net/mctp/test/sock-test.c
158
struct socket *sock;
net/mctp/test/sock-test.c
167
__mctp_sock_test_init(test, &dev, &rt, &sock);
net/mctp/test/sock-test.c
170
msk = container_of(sock->sk, struct mctp_sock, sk);
net/mctp/test/sock-test.c
196
rc = sock_queue_rcv_skb(sock->sk, skb);
net/mctp/test/sock-test.c
203
recv_len = mctp_recvmsg(sock, &msg, sizeof(rcv_buf),
net/mctp/test/sock-test.c
215
__mctp_sock_test_fini(test, dev, rt, sock);
net/mctp/test/sock-test.c
23
struct socket *sock;
net/mctp/test/sock-test.c
317
struct socket *sock;
net/mctp/test/sock-test.c
325
mctp_test_bind_run(test, &bind_connect_net_mismatch, &rc, &sock);
net/mctp/test/sock-test.c
327
sock_release(sock);
net/mctp/test/sock-test.c
46
rc = sock_create_kern(&init_net, AF_MCTP, SOCK_DGRAM, 0, &sock);
net/mctp/test/sock-test.c
51
*sockp = sock;
net/mctp/test/sock-test.c
57
struct socket *sock)
net/mctp/test/sock-test.c
59
sock_release(sock);
net/mctp/test/sock-test.c
72
static int mctp_test_sock_local_output(struct sock *sk,
net/mctp/test/utils.c
278
int *ret_bind_errno, struct socket **sock)
net/mctp/test/utils.c
285
rc = sock_create_kern(&init_net, AF_MCTP, SOCK_DGRAM, 0, sock);
net/mctp/test/utils.c
296
rc = kernel_connect(*sock, (struct sockaddr_unsized *)&addr,
net/mctp/test/utils.c
309
kernel_bind(*sock, (struct sockaddr_unsized *)&addr,
net/mctp/test/utils.h
73
int *ret_bind_errno, struct socket **sock);
net/mptcp/bpf.c
15
struct mptcp_sock *bpf_mptcp_sock_from_subflow(struct sock *sk)
net/mptcp/ctrl.c
456
void mptcp_active_disable(struct sock *sk)
net/mptcp/ctrl.c
482
bool mptcp_active_should_disable(struct sock *ssk)
net/mptcp/ctrl.c
515
void mptcp_active_enable(struct sock *sk)
net/mptcp/ctrl.c
533
void mptcp_active_detect_blackhole(struct sock *ssk, bool expired)
net/mptcp/ctrl.c
76
unsigned int mptcp_close_timeout(const struct sock *sk)
net/mptcp/diag.c
15
static int subflow_get_info(struct sock *sk, struct sk_buff *skb, bool net_admin)
net/mptcp/diag.c
93
static size_t subflow_get_info_size(const struct sock *sk, bool net_admin)
net/mptcp/fastopen.c
12
struct sock *sk, *ssk;
net/mptcp/mptcp_diag.c
15
static int sk_diag_dump(struct sock *sk, struct sk_buff *skb,
net/mptcp/mptcp_diag.c
162
struct sock *sk = (struct sock *)msk;
net/mptcp/mptcp_diag.c
192
static void mptcp_diag_get_info(struct sock *sk, struct inet_diag_msg *r,
net/mptcp/mptcp_diag.c
203
struct sock *lsk = READ_ONCE(msk->first);
net/mptcp/mptcp_diag.c
35
struct sock *sk;
net/mptcp/mptcp_diag.c
43
sk = (struct sock *)msk;
net/mptcp/mptcp_diag.c
89
struct sock *sk;
net/mptcp/options.c
1027
static void rwin_update(struct mptcp_sock *msk, struct sock *ssk,
net/mptcp/options.c
1054
struct sock *ssk,
net/mptcp/options.c
1058
struct sock *sk = (struct sock *)msk;
net/mptcp/options.c
1133
bool mptcp_incoming_options(struct sock *sk, struct sk_buff *skb)
net/mptcp/options.c
1172
mptcp_schedule_work((struct sock *)msk);
net/mptcp/options.c
1229
mptcp_schedule_work((struct sock *)msk);
net/mptcp/options.c
1272
const struct sock *ssk = (const struct sock *)tp;
net/mptcp/options.c
1334
const struct sock *ssk = (const struct sock *)tp;
net/mptcp/options.c
1384
const struct sock *ssk = (const struct sock *)tp;
net/mptcp/options.c
401
bool mptcp_syn_options(struct sock *sk, const struct sk_buff *skb,
net/mptcp/options.c
440
static void clear_3rdack_retransmission(struct sock *sk)
net/mptcp/options.c
449
static bool mptcp_established_options_mp(struct sock *sk, struct sk_buff *skb,
net/mptcp/options.c
561
static bool mptcp_established_options_dss(struct sock *sk, struct sk_buff *skb,
net/mptcp/options.c
656
static bool mptcp_established_options_add_addr(struct sock *sk,
net/mptcp/options.c
697
static bool mptcp_established_options_rm_addr(struct sock *sk, int *size,
net/mptcp/options.c
719
static bool mptcp_established_options_mp_prio(struct sock *sk, int *size,
net/mptcp/options.c
744
static noinline bool mptcp_established_options_rst(struct sock *sk,
net/mptcp/options.c
763
static bool mptcp_established_options_fastclose(struct sock *sk, int *size,
net/mptcp/options.c
785
static bool mptcp_established_options_mp_fail(struct sock *sk, int *size,
net/mptcp/options.c
807
int mptcp_established_options(struct sock *sk, struct sk_buff *skb,
net/mptcp/options.c
912
static bool check_fully_established(struct mptcp_sock *msk, struct sock *ssk,
net/mptcp/options.c
978
mptcp_data_lock((struct sock *)msk);
net/mptcp/options.c
980
mptcp_data_unlock((struct sock *)msk);
net/mptcp/pm.c
1063
static void mptcp_pm_subflows_chk_stale(const struct mptcp_sock *msk, struct sock *ssk)
net/mptcp/pm.c
1066
struct sock *sk = (struct sock *)msk;
net/mptcp/pm.c
1100
void mptcp_pm_subflow_chk_stale(const struct mptcp_sock *msk, struct sock *ssk)
net/mptcp/pm.c
1154
u8 pm_type = mptcp_get_pm_type(sock_net((struct sock *)msk));
net/mptcp/pm.c
156
struct sock *sk = (struct sock *)msk;
net/mptcp/pm.c
199
bool mptcp_pm_announced_has_ssk(struct mptcp_sock *msk, const struct sock *ssk)
net/mptcp/pm.c
21
struct mptcp_sock *sock;
net/mptcp/pm.c
224
struct sock *ssk = mptcp_subflow_tcp_sock(subflow);
net/mptcp/pm.c
319
struct sock *ssk = mptcp_subflow_tcp_sock(subflow);
net/mptcp/pm.c
33
bool mptcp_pm_addr_families_match(const struct sock *sk,
net/mptcp/pm.c
344
const struct net *net = sock_net((struct sock *)msk);
net/mptcp/pm.c
353
struct sock *ssk = mptcp_subflow_tcp_sock(subflow);
net/mptcp/pm.c
380
struct mptcp_sock *msk = entry->sock;
net/mptcp/pm.c
381
struct sock *sk = (struct sock *)msk;
net/mptcp/pm.c
439
struct sock *sk = (struct sock *)msk;
net/mptcp/pm.c
459
add_entry->sock = msk;
net/mptcp/pm.c
475
struct sock *sk = (struct sock *)msk;
net/mptcp/pm.c
505
MPTCP_INC_STATS(sock_net((struct sock *)msk),
net/mptcp/pm.c
528
MPTCP_ADD_STATS(sock_net((struct sock *)msk),
net/mptcp/pm.c
542
void mptcp_pm_new_connection(struct mptcp_sock *msk, const struct sock *ssk, int server_side)
net/mptcp/pm.c
601
mptcp_schedule_work((struct sock *)msk);
net/mptcp/pm.c
605
void mptcp_pm_fully_established(struct mptcp_sock *msk, const struct sock *ssk)
net/mptcp/pm.c
660
struct sock *sk = (struct sock *)msk;
net/mptcp/pm.c
691
void mptcp_pm_add_addr_received(const struct sock *ssk,
net/mptcp/pm.c
710
__MPTCP_INC_STATS(sock_net((struct sock *)msk), MPTCP_MIB_ADDADDRDROP);
net/mptcp/pm.c
723
__MPTCP_INC_STATS(sock_net((struct sock *)msk), MPTCP_MIB_ADDADDRDROP);
net/mptcp/pm.c
764
struct sock *sk = (struct sock *)msk;
net/mptcp/pm.c
786
struct sock *ssk = mptcp_subflow_tcp_sock(subflow);
net/mptcp/pm.c
848
__MPTCP_INC_STATS(sock_net((struct sock *)msk), MPTCP_MIB_RMADDRDROP);
net/mptcp/pm.c
852
void mptcp_pm_mp_prio_received(struct sock *ssk, u8 bkup)
net/mptcp/pm.c
855
struct sock *sk = subflow->conn;
net/mptcp/pm.c
866
void mptcp_pm_mp_fail_received(struct sock *sk, u64 fail_seq)
net/mptcp/pm.c
947
struct net *net = sock_net((struct sock *)msk);
net/mptcp/pm_kernel.c
106
struct sock *ssk = mptcp_subflow_tcp_sock(subflow);
net/mptcp/pm_kernel.c
1094
struct sock *sk = (struct sock *)msk;
net/mptcp/pm_kernel.c
1138
struct sock *sk = (struct sock *)msk;
net/mptcp/pm_kernel.c
1280
struct sock *sk = (struct sock *)msk;
net/mptcp/pm_kernel.c
1494
struct sock *sk = (struct sock *)msk;
net/mptcp/pm_kernel.c
186
struct sock *sk = (struct sock *)msk;
net/mptcp/pm_kernel.c
211
struct sock *sk = (struct sock *)msk, *ssk;
net/mptcp/pm_kernel.c
339
struct sock *sk = (struct sock *)msk;
net/mptcp/pm_kernel.c
43
return pm_nl_get_pernet(sock_net((struct sock *)msk));
net/mptcp/pm_kernel.c
460
struct sock *sk = (struct sock *)msk;
net/mptcp/pm_kernel.c
513
struct sock *sk = (struct sock *)msk;
net/mptcp/pm_kernel.c
523
struct sock *ssk = mptcp_subflow_tcp_sock(subflow);
net/mptcp/pm_kernel.c
575
struct sock *sk = (struct sock *)msk;
net/mptcp/pm_kernel.c
609
struct sock *sk = (struct sock *)msk;
net/mptcp/pm_kernel.c
662
struct sock *sk = (struct sock *)msk;
net/mptcp/pm_kernel.c
852
static int mptcp_pm_nl_create_listen_socket(struct sock *sk,
net/mptcp/pm_kernel.c
858
struct sock *newsk, *ssk;
net/mptcp/pm_kernel.c
968
struct sock *sk = (struct sock *)msk;
net/mptcp/pm_netlink.c
294
sock_net((const struct sock *)msk),
net/mptcp/pm_netlink.c
298
static int mptcp_event_add_subflow(struct sk_buff *skb, const struct sock *ssk)
net/mptcp/pm_netlink.c
347
const struct sock *ssk)
net/mptcp/pm_netlink.c
349
const struct sock *sk = (const struct sock *)msk;
net/mptcp/pm_netlink.c
380
const struct sock *ssk)
net/mptcp/pm_netlink.c
387
const struct sock *ssk)
net/mptcp/pm_netlink.c
409
const struct sock *ssk)
net/mptcp/pm_netlink.c
436
struct net *net = sock_net((const struct sock *)msk);
net/mptcp/pm_netlink.c
465
void mptcp_event_addr_announced(const struct sock *ssk,
net/mptcp/pm_netlink.c
522
void mptcp_event_pm_listener(const struct sock *ssk,
net/mptcp/pm_netlink.c
573
const struct sock *ssk, gfp_t gfp)
net/mptcp/pm_netlink.c
575
struct net *net = sock_net((const struct sock *)msk);
net/mptcp/pm_userspace.c
101
struct sock *sk = (struct sock *)msk;
net/mptcp/pm_userspace.c
133
inet_sk((struct sock *)msk))->inet_sport;
net/mptcp/pm_userspace.c
18
struct sock *sk = (struct sock *)msk;
net/mptcp/pm_userspace.c
183
sock_put((struct sock *)msk);
net/mptcp/pm_userspace.c
196
struct sock *sk;
net/mptcp/pm_userspace.c
205
sk = (struct sock *)msk;
net/mptcp/pm_userspace.c
253
struct sock *sk = (struct sock *)msk;
net/mptcp/pm_userspace.c
306
struct sock *sk;
net/mptcp/pm_userspace.c
319
sk = (struct sock *)msk;
net/mptcp/pm_userspace.c
368
struct sock *sk;
net/mptcp/pm_userspace.c
378
sk = (struct sock *)msk;
net/mptcp/pm_userspace.c
435
static struct sock *mptcp_nl_find_ssk(struct mptcp_sock *msk,
net/mptcp/pm_userspace.c
446
struct sock *ssk;
net/mptcp/pm_userspace.c
48
struct sock *sk = (struct sock *)msk;
net/mptcp/pm_userspace.c
487
struct sock *sk, *ssk;
net/mptcp/pm_userspace.c
498
sk = (struct sock *)msk;
net/mptcp/pm_userspace.c
568
struct sock *sk;
net/mptcp/pm_userspace.c
578
sk = (struct sock *)msk;
net/mptcp/pm_userspace.c
636
struct sock *sk;
net/mptcp/pm_userspace.c
646
sk = (struct sock *)msk;
net/mptcp/pm_userspace.c
673
struct sock *sk;
net/mptcp/pm_userspace.c
679
sk = (struct sock *)msk;
net/mptcp/protocol.c
1008
bool mptcp_schedule_work(struct sock *sk)
net/mptcp/protocol.c
1056
static void dfrag_uncharge(struct sock *sk, int len)
net/mptcp/protocol.c
106
struct sock *sk = (struct sock *)msk;
net/mptcp/protocol.c
1062
static void dfrag_clear(struct sock *sk, struct mptcp_data_frag *dfrag)
net/mptcp/protocol.c
1072
static void __mptcp_clean_una(struct sock *sk)
net/mptcp/protocol.c
1131
static void __mptcp_clean_una_wakeup(struct sock *sk)
net/mptcp/protocol.c
1139
static void mptcp_clean_una_wakeup(struct sock *sk)
net/mptcp/protocol.c
1146
static void mptcp_enter_memory_pressure(struct sock *sk)
net/mptcp/protocol.c
1153
struct sock *ssk = mptcp_subflow_tcp_sock(subflow);
net/mptcp/protocol.c
1168
static bool mptcp_page_frag_refill(struct sock *sk, struct page_frag *pfrag)
net/mptcp/protocol.c
1207
struct sock *ssk, u64 data_seq,
net/mptcp/protocol.c
1237
static struct sk_buff *__mptcp_do_alloc_tx_skb(struct sock *sk, gfp_t gfp)
net/mptcp/protocol.c
1256
static struct sk_buff *__mptcp_alloc_tx_skb(struct sock *sk, struct sock *ssk, gfp_t gfp)
net/mptcp/protocol.c
1273
static struct sk_buff *mptcp_alloc_tx_skb(struct sock *sk, struct sock *ssk, bool data_lock_held)
net/mptcp/protocol.c
1293
struct sock *ssk,
net/mptcp/protocol.c
1313
static int mptcp_sendmsg_frag(struct sock *sk, struct sock *ssk,
net/mptcp/protocol.c
133
struct sock *__mptcp_nmpc_sk(struct mptcp_sock *msk)
net/mptcp/protocol.c
135
struct sock *sk = (struct sock *)msk;
net/mptcp/protocol.c
1471
struct sock *ssk;
net/mptcp/protocol.c
150
static void mptcp_drop(struct sock *sk, struct sk_buff *skb)
net/mptcp/protocol.c
1505
struct sock *mptcp_subflow_get_send(struct mptcp_sock *msk)
net/mptcp/protocol.c
1509
struct sock *sk = (struct sock *)msk;
net/mptcp/protocol.c
1512
struct sock *ssk;
net/mptcp/protocol.c
156
static bool __mptcp_try_coalesce(struct sock *sk, struct sk_buff *to,
net/mptcp/protocol.c
1581
static void mptcp_push_release(struct sock *ssk, struct mptcp_sendmsg_info *info)
net/mptcp/protocol.c
1614
void mptcp_check_and_set_pending(struct sock *sk)
net/mptcp/protocol.c
1623
static int __subflow_push_pending(struct sock *sk, struct sock *ssk,
net/mptcp/protocol.c
1667
void __mptcp_push_pending(struct sock *sk, unsigned int flags)
net/mptcp/protocol.c
1669
struct sock *prev_ssk = NULL, *ssk = NULL;
net/mptcp/protocol.c
1735
static void __mptcp_subflow_push_pending(struct sock *sk, struct sock *ssk, bool first)
net/mptcp/protocol.c
1742
struct sock *xmit_ssk;
net/mptcp/protocol.c
175
static bool mptcp_try_coalesce(struct sock *sk, struct sk_buff *to,
net/mptcp/protocol.c
1802
static int mptcp_disconnect(struct sock *sk, int flags);
net/mptcp/protocol.c
1804
static int mptcp_sendmsg_fastopen(struct sock *sk, struct msghdr *msg,
net/mptcp/protocol.c
1809
struct sock *ssk;
net/mptcp/protocol.c
1862
static int do_copy_data_nocache(struct sock *sk, int copy,
net/mptcp/protocol.c
1879
static u32 mptcp_send_limit(const struct sock *sk)
net/mptcp/protocol.c
1906
struct sock *ssk = mptcp_subflow_tcp_sock(subflow);
net/mptcp/protocol.c
1912
static int mptcp_sendmsg(struct sock *sk, struct msghdr *msg, size_t len)
net/mptcp/protocol.c
201
return mptcp_try_coalesce((struct sock *)msk, to, from);
net/mptcp/protocol.c
2054
static void mptcp_eat_recv_skb(struct sock *sk, struct sk_buff *skb)
net/mptcp/protocol.c
2065
static int __mptcp_recvmsg_mskq(struct sock *sk, struct msghdr *msg,
net/mptcp/protocol.c
208
static bool mptcp_rcvbuf_grow(struct sock *sk, u32 newval)
net/mptcp/protocol.c
2133
static void mptcp_rcv_space_init(struct mptcp_sock *msk, const struct sock *ssk)
net/mptcp/protocol.c
2155
struct sock *sk = (struct sock *)msk;
net/mptcp/protocol.c
2189
struct sock *ssk;
net/mptcp/protocol.c
2206
static bool __mptcp_move_skbs(struct sock *sk, struct list_head *skbs, u32 *delta)
net/mptcp/protocol.c
2231
mptcp_check_data_fin((struct sock *)msk);
net/mptcp/protocol.c
2235
static bool mptcp_can_spool_backlog(struct sock *sk, struct list_head *skbs)
net/mptcp/protocol.c
2255
static void mptcp_backlog_spooled(struct sock *sk, u32 moved,
net/mptcp/protocol.c
2264
static bool mptcp_move_skbs(struct sock *sk)
net/mptcp/protocol.c
2286
static unsigned int mptcp_inq_hint(const struct sock *sk)
net/mptcp/protocol.c
2307
static int mptcp_recvmsg(struct sock *sk, struct msghdr *msg, size_t len,
net/mptcp/protocol.c
2421
struct sock *sk = timer_container_of(sk, t, mptcp_retransmit_timer);
net/mptcp/protocol.c
2441
struct sock *sk = &icsk->icsk_inet.sk;
net/mptcp/protocol.c
245
struct sock *sk = (struct sock *)msk;
net/mptcp/protocol.c
2452
struct sock *mptcp_subflow_get_retrans(struct mptcp_sock *msk)
net/mptcp/protocol.c
2454
struct sock *backup = NULL, *pick = NULL;
net/mptcp/protocol.c
2459
struct sock *ssk = mptcp_subflow_tcp_sock(subflow);
net/mptcp/protocol.c
2488
bool __mptcp_retransmit_pending_data(struct sock *sk)
net/mptcp/protocol.c
2532
static void __mptcp_subflow_disconnect(struct sock *ssk,
net/mptcp/protocol.c
2548
static void mptcp_cleanup_ssk_backlog(struct sock *sk, struct sock *ssk)
net/mptcp/protocol.c
2572
static void __mptcp_close_ssk(struct sock *sk, struct sock *ssk,
net/mptcp/protocol.c
2678
void mptcp_close_ssk(struct sock *sk, struct sock *ssk,
net/mptcp/protocol.c
2698
static unsigned int mptcp_sync_mss(struct sock *sk, u32 pmtu)
net/mptcp/protocol.c
2703
static void __mptcp_close_subflow(struct sock *sk)
net/mptcp/protocol.c
2711
struct sock *ssk = mptcp_subflow_tcp_sock(subflow);
net/mptcp/protocol.c
2729
static bool mptcp_close_tout_expired(const struct sock *sk)
net/mptcp/protocol.c
2742
struct sock *sk = (struct sock *)msk;
net/mptcp/protocol.c
2750
struct sock *tcp_sk = mptcp_subflow_tcp_sock(subflow);
net/mptcp/protocol.c
2788
static void __mptcp_retrans(struct sock *sk)
net/mptcp/protocol.c
2794
struct sock *ssk;
net/mptcp/protocol.c
2902
struct sock *sk = (struct sock *)msk;
net/mptcp/protocol.c
2921
struct sock *ssk = msk->first;
net/mptcp/protocol.c
2935
static void mptcp_backlog_purge(struct sock *sk)
net/mptcp/protocol.c
2953
static void mptcp_do_fastclose(struct sock *sk)
net/mptcp/protocol.c
2967
struct sock *ssk = mptcp_subflow_tcp_sock(subflow);
net/mptcp/protocol.c
2992
struct sock *sk = (struct sock *)msk;
net/mptcp/protocol.c
3038
static void __mptcp_init_sock(struct sock *sk)
net/mptcp/protocol.c
3073
static void mptcp_ca_reset(struct sock *sk)
net/mptcp/protocol.c
3086
static int mptcp_init_sock(struct sock *sk)
net/mptcp/protocol.c
31
static unsigned int mptcp_inq_hint(const struct sock *sk);
net/mptcp/protocol.c
3121
static void __mptcp_clear_xmit(struct sock *sk)
net/mptcp/protocol.c
3131
void mptcp_cancel_work(struct sock *sk)
net/mptcp/protocol.c
3139
void mptcp_subflow_shutdown(struct sock *sk, struct sock *ssk, int how)
net/mptcp/protocol.c
3174
void mptcp_set_state(struct sock *sk, int state)
net/mptcp/protocol.c
3214
static int mptcp_close_state(struct sock *sk)
net/mptcp/protocol.c
3224
static void mptcp_check_send_data_fin(struct sock *sk)
net/mptcp/protocol.c
3243
struct sock *tcp_sk = mptcp_subflow_tcp_sock(subflow);
net/mptcp/protocol.c
3249
static void __mptcp_wr_shutdown(struct sock *sk)
net/mptcp/protocol.c
3264
static void __mptcp_destroy_sock(struct sock *sk)
net/mptcp/protocol.c
3285
void __mptcp_unaccepted_force_close(struct sock *sk)
net/mptcp/protocol.c
3292
static __poll_t mptcp_check_readable(struct sock *sk)
net/mptcp/protocol.c
3297
static void mptcp_check_listen_stop(struct sock *sk)
net/mptcp/protocol.c
3299
struct sock *ssk;
net/mptcp/protocol.c
3317
bool __mptcp_close(struct sock *sk, long timeout)
net/mptcp/protocol.c
3348
struct sock *ssk = mptcp_subflow_tcp_sock(subflow);
net/mptcp/protocol.c
3388
static void mptcp_close(struct sock *sk, long timeout)
net/mptcp/protocol.c
3402
static void mptcp_copy_inaddrs(struct sock *msk, const struct sock *ssk)
net/mptcp/protocol.c
3428
struct sock *sk = (struct sock *)msk;
net/mptcp/protocol.c
3447
static int mptcp_disconnect(struct sock *sk, int flags)
net/mptcp/protocol.c
3511
static struct ipv6_pinfo *mptcp_inet6_sk(const struct sock *sk)
net/mptcp/protocol.c
3518
static void mptcp_copy_ip6_options(struct sock *newsk, const struct sock *sk)
net/mptcp/protocol.c
3538
static void mptcp_copy_ip_options(struct sock *newsk, const struct sock *sk)
net/mptcp/protocol.c
354
static void mptcp_init_skb(struct sock *ssk, struct sk_buff *skb, int offset,
net/mptcp/protocol.c
3558
struct sock *mptcp_sk_clone_init(const struct sock *sk,
net/mptcp/protocol.c
3560
struct sock *ssk,
net/mptcp/protocol.c
3564
struct sock *nsk = sk_clone_lock(sk, GFP_ATOMIC);
net/mptcp/protocol.c
3638
static void mptcp_destroy(struct sock *sk)
net/mptcp/protocol.c
3648
void __mptcp_data_acked(struct sock *sk)
net/mptcp/protocol.c
3656
void __mptcp_check_push(struct sock *sk, struct sock *ssk)
net/mptcp/protocol.c
3669
static void mptcp_release_cb(struct sock *sk)
net/mptcp/protocol.c
3735
static void schedule_3rdack_retransmission(struct sock *ssk)
net/mptcp/protocol.c
3757
void mptcp_subflow_process_delegated(struct sock *ssk, long status)
net/mptcp/protocol.c
376
static bool __mptcp_move_skb(struct sock *sk, struct sk_buff *skb)
net/mptcp/protocol.c
3760
struct sock *sk = subflow->conn;
net/mptcp/protocol.c
3782
static int mptcp_hash(struct sock *sk)
net/mptcp/protocol.c
3791
static void mptcp_unhash(struct sock *sk)
net/mptcp/protocol.c
3796
static int mptcp_get_port(struct sock *sk, unsigned short snum)
net/mptcp/protocol.c
3807
void mptcp_finish_connect(struct sock *ssk)
net/mptcp/protocol.c
3811
struct sock *sk;
net/mptcp/protocol.c
3831
void mptcp_sock_graft(struct sock *sk, struct socket *parent)
net/mptcp/protocol.c
3842
static void mptcp_sock_check_graft(struct sock *sk, struct sock *ssk)
net/mptcp/protocol.c
3844
struct socket *sock;
net/mptcp/protocol.c
3847
sock = sk->sk_socket;
net/mptcp/protocol.c
3849
if (sock) {
net/mptcp/protocol.c
3850
mptcp_sock_graft(ssk, sock);
net/mptcp/protocol.c
3856
bool mptcp_finish_join(struct sock *ssk)
net/mptcp/protocol.c
3860
struct sock *parent = (void *)msk;
net/mptcp/protocol.c
3924
static void mptcp_shutdown(struct sock *sk, int how)
net/mptcp/protocol.c
3934
const struct sock *sk = (void *)msk;
net/mptcp/protocol.c
3961
static int mptcp_ioctl(struct sock *sk, int cmd, int *karg)
net/mptcp/protocol.c
3994
static int mptcp_connect(struct sock *sk, struct sockaddr_unsized *uaddr,
net/mptcp/protocol.c
4000
struct sock *ssk;
net/mptcp/protocol.c
4105
static int mptcp_bind(struct socket *sock, struct sockaddr_unsized *uaddr, int addr_len)
net/mptcp/protocol.c
4107
struct mptcp_sock *msk = mptcp_sk(sock->sk);
net/mptcp/protocol.c
4108
struct sock *ssk, *sk = sock->sk;
net/mptcp/protocol.c
4132
static int mptcp_listen(struct socket *sock, int backlog)
net/mptcp/protocol.c
4134
struct mptcp_sock *msk = mptcp_sk(sock->sk);
net/mptcp/protocol.c
4135
struct sock *sk = sock->sk;
net/mptcp/protocol.c
4136
struct sock *ssk;
net/mptcp/protocol.c
4144
if (sock->state != SS_UNCONNECTED || sock->type != SOCK_STREAM)
net/mptcp/protocol.c
4172
static void mptcp_graft_subflows(struct sock *sk)
net/mptcp/protocol.c
4194
struct sock *ssk = mptcp_subflow_tcp_sock(subflow);
net/mptcp/protocol.c
422
static void mptcp_stop_rtx_timer(struct sock *sk)
net/mptcp/protocol.c
4235
static int mptcp_stream_accept(struct socket *sock, struct socket *newsock,
net/mptcp/protocol.c
4238
struct mptcp_sock *msk = mptcp_sk(sock->sk);
net/mptcp/protocol.c
4239
struct sock *ssk, *newsk;
net/mptcp/protocol.c
4258
struct sock *new_mptcp_sock;
net/mptcp/protocol.c
4276
__inet_accept(sock, newsock, newsk);
net/mptcp/protocol.c
428
static void mptcp_close_wake_up(struct sock *sk)
net/mptcp/protocol.c
4299
__inet_accept(sock, newsock, newsk);
net/mptcp/protocol.c
4316
struct sock *sk = (struct sock *)msk;
net/mptcp/protocol.c
4329
static __poll_t mptcp_poll(struct file *file, struct socket *sock,
net/mptcp/protocol.c
4332
struct sock *sk = sock->sk;
net/mptcp/protocol.c
4339
sock_poll_wait(file, sock, wait);
net/mptcp/protocol.c
4344
struct sock *ssk = READ_ONCE(msk->first);
net/mptcp/protocol.c
4378
static struct sk_buff *mptcp_recv_skb(struct sock *sk, u32 *off)
net/mptcp/protocol.c
4402
static int __mptcp_read_sock(struct sock *sk, read_descriptor_t *desc,
net/mptcp/protocol.c
4454
static int mptcp_read_sock(struct sock *sk, read_descriptor_t *desc,
net/mptcp/protocol.c
446
struct sock *ssk = mptcp_subflow_tcp_sock(subflow);
net/mptcp/protocol.c
4460
static int __mptcp_splice_read(struct sock *sk, struct tcp_splice_state *tss)
net/mptcp/protocol.c
4486
static ssize_t mptcp_splice_read(struct socket *sock, loff_t *ppos,
net/mptcp/protocol.c
4495
struct sock *sk = sock->sk;
net/mptcp/protocol.c
4510
timeo = sock_rcvtimeo(sk, sock->file->f_flags & O_NONBLOCK);
net/mptcp/protocol.c
456
static bool mptcp_pending_data_fin_ack(struct sock *sk)
net/mptcp/protocol.c
4613
struct sock *ssk = mptcp_subflow_tcp_sock(subflow);
net/mptcp/protocol.c
465
static void mptcp_check_data_fin_ack(struct sock *sk)
net/mptcp/protocol.c
489
static bool mptcp_pending_data_fin(struct sock *sk, u64 *seq)
net/mptcp/protocol.c
50
static void __mptcp_destroy_sock(struct sock *sk);
net/mptcp/protocol.c
509
static void mptcp_set_datafin_timeout(struct sock *sk)
net/mptcp/protocol.c
51
static void mptcp_check_send_data_fin(struct sock *sk);
net/mptcp/protocol.c
520
static void __mptcp_set_timeout(struct sock *sk, long tout)
net/mptcp/protocol.c
527
const struct sock *ssk = mptcp_subflow_tcp_sock(subflow);
net/mptcp/protocol.c
533
static void mptcp_set_timeout(struct sock *sk)
net/mptcp/protocol.c
543
static inline bool tcp_can_send_ack(const struct sock *ssk)
net/mptcp/protocol.c
549
void __mptcp_subflow_send_ack(struct sock *ssk)
net/mptcp/protocol.c
555
static void mptcp_subflow_send_ack(struct sock *ssk)
net/mptcp/protocol.c
572
static void mptcp_subflow_cleanup_rbuf(struct sock *ssk, int copied)
net/mptcp/protocol.c
582
static bool mptcp_subflow_could_cleanup(const struct sock *ssk, bool rx_empty)
net/mptcp/protocol.c
599
struct sock *sk = (struct sock *)msk;
net/mptcp/protocol.c
607
struct sock *ssk = mptcp_subflow_tcp_sock(subflow);
net/mptcp/protocol.c
614
static void mptcp_check_data_fin(struct sock *sk)
net/mptcp/protocol.c
64
static const struct proto_ops *mptcp_fallback_tcp_ops(const struct sock *sk)
net/mptcp/protocol.c
662
static void mptcp_dss_corruption(struct mptcp_sock *msk, struct sock *ssk)
net/mptcp/protocol.c
670
static void __mptcp_add_backlog(struct sock *sk,
net/mptcp/protocol.c
676
struct sock *ssk = skb->sk;
net/mptcp/protocol.c
713
struct sock *ssk, bool own_msk)
net/mptcp/protocol.c
716
struct sock *sk = (struct sock *)msk;
net/mptcp/protocol.c
78
struct net *net = sock_net((struct sock *)msk);
net/mptcp/protocol.c
789
struct sock *sk = (struct sock *)msk;
net/mptcp/protocol.c
832
static bool __mptcp_subflow_error_report(struct sock *sk, struct sock *ssk)
net/mptcp/protocol.c
863
void __mptcp_error_report(struct sock *sk)
net/mptcp/protocol.c
876
static bool move_skbs_to_msk(struct mptcp_sock *msk, struct sock *ssk)
net/mptcp/protocol.c
878
struct sock *sk = (struct sock *)msk;
net/mptcp/protocol.c
922
void mptcp_data_ready(struct sock *sk, struct sock *ssk)
net/mptcp/protocol.c
946
static void mptcp_subflow_joined(struct mptcp_sock *msk, struct sock *ssk)
net/mptcp/protocol.c
953
static bool __mptcp_finish_join(struct mptcp_sock *msk, struct sock *ssk)
net/mptcp/protocol.c
955
struct sock *sk = (struct sock *)msk;
net/mptcp/protocol.c
975
static void __mptcp_flush_join_list(struct sock *sk, struct list_head *join_list)
net/mptcp/protocol.c
981
struct sock *ssk = mptcp_subflow_tcp_sock(subflow);
net/mptcp/protocol.c
991
static bool mptcp_rtx_timer_pending(struct sock *sk)
net/mptcp/protocol.c
996
static void mptcp_reset_rtx_timer(struct sock *sk)
net/mptcp/protocol.h
1005
static inline bool __mptcp_stream_is_writeable(const struct sock *sk, int wake)
net/mptcp/protocol.h
1011
static inline void mptcp_write_space(struct sock *sk)
net/mptcp/protocol.h
1019
static inline void __mptcp_sync_sndbuf(struct sock *sk)
net/mptcp/protocol.h
1043
static inline void __mptcp_propagate_sndbuf(struct sock *sk, struct sock *ssk)
net/mptcp/protocol.h
1056
static inline void mptcp_propagate_sndbuf(struct sock *sk, struct sock *ssk)
net/mptcp/protocol.h
1078
int mptcp_token_new_connect(struct sock *ssk);
net/mptcp/protocol.h
1101
bool mptcp_pm_addr_families_match(const struct sock *sk,
net/mptcp/protocol.h
1104
void mptcp_pm_subflow_chk_stale(const struct mptcp_sock *msk, struct sock *ssk);
net/mptcp/protocol.h
1105
void mptcp_pm_new_connection(struct mptcp_sock *msk, const struct sock *ssk, int server_side);
net/mptcp/protocol.h
1106
void mptcp_pm_fully_established(struct mptcp_sock *msk, const struct sock *ssk);
net/mptcp/protocol.h
1113
void mptcp_pm_add_addr_received(const struct sock *ssk,
net/mptcp/protocol.h
1126
void mptcp_pm_mp_prio_received(struct sock *sk, u8 bkup);
net/mptcp/protocol.h
1127
void mptcp_pm_mp_fail_received(struct sock *sk, u64 fail_seq);
net/mptcp/protocol.h
1136
bool mptcp_pm_announced_has_ssk(struct mptcp_sock *msk, const struct sock *ssk);
net/mptcp/protocol.h
1162
const struct sock *ssk, gfp_t gfp);
net/mptcp/protocol.h
1163
void mptcp_event_addr_announced(const struct sock *ssk, const struct mptcp_addr_info *info);
net/mptcp/protocol.h
1165
void mptcp_event_pm_listener(const struct sock *ssk,
net/mptcp/protocol.h
1271
void mptcp_sockopt_sync_locked(struct mptcp_sock *msk, struct sock *ssk);
net/mptcp/protocol.h
1285
static inline bool mptcp_check_fallback(const struct sock *sk)
net/mptcp/protocol.h
1295
struct sock *ssk = READ_ONCE(msk->first);
net/mptcp/protocol.h
1304
static inline bool mptcp_try_fallback(struct sock *ssk, int fb_mib)
net/mptcp/protocol.h
1307
struct sock *sk = subflow->conn;
net/mptcp/protocol.h
1351
static inline bool subflow_simultaneous_connect(struct sock *sk)
net/mptcp/protocol.h
345
struct sock *first; /* The mptcp ops can safely dereference, using suitable
net/mptcp/protocol.h
394
sock_owned_by_me((const struct sock *)msk);
net/mptcp/protocol.h
415
static inline int mptcp_win_from_space(const struct sock *sk, int space)
net/mptcp/protocol.h
420
static inline int mptcp_space_from_win(const struct sock *sk, int win)
net/mptcp/protocol.h
425
static inline int __mptcp_space(const struct sock *sk)
net/mptcp/protocol.h
432
static inline struct mptcp_data_frag *mptcp_send_head(const struct sock *sk)
net/mptcp/protocol.h
460
static inline struct mptcp_data_frag *mptcp_send_next(struct sock *sk)
net/mptcp/protocol.h
470
static inline struct mptcp_data_frag *mptcp_pending_tail(const struct sock *sk)
net/mptcp/protocol.h
483
static inline struct mptcp_data_frag *mptcp_rtx_head(struct sock *sk)
net/mptcp/protocol.h
622
struct sock *tcp_sock; /* tcp sk backpointer */
net/mptcp/protocol.h
623
struct sock *conn; /* parent mptcp_sock */
net/mptcp/protocol.h
625
void (*tcp_state_change)(struct sock *sk);
net/mptcp/protocol.h
626
void (*tcp_error_report)(struct sock *sk);
net/mptcp/protocol.h
632
mptcp_subflow_ctx(const struct sock *sk)
net/mptcp/protocol.h
640
static inline struct sock *
net/mptcp/protocol.h
682
mptcp_send_active_reset_reason(struct sock *sk)
net/mptcp/protocol.h
695
static inline void mptcp_borrow_fwdmem(struct sock *sk, struct sk_buff *skb)
net/mptcp/protocol.h
697
struct sock *ssk = skb->sk;
net/mptcp/protocol.h
741
void mptcp_subflow_process_delegated(struct sock *ssk, long actions);
net/mptcp/protocol.h
789
void __mptcp_inherit_memcg(struct sock *sk, struct sock *ssk, gfp_t gfp);
net/mptcp/protocol.h
790
void __mptcp_inherit_cgrp_data(struct sock *sk, struct sock *ssk);
net/mptcp/protocol.h
797
unsigned int mptcp_close_timeout(const struct sock *sk);
net/mptcp/protocol.h
803
void mptcp_active_disable(struct sock *sk);
net/mptcp/protocol.h
804
bool mptcp_active_should_disable(struct sock *ssk);
net/mptcp/protocol.h
805
void mptcp_active_enable(struct sock *sk);
net/mptcp/protocol.h
811
bool __mptcp_retransmit_pending_data(struct sock *sk);
net/mptcp/protocol.h
812
void mptcp_check_and_set_pending(struct sock *sk);
net/mptcp/protocol.h
813
void __mptcp_push_pending(struct sock *sk, unsigned int flags);
net/mptcp/protocol.h
814
bool mptcp_subflow_data_available(struct sock *sk);
net/mptcp/protocol.h
816
void mptcp_subflow_shutdown(struct sock *sk, struct sock *ssk, int how);
net/mptcp/protocol.h
817
void mptcp_close_ssk(struct sock *sk, struct sock *ssk,
net/mptcp/protocol.h
819
void __mptcp_subflow_send_ack(struct sock *ssk);
net/mptcp/protocol.h
820
void mptcp_subflow_reset(struct sock *ssk);
net/mptcp/protocol.h
821
void mptcp_subflow_queue_clean(struct sock *sk, struct sock *ssk);
net/mptcp/protocol.h
822
void mptcp_sock_graft(struct sock *sk, struct socket *parent);
net/mptcp/protocol.h
823
struct sock *__mptcp_nmpc_sk(struct mptcp_sock *msk);
net/mptcp/protocol.h
824
bool __mptcp_close(struct sock *sk, long timeout);
net/mptcp/protocol.h
825
void mptcp_cancel_work(struct sock *sk);
net/mptcp/protocol.h
826
void __mptcp_unaccepted_force_close(struct sock *sk);
net/mptcp/protocol.h
827
void mptcp_set_state(struct sock *sk, int state);
net/mptcp/protocol.h
837
int __mptcp_subflow_connect(struct sock *sk, const struct mptcp_pm_local *local,
net/mptcp/protocol.h
839
int mptcp_subflow_create_socket(struct sock *sk, unsigned short family,
net/mptcp/protocol.h
854
struct sock *mptcp_subflow_get_send(struct mptcp_sock *msk);
net/mptcp/protocol.h
855
struct sock *mptcp_subflow_get_retrans(struct mptcp_sock *msk);
net/mptcp/protocol.h
864
static inline bool mptcp_epollin_ready(const struct sock *sk)
net/mptcp/protocol.h
878
int mptcp_set_rcvlowat(struct sock *sk, int val);
net/mptcp/protocol.h
880
static inline bool __tcp_can_send(const struct sock *ssk)
net/mptcp/protocol.h
899
void mptcp_subflow_drop_ctx(struct sock *ssk);
net/mptcp/protocol.h
901
static inline void mptcp_subflow_tcp_fallback(struct sock *sk,
net/mptcp/protocol.h
918
struct sock *mptcp_sk_clone_init(const struct sock *sk,
net/mptcp/protocol.h
920
struct sock *ssk,
net/mptcp/protocol.h
925
void mptcp_finish_connect(struct sock *sk);
net/mptcp/protocol.h
926
void __mptcp_sync_state(struct sock *sk, int state);
net/mptcp/protocol.h
929
static inline void mptcp_stop_tout_timer(struct sock *sk)
net/mptcp/protocol.h
938
static inline void mptcp_set_close_tout(struct sock *sk, unsigned long tout)
net/mptcp/protocol.h
944
static inline void mptcp_start_tout_timer(struct sock *sk)
net/mptcp/protocol.h
950
static inline bool mptcp_is_fully_established(struct sock *sk)
net/mptcp/protocol.h
961
void mptcp_data_ready(struct sock *sk, struct sock *ssk);
net/mptcp/protocol.h
962
bool mptcp_finish_join(struct sock *sk);
net/mptcp/protocol.h
963
bool mptcp_schedule_work(struct sock *sk);
net/mptcp/protocol.h
964
int mptcp_setsockopt(struct sock *sk, int level, int optname,
net/mptcp/protocol.h
966
int mptcp_getsockopt(struct sock *sk, int level, int optname,
net/mptcp/protocol.h
977
void __mptcp_check_push(struct sock *sk, struct sock *ssk);
net/mptcp/protocol.h
978
void __mptcp_data_acked(struct sock *sk);
net/mptcp/protocol.h
979
void __mptcp_error_report(struct sock *sk);
net/mptcp/protocol.h
987
static inline u32 mptcp_notsent_lowat(const struct sock *sk)
net/mptcp/protocol.h
996
static inline bool mptcp_stream_memory_free(const struct sock *sk, int wake)
net/mptcp/sched.c
21
struct sock *ssk;
net/mptcp/sched.c
33
struct sock *ssk;
net/mptcp/sockopt.c
1122
struct sock *sk = (struct sock *)msk;
net/mptcp/sockopt.c
1141
struct sock *ssk = mptcp_subflow_tcp_sock(subflow);
net/mptcp/sockopt.c
1171
static void mptcp_get_sub_addrs(const struct sock *sk, struct mptcp_subflow_addrs *a)
net/mptcp/sockopt.c
1214
struct sock *sk = (struct sock *)msk;
net/mptcp/sockopt.c
1233
struct sock *ssk = mptcp_subflow_tcp_sock(subflow);
net/mptcp/sockopt.c
1313
struct sock *sk = (struct sock *)msk;
net/mptcp/sockopt.c
132
struct sock *sk = (struct sock *)msk;
net/mptcp/sockopt.c
1341
struct sock *ssk = mptcp_subflow_tcp_sock(subflow);
net/mptcp/sockopt.c
1414
struct sock *sk = (void *)msk;
net/mptcp/sockopt.c
146
struct sock *sk = (struct sock *)msk;
net/mptcp/sockopt.c
1460
struct sock *sk = (void *)msk;
net/mptcp/sockopt.c
1485
struct sock *sk = (void *)msk;
net/mptcp/sockopt.c
1519
int mptcp_getsockopt(struct sock *sk, int level, int optname,
net/mptcp/sockopt.c
1523
struct sock *ssk;
net/mptcp/sockopt.c
1550
static void sync_socket_options(struct mptcp_sock *msk, struct sock *ssk)
net/mptcp/sockopt.c
1553
struct sock *sk = (struct sock *)msk;
net/mptcp/sockopt.c
157
struct sock *sk = (struct sock *)msk;
net/mptcp/sockopt.c
1606
void mptcp_sockopt_sync_locked(struct mptcp_sock *msk, struct sock *ssk)
net/mptcp/sockopt.c
1630
int mptcp_set_rcvlowat(struct sock *sk, int val)
net/mptcp/sockopt.c
1660
struct sock *ssk = mptcp_subflow_tcp_sock(subflow);
net/mptcp/sockopt.c
167
struct sock *ssk = mptcp_subflow_tcp_sock(subflow);
net/mptcp/sockopt.c
20
static struct sock *__mptcp_tcp_fallback(struct mptcp_sock *msk)
net/mptcp/sockopt.c
217
struct sock *sk = (struct sock *)msk;
net/mptcp/sockopt.c
243
struct sock *ssk = mptcp_subflow_tcp_sock(subflow);
net/mptcp/sockopt.c
263
struct sock *sk = (struct sock *)msk;
net/mptcp/sockopt.c
282
struct sock *ssk = mptcp_subflow_tcp_sock(subflow);
net/mptcp/sockopt.c
30
static u32 sockopt_seq_reset(const struct sock *sk)
net/mptcp/sockopt.c
303
struct sock *sk = (struct sock *)msk;
net/mptcp/sockopt.c
304
struct sock *ssk;
net/mptcp/sockopt.c
400
struct sock *sk = (struct sock *)msk;
net/mptcp/sockopt.c
402
struct sock *ssk;
net/mptcp/sockopt.c
55
msk->setsockopt_seq = sockopt_seq_reset((struct sock *)msk) + seq;
net/mptcp/sockopt.c
596
struct sock *sk = (struct sock *)msk;
net/mptcp/sockopt.c
617
struct sock *ssk = mptcp_subflow_tcp_sock(subflow);
net/mptcp/sockopt.c
636
int (*set_val)(struct sock *, int),
net/mptcp/sockopt.c
643
struct sock *ssk = mptcp_subflow_tcp_sock(subflow);
net/mptcp/sockopt.c
663
struct sock *sk = (struct sock *)msk;
net/mptcp/sockopt.c
668
struct sock *ssk = mptcp_subflow_tcp_sock(subflow);
net/mptcp/sockopt.c
683
struct sock *sk = (struct sock *)msk;
net/mptcp/sockopt.c
688
struct sock *ssk = mptcp_subflow_tcp_sock(subflow);
net/mptcp/sockopt.c
70
static void __mptcp_subflow_set_rcvbuf(struct sock *ssk, int val)
net/mptcp/sockopt.c
702
struct sock *sk = (struct sock *)msk;
net/mptcp/sockopt.c
703
struct sock *ssk;
net/mptcp/sockopt.c
749
struct sock *sk = (struct sock *)msk;
net/mptcp/sockopt.c
761
struct sock *ssk = mptcp_subflow_tcp_sock(subflow);
net/mptcp/sockopt.c
79
struct sock *sk = (struct sock *)msk;
net/mptcp/sockopt.c
792
struct sock *sk = (struct sock *)msk;
net/mptcp/sockopt.c
793
struct sock *ssk;
net/mptcp/sockopt.c
819
struct sock *ssk = mptcp_subflow_tcp_sock(subflow);
net/mptcp/sockopt.c
836
struct sock *sk = (void *)msk;
net/mptcp/sockopt.c
85
struct sock *ssk = mptcp_subflow_tcp_sock(subflow);
net/mptcp/sockopt.c
907
int mptcp_setsockopt(struct sock *sk, int level, int optname,
net/mptcp/sockopt.c
911
struct sock *ssk;
net/mptcp/sockopt.c
948
struct sock *sk = (struct sock *)msk;
net/mptcp/sockopt.c
949
struct sock *ssk;
net/mptcp/sockopt.c
973
struct sock *sk = (struct sock *)msk;
net/mptcp/subflow.c
1009
static bool validate_mapping(struct sock *ssk, struct sk_buff *skb)
net/mptcp/subflow.c
1030
static enum mapping_status validate_data_csum(struct sock *ssk, struct sk_buff *skb,
net/mptcp/subflow.c
108
static void subflow_init_req(struct request_sock *req, const struct sock *sk_listener)
net/mptcp/subflow.c
1109
static enum mapping_status get_mapping_status(struct sock *ssk,
net/mptcp/subflow.c
1176
mptcp_schedule_work((struct sock *)msk);
net/mptcp/subflow.c
120
static bool subflow_use_different_sport(struct mptcp_sock *msk, const struct sock *sk)
net/mptcp/subflow.c
122
return inet_sk(sk)->inet_sport != inet_sk((struct sock *)msk)->inet_sport;
net/mptcp/subflow.c
1256
static void mptcp_subflow_discard_data(struct sock *ssk, struct sk_buff *skb,
net/mptcp/subflow.c
1283
static bool subflow_is_done(const struct sock *sk)
net/mptcp/subflow.c
1289
static void subflow_sched_work_if_closed(struct mptcp_sock *msk, struct sock *ssk)
net/mptcp/subflow.c
1292
struct sock *sk = (struct sock *)msk;
net/mptcp/subflow.c
1315
static bool mptcp_subflow_fail(struct mptcp_sock *msk, struct sock *ssk)
net/mptcp/subflow.c
1336
if (sock_flag((struct sock *)msk, SOCK_DEAD))
net/mptcp/subflow.c
1352
static bool subflow_check_data_avail(struct sock *ssk)
net/mptcp/subflow.c
1451
bool mptcp_subflow_data_available(struct sock *sk)
net/mptcp/subflow.c
1478
void mptcp_space(const struct sock *ssk, int *space, int *full_space)
net/mptcp/subflow.c
148
const struct sock *sk_listener,
net/mptcp/subflow.c
1481
const struct sock *sk = subflow->conn;
net/mptcp/subflow.c
1487
static void subflow_error_report(struct sock *ssk)
net/mptcp/subflow.c
1489
struct sock *sk = mptcp_subflow_ctx(ssk)->conn;
net/mptcp/subflow.c
1506
static void subflow_data_ready(struct sock *sk)
net/mptcp/subflow.c
1510
struct sock *parent = subflow->conn;
net/mptcp/subflow.c
1544
static void subflow_write_space(struct sock *ssk)
net/mptcp/subflow.c
1546
struct sock *sk = mptcp_subflow_ctx(ssk)->conn;
net/mptcp/subflow.c
1553
subflow_default_af_ops(struct sock *sk)
net/mptcp/subflow.c
1563
void mptcpv6_handle_mapped(struct sock *sk, bool mapped)
net/mptcp/subflow.c
1613
int __mptcp_subflow_connect(struct sock *sk, const struct mptcp_pm_local *local,
net/mptcp/subflow.c
1623
struct sock *ssk;
net/mptcp/subflow.c
1723
void __mptcp_inherit_memcg(struct sock *sk, struct sock *ssk, gfp_t gfp)
net/mptcp/subflow.c
1733
void __mptcp_inherit_cgrp_data(struct sock *sk, struct sock *ssk)
net/mptcp/subflow.c
1749
static void mptcp_attach_cgroup(struct sock *parent, struct sock *child)
net/mptcp/subflow.c
1756
static void mptcp_subflow_ops_override(struct sock *ssk)
net/mptcp/subflow.c
1766
static void mptcp_subflow_ops_undo_override(struct sock *ssk)
net/mptcp/subflow.c
1776
int mptcp_subflow_create_socket(struct sock *sk, unsigned short family,
net/mptcp/subflow.c
1841
static struct mptcp_subflow_context *subflow_create_ctx(struct sock *sk,
net/mptcp/subflow.c
1863
static void __subflow_state_change(struct sock *sk)
net/mptcp/subflow.c
1874
static void subflow_state_change(struct sock *sk)
net/mptcp/subflow.c
1877
struct sock *parent = subflow->conn;
net/mptcp/subflow.c
1893
void mptcp_subflow_queue_clean(struct sock *listener_sk, struct sock *listener_ssk)
net/mptcp/subflow.c
1898
struct sock *sk, *ssk;
net/mptcp/subflow.c
1964
static int subflow_ulp_init(struct sock *sk)
net/mptcp/subflow.c
2004
static void subflow_ulp_release(struct sock *ssk)
net/mptcp/subflow.c
2008
struct sock *sk;
net/mptcp/subflow.c
2036
struct sock *newsk,
net/mptcp/subflow.c
2091
static void tcp_release_cb_override(struct sock *ssk)
net/mptcp/subflow.c
2107
static int tcp_abort_override(struct sock *ssk, int err)
net/mptcp/subflow.c
237
ntohs(inet_sk((struct sock *)subflow_req->msk)->inet_sport));
net/mptcp/subflow.c
266
const struct sock *sk_listener,
net/mptcp/subflow.c
30
static void mptcp_subflow_ops_undo_override(struct sock *ssk);
net/mptcp/subflow.c
316
static struct dst_entry *subflow_v4_route_req(const struct sock *sk,
net/mptcp/subflow.c
343
static void subflow_prep_synack(const struct sock *sk, struct request_sock *req,
net/mptcp/subflow.c
358
static int subflow_v4_send_synack(const struct sock *sk, struct dst_entry *dst,
net/mptcp/subflow.c
372
static int subflow_v6_send_synack(const struct sock *sk, struct dst_entry *dst,
net/mptcp/subflow.c
385
static struct dst_entry *subflow_v6_route_req(const struct sock *sk,
net/mptcp/subflow.c
430
void mptcp_subflow_reset(struct sock *ssk)
net/mptcp/subflow.c
433
struct sock *sk = subflow->conn;
net/mptcp/subflow.c
45
sock_put((struct sock *)subflow_req->msk);
net/mptcp/subflow.c
452
static bool subflow_use_different_dport(struct mptcp_sock *msk, const struct sock *sk)
net/mptcp/subflow.c
454
return inet_sk(sk)->inet_dport != inet_sk((struct sock *)msk)->inet_dport;
net/mptcp/subflow.c
457
void __mptcp_sync_state(struct sock *sk, int state)
net/mptcp/subflow.c
461
struct sock *ssk = msk->first;
net/mptcp/subflow.c
501
static void mptcp_propagate_state(struct sock *sk, struct sock *ssk,
net/mptcp/subflow.c
526
static void subflow_finish_connect(struct sock *sk, const struct sk_buff *skb)
net/mptcp/subflow.c
530
struct sock *parent = subflow->conn;
net/mptcp/subflow.c
630
static int subflow_chk_local_id(struct sock *sk)
net/mptcp/subflow.c
649
static int subflow_rebuild_header(struct sock *sk)
net/mptcp/subflow.c
660
static int subflow_v6_rebuild_header(struct sock *sk)
net/mptcp/subflow.c
674
static int subflow_v4_conn_request(struct sock *sk, struct sk_buff *skb)
net/mptcp/subflow.c
705
static int subflow_v6_conn_request(struct sock *sk, struct sk_buff *skb)
net/mptcp/subflow.c
738
struct sock *sk_listener,
net/mptcp/subflow.c
767
static void subflow_ulp_fallback(struct sock *sk,
net/mptcp/subflow.c
780
void mptcp_subflow_drop_ctx(struct sock *ssk)
net/mptcp/subflow.c
806
static struct sock *subflow_syn_recv_sock(const struct sock *sk,
net/mptcp/subflow.c
812
void (*opt_child_init)(struct sock *newsk,
net/mptcp/subflow.c
813
const struct sock *sk))
net/mptcp/subflow.c
821
struct sock *child;
net/mptcp/subflow.c
923
ctx->conn = (struct sock *)owner;
net/mptcp/subflow.c
928
ntohs(inet_sk((struct sock *)owner)->inet_sport));
net/mptcp/subflow.c
99
sock_put((struct sock *)msk);
net/mptcp/subflow.c
994
static bool skb_is_fully_mapped(struct sock *ssk, struct sk_buff *skb)
net/mptcp/token.c
151
int mptcp_token_new_connect(struct sock *ssk)
net/mptcp/token.c
156
struct sock *sk = subflow->conn;
net/mptcp/token.c
176
__sk_nulls_add_node_rcu((struct sock *)msk, &bucket->msk_chain);
net/mptcp/token.c
195
struct sock *sk = (struct sock *)msk;
net/mptcp/token.c
206
__sk_nulls_add_node_rcu((struct sock *)msk, &bucket->msk_chain);
net/mptcp/token.c
215
struct sock *sk;
net/mptcp/token.c
251
struct sock *sk;
net/mptcp/token.c
308
struct sock *sk;
net/mptcp/token.c
379
struct sock *sk = (struct sock *)msk;
net/mptcp/token.c
383
if (sk_unhashed((struct sock *)msk))
net/mptcp/token.c
391
__sk_nulls_del_node_init_rcu((struct sock *)pos);
net/mptcp/token.c
71
struct sock *sk;
net/mptcp/token_test.c
118
struct sock *sk;
net/mptcp/token_test.c
120
sk = (struct sock *)msk;
net/mptcp/token_test.c
14
sock_net_set((struct sock *)req, &init_net);
net/mptcp/token_test.c
55
struct sock *sk;
net/mptcp/token_test.c
59
refcount_set(&((struct sock *)msk)->sk_refcnt, 1);
net/mptcp/token_test.c
60
sock_net_set((struct sock *)msk, &init_net);
net/mptcp/token_test.c
62
sk = (struct sock *)msk;
net/mptcp/token_test.c
77
struct sock *sk;
net/mptcp/token_test.c
80
ctx->conn = (struct sock *)msk;
net/mptcp/token_test.c
81
sk = (struct sock *)msk;
net/mptcp/token_test.c
84
mptcp_token_new_connect((struct sock *)icsk));
net/netfilter/ipset/ip_set_core.c
1740
call_ad(struct net *net, struct sock *ctnl, struct sk_buff *skb,
net/netfilter/ipset/ip_set_core.c
1812
static int ip_set_ad(struct net *net, struct sock *ctnl,
net/netfilter/ipset/ip_set_core.c
2249
ip_set_sockfn_get(struct sock *sk, int optval, void __user *user, int *len)
net/netfilter/ipvs/ip_vs_core.c
1512
struct sock *sk;
net/netfilter/ipvs/ip_vs_core.c
2097
struct sock *sk;
net/netfilter/ipvs/ip_vs_ctl.c
3423
do_ip_vs_set_ctl(struct sock *sk, int cmd, sockptr_t ptr, unsigned int len)
net/netfilter/ipvs/ip_vs_ctl.c
3733
do_ip_vs_get_ctl(struct sock *sk, int cmd, void __user *user, int *len)
net/netfilter/ipvs/ip_vs_sync.c
1275
static void set_sock_size(struct sock *sk, int mode, int val)
net/netfilter/ipvs/ip_vs_sync.c
1297
static void set_mcast_loop(struct sock *sk, u_char loop)
net/netfilter/ipvs/ip_vs_sync.c
1312
static void set_mcast_ttl(struct sock *sk, u_char ttl)
net/netfilter/ipvs/ip_vs_sync.c
1331
static void set_mcast_pmtudisc(struct sock *sk, int val)
net/netfilter/ipvs/ip_vs_sync.c
1352
static int set_mcast_if(struct sock *sk, struct net_device *dev)
net/netfilter/ipvs/ip_vs_sync.c
1382
join_mcast_group(struct sock *sk, struct in_addr *addr, struct net_device *dev)
net/netfilter/ipvs/ip_vs_sync.c
1403
static int join_mcast_group6(struct sock *sk, struct in6_addr *addr,
net/netfilter/ipvs/ip_vs_sync.c
1419
static int bind_mcastif_addr(struct socket *sock, struct net_device *dev)
net/netfilter/ipvs/ip_vs_sync.c
1437
return kernel_bind(sock, (struct sockaddr_unsized *)&sin, sizeof(sin));
net/netfilter/ipvs/ip_vs_sync.c
1468
struct socket *sock;
net/netfilter/ipvs/ip_vs_sync.c
1473
IPPROTO_UDP, &sock);
net/netfilter/ipvs/ip_vs_sync.c
1478
*sock_ret = sock;
net/netfilter/ipvs/ip_vs_sync.c
1479
result = set_mcast_if(sock->sk, dev);
net/netfilter/ipvs/ip_vs_sync.c
1485
set_mcast_loop(sock->sk, 0);
net/netfilter/ipvs/ip_vs_sync.c
1486
set_mcast_ttl(sock->sk, ipvs->mcfg.mcast_ttl);
net/netfilter/ipvs/ip_vs_sync.c
1488
set_mcast_pmtudisc(sock->sk, IP_PMTUDISC_DONT);
net/netfilter/ipvs/ip_vs_sync.c
1491
set_sock_size(sock->sk, 1, result);
net/netfilter/ipvs/ip_vs_sync.c
1494
result = bind_mcastif_addr(sock, dev);
net/netfilter/ipvs/ip_vs_sync.c
1503
result = kernel_connect(sock, (struct sockaddr_unsized *)&mcast_addr,
net/netfilter/ipvs/ip_vs_sync.c
1525
struct socket *sock;
net/netfilter/ipvs/ip_vs_sync.c
1530
IPPROTO_UDP, &sock);
net/netfilter/ipvs/ip_vs_sync.c
1535
*sock_ret = sock;
net/netfilter/ipvs/ip_vs_sync.c
1537
sock->sk->sk_reuse = SK_CAN_REUSE;
net/netfilter/ipvs/ip_vs_sync.c
1540
set_sock_size(sock->sk, 0, result);
net/netfilter/ipvs/ip_vs_sync.c
1543
sock->sk->sk_bound_dev_if = dev->ifindex;
net/netfilter/ipvs/ip_vs_sync.c
1544
result = kernel_bind(sock, (struct sockaddr_unsized *)&mcast_addr, salen);
net/netfilter/ipvs/ip_vs_sync.c
1553
result = join_mcast_group6(sock->sk, &mcast_addr.in6.sin6_addr,
net/netfilter/ipvs/ip_vs_sync.c
1557
result = join_mcast_group(sock->sk, &mcast_addr.in.sin_addr,
net/netfilter/ipvs/ip_vs_sync.c
1572
ip_vs_send_async(struct socket *sock, const char *buffer, const size_t length)
net/netfilter/ipvs/ip_vs_sync.c
1581
len = kernel_sendmsg(sock, &msg, &iov, 1, (size_t)(length));
net/netfilter/ipvs/ip_vs_sync.c
1587
ip_vs_send_sync_msg(struct socket *sock, struct ip_vs_sync_mesg *msg)
net/netfilter/ipvs/ip_vs_sync.c
1594
ret = ip_vs_send_async(sock, (char *)msg, msize);
net/netfilter/ipvs/ip_vs_sync.c
1602
ip_vs_receive(struct socket *sock, char *buffer, const size_t buflen)
net/netfilter/ipvs/ip_vs_sync.c
1610
len = sock_recvmsg(sock, &msg, MSG_DONTWAIT);
net/netfilter/ipvs/ip_vs_sync.c
1654
struct sock *sk = tinfo->sock->sk;
net/netfilter/ipvs/ip_vs_sync.c
1669
while (ip_vs_send_sync_msg(tinfo->sock, sb->mesg) < 0) {
net/netfilter/ipvs/ip_vs_sync.c
1705
struct sock *sk = tinfo->sock->sk;
net/netfilter/ipvs/ip_vs_sync.c
1722
len = ip_vs_receive(tinfo->sock, tinfo->buf,
net/netfilter/ipvs/ip_vs_sync.c
1882
result = make_send_sock(ipvs, id, dev, &tinfo->sock);
net/netfilter/ipvs/ip_vs_sync.c
1884
result = make_receive_sock(ipvs, id, dev, &tinfo->sock);
net/netfilter/ipvs/ip_vs_sync.c
1932
if (tinfo->sock)
net/netfilter/ipvs/ip_vs_sync.c
1933
sock_release(tinfo->sock);
net/netfilter/ipvs/ip_vs_sync.c
199
struct socket *sock;
net/netfilter/ipvs/ip_vs_sync.c
2024
if (tinfo->sock)
net/netfilter/ipvs/ip_vs_sync.c
2025
sock_release(tinfo->sock);
net/netfilter/ipvs/ip_vs_xmit.c
210
struct sock *sk = skb->sk;
net/netfilter/nf_conntrack_netlink.c
3262
static int ctnetlink_dump_exp_ct(struct net *net, struct sock *ctnl,
net/netfilter/nf_conntrack_proto.c
267
getorigdst(struct sock *sk, int optval, void __user *user, int *len)
net/netfilter/nf_conntrack_proto.c
323
ipv6_getorigdst(struct sock *sk, int optval, void __user *user, int *len)
net/netfilter/nf_log_syslog.c
169
struct sock *sk)
net/netfilter/nf_log_syslog.c
171
const struct socket *sock;
net/netfilter/nf_log_syslog.c
182
sock = READ_ONCE(sk->sk_socket);
net/netfilter/nf_log_syslog.c
183
file = sock ? READ_ONCE(sock->file) : NULL;
net/netfilter/nf_nat_proto.c
603
struct sock *sk = skb->sk;
net/netfilter/nf_nat_proto.c
668
struct sock *sk = skb->sk;
net/netfilter/nf_nat_proto.c
920
struct sock *sk = skb->sk;
net/netfilter/nf_queue.c
199
struct sock *sk = skb->sk;
net/netfilter/nf_queue.c
50
static void nf_queue_sock_put(struct sock *sk)
net/netfilter/nf_sockopt.c
107
int nf_getsockopt(struct sock *sk, u_int8_t pf, int val, char __user *opt,
net/netfilter/nf_sockopt.c
62
static struct nf_sockopt_ops *nf_sockopt_find(struct sock *sk, u_int8_t pf,
net/netfilter/nf_sockopt.c
92
int nf_setsockopt(struct sock *sk, u_int8_t pf, int val, sockptr_t opt,
net/netfilter/nf_tables_api.c
1288
static int nft_netlink_dump_start_rcu(struct sock *nlsk, struct sk_buff *skb,
net/netfilter/nfnetlink.c
51
struct sock *nfnl;
net/netfilter/nfnetlink_hook.c
38
static int nf_netlink_dump_start_rcu(struct sock *nlsk, struct sk_buff *skb,
net/netfilter/nfnetlink_log.c
489
struct sock *sk;
net/netfilter/nfnetlink_log.c
630
const struct socket *sock;
net/netfilter/nfnetlink_log.c
639
sock = READ_ONCE(sk->sk_socket);
net/netfilter/nfnetlink_log.c
640
file = sock ? READ_ONCE(sock->file) : NULL;
net/netfilter/nfnetlink_queue.c
560
static int nfqnl_put_sk_uidgid(struct sk_buff *skb, struct sock *sk)
net/netfilter/nfnetlink_queue.c
562
const struct socket *sock;
net/netfilter/nfnetlink_queue.c
575
sock = READ_ONCE(sk->sk_socket);
net/netfilter/nfnetlink_queue.c
576
file = sock ? READ_ONCE(sock->file) : NULL;
net/netfilter/nfnetlink_queue.c
592
static int nfqnl_put_sk_classid(struct sk_buff *skb, struct sock *sk)
net/netfilter/nft_meta.c
136
const struct sock *sk = skb_to_full_sk(pkt->skb);
net/netfilter/nft_meta.c
137
const struct socket *sock;
net/netfilter/nft_meta.c
148
sock = READ_ONCE(sk->sk_socket);
net/netfilter/nft_meta.c
149
file = sock ? READ_ONCE(sock->file) : NULL;
net/netfilter/nft_meta.c
173
struct sock *sk = skb_to_full_sk(pkt->skb);
net/netfilter/nft_socket.c
115
struct sock *sk = skb->sk;
net/netfilter/nft_socket.c
21
struct nft_regs *regs, struct sock *sk,
net/netfilter/nft_socket.c
41
nft_sock_get_eval_cgroupv2(u32 *dest, struct sock *sk, const struct nft_pktinfo *pkt, u32 level)
net/netfilter/nft_socket.c
83
static struct sock *nft_socket_do_lookup(const struct nft_pktinfo *pkt)
net/netfilter/nft_socket.c
87
struct sock *sk = NULL;
net/netfilter/nft_tproxy.c
31
struct sock *sk;
net/netfilter/nft_tproxy.c
95
struct sock *sk;
net/netfilter/xt_TPROXY.c
117
struct sock *sk;
net/netfilter/xt_TPROXY.c
41
struct sock *sk;
net/netfilter/xt_cgroup.c
128
struct sock *sk = skb->sk;
net/netfilter/xt_cgroup.c
144
struct sock *sk = skb->sk;
net/netfilter/xt_cgroup.c
165
struct sock *sk = skb->sk;
net/netfilter/xt_owner.c
66
struct sock *sk = skb_to_full_sk(skb);
net/netfilter/xt_owner.c
68
const struct socket *sock;
net/netfilter/xt_owner.c
85
sock = READ_ONCE(sk->sk_socket);
net/netfilter/xt_owner.c
86
filp = sock ? READ_ONCE(sock->file) : NULL;
net/netfilter/xt_socket.c
114
struct sock *sk = skb->sk;
net/netfilter/xt_socket.c
53
struct sock *sk = skb->sk;
net/netlabel/netlabel_calipso.c
525
int calipso_sock_getattr(struct sock *sk, struct netlbl_lsm_secattr *secattr)
net/netlabel/netlabel_calipso.c
549
int calipso_sock_setattr(struct sock *sk,
net/netlabel/netlabel_calipso.c
569
void calipso_sock_delattr(struct sock *sk)
net/netlabel/netlabel_calipso.h
117
int calipso_sock_getattr(struct sock *sk, struct netlbl_lsm_secattr *secattr);
net/netlabel/netlabel_calipso.h
118
int calipso_sock_setattr(struct sock *sk,
net/netlabel/netlabel_calipso.h
121
void calipso_sock_delattr(struct sock *sk);
net/netlabel/netlabel_kapi.c
1048
void netlbl_sock_delattr(struct sock *sk)
net/netlabel/netlabel_kapi.c
1074
int netlbl_sock_getattr(struct sock *sk,
net/netlabel/netlabel_kapi.c
1104
bool netlbl_sk_lock_check(struct sock *sk)
net/netlabel/netlabel_kapi.c
1111
bool netlbl_sk_lock_check(struct sock *sk)
net/netlabel/netlabel_kapi.c
1129
int netlbl_conn_setattr(struct sock *sk,
net/netlabel/netlabel_kapi.c
979
int netlbl_sock_setattr(struct sock *sk,
net/netlink/af_netlink.c
1032
netlink_autobind(sock);
net/netlink/af_netlink.c
1058
static int netlink_connect(struct socket *sock, struct sockaddr_unsized *addr,
net/netlink/af_netlink.c
1062
struct sock *sk = sock->sk;
net/netlink/af_netlink.c
1084
!netlink_allowed(sock, NL_CFG_F_NONROOT_SEND))
net/netlink/af_netlink.c
1092
err = netlink_autobind(sock);
net/netlink/af_netlink.c
1105
static int netlink_getname(struct socket *sock, struct sockaddr *addr,
net/netlink/af_netlink.c
1108
struct sock *sk = sock->sk;
net/netlink/af_netlink.c
1129
static int netlink_ioctl(struct socket *sock, unsigned int cmd,
net/netlink/af_netlink.c
1137
static struct sock *netlink_getsockbyportid(struct sock *ssk, u32 portid)
net/netlink/af_netlink.c
1139
struct sock *sock;
net/netlink/af_netlink.c
1142
sock = netlink_lookup(sock_net(ssk), ssk->sk_protocol, portid);
net/netlink/af_netlink.c
1143
if (!sock)
net/netlink/af_netlink.c
1147
nlk = nlk_sk(sock);
net/netlink/af_netlink.c
1149
if (READ_ONCE(sock->sk_state) == NETLINK_CONNECTED &&
net/netlink/af_netlink.c
1151
sock_put(sock);
net/netlink/af_netlink.c
1154
return sock;
net/netlink/af_netlink.c
1157
struct sock *netlink_getsockbyfd(int fd)
net/netlink/af_netlink.c
1161
struct sock *sock;
net/netlink/af_netlink.c
1170
sock = SOCKET_I(inode)->sk;
net/netlink/af_netlink.c
1171
if (sock->sk_family != AF_NETLINK)
net/netlink/af_netlink.c
1174
sock_hold(sock);
net/netlink/af_netlink.c
1175
return sock;
net/netlink/af_netlink.c
1210
int netlink_attachskb(struct sock *sk, struct sk_buff *skb,
net/netlink/af_netlink.c
1211
long *timeo, struct sock *ssk)
net/netlink/af_netlink.c
1257
static int __netlink_sendskb(struct sock *sk, struct sk_buff *skb)
net/netlink/af_netlink.c
1268
int netlink_sendskb(struct sock *sk, struct sk_buff *skb)
net/netlink/af_netlink.c
1276
void netlink_detachskb(struct sock *sk, struct sk_buff *skb)
net/netlink/af_netlink.c
1306
static int netlink_unicast_kernel(struct sock *sk, struct sk_buff *skb,
net/netlink/af_netlink.c
1307
struct sock *ssk)
net/netlink/af_netlink.c
1328
int netlink_unicast(struct sock *ssk, struct sk_buff *skb,
net/netlink/af_netlink.c
1331
struct sock *sk;
net/netlink/af_netlink.c
134
static int netlink_dump(struct sock *sk, bool lock_taken);
net/netlink/af_netlink.c
1364
int netlink_has_listeners(struct sock *sk, unsigned int group)
net/netlink/af_netlink.c
1389
static int netlink_broadcast_deliver(struct sock *sk, struct sk_buff *skb)
net/netlink/af_netlink.c
1409
struct sock *exclude_sk;
net/netlink/af_netlink.c
1419
int (*tx_filter)(struct sock *dsk, struct sk_buff *skb, void *data);
net/netlink/af_netlink.c
1423
static void do_one_broadcast(struct sock *sk,
net/netlink/af_netlink.c
1508
int netlink_broadcast_filtered(struct sock *ssk, struct sk_buff *skb,
net/netlink/af_netlink.c
1516
struct sock *sk;
net/netlink/af_netlink.c
1560
int netlink_broadcast(struct sock *ssk, struct sk_buff *skb, u32 portid,
net/netlink/af_netlink.c
1569
struct sock *exclude_sk;
net/netlink/af_netlink.c
1575
static int do_one_set_err(struct sock *sk, struct netlink_set_err_data *p)
net/netlink/af_netlink.c
1611
int netlink_set_err(struct sock *ssk, u32 portid, u32 group, int code)
net/netlink/af_netlink.c
1615
struct sock *sk;
net/netlink/af_netlink.c
1648
static int netlink_setsockopt(struct socket *sock, int level, int optname,
net/netlink/af_netlink.c
1651
struct sock *sk = sock->sk;
net/netlink/af_netlink.c
1671
if (!netlink_allowed(sock, NL_CFG_F_NONROOT_RECV))
net/netlink/af_netlink.c
1724
static int netlink_getsockopt(struct socket *sock, int level, int optname,
net/netlink/af_netlink.c
1727
struct sock *sk = sock->sk;
net/netlink/af_netlink.c
1808
static void netlink_cmsg_listen_all_nsid(struct sock *sk, struct msghdr *msg,
net/netlink/af_netlink.c
1818
static int netlink_sendmsg(struct socket *sock, struct msghdr *msg, size_t len)
net/netlink/af_netlink.c
1820
struct sock *sk = sock->sk;
net/netlink/af_netlink.c
1838
err = scm_send(sock, msg, &scm, true);
net/netlink/af_netlink.c
1852
!netlink_allowed(sock, NL_CFG_F_NONROOT_SEND))
net/netlink/af_netlink.c
1863
err = netlink_autobind(sock);
net/netlink/af_netlink.c
1907
static int netlink_recvmsg(struct socket *sock, struct msghdr *msg, size_t len,
net/netlink/af_netlink.c
1911
struct sock *sk = sock->sk;
net/netlink/af_netlink.c
1989
scm_recv(sock, msg, &scm, flags);
net/netlink/af_netlink.c
1995
static void netlink_data_ready(struct sock *sk)
net/netlink/af_netlink.c
2006
struct sock *
net/netlink/af_netlink.c
2010
struct socket *sock;
net/netlink/af_netlink.c
2011
struct sock *sk;
net/netlink/af_netlink.c
2021
if (sock_create_lite(PF_NETLINK, SOCK_DGRAM, unit, &sock))
net/netlink/af_netlink.c
2024
if (__netlink_create(net, sock, unit, 1) < 0)
net/netlink/af_netlink.c
2027
sk = sock->sk;
net/netlink/af_netlink.c
2073
sock_release(sock);
net/netlink/af_netlink.c
2079
netlink_kernel_release(struct sock *sk)
net/netlink/af_netlink.c
2088
int __netlink_change_ngroups(struct sock *sk, unsigned int groups)
net/netlink/af_netlink.c
2123
int netlink_change_ngroups(struct sock *sk, unsigned int groups)
net/netlink/af_netlink.c
2134
void __netlink_clear_multicast_users(struct sock *ksk, unsigned int group)
net/netlink/af_netlink.c
2136
struct sock *sk;
net/netlink/af_netlink.c
2259
static int netlink_dump(struct sock *sk, bool lock_taken)
net/netlink/af_netlink.c
2392
int __netlink_dump_start(struct sock *ssk, struct sk_buff *skb,
net/netlink/af_netlink.c
2398
struct sock *sk;
net/netlink/af_netlink.c
2584
int nlmsg_notify(struct sock *sk, struct sk_buff *skb, u32 portid,
net/netlink/af_netlink.c
266
struct sock *sk = skb->sk;
net/netlink/af_netlink.c
2706
struct sock *s = v;
net/netlink/af_netlink.c
2742
ctx.sk = nlk_sk((struct sock *)v);
net/netlink/af_netlink.c
290
struct sock *sk = skb->sk;
net/netlink/af_netlink.c
344
static void netlink_deliver_tap_kernel(struct sock *dst, struct sock *src,
net/netlink/af_netlink.c
351
static void netlink_overrun(struct sock *sk)
net/netlink/af_netlink.c
363
static void netlink_rcv_wake(struct sock *sk)
net/netlink/af_netlink.c
386
static void netlink_skb_set_owner_r(struct sk_buff *skb, struct sock *sk)
net/netlink/af_netlink.c
394
static void netlink_sock_destruct(struct sock *sk)
net/netlink/af_netlink.c
493
static struct sock *__netlink_lookup(struct netlink_table *table, u32 portid,
net/netlink/af_netlink.c
503
static int __netlink_insert(struct netlink_table *table, struct sock *sk)
net/netlink/af_netlink.c
513
static struct sock *netlink_lookup(struct net *net, int protocol, u32 portid)
net/netlink/af_netlink.c
516
struct sock *sk;
net/netlink/af_netlink.c
530
netlink_update_listeners(struct sock *sk)
net/netlink/af_netlink.c
553
static int netlink_insert(struct sock *sk, u32 portid)
net/netlink/af_netlink.c
594
static void netlink_remove(struct sock *sk)
net/netlink/af_netlink.c
619
static int __netlink_create(struct net *net, struct socket *sock,
net/netlink/af_netlink.c
622
struct sock *sk;
net/netlink/af_netlink.c
625
sock->ops = &netlink_ops;
net/netlink/af_netlink.c
631
sock_init_data(sock, sk);
net/netlink/af_netlink.c
645
static int netlink_create(struct net *net, struct socket *sock, int protocol,
net/netlink/af_netlink.c
652
void (*release)(struct sock *sock, unsigned long *groups);
net/netlink/af_netlink.c
655
sock->state = SS_UNCONNECTED;
net/netlink/af_netlink.c
657
if (sock->type != SOCK_RAW && sock->type != SOCK_DGRAM)
net/netlink/af_netlink.c
685
err = __netlink_create(net, sock, protocol, kern);
net/netlink/af_netlink.c
691
nlk = nlk_sk(sock->sk);
net/netlink/af_netlink.c
707
struct sock *sk = &nlk->sk;
net/netlink/af_netlink.c
718
static int netlink_release(struct socket *sock)
net/netlink/af_netlink.c
720
struct sock *sk = sock->sk;
net/netlink/af_netlink.c
751
sock->sk = NULL;
net/netlink/af_netlink.c
801
static int netlink_autobind(struct socket *sock)
net/netlink/af_netlink.c
803
struct sock *sk = sock->sk;
net/netlink/af_netlink.c
86
static inline int netlink_is_kernel(struct sock *sk)
net/netlink/af_netlink.c
905
static inline int netlink_allowed(const struct socket *sock, unsigned int flag)
net/netlink/af_netlink.c
907
return (nl_table[sock->sk->sk_protocol].flags & flag) ||
net/netlink/af_netlink.c
908
ns_capable(sock_net(sock->sk)->user_ns, CAP_NET_ADMIN);
net/netlink/af_netlink.c
912
netlink_update_subscriptions(struct sock *sk, unsigned int subscriptions)
net/netlink/af_netlink.c
923
static int netlink_realloc_groups(struct sock *sk)
net/netlink/af_netlink.c
957
struct sock *sk)
net/netlink/af_netlink.c
970
static int netlink_bind(struct socket *sock, struct sockaddr_unsized *addr,
net/netlink/af_netlink.c
973
struct sock *sk = sock->sk;
net/netlink/af_netlink.c
990
if (!netlink_allowed(sock, NL_CFG_F_NONROOT_RECV))
net/netlink/af_netlink.h
26
struct sock sk;
net/netlink/af_netlink.h
46
void (*netlink_release)(struct sock *sk,
net/netlink/af_netlink.h
54
static inline struct netlink_sock *nlk_sk(struct sock *sk)
net/netlink/af_netlink.h
71
void (*release)(struct sock *sk,
net/netlink/diag.c
12
static int sk_diag_dump_groups(struct sock *sk, struct sk_buff *nlskb)
net/netlink/diag.c
132
sk = (struct sock *)nlsk;
net/netlink/diag.c
23
static int sk_diag_put_flags(struct sock *sk, struct sk_buff *skb)
net/netlink/diag.c
44
static int sk_diag_fill(struct sock *sk, struct sk_buff *skb,
net/netlink/diag.c
98
struct sock *sk;
net/netlink/genetlink.c
1989
struct sock *sk = net->genl_sock;
net/netlink/genetlink.c
680
struct sock *sk)
net/netlink/genetlink.c
692
static void genl_release(struct sock *sk, unsigned long *groups)
net/netlink/genetlink.c
718
void *__genl_sk_priv_get(struct genl_family *family, struct sock *sk)
net/netlink/genetlink.c
737
void *genl_sk_priv_get(struct genl_family *family, struct sock *sk)
net/nfc/af_nfc.c
18
static int nfc_sock_create(struct net *net, struct socket *sock, int proto,
net/nfc/af_nfc.c
31
rc = proto_tab[proto]->create(net, sock, proto_tab[proto], kern);
net/nfc/core.c
714
struct sk_buff *nfc_alloc_send_skb(struct nfc_dev *dev, struct sock *sk,
net/nfc/llcp.h
103
struct sock sk;
net/nfc/llcp.h
138
struct sock *parent;
net/nfc/llcp.h
200
void nfc_llcp_sock_link(struct llcp_sock_list *l, struct sock *s);
net/nfc/llcp.h
201
void nfc_llcp_sock_unlink(struct llcp_sock_list *l, struct sock *s);
net/nfc/llcp.h
202
void nfc_llcp_socket_remote_param_init(struct nfc_llcp_sock *sock);
net/nfc/llcp.h
206
struct nfc_llcp_sock *sock);
net/nfc/llcp.h
209
int nfc_llcp_queue_i_frames(struct nfc_llcp_sock *sock);
net/nfc/llcp.h
214
struct sock *nfc_llcp_sock_alloc(struct socket *sock, int type, gfp_t gfp, int kern);
net/nfc/llcp.h
215
void nfc_llcp_sock_free(struct nfc_llcp_sock *sock);
net/nfc/llcp.h
216
void nfc_llcp_accept_unlink(struct sock *sk);
net/nfc/llcp.h
217
void nfc_llcp_accept_enqueue(struct sock *parent, struct sock *sk);
net/nfc/llcp.h
218
struct sock *nfc_llcp_accept_dequeue(struct sock *sk, struct socket *newsock);
net/nfc/llcp.h
223
int nfc_llcp_parse_connection_tlv(struct nfc_llcp_sock *sock,
net/nfc/llcp.h
236
int nfc_llcp_send_connect(struct nfc_llcp_sock *sock);
net/nfc/llcp.h
237
int nfc_llcp_send_cc(struct nfc_llcp_sock *sock);
net/nfc/llcp.h
243
int nfc_llcp_send_disconnect(struct nfc_llcp_sock *sock);
net/nfc/llcp.h
244
int nfc_llcp_send_i_frame(struct nfc_llcp_sock *sock,
net/nfc/llcp.h
246
int nfc_llcp_send_ui_frame(struct nfc_llcp_sock *sock, u8 ssap, u8 dsap,
net/nfc/llcp.h
248
int nfc_llcp_send_rr(struct nfc_llcp_sock *sock);
net/nfc/llcp_commands.c
242
int nfc_llcp_parse_connection_tlv(struct nfc_llcp_sock *sock,
net/nfc/llcp_commands.c
250
if (sock == NULL)
net/nfc/llcp_commands.c
261
sock->remote_miu = llcp_tlv_miux(tlv) + 128;
net/nfc/llcp_commands.c
264
sock->remote_rw = llcp_tlv_rw(tlv);
net/nfc/llcp_commands.c
277
pr_debug("sock %p rw %d miu %d\n", sock,
net/nfc/llcp_commands.c
278
sock->remote_rw, sock->remote_miu);
net/nfc/llcp_commands.c
313
static struct sk_buff *llcp_allocate_pdu(struct nfc_llcp_sock *sock,
net/nfc/llcp_commands.c
319
if (sock->ssap == 0)
net/nfc/llcp_commands.c
322
skb = nfc_alloc_send_skb(sock->dev, &sock->sk, MSG_DONTWAIT,
net/nfc/llcp_commands.c
329
skb = llcp_add_header(skb, sock->dsap, sock->ssap, cmd);
net/nfc/llcp_commands.c
334
int nfc_llcp_send_disconnect(struct nfc_llcp_sock *sock)
net/nfc/llcp_commands.c
340
local = sock->local;
net/nfc/llcp_commands.c
344
dev = sock->dev;
net/nfc/llcp_commands.c
348
skb = llcp_allocate_pdu(sock, LLCP_PDU_DISC, 0);
net/nfc/llcp_commands.c
392
int nfc_llcp_send_connect(struct nfc_llcp_sock *sock)
net/nfc/llcp_commands.c
405
local = sock->local;
net/nfc/llcp_commands.c
409
if (sock->service_name != NULL) {
net/nfc/llcp_commands.c
411
sock->service_name,
net/nfc/llcp_commands.c
412
sock->service_name_len,
net/nfc/llcp_commands.c
422
miux = be16_to_cpu(sock->miux) > LLCP_MAX_MIUX ?
net/nfc/llcp_commands.c
423
local->miux : sock->miux;
net/nfc/llcp_commands.c
424
rw = sock->rw > LLCP_MAX_RW ? local->rw : sock->rw;
net/nfc/llcp_commands.c
441
pr_debug("SKB size %d SN length %zu\n", size, sock->service_name_len);
net/nfc/llcp_commands.c
443
skb = llcp_allocate_pdu(sock, LLCP_PDU_CONNECT, size);
net/nfc/llcp_commands.c
468
int nfc_llcp_send_cc(struct nfc_llcp_sock *sock)
net/nfc/llcp_commands.c
479
local = sock->local;
net/nfc/llcp_commands.c
484
miux = be16_to_cpu(sock->miux) > LLCP_MAX_MIUX ?
net/nfc/llcp_commands.c
485
local->miux : sock->miux;
net/nfc/llcp_commands.c
486
rw = sock->rw > LLCP_MAX_RW ? local->rw : sock->rw;
net/nfc/llcp_commands.c
503
skb = llcp_allocate_pdu(sock, LLCP_PDU_CC, size);
net/nfc/llcp_commands.c
646
int nfc_llcp_send_i_frame(struct nfc_llcp_sock *sock,
net/nfc/llcp_commands.c
650
struct sock *sk = &sock->sk;
net/nfc/llcp_commands.c
658
local = sock->local;
net/nfc/llcp_commands.c
663
if((sock->remote_ready &&
net/nfc/llcp_commands.c
664
skb_queue_len(&sock->tx_pending_queue) >= sock->remote_rw &&
net/nfc/llcp_commands.c
665
skb_queue_len(&sock->tx_queue) >= 2 * sock->remote_rw)) {
net/nfc/llcp_commands.c
667
skb_queue_len(&sock->tx_pending_queue));
net/nfc/llcp_commands.c
672
if ((!sock->remote_ready &&
net/nfc/llcp_commands.c
673
skb_queue_len(&sock->tx_queue) >= 2 * sock->remote_rw)) {
net/nfc/llcp_commands.c
675
skb_queue_len(&sock->tx_queue));
net/nfc/llcp_commands.c
692
remote_miu = sock->remote_miu > LLCP_MAX_MIU ?
net/nfc/llcp_commands.c
693
LLCP_DEFAULT_MIU : sock->remote_miu;
net/nfc/llcp_commands.c
700
pdu = llcp_allocate_pdu(sock, LLCP_PDU_I,
net/nfc/llcp_commands.c
712
skb_queue_tail(&sock->tx_queue, pdu);
net/nfc/llcp_commands.c
716
nfc_llcp_queue_i_frames(sock);
net/nfc/llcp_commands.c
729
int nfc_llcp_send_ui_frame(struct nfc_llcp_sock *sock, u8 ssap, u8 dsap,
net/nfc/llcp_commands.c
741
local = sock->local;
net/nfc/llcp_commands.c
758
remote_miu = sock->remote_miu > LLCP_MAX_MIU ?
net/nfc/llcp_commands.c
759
local->remote_miu : sock->remote_miu;
net/nfc/llcp_commands.c
766
pdu = nfc_alloc_send_skb(sock->dev, &sock->sk, 0,
net/nfc/llcp_commands.c
808
int nfc_llcp_send_rr(struct nfc_llcp_sock *sock)
net/nfc/llcp_commands.c
813
pr_debug("Send rr nr %d\n", sock->recv_n);
net/nfc/llcp_commands.c
815
local = sock->local;
net/nfc/llcp_commands.c
819
skb = llcp_allocate_pdu(sock, LLCP_PDU_RR, LLCP_SEQUENCE_SIZE);
net/nfc/llcp_commands.c
825
skb->data[2] = sock->recv_n;
net/nfc/llcp_core.c
1002
pr_debug("reserved_ssap %d for %p\n", sock->ssap, new_sock);
net/nfc/llcp_core.c
1005
&local->local_sdp_cnt[sock->ssap - LLCP_WKS_NUM_SAP];
net/nfc/llcp_core.c
1008
new_sock->reserved_ssap = sock->ssap;
net/nfc/llcp_core.c
1018
nfc_llcp_accept_enqueue(&sock->sk, new_sk);
net/nfc/llcp_core.c
1030
release_sock(&sock->sk);
net/nfc/llcp_core.c
1031
sock_put(&sock->sk);
net/nfc/llcp_core.c
1040
int nfc_llcp_queue_i_frames(struct nfc_llcp_sock *sock)
net/nfc/llcp_core.c
1043
struct nfc_llcp_local *local = sock->local;
net/nfc/llcp_core.c
1046
sock->remote_ready, skb_queue_len(&sock->tx_pending_queue),
net/nfc/llcp_core.c
1047
sock->remote_rw);
net/nfc/llcp_core.c
1050
while (sock->remote_ready &&
net/nfc/llcp_core.c
1051
skb_queue_len(&sock->tx_pending_queue) < sock->remote_rw) {
net/nfc/llcp_core.c
1054
pdu = skb_dequeue(&sock->tx_queue);
net/nfc/llcp_core.c
1059
nfc_llcp_set_nrns(sock, pdu);
net/nfc/llcp_core.c
1072
struct sock *sk;
net/nfc/llcp_core.c
1160
struct sock *sk;
net/nfc/llcp_core.c
1205
struct sock *sk;
net/nfc/llcp_core.c
1250
struct sock *sk;
net/nfc/llcp_core.c
204
struct sock *sk;
net/nfc/llcp_core.c
231
static void nfc_llcp_sock_put(struct nfc_llcp_sock *sock)
net/nfc/llcp_core.c
233
sock_put(&sock->sk);
net/nfc/llcp_core.c
25
void nfc_llcp_sock_link(struct llcp_sock_list *l, struct sock *sk)
net/nfc/llcp_core.c
32
void nfc_llcp_sock_unlink(struct llcp_sock_list *l, struct sock *sk)
net/nfc/llcp_core.c
367
struct sock *sk;
net/nfc/llcp_core.c
39
void nfc_llcp_socket_remote_param_init(struct nfc_llcp_sock *sock)
net/nfc/llcp_core.c
41
sock->remote_rw = LLCP_DEFAULT_RW;
net/nfc/llcp_core.c
415
struct nfc_llcp_sock *sock)
net/nfc/llcp_core.c
419
if (sock->service_name != NULL && sock->service_name_len > 0) {
net/nfc/llcp_core.c
42
sock->remote_miu = LLCP_MAX_MIU + 1;
net/nfc/llcp_core.c
420
int ssap = nfc_llcp_wks_sap(sock->service_name,
net/nfc/llcp_core.c
421
sock->service_name_len);
net/nfc/llcp_core.c
443
if (nfc_llcp_sock_from_sn(local, sock->service_name,
net/nfc/llcp_core.c
444
sock->service_name_len,
net/nfc/llcp_core.c
45
static void nfc_llcp_socket_purge(struct nfc_llcp_sock *sock)
net/nfc/llcp_core.c
455
} else if (sock->ssap != 0 && sock->ssap < LLCP_WKS_NUM_SAP) {
net/nfc/llcp_core.c
456
if (!test_bit(sock->ssap, &local->local_wks)) {
net/nfc/llcp_core.c
457
set_bit(sock->ssap, &local->local_wks);
net/nfc/llcp_core.c
460
return sock->ssap;
net/nfc/llcp_core.c
47
struct nfc_llcp_local *local = sock->local;
net/nfc/llcp_core.c
50
skb_queue_purge(&sock->tx_queue);
net/nfc/llcp_core.c
51
skb_queue_purge(&sock->tx_pending_queue);
net/nfc/llcp_core.c
58
if (s->sk != &sock->sk)
net/nfc/llcp_core.c
69
struct sock *sk;
net/nfc/llcp_core.c
714
static void nfc_llcp_set_nrns(struct nfc_llcp_sock *sock, struct sk_buff *pdu)
net/nfc/llcp_core.c
716
pdu->data[2] = (sock->send_n << 4) | (sock->recv_n);
net/nfc/llcp_core.c
717
sock->send_n = (sock->send_n + 1) % 16;
net/nfc/llcp_core.c
718
sock->recv_ack_n = (sock->recv_n - 1) % 16;
net/nfc/llcp_core.c
725
struct sock *sk;
net/nfc/llcp_core.c
766
struct sock *sk;
net/nfc/llcp_core.c
821
struct sock *sk;
net/nfc/llcp_core.c
89
struct sock *accept_sk;
net/nfc/llcp_core.c
912
struct sock *new_sk, *parent;
net/nfc/llcp_core.c
913
struct nfc_llcp_sock *sock, *new_sock;
net/nfc/llcp_core.c
922
sock = nfc_llcp_sock_get(local, dsap, LLCP_SAP_SDP);
net/nfc/llcp_core.c
923
if (sock == NULL || sock->sk.sk_state != LLCP_LISTEN) {
net/nfc/llcp_core.c
939
sock = nfc_llcp_sock_get_sn(local, sn, sn_len);
net/nfc/llcp_core.c
940
if (sock == NULL) {
net/nfc/llcp_core.c
946
lock_sock(&sock->sk);
net/nfc/llcp_core.c
948
parent = &sock->sk;
net/nfc/llcp_core.c
952
release_sock(&sock->sk);
net/nfc/llcp_core.c
953
sock_put(&sock->sk);
net/nfc/llcp_core.c
957
if (sock->ssap == LLCP_SDP_UNBOUND) {
net/nfc/llcp_core.c
964
release_sock(&sock->sk);
net/nfc/llcp_core.c
965
sock_put(&sock->sk);
net/nfc/llcp_core.c
969
sock->ssap = ssap;
net/nfc/llcp_core.c
975
release_sock(&sock->sk);
net/nfc/llcp_core.c
976
sock_put(&sock->sk);
net/nfc/llcp_core.c
986
release_sock(&sock->sk);
net/nfc/llcp_core.c
987
sock_put(&sock->sk);
net/nfc/llcp_core.c
992
new_sock->rw = sock->rw;
net/nfc/llcp_core.c
993
new_sock->miux = sock->miux;
net/nfc/llcp_core.c
994
new_sock->nfc_protocol = sock->nfc_protocol;
net/nfc/llcp_core.c
998
new_sock->ssap = sock->ssap;
net/nfc/llcp_core.c
999
if (sock->ssap < LLCP_LOCAL_NUM_SAP && sock->ssap >= LLCP_WKS_NUM_SAP) {
net/nfc/llcp_sock.c
1006
if (sock != NULL)
net/nfc/llcp_sock.c
1007
sock->state = SS_UNCONNECTED;
net/nfc/llcp_sock.c
1012
void nfc_llcp_sock_free(struct nfc_llcp_sock *sock)
net/nfc/llcp_sock.c
1014
kfree(sock->service_name);
net/nfc/llcp_sock.c
1016
skb_queue_purge(&sock->tx_queue);
net/nfc/llcp_sock.c
1017
skb_queue_purge(&sock->tx_pending_queue);
net/nfc/llcp_sock.c
1019
list_del_init(&sock->accept_queue);
net/nfc/llcp_sock.c
1021
sock->parent = NULL;
net/nfc/llcp_sock.c
1023
nfc_llcp_local_put(sock->local);
net/nfc/llcp_sock.c
1026
static int llcp_sock_create(struct net *net, struct socket *sock,
net/nfc/llcp_sock.c
1029
struct sock *sk;
net/nfc/llcp_sock.c
1031
pr_debug("%p\n", sock);
net/nfc/llcp_sock.c
1033
if (sock->type != SOCK_STREAM &&
net/nfc/llcp_sock.c
1034
sock->type != SOCK_DGRAM &&
net/nfc/llcp_sock.c
1035
sock->type != SOCK_RAW)
net/nfc/llcp_sock.c
1038
if (sock->type == SOCK_RAW) {
net/nfc/llcp_sock.c
1041
sock->ops = &llcp_rawsock_ops;
net/nfc/llcp_sock.c
1043
sock->ops = &llcp_sock_ops;
net/nfc/llcp_sock.c
1046
sk = nfc_llcp_sock_alloc(sock, sock->type, GFP_ATOMIC, kern);
net/nfc/llcp_sock.c
149
static int llcp_raw_sock_bind(struct socket *sock, struct sockaddr_unsized *addr,
net/nfc/llcp_sock.c
152
struct sock *sk = sock->sk;
net/nfc/llcp_sock.c
17
static int sock_wait_state(struct sock *sk, int state, unsigned long timeo)
net/nfc/llcp_sock.c
204
static int llcp_sock_listen(struct socket *sock, int backlog)
net/nfc/llcp_sock.c
206
struct sock *sk = sock->sk;
net/nfc/llcp_sock.c
213
if ((sock->type != SOCK_SEQPACKET && sock->type != SOCK_STREAM) ||
net/nfc/llcp_sock.c
231
static int nfc_llcp_setsockopt(struct socket *sock, int level, int optname,
net/nfc/llcp_sock.c
234
struct sock *sk = sock->sk;
net/nfc/llcp_sock.c
304
static int nfc_llcp_getsockopt(struct socket *sock, int level, int optname,
net/nfc/llcp_sock.c
308
struct sock *sk = sock->sk;
net/nfc/llcp_sock.c
381
void nfc_llcp_accept_unlink(struct sock *sk)
net/nfc/llcp_sock.c
394
void nfc_llcp_accept_enqueue(struct sock *parent, struct sock *sk)
net/nfc/llcp_sock.c
408
struct sock *nfc_llcp_accept_dequeue(struct sock *parent,
net/nfc/llcp_sock.c
412
struct sock *sk;
net/nfc/llcp_sock.c
449
static int llcp_sock_accept(struct socket *sock, struct socket *newsock,
net/nfc/llcp_sock.c
453
struct sock *sk = sock->sk, *new_sk;
net/nfc/llcp_sock.c
503
static int llcp_sock_getname(struct socket *sock, struct sockaddr *uaddr,
net/nfc/llcp_sock.c
506
struct sock *sk = sock->sk;
net/nfc/llcp_sock.c
537
static inline __poll_t llcp_accept_poll(struct sock *parent)
net/nfc/llcp_sock.c
540
struct sock *sk;
net/nfc/llcp_sock.c
555
static __poll_t llcp_sock_poll(struct file *file, struct socket *sock,
net/nfc/llcp_sock.c
558
struct sock *sk = sock->sk;
net/nfc/llcp_sock.c
563
sock_poll_wait(file, sock, wait);
net/nfc/llcp_sock.c
59
static int llcp_sock_bind(struct socket *sock, struct sockaddr_unsized *addr, int alen)
net/nfc/llcp_sock.c
594
static int llcp_sock_release(struct socket *sock)
net/nfc/llcp_sock.c
596
struct sock *sk = sock->sk;
net/nfc/llcp_sock.c
61
struct sock *sk = sock->sk;
net/nfc/llcp_sock.c
620
struct sock *accept_sk;
net/nfc/llcp_sock.c
634
if (sock->type == SOCK_RAW)
net/nfc/llcp_sock.c
653
static int llcp_sock_connect(struct socket *sock, struct sockaddr_unsized *_addr,
net/nfc/llcp_sock.c
656
struct sock *sk = sock->sk;
net/nfc/llcp_sock.c
663
pr_debug("sock %p sk %p flags 0x%x\n", sock, sk, flags);
net/nfc/llcp_sock.c
777
static int llcp_sock_sendmsg(struct socket *sock, struct msghdr *msg,
net/nfc/llcp_sock.c
780
struct sock *sk = sock->sk;
net/nfc/llcp_sock.c
784
pr_debug("sock %p sk %p", sock, sk);
net/nfc/llcp_sock.c
830
static int llcp_sock_recvmsg(struct socket *sock, struct msghdr *msg,
net/nfc/llcp_sock.c
833
struct sock *sk = sock->sk;
net/nfc/llcp_sock.c
957
static void llcp_sock_destruct(struct sock *sk)
net/nfc/llcp_sock.c
976
struct sock *nfc_llcp_sock_alloc(struct socket *sock, int type, gfp_t gfp, int kern)
net/nfc/llcp_sock.c
978
struct sock *sk;
net/nfc/llcp_sock.c
987
sock_init_data(sock, sk);
net/nfc/nfc.h
23
int (*create)(struct net *net, struct socket *sock,
net/nfc/nfc.h
28
struct sock sk;
net/nfc/nfc.h
42
((struct sock *) container_of(_tx_work, struct nfc_rawsock, tx_work))
net/nfc/rawsock.c
106
if (sock->state == SS_CONNECTED) {
net/nfc/rawsock.c
129
sock->state = SS_CONNECTED;
net/nfc/rawsock.c
153
struct sock *sk = (struct sock *) context;
net/nfc/rawsock.c
190
struct sock *sk = to_rawsock_sk(work);
net/nfc/rawsock.c
216
static int rawsock_sendmsg(struct socket *sock, struct msghdr *msg, size_t len)
net/nfc/rawsock.c
218
struct sock *sk = sock->sk;
net/nfc/rawsock.c
223
pr_debug("sock=%p sk=%p len=%zu\n", sock, sk, len);
net/nfc/rawsock.c
228
if (sock->state != SS_CONNECTED)
net/nfc/rawsock.c
23
static void nfc_sock_link(struct nfc_sock_list *l, struct sock *sk)
net/nfc/rawsock.c
252
static int rawsock_recvmsg(struct socket *sock, struct msghdr *msg, size_t len,
net/nfc/rawsock.c
255
struct sock *sk = sock->sk;
net/nfc/rawsock.c
260
pr_debug("sock=%p sk=%p len=%zu flags=%d\n", sock, sk, len, flags);
net/nfc/rawsock.c
30
static void nfc_sock_unlink(struct nfc_sock_list *l, struct sock *sk)
net/nfc/rawsock.c
315
static void rawsock_destruct(struct sock *sk)
net/nfc/rawsock.c
334
static int rawsock_create(struct net *net, struct socket *sock,
net/nfc/rawsock.c
337
struct sock *sk;
net/nfc/rawsock.c
339
pr_debug("sock=%p\n", sock);
net/nfc/rawsock.c
341
if ((sock->type != SOCK_SEQPACKET) && (sock->type != SOCK_RAW))
net/nfc/rawsock.c
344
if (sock->type == SOCK_RAW) {
net/nfc/rawsock.c
347
sock->ops = &rawsock_raw_ops;
net/nfc/rawsock.c
349
sock->ops = &rawsock_ops;
net/nfc/rawsock.c
356
sock_init_data(sock, sk);
net/nfc/rawsock.c
359
sock->state = SS_UNCONNECTED;
net/nfc/rawsock.c
360
if (sock->type == SOCK_RAW)
net/nfc/rawsock.c
37
static void rawsock_write_queue_purge(struct sock *sk)
net/nfc/rawsock.c
374
struct sock *sk;
net/nfc/rawsock.c
47
static void rawsock_report_error(struct sock *sk, int err)
net/nfc/rawsock.c
58
static int rawsock_release(struct socket *sock)
net/nfc/rawsock.c
60
struct sock *sk = sock->sk;
net/nfc/rawsock.c
62
pr_debug("sock=%p sk=%p\n", sock, sk);
net/nfc/rawsock.c
67
if (sock->type == SOCK_RAW)
net/nfc/rawsock.c
87
static int rawsock_connect(struct socket *sock, struct sockaddr_unsized *_addr,
net/nfc/rawsock.c
90
struct sock *sk = sock->sk;
net/nfc/rawsock.c
95
pr_debug("sock=%p sk=%p flags=%d\n", sock, sk, flags);
net/openvswitch/actions.c
691
static int ovs_vport_output(struct net *net, struct sock *sk,
net/packet/af_packet.c
1273
const struct sock *sk = &po->sk;
net/packet/af_packet.c
1325
static void packet_sock_destruct(struct sock *sk)
net/packet/af_packet.c
1406
i = j = min_t(int, po->rollover->sock, num - 1);
net/packet/af_packet.c
1413
po->rollover->sock = i;
net/packet/af_packet.c
1513
static void __fanout_link(struct sock *sk, struct packet_sock *po)
net/packet/af_packet.c
1526
static void __fanout_unlink(struct sock *sk, struct packet_sock *po)
net/packet/af_packet.c
1547
static bool match_fanout_group(struct packet_type *ptype, struct sock *sk)
net/packet/af_packet.c
1648
static bool __fanout_id_is_free(struct sock *sk, u16 candidate_id)
net/packet/af_packet.c
1661
static bool fanout_find_new_id(struct sock *sk, u16 *new_id)
net/packet/af_packet.c
1678
static int fanout_add(struct sock *sk, struct fanout_args *args)
net/packet/af_packet.c
174
static int packet_set_ring(struct sock *sk, union tpacket_req_u *req_u,
net/packet/af_packet.c
1819
static struct packet_fanout *fanout_release(struct sock *sk)
net/packet/af_packet.c
1860
struct sock *sk;
net/packet/af_packet.c
1923
static void packet_parse_headers(struct sk_buff *skb, struct socket *sock)
net/packet/af_packet.c
1928
sock->type == SOCK_RAW) {
net/packet/af_packet.c
1947
static int packet_sendmsg_spkt(struct socket *sock, struct msghdr *msg,
net/packet/af_packet.c
1950
struct sock *sk = sock->sk;
net/packet/af_packet.c
2060
packet_parse_headers(skb, sock);
net/packet/af_packet.c
2074
const struct sock *sk,
net/packet/af_packet.c
2119
struct sock *sk = NULL;
net/packet/af_packet.c
213
static void packet_flush_mclist(struct sock *sk);
net/packet/af_packet.c
2232
struct sock *sk = NULL;
net/packet/af_packet.c
243
static void __fanout_unlink(struct sock *sk, struct packet_sock *po);
net/packet/af_packet.c
244
static void __fanout_link(struct sock *sk, struct packet_sock *po);
net/packet/af_packet.c
2576
struct socket *sock = po->sk.sk_socket;
net/packet/af_packet.c
2595
if (sock->type == SOCK_DGRAM) {
net/packet/af_packet.c
2644
packet_parse_headers(skb, sock);
net/packet/af_packet.c
2919
static struct sk_buff *packet_alloc_skb(struct sock *sk, size_t prepad,
net/packet/af_packet.c
2945
static int packet_snd(struct socket *sock, struct msghdr *msg, size_t len)
net/packet/af_packet.c
2947
struct sock *sk = sock->sk;
net/packet/af_packet.c
2977
if (sock->type == SOCK_DGRAM) {
net/packet/af_packet.c
2999
if (sock->type == SOCK_RAW)
net/packet/af_packet.c
3033
if (sock->type == SOCK_DGRAM) {
net/packet/af_packet.c
3049
if ((sock->type == SOCK_RAW &&
net/packet/af_packet.c
3072
packet_parse_headers(skb, sock);
net/packet/af_packet.c
3103
static int packet_sendmsg(struct socket *sock, struct msghdr *msg, size_t len)
net/packet/af_packet.c
3105
struct sock *sk = sock->sk;
net/packet/af_packet.c
3114
return packet_snd(sock, msg, len);
net/packet/af_packet.c
3122
static int packet_release(struct socket *sock)
net/packet/af_packet.c
3124
struct sock *sk = sock->sk;
net/packet/af_packet.c
3180
sock->sk = NULL;
net/packet/af_packet.c
3195
static int packet_do_bind(struct sock *sk, const char *name, int ifindex,
net/packet/af_packet.c
3289
static int packet_bind_spkt(struct socket *sock, struct sockaddr_unsized *uaddr,
net/packet/af_packet.c
3292
struct sock *sk = sock->sk;
net/packet/af_packet.c
3311
static int packet_bind(struct socket *sock, struct sockaddr_unsized *uaddr, int addr_len)
net/packet/af_packet.c
3314
struct sock *sk = sock->sk;
net/packet/af_packet.c
3338
static int packet_create(struct net *net, struct socket *sock, int protocol,
net/packet/af_packet.c
3341
struct sock *sk;
net/packet/af_packet.c
3348
if (sock->type != SOCK_DGRAM && sock->type != SOCK_RAW &&
net/packet/af_packet.c
3349
sock->type != SOCK_PACKET)
net/packet/af_packet.c
3352
sock->state = SS_UNCONNECTED;
net/packet/af_packet.c
3359
sock->ops = &packet_ops;
net/packet/af_packet.c
336
static void __register_prot_hook(struct sock *sk)
net/packet/af_packet.c
3360
if (sock->type == SOCK_PACKET)
net/packet/af_packet.c
3361
sock->ops = &packet_ops_spkt;
net/packet/af_packet.c
3368
sock_init_data(sock, sk);
net/packet/af_packet.c
3387
if (sock->type == SOCK_PACKET)
net/packet/af_packet.c
3416
static int packet_recvmsg(struct socket *sock, struct msghdr *msg, size_t len,
net/packet/af_packet.c
3419
struct sock *sk = sock->sk;
net/packet/af_packet.c
3483
if (sock->type != SOCK_PACKET) {
net/packet/af_packet.c
3489
sll->sll_protocol = (sock->type == SOCK_DGRAM) ?
net/packet/af_packet.c
3503
if (sock->type == SOCK_PACKET) {
net/packet/af_packet.c
351
static void register_prot_hook(struct sock *sk)
net/packet/af_packet.c
3547
} else if (unlikely(sock->type == SOCK_DGRAM && eth_type_vlan(skb->protocol))) {
net/packet/af_packet.c
3581
static int packet_getname_spkt(struct socket *sock, struct sockaddr *uaddr,
net/packet/af_packet.c
3585
struct sock *sk = sock->sk;
net/packet/af_packet.c
3601
static int packet_getname(struct socket *sock, struct sockaddr *uaddr,
net/packet/af_packet.c
3605
struct sock *sk = sock->sk;
net/packet/af_packet.c
363
static void __unregister_prot_hook(struct sock *sk, bool sync)
net/packet/af_packet.c
3683
static int packet_mc_add(struct sock *sk, struct packet_mreq_max *mreq)
net/packet/af_packet.c
3739
static int packet_mc_drop(struct sock *sk, struct packet_mreq_max *mreq)
net/packet/af_packet.c
3765
static void packet_flush_mclist(struct sock *sk)
net/packet/af_packet.c
3787
packet_setsockopt(struct socket *sock, int level, int optname, sockptr_t optval,
net/packet/af_packet.c
3790
struct sock *sk = sock->sk;
net/packet/af_packet.c
385
static void unregister_prot_hook(struct sock *sk, bool sync)
net/packet/af_packet.c
3956
if (sock->type != SOCK_RAW)
net/packet/af_packet.c
4059
static int packet_getsockopt(struct socket *sock, int level, int optname,
net/packet/af_packet.c
4064
struct sock *sk = sock->sk;
net/packet/af_packet.c
4192
struct sock *sk;
net/packet/af_packet.c
4246
static int packet_ioctl(struct socket *sock, unsigned int cmd,
net/packet/af_packet.c
4249
struct sock *sk = sock->sk;
net/packet/af_packet.c
4285
return inet_dgram_ops.ioctl(sock, cmd, arg);
net/packet/af_packet.c
4294
static __poll_t packet_poll(struct file *file, struct socket *sock,
net/packet/af_packet.c
4297
struct sock *sk = sock->sk;
net/packet/af_packet.c
4299
__poll_t mask = datagram_poll(file, sock, wait);
net/packet/af_packet.c
4326
struct socket *sock = file->private_data;
net/packet/af_packet.c
4327
struct sock *sk = sock->sk;
net/packet/af_packet.c
4336
struct socket *sock = file->private_data;
net/packet/af_packet.c
4337
struct sock *sk = sock->sk;
net/packet/af_packet.c
4416
static int packet_set_ring(struct sock *sk, union tpacket_req_u *req_u,
net/packet/af_packet.c
4587
static int packet_mmap(struct file *file, struct socket *sock,
net/packet/af_packet.c
4590
struct sock *sk = sock->sk;
net/packet/af_packet.c
4729
struct sock *s = sk_entry(v);
net/packet/af_packet.c
788
struct sock *sk = &po->sk;
net/packet/diag.c
129
static int sk_diag_fill(struct sock *sk, struct sk_buff *skb,
net/packet/diag.c
193
struct sock *sk;
net/packet/internal.h
106
struct sock sk;
net/packet/internal.h
92
struct sock __rcu *arr[] __counted_by(max_num_members);
net/packet/internal.h
96
int sock;
net/phonet/af_phonet.c
227
int pn_skb_send(struct sock *sk, struct sk_buff *skb,
net/phonet/af_phonet.c
255
struct sock *sk = pn_find_sock_by_res(net, res);
net/phonet/af_phonet.c
397
struct sock *sk = pn_find_sock_by_res(net, sa.spn_resource);
net/phonet/af_phonet.c
405
struct sock *sk = pn_find_sock_by_sa(net, &sa);
net/phonet/af_phonet.c
50
static int pn_socket_create(struct net *net, struct socket *sock, int protocol,
net/phonet/af_phonet.c
53
struct sock *sk;
net/phonet/af_phonet.c
63
switch (sock->type) {
net/phonet/af_phonet.c
82
if (sock->type != pnp->sock_type) {
net/phonet/af_phonet.c
93
sock_init_data(sock, sk);
net/phonet/af_phonet.c
94
sock->state = SS_UNCONNECTED;
net/phonet/af_phonet.c
95
sock->ops = pnp->ops;
net/phonet/datagram.c
111
static int pn_recvmsg(struct sock *sk, struct msghdr *msg, size_t len,
net/phonet/datagram.c
157
static int pn_backlog_rcv(struct sock *sk, struct sk_buff *skb)
net/phonet/datagram.c
23
static int pn_backlog_rcv(struct sock *sk, struct sk_buff *skb);
net/phonet/datagram.c
26
static void pn_sock_close(struct sock *sk, long timeout)
net/phonet/datagram.c
31
static int pn_ioctl(struct sock *sk, int cmd, int *karg)
net/phonet/datagram.c
59
static void pn_destruct(struct sock *sk)
net/phonet/datagram.c
64
static int pn_init(struct sock *sk)
net/phonet/datagram.c
70
static int pn_sendmsg(struct sock *sk, struct msghdr *msg, size_t len)
net/phonet/pep-gprs.c
138
static void gprs_data_ready(struct sock *sk)
net/phonet/pep-gprs.c
151
static void gprs_write_space(struct sock *sk)
net/phonet/pep-gprs.c
180
struct sock *sk = gp->sk;
net/phonet/pep-gprs.c
241
int gprs_attach(struct sock *sk)
net/phonet/pep-gprs.c
27
struct sock *sk;
net/phonet/pep-gprs.c
28
void (*old_state_change)(struct sock *);
net/phonet/pep-gprs.c
29
void (*old_data_ready)(struct sock *);
net/phonet/pep-gprs.c
295
void gprs_detach(struct sock *sk)
net/phonet/pep-gprs.c
30
void (*old_write_space)(struct sock *);
net/phonet/pep-gprs.c
65
static void gprs_state_change(struct sock *sk)
net/phonet/pep.c
1002
static int pep_init(struct sock *sk)
net/phonet/pep.c
1021
static int pep_setsockopt(struct sock *sk, int level, int optname,
net/phonet/pep.c
1083
static int pep_getsockopt(struct sock *sk, int level, int optname,
net/phonet/pep.c
109
static int pep_indicate(struct sock *sk, u8 id, u8 code,
net/phonet/pep.c
1125
static int pipe_skb_send(struct sock *sk, struct sk_buff *skb)
net/phonet/pep.c
1155
static int pep_sendmsg(struct sock *sk, struct msghdr *msg, size_t len)
net/phonet/pep.c
1234
int pep_writeable(struct sock *sk)
net/phonet/pep.c
1241
int pep_write(struct sock *sk, struct sk_buff *skb)
net/phonet/pep.c
1272
struct sk_buff *pep_read(struct sock *sk)
net/phonet/pep.c
1281
static int pep_recvmsg(struct sock *sk, struct msghdr *msg, size_t len,
net/phonet/pep.c
130
static int pipe_handler_request(struct sock *sk, u8 id, u8 code,
net/phonet/pep.c
1338
static void pep_sock_unhash(struct sock *sk)
net/phonet/pep.c
1341
struct sock *skparent = NULL;
net/phonet/pep.c
149
static int pipe_handler_send_created_ind(struct sock *sk)
net/phonet/pep.c
161
static int pep_accept_conn(struct sock *sk, struct sk_buff *skb)
net/phonet/pep.c
182
static int pep_reject_conn(struct sock *sk, struct sk_buff *skb, u8 code,
net/phonet/pep.c
192
static int pep_ctrlreq_error(struct sock *sk, struct sk_buff *oskb, u8 code,
net/phonet/pep.c
219
static int pipe_snd_status(struct sock *sk, u8 type, u8 status, gfp_t priority)
net/phonet/pep.c
229
static void pipe_grant_credits(struct sock *sk, gfp_t priority)
net/phonet/pep.c
254
static int pipe_rcv_status(struct sock *sk, struct sk_buff *skb)
net/phonet/pep.c
306
static int pipe_rcv_created(struct sock *sk, struct sk_buff *skb)
net/phonet/pep.c
335
static int pipe_do_rcv(struct sock *sk, struct sk_buff *skb)
net/phonet/pep.c
462
static void pipe_destruct(struct sock *sk)
net/phonet/pep.c
484
static int pep_connresp_rcv(struct sock *sk, struct sk_buff *skb)
net/phonet/pep.c
526
static int pep_enableresp_rcv(struct sock *sk, struct sk_buff *skb)
net/phonet/pep.c
538
static void pipe_start_flow_control(struct sock *sk)
net/phonet/pep.c
551
static int pipe_handler_do_rcv(struct sock *sk, struct sk_buff *skb)
net/phonet/pep.c
627
static struct sock *pep_find_pipe(const struct hlist_head *hlist,
net/phonet/pep.c
631
struct sock *sknode;
net/phonet/pep.c
656
static int pep_do_rcv(struct sock *sk, struct sk_buff *skb)
net/phonet/pep.c
659
struct sock *sknode;
net/phonet/pep.c
71
static struct sk_buff *pep_alloc_skb(struct sock *sk, const void *payload,
net/phonet/pep.c
732
static int pipe_do_remove(struct sock *sk)
net/phonet/pep.c
751
static void pep_sock_close(struct sock *sk, long timeout)
net/phonet/pep.c
779
static struct sock *pep_sock_accept(struct sock *sk,
net/phonet/pep.c
783
struct sock *newsk = NULL;
net/phonet/pep.c
87
static int pep_reply(struct sock *sk, struct sk_buff *oskb, u8 code,
net/phonet/pep.c
902
static int pep_sock_connect(struct sock *sk, struct sockaddr_unsized *addr,
net/phonet/pep.c
924
static int pep_sock_enable(struct sock *sk, struct sockaddr *addr, int len)
net/phonet/pep.c
938
static unsigned int pep_first_packet_length(struct sock *sk)
net/phonet/pep.c
969
static int pep_ioctl(struct sock *sk, int cmd, int *karg)
net/phonet/socket.c
111
struct sock *sknode;
net/phonet/socket.c
132
int pn_sock_hash(struct sock *sk)
net/phonet/socket.c
144
void pn_sock_unhash(struct sock *sk)
net/phonet/socket.c
156
static int pn_socket_bind(struct socket *sock, struct sockaddr_unsized *addr, int len)
net/phonet/socket.c
158
struct sock *sk = sock->sk;
net/phonet/socket.c
202
static int pn_socket_autobind(struct socket *sock)
net/phonet/socket.c
209
err = pn_socket_bind(sock, (struct sockaddr_unsized *)&sa,
net/phonet/socket.c
218
if (err != -EINVAL || unlikely(!pn_port(pn_sk(sock->sk)->sobject)))
net/phonet/socket.c
223
static int pn_socket_connect(struct socket *sock, struct sockaddr_unsized *addr,
net/phonet/socket.c
226
struct sock *sk = sock->sk;
net/phonet/socket.c
233
if (pn_socket_autobind(sock))
net/phonet/socket.c
242
switch (sock->state) {
net/phonet/socket.c
259
sock->state = SS_CONNECTING;
net/phonet/socket.c
263
sock->state = SS_UNCONNECTED;
net/phonet/socket.c
28
static int pn_socket_release(struct socket *sock)
net/phonet/socket.c
294
sock->state = err ? SS_UNCONNECTED : SS_CONNECTED;
net/phonet/socket.c
30
struct sock *sk = sock->sk;
net/phonet/socket.c
300
static int pn_socket_accept(struct socket *sock, struct socket *newsock,
net/phonet/socket.c
303
struct sock *sk = sock->sk;
net/phonet/socket.c
304
struct sock *newsk;
net/phonet/socket.c
320
static int pn_socket_getname(struct socket *sock, struct sockaddr *addr,
net/phonet/socket.c
323
struct sock *sk = sock->sk;
net/phonet/socket.c
33
sock->sk = NULL;
net/phonet/socket.c
335
static __poll_t pn_socket_poll(struct file *file, struct socket *sock,
net/phonet/socket.c
338
struct sock *sk = sock->sk;
net/phonet/socket.c
361
static int pn_socket_ioctl(struct socket *sock, unsigned int cmd,
net/phonet/socket.c
364
struct sock *sk = sock->sk;
net/phonet/socket.c
398
static int pn_socket_listen(struct socket *sock, int backlog)
net/phonet/socket.c
400
struct sock *sk = sock->sk;
net/phonet/socket.c
403
if (pn_socket_autobind(sock))
net/phonet/socket.c
407
if (sock->state != SS_UNCONNECTED) {
net/phonet/socket.c
422
static int pn_socket_sendmsg(struct socket *sock, struct msghdr *m,
net/phonet/socket.c
425
struct sock *sk = sock->sk;
net/phonet/socket.c
427
if (pn_socket_autobind(sock))
net/phonet/socket.c
473
int pn_sock_get_port(struct sock *sk, unsigned short sport)
net/phonet/socket.c
479
struct sock *tmpsk;
net/phonet/socket.c
522
static struct sock *pn_sock_get_idx(struct seq_file *seq, loff_t pos)
net/phonet/socket.c
526
struct sock *sknode;
net/phonet/socket.c
542
static struct sock *pn_sock_get_next(struct seq_file *seq, struct sock *sk)
net/phonet/socket.c
562
struct sock *sk;
net/phonet/socket.c
585
struct sock *sk = v;
net/phonet/socket.c
611
struct sock __rcu *sk[256];
net/phonet/socket.c
617
struct sock *pn_find_sock_by_res(struct net *net, u8 res)
net/phonet/socket.c
619
struct sock *sk;
net/phonet/socket.c
634
int pn_sock_bind_res(struct sock *sk, u8 res)
net/phonet/socket.c
655
int pn_sock_unbind_res(struct sock *sk, u8 res)
net/phonet/socket.c
66
struct sock *pn_find_sock_by_sa(struct net *net, const struct sockaddr_pn *spn)
net/phonet/socket.c
676
void pn_sock_unbind_all_res(struct sock *sk)
net/phonet/socket.c
68
struct sock *sknode;
net/phonet/socket.c
69
struct sock *rval = NULL;
net/phonet/socket.c
697
static struct sock __rcu **pn_res_get_idx(struct seq_file *seq, loff_t pos)
net/phonet/socket.c
715
static struct sock __rcu **pn_res_get_next(struct seq_file *seq, struct sock __rcu **sk)
net/phonet/socket.c
737
struct sock __rcu **sk;
net/phonet/socket.c
759
struct sock __rcu **psk = v;
net/phonet/socket.c
760
struct sock *sk = rcu_dereference_protected(*psk,
net/psp/psp.h
24
struct psp_dev *psp_dev_get_for_sock(struct sock *sk);
net/psp/psp.h
26
int psp_sock_assoc_set_rx(struct sock *sk, struct psp_assoc *pas,
net/psp/psp.h
29
int psp_sock_assoc_set_tx(struct sock *sk, struct psp_dev *psd,
net/psp/psp_main.c
193
const struct sock *sk = skb->sk;
net/psp/psp_sock.c
12
struct psp_dev *psp_dev_get_for_sock(struct sock *sk)
net/psp/psp_sock.c
124
void psp_sk_assoc_free(struct sock *sk)
net/psp/psp_sock.c
132
int psp_sock_assoc_set_rx(struct sock *sk, struct psp_assoc *pas,
net/psp/psp_sock.c
158
static int psp_sock_recv_queue_check(struct sock *sk, struct psp_assoc *pas)
net/psp/psp_sock.c
177
int psp_sock_assoc_set_tx(struct sock *sk, struct psp_dev *psd,
net/psp/psp_sock.c
266
void psp_twsk_init(struct inet_timewait_sock *tw, const struct sock *sk)
net/psp/psp_sock.c
284
void psp_reply_set_decrypted(const struct sock *sk, struct sk_buff *skb)
net/psp/psp_sock.c
30
psp_validate_xmit(struct sock *sk, struct net_device *dev, struct sk_buff *skb)
net/qrtr/af_qrtr.c
1028
static int qrtr_recvmsg(struct socket *sock, struct msghdr *msg,
net/qrtr/af_qrtr.c
1032
struct sock *sk = sock->sk;
net/qrtr/af_qrtr.c
1084
static int qrtr_connect(struct socket *sock, struct sockaddr_unsized *saddr,
net/qrtr/af_qrtr.c
1088
struct qrtr_sock *ipc = qrtr_sk(sock->sk);
net/qrtr/af_qrtr.c
1089
struct sock *sk = sock->sk;
net/qrtr/af_qrtr.c
1098
sock->state = SS_UNCONNECTED;
net/qrtr/af_qrtr.c
1100
rc = qrtr_autobind(sock);
net/qrtr/af_qrtr.c
1107
sock->state = SS_CONNECTED;
net/qrtr/af_qrtr.c
1115
static int qrtr_getname(struct socket *sock, struct sockaddr *saddr,
net/qrtr/af_qrtr.c
1118
struct qrtr_sock *ipc = qrtr_sk(sock->sk);
net/qrtr/af_qrtr.c
1120
struct sock *sk = sock->sk;
net/qrtr/af_qrtr.c
1142
static int qrtr_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
net/qrtr/af_qrtr.c
1145
struct qrtr_sock *ipc = qrtr_sk(sock->sk);
net/qrtr/af_qrtr.c
1146
struct sock *sk = sock->sk;
net/qrtr/af_qrtr.c
1202
static int qrtr_release(struct socket *sock)
net/qrtr/af_qrtr.c
1204
struct sock *sk = sock->sk;
net/qrtr/af_qrtr.c
1219
sock->sk = NULL;
net/qrtr/af_qrtr.c
1257
static int qrtr_create(struct net *net, struct socket *sock,
net/qrtr/af_qrtr.c
1261
struct sock *sk;
net/qrtr/af_qrtr.c
1263
if (sock->type != SOCK_DGRAM)
net/qrtr/af_qrtr.c
1280
sock_init_data(sock, sk);
net/qrtr/af_qrtr.c
1281
sock->ops = &qrtr_proto_ops;
net/qrtr/af_qrtr.c
774
static int __qrtr_bind(struct socket *sock,
net/qrtr/af_qrtr.c
777
struct qrtr_sock *ipc = qrtr_sk(sock->sk);
net/qrtr/af_qrtr.c
778
struct sock *sk = sock->sk;
net/qrtr/af_qrtr.c
806
static int qrtr_autobind(struct socket *sock)
net/qrtr/af_qrtr.c
808
struct sock *sk = sock->sk;
net/qrtr/af_qrtr.c
818
return __qrtr_bind(sock, &addr, 1);
net/qrtr/af_qrtr.c
822
static int qrtr_bind(struct socket *sock, struct sockaddr_unsized *saddr, int len)
net/qrtr/af_qrtr.c
825
struct qrtr_sock *ipc = qrtr_sk(sock->sk);
net/qrtr/af_qrtr.c
826
struct sock *sk = sock->sk;
net/qrtr/af_qrtr.c
836
rc = __qrtr_bind(sock, addr, sock_flag(sk, SOCK_ZAPPED));
net/qrtr/af_qrtr.c
895
static int qrtr_sendmsg(struct socket *sock, struct msghdr *msg, size_t len)
net/qrtr/af_qrtr.c
901
struct qrtr_sock *ipc = qrtr_sk(sock->sk);
net/qrtr/af_qrtr.c
902
struct sock *sk = sock->sk;
net/qrtr/af_qrtr.c
91
struct sock sk;
net/qrtr/af_qrtr.c
928
rc = qrtr_autobind(sock);
net/qrtr/af_qrtr.c
96
static inline struct qrtr_sock *qrtr_sk(struct sock *sk)
net/qrtr/ns.c
152
return kernel_sendmsg(qrtr_ns.sock, &msg, &iv, 1, sizeof(pkt));
net/qrtr/ns.c
179
ret = kernel_sendmsg(qrtr_ns.sock, &msg, &iv, 1, sizeof(pkt));
net/qrtr/ns.c
210
ret = kernel_sendmsg(qrtr_ns.sock, &msg, &iv, 1, sizeof(pkt));
net/qrtr/ns.c
22
struct socket *sock;
net/qrtr/ns.c
28
void (*saved_data_ready)(struct sock *sk);
net/qrtr/ns.c
345
ret = kernel_sendmsg(qrtr_ns.sock, &msg, &iv, 1, sizeof(pkt));
net/qrtr/ns.c
406
ret = kernel_sendmsg(qrtr_ns.sock, &msg, &iv, 1, sizeof(pkt));
net/qrtr/ns.c
490
ret = kernel_sendmsg(qrtr_ns.sock, &msg, &iv, 1, sizeof(pkt));
net/qrtr/ns.c
660
msglen = kernel_recvmsg(qrtr_ns.sock, &msg, &iv, 1,
net/qrtr/ns.c
729
static void qrtr_ns_data_ready(struct sock *sk)
net/qrtr/ns.c
745
PF_QIPCRTR, &qrtr_ns.sock);
net/qrtr/ns.c
749
ret = kernel_getsockname(qrtr_ns.sock, (struct sockaddr *)&sq);
net/qrtr/ns.c
761
qrtr_ns.saved_data_ready = qrtr_ns.sock->sk->sk_data_ready;
net/qrtr/ns.c
762
qrtr_ns.sock->sk->sk_data_ready = qrtr_ns_data_ready;
net/qrtr/ns.c
767
ret = kernel_bind(qrtr_ns.sock, (struct sockaddr_unsized *)&sq, sizeof(sq));
net/qrtr/ns.c
796
module_put(qrtr_ns.sock->ops->owner);
net/qrtr/ns.c
797
module_put(qrtr_ns.sock->sk->sk_prot_creator->owner);
net/qrtr/ns.c
802
write_lock_bh(&qrtr_ns.sock->sk->sk_callback_lock);
net/qrtr/ns.c
803
qrtr_ns.sock->sk->sk_data_ready = qrtr_ns.saved_data_ready;
net/qrtr/ns.c
804
write_unlock_bh(&qrtr_ns.sock->sk->sk_callback_lock);
net/qrtr/ns.c
808
sock_release(qrtr_ns.sock);
net/qrtr/ns.c
815
write_lock_bh(&qrtr_ns.sock->sk->sk_callback_lock);
net/qrtr/ns.c
816
qrtr_ns.sock->sk->sk_data_ready = qrtr_ns.saved_data_ready;
net/qrtr/ns.c
817
write_unlock_bh(&qrtr_ns.sock->sk->sk_callback_lock);
net/qrtr/ns.c
829
__module_get(qrtr_ns.sock->ops->owner);
net/qrtr/ns.c
830
__module_get(qrtr_ns.sock->sk->sk_prot_creator->owner);
net/qrtr/ns.c
831
sock_release(qrtr_ns.sock);
net/rds/af_rds.c
113
static int rds_getname(struct socket *sock, struct sockaddr *uaddr,
net/rds/af_rds.c
116
struct rds_sock *rs = rds_sk_to_rs(sock->sk);
net/rds/af_rds.c
211
static __poll_t rds_poll(struct file *file, struct socket *sock,
net/rds/af_rds.c
214
struct sock *sk = sock->sk;
net/rds/af_rds.c
254
static int rds_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
net/rds/af_rds.c
256
struct rds_sock *rs = rds_sk_to_rs(sock->sk);
net/rds/af_rds.c
385
static int rds_enable_recvtstamp(struct sock *sk, sockptr_t optval,
net/rds/af_rds.c
436
static int rds_setsockopt(struct socket *sock, int level, int optname,
net/rds/af_rds.c
439
struct rds_sock *rs = rds_sk_to_rs(sock->sk);
net/rds/af_rds.c
440
struct net *net = sock_net(sock->sk);
net/rds/af_rds.c
468
lock_sock(sock->sk);
net/rds/af_rds.c
470
release_sock(sock->sk);
net/rds/af_rds.c
474
lock_sock(sock->sk);
net/rds/af_rds.c
475
ret = rds_enable_recvtstamp(sock->sk, optval, optlen, optname);
net/rds/af_rds.c
476
release_sock(sock->sk);
net/rds/af_rds.c
488
static int rds_getsockopt(struct socket *sock, int level, int optname,
net/rds/af_rds.c
491
struct rds_sock *rs = rds_sk_to_rs(sock->sk);
net/rds/af_rds.c
503
ret = rds_info_getsockopt(sock, optname, opt);
net/rds/af_rds.c
544
static int rds_connect(struct socket *sock, struct sockaddr_unsized *uaddr,
net/rds/af_rds.c
547
struct sock *sk = sock->sk;
net/rds/af_rds.c
59
static int rds_release(struct socket *sock)
net/rds/af_rds.c
61
struct sock *sk = sock->sk;
net/rds/af_rds.c
666
static void rds_sock_destruct(struct sock *sk)
net/rds/af_rds.c
674
static int __rds_create(struct socket *sock, struct sock *sk, int protocol)
net/rds/af_rds.c
678
sock_init_data(sock, sk);
net/rds/af_rds.c
679
sock->ops = &rds_proto_ops;
net/rds/af_rds.c
704
static int rds_create(struct net *net, struct socket *sock, int protocol,
net/rds/af_rds.c
707
struct sock *sk;
net/rds/af_rds.c
709
if (sock->type != SOCK_SEQPACKET || protocol)
net/rds/af_rds.c
716
return __rds_create(sock, sk, protocol);
net/rds/af_rds.c
735
static void rds_sock_inc_info(struct socket *sock, unsigned int len,
net/rds/af_rds.c
739
struct net *net = sock_net(sock->sk);
net/rds/af_rds.c
778
static void rds6_sock_inc_info(struct socket *sock, unsigned int len,
net/rds/af_rds.c
782
struct net *net = sock_net(sock->sk);
net/rds/af_rds.c
814
static void rds_sock_info(struct socket *sock, unsigned int len,
net/rds/af_rds.c
818
struct net *net = sock_net(sock->sk);
net/rds/af_rds.c
874
static void rds6_sock_info(struct socket *sock, unsigned int len,
net/rds/af_rds.c
878
struct net *net = sock_net(sock->sk);
net/rds/af_rds.c
89
sock->sk = NULL;
net/rds/bind.c
163
int rds_bind(struct socket *sock, struct sockaddr_unsized *uaddr, int addr_len)
net/rds/bind.c
165
struct sock *sk = sock->sk;
net/rds/bind.c
248
trans->laddr_check(sock_net(sock->sk),
net/rds/bind.c
254
trans = rds_trans_get_preferred(sock_net(sock->sk),
net/rds/connection.c
566
static void rds_conn_message_info_cmn(struct socket *sock, unsigned int len,
net/rds/connection.c
571
struct net *net = sock_net(sock->sk);
net/rds/connection.c
636
static void rds_conn_message_info(struct socket *sock, unsigned int len,
net/rds/connection.c
641
rds_conn_message_info_cmn(sock, len, iter, lens, want_send, false);
net/rds/connection.c
645
static void rds6_conn_message_info(struct socket *sock, unsigned int len,
net/rds/connection.c
650
rds_conn_message_info_cmn(sock, len, iter, lens, want_send, true);
net/rds/connection.c
654
static void rds_conn_message_info_send(struct socket *sock, unsigned int len,
net/rds/connection.c
658
rds_conn_message_info(sock, len, iter, lens, 1);
net/rds/connection.c
662
static void rds6_conn_message_info_send(struct socket *sock, unsigned int len,
net/rds/connection.c
666
rds6_conn_message_info(sock, len, iter, lens, 1);
net/rds/connection.c
670
static void rds_conn_message_info_retrans(struct socket *sock,
net/rds/connection.c
675
rds_conn_message_info(sock, len, iter, lens, 0);
net/rds/connection.c
679
static void rds6_conn_message_info_retrans(struct socket *sock,
net/rds/connection.c
684
rds6_conn_message_info(sock, len, iter, lens, 0);
net/rds/connection.c
688
void rds_for_each_conn_info(struct socket *sock, unsigned int len,
net/rds/connection.c
695
struct net *net = sock_net(sock->sk);
net/rds/connection.c
737
static void rds_walk_conn_path_info(struct socket *sock, unsigned int len,
net/rds/connection.c
744
struct net *net = sock_net(sock->sk);
net/rds/connection.c
855
static void rds_conn_info(struct socket *sock, unsigned int len,
net/rds/connection.c
861
rds_walk_conn_path_info(sock, len, iter, lens,
net/rds/connection.c
868
static void rds6_conn_info(struct socket *sock, unsigned int len,
net/rds/connection.c
874
rds_walk_conn_path_info(sock, len, iter, lens,
net/rds/ib.c
367
static void rds_ib_ic_info(struct socket *sock, unsigned int len,
net/rds/ib.c
373
rds_for_each_conn_info(sock, len, iter, lens,
net/rds/ib.c
381
static void rds6_ib_ic_info(struct socket *sock, unsigned int len,
net/rds/ib.c
387
rds_for_each_conn_info(sock, len, iter, lens,
net/rds/info.c
157
int rds_info_getsockopt(struct socket *sock, int optname, sockopt_t *opt)
net/rds/info.c
227
func(sock, len, &iter, &lens);
net/rds/info.h
18
typedef void (*rds_info_func)(struct socket *sock, unsigned int len,
net/rds/info.h
24
int rds_info_getsockopt(struct socket *sock, int optname, sockopt_t *opt);
net/rds/rds.h
619
struct sock rs_sk;
net/rds/rds.h
694
static inline struct rds_sock *rds_sk_to_rs(const struct sock *sk)
net/rds/rds.h
698
static inline struct sock *rds_rs_to_sk(struct rds_sock *rs)
net/rds/rds.h
761
static inline void __rds_wake_sk_sleep(struct sock *sk)
net/rds/rds.h
772
int rds_bind(struct socket *sock, struct sockaddr_unsized *uaddr, int addr_len);
net/rds/rds.h
816
void rds_for_each_conn_info(struct socket *sock, unsigned int len,
net/rds/rds.h
932
int rds_recvmsg(struct socket *sock, struct msghdr *msg, size_t size,
net/rds/rds.h
945
int rds_sendmsg(struct socket *sock, struct msghdr *msg, size_t payload_len);
net/rds/recv.c
321
struct sock *sk;
net/rds/recv.c
473
struct sock *sk = rds_rs_to_sk(rs);
net/rds/recv.c
686
int rds_recvmsg(struct socket *sock, struct msghdr *msg, size_t size,
net/rds/recv.c
689
struct sock *sk = sock->sk;
net/rds/recv.c
810
struct sock *sk = rds_rs_to_sk(rs);
net/rds/recv.c
88
static void rds_recv_rcvbuf_delta(struct rds_sock *rs, struct sock *sk,
net/rds/send.c
1129
int rds_sendmsg(struct socket *sock, struct msghdr *msg, size_t payload_len)
net/rds/send.c
1131
struct sock *sk = sock->sk;
net/rds/send.c
1323
conn = rds_conn_create_outgoing(sock_net(sock->sk),
net/rds/send.c
1326
sock->sk->sk_allocation,
net/rds/stats.c
111
static void rds_stats_info(struct socket *sock, unsigned int len,
net/rds/tcp.c
100
write_lock_bh(&sock->sk->sk_callback_lock);
net/rds/tcp.c
109
sock->sk->sk_write_space = tc->t_orig_write_space;
net/rds/tcp.c
110
sock->sk->sk_data_ready = tc->t_orig_data_ready;
net/rds/tcp.c
111
sock->sk->sk_state_change = tc->t_orig_state_change;
net/rds/tcp.c
112
sock->sk->sk_user_data = NULL;
net/rds/tcp.c
114
write_unlock_bh(&sock->sk->sk_callback_lock);
net/rds/tcp.c
126
void rds_tcp_reset_callbacks(struct socket *sock,
net/rds/tcp.c
172
lock_sock(sock->sk);
net/rds/tcp.c
173
rds_tcp_set_callbacks(sock, cp);
net/rds/tcp.c
174
release_sock(sock->sk);
net/rds/tcp.c
181
void rds_tcp_set_callbacks(struct socket *sock, struct rds_conn_path *cp)
net/rds/tcp.c
185
rdsdebug("setting sock %p callbacks to tc %p\n", sock, tc);
net/rds/tcp.c
186
write_lock_bh(&sock->sk->sk_callback_lock);
net/rds/tcp.c
194
tc->t_sock = sock;
net/rds/tcp.c
199
if (sock->sk->sk_data_ready == rds_tcp_listen_data_ready)
net/rds/tcp.c
200
sock->sk->sk_data_ready = sock->sk->sk_user_data;
net/rds/tcp.c
202
tc->t_rtn = net_generic(sock_net(sock->sk), rds_tcp_netid);
net/rds/tcp.c
204
tc->t_orig_data_ready = sock->sk->sk_data_ready;
net/rds/tcp.c
205
tc->t_orig_write_space = sock->sk->sk_write_space;
net/rds/tcp.c
206
tc->t_orig_state_change = sock->sk->sk_state_change;
net/rds/tcp.c
208
sock->sk->sk_user_data = cp;
net/rds/tcp.c
209
sock->sk->sk_data_ready = rds_tcp_data_ready;
net/rds/tcp.c
210
sock->sk->sk_write_space = rds_tcp_write_space;
net/rds/tcp.c
211
sock->sk->sk_state_change = rds_tcp_state_change;
net/rds/tcp.c
213
write_unlock_bh(&sock->sk->sk_callback_lock);
net/rds/tcp.c
284
static void rds6_tcp_tc_info(struct socket *sock, unsigned int len,
net/rds/tcp.c
288
struct net *net = sock_net(sock->sk);
net/rds/tcp.c
308
struct sock *sk = tc->t_sock->sk;
net/rds/tcp.c
512
bool rds_tcp_tune(struct socket *sock)
net/rds/tcp.c
514
struct sock *sk = sock->sk;
net/rds/tcp.c
518
tcp_sock_set_nodelay(sock->sk);
net/rds/tcp.c
96
void rds_tcp_restore_callbacks(struct socket *sock,
net/rds/tcp.c
99
rdsdebug("restoring sock %p callbacks from tc %p\n", sock, tc);
net/rds/tcp.h
101
void rds_tcp_data_ready(struct sock *sk);
net/rds/tcp.h
112
void rds_tcp_write_space(struct sock *sk);
net/rds/tcp.h
73
bool rds_tcp_tune(struct socket *sock);
net/rds/tcp.h
74
void rds_tcp_set_callbacks(struct socket *sock, struct rds_conn_path *cp);
net/rds/tcp.h
75
void rds_tcp_reset_callbacks(struct socket *sock, struct rds_conn_path *cp);
net/rds/tcp.h
76
void rds_tcp_restore_callbacks(struct socket *sock,
net/rds/tcp.h
87
void rds_tcp_state_change(struct sock *sk);
net/rds/tcp.h
91
void rds_tcp_listen_stop(struct socket *sock, struct work_struct *acceptor);
net/rds/tcp.h
92
void rds_tcp_listen_data_ready(struct sock *sk);
net/rds/tcp.h
95
void rds_tcp_keepalive(struct socket *sock);
net/rds/tcp_connect.c
100
struct socket *sock = NULL;
net/rds/tcp_connect.c
126
SOCK_STREAM, IPPROTO_TCP, &sock);
net/rds/tcp_connect.c
130
SOCK_STREAM, IPPROTO_TCP, &sock);
net/rds/tcp_connect.c
137
if (!rds_tcp_tune(sock)) {
net/rds/tcp_connect.c
175
ret = kernel_bind(sock, (struct sockaddr_unsized *)addr,
net/rds/tcp_connect.c
204
rds_tcp_set_callbacks(sock, cp);
net/rds/tcp_connect.c
205
ret = kernel_connect(sock, (struct sockaddr_unsized *)addr, addrlen, O_NONBLOCK);
net/rds/tcp_connect.c
211
rds_tcp_keepalive(sock);
net/rds/tcp_connect.c
212
sock = NULL;
net/rds/tcp_connect.c
214
rds_tcp_restore_callbacks(sock, cp->cp_transport_data);
net/rds/tcp_connect.c
219
if (sock)
net/rds/tcp_connect.c
220
sock_release(sock);
net/rds/tcp_connect.c
236
struct socket *sock = tc->t_sock;
net/rds/tcp_connect.c
237
struct sock *sk;
net/rds/tcp_connect.c
241
cp->cp_conn, tc, sock);
net/rds/tcp_connect.c
243
if (sock) {
net/rds/tcp_connect.c
244
sk = sock->sk;
net/rds/tcp_connect.c
248
sock->ops->shutdown(sock, SHUT_WR);
net/rds/tcp_connect.c
286
rds_tcp_restore_callbacks(sock, tc); /* tc->tc_sock = NULL */
net/rds/tcp_connect.c
289
sock_release(sock);
net/rds/tcp_connect.c
40
void rds_tcp_state_change(struct sock *sk)
net/rds/tcp_connect.c
42
void (*state_change)(struct sock *sk);
net/rds/tcp_listen.c
112
struct socket *sock;
net/rds/tcp_listen.c
123
sock = tc->t_sock;
net/rds/tcp_listen.c
128
if (fan_out && conn->c_with_sport_idx && sock &&
net/rds/tcp_listen.c
131
sport = rds_tcp_get_peer_sport(sock);
net/rds/tcp_listen.c
162
struct sock *sk;
net/rds/tcp_listen.c
348
void rds_tcp_listen_data_ready(struct sock *sk)
net/rds/tcp_listen.c
350
void (*ready)(struct sock *sk);
net/rds/tcp_listen.c
384
struct socket *sock = NULL;
net/rds/tcp_listen.c
392
IPPROTO_TCP, &sock);
net/rds/tcp_listen.c
399
sock->sk->sk_reuse = SK_CAN_REUSE;
net/rds/tcp_listen.c
400
tcp_sock_set_nodelay(sock->sk);
net/rds/tcp_listen.c
402
write_lock_bh(&sock->sk->sk_callback_lock);
net/rds/tcp_listen.c
403
sock->sk->sk_user_data = sock->sk->sk_data_ready;
net/rds/tcp_listen.c
404
sock->sk->sk_data_ready = rds_tcp_listen_data_ready;
net/rds/tcp_listen.c
405
write_unlock_bh(&sock->sk->sk_callback_lock);
net/rds/tcp_listen.c
423
ret = kernel_bind(sock, (struct sockaddr_unsized *)&ss, addr_len);
net/rds/tcp_listen.c
430
ret = sock->ops->listen(sock, 64);
net/rds/tcp_listen.c
434
return sock;
net/rds/tcp_listen.c
436
if (sock)
net/rds/tcp_listen.c
437
sock_release(sock);
net/rds/tcp_listen.c
44
void rds_tcp_keepalive(struct socket *sock)
net/rds/tcp_listen.c
441
void rds_tcp_listen_stop(struct socket *sock, struct work_struct *acceptor)
net/rds/tcp_listen.c
443
struct sock *sk;
net/rds/tcp_listen.c
445
if (!sock)
net/rds/tcp_listen.c
448
sk = sock->sk;
net/rds/tcp_listen.c
463
sock_release(sock);
net/rds/tcp_listen.c
50
sock_set_keepalive(sock->sk);
net/rds/tcp_listen.c
51
tcp_sock_set_keepcnt(sock->sk, keepcnt);
net/rds/tcp_listen.c
52
tcp_sock_set_keepidle(sock->sk, keepidle);
net/rds/tcp_listen.c
56
tcp_sock_set_keepintvl(sock->sk, keepidle);
net/rds/tcp_listen.c
60
rds_tcp_get_peer_sport(struct socket *sock)
net/rds/tcp_listen.c
62
struct sock *sk = sock->sk;
net/rds/tcp_listen.c
77
rds_tcp_accept_one_path(struct rds_connection *conn, struct socket *sock)
net/rds/tcp_listen.c
83
sport = rds_tcp_get_peer_sport(sock);
net/rds/tcp_recv.c
266
struct socket *sock = tc->t_sock;
net/rds/tcp_recv.c
277
tcp_read_sock(sock->sk, &desc, rds_tcp_data_recv);
net/rds/tcp_recv.c
281
if (skb_queue_empty_lockless(&sock->sk->sk_receive_queue) &&
net/rds/tcp_recv.c
298
struct socket *sock = tc->t_sock;
net/rds/tcp_recv.c
302
cp->cp_index, tc, sock);
net/rds/tcp_recv.c
304
lock_sock(sock->sk);
net/rds/tcp_recv.c
306
release_sock(sock->sk);
net/rds/tcp_recv.c
311
void rds_tcp_data_ready(struct sock *sk)
net/rds/tcp_recv.c
313
void (*ready)(struct sock *sk);
net/rds/tcp_send.c
179
void rds_tcp_write_space(struct sock *sk)
net/rds/tcp_send.c
181
void (*write_space)(struct sock *sk);
net/rds/tcp_send.c
56
static int rds_tcp_sendmsg(struct socket *sock, void *data, unsigned int len)
net/rds/tcp_send.c
66
return kernel_sendmsg(sock, &msg, &vec, 1, vec.iov_len);
net/rxrpc/af_rxrpc.c
131
static int rxrpc_bind(struct socket *sock, struct sockaddr_unsized *saddr, int len)
net/rxrpc/af_rxrpc.c
135
struct rxrpc_sock *rx = rxrpc_sk(sock->sk);
net/rxrpc/af_rxrpc.c
211
static int rxrpc_listen(struct socket *sock, int backlog)
net/rxrpc/af_rxrpc.c
213
struct sock *sk = sock->sk;
net/rxrpc/af_rxrpc.c
274
struct rxrpc_peer *rxrpc_kernel_lookup_peer(struct socket *sock,
net/rxrpc/af_rxrpc.c
278
struct rxrpc_sock *rx = rxrpc_sk(sock->sk);
net/rxrpc/af_rxrpc.c
340
struct rxrpc_call *rxrpc_kernel_begin_call(struct socket *sock,
net/rxrpc/af_rxrpc.c
356
struct rxrpc_sock *rx = rxrpc_sk(sock->sk);
net/rxrpc/af_rxrpc.c
400
static void rxrpc_dummy_notify_rx(struct sock *sk, struct rxrpc_call *rxcall,
net/rxrpc/af_rxrpc.c
413
void rxrpc_kernel_shutdown_call(struct socket *sock, struct rxrpc_call *call)
net/rxrpc/af_rxrpc.c
419
rxrpc_release_call(rxrpc_sk(sock->sk), call);
net/rxrpc/af_rxrpc.c
439
void rxrpc_kernel_put_call(struct socket *sock, struct rxrpc_call *call)
net/rxrpc/af_rxrpc.c
455
bool rxrpc_kernel_check_life(const struct socket *sock,
net/rxrpc/af_rxrpc.c
47
static void rxrpc_sock_destructor(struct sock *);
net/rxrpc/af_rxrpc.c
473
void rxrpc_kernel_set_notifications(struct socket *sock,
net/rxrpc/af_rxrpc.c
476
struct rxrpc_sock *rx = rxrpc_sk(sock->sk);
net/rxrpc/af_rxrpc.c
487
static int rxrpc_connect(struct socket *sock, struct sockaddr_unsized *addr,
net/rxrpc/af_rxrpc.c
491
struct rxrpc_sock *rx = rxrpc_sk(sock->sk);
net/rxrpc/af_rxrpc.c
52
static inline int rxrpc_writable(struct sock *sk)
net/rxrpc/af_rxrpc.c
538
static int rxrpc_sendmsg(struct socket *sock, struct msghdr *m, size_t len)
net/rxrpc/af_rxrpc.c
541
struct rxrpc_sock *rx = rxrpc_sk(sock->sk);
net/rxrpc/af_rxrpc.c
579
local = rxrpc_lookup_local(sock_net(sock->sk), &rx->srx);
net/rxrpc/af_rxrpc.c
60
static void rxrpc_write_space(struct sock *sk)
net/rxrpc/af_rxrpc.c
616
int rxrpc_sock_set_min_security_level(struct sock *sk, unsigned int val)
net/rxrpc/af_rxrpc.c
632
static int rxrpc_setsockopt(struct socket *sock, int level, int optname,
net/rxrpc/af_rxrpc.c
635
struct rxrpc_sock *rx = rxrpc_sk(sock->sk);
net/rxrpc/af_rxrpc.c
746
static int rxrpc_getsockopt(struct socket *sock, int level, int optname,
net/rxrpc/af_rxrpc.c
775
static __poll_t rxrpc_poll(struct file *file, struct socket *sock,
net/rxrpc/af_rxrpc.c
778
struct sock *sk = sock->sk;
net/rxrpc/af_rxrpc.c
782
sock_poll_wait(file, sock, wait);
net/rxrpc/af_rxrpc.c
802
static int rxrpc_create(struct net *net, struct socket *sock, int protocol,
net/rxrpc/af_rxrpc.c
807
struct sock *sk;
net/rxrpc/af_rxrpc.c
809
_enter("%p,%d", sock, protocol);
net/rxrpc/af_rxrpc.c
816
if (sock->type != SOCK_DGRAM)
net/rxrpc/af_rxrpc.c
819
sock->ops = &rxrpc_rpc_ops;
net/rxrpc/af_rxrpc.c
820
sock->state = SS_UNCONNECTED;
net/rxrpc/af_rxrpc.c
826
sock_init_data(sock, sk);
net/rxrpc/af_rxrpc.c
857
static int rxrpc_shutdown(struct socket *sock, int flags)
net/rxrpc/af_rxrpc.c
859
struct sock *sk = sock->sk;
net/rxrpc/af_rxrpc.c
890
static void rxrpc_purge_oob_queue(struct sock *sk)
net/rxrpc/af_rxrpc.c
907
static void rxrpc_sock_destructor(struct sock *sk)
net/rxrpc/af_rxrpc.c
927
static int rxrpc_release_sock(struct sock *sk)
net/rxrpc/af_rxrpc.c
983
static int rxrpc_release(struct socket *sock)
net/rxrpc/af_rxrpc.c
985
struct sock *sk = sock->sk;
net/rxrpc/af_rxrpc.c
987
_enter("%p{%p}", sock, sk);
net/rxrpc/af_rxrpc.c
992
sock->sk = NULL;
net/rxrpc/ar-internal.h
1278
int rxrpc_encap_rcv(struct sock *, struct sk_buff *);
net/rxrpc/ar-internal.h
1279
void rxrpc_error_report(struct sock *);
net/rxrpc/ar-internal.h
170
struct sock sk;
net/rxrpc/call_accept.c
25
static void rxrpc_dummy_notify(struct sock *sk, struct rxrpc_call *call,
net/rxrpc/call_accept.c
470
int rxrpc_kernel_charge_accept(struct socket *sock, rxrpc_notify_rx_t notify_rx,
net/rxrpc/call_accept.c
476
struct sock *sk;
net/rxrpc/call_accept.c
479
sk = sock->sk;
net/rxrpc/io_thread.c
26
int rxrpc_encap_rcv(struct sock *udp_sk, struct sk_buff *skb)
net/rxrpc/io_thread.c
63
void rxrpc_error_report(struct sock *sk)
net/rxrpc/local_object.c
168
struct sock *usk;
net/rxrpc/local_object.c
30
static void rxrpc_encap_err_rcv(struct sock *sk, struct sk_buff *skb, int err,
net/rxrpc/oob.c
307
struct sk_buff *rxrpc_kernel_dequeue_oob(struct socket *sock,
net/rxrpc/oob.c
310
struct rxrpc_sock *rx = rxrpc_sk(sock->sk);
net/rxrpc/oob.c
39
struct sock *sk;
net/rxrpc/output.c
22
struct sock *sk = socket->sk;
net/rxrpc/peer_object.c
479
struct rxrpc_peer *rxrpc_kernel_get_call_peer(struct socket *sock, struct rxrpc_call *call)
net/rxrpc/recvmsg.c
221
static int rxrpc_recvmsg_challenge(struct socket *sock, struct msghdr *msg,
net/rxrpc/recvmsg.c
233
static int rxrpc_recvmsg_oob(struct socket *sock, struct msghdr *msg,
net/rxrpc/recvmsg.c
236
struct rxrpc_sock *rx = rxrpc_sk(sock->sk);
net/rxrpc/recvmsg.c
254
ret = rxrpc_recvmsg_challenge(sock, msg, skb, flags);
net/rxrpc/recvmsg.c
26
struct sock *sk;
net/rxrpc/recvmsg.c
279
static int rxrpc_recvmsg_data(struct socket *sock, struct rxrpc_call *call,
net/rxrpc/recvmsg.c
284
struct rxrpc_sock *rx = rxrpc_sk(sock->sk);
net/rxrpc/recvmsg.c
320
sock_recv_timestamp(msg, sock->sk, skb);
net/rxrpc/recvmsg.c
407
int rxrpc_recvmsg(struct socket *sock, struct msghdr *msg, size_t len,
net/rxrpc/recvmsg.c
411
struct rxrpc_sock *rx = rxrpc_sk(sock->sk);
net/rxrpc/recvmsg.c
469
ret = rxrpc_recvmsg_oob(sock, msg, flags);
net/rxrpc/recvmsg.c
547
ret = rxrpc_recvmsg_data(sock, call, msg, &msg->msg_iter, len,
net/rxrpc/recvmsg.c
644
int rxrpc_kernel_recv_data(struct socket *sock, struct rxrpc_call *call,
net/rxrpc/recvmsg.c
655
ret = rxrpc_recvmsg_data(sock, call, NULL, iter, *_len, 0, &offset);
net/rxrpc/rxperf.c
105
static void rxperf_rx_new_call(struct sock *sk, struct rxrpc_call *rxcall,
net/rxrpc/rxperf.c
116
static void rxperf_notify_rx(struct sock *sk, struct rxrpc_call *rxcall,
net/rxrpc/rxperf.c
132
static void rxperf_notify_end_reply_tx(struct sock *sock,
net/rxrpc/sendmsg.c
281
static int rxrpc_alloc_txqueue(struct sock *sk, struct rxrpc_call *call)
net/rxrpc/sendmsg.c
327
struct sock *sk = &rx->sk;
net/rxrpc/sendmsg.c
807
int rxrpc_kernel_send_data(struct socket *sock, struct rxrpc_call *call,
net/rxrpc/sendmsg.c
821
ret = rxrpc_send_data(rxrpc_sk(sock->sk), call, msg, len,
net/rxrpc/sendmsg.c
845
bool rxrpc_kernel_abort_call(struct socket *sock, struct rxrpc_call *call,
net/rxrpc/sendmsg.c
871
void rxrpc_kernel_set_tx_length(struct socket *sock, struct rxrpc_call *call,
net/rxrpc/server_key.c
160
int rxrpc_sock_set_security_keyring(struct sock *sk, struct key *keyring)
net/rxrpc/server_key.c
201
int rxrpc_sock_set_manage_response(struct sock *sk, bool set)
net/sched/cls_flow.c
210
struct sock *sk = skb_to_full_sk(skb);
net/sched/cls_flow.c
222
struct sock *sk = skb_to_full_sk(skb);
net/sched/em_meta.c
347
const struct sock *sk = skb_to_full_sk(skb);
net/sched/em_meta.c
358
const struct sock *sk = skb_to_full_sk(skb);
net/sched/em_meta.c
369
const struct sock *sk = skb_to_full_sk(skb);
net/sched/em_meta.c
380
const struct sock *sk = skb_to_full_sk(skb);
net/sched/em_meta.c
391
const struct sock *sk = skb_to_full_sk(skb);
net/sched/em_meta.c
402
const struct sock *sk = skb_to_full_sk(skb);
net/sched/em_meta.c
413
const struct sock *sk = skb_to_full_sk(skb);
net/sched/em_meta.c
424
const struct sock *sk = skb_to_full_sk(skb);
net/sched/em_meta.c
435
const struct sock *sk = skb_to_full_sk(skb);
net/sched/em_meta.c
446
const struct sock *sk = skb_to_full_sk(skb);
net/sched/em_meta.c
457
const struct sock *sk = skb_to_full_sk(skb);
net/sched/em_meta.c
468
const struct sock *sk = skb_to_full_sk(skb);
net/sched/em_meta.c
479
const struct sock *sk = skb_to_full_sk(skb);
net/sched/em_meta.c
499
const struct sock *sk = skb_to_full_sk(skb);
net/sched/em_meta.c
510
const struct sock *sk = skb_to_full_sk(skb);
net/sched/em_meta.c
521
const struct sock *sk = skb_to_full_sk(skb);
net/sched/em_meta.c
532
const struct sock *sk = skb_to_full_sk(skb);
net/sched/em_meta.c
543
const struct sock *sk = skb_to_full_sk(skb);
net/sched/em_meta.c
554
const struct sock *sk = skb_to_full_sk(skb);
net/sched/em_meta.c
565
const struct sock *sk = skb_to_full_sk(skb);
net/sched/em_meta.c
576
const struct sock *sk = skb_to_full_sk(skb);
net/sched/em_meta.c
587
const struct sock *sk = skb_to_full_sk(skb);
net/sched/em_meta.c
598
const struct sock *sk = skb_to_full_sk(skb);
net/sched/sch_etf.c
140
struct sock *sk = skb->sk;
net/sched/sch_etf.c
79
struct sock *sk = nskb->sk;
net/sched/sch_fq.c
262
struct sock *sk)
net/sched/sch_fq.c
318
const struct sock *sk;
net/sched/sch_fq.c
361
struct sock *sk = skb->sk;
net/sched/sch_fq.c
381
sk = (struct sock *)((hash << 1) | 1UL);
net/sched/sch_fq.c
393
sk = (struct sock *)((hash << 1) | 1UL);
net/sched/sch_fq.c
84
struct sock *sk;
net/sched/sch_frag.c
27
static int sch_frag_xmit(struct net *net, struct sock *sk, struct sk_buff *skb)
net/sctp/associola.c
1057
void sctp_assoc_migrate(struct sctp_association *assoc, struct sock *newsk)
net/sctp/associola.c
1060
struct sock *oldsk = assoc->base.sk;
net/sctp/associola.c
1560
struct sock *sk = asoc->base.sk;
net/sctp/associola.c
287
const struct sock *sk,
net/sctp/associola.c
316
struct sock *sk = asoc->base.sk;
net/sctp/associola.c
54
const struct sock *sk,
net/sctp/associola.c
62
sp = sctp_sk((struct sock *)sk);
net/sctp/associola.c
66
asoc->base.sk = (struct sock *)sk;
net/sctp/bind_addr.c
495
int sctp_is_any(struct sock *sk, const union sctp_addr *addr)
net/sctp/bind_addr.c
555
int sctp_is_ep_boundall(struct sock *sk)
net/sctp/diag.c
127
static int inet_sctp_diag_fill(struct sock *sk, struct sctp_association *asoc,
net/sctp/diag.c
22
static void sctp_diag_get_info(struct sock *sk, struct inet_diag_msg *r,
net/sctp/diag.c
234
static size_t inet_assoc_attr_size(struct sock *sk,
net/sctp/diag.c
258
struct sock *sk = ep->base.sk;
net/sctp/diag.c
27
struct sock *sk,
net/sctp/diag.c
302
struct sock *sk = ep->base.sk;
net/sctp/diag.c
357
struct sock *sk = ep->base.sk;
net/sctp/diag.c
373
struct sock *sk = ep->base.sk;
net/sctp/diag.c
414
static void sctp_diag_get_info(struct sock *sk, struct inet_diag_msg *r,
net/sctp/endpointola.c
133
struct sctp_endpoint *sctp_endpoint_new(struct sock *sk, gfp_t gfp)
net/sctp/endpointola.c
158
struct sock *sk = ep->base.sk;
net/sctp/endpointola.c
194
struct sock *sk = ep->base.sk;
net/sctp/endpointola.c
205
struct sock *sk;
net/sctp/endpointola.c
332
struct sock *sk;
net/sctp/endpointola.c
51
struct sock *sk,
net/sctp/input.c
276
int sctp_backlog_rcv(struct sock *sk, struct sk_buff *skb)
net/sctp/input.c
347
static int sctp_add_backlog(struct sock *sk, struct sk_buff *skb)
net/sctp/input.c
372
void sctp_icmp_frag_needed(struct sock *sk, struct sctp_association *asoc,
net/sctp/input.c
408
void sctp_icmp_redirect(struct sock *sk, struct sctp_transport *t,
net/sctp/input.c
431
void sctp_icmp_proto_unreachable(struct sock *sk,
net/sctp/input.c
460
struct sock *sctp_err_lookup(struct net *net, int family, struct sk_buff *skb,
net/sctp/input.c
469
struct sock *sk = NULL;
net/sctp/input.c
541
void sctp_err_finish(struct sock *sk, struct sctp_transport *t)
net/sctp/input.c
552
struct sock *sk = asoc->base.sk;
net/sctp/input.c
616
struct sock *sk;
net/sctp/input.c
638
int sctp_udp_v4_err(struct sock *sk, struct sk_buff *skb)
net/sctp/input.c
67
static int sctp_add_backlog(struct sock *sk, struct sk_buff *skb);
net/sctp/input.c
735
struct sock *sk = ep->base.sk;
net/sctp/input.c
756
struct sock *sk2 = ep2->base.sk;
net/sctp/input.c
803
struct sock *sk = ep->base.sk;
net/sctp/input.c
848
struct sock *sk;
net/sctp/input.c
90
struct sock *sk;
net/sctp/ipv6.c
1027
static int sctp_getname(struct socket *sock, struct sockaddr *uaddr,
net/sctp/ipv6.c
1032
rc = inet6_getname(sock, uaddr, peer);
net/sctp/ipv6.c
1037
rc = sctp_v6_addr_to_user(sctp_sk(sock->sk),
net/sctp/ipv6.c
130
struct sock *sk = asoc->base.sk;
net/sctp/ipv6.c
168
struct sock *sk;
net/sctp/ipv6.c
190
int sctp_udp_v6_err(struct sock *sk, struct sk_buff *skb)
net/sctp/ipv6.c
224
struct sock *sk = skb->sk;
net/sctp/ipv6.c
276
struct flowi *fl, struct sock *sk)
net/sctp/ipv6.c
492
static void sctp_v6_copy_ip_options(struct sock *sk, struct sock *newsk)
net/sctp/ipv6.c
513
static int sctp_v6_ip_options_len(struct sock *sk)
net/sctp/ipv6.c
550
static void sctp_v6_from_sk(union sctp_addr *addr, struct sock *sk)
net/sctp/ipv6.c
560
static void sctp_v6_to_sk_saddr(union sctp_addr *addr, struct sock *sk)
net/sctp/ipv6.c
574
static void sctp_v6_to_sk_daddr(union sctp_addr *addr, struct sock *sk)
net/sctp/ipv6.c
690
struct sock *sk = &sp->inet.sk;
net/sctp/ipv6.c
828
static void sctp_v6_ecn_capable(struct sock *sk)
net/sctp/ipv6.c
921
struct sock *sk = sctp_opt2sk(opt);
net/sctp/objcnt.c
31
SCTP_DBG_OBJCNT(sock);
net/sctp/objcnt.c
46
SCTP_DBG_OBJCNT_ENTRY(sock),
net/sctp/output.c
443
struct sock *sk = head->sk;
net/sctp/output.c
577
struct sock *sk;
net/sctp/output.c
79
struct sock *sk;
net/sctp/outqueue.c
1157
struct sock *sk = ctx->asoc->base.sk;
net/sctp/proc.c
165
struct sock *sk;
net/sctp/proc.c
246
struct sock *sk;
net/sctp/protocol.c
1044
struct sock *sk = skb->sk;
net/sctp/protocol.c
179
static void sctp_v4_copy_ip_options(struct sock *sk, struct sock *newsk)
net/sctp/protocol.c
199
static int sctp_v4_ip_options_len(struct sock *sk)
net/sctp/protocol.c
235
static void sctp_v4_from_sk(union sctp_addr *addr, struct sock *sk)
net/sctp/protocol.c
244
static void sctp_v4_to_sk_saddr(union sctp_addr *addr, struct sock *sk)
net/sctp/protocol.c
250
static void sctp_v4_to_sk_daddr(union sctp_addr *addr, struct sock *sk)
net/sctp/protocol.c
354
struct sock *sk = &sp->inet.sk;
net/sctp/protocol.c
418
struct flowi *fl, struct sock *sk)
net/sctp/protocol.c
596
static void sctp_v4_ecn_capable(struct sock *sk)
net/sctp/protocol.c
641
struct sock *sk;
net/sctp/protocol.c
840
static int sctp_udp_rcv(struct sock *sk, struct sk_buff *skb)
net/sctp/protocol.c
853
struct socket *sock;
net/sctp/protocol.c
859
err = udp_sock_create(net, &udp_conf, &sock);
net/sctp/protocol.c
868
setup_udp_tunnel_sock(net, sock->sk, &tuncfg);
net/sctp/protocol.c
869
net->sctp.udp4_sock = sock->sk;
net/sctp/protocol.c
879
err = udp_sock_create(net, &udp_conf, &sock);
net/sctp/protocol.c
890
setup_udp_tunnel_sock(net, sock->sk, &tuncfg);
net/sctp/protocol.c
891
net->sctp.udp6_sock = sock->sk;
net/sctp/sm_make_chunk.c
1369
struct sock *sk, gfp_t gfp)
net/sctp/sm_make_chunk.c
1427
struct sock *sk;
net/sctp/sm_sideeffect.c
1041
struct sock *sk = asoc->base.sk;
net/sctp/sm_sideeffect.c
236
struct sock *sk = asoc->base.sk;
net/sctp/sm_sideeffect.c
273
struct sock *sk = asoc->base.sk;
net/sctp/sm_sideeffect.c
371
struct sock *sk = asoc->base.sk;
net/sctp/sm_sideeffect.c
417
struct sock *sk = asoc->base.sk;
net/sctp/sm_sideeffect.c
452
struct sock *sk = asoc->base.sk;
net/sctp/sm_sideeffect.c
489
struct sock *sk = asoc->base.sk;
net/sctp/sm_sideeffect.c
876
struct sock *sk = asoc->base.sk;
net/sctp/sm_sideeffect.c
940
struct sock *sk = asoc->base.sk;
net/sctp/sm_statefuns.c
6535
struct sock *sk = asoc->base.sk;
net/sctp/sm_statefuns.c
717
struct sock *sk;
net/sctp/socket.c
1000
static int sctp_setsockopt_bindx(struct sock *sk, struct sockaddr *addrs,
net/sctp/socket.c
101
static void sctp_enter_memory_pressure(struct sock *sk)
net/sctp/socket.c
1057
static int sctp_bind_add(struct sock *sk, struct sockaddr_unsized *addrs,
net/sctp/socket.c
1074
struct sock *sk = ep->base.sk;
net/sctp/socket.c
110
struct sock *sk = asoc->base.sk;
net/sctp/socket.c
1167
static int __sctp_connect(struct sock *sk, struct sockaddr *kaddrs,
net/sctp/socket.c
128
struct sock *sk = asoc->base.sk;
net/sctp/socket.c
1312
static int __sctp_setsockopt_connectx(struct sock *sk, struct sockaddr *kaddrs,
net/sctp/socket.c
1344
static int sctp_setsockopt_connectx_old(struct sock *sk,
net/sctp/socket.c
1357
static int sctp_setsockopt_connectx(struct sock *sk,
net/sctp/socket.c
1388
static int sctp_getsockopt_connectx3(struct sock *sk, int len,
net/sctp/socket.c
1484
static void sctp_close(struct sock *sk, long timeout)
net/sctp/socket.c
1560
static int sctp_error(struct sock *sk, int flags, int err)
net/sctp/socket.c
1595
static int sctp_sendmsg_parse(struct sock *sk, struct sctp_cmsgs *cmsgs,
net/sctp/socket.c
1656
static int sctp_sendmsg_new_asoc(struct sock *sk, __u16 sflags,
net/sctp/socket.c
1755
struct sock *sk = asoc->base.sk;
net/sctp/socket.c
1794
struct sock *sk = asoc->base.sk;
net/sctp/socket.c
1893
static union sctp_addr *sctp_sendmsg_get_daddr(struct sock *sk,
net/sctp/socket.c
193
static void sctp_for_each_rx_skb(struct sctp_association *asoc, struct sock *sk,
net/sctp/socket.c
194
void (*cb)(struct sk_buff *, struct sock *))
net/sctp/socket.c
1942
static int sctp_sendmsg(struct sock *sk, struct msghdr *msg, size_t msg_len)
net/sctp/socket.c
2098
static int sctp_recvmsg(struct sock *sk, struct msghdr *msg, size_t len,
net/sctp/socket.c
210
static inline int sctp_verify_addr(struct sock *sk, union sctp_addr *addr,
net/sctp/socket.c
2219
static int sctp_setsockopt_disable_fragments(struct sock *sk, int *val,
net/sctp/socket.c
2228
static int sctp_setsockopt_events(struct sock *sk, __u8 *sn_type,
net/sctp/socket.c
2277
static int sctp_setsockopt_autoclose(struct sock *sk, u32 *optval,
net/sctp/socket.c
233
struct sctp_association *sctp_id2assoc(struct sock *sk, sctp_assoc_t id)
net/sctp/socket.c
2625
static int sctp_setsockopt_peer_addr_params(struct sock *sk,
net/sctp/socket.c
270
static struct sctp_transport *sctp_addr_id2transport(struct sock *sk,
net/sctp/socket.c
2786
static int __sctp_setsockopt_delayed_ack(struct sock *sk,
net/sctp/socket.c
2839
static int sctp_setsockopt_delayed_ack(struct sock *sk,
net/sctp/socket.c
2877
static int sctp_setsockopt_initmsg(struct sock *sk, struct sctp_initmsg *sinit,
net/sctp/socket.c
2911
static int sctp_setsockopt_default_send_param(struct sock *sk,
net/sctp/socket.c
2969
static int sctp_setsockopt_default_sndinfo(struct sock *sk,
net/sctp/socket.c
3027
static int sctp_setsockopt_primary_addr(struct sock *sk, struct sctp_prim *prim,
net/sctp/socket.c
3065
static int sctp_setsockopt_nodelay(struct sock *sk, int *val,
net/sctp/socket.c
3086
static int sctp_setsockopt_rtoinfo(struct sock *sk,
net/sctp/socket.c
309
static int sctp_bind(struct sock *sk, struct sockaddr_unsized *addr,
net/sctp/socket.c
3150
static int sctp_setsockopt_associnfo(struct sock *sk,
net/sctp/socket.c
3218
static int sctp_setsockopt_mappedv4(struct sock *sk, int *val,
net/sctp/socket.c
3260
static int sctp_setsockopt_maxseg(struct sock *sk,
net/sctp/socket.c
331
static int sctp_get_port_local(struct sock *, union sctp_addr *);
net/sctp/socket.c
3320
static int sctp_setsockopt_peer_primary_addr(struct sock *sk,
net/sctp/socket.c
3381
static int sctp_setsockopt_adaptation_layer(struct sock *sk,
net/sctp/socket.c
3407
static int sctp_setsockopt_context(struct sock *sk,
net/sctp/socket.c
3467
static int sctp_setsockopt_fragment_interleave(struct sock *sk, int *val,
net/sctp/socket.c
3498
static int sctp_setsockopt_partial_delivery_point(struct sock *sk, u32 *val,
net/sctp/socket.c
3526
static int sctp_setsockopt_maxburst(struct sock *sk,
net/sctp/socket.c
3579
static int sctp_setsockopt_auth_chunk(struct sock *sk,
net/sctp/socket.c
3609
static int sctp_setsockopt_hmac_ident(struct sock *sk,
net/sctp/socket.c
3638
static int sctp_setsockopt_auth_key(struct sock *sk,
net/sctp/socket.c
3699
static int sctp_setsockopt_active_key(struct sock *sk,
net/sctp/socket.c
3747
static int sctp_setsockopt_del_key(struct sock *sk,
net/sctp/socket.c
377
static int sctp_do_bind(struct sock *sk, union sctp_addr *addr, int len)
net/sctp/socket.c
3795
static int sctp_setsockopt_deactivate_key(struct sock *sk,
net/sctp/socket.c
3852
static int sctp_setsockopt_auto_asconf(struct sock *sk, int *val,
net/sctp/socket.c
3884
static int sctp_setsockopt_paddr_thresholds(struct sock *sk,
net/sctp/socket.c
3947
static int sctp_setsockopt_recvrcvinfo(struct sock *sk, int *val,
net/sctp/socket.c
3958
static int sctp_setsockopt_recvnxtinfo(struct sock *sk, int *val,
net/sctp/socket.c
3969
static int sctp_setsockopt_pr_supported(struct sock *sk,
net/sctp/socket.c
3988
static int sctp_setsockopt_default_prinfo(struct sock *sk,
net/sctp/socket.c
4040
static int sctp_setsockopt_reconfig_supported(struct sock *sk,
net/sctp/socket.c
4063
static int sctp_setsockopt_enable_strreset(struct sock *sk,
net/sctp/socket.c
4105
static int sctp_setsockopt_reset_streams(struct sock *sk,
net/sctp/socket.c
4129
static int sctp_setsockopt_reset_assoc(struct sock *sk, sctp_assoc_t *associd,
net/sctp/socket.c
4144
static int sctp_setsockopt_add_streams(struct sock *sk,
net/sctp/socket.c
4160
static int sctp_setsockopt_scheduler(struct sock *sk,
net/sctp/socket.c
4203
static int sctp_setsockopt_scheduler_value(struct sock *sk,
net/sctp/socket.c
4238
static int sctp_setsockopt_interleaving_supported(struct sock *sk,
net/sctp/socket.c
4260
static int sctp_setsockopt_reuse_port(struct sock *sk, int *val,
net/sctp/socket.c
4298
static int sctp_setsockopt_event(struct sock *sk, struct sctp_event *param,
net/sctp/socket.c
4341
static int sctp_setsockopt_asconf_supported(struct sock *sk,
net/sctp/socket.c
4371
static int sctp_setsockopt_auth_supported(struct sock *sk,
net/sctp/socket.c
4405
static int sctp_setsockopt_ecn_supported(struct sock *sk,
net/sctp/socket.c
4427
static int sctp_setsockopt_pf_expose(struct sock *sk,
net/sctp/socket.c
4455
static int sctp_setsockopt_encap_port(struct sock *sk,
net/sctp/socket.c
4505
static int sctp_setsockopt_probe_interval(struct sock *sk,
net/sctp/socket.c
4579
static int sctp_setsockopt(struct sock *sk, int level, int optname,
net/sctp/socket.c
4815
static int sctp_connect(struct sock *sk, struct sockaddr *addr,
net/sctp/socket.c
4834
int sctp_inet_connect(struct socket *sock, struct sockaddr_unsized *uaddr,
net/sctp/socket.c
4843
return sctp_connect(sock->sk, (struct sockaddr *)uaddr, addr_len, flags);
net/sctp/socket.c
4847
static int sctp_disconnect(struct sock *sk, int flags)
net/sctp/socket.c
4856
static struct sock *sctp_clone_sock(struct sock *sk,
net/sctp/socket.c
4860
struct sock *newsk = sk_clone(sk, GFP_KERNEL, false);
net/sctp/socket.c
4907
SCTP_DBG_OBJCNT_INC(sock);
net/sctp/socket.c
4934
static struct sock *sctp_accept(struct sock *sk, struct proto_accept_arg *arg)
net/sctp/socket.c
4937
struct sock *newsk = NULL;
net/sctp/socket.c
4979
static int sctp_ioctl(struct sock *sk, int cmd, int *karg)
net/sctp/socket.c
5021
static int sctp_init_sock(struct sock *sk)
net/sctp/socket.c
506
static int sctp_bindx_add(struct sock *sk, struct sockaddr *addrs, int addrcnt)
net/sctp/socket.c
5150
SCTP_DBG_OBJCNT_INC(sock);
net/sctp/socket.c
5161
static void sctp_destroy_sock(struct sock *sk)
net/sctp/socket.c
5184
SCTP_DBG_OBJCNT_DEC(sock);
net/sctp/socket.c
5187
static void sctp_destruct_sock(struct sock *sk)
net/sctp/socket.c
5208
static void sctp_shutdown(struct sock *sk, int how)
net/sctp/socket.c
5227
int sctp_get_sctp_info(struct sock *sk, struct sctp_association *asoc,
net/sctp/socket.c
5486
static int sctp_getsockopt_sctp_status(struct sock *sk, int len,
net/sctp/socket.c
556
static int sctp_send_asconf_add_ip(struct sock *sk,
net/sctp/socket.c
5566
static int sctp_getsockopt_peer_addr_info(struct sock *sk, int len,
net/sctp/socket.c
5629
static int sctp_getsockopt_disable_fragments(struct sock *sk, int len,
net/sctp/socket.c
5651
static int sctp_getsockopt_events(struct sock *sk, int len, char __user *optval,
net/sctp/socket.c
5686
static int sctp_getsockopt_autoclose(struct sock *sk, int len, char __user *optval, int __user *optlen)
net/sctp/socket.c
5702
static int sctp_do_peeloff(struct sock *sk, sctp_assoc_t id,
net/sctp/socket.c
5706
struct socket *sock;
net/sctp/socket.c
5707
struct sock *newsk;
net/sctp/socket.c
5723
err = sock_create_lite(sk->sk_family, SOCK_SEQPACKET, IPPROTO_SCTP, &sock);
net/sctp/socket.c
5729
sock_release(sock);
net/sctp/socket.c
5735
__inet_accept(sk->sk_socket, sock, newsk);
net/sctp/socket.c
5738
sock->ops = sk->sk_socket->ops;
net/sctp/socket.c
5739
__module_get(sock->ops->owner);
net/sctp/socket.c
5741
*sockp = sock;
net/sctp/socket.c
5746
static int sctp_getsockopt_peeloff_common(struct sock *sk, sctp_peeloff_arg_t *peeloff,
net/sctp/socket.c
5782
static int sctp_getsockopt_peeloff(struct sock *sk, int len, char __user *optval, int __user *optlen)
net/sctp/socket.c
5815
static int sctp_getsockopt_peeloff_flags(struct sock *sk, int len,
net/sctp/socket.c
5982
static int sctp_getsockopt_peer_addr_params(struct sock *sk, int len,
net/sctp/socket.c
6125
static int sctp_getsockopt_delayed_ack(struct sock *sk, int len,
net/sctp/socket.c
6199
static int sctp_getsockopt_initmsg(struct sock *sk, int len, char __user *optval, int __user *optlen)
net/sctp/socket.c
6212
static int sctp_getsockopt_peer_addrs(struct sock *sk, int len,
net/sctp/socket.c
6263
static int sctp_copy_laddrs(struct sock *sk, __u16 port, void *to,
net/sctp/socket.c
6308
static int sctp_getsockopt_local_addrs(struct sock *sk, int len,
net/sctp/socket.c
6416
static int sctp_getsockopt_primary_addr(struct sock *sk, int len,
net/sctp/socket.c
6458
static int sctp_getsockopt_adaptation_layer(struct sock *sk, int len,
net/sctp/socket.c
6497
static int sctp_getsockopt_default_send_param(struct sock *sk,
net/sctp/socket.c
6543
static int sctp_getsockopt_default_sndinfo(struct sock *sk, int len,
net/sctp/socket.c
6594
static int sctp_getsockopt_nodelay(struct sock *sk, int len,
net/sctp/socket.c
6623
static int sctp_getsockopt_rtoinfo(struct sock *sk, int len,
net/sctp/socket.c
6677
static int sctp_getsockopt_associnfo(struct sock *sk, int len,
net/sctp/socket.c
6746
static int sctp_getsockopt_mappedv4(struct sock *sk, int len,
net/sctp/socket.c
6769
static int sctp_getsockopt_context(struct sock *sk, int len,
net/sctp/socket.c
679
static int sctp_bindx_rem(struct sock *sk, struct sockaddr *addrs, int addrcnt)
net/sctp/socket.c
6826
static int sctp_getsockopt_maxseg(struct sock *sk, int len,
net/sctp/socket.c
6873
static int sctp_getsockopt_fragment_interleave(struct sock *sk, int len,
net/sctp/socket.c
6896
static int sctp_getsockopt_partial_delivery_point(struct sock *sk, int len,
net/sctp/socket.c
6920
static int sctp_getsockopt_maxburst(struct sock *sk, int len,
net/sctp/socket.c
6960
static int sctp_getsockopt_hmac_ident(struct sock *sk, int len,
net/sctp/socket.c
6996
static int sctp_getsockopt_active_key(struct sock *sk, int len,
net/sctp/socket.c
7032
static int sctp_getsockopt_peer_auth_chunks(struct sock *sk, int len,
net/sctp/socket.c
7076
static int sctp_getsockopt_local_auth_chunks(struct sock *sk, int len,
net/sctp/socket.c
7132
static int sctp_getsockopt_assoc_number(struct sock *sk, int len,
net/sctp/socket.c
7163
static int sctp_getsockopt_auto_asconf(struct sock *sk, int len,
net/sctp/socket.c
7188
static int sctp_getsockopt_assoc_ids(struct sock *sk, int len,
net/sctp/socket.c
72
static bool sctp_writeable(const struct sock *sk);
net/sctp/socket.c
7238
static int sctp_getsockopt_paddr_thresholds(struct sock *sk,
net/sctp/socket.c
7297
static int sctp_getsockopt_assoc_stats(struct sock *sk, int len,
net/sctp/socket.c
7355
static int sctp_getsockopt_recvrcvinfo(struct sock *sk, int len,
net/sctp/socket.c
7375
static int sctp_getsockopt_recvnxtinfo(struct sock *sk, int len,
net/sctp/socket.c
7395
static int sctp_getsockopt_pr_supported(struct sock *sk, int len,
net/sctp/socket.c
7434
static int sctp_getsockopt_default_prinfo(struct sock *sk, int len,
net/sctp/socket.c
7480
static int sctp_getsockopt_pr_assocstatus(struct sock *sk, int len,
net/sctp/socket.c
7539
static int sctp_getsockopt_pr_streamstatus(struct sock *sk, int len,
net/sctp/socket.c
758
static int sctp_send_asconf_del_ip(struct sock *sk,
net/sctp/socket.c
7603
static int sctp_getsockopt_reconfig_supported(struct sock *sk, int len,
net/sctp/socket.c
7642
static int sctp_getsockopt_enable_strreset(struct sock *sk, int len,
net/sctp/socket.c
7681
static int sctp_getsockopt_scheduler(struct sock *sk, int len,
net/sctp/socket.c
77
static int sctp_wait_for_packet(struct sock *sk, int *err, long *timeo_p);
net/sctp/socket.c
7720
static int sctp_getsockopt_scheduler_value(struct sock *sk, int len,
net/sctp/socket.c
7762
static int sctp_getsockopt_interleaving_supported(struct sock *sk, int len,
net/sctp/socket.c
7801
static int sctp_getsockopt_reuse_port(struct sock *sk, int len,
net/sctp/socket.c
7821
static int sctp_getsockopt_event(struct sock *sk, int len, char __user *optval,
net/sctp/socket.c
7856
static int sctp_getsockopt_asconf_supported(struct sock *sk, int len,
net/sctp/socket.c
7895
static int sctp_getsockopt_auth_supported(struct sock *sk, int len,
net/sctp/socket.c
79
static int sctp_wait_for_accept(struct sock *sk, long timeo);
net/sctp/socket.c
7934
static int sctp_getsockopt_ecn_supported(struct sock *sk, int len,
net/sctp/socket.c
7973
static int sctp_getsockopt_pf_expose(struct sock *sk, int len,
net/sctp/socket.c
80
static void sctp_wait_for_close(struct sock *sk, long timeo);
net/sctp/socket.c
8012
static int sctp_getsockopt_encap_port(struct sock *sk, int len,
net/sctp/socket.c
8071
static int sctp_getsockopt_probe_interval(struct sock *sk, int len,
net/sctp/socket.c
81
static void sctp_destruct_sock(struct sock *sk);
net/sctp/socket.c
8131
static int sctp_getsockopt(struct sock *sk, int level, int optname,
net/sctp/socket.c
8382
static int sctp_hash(struct sock *sk)
net/sctp/socket.c
8388
static void sctp_unhash(struct sock *sk)
net/sctp/socket.c
84
static int sctp_bindx_add(struct sock *, struct sockaddr *, int);
net/sctp/socket.c
8408
static int sctp_get_port_local(struct sock *sk, union sctp_addr *addr)
net/sctp/socket.c
8484
struct sock *sk2;
net/sctp/socket.c
85
static int sctp_bindx_rem(struct sock *, struct sockaddr *, int);
net/sctp/socket.c
8579
static int sctp_get_port(struct sock *sk, unsigned short snum)
net/sctp/socket.c
8595
static int sctp_listen_start(struct sock *sk, int backlog)
net/sctp/socket.c
86
static int sctp_send_asconf_add_ip(struct sock *, struct sockaddr *, int);
net/sctp/socket.c
8650
int sctp_inet_listen(struct socket *sock, int backlog)
net/sctp/socket.c
8652
struct sock *sk = sock->sk;
net/sctp/socket.c
8665
if (sock->state != SS_UNCONNECTED)
net/sctp/socket.c
87
static int sctp_send_asconf_del_ip(struct sock *, struct sockaddr *, int);
net/sctp/socket.c
8712
__poll_t sctp_poll(struct file *file, struct socket *sock, poll_table *wait)
net/sctp/socket.c
8714
struct sock *sk = sock->sk;
net/sctp/socket.c
8799
static inline void __sctp_put_port(struct sock *sk)
net/sctp/socket.c
8815
void sctp_put_port(struct sock *sk)
net/sctp/socket.c
8828
static int sctp_autobind(struct sock *sk)
net/sctp/socket.c
90
static int sctp_do_bind(struct sock *, union sctp_addr *, int);
net/sctp/socket.c
9027
static int sctp_wait_for_packet(struct sock *sk, int *err, long *timeo_p)
net/sctp/socket.c
9085
struct sk_buff *sctp_skb_recv_datagram(struct sock *sk, int flags, int *err)
net/sctp/socket.c
91
static int sctp_autobind(struct sock *sk);
net/sctp/socket.c
912
struct sock *sk = sctp_opt2sk(sp);
net/sctp/socket.c
9140
struct sock *sk = asoc->base.sk;
net/sctp/socket.c
9169
static void sctp_wake_up_waiters(struct sock *sk,
net/sctp/socket.c
92
static int sctp_sock_migrate(struct sock *oldsk, struct sock *newsk,
net/sctp/socket.c
9217
struct sock *sk = asoc->base.sk;
net/sctp/socket.c
9258
struct sock *sk = skb->sk;
net/sctp/socket.c
9275
struct sock *sk = asoc->base.sk;
net/sctp/socket.c
9343
void sctp_data_ready(struct sock *sk)
net/sctp/socket.c
9359
void sctp_write_space(struct sock *sk)
net/sctp/socket.c
9380
static bool sctp_writeable(const struct sock *sk)
net/sctp/socket.c
9390
struct sock *sk = asoc->base.sk;
net/sctp/socket.c
9452
static int sctp_wait_for_accept(struct sock *sk, long timeo)
net/sctp/socket.c
9494
static void sctp_wait_for_close(struct sock *sk, long timeout)
net/sctp/socket.c
9510
static void sctp_skb_set_owner_r_frag(struct sk_buff *skb, struct sock *sk)
net/sctp/socket.c
9528
static int sctp_sock_migrate(struct sock *oldsk, struct sock *newsk,
net/sctp/socket.c
9694
static void sctp_v6_destruct_sock(struct sock *sk)
net/sctp/socket.c
9699
static int sctp_v6_init_sock(struct sock *sk)
net/sctp/stream_interleave.c
472
struct sock *sk = ulpq->asoc->base.sk;
net/sctp/stream_interleave.c
981
struct sock *sk = ulpq->asoc->base.sk;
net/sctp/sysctl.c
505
struct sock *sk = net->sctp.ctl_sock;
net/sctp/sysctl.c
538
struct sock *sk = net->sctp.ctl_sock;
net/sctp/transport.c
231
void sctp_transport_pmtu(struct sctp_transport *transport, struct sock *sk)
net/sctp/transport.c
395
struct sock *sk = t->asoc->base.sk;
net/sctp/ulpevent.c
1061
struct sock *sk)
net/sctp/ulpevent.c
681
struct sock *sk = asoc->base.sk;
net/sctp/ulpqueue.c
1106
struct sock *sk;
net/sctp/ulpqueue.c
125
int sctp_clear_pd(struct sock *sk, struct sctp_association *asoc)
net/sctp/ulpqueue.c
181
struct sock *sk = ulpq->asoc->base.sk;
net/smc/af_smc.c
115
static void smc_set_keepalive(struct sock *sk, int val)
net/smc/af_smc.c
122
static struct sock *smc_tcp_syn_recv_sock(const struct sock *sk,
net/smc/af_smc.c
128
void (*opt_child_init)(struct sock *newsk,
net/smc/af_smc.c
129
const struct sock *sk))
net/smc/af_smc.c
132
struct sock *child;
net/smc/af_smc.c
1656
int smc_connect(struct socket *sock, struct sockaddr_unsized *addr,
net/smc/af_smc.c
1659
struct sock *sk = sock->sk;
net/smc/af_smc.c
1672
switch (sock->state) {
net/smc/af_smc.c
1684
sock->state = SS_CONNECTING;
net/smc/af_smc.c
1693
sock->state = SS_UNCONNECTED;
net/smc/af_smc.c
1713
sock->state = rc ? SS_CONNECTING : SS_CONNECTED;
net/smc/af_smc.c
1730
sock->state = SS_CONNECTED;
net/smc/af_smc.c
174
static bool smc_hs_congested(const struct sock *sk)
net/smc/af_smc.c
1740
struct sock *lsk = &lsmc->sk;
net/smc/af_smc.c
1741
struct sock *new_sk;
net/smc/af_smc.c
1798
static void smc_accept_enqueue(struct sock *parent, struct sock *sk)
net/smc/af_smc.c
1810
static void smc_accept_unlink(struct sock *sk)
net/smc/af_smc.c
1824
struct sock *smc_accept_dequeue(struct sock *parent,
net/smc/af_smc.c
1828
struct sock *new_sk;
net/smc/af_smc.c
1831
new_sk = (struct sock *)isk;
net/smc/af_smc.c
1857
void smc_close_non_accepted(struct sock *sk)
net/smc/af_smc.c
1928
struct sock *newsmcsk = &new_smc->sk;
net/smc/af_smc.c
1950
struct sock *newsmcsk = &new_smc->sk;
net/smc/af_smc.c
1961
struct sock *newsmcsk = &new_smc->sk;
net/smc/af_smc.c
199
int smc_hash_sk(struct sock *sk)
net/smc/af_smc.c
214
void smc_unhash_sk(struct sock *sk)
net/smc/af_smc.c
228
void smc_release_cb(struct sock *sk)
net/smc/af_smc.c
2598
struct sock *lsk = &lsmc->sk;
net/smc/af_smc.c
2629
static void smc_clcsock_data_ready(struct sock *listen_clcsock)
net/smc/af_smc.c
2647
int smc_listen(struct socket *sock, int backlog)
net/smc/af_smc.c
2649
struct sock *sk = sock->sk;
net/smc/af_smc.c
2658
smc->connect_nonblock || sock->state != SS_UNCONNECTED)
net/smc/af_smc.c
266
struct sock *clcsk = smc->clcsock->sk;
net/smc/af_smc.c
2713
int smc_accept(struct socket *sock, struct socket *new_sock,
net/smc/af_smc.c
2716
struct sock *sk = sock->sk, *nsk;
net/smc/af_smc.c
2764
struct sock *clcsk = smc_sk(nsk)->clcsock->sk;
net/smc/af_smc.c
2782
int smc_getname(struct socket *sock, struct sockaddr *addr,
net/smc/af_smc.c
2787
if (peer && (sock->sk->sk_state != SMC_ACTIVE) &&
net/smc/af_smc.c
2788
(sock->sk->sk_state != SMC_APPCLOSEWAIT1))
net/smc/af_smc.c
2791
smc = smc_sk(sock->sk);
net/smc/af_smc.c
2796
int smc_sendmsg(struct socket *sock, struct msghdr *msg, size_t len)
net/smc/af_smc.c
2798
struct sock *sk = sock->sk;
net/smc/af_smc.c
2834
int smc_recvmsg(struct socket *sock, struct msghdr *msg, size_t len,
net/smc/af_smc.c
2837
struct sock *sk = sock->sk;
net/smc/af_smc.c
2871
static __poll_t smc_accept_poll(struct sock *parent)
net/smc/af_smc.c
2884
__poll_t smc_poll(struct file *file, struct socket *sock,
net/smc/af_smc.c
2887
struct sock *sk = sock->sk;
net/smc/af_smc.c
2894
smc = smc_sk(sock->sk);
net/smc/af_smc.c
290
struct sock *sk = &smc->sk;
net/smc/af_smc.c
2901
sock_poll_wait(file, sock, wait);
net/smc/af_smc.c
2944
int smc_shutdown(struct socket *sock, int how)
net/smc/af_smc.c
2946
struct sock *sk = sock->sk;
net/smc/af_smc.c
2960
if (sock->state == SS_CONNECTING) {
net/smc/af_smc.c
2962
sock->state = SS_CONNECTED;
net/smc/af_smc.c
2968
sock->state = SS_DISCONNECTING;
net/smc/af_smc.c
3011
sock->state = SS_UNCONNECTED;
net/smc/af_smc.c
3013
sock->state = SS_DISCONNECTING;
net/smc/af_smc.c
3019
static int __smc_getsockopt(struct socket *sock, int level, int optname,
net/smc/af_smc.c
3025
smc = smc_sk(sock->sk);
net/smc/af_smc.c
3051
static int __smc_setsockopt(struct socket *sock, int level, int optname,
net/smc/af_smc.c
3054
struct sock *sk = sock->sk;
net/smc/af_smc.c
3083
int smc_setsockopt(struct socket *sock, int level, int optname,
net/smc/af_smc.c
3086
struct sock *sk = sock->sk;
net/smc/af_smc.c
3093
return __smc_setsockopt(sock, level, optname, optval, optlen);
net/smc/af_smc.c
3170
int smc_getsockopt(struct socket *sock, int level, int optname,
net/smc/af_smc.c
3177
return __smc_getsockopt(sock, level, optname, optval, optlen);
net/smc/af_smc.c
3179
smc = smc_sk(sock->sk);
net/smc/af_smc.c
3196
int smc_ioctl(struct socket *sock, unsigned int cmd,
net/smc/af_smc.c
3204
smc = smc_sk(sock->sk);
net/smc/af_smc.c
328
int smc_release(struct socket *sock)
net/smc/af_smc.c
3283
ssize_t smc_splice_read(struct socket *sock, loff_t *ppos,
net/smc/af_smc.c
3287
struct sock *sk = sock->sk;
net/smc/af_smc.c
330
struct sock *sk = sock->sk;
net/smc/af_smc.c
3351
int smc_create_clcsk(struct net *net, struct sock *sk, int family)
net/smc/af_smc.c
3371
static int smc_create(struct net *net, struct socket *sock, int protocol,
net/smc/af_smc.c
3375
struct sock *sk;
net/smc/af_smc.c
3379
if (sock->type != SOCK_STREAM)
net/smc/af_smc.c
3387
sock->ops = &smc_sock_ops;
net/smc/af_smc.c
3388
sock->state = SS_UNCONNECTED;
net/smc/af_smc.c
3389
sk = smc_sock_alloc(net, sock, protocol);
net/smc/af_smc.c
3396
sock->sk = NULL;
net/smc/af_smc.c
365
sock->sk = NULL;
net/smc/af_smc.c
374
static void smc_destruct(struct sock *sk)
net/smc/af_smc.c
395
void smc_sk_init(struct net *net, struct sock *sk, int protocol)
net/smc/af_smc.c
421
static struct sock *smc_sock_alloc(struct net *net, struct socket *sock,
net/smc/af_smc.c
425
struct sock *sk;
net/smc/af_smc.c
432
sock_init_data(sock, sk); /* sets sk_refcnt to 1 */
net/smc/af_smc.c
438
int smc_bind(struct socket *sock, struct sockaddr_unsized *uaddr,
net/smc/af_smc.c
442
struct sock *sk = sock->sk;
net/smc/af_smc.c
501
static void smc_adjust_sock_bufsizes(struct sock *nsk, struct sock *osk,
net/smc/af_smc.c
511
static void smc_copy_sock_settings(struct sock *nsk, struct sock *osk,
net/smc/af_smc.c
842
static void smc_fback_forward_wakeup(struct smc_sock *smc, struct sock *clcsk,
net/smc/af_smc.c
843
void (*clcsock_callback)(struct sock *sk))
net/smc/af_smc.c
864
static void smc_fback_state_change(struct sock *clcsk)
net/smc/af_smc.c
876
static void smc_fback_data_ready(struct sock *clcsk)
net/smc/af_smc.c
888
static void smc_fback_write_space(struct sock *clcsk)
net/smc/af_smc.c
900
static void smc_fback_error_report(struct sock *clcsk)
net/smc/af_smc.c
914
struct sock *clcsk = smc->clcsock->sk;
net/smc/smc.h
287
struct sock sk;
net/smc/smc.h
291
void (*clcsk_state_change)(struct sock *sk);
net/smc/smc.h
293
void (*clcsk_data_ready)(struct sock *sk);
net/smc/smc.h
295
void (*clcsk_write_space)(struct sock *sk);
net/smc/smc.h
297
void (*clcsk_error_report)(struct sock *sk);
net/smc/smc.h
343
static inline struct smc_sock *smc_clcsock_user_data(const struct sock *clcsk)
net/smc/smc.h
349
static inline struct smc_sock *smc_clcsock_user_data_rcu(const struct sock *clcsk)
net/smc/smc.h
355
static inline void smc_clcsock_replace_cb(void (**target_cb)(struct sock *),
net/smc/smc.h
356
void (*new_cb)(struct sock *),
net/smc/smc.h
357
void (**saved_cb)(struct sock *))
net/smc/smc.h
366
static inline void smc_clcsock_restore_cb(void (**target_cb)(struct sock *),
net/smc/smc.h
367
void (**saved_cb)(struct sock *))
net/smc/smc.h
40
int smc_hash_sk(struct sock *sk);
net/smc/smc.h
41
void smc_unhash_sk(struct sock *sk);
net/smc/smc.h
418
struct sock *smc_accept_dequeue(struct sock *parent, struct socket *new_sock);
net/smc/smc.h
419
void smc_close_non_accepted(struct sock *sk);
net/smc/smc.h
42
void smc_release_cb(struct sock *sk);
net/smc/smc.h
429
static inline void smc_sock_set_flag(struct sock *sk, enum sock_flags flag)
net/smc/smc.h
44
int smc_release(struct socket *sock);
net/smc/smc.h
45
int smc_bind(struct socket *sock, struct sockaddr_unsized *uaddr,
net/smc/smc.h
47
int smc_connect(struct socket *sock, struct sockaddr_unsized *addr,
net/smc/smc.h
49
int smc_accept(struct socket *sock, struct socket *new_sock,
net/smc/smc.h
51
int smc_getname(struct socket *sock, struct sockaddr *addr,
net/smc/smc.h
53
__poll_t smc_poll(struct file *file, struct socket *sock,
net/smc/smc.h
55
int smc_ioctl(struct socket *sock, unsigned int cmd,
net/smc/smc.h
57
int smc_listen(struct socket *sock, int backlog);
net/smc/smc.h
58
int smc_shutdown(struct socket *sock, int how);
net/smc/smc.h
59
int smc_setsockopt(struct socket *sock, int level, int optname,
net/smc/smc.h
61
int smc_getsockopt(struct socket *sock, int level, int optname,
net/smc/smc.h
63
int smc_sendmsg(struct socket *sock, struct msghdr *msg, size_t len);
net/smc/smc.h
64
int smc_recvmsg(struct socket *sock, struct msghdr *msg, size_t len,
net/smc/smc.h
66
ssize_t smc_splice_read(struct socket *sock, loff_t *ppos,
net/smc/smc.h
71
void smc_sk_init(struct net *net, struct sock *sk, int protocol);
net/smc/smc.h
73
int smc_create_clcsk(struct net *net, struct sock *sk, int family);
net/smc/smc_clc.c
693
struct sock *clc_sk = smc->clcsock->sk;
net/smc/smc_close.c
116
struct sock *sk = &smc->sk;
net/smc/smc_close.c
130
struct sock *sk = &smc->sk;
net/smc/smc_close.c
198
struct sock *sk = &smc->sk;
net/smc/smc_close.c
316
struct sock *sk = &smc->sk;
net/smc/smc_close.c
364
struct sock *sk = &smc->sk;
net/smc/smc_close.c
39
static void smc_close_cleanup_listen(struct sock *parent)
net/smc/smc_close.c
41
struct sock *sk;
net/smc/smc_close.c
450
struct sock *sk = &smc->sk;
net/smc/smc_close.c
52
struct sock *sk = &smc->sk;
net/smc/smc_core.h
401
struct sock *clc_sk;
net/smc/smc_diag.c
205
struct sock *sk;
net/smc/smc_diag.c
35
static void smc_diag_msg_common_fill(struct smc_diag_msg *r, struct sock *sk)
net/smc/smc_diag.c
60
static int smc_diag_msg_attrs_fill(struct sock *sk, struct sk_buff *skb,
net/smc/smc_diag.c
72
static int __smc_diag_dump(struct sock *sk, struct sk_buff *skb,
net/smc/smc_inet.c
109
static int smc_inet_init_sock(struct sock *sk)
net/smc/smc_inet.c
19
static int smc_inet_init_sock(struct sock *sk);
net/smc/smc_pnet.c
1127
void smc_pnet_find_roce_resource(struct sock *sk, struct smc_init_info *ini)
net/smc/smc_pnet.c
1144
void smc_pnet_find_ism_resource(struct sock *sk, struct smc_init_info *ini)
net/smc/smc_pnet.h
61
void smc_pnet_find_roce_resource(struct sock *sk, struct smc_init_info *ini);
net/smc/smc_pnet.h
62
void smc_pnet_find_ism_resource(struct sock *sk, struct smc_init_info *ini);
net/smc/smc_rx.c
120
struct sock *sk = &smc->sk;
net/smc/smc_rx.c
270
struct sock *sk = &smc->sk;
net/smc/smc_rx.c
294
struct sock *sk = &smc->sk;
net/smc/smc_rx.c
32
static void smc_rx_wake_up(struct sock *sk)
net/smc/smc_rx.c
362
struct sock *sk;
net/smc/smc_rx.c
63
struct sock *sk = &smc->sk;
net/smc/smc_tracepoint.h
30
const struct sock *sk = &smc->sk;
net/smc/smc_tracepoint.h
31
const struct sock *clcsk = smc->clcsock->sk;
net/smc/smc_tracepoint.h
58
const struct sock *sk = &smc->sk;
net/smc/smc_tx.c
187
struct sock *sk = &smc->sk;
net/smc/smc_tx.c
41
static void smc_tx_write_space(struct sock *sk)
net/smc/smc_tx.c
43
struct socket *sock = sk->sk_socket;
net/smc/smc_tx.c
48
if (atomic_read(&smc->conn.sndbuf_space) && sock) {
net/smc/smc_tx.c
49
if (test_bit(SOCK_NOSPACE, &sock->flags))
net/smc/smc_tx.c
51
clear_bit(SOCK_NOSPACE, &sock->flags);
net/smc/smc_tx.c
81
struct sock *sk = &smc->sk;
net/socket.c
1057
void __sock_recv_wifi_status(struct msghdr *msg, struct sock *sk,
net/socket.c
1074
static inline void sock_recv_drops(struct msghdr *msg, struct sock *sk,
net/socket.c
1082
static void sock_recv_mark(struct msghdr *msg, struct sock *sk,
net/socket.c
1093
static void sock_recv_priority(struct msghdr *msg, struct sock *sk,
net/socket.c
1103
void __sock_recv_cmsgs(struct msghdr *msg, struct sock *sk,
net/socket.c
1118
static noinline void call_trace_sock_recv_length(struct sock *sk, int ret, int flags)
net/socket.c
1123
static inline int sock_recvmsg_nosec(struct socket *sock, struct msghdr *msg,
net/socket.c
1126
int ret = INDIRECT_CALL_INET(READ_ONCE(sock->ops)->recvmsg,
net/socket.c
1128
inet_recvmsg, sock, msg,
net/socket.c
1131
call_trace_sock_recv_length(sock->sk, ret, flags);
net/socket.c
1144
int sock_recvmsg(struct socket *sock, struct msghdr *msg, int flags)
net/socket.c
1146
int err = security_socket_recvmsg(sock, msg, msg_data_left(msg), flags);
net/socket.c
1148
return err ?: sock_recvmsg_nosec(sock, msg, flags);
net/socket.c
1168
int kernel_recvmsg(struct socket *sock, struct msghdr *msg,
net/socket.c
1173
return sock_recvmsg(sock, msg, flags);
net/socket.c
1181
struct socket *sock = file->private_data;
net/socket.c
1184
ops = READ_ONCE(sock->ops);
net/socket.c
1188
return ops->splice_read(sock, ppos, pipe, len, flags);
net/socket.c
1193
struct socket *sock = file->private_data;
net/socket.c
1196
ops = READ_ONCE(sock->ops);
net/socket.c
1198
ops->splice_eof(sock);
net/socket.c
1204
struct socket *sock = file->private_data;
net/socket.c
1217
res = sock_recvmsg(sock, &msg, msg.msg_flags);
net/socket.c
1225
struct socket *sock = file->private_data;
net/socket.c
1235
if (sock->type == SOCK_SEQPACKET)
net/socket.c
1241
res = __sock_sendmsg(sock, &msg);
net/socket.c
1290
static long sock_do_ioctl(struct net *net, struct socket *sock,
net/socket.c
1293
const struct proto_ops *ops = READ_ONCE(sock->ops);
net/socket.c
1300
err = ops->ioctl(sock, cmd, arg);
net/socket.c
1330
struct socket *sock;
net/socket.c
1331
struct sock *sk;
net/socket.c
1336
sock = file->private_data;
net/socket.c
1337
ops = READ_ONCE(sock->ops);
net/socket.c
1338
sk = sock->sk;
net/socket.c
1362
err = f_setown(sock->file, pid, 1);
net/socket.c
1366
err = put_user(f_getown(sock->file),
net/socket.c
1401
err = ops->gettstamp(sock, argp,
net/socket.c
1411
err = ops->gettstamp(sock, argp,
net/socket.c
142
struct socket *sock = f->private_data;
net/socket.c
1421
err = sock_do_ioctl(net, sock, cmd, arg);
net/socket.c
143
const struct proto_ops *ops = READ_ONCE(sock->ops);
net/socket.c
1443
struct socket *sock = NULL;
net/socket.c
1449
sock = sock_alloc();
net/socket.c
1450
if (!sock) {
net/socket.c
1455
sock->type = type;
net/socket.c
1456
err = security_socket_post_create(sock, family, type, protocol, 1);
net/socket.c
146
ops->show_fdinfo(m, sock);
net/socket.c
1461
*res = sock;
net/socket.c
1464
sock_release(sock);
net/socket.c
1465
sock = NULL;
net/socket.c
1473
struct socket *sock = file->private_data;
net/socket.c
1474
const struct proto_ops *ops = READ_ONCE(sock->ops);
net/socket.c
1480
if (sk_can_busy_loop(sock->sk)) {
net/socket.c
1483
sk_busy_loop(sock->sk, 1);
net/socket.c
1489
return ops->poll(file, sock, wait) | flag;
net/socket.c
1494
struct socket *sock = file->private_data;
net/socket.c
1496
return READ_ONCE(sock->ops)->mmap(file, sock, vma);
net/socket.c
1518
struct socket *sock = filp->private_data;
net/socket.c
1519
struct sock *sk = sock->sk;
net/socket.c
1520
struct socket_wq *wq = &sock->wq;
net/socket.c
1584
struct socket *sock;
net/socket.c
1615
sock = sock_alloc();
net/socket.c
1616
if (!sock) {
net/socket.c
1622
sock->type = type;
net/socket.c
1651
err = pf->create(net, sock, protocol, kern);
net/socket.c
1656
DEBUG_NET_WARN_ONCE(sock->sk,
net/socket.c
1666
if (!try_module_get(sock->ops->owner))
net/socket.c
1674
err = security_socket_post_create(sock, family, type, protocol, kern);
net/socket.c
1677
*res = sock;
net/socket.c
1684
sock->ops = NULL;
net/socket.c
1687
sock_release(sock);
net/socket.c
1733
struct socket *sock;
net/socket.c
1746
retval = sock_create(family, type, protocol, &sock);
net/socket.c
1750
return sock;
net/socket.c
1755
struct socket *sock;
net/socket.c
1758
sock = __sys_socket_create(family, type, protocol);
net/socket.c
1759
if (IS_ERR(sock))
net/socket.c
1760
return ERR_CAST(sock);
net/socket.c
1766
return sock_alloc_file(sock, flags, NULL);
net/socket.c
1790
struct socket *sock;
net/socket.c
1793
sock = __sys_socket_create(family, type,
net/socket.c
1795
if (IS_ERR(sock))
net/socket.c
1796
return PTR_ERR(sock);
net/socket.c
1802
return sock_map_fd(sock, flags & (O_CLOEXEC | O_NONBLOCK));
net/socket.c
1912
int __sys_bind_socket(struct socket *sock, struct sockaddr_storage *address,
net/socket.c
1917
err = security_socket_bind(sock, (struct sockaddr *)address,
net/socket.c
1920
err = READ_ONCE(sock->ops)->bind(sock,
net/socket.c
1936
struct socket *sock;
net/socket.c
1943
sock = sock_from_file(fd_file(f));
net/socket.c
1944
if (unlikely(!sock))
net/socket.c
1951
return __sys_bind_socket(sock, &address, addrlen);
net/socket.c
1964
int __sys_listen_socket(struct socket *sock, int backlog)
net/socket.c
1968
somaxconn = READ_ONCE(sock_net(sock->sk)->core.sysctl_somaxconn);
net/socket.c
1972
err = security_socket_listen(sock, backlog);
net/socket.c
1974
err = READ_ONCE(sock->ops)->listen(sock, backlog);
net/socket.c
1981
struct socket *sock;
net/socket.c
1985
sock = sock_from_file(fd_file(f));
net/socket.c
1986
if (unlikely(!sock))
net/socket.c
1989
return __sys_listen_socket(sock, backlog);
net/socket.c
2001
struct socket *sock, *newsock;
net/socket.c
2007
sock = sock_from_file(file);
net/socket.c
2008
if (!sock)
net/socket.c
2014
ops = READ_ONCE(sock->ops);
net/socket.c
2016
newsock->type = sock->type;
net/socket.c
2025
newfile = sock_alloc_file(newsock, flags, sock->sk->sk_prot_creator->name);
net/socket.c
2029
err = security_socket_accept(sock, newsock);
net/socket.c
2033
arg->flags |= sock->file->f_flags;
net/socket.c
2034
err = ops->accept(sock, newsock, arg);
net/socket.c
2121
struct socket *sock;
net/socket.c
2124
sock = sock_from_file(file);
net/socket.c
2125
if (!sock) {
net/socket.c
2131
security_socket_connect(sock, (struct sockaddr *)address, addrlen);
net/socket.c
2135
err = READ_ONCE(sock->ops)->connect(sock, (struct sockaddr_unsized *)address,
net/socket.c
2136
addrlen, sock->file->f_flags | file_flags);
net/socket.c
2163
int do_getsockname(struct socket *sock, int peer,
net/socket.c
2170
err = security_socket_getpeername(sock);
net/socket.c
2172
err = security_socket_getsockname(sock);
net/socket.c
2175
err = READ_ONCE(sock->ops)->getname(sock, (struct sockaddr *)&address, peer);
net/socket.c
2189
struct socket *sock;
net/socket.c
2194
sock = sock_from_file(fd_file(f));
net/socket.c
2195
if (unlikely(!sock))
net/socket.c
2197
return do_getsockname(sock, peer, usockaddr, usockaddr_len);
net/socket.c
2220
struct socket *sock;
net/socket.c
2232
sock = sock_from_file(fd_file(f));
net/socket.c
2233
if (unlikely(!sock))
net/socket.c
2249
if (sock->file->f_flags & O_NONBLOCK)
net/socket.c
2252
return __sock_sendmsg(sock, &msg);
net/socket.c
2285
struct socket *sock;
net/socket.c
2296
sock = sock_from_file(fd_file(f));
net/socket.c
2297
if (unlikely(!sock))
net/socket.c
2300
if (sock->file->f_flags & O_NONBLOCK)
net/socket.c
2302
err = sock_recvmsg(sock, &msg, flags);
net/socket.c
2330
static bool sock_use_custom_sol_socket(const struct socket *sock)
net/socket.c
2332
return test_bit(SOCK_CUSTOM_SOCKOPT, &sock->flags);
net/socket.c
2335
int do_sock_setsockopt(struct socket *sock, bool compat, int level,
net/socket.c
2345
err = security_socket_setsockopt(sock, level, optname);
net/socket.c
2350
err = BPF_CGROUP_RUN_PROG_SETSOCKOPT(sock->sk, &level, &optname,
net/socket.c
2362
ops = READ_ONCE(sock->ops);
net/socket.c
2363
if (level == SOL_SOCKET && !sock_use_custom_sol_socket(sock))
net/socket.c
2364
err = sock_setsockopt(sock, level, optname, optval, optlen);
net/socket.c
2368
err = ops->setsockopt(sock, level, optname, optval,
net/socket.c
2384
struct socket *sock;
net/socket.c
2389
sock = sock_from_file(fd_file(f));
net/socket.c
2390
if (unlikely(!sock))
net/socket.c
2393
return do_sock_setsockopt(sock, compat, level, optname, optval, optlen);
net/socket.c
2437
int do_sock_getsockopt(struct socket *sock, bool compat, int level,
net/socket.c
2446
err = security_socket_getsockopt(sock, level, optname);
net/socket.c
2453
ops = READ_ONCE(sock->ops);
net/socket.c
2455
err = sk_getsockopt(sock->sk, level, optname, optval, optlen);
net/socket.c
2461
err = ops->getsockopt_iter(sock, level, optname, &opt);
net/socket.c
2474
err = ops->getsockopt(sock, level, optname, optval.user,
net/socket.c
2481
err = BPF_CGROUP_RUN_PROG_GETSOCKOPT(sock->sk, level, optname,
net/socket.c
2496
struct socket *sock;
net/socket.c
2501
sock = sock_from_file(fd_file(f));
net/socket.c
2502
if (unlikely(!sock))
net/socket.c
2505
return do_sock_getsockopt(sock, in_compat_syscall(), level, optname,
net/socket.c
2519
int __sys_shutdown_sock(struct socket *sock, int how)
net/socket.c
2523
err = security_socket_shutdown(sock, how);
net/socket.c
2525
err = READ_ONCE(sock->ops)->shutdown(sock, how);
net/socket.c
2532
struct socket *sock;
net/socket.c
2537
sock = sock_from_file(fd_file(f));
net/socket.c
2538
if (unlikely(!sock))
net/socket.c
2541
return __sys_shutdown_sock(sock, how);
net/socket.c
2627
static int ____sys_sendmsg(struct socket *sock, struct msghdr *msg_sys,
net/socket.c
2646
cmsghdr_from_user_compat_to_kern(msg_sys, sock->sk, ctl,
net/socket.c
2656
ctl_buf = sock_kmalloc(sock->sk, ctl_len, GFP_KERNEL);
net/socket.c
2669
if (sock->file->f_flags & O_NONBLOCK)
net/socket.c
2681
err = sock_sendmsg_nosec(sock, msg_sys);
net/socket.c
2684
err = __sock_sendmsg(sock, msg_sys);
net/socket.c
2698
sock_kfree_s(sock->sk, ctl_buf, ctl_len);
net/socket.c
2723
static int ___sys_sendmsg(struct socket *sock, struct user_msghdr __user *msg,
net/socket.c
2738
err = ____sys_sendmsg(sock, msg_sys, flags, used_address,
net/socket.c
2747
long __sys_sendmsg_sock(struct socket *sock, struct msghdr *msg,
net/socket.c
2750
return ____sys_sendmsg(sock, msg, flags, NULL, 0);
net/socket.c
2757
struct socket *sock;
net/socket.c
2766
sock = sock_from_file(fd_file(f));
net/socket.c
2767
if (unlikely(!sock))
net/socket.c
2770
return ___sys_sendmsg(sock, msg, &msg_sys, flags, NULL, 0);
net/socket.c
2786
struct socket *sock;
net/socket.c
2805
sock = sock_from_file(fd_file(f));
net/socket.c
2806
if (unlikely(!sock))
net/socket.c
2820
err = ___sys_sendmsg(sock, (struct user_msghdr __user *)compat_entry,
net/socket.c
2827
err = ___sys_sendmsg(sock,
net/socket.c
2878
static int ____sys_recvmsg(struct socket *sock, struct msghdr *msg_sys,
net/socket.c
2898
if (sock->file->f_flags & O_NONBLOCK)
net/socket.c
2902
err = sock_recvmsg_nosec(sock, msg_sys, flags);
net/socket.c
2904
err = sock_recvmsg(sock, msg_sys, flags);
net/socket.c
2934
static int ___sys_recvmsg(struct socket *sock, struct user_msghdr __user *msg,
net/socket.c
2946
err = ____sys_recvmsg(sock, msg_sys, msg, uaddr, flags, nosec);
net/socket.c
2955
long __sys_recvmsg_sock(struct socket *sock, struct msghdr *msg,
net/socket.c
2959
return ____sys_recvmsg(sock, msg, umsg, uaddr, flags, 0);
net/socket.c
2966
struct socket *sock;
net/socket.c
2975
sock = sock_from_file(fd_file(f));
net/socket.c
2976
if (unlikely(!sock))
net/socket.c
2979
return ___sys_recvmsg(sock, msg, &msg_sys, flags, 0);
net/socket.c
2997
struct socket *sock;
net/socket.c
3015
sock = sock_from_file(fd_file(f));
net/socket.c
3016
if (unlikely(!sock))
net/socket.c
3020
err = sock_error(sock->sk);
net/socket.c
3033
err = ___sys_recvmsg(sock, (struct user_msghdr __user *)compat_entry,
net/socket.c
3041
err = ___sys_recvmsg(sock,
net/socket.c
3095
WRITE_ONCE(sock->sk->sk_err, -err);
net/socket.c
3508
static int compat_sock_ioctl_trans(struct file *file, struct socket *sock,
net/socket.c
3512
struct sock *sk = sock->sk;
net/socket.c
3524
ops = READ_ONCE(sock->ops);
net/socket.c
3527
return ops->gettstamp(sock, argp, cmd == SIOCGSTAMP_OLD,
net/socket.c
3599
return sock_do_ioctl(net, sock, cmd, arg);
net/socket.c
3608
struct socket *sock = file->private_data;
net/socket.c
3609
const struct proto_ops *ops = READ_ONCE(sock->ops);
net/socket.c
3611
struct sock *sk;
net/socket.c
3614
sk = sock->sk;
net/socket.c
3618
ret = ops->compat_ioctl(sock, cmd, arg);
net/socket.c
3625
ret = compat_sock_ioctl_trans(file, sock, cmd, arg);
net/socket.c
3640
int kernel_bind(struct socket *sock, struct sockaddr_unsized *addr, int addrlen)
net/socket.c
3646
return READ_ONCE(sock->ops)->bind(sock, (struct sockaddr_unsized *)&address,
net/socket.c
3659
int kernel_listen(struct socket *sock, int backlog)
net/socket.c
3661
return READ_ONCE(sock->ops)->listen(sock, backlog);
net/socket.c
3676
int kernel_accept(struct socket *sock, struct socket **newsock, int flags)
net/socket.c
3678
struct sock *sk = sock->sk;
net/socket.c
3679
const struct proto_ops *ops = READ_ONCE(sock->ops);
net/socket.c
3691
err = ops->accept(sock, *newsock, &arg);
net/socket.c
3719
int kernel_connect(struct socket *sock, struct sockaddr_unsized *addr, int addrlen,
net/socket.c
3726
return READ_ONCE(sock->ops)->connect(sock, (struct sockaddr_unsized *)&address,
net/socket.c
3740
int kernel_getsockname(struct socket *sock, struct sockaddr *addr)
net/socket.c
3742
return READ_ONCE(sock->ops)->getname(sock, addr, 0);
net/socket.c
3755
int kernel_getpeername(struct socket *sock, struct sockaddr *addr)
net/socket.c
3757
return READ_ONCE(sock->ops)->getname(sock, addr, 1);
net/socket.c
3769
int kernel_sock_shutdown(struct socket *sock, enum sock_shutdown_cmd how)
net/socket.c
3771
return READ_ONCE(sock->ops)->shutdown(sock, how);
net/socket.c
3785
u32 kernel_sock_ip_overhead(struct sock *sk)
net/socket.c
525
struct file *sock_alloc_file(struct socket *sock, int flags, const char *dname)
net/socket.c
530
dname = sock->sk ? sock->sk->sk_prot_creator->name : "";
net/socket.c
532
file = alloc_file_pseudo(SOCK_INODE(sock), sock_mnt, dname,
net/socket.c
536
sock_release(sock);
net/socket.c
541
sock->file = file;
net/socket.c
542
file->private_data = sock;
net/socket.c
543
stream_open(SOCK_INODE(sock), file);
net/socket.c
553
static int sock_map_fd(struct socket *sock, int flags)
net/socket.c
558
sock_release(sock);
net/socket.c
562
newfile = sock_alloc_file(sock, flags, NULL);
net/socket.c
604
struct socket *sock;
net/socket.c
612
sock = sock_from_file(file);
net/socket.c
613
if (!sock) {
net/socket.c
617
return sock;
net/socket.c
654
struct socket *sock = SOCKET_I(d_inode(dentry));
net/socket.c
656
if (sock->sk) {
net/socket.c
658
WRITE_ONCE(sock->sk->sk_uid, iattr->ia_uid);
net/socket.c
683
struct socket *sock;
net/socket.c
689
sock = SOCKET_I(inode);
net/socket.c
697
return sock;
net/socket.c
701
static void __sock_release(struct socket *sock, struct inode *inode)
net/socket.c
703
const struct proto_ops *ops = READ_ONCE(sock->ops);
net/socket.c
710
ops->release(sock);
net/socket.c
711
sock->sk = NULL;
net/socket.c
714
sock->ops = NULL;
net/socket.c
718
if (sock->wq.fasync_list)
net/socket.c
721
if (!sock->file) {
net/socket.c
722
iput(SOCK_INODE(sock));
net/socket.c
725
WRITE_ONCE(sock->file, NULL);
net/socket.c
736
void sock_release(struct socket *sock)
net/socket.c
738
__sock_release(sock, NULL);
net/socket.c
767
static noinline void call_trace_sock_send_length(struct sock *sk, int ret,
net/socket.c
773
static inline int sock_sendmsg_nosec(struct socket *sock, struct msghdr *msg)
net/socket.c
775
int ret = INDIRECT_CALL_INET(READ_ONCE(sock->ops)->sendmsg, inet6_sendmsg,
net/socket.c
776
inet_sendmsg, sock, msg,
net/socket.c
781
call_trace_sock_send_length(sock->sk, ret, 0);
net/socket.c
785
static int __sock_sendmsg(struct socket *sock, struct msghdr *msg)
net/socket.c
787
int err = security_socket_sendmsg(sock, msg,
net/socket.c
790
return err ?: sock_sendmsg_nosec(sock, msg);
net/socket.c
801
int sock_sendmsg(struct socket *sock, struct msghdr *msg)
net/socket.c
813
ret = __sock_sendmsg(sock, msg);
net/socket.c
833
int kernel_sendmsg(struct socket *sock, struct msghdr *msg,
net/socket.c
837
return sock_sendmsg(sock, msg);
net/socket.c
865
static ktime_t get_timestamp(struct sock *sk, struct sk_buff *skb, int *if_index)
net/socket.c
910
bool skb_has_tx_timestamp(struct sk_buff *skb, const struct sock *sk)
net/socket.c
927
int skb_get_tx_timestamp(struct sk_buff *skb, struct sock *sk,
net/socket.c
959
void __sock_recv_timestamp(struct msghdr *msg, struct sock *sk,
net/strparser/strparser.c
355
struct socket *sock = strp->sk->sk_socket;
net/strparser/strparser.c
358
if (unlikely(!sock || !sock->ops))
net/strparser/strparser.c
361
if (unlikely(!strp->cb.read_sock && !sock->ops->read_sock))
net/strparser/strparser.c
372
sock->ops->read_sock(strp->sk, &desc, strp_recv);
net/strparser/strparser.c
454
int strp_init(struct strparser *strp, struct sock *sk,
net/strparser/strparser.c
57
struct sock *sk = strp->sk;
net/strparser/strparser.c
84
struct socket *sock = strp->sk->sk_socket;
net/strparser/strparser.c
86
return sock->ops->peek_len(sock);
net/sunrpc/clnt.c
1462
struct socket *sock;
net/sunrpc/clnt.c
1466
SOCK_DGRAM, IPPROTO_UDP, &sock, 1);
net/sunrpc/clnt.c
1474
err = kernel_bind(sock,
net/sunrpc/clnt.c
1479
err = kernel_bind(sock,
net/sunrpc/clnt.c
1492
err = kernel_connect(sock, (struct sockaddr_unsized *)sap, salen, 0);
net/sunrpc/clnt.c
1498
err = kernel_getsockname(sock, buf);
net/sunrpc/clnt.c
1512
sock_release(sock);
net/sunrpc/socklib.c
160
static inline int xprt_sendmsg(struct socket *sock, struct msghdr *msg,
net/sunrpc/socklib.c
165
return sock_sendmsg(sock, msg);
net/sunrpc/socklib.c
168
static int xprt_send_kvec(struct socket *sock, struct msghdr *msg,
net/sunrpc/socklib.c
172
return xprt_sendmsg(sock, msg, seek);
net/sunrpc/socklib.c
175
static int xprt_send_pagedata(struct socket *sock, struct msghdr *msg,
net/sunrpc/socklib.c
180
return xprt_sendmsg(sock, msg, base + xdr->page_base);
net/sunrpc/socklib.c
188
static int xprt_send_rm_and_kvec(struct socket *sock, struct msghdr *msg,
net/sunrpc/socklib.c
202
return xprt_sendmsg(sock, msg, base);
net/sunrpc/socklib.c
218
int xprt_sock_sendmsg(struct socket *sock, struct msghdr *msg,
net/sunrpc/socklib.c
229
if (unlikely(!sock))
net/sunrpc/socklib.c
241
err = xprt_send_rm_and_kvec(sock, msg, marker,
net/sunrpc/socklib.c
244
err = xprt_send_kvec(sock, msg, &xdr->head[0], base);
net/sunrpc/socklib.c
259
err = xprt_send_pagedata(sock, msg, xdr, base);
net/sunrpc/socklib.c
271
err = xprt_send_kvec(sock, msg, &xdr->tail[0], base);
net/sunrpc/socklib.h
11
int xprt_sock_sendmsg(struct socket *sock, struct msghdr *msg,
net/sunrpc/sunrpc.h
26
static inline int sock_is_loopback(struct sock *sk)
net/sunrpc/svc_xprt.c
1117
struct socket *sock = svsk->sk_sock;
net/sunrpc/svc_xprt.c
1119
if (svc_register(serv, xprt->xpt_net, sock->sk->sk_family,
net/sunrpc/svc_xprt.c
1120
sock->sk->sk_protocol, 0) < 0)
net/sunrpc/svcsock.c
104
static void svc_reclassify_socket(struct socket *sock)
net/sunrpc/svcsock.c
106
struct sock *sk = sock->sk;
net/sunrpc/svcsock.c
131
static void svc_reclassify_socket(struct socket *sock)
net/sunrpc/svcsock.c
1372
struct sock *sk = svsk->sk_sk;
net/sunrpc/svcsock.c
1422
static int svc_sock_sendpages(struct svc_serv *serv, struct socket *sock, int flags)
net/sunrpc/svcsock.c
1424
switch (sock->type) {
net/sunrpc/svcsock.c
1440
struct socket *sock,
net/sunrpc/svcsock.c
1444
struct sock *inet;
net/sunrpc/svcsock.c
1449
sendpages = svc_sock_sendpages(serv, sock, flags);
net/sunrpc/svcsock.c
1468
inet = sock->sk;
net/sunrpc/svcsock.c
1473
err = svc_register(serv, sock_net(sock->sk), inet->sk_family,
net/sunrpc/svcsock.c
1483
svsk->sk_sock = sock;
net/sunrpc/svcsock.c
1497
if (sock->type == SOCK_DGRAM)
net/sunrpc/svcsock.c
1502
trace_svcsock_new(svsk, sock);
net/sunrpc/svcsock.c
1575
struct socket *sock;
net/sunrpc/svcsock.c
1601
error = __sock_create(net, family, type, protocol, &sock, 1);
net/sunrpc/svcsock.c
1605
svc_reclassify_socket(sock);
net/sunrpc/svcsock.c
1613
ip6_sock_set_v6only(sock->sk);
net/sunrpc/svcsock.c
1615
sock->sk->sk_reuse = SK_CAN_REUSE; /* allow address reuse */
net/sunrpc/svcsock.c
1616
error = kernel_bind(sock, (struct sockaddr_unsized *)sin, len);
net/sunrpc/svcsock.c
1620
error = kernel_getsockname(sock, newsin);
net/sunrpc/svcsock.c
1626
sk_net_refcnt_upgrade(sock->sk);
net/sunrpc/svcsock.c
1627
if ((error = kernel_listen(sock, SOMAXCONN)) < 0)
net/sunrpc/svcsock.c
1631
svsk = svc_setup_socket(serv, sock, flags);
net/sunrpc/svcsock.c
1639
sock_release(sock);
net/sunrpc/svcsock.c
1650
struct sock *sk = svsk->sk_sk;
net/sunrpc/svcsock.c
1684
struct socket *sock = svsk->sk_sock;
net/sunrpc/svcsock.c
1686
trace_svcsock_free(svsk, sock);
net/sunrpc/svcsock.c
1688
tls_handshake_cancel(sock->sk);
net/sunrpc/svcsock.c
1689
if (sock->file)
net/sunrpc/svcsock.c
1690
sockfd_put(sock);
net/sunrpc/svcsock.c
1692
sock_release(sock);
net/sunrpc/svcsock.c
209
const struct sock *sk = svsk->sk_sk;
net/sunrpc/svcsock.c
242
svc_tcp_sock_process_cmsg(struct socket *sock, struct msghdr *msg,
net/sunrpc/svcsock.c
245
u8 content_type = tls_get_record_type(sock->sk, cmsg);
net/sunrpc/svcsock.c
259
tls_alert_recv(sock->sk, msg, &level, &description);
net/sunrpc/svcsock.c
271
svc_tcp_sock_recv_cmsg(struct socket *sock, unsigned int *msg_flags)
net/sunrpc/svcsock.c
291
ret = sock_recvmsg(sock, &msg, MSG_DONTWAIT);
net/sunrpc/svcsock.c
293
tls_get_record_type(sock->sk, &u.cmsg) == TLS_RECORD_TYPE_ALERT) {
net/sunrpc/svcsock.c
295
ret = svc_tcp_sock_process_cmsg(sock, &msg, &u.cmsg, -EAGAIN);
net/sunrpc/svcsock.c
304
struct socket *sock = svsk->sk_sock;
net/sunrpc/svcsock.c
306
ret = sock_recvmsg(sock, msg, MSG_DONTWAIT);
net/sunrpc/svcsock.c
310
ret = svc_tcp_sock_recv_cmsg(sock, &msg->msg_flags);
net/sunrpc/svcsock.c
379
struct socket *sock = svsk->sk_sock;
net/sunrpc/svcsock.c
383
lock_sock(sock->sk);
net/sunrpc/svcsock.c
384
sock->sk->sk_sndbuf = nreqs * max_mesg * 2;
net/sunrpc/svcsock.c
385
sock->sk->sk_rcvbuf = nreqs * max_mesg * 2;
net/sunrpc/svcsock.c
386
sock->sk->sk_write_space(sock->sk);
net/sunrpc/svcsock.c
387
release_sock(sock->sk);
net/sunrpc/svcsock.c
401
static void svc_data_ready(struct sock *sk)
net/sunrpc/svcsock.c
422
static void svc_write_space(struct sock *sk)
net/sunrpc/svcsock.c
485
struct sock *sk = svsk->sk_sock->sk;
net/sunrpc/svcsock.c
878
static void svc_tcp_listen_data_ready(struct sock *sk)
net/sunrpc/svcsock.c
910
static void svc_tcp_state_change(struct sock *sk)
net/sunrpc/svcsock.c
933
struct socket *sock = svsk->sk_sock;
net/sunrpc/svcsock.c
938
if (!sock)
net/sunrpc/svcsock.c
942
err = kernel_accept(sock, &newsock, O_NONBLOCK);
net/sunrpc/xprtsock.c
1047
status = xprt_sock_sendmsg(transport->sock, &msg, xdr, 0, 0, &sent);
net/sunrpc/xprtsock.c
1122
if (transport->sock != NULL)
net/sunrpc/xprtsock.c
1123
kernel_sock_shutdown(transport->sock, SHUT_RDWR);
net/sunrpc/xprtsock.c
1134
xs_tcp_set_socket_timeouts(xprt, transport->sock);
net/sunrpc/xprtsock.c
1136
xs_set_srcport(transport, transport->sock);
net/sunrpc/xprtsock.c
1147
status = xprt_sock_sendmsg(transport->sock, &msg, xdr,
net/sunrpc/xprtsock.c
1195
static void xs_save_old_callbacks(struct sock_xprt *transport, struct sock *sk)
net/sunrpc/xprtsock.c
1203
static void xs_restore_old_callbacks(struct sock_xprt *transport, struct sock *sk)
net/sunrpc/xprtsock.c
1247
static void xs_error_report(struct sock *sk)
net/sunrpc/xprtsock.c
1270
struct socket *sock = transport->sock;
net/sunrpc/xprtsock.c
1271
struct sock *sk = transport->inet;
net/sunrpc/xprtsock.c
1293
kernel_sock_shutdown(sock, SHUT_RDWR);
net/sunrpc/xprtsock.c
1298
transport->sock = NULL;
net/sunrpc/xprtsock.c
1312
trace_rpc_socket_close(xprt, sock);
net/sunrpc/xprtsock.c
1334
if (transport->sock)
net/sunrpc/xprtsock.c
1335
tls_handshake_close(transport->sock);
net/sunrpc/xprtsock.c
1380
struct sock *sk,
net/sunrpc/xprtsock.c
1436
struct sock *sk;
net/sunrpc/xprtsock.c
1471
static void xs_data_ready(struct sock *sk)
net/sunrpc/xprtsock.c
1520
static void xs_local_state_change(struct sock *sk)
net/sunrpc/xprtsock.c
1540
static void xs_tcp_state_change(struct sock *sk)
net/sunrpc/xprtsock.c
1611
static void xs_write_space(struct sock *sk)
net/sunrpc/xprtsock.c
1639
static void xs_udp_write_space(struct sock *sk)
net/sunrpc/xprtsock.c
1656
static void xs_tcp_write_space(struct sock *sk)
net/sunrpc/xprtsock.c
1666
struct sock *sk = transport->inet;
net/sunrpc/xprtsock.c
1728
static unsigned short xs_sock_getport(struct socket *sock)
net/sunrpc/xprtsock.c
1733
if (kernel_getsockname(sock, (struct sockaddr *)&buf) < 0)
net/sunrpc/xprtsock.c
1765
static void xs_set_srcport(struct sock_xprt *transport, struct socket *sock)
net/sunrpc/xprtsock.c
1768
transport->srcport = xs_sock_getport(sock);
net/sunrpc/xprtsock.c
1782
struct sock_xprt *sock = container_of(xprt, struct sock_xprt, xprt);
net/sunrpc/xprtsock.c
1784
mutex_lock(&sock->recv_mutex);
net/sunrpc/xprtsock.c
1785
if (sock->sock)
net/sunrpc/xprtsock.c
1786
ret = xs_sock_getport(sock->sock);
net/sunrpc/xprtsock.c
1787
mutex_unlock(&sock->recv_mutex);
net/sunrpc/xprtsock.c
1793
struct sock_xprt *sock = container_of(xprt, struct sock_xprt, xprt);
net/sunrpc/xprtsock.c
1800
mutex_lock(&sock->recv_mutex);
net/sunrpc/xprtsock.c
1801
if (sock->sock) {
net/sunrpc/xprtsock.c
1802
ret = kernel_getsockname(sock->sock, &saddr.sa);
net/sunrpc/xprtsock.c
1806
mutex_unlock(&sock->recv_mutex);
net/sunrpc/xprtsock.c
1820
static int xs_bind(struct sock_xprt *transport, struct socket *sock)
net/sunrpc/xprtsock.c
1848
err = kernel_bind(sock, (struct sockaddr_unsized *)&myaddr,
net/sunrpc/xprtsock.c
1888
static inline void xs_reclassify_socketu(struct socket *sock)
net/sunrpc/xprtsock.c
1890
struct sock *sk = sock->sk;
net/sunrpc/xprtsock.c
1896
static inline void xs_reclassify_socket4(struct socket *sock)
net/sunrpc/xprtsock.c
1898
struct sock *sk = sock->sk;
net/sunrpc/xprtsock.c
1904
static inline void xs_reclassify_socket6(struct socket *sock)
net/sunrpc/xprtsock.c
1906
struct sock *sk = sock->sk;
net/sunrpc/xprtsock.c
1912
static inline void xs_reclassify_socket(int family, struct socket *sock)
net/sunrpc/xprtsock.c
1914
if (WARN_ON_ONCE(!sock_allow_reclassification(sock->sk)))
net/sunrpc/xprtsock.c
1919
xs_reclassify_socketu(sock);
net/sunrpc/xprtsock.c
1922
xs_reclassify_socket4(sock);
net/sunrpc/xprtsock.c
1925
xs_reclassify_socket6(sock);
net/sunrpc/xprtsock.c
1930
static inline void xs_reclassify_socket(int family, struct socket *sock)
net/sunrpc/xprtsock.c
1944
struct socket *sock;
net/sunrpc/xprtsock.c
1947
err = __sock_create(xprt->xprt_net, family, type, protocol, &sock, 1);
net/sunrpc/xprtsock.c
1953
xs_reclassify_socket(family, sock);
net/sunrpc/xprtsock.c
1956
sock_set_reuseport(sock->sk);
net/sunrpc/xprtsock.c
1958
err = xs_bind(transport, sock);
net/sunrpc/xprtsock.c
1960
sock_release(sock);
net/sunrpc/xprtsock.c
1965
sk_net_refcnt_upgrade(sock->sk);
net/sunrpc/xprtsock.c
1967
filp = sock_alloc_file(sock, O_NONBLOCK, NULL);
net/sunrpc/xprtsock.c
1972
return sock;
net/sunrpc/xprtsock.c
1978
struct socket *sock)
net/sunrpc/xprtsock.c
1984
struct sock *sk = sock->sk;
net/sunrpc/xprtsock.c
2000
transport->sock = sock;
net/sunrpc/xprtsock.c
2008
return kernel_connect(sock, (struct sockaddr_unsized *)xs_addr(xprt), xprt->addrlen, 0);
net/sunrpc/xprtsock.c
2019
struct socket *sock;
net/sunrpc/xprtsock.c
2023
SOCK_STREAM, 0, &sock, 1);
net/sunrpc/xprtsock.c
2029
xs_reclassify_socket(AF_LOCAL, sock);
net/sunrpc/xprtsock.c
2031
filp = sock_alloc_file(sock, O_NONBLOCK, NULL);
net/sunrpc/xprtsock.c
2041
status = xs_local_finish_connecting(xprt, sock);
net/sunrpc/xprtsock.c
2042
trace_rpc_socket_connect(xprt, sock, status);
net/sunrpc/xprtsock.c
2182
static void xs_udp_finish_connecting(struct rpc_xprt *xprt, struct socket *sock)
net/sunrpc/xprtsock.c
2187
struct sock *sk = sock->sk;
net/sunrpc/xprtsock.c
2201
transport->sock = sock;
net/sunrpc/xprtsock.c
2218
struct socket *sock;
net/sunrpc/xprtsock.c
2224
sock = xs_create_sock(xprt, transport,
net/sunrpc/xprtsock.c
2227
if (IS_ERR(sock))
net/sunrpc/xprtsock.c
2236
xs_udp_finish_connecting(xprt, sock);
net/sunrpc/xprtsock.c
2237
trace_rpc_socket_connect(xprt, sock, 0);
net/sunrpc/xprtsock.c
2256
struct socket *sock = transport->sock;
net/sunrpc/xprtsock.c
2259
if (sock == NULL)
net/sunrpc/xprtsock.c
2272
kernel_sock_shutdown(sock, SHUT_RDWR);
net/sunrpc/xprtsock.c
2273
trace_rpc_socket_shutdown(xprt, sock);
net/sunrpc/xprtsock.c
2281
struct socket *sock)
net/sunrpc/xprtsock.c
2284
struct net *net = sock_net(sock->sk);
net/sunrpc/xprtsock.c
229
static inline struct rpc_xprt *xprt_from_sock(struct sock *sk)
net/sunrpc/xprtsock.c
2301
sock_set_keepalive(sock->sk);
net/sunrpc/xprtsock.c
2302
tcp_sock_set_keepidle(sock->sk, keepidle);
net/sunrpc/xprtsock.c
2303
tcp_sock_set_keepintvl(sock->sk, keepidle);
net/sunrpc/xprtsock.c
2304
tcp_sock_set_keepcnt(sock->sk, keepcnt);
net/sunrpc/xprtsock.c
2307
tcp_sock_set_user_timeout(sock->sk, timeo);
net/sunrpc/xprtsock.c
2317
tcp_sock_set_syncnt(sock->sk, t - 1);
net/sunrpc/xprtsock.c
2354
static int xs_tcp_finish_connecting(struct rpc_xprt *xprt, struct socket *sock)
net/sunrpc/xprtsock.c
2359
struct sock *sk = sock->sk;
net/sunrpc/xprtsock.c
2373
xs_tcp_set_socket_timeouts(xprt, sock);
net/sunrpc/xprtsock.c
2393
transport->sock = sock;
net/sunrpc/xprtsock.c
2408
return kernel_connect(sock, (struct sockaddr_unsized *)xs_addr(xprt),
net/sunrpc/xprtsock.c
2422
struct socket *sock = transport->sock;
net/sunrpc/xprtsock.c
2434
!sock) {
net/sunrpc/xprtsock.c
2436
sock = xs_create_sock(xprt, transport, xs_addr(xprt)->sa_family,
net/sunrpc/xprtsock.c
2438
if (IS_ERR(sock)) {
net/sunrpc/xprtsock.c
2439
xprt_wake_pending_tasks(xprt, PTR_ERR(sock));
net/sunrpc/xprtsock.c
2450
status = xs_tcp_finish_connecting(xprt, sock);
net/sunrpc/xprtsock.c
2451
trace_rpc_socket_connect(xprt, sock, status);
net/sunrpc/xprtsock.c
2454
sock->sk->sk_state);
net/sunrpc/xprtsock.c
2520
struct socket *sock = lower_transport->sock;
net/sunrpc/xprtsock.c
2521
struct sock *sk = sock->sk;
net/sunrpc/xprtsock.c
2533
xs_tcp_set_socket_timeouts(upper_xprt, sock);
net/sunrpc/xprtsock.c
2552
upper_transport->sock = sock;
net/sunrpc/xprtsock.c
2561
lower_transport->sock = NULL;
net/sunrpc/xprtsock.c
2619
.ta_sock = lower_transport->sock,
net/sunrpc/xprtsock.c
2624
struct sock *sk = lower_transport->inet;
net/sunrpc/xprtsock.c
2753
trace_rpc_socket_connect(upper_xprt, upper_transport->sock, 0);
net/sunrpc/xprtsock.c
2802
if (transport->sock != NULL) {
net/sunrpc/xprtsock.c
3011
err = xprt_sock_sendmsg(transport->sock, &msg, xdr, 0, marker, &sent);
net/sunrpc/xprtsock.c
360
xs_sock_process_cmsg(struct socket *sock, struct msghdr *msg,
net/sunrpc/xprtsock.c
3616
transport->sock = bc_sock->sk_sock;
net/sunrpc/xprtsock.c
363
u8 content_type = tls_get_record_type(sock->sk, cmsg);
net/sunrpc/xprtsock.c
377
tls_alert_recv(sock->sk, msg, &level, &description);
net/sunrpc/xprtsock.c
389
xs_sock_recv_cmsg(struct socket *sock, unsigned int *msg_flags, int flags)
net/sunrpc/xprtsock.c
409
ret = sock_recvmsg(sock, &msg, flags);
net/sunrpc/xprtsock.c
411
if (tls_get_record_type(sock->sk, &u.cmsg) == TLS_RECORD_TYPE_ALERT)
net/sunrpc/xprtsock.c
413
ret = xs_sock_process_cmsg(sock, &msg, msg_flags, &u.cmsg,
net/sunrpc/xprtsock.c
420
xs_sock_recvmsg(struct socket *sock, struct msghdr *msg, int flags, size_t seek)
net/sunrpc/xprtsock.c
425
ret = sock_recvmsg(sock, msg, flags);
net/sunrpc/xprtsock.c
430
ret = xs_sock_recv_cmsg(sock, &msg->msg_flags, flags);
net/sunrpc/xprtsock.c
436
xs_read_kvec(struct socket *sock, struct msghdr *msg, int flags,
net/sunrpc/xprtsock.c
440
return xs_sock_recvmsg(sock, msg, flags, seek);
net/sunrpc/xprtsock.c
444
xs_read_bvec(struct socket *sock, struct msghdr *msg, int flags,
net/sunrpc/xprtsock.c
449
return xs_sock_recvmsg(sock, msg, flags, seek);
net/sunrpc/xprtsock.c
453
xs_read_discard(struct socket *sock, struct msghdr *msg, int flags,
net/sunrpc/xprtsock.c
457
return xs_sock_recvmsg(sock, msg, flags, 0);
net/sunrpc/xprtsock.c
481
xs_read_xdr_buf(struct socket *sock, struct msghdr *msg, int flags,
net/sunrpc/xprtsock.c
489
ret = xs_read_kvec(sock, msg, flags, &buf->head[0], want, seek);
net/sunrpc/xprtsock.c
507
ret = xs_read_bvec(sock, msg, flags, buf->bvec,
net/sunrpc/xprtsock.c
528
ret = xs_read_kvec(sock, msg, flags, &buf->tail[0], want, seek);
net/sunrpc/xprtsock.c
585
ret = xs_read_xdr_buf(transport->sock, msg, flags, buf,
net/sunrpc/xprtsock.c
628
return xs_read_kvec(transport->sock, msg, flags, &kvec, want, seek);
net/sunrpc/xprtsock.c
66
static void xs_set_srcport(struct sock_xprt *transport, struct socket *sock);
net/sunrpc/xprtsock.c
68
struct socket *sock);
net/sunrpc/xprtsock.c
741
ret = xs_read_discard(transport->sock, &msg, flags,
net/sunrpc/xprtsock.c
763
return transport->sock->ops->poll(transport->file, transport->sock,
net/sunrpc/xprtsock.c
792
if (transport->sock == NULL)
net/sunrpc/xprtsock.c
802
kernel_sock_shutdown(transport->sock, SHUT_RDWR);
net/sunrpc/xprtsock.c
849
struct sock *sk = transport->inet;
net/sunrpc/xprtsock.c
875
struct sock *sk = transport->inet;
net/sunrpc/xprtsock.c
889
struct sock *sk = transport->inet;
net/sunrpc/xprtsock.c
976
status = xprt_sock_sendmsg(transport->sock, &msg, xdr,
net/tipc/diag.c
41
static u64 __tipc_diag_gen_cookie(struct sock *sk)
net/tipc/netlink_compat.c
1022
if (nla_put_u32(args, TIPC_NLA_SOCK_REF, sock)) {
net/tipc/netlink_compat.c
1045
struct nlattr *sock[TIPC_NLA_SOCK_MAX + 1];
net/tipc/netlink_compat.c
1050
err = nla_parse_nested_deprecated(sock, TIPC_NLA_SOCK_MAX,
net/tipc/netlink_compat.c
1055
sock_ref = nla_get_u32(sock[TIPC_NLA_SOCK_REF]);
net/tipc/netlink_compat.c
1058
if (sock[TIPC_NLA_SOCK_CON]) {
net/tipc/netlink_compat.c
1063
sock[TIPC_NLA_SOCK_CON],
net/tipc/netlink_compat.c
1082
} else if (sock[TIPC_NLA_SOCK_HAS_PUBL]) {
net/tipc/netlink_compat.c
63
struct sock *dst_sk;
net/tipc/netlink_compat.c
997
static int tipc_nl_compat_publ_dump(struct tipc_nl_compat_msg *msg, u32 sock)
net/tipc/socket.c
1001
static int tipc_send_group_anycast(struct socket *sock, struct msghdr *m,
net/tipc/socket.c
1005
struct sock *sk = sock->sk;
net/tipc/socket.c
1051
rc = tipc_wait_for_cond(sock, &timeout,
net/tipc/socket.c
1082
static int tipc_send_group_bcast(struct socket *sock, struct msghdr *m,
net/tipc/socket.c
1086
struct sock *sk = sock->sk;
net/tipc/socket.c
1099
rc = tipc_wait_for_cond(sock, &timeout,
net/tipc/socket.c
111
struct sock sk;
net/tipc/socket.c
1156
static int tipc_send_group_mcast(struct socket *sock, struct msghdr *m,
net/tipc/socket.c
1160
struct sock *sk = sock->sk;
net/tipc/socket.c
1177
return tipc_send_group_unicast(sock, m, dlen, timeout);
net/tipc/socket.c
1181
return tipc_send_group_bcast(sock, m, dlen, timeout);
net/tipc/socket.c
1332
struct sock *sk = &tsk->sk;
net/tipc/socket.c
1397
static int tipc_sendmsg(struct socket *sock,
net/tipc/socket.c
1400
struct sock *sk = sock->sk;
net/tipc/socket.c
1404
ret = __tipc_sendmsg(sock, m, dsz);
net/tipc/socket.c
1410
static int __tipc_sendmsg(struct socket *sock, struct msghdr *m, size_t dlen)
net/tipc/socket.c
1412
struct sock *sk = sock->sk;
net/tipc/socket.c
1437
return tipc_send_group_bcast(sock, m, dlen, timeout);
net/tipc/socket.c
1439
return tipc_send_group_anycast(sock, m, dlen, timeout);
net/tipc/socket.c
1441
return tipc_send_group_unicast(sock, m, dlen, timeout);
net/tipc/socket.c
1443
return tipc_send_group_mcast(sock, m, dlen, timeout);
net/tipc/socket.c
145
static int tipc_sk_backlog_rcv(struct sock *sk, struct sk_buff *skb);
net/tipc/socket.c
146
static void tipc_data_ready(struct sock *sk);
net/tipc/socket.c
147
static void tipc_write_space(struct sock *sk);
net/tipc/socket.c
1470
return tipc_sendmcast(sock, ua, m, dlen, timeout);
net/tipc/socket.c
148
static void tipc_sock_destruct(struct sock *sk);
net/tipc/socket.c
1483
rc = tipc_wait_for_cond(sock, &timeout,
net/tipc/socket.c
149
static int tipc_release(struct socket *sock);
net/tipc/socket.c
1527
tipc_wait_for_connect(sock, &timeout);
net/tipc/socket.c
1545
static int tipc_sendstream(struct socket *sock, struct msghdr *m, size_t dsz)
net/tipc/socket.c
1547
struct sock *sk = sock->sk;
net/tipc/socket.c
1551
ret = __tipc_sendstream(sock, m, dsz);
net/tipc/socket.c
1557
static int __tipc_sendstream(struct socket *sock, struct msghdr *m, size_t dlen)
net/tipc/socket.c
1559
struct sock *sk = sock->sk;
net/tipc/socket.c
157
static int __tipc_sendstream(struct socket *sock, struct msghdr *m, size_t dsz);
net/tipc/socket.c
1578
rc = __tipc_sendmsg(sock, m, dlen);
net/tipc/socket.c
158
static int __tipc_sendmsg(struct socket *sock, struct msghdr *m, size_t dsz);
net/tipc/socket.c
1587
rc = tipc_wait_for_cond(sock, &timeout,
net/tipc/socket.c
160
static int tipc_wait_for_connect(struct socket *sock, long *timeo_p);
net/tipc/socket.c
1652
static int tipc_send_packet(struct socket *sock, struct msghdr *m, size_t dsz)
net/tipc/socket.c
1657
return tipc_sendstream(sock, m, dsz);
net/tipc/socket.c
1665
struct sock *sk = &tsk->sk;
net/tipc/socket.c
1706
srcaddr->sock.family = AF_TIPC;
net/tipc/socket.c
1707
srcaddr->sock.addrtype = TIPC_SOCKET_ADDR;
net/tipc/socket.c
1708
srcaddr->sock.scope = 0;
net/tipc/socket.c
1709
srcaddr->sock.addr.id.ref = msg_origport(hdr);
net/tipc/socket.c
1710
srcaddr->sock.addr.id.node = msg_orignode(hdr);
net/tipc/socket.c
1711
srcaddr->sock.addr.name.domain = 0;
net/tipc/socket.c
1796
struct sock *sk = &tsk->sk;
net/tipc/socket.c
1833
static int tipc_wait_for_rcvmsg(struct socket *sock, long *timeop)
net/tipc/socket.c
1835
struct sock *sk = sock->sk;
net/tipc/socket.c
1886
static int tipc_recvmsg(struct socket *sock, struct msghdr *m,
net/tipc/socket.c
1889
struct sock *sk = sock->sk;
net/tipc/socket.c
1913
rc = tipc_wait_for_rcvmsg(sock, &timeout);
net/tipc/socket.c
2015
static int tipc_recvstream(struct socket *sock, struct msghdr *m,
net/tipc/socket.c
2018
struct sock *sk = sock->sk;
net/tipc/socket.c
2043
rc = tipc_wait_for_rcvmsg(sock, &timeout);
net/tipc/socket.c
208
static struct tipc_sock *tipc_sk(const struct sock *sk)
net/tipc/socket.c
2114
static void tipc_write_space(struct sock *sk)
net/tipc/socket.c
213
int tsk_set_importance(struct sock *sk, int imp)
net/tipc/socket.c
2130
static void tipc_data_ready(struct sock *sk)
net/tipc/socket.c
2144
static void tipc_sock_destruct(struct sock *sk)
net/tipc/socket.c
2149
static void tipc_sk_proto_rcv(struct sock *sk,
net/tipc/socket.c
2198
struct sock *sk = &tsk->sk;
net/tipc/socket.c
2311
static unsigned int rcvbuf_limit(struct sock *sk, struct sk_buff *skb)
net/tipc/socket.c
2339
static void tipc_sk_filter_rcv(struct sock *sk, struct sk_buff *skb,
net/tipc/socket.c
2404
static int tipc_sk_backlog_rcv(struct sock *sk, struct sk_buff *skb)
net/tipc/socket.c
2431
static void tipc_sk_enqueue(struct sk_buff_head *inputq, struct sock *sk,
net/tipc/socket.c
2491
struct sock *sk;
net/tipc/socket.c
2531
static int tipc_wait_for_connect(struct socket *sock, long *timeo_p)
net/tipc/socket.c
2534
struct sock *sk = sock->sk;
net/tipc/socket.c
255
struct sock *sk = &tsk->sk;
net/tipc/socket.c
2575
static int tipc_connect(struct socket *sock, struct sockaddr_unsized *dest,
net/tipc/socket.c
2578
struct sock *sk = sock->sk;
net/tipc/socket.c
2630
res = __tipc_sendmsg(sock, &m, 0);
net/tipc/socket.c
2648
res = tipc_wait_for_connect(sock, &timeout);
net/tipc/socket.c
2669
static int tipc_listen(struct socket *sock, int len)
net/tipc/socket.c
2671
struct sock *sk = sock->sk;
net/tipc/socket.c
2681
static int tipc_wait_for_accept(struct socket *sock, long timeo)
net/tipc/socket.c
2683
struct sock *sk = sock->sk;
net/tipc/socket.c
2721
static int tipc_accept(struct socket *sock, struct socket *new_sock,
net/tipc/socket.c
2724
struct sock *new_sk, *sk = sock->sk;
net/tipc/socket.c
2739
res = tipc_wait_for_accept(sock, timeo);
net/tipc/socket.c
2745
res = tipc_sk_create(sock_net(sock->sk), new_sock, 0, arg->kern);
net/tipc/socket.c
2748
security_sk_clone(sock->sk, new_sock->sk);
net/tipc/socket.c
277
static void tsk_advance_rx_queue(struct sock *sk)
net/tipc/socket.c
2801
static int tipc_shutdown(struct socket *sock, int how)
net/tipc/socket.c
2803
struct sock *sk = sock->sk;
net/tipc/socket.c
2812
__tipc_shutdown(sock, TIPC_CONN_SHUTDOWN);
net/tipc/socket.c
2830
static void tipc_sk_check_probing_state(struct sock *sk,
net/tipc/socket.c
285
static void tipc_sk_respond(struct sock *sk, struct sk_buff *skb, int err)
net/tipc/socket.c
2856
static void tipc_sk_retry_connect(struct sock *sk, struct sk_buff_head *list)
net/tipc/socket.c
2872
struct sock *sk = timer_container_of(sk, t, sk_timer);
net/tipc/socket.c
2909
struct sock *sk = &tsk->sk;
net/tipc/socket.c
3015
struct sock *sk = &tsk->sk;
net/tipc/socket.c
3038
struct sock *sk = &tsk->sk;
net/tipc/socket.c
307
static void tsk_rej_rx_queue(struct sock *sk, int error)
net/tipc/socket.c
3142
static int tipc_setsockopt(struct socket *sock, int lvl, int opt,
net/tipc/socket.c
3145
struct sock *sk = sock->sk;
net/tipc/socket.c
315
static bool tipc_sk_connected(const struct sock *sk)
net/tipc/socket.c
3151
if ((lvl == IPPROTO_TCP) && (sock->type == SOCK_STREAM))
net/tipc/socket.c
3185
if (sock->type != SOCK_STREAM)
net/tipc/socket.c
3235
static int tipc_getsockopt(struct socket *sock, int lvl, int opt,
net/tipc/socket.c
3238
struct sock *sk = sock->sk;
net/tipc/socket.c
3245
if (lvl == IPPROTO_TCP && sock->type == SOCK_STREAM) {
net/tipc/socket.c
325
static bool tipc_sk_type_connectionless(struct sock *sk)
net/tipc/socket.c
3303
static int tipc_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
net/tipc/socket.c
3305
struct net *net = sock_net(sock->sk);
net/tipc/socket.c
337
struct sock *sk = &tsk->sk;
net/tipc/socket.c
3508
struct sock *sk = &tsk->sk;
net/tipc/socket.c
3628
u64 (*tipc_diag_gen_cookie)(struct sock *sk))
net/tipc/socket.c
3630
struct sock *sk = &tsk->sk;
net/tipc/socket.c
370
static int tipc_set_sk_state(struct sock *sk, int state)
net/tipc/socket.c
3791
struct nlattr *sock[TIPC_NLA_SOCK_MAX + 1];
net/tipc/socket.c
3796
err = nla_parse_nested_deprecated(sock, TIPC_NLA_SOCK_MAX,
net/tipc/socket.c
3802
if (!sock[TIPC_NLA_SOCK_REF])
net/tipc/socket.c
3805
tsk_portid = nla_get_u32(sock[TIPC_NLA_SOCK_REF]);
net/tipc/socket.c
3840
bool tipc_sk_filtering(struct sock *sk)
net/tipc/socket.c
3890
u32 tipc_sock_get_portid(struct sock *sk)
net/tipc/socket.c
3904
bool tipc_sk_overlimit1(struct sock *sk, struct sk_buff *skb)
net/tipc/socket.c
3922
bool tipc_sk_overlimit2(struct sock *sk, struct sk_buff *skb)
net/tipc/socket.c
3941
int tipc_sk_dump(struct sock *sk, u16 dqueues, char *buf)
net/tipc/socket.c
402
static int tipc_sk_sock_err(struct socket *sock, long *timeout)
net/tipc/socket.c
404
struct sock *sk = sock->sk;
net/tipc/socket.c
406
int typ = sock->type;
net/tipc/socket.c
427
struct sock *sk_; \
net/tipc/socket.c
459
static int tipc_sk_create(struct net *net, struct socket *sock,
net/tipc/socket.c
463
struct sock *sk;
net/tipc/socket.c
471
switch (sock->type) {
net/tipc/socket.c
500
sock->ops = ops;
net/tipc/socket.c
501
sock_init_data(sock, sk);
net/tipc/socket.c
505
sock->sk = NULL;
net/tipc/socket.c
534
if (sock->type == SOCK_DGRAM)
net/tipc/socket.c
550
static void __tipc_shutdown(struct socket *sock, int error)
net/tipc/socket.c
552
struct sock *sk = sock->sk;
net/tipc/socket.c
560
tipc_wait_for_cond(sock, &timeout, (!tsk->cong_link_cnt &&
net/tipc/socket.c
626
static int tipc_release(struct socket *sock)
net/tipc/socket.c
628
struct sock *sk = sock->sk;
net/tipc/socket.c
642
__tipc_shutdown(sock, TIPC_ERR_NO_PORT);
net/tipc/socket.c
656
sock->sk = NULL;
net/tipc/socket.c
676
static int __tipc_bind(struct socket *sock, struct sockaddr *skaddr, int alen)
net/tipc/socket.c
679
struct tipc_sock *tsk = tipc_sk(sock->sk);
net/tipc/socket.c
705
int tipc_sk_bind(struct socket *sock, struct sockaddr *skaddr, int alen)
net/tipc/socket.c
709
lock_sock(sock->sk);
net/tipc/socket.c
71
struct sockaddr_tipc sock;
net/tipc/socket.c
710
res = __tipc_bind(sock, skaddr, alen);
net/tipc/socket.c
711
release_sock(sock->sk);
net/tipc/socket.c
715
static int tipc_bind(struct socket *sock, struct sockaddr_unsized *skaddr, int alen)
net/tipc/socket.c
731
return tipc_sk_bind(sock, (struct sockaddr *)skaddr, alen);
net/tipc/socket.c
746
static int tipc_getname(struct socket *sock, struct sockaddr *uaddr,
net/tipc/socket.c
750
struct sock *sk = sock->sk;
net/tipc/socket.c
791
static __poll_t tipc_poll(struct file *file, struct socket *sock,
net/tipc/socket.c
794
struct sock *sk = sock->sk;
net/tipc/socket.c
798
sock_poll_wait(file, sock, wait);
net/tipc/socket.c
843
static int tipc_sendmcast(struct socket *sock, struct tipc_uaddr *ua,
net/tipc/socket.c
846
struct sock *sk = sock->sk;
net/tipc/socket.c
859
rc = tipc_wait_for_cond(sock, &timeout, !tsk->cong_link_cnt);
net/tipc/socket.c
957
static int tipc_send_group_unicast(struct socket *sock, struct msghdr *m,
net/tipc/socket.c
960
struct sock *sk = sock->sk;
net/tipc/socket.c
975
rc = tipc_wait_for_cond(sock, &timeout,
net/tipc/socket.h
66
u64 (*tipc_diag_gen_cookie)(struct sock *sk));
net/tipc/socket.h
74
u32 tipc_sock_get_portid(struct sock *sk);
net/tipc/socket.h
75
bool tipc_sk_overlimit1(struct sock *sk, struct sk_buff *skb);
net/tipc/socket.h
76
bool tipc_sk_overlimit2(struct sock *sk, struct sk_buff *skb);
net/tipc/socket.h
77
int tipc_sk_bind(struct socket *sock, struct sockaddr *skaddr, int alen);
net/tipc/socket.h
78
int tsk_set_importance(struct sock *sk, int imp);
net/tipc/topsrv.c
134
if (con->sock)
net/tipc/topsrv.c
135
sock_release(con->sock);
net/tipc/topsrv.c
158
struct sock *sk = con->sock->sk;
net/tipc/topsrv.c
175
kernel_sock_shutdown(con->sock, SHUT_RDWR);
net/tipc/topsrv.c
180
static struct tipc_conn *tipc_conn_alloc(struct tipc_topsrv *s, struct socket *sock)
net/tipc/topsrv.c
209
con->sock = sock;
net/tipc/topsrv.c
276
if (con->sock) {
net/tipc/topsrv.c
277
ret = kernel_sendmsg(con->sock, &msg, &iov,
net/tipc/topsrv.c
347
static void tipc_conn_write_space(struct sock *sk)
net/tipc/topsrv.c
391
struct sock *sk = con->sock->sk;
net/tipc/topsrv.c
401
ret = sock_recvmsg(con->sock, &msg, MSG_DONTWAIT);
net/tipc/topsrv.c
439
static void tipc_conn_data_ready(struct sock *sk)
net/tipc/topsrv.c
460
struct sock *newsk;
net/tipc/topsrv.c
498
static void tipc_topsrv_listener_data_ready(struct sock *sk)
net/tipc/topsrv.c
515
struct sock *sk;
net/tipc/topsrv.c
96
struct socket *sock;
net/tipc/trace.h
131
int tipc_sk_dump(struct sock *sk, u16 dqueues, char *buf);
net/tipc/trace.h
134
bool tipc_sk_filtering(struct sock *sk);
net/tipc/trace.h
190
TP_PROTO(struct sock *sk, struct sk_buff *skb, u16 dqueues,
net/tipc/trace.h
218
TP_PROTO(struct sock *sk, struct sk_buff *skb, u16 dqueues, \
net/tipc/trace.h
237
TP_PROTO(struct sock *sk, struct sk_buff *skb, u16 dqueues, \
net/tipc/udp_media.c
102
struct sock *sk;
net/tipc/udp_media.c
368
static int tipc_udp_recv(struct sock *sk, struct sk_buff *skb)
net/tipc/udp_media.c
406
struct sock *sk = ub->sk;
net/tipc/udp_media.c
668
struct socket *sock;
net/tipc/udp_media.c
764
err = udp_sock_create(net, &udp_conf, &sock);
net/tipc/udp_media.c
768
ub->sk = sock->sk;
net/tls/tls.h
127
struct sock *sk;
net/tls/tls.h
139
struct tls_context *tls_ctx_create(struct sock *sk);
net/tls/tls.h
140
void tls_ctx_free(struct sock *sk, struct tls_context *ctx);
net/tls/tls.h
141
void update_sk_prot(struct sock *sk, struct tls_context *ctx);
net/tls/tls.h
143
int wait_on_pending_writer(struct sock *sk, long *timeo);
net/tls/tls.h
144
void tls_err_abort(struct sock *sk, int err);
net/tls/tls.h
150
int tls_set_sw_offload(struct sock *sk, int tx,
net/tls/tls.h
153
void tls_sw_strparser_arm(struct sock *sk, struct tls_context *ctx);
net/tls/tls.h
155
int tls_sw_sendmsg(struct sock *sk, struct msghdr *msg, size_t size);
net/tls/tls.h
156
void tls_sw_splice_eof(struct socket *sock);
net/tls/tls.h
158
void tls_sw_release_resources_tx(struct sock *sk);
net/tls/tls.h
160
void tls_sw_free_resources_rx(struct sock *sk);
net/tls/tls.h
161
void tls_sw_release_resources_rx(struct sock *sk);
net/tls/tls.h
163
int tls_sw_recvmsg(struct sock *sk, struct msghdr *msg, size_t len,
net/tls/tls.h
165
bool tls_sw_sock_is_readable(struct sock *sk);
net/tls/tls.h
166
ssize_t tls_sw_splice_read(struct socket *sock, loff_t *ppos,
net/tls/tls.h
169
int tls_sw_read_sock(struct sock *sk, read_descriptor_t *desc,
net/tls/tls.h
172
int tls_device_sendmsg(struct sock *sk, struct msghdr *msg, size_t size);
net/tls/tls.h
173
void tls_device_splice_eof(struct socket *sock);
net/tls/tls.h
174
int tls_tx_records(struct sock *sk, int flags);
net/tls/tls.h
176
void tls_sw_write_space(struct sock *sk, struct tls_context *ctx);
net/tls/tls.h
177
void tls_device_write_space(struct sock *sk, struct tls_context *ctx);
net/tls/tls.h
179
int tls_process_cmsg(struct sock *sk, struct msghdr *msg,
net/tls/tls.h
181
int decrypt_skb(struct sock *sk, struct scatterlist *sgout);
net/tls/tls.h
183
int tls_sw_fallback_init(struct sock *sk,
net/tls/tls.h
193
int tls_strp_init(struct tls_strparser *strp, struct sock *sk);
net/tls/tls.h
233
int tls_set_device_offload(struct sock *sk);
net/tls/tls.h
234
void tls_device_free_resources_tx(struct sock *sk);
net/tls/tls.h
235
int tls_set_device_offload_rx(struct sock *sk, struct tls_context *ctx);
net/tls/tls.h
236
void tls_device_offload_cleanup_rx(struct sock *sk);
net/tls/tls.h
237
void tls_device_rx_resync_new_rec(struct sock *sk, u32 rcd_len, u32 seq);
net/tls/tls.h
238
int tls_device_decrypted(struct sock *sk, struct tls_context *tls_ctx);
net/tls/tls.h
244
tls_set_device_offload(struct sock *sk)
net/tls/tls.h
249
static inline void tls_device_free_resources_tx(struct sock *sk) {}
net/tls/tls.h
252
tls_set_device_offload_rx(struct sock *sk, struct tls_context *ctx)
net/tls/tls.h
257
static inline void tls_device_offload_cleanup_rx(struct sock *sk) {}
net/tls/tls.h
259
tls_device_rx_resync_new_rec(struct sock *sk, u32 rcd_len, u32 seq) {}
net/tls/tls.h
262
tls_device_decrypted(struct sock *sk, struct tls_context *tls_ctx)
net/tls/tls.h
268
int tls_push_sg(struct sock *sk, struct tls_context *ctx,
net/tls/tls.h
271
int tls_push_partial_record(struct sock *sk, struct tls_context *ctx,
net/tls/tls.h
273
void tls_free_partial_record(struct sock *sk, struct tls_context *ctx);
net/tls/tls.h
311
tls_advance_record_sn(struct sock *sk, struct tls_prot_info *prot,
net/tls/tls_device.c
1024
static void tls_device_attach(struct tls_context *ctx, struct sock *sk,
net/tls/tls_device.c
1064
int tls_set_device_offload(struct sock *sk)
net/tls/tls_device.c
1194
int tls_set_device_offload_rx(struct sock *sk, struct tls_context *ctx)
net/tls/tls_device.c
124
static struct net_device *get_netdev_for_sock(struct sock *sk)
net/tls/tls_device.c
1270
void tls_device_offload_cleanup_rx(struct sock *sk)
net/tls/tls_device.c
162
static void tls_tcp_clean_acked(struct sock *sk, u32 acked_seq)
net/tls/tls_device.c
197
void tls_device_sk_destruct(struct sock *sk)
net/tls/tls_device.c
216
void tls_device_free_resources_tx(struct sock *sk)
net/tls/tls_device.c
223
void tls_offload_tx_resync_request(struct sock *sk, u32 got_seq, u32 exp_seq)
net/tls/tls_device.c
232
static void tls_device_resync_tx(struct sock *sk, struct tls_context *tls_ctx,
net/tls/tls_device.c
279
static int tls_push_record(struct sock *sk,
net/tls/tls_device.c
313
static void tls_device_record_close(struct sock *sk,
net/tls/tls_device.c
366
static int tls_do_allocation(struct sock *sk,
net/tls/tls_device.c
421
static int tls_push_data(struct sock *sk,
net/tls/tls_device.c
565
int tls_device_sendmsg(struct sock *sk, struct msghdr *msg, size_t size)
net/tls/tls_device.c
592
void tls_device_splice_eof(struct socket *sock)
net/tls/tls_device.c
594
struct sock *sk = sock->sk;
net/tls/tls_device.c
675
static int tls_device_push_pending_record(struct sock *sk, int flags)
net/tls/tls_device.c
683
void tls_device_write_space(struct sock *sk, struct tls_context *ctx)
net/tls/tls_device.c
699
struct sock *sk, u32 seq, u8 *rcd_sn)
net/tls/tls_device.c
772
void tls_device_rx_resync_new_rec(struct sock *sk, u32 rcd_len, u32 seq)
net/tls/tls_device.c
839
struct sock *sk, struct sk_buff *skb)
net/tls/tls_device.c
885
tls_device_reencrypt(struct sock *sk, struct tls_context *tls_ctx)
net/tls/tls_device.c
976
int tls_device_decrypted(struct sock *sk, struct tls_context *tls_ctx)
net/tls/tls_device_fallback.c
182
struct sock *sk = skb->sk;
net/tls/tls_device_fallback.c
361
static struct sk_buff *tls_sw_fallback(struct sock *sk, struct sk_buff *skb)
net/tls/tls_device_fallback.c
411
struct sk_buff *tls_validate_xmit_skb(struct sock *sk,
net/tls/tls_device_fallback.c
423
struct sk_buff *tls_validate_xmit_skb_sw(struct sock *sk,
net/tls/tls_device_fallback.c
436
int tls_sw_fallback_init(struct sock *sk,
net/tls/tls_main.c
1042
static int tls_init(struct sock *sk)
net/tls/tls_main.c
1075
static void tls_update(struct sock *sk, struct proto *p,
net/tls/tls_main.c
1076
void (*write_space)(struct sock *sk))
net/tls/tls_main.c
1108
static int tls_get_info(struct sock *sk, struct sk_buff *skb, bool net_admin)
net/tls/tls_main.c
1172
static size_t tls_get_info_size(const struct sock *sk, bool net_admin)
net/tls/tls_main.c
129
void update_sk_prot(struct sock *sk, struct tls_context *ctx)
net/tls/tls_main.c
139
int wait_on_pending_writer(struct sock *sk, long *timeo)
net/tls/tls_main.c
168
int tls_push_sg(struct sock *sk,
net/tls/tls_main.c
226
static int tls_handle_open_record(struct sock *sk, int flags)
net/tls/tls_main.c
236
int tls_process_cmsg(struct sock *sk, struct msghdr *msg,
net/tls/tls_main.c
268
int tls_push_partial_record(struct sock *sk, struct tls_context *ctx,
net/tls/tls_main.c
281
void tls_free_partial_record(struct sock *sk, struct tls_context *ctx)
net/tls/tls_main.c
292
static void tls_write_space(struct sock *sk)
net/tls/tls_main.c
323
void tls_ctx_free(struct sock *sk, struct tls_context *ctx)
net/tls/tls_main.c
338
static void tls_sk_proto_cleanup(struct sock *sk,
net/tls/tls_main.c
363
static void tls_sk_proto_close(struct sock *sk, long timeout)
net/tls/tls_main.c
399
static __poll_t tls_sk_poll(struct file *file, struct socket *sock,
net/tls/tls_main.c
404
struct sock *sk = sock->sk;
net/tls/tls_main.c
409
mask = tcp_poll(file, sock, wait);
net/tls/tls_main.c
427
static int do_tls_getsockopt_conf(struct sock *sk, char __user *optval,
net/tls/tls_main.c
488
static int do_tls_getsockopt_tx_zc(struct sock *sk, char __user *optval,
net/tls/tls_main.c
508
static int do_tls_getsockopt_no_pad(struct sock *sk, char __user *optval,
net/tls/tls_main.c
536
static int do_tls_getsockopt_tx_payload_len(struct sock *sk, char __user *optval,
net/tls/tls_main.c
558
static int do_tls_getsockopt(struct sock *sk, int optname,
net/tls/tls_main.c
590
static int tls_getsockopt(struct sock *sk, int level, int optname,
net/tls/tls_main.c
627
static int do_tls_setsockopt_conf(struct sock *sk, sockptr_t optval,
net/tls/tls_main.c
788
static int do_tls_setsockopt_tx_zc(struct sock *sk, sockptr_t optval,
net/tls/tls_main.c
808
static int do_tls_setsockopt_no_pad(struct sock *sk, sockptr_t optval,
net/tls/tls_main.c
840
static int do_tls_setsockopt_tx_payload_len(struct sock *sk, sockptr_t optval,
net/tls/tls_main.c
866
static int do_tls_setsockopt(struct sock *sk, int optname, sockptr_t optval,
net/tls/tls_main.c
899
static int tls_setsockopt(struct sock *sk, int level, int optname,
net/tls/tls_main.c
911
static int tls_disconnect(struct sock *sk, int flags)
net/tls/tls_main.c
916
struct tls_context *tls_ctx_create(struct sock *sk)
net/tls/tls_main.c
971
static void tls_build_proto(struct sock *sk)
net/tls/tls_strp.c
614
int tls_strp_init(struct tls_strparser *strp, struct sock *sk)
net/tls/tls_sw.c
1017
void tls_sw_splice_eof(struct socket *sock)
net/tls/tls_sw.c
1019
struct sock *sk = sock->sk;
net/tls/tls_sw.c
1081
tls_rx_rec_wait(struct sock *sk, bool nonblock, bool released, bool has_copied)
net/tls/tls_sw.c
1209
tls_alloc_clrtxt_skb(struct sock *sk, struct sk_buff *skb,
net/tls/tls_sw.c
1251
static int tls_decrypt_sg(struct sock *sk, struct iov_iter *out_iov,
net/tls/tls_sw.c
1426
tls_decrypt_sw(struct sock *sk, struct tls_context *tls_ctx,
net/tls/tls_sw.c
1466
tls_decrypt_device(struct sock *sk, struct msghdr *msg,
net/tls/tls_sw.c
1515
static int tls_check_pending_rekey(struct sock *sk, struct tls_context *ctx,
net/tls/tls_sw.c
1548
static int tls_rx_one_record(struct sock *sk, struct msghdr *msg,
net/tls/tls_sw.c
1572
int decrypt_skb(struct sock *sk, struct scatterlist *sgout)
net/tls/tls_sw.c
1704
tls_read_flush_backlog(struct sock *sk, struct tls_prot_info *prot,
net/tls/tls_sw.c
1721
static int tls_rx_reader_acquire(struct sock *sk, struct tls_sw_context_rx *ctx,
net/tls/tls_sw.c
1752
static int tls_rx_reader_lock(struct sock *sk, struct tls_sw_context_rx *ctx,
net/tls/tls_sw.c
1764
static void tls_rx_reader_release(struct sock *sk, struct tls_sw_context_rx *ctx)
net/tls/tls_sw.c
1784
static void tls_rx_reader_unlock(struct sock *sk, struct tls_sw_context_rx *ctx)
net/tls/tls_sw.c
1790
int tls_sw_recvmsg(struct sock *sk,
net/tls/tls_sw.c
197
struct sock *sk;
net/tls/tls_sw.c
1983
ssize_t tls_sw_splice_read(struct socket *sock, loff_t *ppos,
net/tls/tls_sw.c
1987
struct tls_context *tls_ctx = tls_get_ctx(sock->sk);
net/tls/tls_sw.c
1990
struct sock *sk = sock->sk;
net/tls/tls_sw.c
2052
int tls_sw_read_sock(struct sock *sk, read_descriptor_t *desc,
net/tls/tls_sw.c
2154
bool tls_sw_sock_is_readable(struct sock *sk)
net/tls/tls_sw.c
2238
static void tls_data_ready(struct sock *sk)
net/tls/tls_sw.c
2261
void tls_sw_release_resources_tx(struct sock *sk)
net/tls/tls_sw.c
2302
void tls_sw_release_resources_rx(struct sock *sk)
net/tls/tls_sw.c
2337
void tls_sw_free_resources_rx(struct sock *sk)
net/tls/tls_sw.c
2355
struct sock *sk = tx_work->sk;
net/tls/tls_sw.c
2394
void tls_sw_write_space(struct sock *sk, struct tls_context *ctx)
net/tls/tls_sw.c
2404
void tls_sw_strparser_arm(struct sock *sk, struct tls_context *tls_ctx)
net/tls/tls_sw.c
2422
static struct tls_sw_context_tx *init_ctx_tx(struct tls_context *ctx, struct sock *sk)
net/tls/tls_sw.c
2495
static void tls_finish_key_update(struct sock *sk, struct tls_context *tls_ctx)
net/tls/tls_sw.c
2504
int tls_set_sw_offload(struct sock *sk, int tx,
net/tls/tls_sw.c
253
static int tls_do_decryption(struct sock *sk,
net/tls/tls_sw.c
308
static void tls_trim_both_msgs(struct sock *sk, int target_size)
net/tls/tls_sw.c
321
static int tls_alloc_encrypted_msg(struct sock *sk, int len)
net/tls/tls_sw.c
331
static int tls_clone_plaintext_msg(struct sock *sk, int required)
net/tls/tls_sw.c
355
static struct tls_rec *tls_get_rec(struct sock *sk)
net/tls/tls_sw.c
389
static void tls_free_rec(struct sock *sk, struct tls_rec *rec)
net/tls/tls_sw.c
396
static void tls_free_open_rec(struct sock *sk)
net/tls/tls_sw.c
408
int tls_tx_records(struct sock *sk, int flags)
net/tls/tls_sw.c
475
struct sock *sk;
net/tls/tls_sw.c
534
static int tls_do_encryption(struct sock *sk,
net/tls/tls_sw.c
617
static int tls_push_record(struct sock *sk, int flags,
net/tls/tls_sw.c
63
struct sock *sk;
net/tls/tls_sw.c
701
static int bpf_exec_tx_verdict(struct sk_msg *msg, struct sock *sk,
net/tls/tls_sw.c
71
noinline void tls_err_abort(struct sock *sk, int err)
net/tls/tls_sw.c
715
static int tls_sw_push_pending_record(struct sock *sk, int flags)
net/tls/tls_sw.c
735
static int tls_sw_sendmsg_splice(struct sock *sk, struct msghdr *msg,
net/tls/tls_sw.c
766
static int tls_sw_sendmsg_locked(struct sock *sk, struct msghdr *msg,
net/tls/tls_sw.c
994
int tls_sw_sendmsg(struct sock *sk, struct msghdr *msg, size_t size)
net/tls/trace.h
106
TP_PROTO(struct sock *sk),
net/tls/trace.h
111
__field( struct sock *, sk )
net/tls/trace.h
125
TP_PROTO(struct sock *sk, u32 sock_data, u32 rec_len),
net/tls/trace.h
13
struct sock;
net/tls/trace.h
130
__field( struct sock *, sk )
net/tls/trace.h
149
TP_PROTO(struct sock *sk, u32 tcp_seq, u32 exp_tcp_seq),
net/tls/trace.h
154
__field( struct sock *, sk )
net/tls/trace.h
17
TP_PROTO(struct sock *sk, int dir, u32 tcp_seq, u8 *rec_no, int ret),
net/tls/trace.h
173
TP_PROTO(struct sock *sk, u32 tcp_seq, u8 *rec_no),
net/tls/trace.h
178
__field( struct sock *, sk )
net/tls/trace.h
22
__field( struct sock *, sk )
net/tls/trace.h
46
TP_PROTO(struct sock *sk, u32 tcp_seq, u8 *rec_no, u32 rec_len,
net/tls/trace.h
52
__field( struct sock *, sk )
net/tls/trace.h
79
TP_PROTO(struct sock *sk, u32 tcp_seq, u8 *rec_no, int sync_type),
net/tls/trace.h
84
__field( struct sock *, sk )
net/unix/af_unix.c
1040
static void unix_close(struct sock *sk, long timeout)
net/unix/af_unix.c
1083
static struct sock *unix_create1(struct net *net, struct socket *sock, int kern, int type)
net/unix/af_unix.c
1086
struct sock *sk;
net/unix/af_unix.c
1105
sock_init_data(sock, sk);
net/unix/af_unix.c
1138
static int unix_create(struct net *net, struct socket *sock, int protocol,
net/unix/af_unix.c
1141
struct sock *sk;
net/unix/af_unix.c
1146
switch (sock->type) {
net/unix/af_unix.c
1148
set_bit(SOCK_CUSTOM_SOCKOPT, &sock->flags);
net/unix/af_unix.c
1149
sock->ops = &unix_stream_ops;
net/unix/af_unix.c
1156
sock->type = SOCK_DGRAM;
net/unix/af_unix.c
1159
sock->ops = &unix_dgram_ops;
net/unix/af_unix.c
1162
sock->ops = &unix_seqpacket_ops;
net/unix/af_unix.c
1168
sk = unix_create1(net, sock, kern, sock->type);
net/unix/af_unix.c
1175
static int unix_release(struct socket *sock)
net/unix/af_unix.c
1177
struct sock *sk = sock->sk;
net/unix/af_unix.c
1184
sock->sk = NULL;
net/unix/af_unix.c
1189
static struct sock *unix_find_bsd(struct sockaddr_un *sunaddr, int addr_len,
net/unix/af_unix.c
1194
struct sock *sk;
net/unix/af_unix.c
1254
static struct sock *unix_find_abstract(struct net *net,
net/unix/af_unix.c
1260
struct sock *sk;
net/unix/af_unix.c
1273
static struct sock *unix_find_other(struct net *net,
net/unix/af_unix.c
1277
struct sock *sk;
net/unix/af_unix.c
1287
static int unix_autobind(struct sock *sk)
net/unix/af_unix.c
1349
static int unix_bind_bsd(struct sock *sk, struct sockaddr_un *sunaddr,
net/unix/af_unix.c
1418
static int unix_bind_abstract(struct sock *sk, struct sockaddr_un *sunaddr,
net/unix/af_unix.c
1462
static int unix_bind(struct socket *sock, struct sockaddr_unsized *uaddr, int addr_len)
net/unix/af_unix.c
1465
struct sock *sk = sock->sk;
net/unix/af_unix.c
1484
static void unix_state_double_lock(struct sock *sk1, struct sock *sk2)
net/unix/af_unix.c
1498
static void unix_state_double_unlock(struct sock *sk1, struct sock *sk2)
net/unix/af_unix.c
1508
static int unix_dgram_connect(struct socket *sock, struct sockaddr_unsized *addr,
net/unix/af_unix.c
1512
struct sock *sk = sock->sk;
net/unix/af_unix.c
1513
struct sock *other;
net/unix/af_unix.c
1536
other = unix_find_other(sock_net(sk), sunaddr, alen, sock->type, 0);
net/unix/af_unix.c
1573
struct sock *old_peer = unix_peer(sk);
net/unix/af_unix.c
1606
static long unix_wait_for_peer(struct sock *other, long timeo)
net/unix/af_unix.c
1627
static int unix_stream_connect(struct socket *sock, struct sockaddr_unsized *uaddr,
net/unix/af_unix.c
1631
struct sock *sk = sock->sk, *newsk = NULL, *other = NULL;
net/unix/af_unix.c
1661
newsk = unix_create1(net, NULL, 0, sock->type);
net/unix/af_unix.c
1809
struct sock *ska = socka->sk, *skb = sockb->sk;
net/unix/af_unix.c
182
const struct sock *a, *b;
net/unix/af_unix.c
1836
static int unix_accept(struct socket *sock, struct socket *newsock,
net/unix/af_unix.c
1839
struct sock *sk = sock->sk;
net/unix/af_unix.c
184
a = container_of(_a, struct sock, sk_receive_queue.lock.dep_map);
net/unix/af_unix.c
1841
struct sock *tsk;
net/unix/af_unix.c
1844
if (sock->type != SOCK_STREAM && sock->type != SOCK_SEQPACKET)
net/unix/af_unix.c
185
b = container_of(_b, struct sock, sk_receive_queue.lock.dep_map);
net/unix/af_unix.c
1883
static int unix_getname(struct socket *sock, struct sockaddr *uaddr, int peer)
net/unix/af_unix.c
1885
struct sock *sk = sock->sk;
net/unix/af_unix.c
199
static unsigned int unix_unbound_hash(struct sock *sk)
net/unix/af_unix.c
2018
static int unix_maybe_add_creds(struct sk_buff *skb, const struct sock *sk,
net/unix/af_unix.c
2019
const struct sock *other)
net/unix/af_unix.c
2050
static void scm_stat_add(struct sock *sk, struct sk_buff *skb)
net/unix/af_unix.c
2061
static void scm_stat_del(struct sock *sk, struct sk_buff *skb)
net/unix/af_unix.c
2072
static void unix_orphan_scm(struct sock *sk, struct sk_buff *skb)
net/unix/af_unix.c
2083
static int unix_dgram_sendmsg(struct socket *sock, struct msghdr *msg,
net/unix/af_unix.c
2086
struct sock *sk = sock->sk, *other = NULL;
net/unix/af_unix.c
2095
err = scm_send(sock, msg, &scm, false);
net/unix/af_unix.c
2317
static int queue_oob(struct sock *sk, struct msghdr *msg, struct sock *other,
net/unix/af_unix.c
2377
static int unix_stream_sendmsg(struct socket *sock, struct msghdr *msg,
net/unix/af_unix.c
2380
struct sock *sk = sock->sk;
net/unix/af_unix.c
2382
struct sock *other = NULL;
net/unix/af_unix.c
2388
err = scm_send(sock, msg, &scm, false);
net/unix/af_unix.c
2522
static int unix_seqpacket_sendmsg(struct socket *sock, struct msghdr *msg,
net/unix/af_unix.c
2526
struct sock *sk = sock->sk;
net/unix/af_unix.c
2538
return unix_dgram_sendmsg(sock, msg, len);
net/unix/af_unix.c
2541
static int unix_seqpacket_recvmsg(struct socket *sock, struct msghdr *msg,
net/unix/af_unix.c
2544
struct sock *sk = sock->sk;
net/unix/af_unix.c
2549
return unix_dgram_recvmsg(sock, msg, size, flags);
net/unix/af_unix.c
2552
static void unix_copy_addr(struct msghdr *msg, struct sock *sk)
net/unix/af_unix.c
2562
int __unix_dgram_recvmsg(struct sock *sk, struct msghdr *msg, size_t size,
net/unix/af_unix.c
2566
struct socket *sock = sk->sk_socket;
net/unix/af_unix.c
2662
scm_recv_unix(sock, msg, &scm, flags);
net/unix/af_unix.c
2671
static int unix_dgram_recvmsg(struct socket *sock, struct msghdr *msg, size_t size,
net/unix/af_unix.c
2674
struct sock *sk = sock->sk;
net/unix/af_unix.c
2685
static int unix_read_skb(struct sock *sk, skb_read_actor_t recv_actor)
net/unix/af_unix.c
2709
static long unix_stream_data_wait(struct sock *sk, long timeo,
net/unix/af_unix.c
2760
struct socket *sock = state->socket;
net/unix/af_unix.c
2761
struct sock *sk = sock->sk;
net/unix/af_unix.c
2808
static struct sk_buff *manage_oob(struct sk_buff *skb, struct sock *sk,
net/unix/af_unix.c
283
static inline int unix_may_send(struct sock *sk, struct sock *osk)
net/unix/af_unix.c
2861
static int unix_stream_read_skb(struct sock *sk, skb_read_actor_t recv_actor)
net/unix/af_unix.c
288
static inline int unix_recvq_full_lockless(const struct sock *sk)
net/unix/af_unix.c
2911
struct socket *sock = state->socket;
net/unix/af_unix.c
2913
struct sock *sk = sock->sk;
net/unix/af_unix.c
293
struct sock *unix_peer_get(struct sock *s)
net/unix/af_unix.c
295
struct sock *peer;
net/unix/af_unix.c
3101
scm_recv_unix(sock, msg, &scm, flags);
net/unix/af_unix.c
3127
int __unix_stream_recvmsg(struct sock *sk, struct msghdr *msg,
net/unix/af_unix.c
3141
static int unix_stream_recvmsg(struct socket *sock, struct msghdr *msg,
net/unix/af_unix.c
3146
.socket = sock,
net/unix/af_unix.c
3153
struct sock *sk = sock->sk;
net/unix/af_unix.c
3171
static ssize_t unix_stream_splice_read(struct socket *sock, loff_t *ppos,
net/unix/af_unix.c
3177
.socket = sock,
net/unix/af_unix.c
3186
if (sock->file->f_flags & O_NONBLOCK ||
net/unix/af_unix.c
3193
static int unix_shutdown(struct socket *sock, int mode)
net/unix/af_unix.c
3195
struct sock *sk = sock->sk;
net/unix/af_unix.c
3196
struct sock *other;
net/unix/af_unix.c
3242
long unix_inq_len(struct sock *sk)
net/unix/af_unix.c
3268
long unix_outq_len(struct sock *sk)
net/unix/af_unix.c
3274
static int unix_open_file(struct sock *sk)
net/unix/af_unix.c
3288
static int unix_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
net/unix/af_unix.c
3290
struct sock *sk = sock->sk;
net/unix/af_unix.c
3348
static int unix_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
net/unix/af_unix.c
3350
return unix_ioctl(sock, cmd, (unsigned long)compat_ptr(arg));
net/unix/af_unix.c
3354
static __poll_t unix_poll(struct file *file, struct socket *sock, poll_table *wait)
net/unix/af_unix.c
3356
struct sock *sk = sock->sk;
net/unix/af_unix.c
3361
sock_poll_wait(file, sock, wait);
net/unix/af_unix.c
3399
static __poll_t unix_dgram_poll(struct file *file, struct socket *sock,
net/unix/af_unix.c
3402
struct sock *sk = sock->sk, *other;
net/unix/af_unix.c
3408
sock_poll_wait(file, sock, wait);
net/unix/af_unix.c
3467
static struct sock *unix_from_bucket(struct seq_file *seq, loff_t *pos)
net/unix/af_unix.c
3472
struct sock *sk;
net/unix/af_unix.c
3483
static struct sock *unix_get_first(struct seq_file *seq, loff_t *pos)
net/unix/af_unix.c
3487
struct sock *sk;
net/unix/af_unix.c
3504
static struct sock *unix_get_next(struct seq_file *seq, struct sock *sk,
net/unix/af_unix.c
3541
struct sock *sk = v;
net/unix/af_unix.c
3554
struct sock *s = v;
net/unix/af_unix.c
3606
struct sock **batch;
net/unix/af_unix.c
3628
static int bpf_iter_unix_hold_batch(struct seq_file *seq, struct sock *start_sk)
net/unix/af_unix.c
3633
struct sock *sk;
net/unix/af_unix.c
3661
struct sock **new_batch;
net/unix/af_unix.c
3676
static struct sock *bpf_iter_unix_batch(struct seq_file *seq,
net/unix/af_unix.c
3682
struct sock *sk;
net/unix/af_unix.c
372
static void __unix_remove_socket(struct sock *sk)
net/unix/af_unix.c
3725
struct sock *sk;
net/unix/af_unix.c
3748
struct sock *sk = v;
net/unix/af_unix.c
377
static void __unix_insert_socket(struct net *net, struct sock *sk)
net/unix/af_unix.c
383
static void __unix_set_addr_hash(struct net *net, struct sock *sk,
net/unix/af_unix.c
393
static void unix_remove_socket(struct net *net, struct sock *sk)
net/unix/af_unix.c
400
static void unix_insert_unbound_socket(struct net *net, struct sock *sk)
net/unix/af_unix.c
407
static void unix_insert_bsd_socket(struct sock *sk)
net/unix/af_unix.c
414
static void unix_remove_bsd_socket(struct sock *sk)
net/unix/af_unix.c
425
static struct sock *__unix_find_socket_byname(struct net *net,
net/unix/af_unix.c
429
struct sock *s;
net/unix/af_unix.c
441
static inline struct sock *unix_find_socket_byname(struct net *net,
net/unix/af_unix.c
445
struct sock *s;
net/unix/af_unix.c
455
static struct sock *unix_find_socket_byinode(struct inode *i)
net/unix/af_unix.c
458
struct sock *s;
net/unix/af_unix.c
519
static int unix_dgram_peer_wake_connect(struct sock *sk, struct sock *other)
net/unix/af_unix.c
540
static void unix_dgram_peer_wake_disconnect(struct sock *sk,
net/unix/af_unix.c
541
struct sock *other)
net/unix/af_unix.c
557
static void unix_dgram_peer_wake_disconnect_wakeup(struct sock *sk,
net/unix/af_unix.c
558
struct sock *other)
net/unix/af_unix.c
571
static int unix_dgram_peer_wake_me(struct sock *sk, struct sock *other)
net/unix/af_unix.c
591
static int unix_writable(const struct sock *sk, unsigned char state)
net/unix/af_unix.c
597
static void unix_write_space(struct sock *sk)
net/unix/af_unix.c
616
static void unix_dgram_disconnected(struct sock *sk, struct sock *other)
net/unix/af_unix.c
635
static void unix_sock_destructor(struct sock *sk)
net/unix/af_unix.c
665
static void unix_release_sock(struct sock *sk, int embrion)
net/unix/af_unix.c
668
struct sock *skpair;
net/unix/af_unix.c
772
static inline void init_peercred(struct sock *sk,
net/unix/af_unix.c
779
static void update_peercred(struct sock *sk, struct unix_peercred *peercred)
net/unix/af_unix.c
794
static void copy_peercred(struct sock *sk, struct sock *peersk)
net/unix/af_unix.c
804
static bool unix_may_passcred(const struct sock *sk)
net/unix/af_unix.c
809
static int unix_listen(struct socket *sock, int backlog)
net/unix/af_unix.c
812
struct sock *sk = sock->sk;
net/unix/af_unix.c
817
if (sock->type != SOCK_STREAM && sock->type != SOCK_SEQPACKET)
net/unix/af_unix.c
857
static int unix_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg);
net/unix/af_unix.c
867
static int unix_read_skb(struct sock *sk, skb_read_actor_t recv_actor);
net/unix/af_unix.c
868
static int unix_stream_read_skb(struct sock *sk, skb_read_actor_t recv_actor);
net/unix/af_unix.c
876
static int unix_count_nr_fds(struct sock *sk)
net/unix/af_unix.c
894
static void unix_show_fdinfo(struct seq_file *m, struct socket *sock)
net/unix/af_unix.c
896
struct sock *sk = sock->sk;
net/unix/af_unix.c
909
if (sock->type == SOCK_DGRAM || s_state == TCP_ESTABLISHED)
net/unix/af_unix.c
931
static int unix_setsockopt(struct socket *sock, int level, int optname,
net/unix/af_unix.c
934
struct unix_sock *u = unix_sk(sock->sk);
net/unix/af_unix.c
935
struct sock *sk = sock->sk;
net/unix/af_unix.c
942
return sock_setsockopt(sock, level, optname, optval, optlen);
net/unix/af_unix.h
11
struct sock *unix_peer_get(struct sock *sk);
net/unix/af_unix.h
36
long unix_inq_len(struct sock *sk);
net/unix/af_unix.h
37
long unix_outq_len(struct sock *sk);
net/unix/af_unix.h
55
int __unix_dgram_recvmsg(struct sock *sk, struct msghdr *msg, size_t size, int flags);
net/unix/af_unix.h
56
int __unix_stream_recvmsg(struct sock *sk, struct msghdr *msg, size_t size, int flags);
net/unix/af_unix.h
62
int unix_dgram_bpf_update_proto(struct sock *sk, struct sk_psock *psock, bool restore);
net/unix/af_unix.h
63
int unix_stream_bpf_update_proto(struct sock *sk, struct sk_psock *psock, bool restore);
net/unix/diag.c
111
static int sk_diag_dump_uid(struct sock *sk, struct sk_buff *nlskb,
net/unix/diag.c
118
static int sk_diag_fill(struct sock *sk, struct sk_buff *skb, struct unix_diag_req *req,
net/unix/diag.c
16
static int sk_diag_dump_name(struct sock *sk, struct sk_buff *nlskb)
net/unix/diag.c
189
struct sock *sk;
net/unix/diag.c
225
static struct sock *unix_lookup_by_ino(struct net *net, unsigned int ino)
net/unix/diag.c
227
struct sock *sk;
net/unix/diag.c
251
struct sock *sk;
net/unix/diag.c
29
static int sk_diag_dump_vfs(struct sock *sk, struct sk_buff *nlskb)
net/unix/diag.c
50
static int sk_diag_dump_peer(struct sock *sk, struct sk_buff *nlskb)
net/unix/diag.c
52
struct sock *peer;
net/unix/diag.c
66
static int sk_diag_dump_icons(struct sock *sk, struct sk_buff *nlskb)
net/unix/diag.c
96
static int sk_diag_show_rqlen(struct sock *sk, struct sk_buff *nlskb)
net/unix/garbage.c
101
struct sock *sk = sock->sk;
net/unix/garbage.c
103
ops = READ_ONCE(sock->ops);
net/unix/garbage.c
99
struct socket *sock = SOCKET_I(inode);
net/unix/unix_bpf.c
148
int unix_dgram_bpf_update_proto(struct sock *sk, struct sk_psock *psock, bool restore)
net/unix/unix_bpf.c
16
static int unix_msg_wait_data(struct sock *sk, struct sk_psock *psock,
net/unix/unix_bpf.c
164
int unix_stream_bpf_update_proto(struct sock *sk, struct sk_psock *psock, bool restore)
net/unix/unix_bpf.c
166
struct sock *sk_pair;
net/unix/unix_bpf.c
42
static int __unix_recvmsg(struct sock *sk, struct msghdr *msg,
net/unix/unix_bpf.c
51
static int unix_bpf_recvmsg(struct sock *sk, struct msghdr *msg,
net/vmw_vsock/af_vsock.c
1020
static void vsock_sk_destruct(struct sock *sk)
net/vmw_vsock/af_vsock.c
1038
static int vsock_queue_rcv_skb(struct sock *sk, struct sk_buff *skb)
net/vmw_vsock/af_vsock.c
1049
struct sock *vsock_create_connected(struct sock *parent)
net/vmw_vsock/af_vsock.c
1067
struct sock *sk = sk_vsock(vsk);
net/vmw_vsock/af_vsock.c
1088
void vsock_data_ready(struct sock *sk)
net/vmw_vsock/af_vsock.c
1101
static void vsock_close(struct sock *sk, long timeout)
net/vmw_vsock/af_vsock.c
1105
static int vsock_release(struct socket *sock)
net/vmw_vsock/af_vsock.c
1107
struct sock *sk = sock->sk;
net/vmw_vsock/af_vsock.c
1114
sock->sk = NULL;
net/vmw_vsock/af_vsock.c
1115
sock->state = SS_FREE;
net/vmw_vsock/af_vsock.c
1121
vsock_bind(struct socket *sock, struct sockaddr_unsized *addr, int addr_len)
net/vmw_vsock/af_vsock.c
1124
struct sock *sk;
net/vmw_vsock/af_vsock.c
1127
sk = sock->sk;
net/vmw_vsock/af_vsock.c
1139
static int vsock_getname(struct socket *sock,
net/vmw_vsock/af_vsock.c
1143
struct sock *sk;
net/vmw_vsock/af_vsock.c
1147
sk = sock->sk;
net/vmw_vsock/af_vsock.c
1154
if (sock->state != SS_CONNECTED) {
net/vmw_vsock/af_vsock.c
1172
void vsock_linger(struct sock *sk)
net/vmw_vsock/af_vsock.c
1205
static int vsock_shutdown(struct socket *sock, int mode)
net/vmw_vsock/af_vsock.c
1208
struct sock *sk;
net/vmw_vsock/af_vsock.c
1227
sk = sock->sk;
net/vmw_vsock/af_vsock.c
1230
if (sock->state == SS_UNCONNECTED) {
net/vmw_vsock/af_vsock.c
1235
sock->state = SS_DISCONNECTING;
net/vmw_vsock/af_vsock.c
1256
static __poll_t vsock_poll_shutdown(struct sock *sk, u32 peer_shutdown)
net/vmw_vsock/af_vsock.c
1275
static __poll_t vsock_poll(struct file *file, struct socket *sock,
net/vmw_vsock/af_vsock.c
1278
struct sock *sk;
net/vmw_vsock/af_vsock.c
1282
sk = sock->sk;
net/vmw_vsock/af_vsock.c
1295
if (sock->type == SOCK_DGRAM) {
net/vmw_vsock/af_vsock.c
1392
static int vsock_read_skb(struct sock *sk, skb_read_actor_t read_actor)
net/vmw_vsock/af_vsock.c
1402
static int vsock_dgram_sendmsg(struct socket *sock, struct msghdr *msg,
net/vmw_vsock/af_vsock.c
1406
struct sock *sk;
net/vmw_vsock/af_vsock.c
1416
sk = sock->sk;
net/vmw_vsock/af_vsock.c
1445
} else if (sock->state == SS_CONNECTED) {
net/vmw_vsock/af_vsock.c
1476
static int vsock_dgram_connect(struct socket *sock,
net/vmw_vsock/af_vsock.c
1480
struct sock *sk;
net/vmw_vsock/af_vsock.c
1484
sk = sock->sk;
net/vmw_vsock/af_vsock.c
1492
sock->state = SS_UNCONNECTED;
net/vmw_vsock/af_vsock.c
1511
sock->state = SS_CONNECTED;
net/vmw_vsock/af_vsock.c
1528
int __vsock_dgram_recvmsg(struct socket *sock, struct msghdr *msg,
net/vmw_vsock/af_vsock.c
1531
struct sock *sk = sock->sk;
net/vmw_vsock/af_vsock.c
1537
int vsock_dgram_recvmsg(struct socket *sock, struct msghdr *msg,
net/vmw_vsock/af_vsock.c
1541
struct sock *sk = sock->sk;
net/vmw_vsock/af_vsock.c
1549
return __vsock_dgram_recvmsg(sock, msg, len, flags);
net/vmw_vsock/af_vsock.c
1553
static int vsock_do_ioctl(struct socket *sock, unsigned int cmd,
net/vmw_vsock/af_vsock.c
1556
struct sock *sk = sock->sk;
net/vmw_vsock/af_vsock.c
1614
static int vsock_ioctl(struct socket *sock, unsigned int cmd,
net/vmw_vsock/af_vsock.c
1619
lock_sock(sock->sk);
net/vmw_vsock/af_vsock.c
1620
ret = vsock_do_ioctl(sock, cmd, (int __user *)arg);
net/vmw_vsock/af_vsock.c
1621
release_sock(sock->sk);
net/vmw_vsock/af_vsock.c
1657
struct sock *sk;
net/vmw_vsock/af_vsock.c
1677
static int vsock_connect(struct socket *sock, struct sockaddr_unsized *addr,
net/vmw_vsock/af_vsock.c
1681
struct sock *sk;
net/vmw_vsock/af_vsock.c
1689
sk = sock->sk;
net/vmw_vsock/af_vsock.c
1695
switch (sock->state) {
net/vmw_vsock/af_vsock.c
1769
sock->state = SS_CONNECTING;
net/vmw_vsock/af_vsock.c
179
static int __vsock_bind(struct sock *sk, struct sockaddr_vm *addr);
net/vmw_vsock/af_vsock.c
180
static void vsock_sk_destruct(struct sock *sk);
net/vmw_vsock/af_vsock.c
181
static int vsock_queue_rcv_skb(struct sock *sk, struct sk_buff *skb);
net/vmw_vsock/af_vsock.c
182
static void vsock_close(struct sock *sk, long timeout);
net/vmw_vsock/af_vsock.c
1837
sock->state = SS_UNCONNECTED;
net/vmw_vsock/af_vsock.c
1853
sock->state = SS_UNCONNECTED;
net/vmw_vsock/af_vsock.c
1865
static int vsock_accept(struct socket *sock, struct socket *newsock,
net/vmw_vsock/af_vsock.c
1868
struct sock *listener;
net/vmw_vsock/af_vsock.c
1870
struct sock *connected;
net/vmw_vsock/af_vsock.c
1876
listener = sock->sk;
net/vmw_vsock/af_vsock.c
1880
if (!sock_type_connectible(sock->type)) {
net/vmw_vsock/af_vsock.c
1951
static int vsock_listen(struct socket *sock, int backlog)
net/vmw_vsock/af_vsock.c
1954
struct sock *sk;
net/vmw_vsock/af_vsock.c
1957
sk = sock->sk;
net/vmw_vsock/af_vsock.c
1966
if (sock->state != SS_UNCONNECTED) {
net/vmw_vsock/af_vsock.c
2005
static int vsock_connectible_setsockopt(struct socket *sock,
net/vmw_vsock/af_vsock.c
2012
struct sock *sk;
net/vmw_vsock/af_vsock.c
2033
sk = sock->sk;
net/vmw_vsock/af_vsock.c
2045
return sock_setsockopt(sock, level, optname, optval, optlen);
net/vmw_vsock/af_vsock.c
2119
static int vsock_connectible_getsockopt(struct socket *sock,
net/vmw_vsock/af_vsock.c
2123
struct sock *sk = sock->sk;
net/vmw_vsock/af_vsock.c
2178
static int vsock_connectible_sendmsg(struct socket *sock, struct msghdr *msg,
net/vmw_vsock/af_vsock.c
2181
struct sock *sk;
net/vmw_vsock/af_vsock.c
2190
sk = sock->sk;
net/vmw_vsock/af_vsock.c
2340
static int vsock_connectible_wait_data(struct sock *sk,
net/vmw_vsock/af_vsock.c
2407
static int __vsock_stream_recvmsg(struct sock *sk, struct msghdr *msg,
net/vmw_vsock/af_vsock.c
2486
static int __vsock_seqpacket_recvmsg(struct sock *sk, struct msghdr *msg,
net/vmw_vsock/af_vsock.c
2537
__vsock_connectible_recvmsg(struct socket *sock, struct msghdr *msg, size_t len,
net/vmw_vsock/af_vsock.c
254
struct sock *sk = sk_vsock(vsk);
net/vmw_vsock/af_vsock.c
2540
struct sock *sk;
net/vmw_vsock/af_vsock.c
2545
sk = sock->sk;
net/vmw_vsock/af_vsock.c
2604
vsock_connectible_recvmsg(struct socket *sock, struct msghdr *msg, size_t len,
net/vmw_vsock/af_vsock.c
2608
struct sock *sk = sock->sk;
net/vmw_vsock/af_vsock.c
2616
return __vsock_connectible_recvmsg(sock, msg, len, flags);
net/vmw_vsock/af_vsock.c
2620
static int vsock_set_rcvlowat(struct sock *sk, int val)
net/vmw_vsock/af_vsock.c
2687
static int vsock_create(struct net *net, struct socket *sock,
net/vmw_vsock/af_vsock.c
2691
struct sock *sk;
net/vmw_vsock/af_vsock.c
2694
if (!sock)
net/vmw_vsock/af_vsock.c
2700
switch (sock->type) {
net/vmw_vsock/af_vsock.c
2702
sock->ops = &vsock_dgram_ops;
net/vmw_vsock/af_vsock.c
2705
sock->ops = &vsock_stream_ops;
net/vmw_vsock/af_vsock.c
2708
sock->ops = &vsock_seqpacket_ops;
net/vmw_vsock/af_vsock.c
2714
sock->state = SS_UNCONNECTED;
net/vmw_vsock/af_vsock.c
2716
sk = __vsock_create(net, sock, NULL, GFP_KERNEL, 0, kern);
net/vmw_vsock/af_vsock.c
2722
if (sock->type == SOCK_DGRAM) {
net/vmw_vsock/af_vsock.c
2725
sock->sk = NULL;
net/vmw_vsock/af_vsock.c
2734
if (sock_type_connectible(sock->type))
net/vmw_vsock/af_vsock.c
300
static struct sock *__vsock_find_bound_socket_net(struct sockaddr_vm *addr,
net/vmw_vsock/af_vsock.c
306
struct sock *sk = sk_vsock(vsk);
net/vmw_vsock/af_vsock.c
322
static struct sock *
net/vmw_vsock/af_vsock.c
330
struct sock *sk = sk_vsock(vsk);
net/vmw_vsock/af_vsock.c
383
struct sock *vsock_find_bound_socket_net(struct sockaddr_vm *addr,
net/vmw_vsock/af_vsock.c
386
struct sock *sk;
net/vmw_vsock/af_vsock.c
404
struct sock *vsock_find_bound_socket(struct sockaddr_vm *addr)
net/vmw_vsock/af_vsock.c
415
struct sock *vsock_find_connected_socket_net(struct sockaddr_vm *src,
net/vmw_vsock/af_vsock.c
419
struct sock *sk;
net/vmw_vsock/af_vsock.c
437
struct sock *vsock_find_connected_socket(struct sockaddr_vm *src,
net/vmw_vsock/af_vsock.c
455
void (*fn)(struct sock *sk))
net/vmw_vsock/af_vsock.c
476
void vsock_add_pending(struct sock *listener, struct sock *pending)
net/vmw_vsock/af_vsock.c
491
void vsock_remove_pending(struct sock *listener, struct sock *pending)
net/vmw_vsock/af_vsock.c
502
void vsock_pending_to_accept(struct sock *listener, struct sock *pending)
net/vmw_vsock/af_vsock.c
512
void vsock_enqueue_accept(struct sock *listener, struct sock *connected)
net/vmw_vsock/af_vsock.c
573
struct sock *sk = sk_vsock(vsk);
net/vmw_vsock/af_vsock.c
716
static struct sock *vsock_dequeue_accept(struct sock *listener)
net/vmw_vsock/af_vsock.c
738
static bool vsock_is_accept_queue_empty(struct sock *sk)
net/vmw_vsock/af_vsock.c
744
static bool vsock_is_pending(struct sock *sk)
net/vmw_vsock/af_vsock.c
750
static int vsock_send_shutdown(struct sock *sk, int mode)
net/vmw_vsock/af_vsock.c
762
struct sock *sk;
net/vmw_vsock/af_vsock.c
763
struct sock *listener;
net/vmw_vsock/af_vsock.c
869
static int __vsock_bind(struct sock *sk, struct sockaddr_vm *addr)
net/vmw_vsock/af_vsock.c
908
static struct sock *__vsock_create(struct net *net,
net/vmw_vsock/af_vsock.c
909
struct socket *sock,
net/vmw_vsock/af_vsock.c
910
struct sock *parent,
net/vmw_vsock/af_vsock.c
915
struct sock *sk;
net/vmw_vsock/af_vsock.c
923
sock_init_data(sock, sk);
net/vmw_vsock/af_vsock.c
929
if (!sock)
net/vmw_vsock/af_vsock.c
978
static void __vsock_release(struct sock *sk, int level)
net/vmw_vsock/af_vsock.c
981
struct sock *pending;
net/vmw_vsock/diag.c
107
struct sock *sk = sk_vsock(vsk);
net/vmw_vsock/diag.c
14
static int sk_diag_fill(struct sock *sk, struct sk_buff *skb,
net/vmw_vsock/diag.c
77
struct sock *sk = sk_vsock(vsk);
net/vmw_vsock/hyperv_transport.c
249
struct sock *sk = (struct sock *)ctx;
net/vmw_vsock/hyperv_transport.c
264
struct sock *sk = sk_vsock(vsk);
net/vmw_vsock/hyperv_transport.c
283
struct sock *sk = get_per_channel_state(chan);
net/vmw_vsock/hyperv_transport.c
301
struct sock *sk, *new = NULL;
net/vmw_vsock/hyperv_transport.c
444
struct sock *sk = sk_vsock(vsk);
net/vmw_vsock/hyperv_transport.c
498
struct sock *sk = sk_vsock(vsk);
net/vmw_vsock/hyperv_transport.c
513
struct sock *sk = sk_vsock(vsk);
net/vmw_vsock/virtio_transport.c
413
static void virtio_vsock_reset_sock(struct sock *sk)
net/vmw_vsock/virtio_transport_common.c
1364
struct sock *sk = sk_vsock(vsk);
net/vmw_vsock/virtio_transport_common.c
1380
struct sock *sk = sk_vsock(vsk);
net/vmw_vsock/virtio_transport_common.c
1395
struct sock *sk = sk_vsock(vsk);
net/vmw_vsock/virtio_transport_common.c
1415
struct sock *sk = &vsk->sk;
net/vmw_vsock/virtio_transport_common.c
1447
struct sock *sk = &vsk->sk;
net/vmw_vsock/virtio_transport_common.c
1461
virtio_transport_recv_connecting(struct sock *sk,
net/vmw_vsock/virtio_transport_common.c
1575
virtio_transport_recv_connected(struct sock *sk,
net/vmw_vsock/virtio_transport_common.c
1640
virtio_transport_recv_disconnecting(struct sock *sk,
net/vmw_vsock/virtio_transport_common.c
1667
static bool virtio_transport_space_update(struct sock *sk,
net/vmw_vsock/virtio_transport_common.c
1694
virtio_transport_recv_listen(struct sock *sk, struct sk_buff *skb,
net/vmw_vsock/virtio_transport_common.c
1700
struct sock *child;
net/vmw_vsock/virtio_transport_common.c
1776
struct sock *sk;
net/vmw_vsock/virtio_transport_common.c
1916
struct sock *sk = sk_vsock(vsk);
net/vmw_vsock/virtio_transport_common.c
203
static u16 virtio_transport_get_type(struct sock *sk)
net/vmw_vsock/virtio_transport_common.c
611
struct sock *s = skb->sk;
net/vmw_vsock/vmci_transport.c
1137
vmci_transport_recv_connecting_server(struct sock *listener,
net/vmw_vsock/vmci_transport.c
1138
struct sock *pending,
net/vmw_vsock/vmci_transport.c
1283
vmci_transport_recv_connecting_client(struct sock *sk,
net/vmw_vsock/vmci_transport.c
1382
struct sock *sk,
net/vmw_vsock/vmci_transport.c
1503
vmci_transport_recv_connecting_client_invalid(struct sock *sk,
net/vmw_vsock/vmci_transport.c
1524
static int vmci_transport_recv_connected(struct sock *sk,
net/vmw_vsock/vmci_transport.c
1815
struct sock *sk = &vsk->sk;
net/vmw_vsock/vmci_transport.c
2005
static bool vmci_transport_proto_to_notify_struct(struct sock *sk,
net/vmw_vsock/vmci_transport.c
278
vmci_transport_send_control_pkt(struct sock *sk,
net/vmw_vsock/vmci_transport.c
314
static int vmci_transport_send_reset(struct sock *sk,
net/vmw_vsock/vmci_transport.c
342
static int vmci_transport_send_negotiate(struct sock *sk, size_t size)
net/vmw_vsock/vmci_transport.c
352
static int vmci_transport_send_negotiate2(struct sock *sk, size_t size,
net/vmw_vsock/vmci_transport.c
362
static int vmci_transport_send_qp_offer(struct sock *sk,
net/vmw_vsock/vmci_transport.c
371
static int vmci_transport_send_attach(struct sock *sk,
net/vmw_vsock/vmci_transport.c
39
static int vmci_transport_recv_listen(struct sock *sk,
net/vmw_vsock/vmci_transport.c
416
int vmci_transport_send_wrote(struct sock *sk)
net/vmw_vsock/vmci_transport.c
42
struct sock *sk,
net/vmw_vsock/vmci_transport.c
424
int vmci_transport_send_read(struct sock *sk)
net/vmw_vsock/vmci_transport.c
43
struct sock *pending,
net/vmw_vsock/vmci_transport.c
432
int vmci_transport_send_waiting_write(struct sock *sk,
net/vmw_vsock/vmci_transport.c
441
int vmci_transport_send_waiting_read(struct sock *sk,
net/vmw_vsock/vmci_transport.c
46
struct sock *sk,
net/vmw_vsock/vmci_transport.c
460
static int vmci_transport_send_conn_request(struct sock *sk, size_t size)
net/vmw_vsock/vmci_transport.c
469
static int vmci_transport_send_conn_request2(struct sock *sk, size_t size,
net/vmw_vsock/vmci_transport.c
478
static struct sock *vmci_transport_get_pending(
net/vmw_vsock/vmci_transport.c
479
struct sock *listener,
net/vmw_vsock/vmci_transport.c
484
struct sock *pending;
net/vmw_vsock/vmci_transport.c
49
struct sock *sk,
net/vmw_vsock/vmci_transport.c
507
static void vmci_transport_release_pending(struct sock *pending)
net/vmw_vsock/vmci_transport.c
52
struct sock *sk,
net/vmw_vsock/vmci_transport.c
54
static int vmci_transport_recv_connected(struct sock *sk,
net/vmw_vsock/vmci_transport.c
58
static bool vmci_transport_proto_to_notify_struct(struct sock *sk, u16 *proto,
net/vmw_vsock/vmci_transport.c
613
struct sock *sk;
net/vmw_vsock/vmci_transport.c
618
sk = (struct sock *)data;
net/vmw_vsock/vmci_transport.c
64
struct sock *sk;
net/vmw_vsock/vmci_transport.c
677
struct sock *sk;
net/vmw_vsock/vmci_transport.c
811
static void vmci_transport_handle_detach(struct sock *sk)
net/vmw_vsock/vmci_transport.c
903
struct sock *sk;
net/vmw_vsock/vmci_transport.c
948
static int vmci_transport_recv_listen(struct sock *sk,
net/vmw_vsock/vmci_transport.c
951
struct sock *pending;
net/vmw_vsock/vmci_transport.h
115
struct sock *sk;
net/vmw_vsock/vmci_transport.h
123
int vmci_transport_send_wrote(struct sock *sk);
net/vmw_vsock/vmci_transport.h
124
int vmci_transport_send_read(struct sock *sk);
net/vmw_vsock/vmci_transport.h
125
int vmci_transport_send_waiting_write(struct sock *sk,
net/vmw_vsock/vmci_transport.h
127
int vmci_transport_send_waiting_read(struct sock *sk,
net/vmw_vsock/vmci_transport_notify.c
105
vmci_transport_handle_waiting_read(struct sock *sk,
net/vmw_vsock/vmci_transport_notify.c
135
vmci_transport_handle_waiting_write(struct sock *sk,
net/vmw_vsock/vmci_transport_notify.c
165
vmci_transport_handle_read(struct sock *sk,
net/vmw_vsock/vmci_transport_notify.c
180
static bool send_waiting_read(struct sock *sk, u64 room_needed)
net/vmw_vsock/vmci_transport_notify.c
222
static bool send_waiting_write(struct sock *sk, u64 room_needed)
net/vmw_vsock/vmci_transport_notify.c
259
static int vmci_transport_send_read_notification(struct sock *sk)
net/vmw_vsock/vmci_transport_notify.c
301
vmci_transport_handle_wrote(struct sock *sk,
net/vmw_vsock/vmci_transport_notify.c
313
static void vmci_transport_notify_pkt_socket_init(struct sock *sk)
net/vmw_vsock/vmci_transport_notify.c
338
vmci_transport_notify_pkt_poll_in(struct sock *sk,
net/vmw_vsock/vmci_transport_notify.c
362
vmci_transport_notify_pkt_poll_out(struct sock *sk,
net/vmw_vsock/vmci_transport_notify.c
392
struct sock *sk,
net/vmw_vsock/vmci_transport_notify.c
428
struct sock *sk,
net/vmw_vsock/vmci_transport_notify.c
454
struct sock *sk,
net/vmw_vsock/vmci_transport_notify.c
474
struct sock *sk,
net/vmw_vsock/vmci_transport_notify.c
507
struct sock *sk,
net/vmw_vsock/vmci_transport_notify.c
520
struct sock *sk,
net/vmw_vsock/vmci_transport_notify.c
532
struct sock *sk,
net/vmw_vsock/vmci_transport_notify.c
548
struct sock *sk,
net/vmw_vsock/vmci_transport_notify.c
599
struct sock *sk,
net/vmw_vsock/vmci_transport_notify.c
633
static void vmci_transport_notify_pkt_process_request(struct sock *sk)
net/vmw_vsock/vmci_transport_notify.c
644
static void vmci_transport_notify_pkt_process_negotiate(struct sock *sk)
net/vmw_vsock/vmci_transport_notify.h
39
void (*socket_init) (struct sock *sk);
net/vmw_vsock/vmci_transport_notify.h
41
int (*poll_in) (struct sock *sk, size_t target,
net/vmw_vsock/vmci_transport_notify.h
43
int (*poll_out) (struct sock *sk, size_t target,
net/vmw_vsock/vmci_transport_notify.h
45
void (*handle_notify_pkt) (struct sock *sk,
net/vmw_vsock/vmci_transport_notify.h
50
int (*recv_init) (struct sock *sk, size_t target,
net/vmw_vsock/vmci_transport_notify.h
52
int (*recv_pre_block) (struct sock *sk, size_t target,
net/vmw_vsock/vmci_transport_notify.h
54
int (*recv_pre_dequeue) (struct sock *sk, size_t target,
net/vmw_vsock/vmci_transport_notify.h
56
int (*recv_post_dequeue) (struct sock *sk, size_t target,
net/vmw_vsock/vmci_transport_notify.h
59
int (*send_init) (struct sock *sk,
net/vmw_vsock/vmci_transport_notify.h
61
int (*send_pre_block) (struct sock *sk,
net/vmw_vsock/vmci_transport_notify.h
63
int (*send_pre_enqueue) (struct sock *sk,
net/vmw_vsock/vmci_transport_notify.h
65
int (*send_post_enqueue) (struct sock *sk, ssize_t written,
net/vmw_vsock/vmci_transport_notify.h
67
void (*process_request) (struct sock *sk);
net/vmw_vsock/vmci_transport_notify.h
68
void (*process_negotiate) (struct sock *sk);
net/vmw_vsock/vmci_transport_notify_qstate.c
100
static int vmci_transport_send_read_notification(struct sock *sk)
net/vmw_vsock/vmci_transport_notify_qstate.c
140
static void vmci_transport_notify_pkt_socket_init(struct sock *sk)
net/vmw_vsock/vmci_transport_notify_qstate.c
159
vmci_transport_notify_pkt_poll_in(struct sock *sk,
net/vmw_vsock/vmci_transport_notify_qstate.c
180
vmci_transport_notify_pkt_poll_out(struct sock *sk,
net/vmw_vsock/vmci_transport_notify_qstate.c
202
struct sock *sk,
net/vmw_vsock/vmci_transport_notify_qstate.c
234
struct sock *sk,
net/vmw_vsock/vmci_transport_notify_qstate.c
254
struct sock *sk,
net/vmw_vsock/vmci_transport_notify_qstate.c
293
struct sock *sk,
net/vmw_vsock/vmci_transport_notify_qstate.c
304
struct sock *sk,
net/vmw_vsock/vmci_transport_notify_qstate.c
343
struct sock *sk,
net/vmw_vsock/vmci_transport_notify_qstate.c
366
static void vmci_transport_notify_pkt_process_request(struct sock *sk)
net/vmw_vsock/vmci_transport_notify_qstate.c
377
static void vmci_transport_notify_pkt_process_negotiate(struct sock *sk)
net/vmw_vsock/vmci_transport_notify_qstate.c
390
struct sock *sk,
net/vmw_vsock/vmci_transport_notify_qstate.c
399
struct sock *sk,
net/vmw_vsock/vmci_transport_notify_qstate.c
407
struct sock *sk,
net/vmw_vsock/vmci_transport_notify_qstate.c
73
vmci_transport_handle_read(struct sock *sk,
net/vmw_vsock/vmci_transport_notify_qstate.c
82
vmci_transport_handle_wrote(struct sock *sk,
net/vmw_vsock/vmci_transport_notify_qstate.c
90
static void vsock_block_update_write_window(struct sock *sk)
net/vmw_vsock/vsock_bpf.c
150
int vsock_bpf_update_proto(struct sock *sk, struct sk_psock *psock, bool restore)
net/vmw_vsock/vsock_bpf.c
25
static bool vsock_has_data(struct sock *sk, struct sk_psock *psock)
net/vmw_vsock/vsock_bpf.c
37
static bool vsock_msg_wait_data(struct sock *sk, struct sk_psock *psock, long timeo)
net/vmw_vsock/vsock_bpf.c
61
static int __vsock_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, int flags)
net/vmw_vsock/vsock_bpf.c
63
struct socket *sock = sk->sk_socket;
net/vmw_vsock/vsock_bpf.c
67
err = __vsock_connectible_recvmsg(sock, msg, len, flags);
net/vmw_vsock/vsock_bpf.c
69
err = __vsock_dgram_recvmsg(sock, msg, len, flags);
net/vmw_vsock/vsock_bpf.c
76
static int vsock_bpf_recvmsg(struct sock *sk, struct msghdr *msg,
net/wireless/core.h
148
rdev->wiphy.wowlan_config->tcp->sock)
net/wireless/core.h
149
sock_release(rdev->wiphy.wowlan_config->tcp->sock);
net/wireless/nl80211.c
15567
IPPROTO_TCP, &cfg->sock, 1);
net/wireless/nl80211.c
15572
if (inet_csk_get_port(cfg->sock->sk, port)) {
net/wireless/nl80211.c
15573
sock_release(cfg->sock);
net/wireless/nl80211.c
15577
cfg->src_port = inet_sk(cfg->sock->sk)->inet_num;
net/wireless/nl80211.c
15845
if (new_triggers.tcp && new_triggers.tcp->sock)
net/wireless/nl80211.c
15846
sock_release(new_triggers.tcp->sock);
net/x25/af_x25.c
1099
static int x25_sendmsg(struct socket *sock, struct msghdr *msg, size_t len)
net/x25/af_x25.c
1101
struct sock *sk = sock->sk;
net/x25/af_x25.c
1273
static int x25_recvmsg(struct socket *sock, struct msghdr *msg, size_t size,
net/x25/af_x25.c
1276
struct sock *sk = sock->sk;
net/x25/af_x25.c
1374
static int x25_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
net/x25/af_x25.c
1376
struct sock *sk = sock->sk;
net/x25/af_x25.c
1674
static int compat_x25_ioctl(struct socket *sock, unsigned int cmd,
net/x25/af_x25.c
1683
rc = x25_ioctl(sock, cmd, (unsigned long)argp);
net/x25/af_x25.c
1724
rc = x25_ioctl(sock, cmd, (unsigned long)argp);
net/x25/af_x25.c
1769
struct sock *s;
net/x25/af_x25.c
196
static void x25_remove_socket(struct sock *sk)
net/x25/af_x25.c
251
static void x25_insert_socket(struct sock *sk)
net/x25/af_x25.c
265
static struct sock *x25_find_listener(struct x25_address *addr,
net/x25/af_x25.c
268
struct sock *s;
net/x25/af_x25.c
269
struct sock *next_best;
net/x25/af_x25.c
309
static struct sock *__x25_find_socket(unsigned int lci, struct x25_neigh *nb)
net/x25/af_x25.c
311
struct sock *s;
net/x25/af_x25.c
323
struct sock *x25_find_socket(unsigned int lci, struct x25_neigh *nb)
net/x25/af_x25.c
325
struct sock *s;
net/x25/af_x25.c
339
struct sock *sk;
net/x25/af_x25.c
356
static void __x25_destroy_socket(struct sock *);
net/x25/af_x25.c
363
struct sock *sk = timer_container_of(sk, t, sk_timer);
net/x25/af_x25.c
375
static void __x25_destroy_socket(struct sock *sk)
net/x25/af_x25.c
410
void x25_destroy_socket_from_timer(struct sock *sk)
net/x25/af_x25.c
424
static int x25_setsockopt(struct socket *sock, int level, int optname,
net/x25/af_x25.c
428
struct sock *sk = sock->sk;
net/x25/af_x25.c
451
static int x25_getsockopt(struct socket *sock, int level, int optname,
net/x25/af_x25.c
454
struct sock *sk = sock->sk;
net/x25/af_x25.c
475
static int x25_listen(struct socket *sock, int backlog)
net/x25/af_x25.c
477
struct sock *sk = sock->sk;
net/x25/af_x25.c
481
if (sock->state != SS_UNCONNECTED) {
net/x25/af_x25.c
504
static struct sock *x25_alloc_socket(struct net *net, int kern)
net/x25/af_x25.c
507
struct sock *sk = sk_alloc(net, AF_X25, GFP_ATOMIC, &x25_proto, kern);
net/x25/af_x25.c
523
static int x25_create(struct net *net, struct socket *sock, int protocol,
net/x25/af_x25.c
526
struct sock *sk;
net/x25/af_x25.c
534
if (sock->type != SOCK_SEQPACKET)
net/x25/af_x25.c
547
sock_init_data(sock, sk);
net/x25/af_x25.c
551
sock->ops = &x25_proto_ops;
net/x25/af_x25.c
583
static struct sock *x25_make_new(struct sock *osk)
net/x25/af_x25.c
585
struct sock *sk = NULL;
net/x25/af_x25.c
621
static int x25_release(struct socket *sock)
net/x25/af_x25.c
623
struct sock *sk = sock->sk;
net/x25/af_x25.c
669
static int x25_bind(struct socket *sock, struct sockaddr_unsized *uaddr, int addr_len)
net/x25/af_x25.c
671
struct sock *sk = sock->sk;
net/x25/af_x25.c
708
static int x25_wait_for_connection_establishment(struct sock *sk)
net/x25/af_x25.c
742
static int x25_connect(struct socket *sock, struct sockaddr_unsized *uaddr,
net/x25/af_x25.c
745
struct sock *sk = sock->sk;
net/x25/af_x25.c
752
if (sk->sk_state == TCP_ESTABLISHED && sock->state == SS_CONNECTING) {
net/x25/af_x25.c
753
sock->state = SS_CONNECTED;
net/x25/af_x25.c
758
if (sk->sk_state == TCP_CLOSE && sock->state == SS_CONNECTING) {
net/x25/af_x25.c
759
sock->state = SS_UNCONNECTED;
net/x25/af_x25.c
772
sock->state = SS_UNCONNECTED;
net/x25/af_x25.c
805
sock->state = SS_CONNECTING;
net/x25/af_x25.c
824
sock->state = SS_CONNECTED;
net/x25/af_x25.c
841
static int x25_wait_for_data(struct sock *sk, long timeout)
net/x25/af_x25.c
870
static int x25_accept(struct socket *sock, struct socket *newsock,
net/x25/af_x25.c
873
struct sock *sk = sock->sk;
net/x25/af_x25.c
874
struct sock *newsk;
net/x25/af_x25.c
912
static int x25_getname(struct socket *sock, struct sockaddr *uaddr,
net/x25/af_x25.c
916
struct sock *sk = sock->sk;
net/x25/af_x25.c
939
struct sock *sk;
net/x25/af_x25.c
940
struct sock *make;
net/x25/x25_dev.c
28
struct sock *sk;
net/x25/x25_facilities.c
265
int x25_negotiate_facilities(struct sk_buff *skb, struct sock *sk,
net/x25/x25_in.c
178
static int x25_state2_machine(struct sock *sk, struct sk_buff *skb, int frametype)
net/x25/x25_in.c
211
static int x25_state3_machine(struct sock *sk, struct sk_buff *skb, int frametype, int ns, int nr, int q, int d, int m)
net/x25/x25_in.c
32
static int x25_queue_rx_frame(struct sock *sk, struct sk_buff *skb, int more)
net/x25/x25_in.c
347
static int x25_state4_machine(struct sock *sk, struct sk_buff *skb, int frametype)
net/x25/x25_in.c
393
static int x25_state5_machine(struct sock *sk, struct sk_buff *skb, int frametype)
net/x25/x25_in.c
418
int x25_process_rx_frame(struct sock *sk, struct sk_buff *skb)
net/x25/x25_in.c
451
int x25_backlog_rcv(struct sock *sk, struct sk_buff *skb)
net/x25/x25_in.c
90
static int x25_state1_machine(struct sock *sk, struct sk_buff *skb, int frametype)
net/x25/x25_out.c
116
static void x25_send_iframe(struct sock *sk, struct sk_buff *skb)
net/x25/x25_out.c
136
void x25_kick(struct sock *sk)
net/x25/x25_out.c
213
void x25_enquiry_response(struct sock *sk)
net/x25/x25_out.c
47
int x25_output(struct sock *sk, struct sk_buff *skb)
net/x25/x25_proc.c
80
struct sock *s;
net/x25/x25_subr.c
110
void x25_write_internal(struct sock *sk, int frametype)
net/x25/x25_subr.c
261
int x25_decode(struct sock *sk, struct sk_buff *skb, int *ns, int *nr, int *q,
net/x25/x25_subr.c
339
void x25_disconnect(struct sock *sk, int reason, unsigned char cause,
net/x25/x25_subr.c
34
void x25_clear_queues(struct sock *sk)
net/x25/x25_subr.c
373
void x25_check_rbuf(struct sock *sk)
net/x25/x25_subr.c
52
void x25_frames_acked(struct sock *sk, unsigned short nr)
net/x25/x25_subr.c
69
void x25_requeue_frames(struct sock *sk)
net/x25/x25_subr.c
91
int x25_validate_nr(struct sock *sk, unsigned short nr)
net/x25/x25_timer.c
131
static inline void x25_do_timer_expiry(struct sock * sk)
net/x25/x25_timer.c
160
struct sock *sk = &x25->sk;
net/x25/x25_timer.c
27
void x25_init_timers(struct sock *sk)
net/x25/x25_timer.c
37
void x25_start_heartbeat(struct sock *sk)
net/x25/x25_timer.c
42
void x25_stop_heartbeat(struct sock *sk)
net/x25/x25_timer.c
47
void x25_start_t2timer(struct sock *sk)
net/x25/x25_timer.c
54
void x25_start_t21timer(struct sock *sk)
net/x25/x25_timer.c
61
void x25_start_t22timer(struct sock *sk)
net/x25/x25_timer.c
68
void x25_start_t23timer(struct sock *sk)
net/x25/x25_timer.c
75
void x25_stop_timer(struct sock *sk)
net/x25/x25_timer.c
80
unsigned long x25_display_timer(struct sock *sk)
net/x25/x25_timer.c
92
struct sock *sk = timer_container_of(sk, t, sk_timer);
net/xdp/xsk.c
1188
static int __xsk_generic_xmit(struct sock *sk)
net/xdp/xsk.c
1303
static int xsk_generic_xmit(struct sock *sk)
net/xdp/xsk.c
1316
static bool xsk_no_wakeup(struct sock *sk)
net/xdp/xsk.c
1337
static int __xsk_sendmsg(struct socket *sock, struct msghdr *m, size_t total_len)
net/xdp/xsk.c
1340
struct sock *sk = sock->sk;
net/xdp/xsk.c
1368
static int xsk_sendmsg(struct socket *sock, struct msghdr *m, size_t total_len)
net/xdp/xsk.c
1373
ret = __xsk_sendmsg(sock, m, total_len);
net/xdp/xsk.c
1379
static int __xsk_recvmsg(struct socket *sock, struct msghdr *m, size_t len, int flags)
net/xdp/xsk.c
1382
struct sock *sk = sock->sk;
net/xdp/xsk.c
1405
static int xsk_recvmsg(struct socket *sock, struct msghdr *m, size_t len, int flags)
net/xdp/xsk.c
1410
ret = __xsk_recvmsg(sock, m, len, flags);
net/xdp/xsk.c
1416
static __poll_t xsk_poll(struct file *file, struct socket *sock,
net/xdp/xsk.c
1420
struct sock *sk = sock->sk;
net/xdp/xsk.c
1424
sock_poll_wait(file, sock, wait);
net/xdp/xsk.c
1527
static int xsk_release(struct socket *sock)
net/xdp/xsk.c
1529
struct sock *sk = sock->sk;
net/xdp/xsk.c
1558
sock->sk = NULL;
net/xdp/xsk.c
1567
struct socket *sock;
net/xdp/xsk.c
1570
sock = sockfd_lookup(fd, &err);
net/xdp/xsk.c
1571
if (!sock)
net/xdp/xsk.c
1574
if (sock->sk->sk_family != PF_XDP) {
net/xdp/xsk.c
1575
sockfd_put(sock);
net/xdp/xsk.c
1579
return sock;
net/xdp/xsk.c
1587
static int xsk_bind(struct socket *sock, struct sockaddr_unsized *addr, int addr_len)
net/xdp/xsk.c
1590
struct sock *sk = sock->sk;
net/xdp/xsk.c
1635
struct socket *sock;
net/xdp/xsk.c
1650
sock = xsk_lookup_xsk_from_fd(sxdp->sxdp_shared_umem_fd);
net/xdp/xsk.c
1651
if (IS_ERR(sock)) {
net/xdp/xsk.c
1652
err = PTR_ERR(sock);
net/xdp/xsk.c
1656
umem_xs = xdp_sk(sock->sk);
net/xdp/xsk.c
1659
sockfd_put(sock);
net/xdp/xsk.c
1667
sockfd_put(sock);
net/xdp/xsk.c
1679
sockfd_put(sock);
net/xdp/xsk.c
1688
sockfd_put(sock);
net/xdp/xsk.c
1696
sockfd_put(sock);
net/xdp/xsk.c
1713
sockfd_put(sock);
net/xdp/xsk.c
1721
sockfd_put(sock);
net/xdp/xsk.c
1785
static int xsk_setsockopt(struct socket *sock, int level, int optname,
net/xdp/xsk.c
1788
struct sock *sk = sock->sk;
net/xdp/xsk.c
1928
static int xsk_getsockopt(struct socket *sock, int level, int optname,
net/xdp/xsk.c
1931
struct sock *sk = sock->sk;
net/xdp/xsk.c
2056
static int xsk_mmap(struct file *file, struct socket *sock,
net/xdp/xsk.c
2061
struct xdp_sock *xs = xdp_sk(sock->sk);
net/xdp/xsk.c
2099
struct sock *sk;
net/xdp/xsk.c
2152
static void xsk_destruct(struct sock *sk)
net/xdp/xsk.c
2163
static int xsk_create(struct net *net, struct socket *sock, int protocol,
net/xdp/xsk.c
2167
struct sock *sk;
net/xdp/xsk.c
2171
if (sock->type != SOCK_RAW)
net/xdp/xsk.c
2177
sock->state = SS_UNCONNECTED;
net/xdp/xsk.c
2183
sock->ops = &xsk_proto_ops;
net/xdp/xsk.c
2185
sock_init_data(sock, sk);
net/xdp/xsk.h
30
static inline struct xdp_sock *xdp_sk(struct sock *sk)
net/xdp/xsk_diag.c
156
struct sock *sk;
net/xdp/xsk_diag.c
92
static int xsk_diag_fill(struct sock *sk, struct sk_buff *nlskb,
net/xdp/xskmap.c
169
struct socket *sock;
net/xdp/xskmap.c
177
sock = sockfd_lookup(fd, &err);
net/xdp/xskmap.c
178
if (!sock)
net/xdp/xskmap.c
181
if (sock->sk->sk_family != PF_XDP) {
net/xdp/xskmap.c
182
sockfd_put(sock);
net/xdp/xskmap.c
186
xs = (struct xdp_sock *)sock->sk;
net/xdp/xskmap.c
188
sockfd_put(sock);
net/xdp/xskmap.c
195
sockfd_put(sock);
net/xdp/xskmap.c
216
sockfd_put(sock);
net/xdp/xskmap.c
221
sockfd_put(sock);
net/xfrm/espintcp.c
13
struct sock *sk)
net/xfrm/espintcp.c
132
static int espintcp_recvmsg(struct sock *sk, struct msghdr *msg, size_t len,
net/xfrm/espintcp.c
166
int espintcp_queue_out(struct sock *sk, struct sk_buff *skb)
net/xfrm/espintcp.c
185
static int espintcp_sendskb_locked(struct sock *sk, struct espintcp_msg *emsg,
net/xfrm/espintcp.c
206
static int espintcp_sendskmsg_locked(struct sock *sk,
net/xfrm/espintcp.c
238
static int espintcp_push_msgs(struct sock *sk, int flags)
net/xfrm/espintcp.c
267
int espintcp_push_skb(struct sock *sk, struct sk_buff *skb)
net/xfrm/espintcp.c
29
static void handle_esp(struct sk_buff *skb, struct sock *sk)
net/xfrm/espintcp.c
301
static int espintcp_sendmsg(struct sock *sk, struct msghdr *msg, size_t size)
net/xfrm/espintcp.c
388
static void espintcp_data_ready(struct sock *sk)
net/xfrm/espintcp.c
401
struct sock *sk = ctx->strp.sk;
net/xfrm/espintcp.c
409
static void espintcp_write_space(struct sock *sk)
net/xfrm/espintcp.c
417
static void espintcp_destruct(struct sock *sk)
net/xfrm/espintcp.c
425
bool tcp_is_ulp_esp(struct sock *sk)
net/xfrm/espintcp.c
435
static int espintcp_init_sk(struct sock *sk)
net/xfrm/espintcp.c
495
static void espintcp_release(struct sock *sk)
net/xfrm/espintcp.c
510
static void espintcp_close(struct sock *sk, long timeout)
net/xfrm/espintcp.c
536
static __poll_t espintcp_poll(struct file *file, struct socket *sock,
net/xfrm/espintcp.c
539
struct sock *sk = sock->sk;
net/xfrm/espintcp.c
542
return datagram_poll_queue(file, sock, wait, &ctx->ike_queue);
net/xfrm/xfrm_input.c
41
int (*finish)(struct net *net, struct sock *sk, struct sk_buff *skb);
net/xfrm/xfrm_input.c
813
int (*finish)(struct net *, struct sock *,
net/xfrm/xfrm_input.c
841
int (*finish)(struct net *, struct sock *,
net/xfrm/xfrm_iptfs.c
1808
static int iptfs_is_too_big(struct sock *sk, struct sk_buff *skb, u32 pmtu)
net/xfrm/xfrm_iptfs.c
1833
static int iptfs_output_collect(struct net *net, struct sock *sk, struct sk_buff *skb)
net/xfrm/xfrm_nat_keepalive.c
101
sk = this_cpu_read(nat_keepalive_sk_ipv6.sock);
net/xfrm/xfrm_nat_keepalive.c
221
struct sock *sk;
net/xfrm/xfrm_nat_keepalive.c
230
per_cpu_ptr(socks, i)->sock = sk;
net/xfrm/xfrm_nat_keepalive.c
236
inet_ctl_sock_destroy(per_cpu_ptr(socks, i)->sock);
net/xfrm/xfrm_nat_keepalive.c
245
inet_ctl_sock_destroy(per_cpu_ptr(socks, i)->sock);
net/xfrm/xfrm_nat_keepalive.c
48
struct sock *sk;
net/xfrm/xfrm_nat_keepalive.c
66
sk = this_cpu_read(nat_keepalive_sk_ipv4.sock);
net/xfrm/xfrm_nat_keepalive.c
82
struct sock *sk;
net/xfrm/xfrm_output.c
27
static int xfrm_output2(struct net *net, struct sock *sk, struct sk_buff *skb);
net/xfrm/xfrm_output.c
593
int xfrm_output_resume(struct sock *sk, struct sk_buff *skb, int err)
net/xfrm/xfrm_output.c
622
static int xfrm_dev_direct_output(struct sock *sk, struct xfrm_state *x,
net/xfrm/xfrm_output.c
656
static int xfrm_output2(struct net *net, struct sock *sk, struct sk_buff *skb)
net/xfrm/xfrm_output.c
661
static int xfrm_output_gso(struct net *net, struct sock *sk, struct sk_buff *skb)
net/xfrm/xfrm_output.c
750
int xfrm_output(struct sock *sk, struct sk_buff *skb)
net/xfrm/xfrm_output.c
894
struct sock *sk = skb_to_full_sk(skb);
net/xfrm/xfrm_policy.c
2234
static struct xfrm_policy *xfrm_sk_policy_lookup(const struct sock *sk, int dir,
net/xfrm/xfrm_policy.c
2373
int xfrm_sk_policy_insert(struct sock *sk, int dir, struct xfrm_policy *pol)
net/xfrm/xfrm_policy.c
2441
int __xfrm_sk_clone_policy(struct sock *sk, const struct sock *osk)
net/xfrm/xfrm_policy.c
2893
struct sock *sk;
net/xfrm/xfrm_policy.c
2977
static int xdst_queue_output(struct net *net, struct sock *sk, struct sk_buff *skb)
net/xfrm/xfrm_policy.c
3169
const struct sock *sk,
net/xfrm/xfrm_policy.c
3327
const struct flowi *fl, const struct sock *sk,
net/xfrm/xfrm_policy.c
3339
const struct sock *sk, int flags)
net/xfrm/xfrm_policy.c
3670
int __xfrm_policy_check(struct sock *sk, int dir, struct sk_buff *skb,
net/xfrm/xfrm_policy.c
3961
static void xfrm_negative_advice(struct sock *sk, struct dst_entry *dst)
net/xfrm/xfrm_state.c
3007
int xfrm_user_policy(struct sock *sk, int optname, sockptr_t optval, int optlen)
net/xfrm/xfrm_user.c
1538
struct sock *sk = cb->skb->sk;
net/xfrm/xfrm_user.c
1630
struct sock *nlsk = rcu_dereference(net->xfrm.nlsk);
net/xfrm/xfrm_user.c
38
static struct sock *xfrm_net_nlsk(const struct net *net, const struct sk_buff *skb)
net/xfrm/xfrm_user.c
41
const struct sock *sk = NETLINK_CB(skb).sk;
net/xfrm/xfrm_user.c
4255
static struct xfrm_policy *xfrm_compile_policy(struct sock *sk, int opt,
net/xfrm/xfrm_user.c
4614
struct sock *nlsk;
samples/bpf/fds_example.c
114
int fd, sock, ret;
samples/bpf/fds_example.c
130
sock = open_raw_sock("lo");
samples/bpf/fds_example.c
131
assert(sock > 0);
samples/bpf/fds_example.c
133
ret = setsockopt(sock, SOL_SOCKET, SO_ATTACH_BPF, &fd, sizeof(fd));
samples/bpf/fds_example.c
134
printf("bpf: sock:%d <- fd:%d attached ret:(%d,%s)\n", sock, fd,
samples/bpf/sock_example.c
38
int sock = -1, map_fd, prog_fd, i, key;
samples/bpf/sock_example.c
75
sock = open_raw_sock("lo");
samples/bpf/sock_example.c
77
if (setsockopt(sock, SOL_SOCKET, SO_ATTACH_BPF, &prog_fd,
samples/bpf/sock_example.h
16
int sock;
samples/bpf/sock_example.h
18
sock = socket(PF_PACKET, SOCK_RAW | SOCK_NONBLOCK | SOCK_CLOEXEC, htons(ETH_P_ALL));
samples/bpf/sock_example.h
19
if (sock < 0) {
samples/bpf/sock_example.h
28
if (bind(sock, (struct sockaddr *)&sll, sizeof(sll)) < 0) {
samples/bpf/sock_example.h
30
close(sock);
samples/bpf/sock_example.h
34
return sock;
samples/bpf/sockex1_user.c
17
int i, sock, err;
samples/bpf/sockex1_user.c
36
sock = open_raw_sock("lo");
samples/bpf/sockex1_user.c
38
assert(setsockopt(sock, SOL_SOCKET, SO_ATTACH_BPF, &prog_fd,
samples/bpf/sockex2_user.c
22
int i, sock, err;
samples/bpf/sockex2_user.c
40
sock = open_raw_sock("lo");
samples/bpf/sockex2_user.c
42
assert(setsockopt(sock, SOL_SOCKET, SO_ATTACH_BPF, &prog_fd,
samples/bpf/sockex3_user.c
27
int i, sock, fd, main_prog_fd, hash_map_fd;
samples/bpf/sockex3_user.c
67
sock = open_raw_sock("lo");
samples/bpf/sockex3_user.c
70
assert(setsockopt(sock, SOL_SOCKET, SO_ATTACH_BPF, &main_prog_fd,
samples/bpf/xdp_router_ipv4_user.c
255
int sock, seq = 0;
samples/bpf/xdp_router_ipv4_user.c
267
sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE);
samples/bpf/xdp_router_ipv4_user.c
268
if (sock < 0) {
samples/bpf/xdp_router_ipv4_user.c
274
if (bind(sock, (struct sockaddr *)&sa, sizeof(sa)) < 0) {
samples/bpf/xdp_router_ipv4_user.c
293
ret = sendmsg(sock, &msg, 0);
samples/bpf/xdp_router_ipv4_user.c
300
nll = recv_msg(sa, sock);
samples/bpf/xdp_router_ipv4_user.c
309
close(sock);
samples/bpf/xdp_router_ipv4_user.c
392
int sock, seq = 0;
samples/bpf/xdp_router_ipv4_user.c
403
sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE);
samples/bpf/xdp_router_ipv4_user.c
404
if (sock < 0) {
samples/bpf/xdp_router_ipv4_user.c
410
if (bind(sock, (struct sockaddr *)&sa, sizeof(sa)) < 0) {
samples/bpf/xdp_router_ipv4_user.c
428
ret = sendmsg(sock, &msg, 0);
samples/bpf/xdp_router_ipv4_user.c
435
nll = recv_msg(sa, sock);
samples/bpf/xdp_router_ipv4_user.c
444
close(sock);
samples/bpf/xdp_router_ipv4_user.c
455
int sock, sock_arp, nll;
samples/bpf/xdp_router_ipv4_user.c
458
sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE);
samples/bpf/xdp_router_ipv4_user.c
459
if (sock < 0) {
samples/bpf/xdp_router_ipv4_user.c
464
fcntl(sock, F_SETFL, O_NONBLOCK);
samples/bpf/xdp_router_ipv4_user.c
468
if (bind(sock, (struct sockaddr *)&lr, sizeof(lr)) < 0) {
samples/bpf/xdp_router_ipv4_user.c
470
close(sock);
samples/bpf/xdp_router_ipv4_user.c
474
fds_route.fd = sock;
samples/bpf/xdp_router_ipv4_user.c
480
close(sock);
samples/bpf/xdp_router_ipv4_user.c
510
nll = recv_msg(lr, sock);
samples/bpf/xdp_router_ipv4_user.c
539
close(sock);
samples/bpf/xdp_router_ipv4_user.c
61
static int recv_msg(struct sockaddr_nl sock_addr, int sock)
samples/bpf/xdp_router_ipv4_user.c
69
len = recv(sock, buf_ptr, sizeof(buf) - nll, 0);
samples/connector/cn_test.c
22
static struct sock *nls;
samples/qmi/qmi_sample_client.c
471
ret = kernel_connect(sample->qmi.sock, (struct sockaddr_unsized *)sq,
samples/seccomp/user-trap.c
32
static int send_fd(int sock, int fd)
samples/seccomp/user-trap.c
55
if (sendmsg(sock, &msg, 0) < 0) {
samples/seccomp/user-trap.c
63
static int recv_fd(int sock)
samples/seccomp/user-trap.c
79
if (recvmsg(sock, &msg, 0) < 0) {
security/apparmor/af_unix.c
227
u32 request, struct sock *sk, const struct path *path)
security/apparmor/af_unix.c
254
static int profile_bind_perm(struct aa_profile *profile, struct sock *sk,
security/apparmor/af_unix.c
28
static inline struct sock *aa_unix_sk(struct unix_sock *u)
security/apparmor/af_unix.c
285
static int profile_listen_perm(struct aa_profile *profile, struct sock *sk,
security/apparmor/af_unix.c
322
struct sock *sk,
security/apparmor/af_unix.c
352
struct sock *sk, int optname,
security/apparmor/af_unix.c
389
struct sock *sk, const struct path *path,
security/apparmor/af_unix.c
447
const char *op, u32 request, struct sock *sk,
security/apparmor/af_unix.c
462
int aa_unix_sock_perm(const char *op, u32 request, struct socket *sock)
security/apparmor/af_unix.c
469
request, sock->sk,
security/apparmor/af_unix.c
470
is_unix_fs(sock->sk) ? &unix_sk(sock->sk)->path : NULL);
security/apparmor/af_unix.c
487
int aa_unix_bind_perm(struct socket *sock, struct sockaddr *addr,
security/apparmor/af_unix.c
501
DEFINE_AUDIT_SK(ad, OP_BIND, current_cred(), sock->sk);
security/apparmor/af_unix.c
507
profile_bind_perm(profile, sock->sk, &ad));
security/apparmor/af_unix.c
527
int aa_unix_listen_perm(struct socket *sock, int backlog)
security/apparmor/af_unix.c
535
DEFINE_AUDIT_SK(ad, OP_LISTEN, current_cred(), sock->sk);
security/apparmor/af_unix.c
538
profile_listen_perm(profile, sock->sk,
security/apparmor/af_unix.c
548
int aa_unix_accept_perm(struct socket *sock, struct socket *newsock)
security/apparmor/af_unix.c
556
DEFINE_AUDIT_SK(ad, OP_ACCEPT, current_cred(), sock->sk);
security/apparmor/af_unix.c
559
profile_accept_perm(profile, sock->sk, &ad));
security/apparmor/af_unix.c
580
int aa_unix_opt_perm(const char *op, u32 request, struct socket *sock,
security/apparmor/af_unix.c
589
DEFINE_AUDIT_SK(ad, op, current_cred(), sock->sk);
security/apparmor/af_unix.c
592
profile_opt_perm(profile, request, sock->sk,
security/apparmor/af_unix.c
602
struct sock *sk, const struct path *path,
security/apparmor/af_unix.c
625
struct sock *sk, struct sock *peer_sk,
security/apparmor/af_unix.c
646
static void update_sk_ctx(struct sock *sk, struct aa_label *label,
security/apparmor/af_unix.c
689
static void update_peer_ctx(struct sock *sk, struct aa_sk_ctx *ctx,
security/apparmor/af_unix.c
714
struct socket *sock = (struct socket *) file->private_data;
security/apparmor/af_unix.c
718
struct sock *peer_sk = NULL;
security/apparmor/af_unix.c
725
AA_BUG(!sock);
security/apparmor/af_unix.c
726
AA_BUG(!sock->sk);
security/apparmor/af_unix.c
727
AA_BUG(sock->sk->sk_family != PF_UNIX);
security/apparmor/af_unix.c
733
unix_state_lock(sock->sk);
security/apparmor/af_unix.c
734
peer_sk = unix_peer(sock->sk);
security/apparmor/af_unix.c
738
is_sk_fs = is_unix_fs(sock->sk);
security/apparmor/af_unix.c
739
addr = aa_sunaddr(unix_sk(sock->sk), &addrlen);
security/apparmor/af_unix.c
740
path = unix_sk(sock->sk)->path;
security/apparmor/af_unix.c
741
unix_state_unlock(sock->sk);
security/apparmor/af_unix.c
747
sk_req, sock->sk,
security/apparmor/af_unix.c
782
MAY_READ | MAY_WRITE, sock->sk,
security/apparmor/af_unix.c
801
update_sk_ctx(sock->sk, label, plabel);
security/apparmor/file.c
577
struct socket *sock = (struct socket *) file->private_data;
security/apparmor/file.c
584
if (!sock || !sock->sk)
security/apparmor/file.c
586
if (sock->sk->sk_family == PF_UNIX)
security/apparmor/file.c
594
struct socket *sock = (struct socket *) file->private_data;
security/apparmor/file.c
599
struct aa_sk_ctx *skctx = aa_sock(sock->sk);
security/apparmor/include/af_unix.h
37
struct sock *sk, struct sock *peer_sk,
security/apparmor/include/af_unix.h
39
int aa_unix_sock_perm(const char *op, u32 request, struct socket *sock);
security/apparmor/include/af_unix.h
42
int aa_unix_bind_perm(struct socket *sock, struct sockaddr *address,
security/apparmor/include/af_unix.h
44
int aa_unix_connect_perm(struct socket *sock, struct sockaddr *address,
security/apparmor/include/af_unix.h
46
int aa_unix_listen_perm(struct socket *sock, int backlog);
security/apparmor/include/af_unix.h
47
int aa_unix_accept_perm(struct socket *sock, struct socket *newsock);
security/apparmor/include/af_unix.h
48
int aa_unix_msg_perm(const char *op, u32 request, struct socket *sock,
security/apparmor/include/af_unix.h
50
int aa_unix_opt_perm(const char *op, u32 request, struct socket *sock, int level,
security/apparmor/include/net.h
105
struct sock *sk)
security/apparmor/include/net.h
110
int aa_sk_perm(const char *op, u32 request, struct sock *sk);
security/apparmor/include/net.h
117
u32 secid, const struct sock *sk);
security/apparmor/include/net.h
55
static inline struct aa_sk_ctx *aa_sock(const struct sock *sk)
security/apparmor/lsm.c
1065
static int apparmor_sk_alloc_security(struct sock *sk, int family, gfp_t gfp)
security/apparmor/lsm.c
1080
static void apparmor_sk_free_security(struct sock *sk)
security/apparmor/lsm.c
1095
static void apparmor_sk_clone_security(const struct sock *sk,
security/apparmor/lsm.c
1096
struct sock *newsk)
security/apparmor/lsm.c
1120
struct sock *sk, struct sock *peer_sk)
security/apparmor/lsm.c
1181
static int apparmor_unix_stream_connect(struct sock *sk, struct sock *peer_sk,
security/apparmor/lsm.c
1182
struct sock *newsk)
security/apparmor/lsm.c
1227
static int apparmor_unix_may_send(struct socket *sock, struct socket *peer)
security/apparmor/lsm.c
1237
sock->sk, peer->sk,
security/apparmor/lsm.c
1244
sock->sk, label));
security/apparmor/lsm.c
1289
static int apparmor_socket_post_create(struct socket *sock, int family,
security/apparmor/lsm.c
1299
if (sock->sk) {
security/apparmor/lsm.c
1300
struct aa_sk_ctx *ctx = aa_sock(sock->sk);
security/apparmor/lsm.c
1354
static int apparmor_socket_bind(struct socket *sock,
security/apparmor/lsm.c
1357
AA_BUG(!sock);
security/apparmor/lsm.c
1358
AA_BUG(!sock->sk);
security/apparmor/lsm.c
1362
if (sock->sk->sk_family == PF_UNIX)
security/apparmor/lsm.c
1363
return aa_unix_bind_perm(sock, address, addrlen);
security/apparmor/lsm.c
1364
return aa_sk_perm(OP_BIND, AA_MAY_BIND, sock->sk);
security/apparmor/lsm.c
1367
static int apparmor_socket_connect(struct socket *sock,
security/apparmor/lsm.c
1370
AA_BUG(!sock);
security/apparmor/lsm.c
1371
AA_BUG(!sock->sk);
security/apparmor/lsm.c
1376
if (sock->sk->sk_family == PF_UNIX)
security/apparmor/lsm.c
1378
return aa_sk_perm(OP_CONNECT, AA_MAY_CONNECT, sock->sk);
security/apparmor/lsm.c
1381
static int apparmor_socket_listen(struct socket *sock, int backlog)
security/apparmor/lsm.c
1383
AA_BUG(!sock);
security/apparmor/lsm.c
1384
AA_BUG(!sock->sk);
security/apparmor/lsm.c
1387
if (sock->sk->sk_family == PF_UNIX)
security/apparmor/lsm.c
1388
return aa_unix_listen_perm(sock, backlog);
security/apparmor/lsm.c
1389
return aa_sk_perm(OP_LISTEN, AA_MAY_LISTEN, sock->sk);
security/apparmor/lsm.c
1396
static int apparmor_socket_accept(struct socket *sock, struct socket *newsock)
security/apparmor/lsm.c
1398
AA_BUG(!sock);
security/apparmor/lsm.c
1399
AA_BUG(!sock->sk);
security/apparmor/lsm.c
1403
if (sock->sk->sk_family == PF_UNIX)
security/apparmor/lsm.c
1404
return aa_unix_accept_perm(sock, newsock);
security/apparmor/lsm.c
1405
return aa_sk_perm(OP_ACCEPT, AA_MAY_ACCEPT, sock->sk);
security/apparmor/lsm.c
1408
static int aa_sock_msg_perm(const char *op, u32 request, struct socket *sock,
security/apparmor/lsm.c
1411
AA_BUG(!sock);
security/apparmor/lsm.c
1412
AA_BUG(!sock->sk);
security/apparmor/lsm.c
1417
if (sock->sk->sk_family == PF_UNIX)
security/apparmor/lsm.c
1419
return aa_sk_perm(op, request, sock->sk);
security/apparmor/lsm.c
1422
static int apparmor_socket_sendmsg(struct socket *sock,
security/apparmor/lsm.c
1425
int error = aa_sock_msg_perm(OP_SENDMSG, AA_MAY_SEND, sock, msg, size);
security/apparmor/lsm.c
1434
(sk_is_tcp(sock->sk) ||
security/apparmor/lsm.c
1435
(sk_is_inet(sock->sk) && sock->sk->sk_type == SOCK_STREAM &&
security/apparmor/lsm.c
1436
sock->sk->sk_protocol == IPPROTO_MPTCP)))
security/apparmor/lsm.c
1437
error = aa_sk_perm(OP_CONNECT, AA_MAY_CONNECT, sock->sk);
security/apparmor/lsm.c
1442
static int apparmor_socket_recvmsg(struct socket *sock,
security/apparmor/lsm.c
1445
return aa_sock_msg_perm(OP_RECVMSG, AA_MAY_RECEIVE, sock, msg, size);
security/apparmor/lsm.c
1449
static int aa_sock_perm(const char *op, u32 request, struct socket *sock)
security/apparmor/lsm.c
1451
AA_BUG(!sock);
security/apparmor/lsm.c
1452
AA_BUG(!sock->sk);
security/apparmor/lsm.c
1455
if (sock->sk->sk_family == PF_UNIX)
security/apparmor/lsm.c
1456
return aa_unix_sock_perm(op, request, sock);
security/apparmor/lsm.c
1457
return aa_sk_perm(op, request, sock->sk);
security/apparmor/lsm.c
1460
static int apparmor_socket_getsockname(struct socket *sock)
security/apparmor/lsm.c
1462
return aa_sock_perm(OP_GETSOCKNAME, AA_MAY_GETATTR, sock);
security/apparmor/lsm.c
1465
static int apparmor_socket_getpeername(struct socket *sock)
security/apparmor/lsm.c
1467
return aa_sock_perm(OP_GETPEERNAME, AA_MAY_GETATTR, sock);
security/apparmor/lsm.c
1471
static int aa_sock_opt_perm(const char *op, u32 request, struct socket *sock,
security/apparmor/lsm.c
1474
AA_BUG(!sock);
security/apparmor/lsm.c
1475
AA_BUG(!sock->sk);
security/apparmor/lsm.c
1478
if (sock->sk->sk_family == PF_UNIX)
security/apparmor/lsm.c
1479
return aa_unix_opt_perm(op, request, sock, level, optname);
security/apparmor/lsm.c
1480
return aa_sk_perm(op, request, sock->sk);
security/apparmor/lsm.c
1483
static int apparmor_socket_getsockopt(struct socket *sock, int level,
security/apparmor/lsm.c
1486
return aa_sock_opt_perm(OP_GETSOCKOPT, AA_MAY_GETOPT, sock,
security/apparmor/lsm.c
1490
static int apparmor_socket_setsockopt(struct socket *sock, int level,
security/apparmor/lsm.c
1493
return aa_sock_opt_perm(OP_SETSOCKOPT, AA_MAY_SETOPT, sock,
security/apparmor/lsm.c
1497
static int apparmor_socket_shutdown(struct socket *sock, int how)
security/apparmor/lsm.c
1499
return aa_sock_perm(OP_SHUTDOWN, AA_MAY_SHUTDOWN, sock);
security/apparmor/lsm.c
1513
static int apparmor_socket_sock_rcv_skb(struct sock *sk, struct sk_buff *skb)
security/apparmor/lsm.c
1538
static struct aa_label *sk_peer_get_label(struct sock *sk)
security/apparmor/lsm.c
1558
static int apparmor_socket_getpeersec_stream(struct socket *sock,
security/apparmor/lsm.c
1567
peer = sk_peer_get_label(sock->sk);
security/apparmor/lsm.c
1608
static int apparmor_socket_getpeersec_dgram(struct socket *sock,
security/apparmor/lsm.c
1627
static void apparmor_sock_graft(struct sock *sk, struct socket *parent)
security/apparmor/lsm.c
1637
static int apparmor_inet_conn_request(const struct sock *sk, struct sk_buff *skb,
security/apparmor/lsm.c
2378
struct sock *sk;
security/apparmor/net.c
100
const struct sock *sk)
security/apparmor/net.c
288
struct sock *sk)
security/apparmor/net.c
308
int aa_sk_perm(const char *op, u32 request, struct sock *sk)
security/apparmor/net.c
328
struct socket *sock = (struct socket *) file->private_data;
security/apparmor/net.c
333
if (!sock || !sock->sk)
security/apparmor/net.c
336
if (sock->sk->sk_family == PF_UNIX)
security/apparmor/net.c
338
return aa_label_sk_perm(subj_cred, label, op, request, sock->sk);
security/apparmor/net.c
399
u32 secid, const struct sock *sk)
security/landlock/fs.c
1644
static int hook_unix_find(const struct path *const path, struct sock *other,
security/landlock/net.c
108
audit_net.sk = sock->sk;
security/landlock/net.c
251
audit_net.sk = sock->sk;
security/landlock/net.c
263
static int current_check_autobind_udp_socket(struct socket *const sock)
security/landlock/net.c
285
slow = lock_sock_fast(sock->sk);
security/landlock/net.c
286
num = inet_sk(sock->sk)->inet_num;
security/landlock/net.c
287
unlock_sock_fast(sock->sk, slow);
security/landlock/net.c
295
port0.ss_family = READ_ONCE(sock->sk->sk_family);
security/landlock/net.c
297
return current_check_access_socket(sock, (struct sockaddr *)&port0,
security/landlock/net.c
301
static int hook_socket_bind(struct socket *const sock,
security/landlock/net.c
306
if (sk_is_tcp(sock->sk))
security/landlock/net.c
308
else if (sk_is_udp(sock->sk))
security/landlock/net.c
313
return current_check_access_socket(sock, address, addrlen,
security/landlock/net.c
317
static int hook_socket_connect(struct socket *const sock,
security/landlock/net.c
324
if (sk_is_tcp(sock->sk))
security/landlock/net.c
326
else if (sk_is_udp(sock->sk))
security/landlock/net.c
331
ret = current_check_access_socket(sock, address, addrlen,
security/landlock/net.c
338
if (ret == 0 && sk_is_udp(sock->sk) &&
security/landlock/net.c
341
ret = current_check_autobind_udp_socket(sock);
security/landlock/net.c
346
static int hook_socket_sendmsg(struct socket *const sock,
security/landlock/net.c
354
if ((msg->msg_flags & MSG_FASTOPEN) && address && sk_is_tcp(sock->sk)) {
security/landlock/net.c
356
sock, address, addrlen, LANDLOCK_ACCESS_NET_CONNECT_TCP,
security/landlock/net.c
362
if (sk_is_udp(sock->sk))
security/landlock/net.c
368
ret = current_check_access_socket(sock, address, addrlen,
security/landlock/net.c
372
ret = current_check_autobind_udp_socket(sock);
security/landlock/net.c
45
static int current_check_access_socket(struct socket *const sock,
security/landlock/net.c
76
sock_family = READ_ONCE(sock->sk->sk_family);
security/landlock/task.c
238
static bool sock_is_scoped(struct sock *const other,
security/landlock/task.c
250
static bool is_abstract_socket(struct sock *const sock)
security/landlock/task.c
252
struct unix_address *addr = unix_sk(sock)->addr;
security/landlock/task.c
268
static int hook_unix_stream_connect(struct sock *const sock,
security/landlock/task.c
269
struct sock *const other,
security/landlock/task.c
270
struct sock *const newsk)
security/landlock/task.c
300
static int hook_unix_may_send(struct socket *const sock,
security/landlock/task.c
315
if (unix_peer(sock->sk) == other->sk)
security/lsm_audit.c
287
const struct sock *sk = a->u.net->sk;
security/security.c
4120
int security_netlink_send(struct sock *sk, struct sk_buff *skb)
security/security.c
4146
int security_unix_stream_connect(struct sock *sock, struct sock *other,
security/security.c
4147
struct sock *newsk)
security/security.c
4149
return call_int_hook(unix_stream_connect, sock, other, newsk);
security/security.c
4173
int security_unix_may_send(struct socket *sock, struct socket *other)
security/security.c
4175
return call_int_hook(unix_may_send, sock, other);
security/security.c
4213
int security_socket_post_create(struct socket *sock, int family,
security/security.c
4216
return call_int_hook(socket_post_create, sock, family, type,
security/security.c
4248
int security_socket_bind(struct socket *sock,
security/security.c
4251
return call_int_hook(socket_bind, sock, address, addrlen);
security/security.c
4265
int security_socket_connect(struct socket *sock,
security/security.c
4268
return call_int_hook(socket_connect, sock, address, addrlen);
security/security.c
4280
int security_socket_listen(struct socket *sock, int backlog)
security/security.c
4282
return call_int_hook(socket_listen, sock, backlog);
security/security.c
4296
int security_socket_accept(struct socket *sock, struct socket *newsock)
security/security.c
4298
return call_int_hook(socket_accept, sock, newsock);
security/security.c
4311
int security_socket_sendmsg(struct socket *sock, struct msghdr *msg, int size)
security/security.c
4313
return call_int_hook(socket_sendmsg, sock, msg, size);
security/security.c
4327
int security_socket_recvmsg(struct socket *sock, struct msghdr *msg,
security/security.c
4330
return call_int_hook(socket_recvmsg, sock, msg, size, flags);
security/security.c
4342
int security_socket_getsockname(struct socket *sock)
security/security.c
4344
return call_int_hook(socket_getsockname, sock);
security/security.c
4355
int security_socket_getpeername(struct socket *sock)
security/security.c
4357
return call_int_hook(socket_getpeername, sock);
security/security.c
4371
int security_socket_getsockopt(struct socket *sock, int level, int optname)
security/security.c
4373
return call_int_hook(socket_getsockopt, sock, level, optname);
security/security.c
4386
int security_socket_setsockopt(struct socket *sock, int level, int optname)
security/security.c
4388
return call_int_hook(socket_setsockopt, sock, level, optname);
security/security.c
4401
int security_socket_shutdown(struct socket *sock, int how)
security/security.c
4403
return call_int_hook(socket_shutdown, sock, how);
security/security.c
4418
int security_sock_rcv_skb(struct sock *sk, struct sk_buff *skb)
security/security.c
4439
int security_socket_getpeersec_stream(struct socket *sock, sockptr_t optval,
security/security.c
4442
return call_int_hook(socket_getpeersec_stream, sock, optval, optlen,
security/security.c
4460
int security_socket_getpeersec_dgram(struct socket *sock,
security/security.c
4463
return call_int_hook(socket_getpeersec_dgram, sock, skb, secid);
security/security.c
4476
static int lsm_sock_alloc(struct sock *sock, gfp_t gfp)
security/security.c
4478
return lsm_blob_alloc(&sock->sk_security, blob_sizes.lbs_sock, gfp);
security/security.c
4492
int security_sk_alloc(struct sock *sk, int family, gfp_t priority)
security/security.c
4510
void security_sk_free(struct sock *sk)
security/security.c
4524
void security_sk_clone(const struct sock *sk, struct sock *newsk)
security/security.c
4537
void security_sk_classify_flow(const struct sock *sk, struct flowi_common *flic)
security/security.c
4565
void security_sock_graft(struct sock *sk, struct socket *parent)
security/security.c
4581
int security_inet_conn_request(const struct sock *sk,
security/security.c
4595
void security_inet_csk_clone(struct sock *newsk,
security/security.c
4608
void security_inet_conn_established(struct sock *sk,
security/security.c
4726
int security_tun_dev_attach(struct sock *sk, void *security)
security/security.c
4777
int security_sctp_bind_connect(struct sock *sk, int optname,
security/security.c
4794
void security_sctp_sk_clone(struct sctp_association *asoc, struct sock *sk,
security/security.c
4795
struct sock *newsk)
security/security.c
4830
int security_mptcp_add_subflow(struct sock *sk, struct sock *ssk)
security/security.c
4849
int security_unix_find(const struct path *path, struct sock *other, int flags)
security/selinux/hooks.c
236
int ifindex, struct sock *sk, u16 family)
security/selinux/hooks.c
247
struct sock *sk)
security/selinux/hooks.c
4919
static int sock_has_perm(struct sock *sk, u32 perms)
security/selinux/hooks.c
4953
static int selinux_socket_post_create(struct socket *sock, int family,
security/selinux/hooks.c
4957
struct inode_security_struct *isec = inode_security_novalidate(SOCK_INODE(sock));
security/selinux/hooks.c
4973
if (sock->sk) {
security/selinux/hooks.c
4974
sksec = selinux_sock(sock->sk);
security/selinux/hooks.c
4981
err = selinux_netlbl_socket_post_create(sock->sk, family);
security/selinux/hooks.c
5003
static int __selinux_socket_bind(struct sock *sk, struct sockaddr *address, int addrlen)
security/selinux/hooks.c
5134
static int selinux_socket_bind(struct socket *sock, struct sockaddr *address, int addrlen)
security/selinux/hooks.c
5136
return __selinux_socket_bind(sock->sk, address, addrlen);
security/selinux/hooks.c
5142
static int selinux_socket_connect_helper(struct sock *sk,
security/selinux/hooks.c
5227
static int selinux_socket_connect(struct socket *sock,
security/selinux/hooks.c
5231
struct sock *sk = sock->sk;
security/selinux/hooks.c
5240
static int selinux_socket_listen(struct socket *sock, int backlog)
security/selinux/hooks.c
5242
return sock_has_perm(sock->sk, SOCKET__LISTEN);
security/selinux/hooks.c
5245
static int selinux_socket_accept(struct socket *sock, struct socket *newsock)
security/selinux/hooks.c
5253
err = sock_has_perm(sock->sk, SOCKET__ACCEPT);
security/selinux/hooks.c
5257
isec = inode_security_novalidate(SOCK_INODE(sock));
security/selinux/hooks.c
5271
static int selinux_socket_sendmsg(struct socket *sock, struct msghdr *msg,
security/selinux/hooks.c
5278
rc = sock_has_perm(sock->sk, SOCKET__WRITE);
security/selinux/hooks.c
5283
(sk_is_tcp(sock->sk) ||
security/selinux/hooks.c
5284
(sk_is_inet(sock->sk) && sock->sk->sk_type == SOCK_STREAM &&
security/selinux/hooks.c
5285
sock->sk->sk_protocol == IPPROTO_MPTCP))) {
security/selinux/hooks.c
5286
rc = selinux_socket_connect(sock, addr, addrlen);
security/selinux/hooks.c
5294
static int selinux_socket_recvmsg(struct socket *sock, struct msghdr *msg,
security/selinux/hooks.c
5297
return sock_has_perm(sock->sk, SOCKET__READ);
security/selinux/hooks.c
5300
static int selinux_socket_getsockname(struct socket *sock)
security/selinux/hooks.c
5302
return sock_has_perm(sock->sk, SOCKET__GETATTR);
security/selinux/hooks.c
5305
static int selinux_socket_getpeername(struct socket *sock)
security/selinux/hooks.c
5307
return sock_has_perm(sock->sk, SOCKET__GETATTR);
security/selinux/hooks.c
5310
static int selinux_socket_setsockopt(struct socket *sock, int level, int optname)
security/selinux/hooks.c
5314
err = sock_has_perm(sock->sk, SOCKET__SETOPT);
security/selinux/hooks.c
5318
return selinux_netlbl_socket_setsockopt(sock, level, optname);
security/selinux/hooks.c
5321
static int selinux_socket_getsockopt(struct socket *sock, int level,
security/selinux/hooks.c
5324
return sock_has_perm(sock->sk, SOCKET__GETOPT);
security/selinux/hooks.c
5327
static int selinux_socket_shutdown(struct socket *sock, int how)
security/selinux/hooks.c
5329
return sock_has_perm(sock->sk, SOCKET__SHUTDOWN);
security/selinux/hooks.c
5332
static int selinux_socket_unix_stream_connect(struct sock *sock,
security/selinux/hooks.c
5333
struct sock *other,
security/selinux/hooks.c
5334
struct sock *newsk)
security/selinux/hooks.c
5336
struct sk_security_struct *sksec_sock = selinux_sock(sock);
security/selinux/hooks.c
5364
static int selinux_socket_unix_may_send(struct socket *sock,
security/selinux/hooks.c
5367
struct sk_security_struct *ssec = selinux_sock(sock->sk);
security/selinux/hooks.c
5401
static int selinux_sock_rcv_skb_compat(struct sock *sk, struct sk_buff *skb,
security/selinux/hooks.c
5431
static int selinux_socket_sock_rcv_skb(struct sock *sk, struct sk_buff *skb)
security/selinux/hooks.c
5495
static int selinux_socket_getpeersec_stream(struct socket *sock,
security/selinux/hooks.c
5502
struct sk_security_struct *sksec = selinux_sock(sock->sk);
security/selinux/hooks.c
5530
static int selinux_socket_getpeersec_dgram(struct socket *sock,
security/selinux/hooks.c
5540
else if (sock)
security/selinux/hooks.c
5541
family = sock->sk->sk_family;
security/selinux/hooks.c
5547
if (sock && family == PF_UNIX) {
security/selinux/hooks.c
5549
isec = inode_security_novalidate(SOCK_INODE(sock));
security/selinux/hooks.c
5560
static int selinux_sk_alloc_security(struct sock *sk, int family, gfp_t priority)
security/selinux/hooks.c
5572
static void selinux_sk_free_security(struct sock *sk)
security/selinux/hooks.c
5579
static void selinux_sk_clone_security(const struct sock *sk, struct sock *newsk)
security/selinux/hooks.c
5591
static void selinux_sk_getsecid(const struct sock *sk, u32 *secid)
security/selinux/hooks.c
5602
static void selinux_sock_graft(struct sock *sk, struct socket *parent)
security/selinux/hooks.c
5621
struct sock *sk = asoc->base.sk;
security/selinux/hooks.c
5728
static int selinux_sctp_bind_connect(struct sock *sk, int optname,
security/selinux/hooks.c
5805
static void selinux_sctp_sk_clone(struct sctp_association *asoc, struct sock *sk,
security/selinux/hooks.c
5806
struct sock *newsk)
security/selinux/hooks.c
5823
static int selinux_mptcp_add_subflow(struct sock *sk, struct sock *ssk)
security/selinux/hooks.c
5838
static int selinux_inet_conn_request(const struct sock *sk, struct sk_buff *skb,
security/selinux/hooks.c
5859
static void selinux_inet_csk_clone(struct sock *newsk,
security/selinux/hooks.c
5876
static void selinux_inet_conn_established(struct sock *sk, struct sk_buff *skb)
security/selinux/hooks.c
5941
static int selinux_tun_dev_attach(struct sock *sk, void *security)
security/selinux/hooks.c
6038
struct sock *sk;
security/selinux/hooks.c
6081
struct sock *sk;
security/selinux/hooks.c
6115
struct sock *sk;
security/selinux/hooks.c
6244
static int nlmsg_sock_has_extended_perms(struct sock *sk, u32 perms, u16 nlmsg_type)
security/selinux/hooks.c
6264
static int selinux_netlink_send(struct sock *sk, struct sk_buff *skb)
security/selinux/include/avc.h
31
struct sock;
security/selinux/include/netlabel.h
101
static inline void selinux_netlbl_inet_csk_clone(struct sock *sk, u16 family)
security/selinux/include/netlabel.h
105
static inline void selinux_netlbl_sctp_sk_clone(struct sock *sk,
security/selinux/include/netlabel.h
106
struct sock *newsk)
security/selinux/include/netlabel.h
110
static inline int selinux_netlbl_socket_post_create(struct sock *sk, u16 family)
security/selinux/include/netlabel.h
120
static inline int selinux_netlbl_socket_setsockopt(struct socket *sock,
security/selinux/include/netlabel.h
125
static inline int selinux_netlbl_socket_connect(struct sock *sk,
security/selinux/include/netlabel.h
130
static inline int selinux_netlbl_socket_connect_locked(struct sock *sk,
security/selinux/include/netlabel.h
41
void selinux_netlbl_inet_csk_clone(struct sock *sk, u16 family);
security/selinux/include/netlabel.h
42
void selinux_netlbl_sctp_sk_clone(struct sock *sk, struct sock *newsk);
security/selinux/include/netlabel.h
43
int selinux_netlbl_socket_post_create(struct sock *sk, u16 family);
security/selinux/include/netlabel.h
47
int selinux_netlbl_socket_setsockopt(struct socket *sock, int level,
security/selinux/include/netlabel.h
49
int selinux_netlbl_socket_connect(struct sock *sk, struct sockaddr *addr);
security/selinux/include/netlabel.h
50
int selinux_netlbl_socket_connect_locked(struct sock *sk,
security/selinux/include/objsec.h
250
static inline struct sk_security_struct *selinux_sock(const struct sock *sock)
security/selinux/include/objsec.h
252
return sock->sk_security + selinux_blob_sizes.lbs_sock;
security/selinux/netlabel.c
102
const struct sock *sk,
security/selinux/netlabel.c
239
struct sock *sk;
security/selinux/netlabel.c
359
void selinux_netlbl_inet_csk_clone(struct sock *sk, u16 family)
security/selinux/netlabel.c
377
void selinux_netlbl_sctp_sk_clone(struct sock *sk, struct sock *newsk)
security/selinux/netlabel.c
395
int selinux_netlbl_socket_post_create(struct sock *sk, u16 family)
security/selinux/netlabel.c
509
int selinux_netlbl_socket_setsockopt(struct socket *sock,
security/selinux/netlabel.c
514
struct sock *sk = sock->sk;
security/selinux/netlabel.c
549
static int selinux_netlbl_socket_connect_helper(struct sock *sk,
security/selinux/netlabel.c
588
int selinux_netlbl_socket_connect_locked(struct sock *sk,
security/selinux/netlabel.c
610
int selinux_netlbl_socket_connect(struct sock *sk, struct sockaddr *addr)
security/selinux/netlabel.c
69
static struct netlbl_lsm_secattr *selinux_netlbl_sock_genattr(struct sock *sk)
security/selinux/netlink.c
23
static struct sock *selnl __ro_after_init;
security/selinux/ss/mls.c
500
struct context *newcontext, bool sock)
security/selinux/ss/mls.c
546
if ((tclass == p->process_class) || sock)
security/selinux/ss/mls.h
47
struct context *newcontext, bool sock);
security/selinux/ss/services.c
1772
bool sock;
security/selinux/ss/services.c
1796
sock = security_is_socket_class(orig_tclass);
security/selinux/ss/services.c
1799
sock = security_is_socket_class(map_class(&policy->map,
security/selinux/ss/services.c
1851
if ((tclass == policydb->process_class) || sock)
security/selinux/ss/services.c
1888
if ((tclass == policydb->process_class) || sock) {
security/selinux/ss/services.c
1920
&newcontext, sock);
security/smack/smack.h
174
struct sock *smk_sock; /* socket initialized on */
security/smack/smack.h
382
static inline struct socket_smack *smack_sock(const struct sock *sock)
security/smack/smack.h
384
return sock->sk_security + smack_blob_sizes.lbs_sock;
security/smack/smack.h
508
struct sock *sk)
security/smack/smack.h
536
struct sock *sk)
security/smack/smack_lsm.c
1611
struct socket *sock;
security/smack/smack_lsm.c
1635
sock = SOCKET_I(ip);
security/smack/smack_lsm.c
1636
if (sock == NULL || sock->sk == NULL)
security/smack/smack_lsm.c
1639
ssp = smack_sock(sock->sk);
security/smack/smack_lsm.c
2008
struct socket *sock;
security/smack/smack_lsm.c
2019
sock = SOCKET_I(inode);
security/smack/smack_lsm.c
2020
ssp = smack_sock(sock->sk);
security/smack/smack_lsm.c
2444
static int smack_sk_alloc_security(struct sock *sk, int family, gfp_t gfp_flags)
security/smack/smack_lsm.c
2471
static void smack_sk_free_security(struct sock *sk)
security/smack/smack_lsm.c
2495
static void smack_sk_clone_security(const struct sock *sk, struct sock *newsk)
security/smack/smack_lsm.c
2614
static int smack_netlbl_add(struct sock *sk)
security/smack/smack_lsm.c
2647
static void smack_netlbl_delete(struct sock *sk)
security/smack/smack_lsm.c
2676
static int smk_ipv4_check(struct sock *sk, struct sockaddr_in *sap)
security/smack/smack_lsm.c
2752
static void smk_ipv6_port_label(struct socket *sock, struct sockaddr *address)
security/smack/smack_lsm.c
2754
struct sock *sk = sock->sk;
security/smack/smack_lsm.c
2756
struct socket_smack *ssp = smack_sock(sock->sk);
security/smack/smack_lsm.c
2797
if (spp->smk_port != port || spp->smk_sock_type != sock->type)
security/smack/smack_lsm.c
2823
spp->smk_sock_type = sock->type;
security/smack/smack_lsm.c
2840
static int smk_ipv6_port_check(struct sock *sk, struct sockaddr_in6 *address,
security/smack/smack_lsm.c
2913
struct socket *sock;
security/smack/smack_lsm.c
2943
sock = SOCKET_I(inode);
security/smack/smack_lsm.c
2944
if (sock == NULL || sock->sk == NULL)
security/smack/smack_lsm.c
2947
ssp = smack_sock(sock->sk);
security/smack/smack_lsm.c
2953
if (sock->sk->sk_family == PF_INET) {
security/smack/smack_lsm.c
2954
rc = smack_netlbl_add(sock->sk);
security/smack/smack_lsm.c
2964
if (sock->sk->sk_family == PF_INET6)
security/smack/smack_lsm.c
2965
smk_ipv6_port_label(sock, NULL);
security/smack/smack_lsm.c
2983
static int smack_socket_post_create(struct socket *sock, int family,
security/smack/smack_lsm.c
2988
if (sock->sk == NULL)
security/smack/smack_lsm.c
2995
ssp = smack_sock(sock->sk);
security/smack/smack_lsm.c
3005
return smack_netlbl_add(sock->sk);
security/smack/smack_lsm.c
3040
static int smack_socket_bind(struct socket *sock, struct sockaddr *address,
security/smack/smack_lsm.c
3043
if (sock->sk != NULL && sock->sk->sk_family == PF_INET6) {
security/smack/smack_lsm.c
3047
smk_ipv6_port_label(sock, address);
security/smack/smack_lsm.c
3063
static int smack_socket_connect(struct socket *sock, struct sockaddr *sap,
security/smack/smack_lsm.c
3068
if (sock->sk == NULL)
security/smack/smack_lsm.c
3070
if (sock->sk->sk_family != PF_INET &&
security/smack/smack_lsm.c
3071
(!IS_ENABLED(CONFIG_IPV6) || sock->sk->sk_family != PF_INET6))
security/smack/smack_lsm.c
3086
struct socket_smack *ssp = smack_sock(sock->sk);
security/smack/smack_lsm.c
3092
rc = smk_ipv6_port_check(sock->sk, sip, SMK_CONNECTING);
security/smack/smack_lsm.c
3101
rc = smk_ipv4_check(sock->sk, (struct sockaddr_in *)sap);
security/smack/smack_lsm.c
3923
static int smack_unix_stream_connect(struct sock *sock,
security/smack/smack_lsm.c
3924
struct sock *other, struct sock *newsk)
security/smack/smack_lsm.c
3928
struct socket_smack *ssp = smack_sock(sock);
security/smack/smack_lsm.c
3980
static int smack_unix_may_send(struct socket *sock, struct socket *other)
security/smack/smack_lsm.c
3982
struct socket_smack *ssp = smack_sock(sock->sk);
security/smack/smack_lsm.c
4012
static int smack_socket_sendmsg(struct socket *sock, struct msghdr *msg,
security/smack/smack_lsm.c
4020
struct socket_smack *ssp = smack_sock(sock->sk);
security/smack/smack_lsm.c
4031
switch (sock->sk->sk_family) {
security/smack/smack_lsm.c
4036
rc = smk_ipv4_check(sock->sk, sip);
security/smack/smack_lsm.c
4050
rc = smk_ipv6_port_check(sock->sk, sap, SMK_SENDING);
security/smack/smack_lsm.c
4215
static struct smack_known *smack_from_netlbl(const struct sock *sk, u16 family,
security/smack/smack_lsm.c
4245
static int smack_socket_sock_rcv_skb(struct sock *sk, struct sk_buff *skb)
security/smack/smack_lsm.c
4341
static int smack_socket_getpeersec_stream(struct socket *sock,
security/smack/smack_lsm.c
4350
ssp = smack_sock(sock->sk);
security/smack/smack_lsm.c
4377
static int smack_socket_getpeersec_dgram(struct socket *sock,
security/smack/smack_lsm.c
4383
struct sock *sk = NULL;
security/smack/smack_lsm.c
4395
if (family == PF_UNSPEC && sock != NULL)
security/smack/smack_lsm.c
4396
family = sock->sk->sk_family;
security/smack/smack_lsm.c
4400
ssp = smack_sock(sock->sk);
security/smack/smack_lsm.c
4412
if (sock != NULL)
security/smack/smack_lsm.c
4413
sk = sock->sk;
security/smack/smack_lsm.c
4441
static int smack_inet_conn_request(const struct sock *sk, struct sk_buff *skb,
security/smack/smack_lsm.c
4529
static void smack_inet_csk_clone(struct sock *sk,
security/smack/smack_netfilter.c
25
struct sock *sk = skb_to_full_sk(skb);
security/tomoyo/common.h
1026
int tomoyo_socket_bind_permission(struct socket *sock, struct sockaddr *addr,
security/tomoyo/common.h
1028
int tomoyo_socket_connect_permission(struct socket *sock,
security/tomoyo/common.h
1030
int tomoyo_socket_listen_permission(struct socket *sock);
security/tomoyo/common.h
1031
int tomoyo_socket_sendmsg_permission(struct socket *sock, struct msghdr *msg,
security/tomoyo/network.c
629
static u8 tomoyo_sock_family(struct sock *sk)
security/tomoyo/network.c
653
int tomoyo_socket_listen_permission(struct socket *sock)
security/tomoyo/network.c
656
const u8 family = tomoyo_sock_family(sock->sk);
security/tomoyo/network.c
657
const unsigned int type = sock->type;
security/tomoyo/network.c
664
const int error = sock->ops->getname(sock, (struct sockaddr *)
security/tomoyo/network.c
689
int tomoyo_socket_connect_permission(struct socket *sock,
security/tomoyo/network.c
693
const u8 family = tomoyo_sock_family(sock->sk);
security/tomoyo/network.c
694
const unsigned int type = sock->type;
security/tomoyo/network.c
713
return tomoyo_check_inet_address(addr, addr_len, sock->sk->sk_protocol,
security/tomoyo/network.c
726
int tomoyo_socket_bind_permission(struct socket *sock, struct sockaddr *addr,
security/tomoyo/network.c
730
const u8 family = tomoyo_sock_family(sock->sk);
security/tomoyo/network.c
731
const unsigned int type = sock->type;
security/tomoyo/network.c
748
return tomoyo_check_inet_address(addr, addr_len, sock->sk->sk_protocol,
security/tomoyo/network.c
761
int tomoyo_socket_sendmsg_permission(struct socket *sock, struct msghdr *msg,
security/tomoyo/network.c
765
const u8 family = tomoyo_sock_family(sock->sk);
security/tomoyo/network.c
766
const unsigned int type = sock->type;
security/tomoyo/network.c
779
sock->sk->sk_protocol, &address);
security/tomoyo/tomoyo.c
454
static int tomoyo_socket_listen(struct socket *sock, int backlog)
security/tomoyo/tomoyo.c
456
return tomoyo_socket_listen_permission(sock);
security/tomoyo/tomoyo.c
468
static int tomoyo_socket_connect(struct socket *sock, struct sockaddr *addr,
security/tomoyo/tomoyo.c
471
return tomoyo_socket_connect_permission(sock, addr, addr_len);
security/tomoyo/tomoyo.c
483
static int tomoyo_socket_bind(struct socket *sock, struct sockaddr *addr,
security/tomoyo/tomoyo.c
486
return tomoyo_socket_bind_permission(sock, addr, addr_len);
security/tomoyo/tomoyo.c
498
static int tomoyo_socket_sendmsg(struct socket *sock, struct msghdr *msg,
security/tomoyo/tomoyo.c
501
return tomoyo_socket_sendmsg_permission(sock, msg, size);
tools/bpf/bpf_dbg.c
500
int sock, ret, i;
tools/bpf/bpf_dbg.c
506
sock = socket(AF_INET, SOCK_DGRAM, 0);
tools/bpf/bpf_dbg.c
507
if (sock < 0) {
tools/bpf/bpf_dbg.c
511
ret = setsockopt(sock, SOL_SOCKET, SO_ATTACH_FILTER, &bpf, sizeof(bpf));
tools/bpf/bpf_dbg.c
512
close(sock);
tools/bpf/bpftool/net.c
1001
close(sock);
tools/bpf/bpftool/net.c
114
int sock;
tools/bpf/bpftool/net.c
119
sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE);
tools/bpf/bpftool/net.c
120
if (sock < 0)
tools/bpf/bpftool/net.c
123
if (setsockopt(sock, SOL_NETLINK, NETLINK_EXT_ACK,
tools/bpf/bpftool/net.c
128
if (bind(sock, (struct sockaddr *)&sa, sizeof(sa)) < 0) {
tools/bpf/bpftool/net.c
134
if (getsockname(sock, (struct sockaddr *)&sa, &addrlen) < 0) {
tools/bpf/bpftool/net.c
145
return sock;
tools/bpf/bpftool/net.c
148
close(sock);
tools/bpf/bpftool/net.c
152
static int netlink_recv(int sock, __u32 nl_pid, __u32 seq,
tools/bpf/bpftool/net.c
164
len = recv(sock, buf, sizeof(buf), 0);
tools/bpf/bpftool/net.c
229
static int netlink_get_class(int sock, unsigned int nl_pid, int ifindex,
tools/bpf/bpftool/net.c
245
if (send(sock, &req, req.nlh.nlmsg_len, 0) < 0)
tools/bpf/bpftool/net.c
248
return netlink_recv(sock, nl_pid, seq, __dump_class_nlmsg,
tools/bpf/bpftool/net.c
268
static int netlink_get_qdisc(int sock, unsigned int nl_pid, int ifindex,
tools/bpf/bpftool/net.c
284
if (send(sock, &req, req.nlh.nlmsg_len, 0) < 0)
tools/bpf/bpftool/net.c
287
return netlink_recv(sock, nl_pid, seq, __dump_qdisc_nlmsg,
tools/bpf/bpftool/net.c
307
static int netlink_get_filter(int sock, unsigned int nl_pid, int ifindex, int handle,
tools/bpf/bpftool/net.c
324
if (send(sock, &req, req.nlh.nlmsg_len, 0) < 0)
tools/bpf/bpftool/net.c
327
return netlink_recv(sock, nl_pid, seq, __dump_filter_nlmsg,
tools/bpf/bpftool/net.c
346
static int netlink_get_link(int sock, unsigned int nl_pid,
tools/bpf/bpftool/net.c
361
if (send(sock, &req, req.nlh.nlmsg_len, 0) < 0)
tools/bpf/bpftool/net.c
364
return netlink_recv(sock, nl_pid, seq, __dump_link_nlmsg,
tools/bpf/bpftool/net.c
526
static int show_dev_tc_bpf_classic(int sock, unsigned int nl_pid,
tools/bpf/bpftool/net.c
538
ret = netlink_get_class(sock, nl_pid, dev->ifindex,
tools/bpf/bpftool/net.c
544
ret = netlink_get_qdisc(sock, nl_pid, dev->ifindex,
tools/bpf/bpftool/net.c
553
ret = netlink_get_filter(sock, nl_pid, dev->ifindex,
tools/bpf/bpftool/net.c
563
ret = netlink_get_filter(sock, nl_pid, dev->ifindex, handle,
tools/bpf/bpftool/net.c
570
ret = netlink_get_filter(sock, nl_pid, dev->ifindex, handle,
tools/bpf/bpftool/net.c
577
ret = netlink_get_filter(sock, nl_pid, dev->ifindex, handle,
tools/bpf/bpftool/net.c
934
int i, sock, ret, filter_idx = -1;
tools/bpf/bpftool/net.c
951
sock = netlink_open(&nl_pid);
tools/bpf/bpftool/net.c
952
if (sock < 0) {
tools/bpf/bpftool/net.c
966
ret = netlink_get_link(sock, nl_pid, dump_link_nlmsg, &dev_array);
tools/bpf/bpftool/net.c
973
ret = show_dev_tc_bpf_classic(sock, nl_pid,
tools/include/linux/btf_ids.h
183
BTF_SOCK_TYPE(BTF_SOCK_TYPE_SOCK, sock) \
tools/lib/bpf/netlink.c
106
static int netlink_recvmsg(int sock, struct msghdr *mhdr, int flags)
tools/lib/bpf/netlink.c
111
len = recvmsg(sock, mhdr, flags);
tools/lib/bpf/netlink.c
132
static int libbpf_netlink_recv(int sock, __u32 nl_pid, int seq,
tools/lib/bpf/netlink.c
153
len = netlink_recvmsg(sock, &mhdr, MSG_PEEK | MSG_TRUNC);
tools/lib/bpf/netlink.c
165
len = netlink_recvmsg(sock, &mhdr, 0);
tools/lib/bpf/netlink.c
230
int sock, ret;
tools/lib/bpf/netlink.c
232
sock = libbpf_netlink_open(&nl_pid, proto);
tools/lib/bpf/netlink.c
233
if (sock < 0)
tools/lib/bpf/netlink.c
234
return sock;
tools/lib/bpf/netlink.c
239
if (send(sock, req, req->nh.nlmsg_len, 0) < 0) {
tools/lib/bpf/netlink.c
244
ret = libbpf_netlink_recv(sock, nl_pid, req->nh.nlmsg_seq,
tools/lib/bpf/netlink.c
247
libbpf_netlink_close(sock);
tools/lib/bpf/netlink.c
57
int sock;
tools/lib/bpf/netlink.c
62
sock = socket(AF_NETLINK, SOCK_RAW | SOCK_CLOEXEC, proto);
tools/lib/bpf/netlink.c
63
if (sock < 0)
tools/lib/bpf/netlink.c
66
if (setsockopt(sock, SOL_NETLINK, NETLINK_EXT_ACK,
tools/lib/bpf/netlink.c
71
if (bind(sock, (struct sockaddr *)&sa, sizeof(sa)) < 0) {
tools/lib/bpf/netlink.c
77
if (getsockname(sock, (struct sockaddr *)&sa, &addrlen) < 0) {
tools/lib/bpf/netlink.c
88
return sock;
tools/lib/bpf/netlink.c
91
close(sock);
tools/lib/bpf/netlink.c
95
static void libbpf_netlink_close(int sock)
tools/lib/bpf/netlink.c
97
close(sock);
tools/lib/thermal/thermal_nl.c
113
static int nl_get_multicast_id(struct nl_sock *sock, struct nl_cb *cb,
tools/lib/thermal/thermal_nl.c
127
ctrlid = genl_ctrl_resolve(sock, "nlctrl");
tools/lib/thermal/thermal_nl.c
133
ret = nl_send_msg(sock, cb, msg, nl_family_handler, &grp);
tools/lib/thermal/thermal_nl.c
147
struct nl_sock *sock;
tools/lib/thermal/thermal_nl.c
153
sock = nl_socket_alloc();
tools/lib/thermal/thermal_nl.c
154
if (!sock)
tools/lib/thermal/thermal_nl.c
157
if (genl_connect(sock))
tools/lib/thermal/thermal_nl.c
166
*nl_sock = sock;
tools/lib/thermal/thermal_nl.c
172
nl_socket_free(sock);
tools/lib/thermal/thermal_nl.c
55
int nl_send_msg(struct nl_sock *sock, struct nl_cb *cb, struct nl_msg *msg,
tools/lib/thermal/thermal_nl.c
61
err = nl_send_auto_complete(sock, msg);
tools/lib/thermal/thermal_nl.c
70
nl_recvmsgs(sock, cb);
tools/lib/thermal/thermal_nl.h
42
extern int nl_send_msg(struct nl_sock *sock, struct nl_cb *nl_cb, struct nl_msg *msg,
tools/perf/trace/beauty/include/linux/socket.h
17
struct sock;
tools/perf/trace/beauty/include/linux/socket.h
437
extern long __sys_sendmsg_sock(struct socket *sock, struct msghdr *msg,
tools/perf/trace/beauty/include/linux/socket.h
439
extern long __sys_recvmsg_sock(struct socket *sock, struct msghdr *msg,
tools/perf/trace/beauty/include/linux/socket.h
462
extern int __sys_bind_socket(struct socket *sock, struct sockaddr_storage *address,
tools/perf/trace/beauty/include/linux/socket.h
469
extern int __sys_listen_socket(struct socket *sock, int backlog);
tools/perf/trace/beauty/include/linux/socket.h
470
extern int do_getsockname(struct socket *sock, int peer,
tools/perf/trace/beauty/include/linux/socket.h
476
extern int __sys_shutdown_sock(struct socket *sock, int how);
tools/power/x86/intel-speed-select/hfi-events.c
246
struct nl_sock *sock;
tools/power/x86/intel-speed-select/hfi-events.c
256
sock = nl_socket_alloc();
tools/power/x86/intel-speed-select/hfi-events.c
257
if (!sock) {
tools/power/x86/intel-speed-select/hfi-events.c
262
if (genl_connect(sock)) {
tools/power/x86/intel-speed-select/hfi-events.c
267
drv.nl_handle = sock;
tools/power/x86/intel-speed-select/hfi-events.c
281
if (nl_socket_add_membership(sock, mcast_id)) {
tools/power/x86/intel-speed-select/hfi-events.c
292
err = nl_recvmsgs(sock, cb);
tools/power/x86/intel-speed-select/hfi-events.c
300
nl_socket_free(sock);
tools/testing/selftests/arm64/fp/kernel-test.c
180
sock = ret;
tools/testing/selftests/arm64/fp/kernel-test.c
219
ret = splice(zerocopy[0], NULL, sock, NULL, wrote, 0);
tools/testing/selftests/arm64/fp/kernel-test.c
232
ret = recv(sock, buf, digest_len, 0);
tools/testing/selftests/arm64/fp/kernel-test.c
24
static int base, sock;
tools/testing/selftests/bpf/bpf_kfuncs.h
62
struct sock;
tools/testing/selftests/bpf/bpf_kfuncs.h
64
extern int bpf_sk_assign_tcp_reqsk(struct __sk_buff *skb, struct sock *sk,
tools/testing/selftests/bpf/prog_tests/cgroup_ancestor.c
28
int sock, n;
tools/testing/selftests/bpf/prog_tests/cgroup_ancestor.c
34
sock = socket(AF_INET6, SOCK_DGRAM, 0);
tools/testing/selftests/bpf/prog_tests/cgroup_ancestor.c
35
if (!ASSERT_OK_FD(sock, "create socket"))
tools/testing/selftests/bpf/prog_tests/cgroup_ancestor.c
36
return sock;
tools/testing/selftests/bpf/prog_tests/cgroup_ancestor.c
38
if (!ASSERT_OK(connect(sock, (struct sockaddr *)&addr, sizeof(addr)), "connect")) {
tools/testing/selftests/bpf/prog_tests/cgroup_ancestor.c
39
close(sock);
tools/testing/selftests/bpf/prog_tests/cgroup_ancestor.c
43
n = sendto(sock, buf, sizeof(buf), 0, (const struct sockaddr *)&addr,
tools/testing/selftests/bpf/prog_tests/cgroup_ancestor.c
45
close(sock);
tools/testing/selftests/bpf/prog_tests/mptcp.c
68
struct sock *sk;
tools/testing/selftests/bpf/prog_tests/mptcp.c
70
struct sock *first;
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
135
int sock, ret, mark = MARK, prio = PRIO;
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
143
sock = socket(AF_INET, SOCK_DGRAM, IPPROTO_ICMP);
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
144
if (!ASSERT_GE(sock, 0, "icmp_socket"))
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
147
ret = setsockopt(sock, SOL_SOCKET, SO_BINDTODEVICE,
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
152
ret = setsockopt(sock, SOL_SOCKET, SO_MARK, &mark, sizeof(mark));
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
156
ret = setsockopt(sock, SOL_SOCKET, SO_PRIORITY,
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
170
ret = sendto(sock, &icmp, sizeof(icmp), 0,
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
177
close(sock);
tools/testing/selftests/bpf/prog_tests/udp_limit.c
22
skel->links.sock = bpf_program__attach_cgroup(skel->progs.sock, cgroup_fd);
tools/testing/selftests/bpf/prog_tests/udp_limit.c
23
if (!ASSERT_OK_PTR(skel->links.sock, "cg_attach_sock"))
tools/testing/selftests/bpf/prog_tests/xdp_context_test_run.c
137
int n, sock = -1;
tools/testing/selftests/bpf/prog_tests/xdp_context_test_run.c
148
sock = socket(AF_PACKET, SOCK_RAW, IPPROTO_RAW);
tools/testing/selftests/bpf/prog_tests/xdp_context_test_run.c
149
if (!ASSERT_GE(sock, 0, "socket"))
tools/testing/selftests/bpf/prog_tests/xdp_context_test_run.c
157
n = sendto(sock, packet, sizeof(packet), 0, (struct sockaddr *)&saddr,
tools/testing/selftests/bpf/prog_tests/xdp_context_test_run.c
162
close(sock);
tools/testing/selftests/bpf/prog_tests/xdp_context_test_run.c
166
if (sock >= 0)
tools/testing/selftests/bpf/prog_tests/xdp_context_test_run.c
167
close(sock);
tools/testing/selftests/bpf/prog_tests/xdp_flowtable.c
37
int i, sock;
tools/testing/selftests/bpf/prog_tests/xdp_flowtable.c
42
sock = socket(AF_INET, SOCK_DGRAM, 0);
tools/testing/selftests/bpf/prog_tests/xdp_flowtable.c
43
if (sock < 0)
tools/testing/selftests/bpf/prog_tests/xdp_flowtable.c
44
return sock;
tools/testing/selftests/bpf/prog_tests/xdp_flowtable.c
50
n = sendto(sock, buf, sizeof(buf), MSG_NOSIGNAL | MSG_CONFIRM,
tools/testing/selftests/bpf/prog_tests/xdp_flowtable.c
53
close(sock);
tools/testing/selftests/bpf/prog_tests/xdp_flowtable.c
59
close(sock);
tools/testing/selftests/bpf/prog_tests/xfrm_info.c
212
int ret = -1, sock = -1;
tools/testing/selftests/bpf/prog_tests/xfrm_info.c
233
sock = socket(AF_NETLINK, SOCK_RAW | SOCK_CLOEXEC, NETLINK_ROUTE);
tools/testing/selftests/bpf/prog_tests/xfrm_info.c
234
if (!ASSERT_GE(sock, 0, "netlink socket"))
tools/testing/selftests/bpf/prog_tests/xfrm_info.c
236
ret = send(sock, nh, nh->nlmsg_len, 0);
tools/testing/selftests/bpf/prog_tests/xfrm_info.c
242
if (sock != -1)
tools/testing/selftests/bpf/prog_tests/xfrm_info.c
243
close(sock);
tools/testing/selftests/bpf/progs/bench_local_storage_create.c
50
int BPF_PROG(socket_post_create, struct socket *sock, int family, int type,
tools/testing/selftests/bpf/progs/bench_local_storage_create.c
53
struct sock *sk = sock->sk;
tools/testing/selftests/bpf/progs/bpf_cc_cubic.c
105
void BPF_PROG(bpf_cubic_init, struct sock *sk)
tools/testing/selftests/bpf/progs/bpf_cc_cubic.c
111
void BPF_PROG(bpf_cubic_cwnd_event_tx_start, struct sock *sk)
tools/testing/selftests/bpf/progs/bpf_cc_cubic.c
117
void BPF_PROG(bpf_cubic_cong_control, struct sock *sk, __u32 ack, int flag,
tools/testing/selftests/bpf/progs/bpf_cc_cubic.c
145
__u32 BPF_PROG(bpf_cubic_recalc_ssthresh, struct sock *sk)
tools/testing/selftests/bpf/progs/bpf_cc_cubic.c
151
void BPF_PROG(bpf_cubic_state, struct sock *sk, __u8 new_state)
tools/testing/selftests/bpf/progs/bpf_cc_cubic.c
157
void BPF_PROG(bpf_cubic_acked, struct sock *sk, const struct ack_sample *sample)
tools/testing/selftests/bpf/progs/bpf_cc_cubic.c
163
__u32 BPF_PROG(bpf_cubic_undo_cwnd, struct sock *sk)
tools/testing/selftests/bpf/progs/bpf_cc_cubic.c
25
extern void cubictcp_init(struct sock *sk) __ksym;
tools/testing/selftests/bpf/progs/bpf_cc_cubic.c
26
extern void cubictcp_cwnd_event_tx_start(struct sock *sk) __ksym;
tools/testing/selftests/bpf/progs/bpf_cc_cubic.c
27
extern __u32 cubictcp_recalc_ssthresh(struct sock *sk) __ksym;
tools/testing/selftests/bpf/progs/bpf_cc_cubic.c
28
extern void cubictcp_state(struct sock *sk, __u8 new_state) __ksym;
tools/testing/selftests/bpf/progs/bpf_cc_cubic.c
29
extern __u32 tcp_reno_undo_cwnd(struct sock *sk) __ksym;
tools/testing/selftests/bpf/progs/bpf_cc_cubic.c
30
extern void cubictcp_acked(struct sock *sk, const struct ack_sample *sample) __ksym;
tools/testing/selftests/bpf/progs/bpf_cc_cubic.c
31
extern void cubictcp_cong_avoid(struct sock *sk, __u32 ack, __u32 acked) __ksym;
tools/testing/selftests/bpf/progs/bpf_cc_cubic.c
38
static void tcp_update_pacing_rate(struct sock *sk)
tools/testing/selftests/bpf/progs/bpf_cc_cubic.c
67
static void tcp_cwnd_reduction(struct sock *sk, int newly_acked_sacked,
tools/testing/selftests/bpf/progs/bpf_cc_cubic.c
96
static bool tcp_may_raise_cwnd(const struct sock *sk, const int flag)
tools/testing/selftests/bpf/progs/bpf_cubic.c
158
static __u32 bictcp_clock_us(const struct sock *sk)
tools/testing/selftests/bpf/progs/bpf_cubic.c
163
static void bictcp_hystart_reset(struct sock *sk)
tools/testing/selftests/bpf/progs/bpf_cubic.c
178
void BPF_PROG(bpf_cubic_init, struct sock *sk)
tools/testing/selftests/bpf/progs/bpf_cubic.c
197
void BPF_PROG(bpf_cubic_cwnd_event_tx_start, struct sock *sk)
tools/testing/selftests/bpf/progs/bpf_cubic.c
390
void BPF_PROG(bpf_cubic_cong_avoid, struct sock *sk, __u32 ack, __u32 acked)
tools/testing/selftests/bpf/progs/bpf_cubic.c
410
__u32 BPF_PROG(bpf_cubic_recalc_ssthresh, struct sock *sk)
tools/testing/selftests/bpf/progs/bpf_cubic.c
428
void BPF_PROG(bpf_cubic_state, struct sock *sk, __u8 new_state)
tools/testing/selftests/bpf/progs/bpf_cubic.c
447
static __u32 hystart_ack_delay(struct sock *sk)
tools/testing/selftests/bpf/progs/bpf_cubic.c
458
static void hystart_update(struct sock *sk, __u32 delay)
tools/testing/selftests/bpf/progs/bpf_cubic.c
507
void BPF_PROG(bpf_cubic_acked, struct sock *sk, const struct ack_sample *sample)
tools/testing/selftests/bpf/progs/bpf_cubic.c
536
extern __u32 tcp_reno_undo_cwnd(struct sock *sk) __ksym;
tools/testing/selftests/bpf/progs/bpf_cubic.c
539
__u32 BPF_PROG(bpf_cubic_undo_cwnd, struct sock *sk)
tools/testing/selftests/bpf/progs/bpf_dctcp.c
109
__u32 BPF_PROG(bpf_dctcp_ssthresh, struct sock *sk)
tools/testing/selftests/bpf/progs/bpf_dctcp.c
119
void BPF_PROG(bpf_dctcp_update_alpha, struct sock *sk, __u32 flags)
tools/testing/selftests/bpf/progs/bpf_dctcp.c
148
static void dctcp_react_to_loss(struct sock *sk)
tools/testing/selftests/bpf/progs/bpf_dctcp.c
158
void BPF_PROG(bpf_dctcp_state, struct sock *sk, __u8 new_state)
tools/testing/selftests/bpf/progs/bpf_dctcp.c
168
static void dctcp_ece_ack_cwr(struct sock *sk, __u32 ce_state)
tools/testing/selftests/bpf/progs/bpf_dctcp.c
183
static void dctcp_ece_ack_update(struct sock *sk, enum tcp_ca_event evt,
tools/testing/selftests/bpf/progs/bpf_dctcp.c
205
void BPF_PROG(bpf_dctcp_cwnd_event, struct sock *sk, enum tcp_ca_event ev)
tools/testing/selftests/bpf/progs/bpf_dctcp.c
224
__u32 BPF_PROG(bpf_dctcp_cwnd_undo, struct sock *sk)
tools/testing/selftests/bpf/progs/bpf_dctcp.c
231
extern void tcp_reno_cong_avoid(struct sock *sk, __u32 ack, __u32 acked) __ksym;
tools/testing/selftests/bpf/progs/bpf_dctcp.c
234
void BPF_PROG(bpf_dctcp_cong_avoid, struct sock *sk, __u32 ack, __u32 acked)
tools/testing/selftests/bpf/progs/bpf_dctcp.c
62
void BPF_PROG(bpf_dctcp_init, struct sock *sk)
tools/testing/selftests/bpf/progs/bpf_dctcp_release.c
12
void BPF_PROG(dctcp_nouse_release, struct sock *sk)
tools/testing/selftests/bpf/progs/bpf_iter_bpf_sk_storage_helpers.c
30
struct socket *sock;
tools/testing/selftests/bpf/progs/bpf_iter_bpf_sk_storage_helpers.c
36
sock = bpf_sock_from_file(file);
tools/testing/selftests/bpf/progs/bpf_iter_bpf_sk_storage_helpers.c
37
if (!sock)
tools/testing/selftests/bpf/progs/bpf_iter_bpf_sk_storage_helpers.c
40
sock_tgid = bpf_sk_storage_get(&sk_stg_map, sock->sk, 0, 0);
tools/testing/selftests/bpf/progs/bpf_iter_bpf_sk_storage_map.c
24
struct sock *sk = ctx->sk;
tools/testing/selftests/bpf/progs/bpf_iter_bpf_sk_storage_map.c
43
struct sock *sk = ctx->sk;
tools/testing/selftests/bpf/progs/bpf_iter_netlink.c
22
struct sock *s;
tools/testing/selftests/bpf/progs/bpf_iter_setsockopt.c
14
sk = (struct sock *)tp; \
tools/testing/selftests/bpf/progs/bpf_iter_setsockopt.c
31
struct sock *sk;
tools/testing/selftests/bpf/progs/bpf_iter_sockmap.c
38
struct sock *sk = ctx->sk;
tools/testing/selftests/bpf/progs/bpf_iter_tcp4.c
49
static long sock_i_ino(const struct sock *sk)
tools/testing/selftests/bpf/progs/bpf_iter_tcp4.c
81
const struct sock *sp;
tools/testing/selftests/bpf/progs/bpf_iter_tcp6.c
49
static long sock_i_ino(const struct sock *sk)
tools/testing/selftests/bpf/progs/bpf_iter_tcp6.c
82
const struct sock *sp;
tools/testing/selftests/bpf/progs/bpf_iter_udp4.c
10
static long sock_i_ino(const struct sock *sk)
tools/testing/selftests/bpf/progs/bpf_iter_udp6.c
17
static long sock_i_ino(const struct sock *sk)
tools/testing/selftests/bpf/progs/bpf_iter_unix.c
17
static long sock_i_ino(const struct sock *sk)
tools/testing/selftests/bpf/progs/bpf_iter_unix.c
35
struct sock *sk = (struct sock *)unix_sk;
tools/testing/selftests/bpf/progs/bpf_qdisc_fq.c
225
static bool sk_listener(struct sock *sk)
tools/testing/selftests/bpf/progs/bpf_qdisc_fq.c
266
struct sock *sk = skb->sk;
tools/testing/selftests/bpf/progs/bpf_smc.c
20
struct sock sk;
tools/testing/selftests/bpf/progs/bpf_smc.c
43
int BPF_PROG(bpf_smc_release, struct socket *sock)
tools/testing/selftests/bpf/progs/bpf_smc.c
46
if (sock->sk->__sk_common.skc_state == BPF_SMC_LISTEN)
tools/testing/selftests/bpf/progs/bpf_tcp_nogpl.c
9
void BPF_PROG(nogpltcp_init, struct sock *sk)
tools/testing/selftests/bpf/progs/bpf_tracing_net.h
163
static inline struct inet_connection_sock *inet_csk(const struct sock *sk)
tools/testing/selftests/bpf/progs/bpf_tracing_net.h
168
static inline void *inet_csk_ca(const struct sock *sk)
tools/testing/selftests/bpf/progs/bpf_tracing_net.h
173
static inline struct tcp_sock *tcp_sk(const struct sock *sk)
tools/testing/selftests/bpf/progs/bpf_tracing_net.h
183
static inline bool tcp_is_cwnd_limited(const struct sock *sk)
tools/testing/selftests/bpf/progs/cgroup_ancestor.c
24
struct sock *sk = (void *)skb->sk;
tools/testing/selftests/bpf/progs/cgroup_ancestor.c
29
sk = bpf_core_cast(sk, struct sock);
tools/testing/selftests/bpf/progs/cgrp_ls_attach_cgroup.c
83
int BPF_PROG(update_cookie_tracing, struct socket *sock,
tools/testing/selftests/bpf/progs/cgrp_ls_attach_cgroup.c
91
p = bpf_cgrp_storage_get(&socket_cookies, sock->sk->sk_cgrp_data.cgroup, 0, 0);
tools/testing/selftests/bpf/progs/cgrp_ls_attach_cgroup.c
95
if (p->cookie_key != bpf_get_socket_cookie(sock->sk))
tools/testing/selftests/bpf/progs/kfunc_call_test.c
134
return bpf_kfunc_call_test2((struct sock *)sk, 1, 2);
tools/testing/selftests/bpf/progs/kfunc_call_test.c
151
a = bpf_kfunc_call_test1((struct sock *)sk, 1, a | 2, 3, a | 4);
tools/testing/selftests/bpf/progs/kfunc_call_test_subprog.c
26
sk_state_res = bpf_kfunc_call_test3((struct sock *)sk)->__sk_common.skc_state;
tools/testing/selftests/bpf/progs/kfunc_call_test_subprog.c
28
return (__u32)bpf_kfunc_call_test1((struct sock *)sk, 1, 2, 3, 4);
tools/testing/selftests/bpf/progs/local_storage.c
132
int BPF_PROG(socket_bind, struct socket *sock, struct sockaddr *address,
tools/testing/selftests/bpf/progs/local_storage.c
137
struct sock *sk = sock->sk;
tools/testing/selftests/bpf/progs/local_storage.c
169
int BPF_PROG(socket_post_create, struct socket *sock, int family, int type,
tools/testing/selftests/bpf/progs/local_storage.c
174
struct sock *sk = sock->sk;
tools/testing/selftests/bpf/progs/lsm_cgroup.c
100
return real_create(sock, family, protocol);
tools/testing/selftests/bpf/progs/lsm_cgroup.c
103
static __always_inline int real_bind(struct socket *sock,
tools/testing/selftests/bpf/progs/lsm_cgroup.c
108
struct sock *sk = sock->sk;
tools/testing/selftests/bpf/progs/lsm_cgroup.c
132
int BPF_PROG(socket_bind, struct socket *sock, struct sockaddr *address,
tools/testing/selftests/bpf/progs/lsm_cgroup.c
136
return real_bind(sock, address, addrlen);
tools/testing/selftests/bpf/progs/lsm_cgroup.c
141
int BPF_PROG(socket_bind2, struct socket *sock, struct sockaddr *address,
tools/testing/selftests/bpf/progs/lsm_cgroup.c
145
return real_bind(sock, address, addrlen);
tools/testing/selftests/bpf/progs/lsm_cgroup.c
150
int BPF_PROG(socket_alloc, struct sock *sk, int family, gfp_t priority)
tools/testing/selftests/bpf/progs/lsm_cgroup.c
169
int BPF_PROG(socket_clone, struct sock *newsk, const struct request_sock *req)
tools/testing/selftests/bpf/progs/lsm_cgroup.c
53
static __always_inline int real_create(struct socket *sock, int family,
tools/testing/selftests/bpf/progs/lsm_cgroup.c
56
struct sock *sk;
tools/testing/selftests/bpf/progs/lsm_cgroup.c
63
sk = sock->sk;
tools/testing/selftests/bpf/progs/lsm_cgroup.c
87
int BPF_PROG(socket_post_create, struct socket *sock, int family,
tools/testing/selftests/bpf/progs/lsm_cgroup.c
91
return real_create(sock, family, protocol);
tools/testing/selftests/bpf/progs/lsm_cgroup.c
96
int BPF_PROG(socket_post_create2, struct socket *sock, int family,
tools/testing/selftests/bpf/progs/lsm_cgroup_nonvoid.c
10
int BPF_PROG(nonvoid_socket_clone, struct sock *newsk, const struct request_sock *req)
tools/testing/selftests/bpf/progs/map_kptr_race.c
119
int BPF_PROG(test_sk_ls_leak, struct sock *sk, int oldstate, int newstate)
tools/testing/selftests/bpf/progs/mem_rdonly_untrusted.c
150
return bpf_rdonly_cast(0, bpf_core_type_id_kernel(struct sock));
tools/testing/selftests/bpf/progs/mptcp_bpf.h
36
static __always_inline struct sock *
tools/testing/selftests/bpf/progs/mptcp_sock.c
15
struct sock *sk;
tools/testing/selftests/bpf/progs/mptcp_sock.c
17
struct sock *first;
tools/testing/selftests/bpf/progs/mptcp_sock.c
75
storage->sk = (struct sock *)sk;
tools/testing/selftests/bpf/progs/mptcp_sock.c
82
const struct sock *ssk, int server_side)
tools/testing/selftests/bpf/progs/mptcp_subflow.c
69
struct sock *ssk;
tools/testing/selftests/bpf/progs/mptcp_subflow.c
89
struct sock *ssk;
tools/testing/selftests/bpf/progs/nested_acquire.c
13
int BPF_PROG(test_nested_acquire_nonzero, struct sock *sk, struct sk_buff *skb)
tools/testing/selftests/bpf/progs/nested_acquire.c
25
int BPF_PROG(test_nested_acquire_zero, struct sock *sk, struct sk_buff *skb)
tools/testing/selftests/bpf/progs/nested_trust_failure.c
37
int BPF_PROG(test_invalid_skb_field, struct sock *sk, struct sk_buff *skb)
tools/testing/selftests/bpf/progs/nested_trust_success.c
30
int BPF_PROG(test_skb_field, struct sock *sk, struct sk_buff *skb)
tools/testing/selftests/bpf/progs/net_timestamping.c
103
const struct sock *sk)
tools/testing/selftests/bpf/progs/net_timestamping.c
117
static bool bpf_test_delay(struct bpf_sock_ops *skops, const struct sock *sk)
tools/testing/selftests/bpf/progs/net_timestamping.c
189
int BPF_PROG(trace_tcp_sendmsg_locked, struct sock *sk, struct msghdr *msg,
tools/testing/selftests/bpf/progs/net_timestamping.c
214
const struct sock *sk;
tools/testing/selftests/bpf/progs/net_timestamping.c
219
sk = (struct sock *)bpf_skc_to_tcp_sock(bpf_sk);
tools/testing/selftests/bpf/progs/net_timestamping.c
52
static int bpf_test_sockopt(void *ctx, const struct sock *sk, int expected)
tools/testing/selftests/bpf/progs/net_timestamping.c
68
static bool bpf_test_access_sockopt(void *ctx, const struct sock *sk)
tools/testing/selftests/bpf/progs/setget_sockopt.c
124
static int bpf_test_sockopt_int(void *ctx, struct sock *sk,
tools/testing/selftests/bpf/progs/setget_sockopt.c
209
struct sock *sk;
tools/testing/selftests/bpf/progs/setget_sockopt.c
257
static int bpf_test_sockopt(void *ctx, struct sock *sk)
tools/testing/selftests/bpf/progs/setget_sockopt.c
329
static int test_tcp_maxseg(void *ctx, struct sock *sk)
tools/testing/selftests/bpf/progs/setget_sockopt.c
344
static int test_tcp_saved_syn(void *ctx, struct sock *sk)
tools/testing/selftests/bpf/progs/setget_sockopt.c
358
int BPF_PROG(socket_post_create, struct socket *sock, int family,
tools/testing/selftests/bpf/progs/setget_sockopt.c
361
struct sock *sk = sock->sk;
tools/testing/selftests/bpf/progs/setget_sockopt.c
412
struct sock *sk;
tools/testing/selftests/bpf/progs/setget_sockopt.c
418
sk = (struct sock *)bpf_skc_to_tcp_sock(bpf_sk);
tools/testing/selftests/bpf/progs/setget_sockopt.c
83
struct sock *sk;
tools/testing/selftests/bpf/progs/setget_sockopt.c
86
static bool sk_is_tcp(struct sock *sk)
tools/testing/selftests/bpf/progs/setget_sockopt.c
94
static int bpf_test_sockopt_flip(void *ctx, struct sock *sk,
tools/testing/selftests/bpf/progs/sk_bypass_prot_mem.c
33
static long get_memory_allocated(struct sock *_sk, int *memory_per_cpu_fw_alloc)
tools/testing/selftests/bpf/progs/sk_bypass_prot_mem.c
35
struct sock *sk = bpf_core_cast(_sk, struct sock);
tools/testing/selftests/bpf/progs/sk_bypass_prot_mem.c
50
static void fentry_init_sock(struct sock *sk, bool *activated,
tools/testing/selftests/bpf/progs/sk_bypass_prot_mem.c
61
int BPF_PROG(fentry_tcp_init_sock, struct sock *sk)
tools/testing/selftests/bpf/progs/sk_bypass_prot_mem.c
69
int BPF_PROG(fentry_udp_init_sock, struct sock *sk)
tools/testing/selftests/bpf/progs/sk_storage_omem_uncharge.c
22
int BPF_PROG(bpf_sk_storage_free, struct sock *sk)
tools/testing/selftests/bpf/progs/sk_storage_omem_uncharge.c
37
int BPF_PROG(inet6_sock_destruct, struct sock *sk)
tools/testing/selftests/bpf/progs/sock_destroy_prog.c
108
struct sock *sk = (struct sock *) udp_sk;
tools/testing/selftests/bpf/progs/sock_destroy_prog.c
130
struct sock *sk = (struct sock *) udp_sk;
tools/testing/selftests/bpf/progs/sock_destroy_prog_fail.c
15
int BPF_PROG(trace_tcp_destroy_sock, struct sock *sk)
tools/testing/selftests/bpf/progs/sock_iter_batch.c
108
sk = bpf_core_cast(sk, struct sock);
tools/testing/selftests/bpf/progs/sock_iter_batch.c
33
struct sock *sk = (struct sock *)ctx->sk_common;
tools/testing/selftests/bpf/progs/sock_iter_batch.c
44
sk = bpf_core_cast(sk, struct sock);
tools/testing/selftests/bpf/progs/sock_iter_batch.c
99
struct sock *sk = (struct sock *)ctx->udp_sk;
tools/testing/selftests/bpf/progs/socket_cookie_prog.c
79
int BPF_PROG(update_cookie_tracing, struct socket *sock,
tools/testing/selftests/bpf/progs/socket_cookie_prog.c
87
p = bpf_sk_storage_get(&socket_cookies, sock->sk, 0, 0);
tools/testing/selftests/bpf/progs/socket_cookie_prog.c
91
if (p->cookie_key != bpf_get_socket_cookie(sock->sk))
tools/testing/selftests/bpf/progs/task_storage_nodeadlock.c
22
int BPF_PROG(socket_post_create, struct socket *sock, int family, int type,
tools/testing/selftests/bpf/progs/tcp_ca_incompl_cong_ops.c
10
__u32 BPF_PROG(incompl_cong_ops_ssthresh, struct sock *sk)
tools/testing/selftests/bpf/progs/tcp_ca_incompl_cong_ops.c
16
__u32 BPF_PROG(incompl_cong_ops_undo_cwnd, struct sock *sk)
tools/testing/selftests/bpf/progs/tcp_ca_kfunc.c
10
extern u32 bbr_undo_cwnd(struct sock *sk) __ksym;
tools/testing/selftests/bpf/progs/tcp_ca_kfunc.c
107
void BPF_PROG(pkts_acked, struct sock *sk, const struct ack_sample *sample)
tools/testing/selftests/bpf/progs/tcp_ca_kfunc.c
11
extern void bbr_cwnd_event_tx_start(struct sock *sk) __ksym;
tools/testing/selftests/bpf/progs/tcp_ca_kfunc.c
12
extern u32 bbr_ssthresh(struct sock *sk) __ksym;
tools/testing/selftests/bpf/progs/tcp_ca_kfunc.c
13
extern u32 bbr_min_tso_segs(struct sock *sk) __ksym;
tools/testing/selftests/bpf/progs/tcp_ca_kfunc.c
14
extern void bbr_set_state(struct sock *sk, u8 new_state) __ksym;
tools/testing/selftests/bpf/progs/tcp_ca_kfunc.c
16
extern void dctcp_init(struct sock *sk) __ksym;
tools/testing/selftests/bpf/progs/tcp_ca_kfunc.c
17
extern void dctcp_update_alpha(struct sock *sk, u32 flags) __ksym;
tools/testing/selftests/bpf/progs/tcp_ca_kfunc.c
18
extern void dctcp_cwnd_event(struct sock *sk, enum tcp_ca_event ev) __ksym;
tools/testing/selftests/bpf/progs/tcp_ca_kfunc.c
19
extern void dctcp_cwnd_event_tx_start(struct sock *sk) __ksym;
tools/testing/selftests/bpf/progs/tcp_ca_kfunc.c
20
extern u32 dctcp_ssthresh(struct sock *sk) __ksym;
tools/testing/selftests/bpf/progs/tcp_ca_kfunc.c
21
extern u32 dctcp_cwnd_undo(struct sock *sk) __ksym;
tools/testing/selftests/bpf/progs/tcp_ca_kfunc.c
22
extern void dctcp_state(struct sock *sk, u8 new_state) __ksym;
tools/testing/selftests/bpf/progs/tcp_ca_kfunc.c
24
extern void cubictcp_init(struct sock *sk) __ksym;
tools/testing/selftests/bpf/progs/tcp_ca_kfunc.c
25
extern u32 cubictcp_recalc_ssthresh(struct sock *sk) __ksym;
tools/testing/selftests/bpf/progs/tcp_ca_kfunc.c
26
extern void cubictcp_cong_avoid(struct sock *sk, u32 ack, u32 acked) __ksym;
tools/testing/selftests/bpf/progs/tcp_ca_kfunc.c
27
extern void cubictcp_state(struct sock *sk, u8 new_state) __ksym;
tools/testing/selftests/bpf/progs/tcp_ca_kfunc.c
28
extern void cubictcp_cwnd_event_tx_start(struct sock *sk) __ksym;
tools/testing/selftests/bpf/progs/tcp_ca_kfunc.c
29
extern void cubictcp_acked(struct sock *sk, const struct ack_sample *sample) __ksym;
tools/testing/selftests/bpf/progs/tcp_ca_kfunc.c
32
void BPF_PROG(init, struct sock *sk)
tools/testing/selftests/bpf/progs/tcp_ca_kfunc.c
40
void BPF_PROG(in_ack_event, struct sock *sk, u32 flags)
tools/testing/selftests/bpf/progs/tcp_ca_kfunc.c
46
void BPF_PROG(cong_control, struct sock *sk, u32 ack, int flag, const struct rate_sample *rs)
tools/testing/selftests/bpf/progs/tcp_ca_kfunc.c
52
void BPF_PROG(cong_avoid, struct sock *sk, u32 ack, u32 acked)
tools/testing/selftests/bpf/progs/tcp_ca_kfunc.c
58
u32 BPF_PROG(sndbuf_expand, struct sock *sk)
tools/testing/selftests/bpf/progs/tcp_ca_kfunc.c
64
u32 BPF_PROG(undo_cwnd, struct sock *sk)
tools/testing/selftests/bpf/progs/tcp_ca_kfunc.c
7
extern void bbr_init(struct sock *sk) __ksym;
tools/testing/selftests/bpf/progs/tcp_ca_kfunc.c
71
void BPF_PROG(cwnd_event, struct sock *sk, enum tcp_ca_event event)
tools/testing/selftests/bpf/progs/tcp_ca_kfunc.c
77
void BPF_PROG(cwnd_event_tx_start, struct sock *sk)
tools/testing/selftests/bpf/progs/tcp_ca_kfunc.c
8
extern void bbr_main(struct sock *sk, u32 ack, int flag, const struct rate_sample *rs) __ksym;
tools/testing/selftests/bpf/progs/tcp_ca_kfunc.c
85
u32 BPF_PROG(ssthresh, struct sock *sk)
tools/testing/selftests/bpf/progs/tcp_ca_kfunc.c
9
extern u32 bbr_sndbuf_expand(struct sock *sk) __ksym;
tools/testing/selftests/bpf/progs/tcp_ca_kfunc.c
93
u32 BPF_PROG(min_tso_segs, struct sock *sk)
tools/testing/selftests/bpf/progs/tcp_ca_kfunc.c
99
void BPF_PROG(set_state, struct sock *sk, u8 new_state)
tools/testing/selftests/bpf/progs/tcp_ca_unsupp_cong_op.c
11
size_t BPF_PROG(unsupp_cong_op_get_info, struct sock *sk, u32 ext, int *attr,
tools/testing/selftests/bpf/progs/tcp_ca_update.c
13
void BPF_PROG(ca_update_1_init, struct sock *sk)
tools/testing/selftests/bpf/progs/tcp_ca_update.c
19
void BPF_PROG(ca_update_2_init, struct sock *sk)
tools/testing/selftests/bpf/progs/tcp_ca_update.c
25
void BPF_PROG(ca_update_cong_control, struct sock *sk,
tools/testing/selftests/bpf/progs/tcp_ca_update.c
31
__u32 BPF_PROG(ca_update_ssthresh, struct sock *sk)
tools/testing/selftests/bpf/progs/tcp_ca_update.c
37
__u32 BPF_PROG(ca_update_undo_cwnd, struct sock *sk)
tools/testing/selftests/bpf/progs/tcp_ca_write_sk_pacing.c
22
void BPF_PROG(write_sk_pacing_init, struct sock *sk)
tools/testing/selftests/bpf/progs/tcp_ca_write_sk_pacing.c
33
void BPF_PROG(write_sk_pacing_cong_control, struct sock *sk,
tools/testing/selftests/bpf/progs/tcp_ca_write_sk_pacing.c
45
__u32 BPF_PROG(write_sk_pacing_ssthresh, struct sock *sk)
tools/testing/selftests/bpf/progs/tcp_ca_write_sk_pacing.c
51
__u32 BPF_PROG(write_sk_pacing_undo_cwnd, struct sock *sk)
tools/testing/selftests/bpf/progs/test_sk_storage_trace_itself.c
16
int BPF_PROG(trace_bpf_sk_storage_free, struct sock *sk)
tools/testing/selftests/bpf/progs/test_sk_storage_tracing.c
33
int BPF_PROG(trace_inet_sock_set_state, struct sock *sk, int oldstate,
tools/testing/selftests/bpf/progs/test_sk_storage_tracing.c
53
static void set_task_info(struct sock *sk)
tools/testing/selftests/bpf/progs/test_sk_storage_tracing.c
71
int BPF_PROG(trace_inet_csk_listen_start, struct sock *sk)
tools/testing/selftests/bpf/progs/test_sk_storage_tracing.c
79
int BPF_PROG(trace_tcp_connect, struct sock *sk)
tools/testing/selftests/bpf/progs/test_sk_storage_tracing.c
87
int BPF_PROG(inet_csk_accept, struct sock *sk, struct proto_accept_arg *arg,
tools/testing/selftests/bpf/progs/test_sk_storage_tracing.c
88
struct sock *accepted_sk)
tools/testing/selftests/bpf/progs/test_sk_storage_tracing.c
96
int BPF_PROG(tcp_retransmit_synack, struct sock* sk, struct request_sock* req)
tools/testing/selftests/bpf/progs/test_skc_to_unix_sock.c
13
int BPF_PROG(unix_listen, struct socket *sock, int backlog)
tools/testing/selftests/bpf/progs/test_skc_to_unix_sock.c
22
unix_sk = (struct unix_sock *)bpf_skc_to_unix_sock(sock->sk);
tools/testing/selftests/bpf/progs/test_tcp_custom_syncookie.c
512
struct sock *sk;
tools/testing/selftests/bpf/progs/test_tcp_custom_syncookie.c
538
sk = (struct sock *)bpf_skc_to_tcp_sock(skc);
tools/testing/selftests/bpf/progs/test_tcp_estats.c
160
struct sock *sock;
tools/testing/selftests/bpf/progs/test_tcp_estats.c
212
struct sock *sk)
tools/testing/selftests/bpf/progs/test_tcp_estats.c
227
static __always_inline void tcp_estats_init(struct sock *sk,
tools/testing/selftests/bpf/progs/test_tcp_estats.c
236
static __always_inline void send_basic_event(struct sock *sk,
tools/testing/selftests/bpf/progs/test_tcp_estats.c
250
if (!arg->sock)
tools/testing/selftests/bpf/progs/test_tcp_estats.c
253
send_basic_event(arg->sock, TCP_ESTATS_TX_RESET);
tools/testing/selftests/bpf/progs/test_tcp_estats.c
82
struct sock sk;
tools/testing/selftests/bpf/progs/test_tcp_estats.c
93
static inline struct inet_sock *inet_sk(const struct sock *sk)
tools/testing/selftests/bpf/progs/udp_limit.c
17
int sock(struct bpf_sock *ctx)
tools/testing/selftests/bpf/progs/verifier_sockmap_mutate.c
18
struct sock *sk;
tools/testing/selftests/bpf/test_kmods/bpf_testmod.c
1051
if (sock) {
tools/testing/selftests/bpf/test_kmods/bpf_testmod.c
1072
proto, &sock);
tools/testing/selftests/bpf/test_kmods/bpf_testmod.c
1079
sock->sk->sk_sndtimeo = CONNECT_TIMEOUT_SEC * HZ;
tools/testing/selftests/bpf/test_kmods/bpf_testmod.c
1090
if (sock) {
tools/testing/selftests/bpf/test_kmods/bpf_testmod.c
1091
sock_release(sock);
tools/testing/selftests/bpf/test_kmods/bpf_testmod.c
1092
sock = NULL;
tools/testing/selftests/bpf/test_kmods/bpf_testmod.c
1107
if (!sock) {
tools/testing/selftests/bpf/test_kmods/bpf_testmod.c
1113
err = kernel_connect(sock, (struct sockaddr_unsized *)&args->addr,
tools/testing/selftests/bpf/test_kmods/bpf_testmod.c
1130
if (!sock) {
tools/testing/selftests/bpf/test_kmods/bpf_testmod.c
1136
err = kernel_bind(sock, (struct sockaddr_unsized *)&args->addr, args->addrlen);
tools/testing/selftests/bpf/test_kmods/bpf_testmod.c
1149
if (!sock) {
tools/testing/selftests/bpf/test_kmods/bpf_testmod.c
1155
err = kernel_listen(sock, 128);
tools/testing/selftests/bpf/test_kmods/bpf_testmod.c
1180
if (!sock) {
tools/testing/selftests/bpf/test_kmods/bpf_testmod.c
1186
err = kernel_sendmsg(sock, &msg, &iov, 1, args->msglen);
tools/testing/selftests/bpf/test_kmods/bpf_testmod.c
1213
if (!sock) {
tools/testing/selftests/bpf/test_kmods/bpf_testmod.c
1219
err = sock_sendmsg(sock, &msg);
tools/testing/selftests/bpf/test_kmods/bpf_testmod.c
1233
if (!sock) {
tools/testing/selftests/bpf/test_kmods/bpf_testmod.c
1239
err = kernel_getsockname(sock, (struct sockaddr *)&args->addr);
tools/testing/selftests/bpf/test_kmods/bpf_testmod.c
1257
if (!sock) {
tools/testing/selftests/bpf/test_kmods/bpf_testmod.c
1263
err = kernel_getpeername(sock, (struct sockaddr *)&args->addr);
tools/testing/selftests/bpf/test_kmods/bpf_testmod.c
2030
sock = NULL;
tools/testing/selftests/bpf/test_kmods/bpf_testmod.c
39
static struct socket *sock;
tools/testing/selftests/bpf/test_kmods/bpf_testmod.c
754
__bpf_kfunc u64 bpf_kfunc_call_test1(struct sock *sk, u32 a, u64 b, u32 c, u64 d)
tools/testing/selftests/bpf/test_kmods/bpf_testmod.c
759
__bpf_kfunc int bpf_kfunc_call_test2(struct sock *sk, u32 a, u32 b)
tools/testing/selftests/bpf/test_kmods/bpf_testmod.c
764
__bpf_kfunc struct sock *bpf_kfunc_call_test3(struct sock *sk)
tools/testing/selftests/bpf/test_kmods/bpf_testmod_kfunc.h
115
__u64 bpf_kfunc_call_test1(struct sock *sk, __u32 a, __u64 b,
tools/testing/selftests/bpf/test_kmods/bpf_testmod_kfunc.h
117
int bpf_kfunc_call_test2(struct sock *sk, __u32 a, __u32 b) __ksym;
tools/testing/selftests/bpf/test_kmods/bpf_testmod_kfunc.h
118
struct sock *bpf_kfunc_call_test3(struct sock *sk) __ksym;
tools/testing/selftests/bpf/test_progs.c
1391
static int send_message(int sock, const struct msg *msg)
tools/testing/selftests/bpf/test_progs.c
1397
return send(sock, msg, sizeof(*msg), 0);
tools/testing/selftests/bpf/test_progs.c
1400
static int recv_message(int sock, struct msg *msg)
tools/testing/selftests/bpf/test_progs.c
1406
ret = recv(sock, msg, sizeof(*msg), 0);
tools/testing/selftests/bpf/test_progs.c
1814
static void worker_main_send_log(int sock, char *log_buf, size_t log_cnt)
tools/testing/selftests/bpf/test_progs.c
1837
assert(send_message(sock, &msg_log) >= 0);
tools/testing/selftests/bpf/test_progs.c
1852
static int worker_main_send_subtests(int sock, struct test_state *state)
tools/testing/selftests/bpf/test_progs.c
1878
if (send_message(sock, &msg) < 0) {
tools/testing/selftests/bpf/test_progs.c
1886
worker_main_send_log(sock, subtest_state->log_buf, subtest_state->log_cnt);
tools/testing/selftests/bpf/test_progs.c
1899
static int worker_main(int sock)
tools/testing/selftests/bpf/test_progs.c
1908
if (recv_message(sock, &msg) < 0)
tools/testing/selftests/bpf/test_progs.c
1944
if (send_message(sock, &msg) < 0) {
tools/testing/selftests/bpf/test_progs.c
1951
worker_main_send_log(sock, state->log_buf, state->log_cnt);
tools/testing/selftests/bpf/test_progs.c
1960
if (worker_main_send_subtests(sock, state))
tools/testing/selftests/bpf/xsk.c
301
static int netlink_recvmsg(int sock, struct msghdr *mhdr, int flags)
tools/testing/selftests/bpf/xsk.c
306
len = recvmsg(sock, mhdr, flags);
tools/testing/selftests/bpf/xsk.c
329
static int netlink_recv(int sock)
tools/testing/selftests/bpf/xsk.c
347
len = netlink_recvmsg(sock, &mhdr, MSG_PEEK | MSG_TRUNC);
tools/testing/selftests/bpf/xsk.c
359
len = netlink_recvmsg(sock, &mhdr, 0);
tools/testing/selftests/cgroup/test_kmem.c
170
long current, anon, file, kernel, sock, sum;
tools/testing/selftests/cgroup/test_kmem.c
191
sock = cg_read_key_long(parent, "memory.stat", "sock ");
tools/testing/selftests/cgroup/test_kmem.c
192
if (current < 0 || anon < 0 || file < 0 || kernel < 0 || sock < 0)
tools/testing/selftests/cgroup/test_kmem.c
195
sum = anon + file + kernel + sock;
tools/testing/selftests/cgroup/test_kmem.c
204
printf("sock = %ld\n", sock);
tools/testing/selftests/cgroup/test_memcontrol.c
1357
long current, sock;
tools/testing/selftests/cgroup/test_memcontrol.c
1363
sock = cg_read_key_long(cgroup, "memory.stat", "sock ");
tools/testing/selftests/cgroup/test_memcontrol.c
1365
if (current < 0 || sock < 0)
tools/testing/selftests/cgroup/test_memcontrol.c
1369
if (values_close(current - allocated, sock, 10)) {
tools/testing/selftests/drivers/net/psp_responder.c
102
static void send_ack(int sock)
tools/testing/selftests/drivers/net/psp_responder.c
104
send(sock, "ack", 4, MSG_WAITALL);
tools/testing/selftests/drivers/net/psp_responder.c
107
static void send_err(int sock)
tools/testing/selftests/drivers/net/psp_responder.c
109
send(sock, "err", 4, MSG_WAITALL);
tools/testing/selftests/drivers/net/psp_responder.c
112
static void send_str(int sock, int value)
tools/testing/selftests/drivers/net/psp_responder.c
118
send(sock, buf, ret + 1, MSG_WAITALL);
tools/testing/selftests/exec/non-regular.c
170
FIXTURE(sock)
tools/testing/selftests/exec/non-regular.c
175
FIXTURE_SETUP(sock)
tools/testing/selftests/exec/non-regular.c
181
FIXTURE_TEARDOWN(sock)
tools/testing/selftests/exec/non-regular.c
187
TEST_F(sock, exec_errno)
tools/testing/selftests/mm/map_populate.c
106
ret = socketpair(PF_LOCAL, SOCK_SEQPACKET, 0, sock);
tools/testing/selftests/mm/map_populate.c
113
ret = close(sock[0]);
tools/testing/selftests/mm/map_populate.c
116
parent_f(sock[1], smap, child);
tools/testing/selftests/mm/map_populate.c
121
ret = close(sock[1]);
tools/testing/selftests/mm/map_populate.c
124
return child_f(sock[0], smap, fileno(ftmp));
tools/testing/selftests/mm/map_populate.c
35
static void parent_f(int sock, unsigned long *smap, int child)
tools/testing/selftests/mm/map_populate.c
39
ret = read(sock, &status, sizeof(int));
tools/testing/selftests/mm/map_populate.c
46
ret = write(sock, &status, sizeof(int));
tools/testing/selftests/mm/map_populate.c
56
static int child_f(int sock, unsigned long *smap, int fd)
tools/testing/selftests/mm/map_populate.c
66
ret = write(sock, &buf, sizeof(int));
tools/testing/selftests/mm/map_populate.c
69
ret = read(sock, &buf, sizeof(int));
tools/testing/selftests/mm/map_populate.c
81
int sock[2], child, ret;
tools/testing/selftests/namespaces/nsid_test.c
837
int sock;
tools/testing/selftests/namespaces/nsid_test.c
851
sock = socket(AF_UNIX, SOCK_STREAM, 0);
tools/testing/selftests/namespaces/nsid_test.c
852
ASSERT_GE(sock, 0);
tools/testing/selftests/namespaces/nsid_test.c
856
ret = getsockopt(sock, SOL_SOCKET, SO_NETNS_COOKIE, &netns_cookie, &optlen);
tools/testing/selftests/namespaces/nsid_test.c
869
close(sock);
tools/testing/selftests/nci/nci_dev.c
698
int sock;
tools/testing/selftests/nci/nci_dev.c
701
sock = socket(AF_NFC, SOCK_SEQPACKET, NFC_SOCKPROTO_RAW);
tools/testing/selftests/nci/nci_dev.c
702
if (sock == -1)
tools/testing/selftests/nci/nci_dev.c
710
err = connect(sock, (struct sockaddr *)&addr, sizeof(addr));
tools/testing/selftests/nci/nci_dev.c
712
close(sock);
tools/testing/selftests/nci/nci_dev.c
716
return sock;
tools/testing/selftests/net/can/test_raw_filter.c
28
static int send_can_frames(int sock, int testcase)
tools/testing/selftests/net/can/test_raw_filter.c
342
setsockopt(self->sock, SOL_CAN_RAW, CAN_RAW_FILTER,
tools/testing/selftests/net/can/test_raw_filter.c
348
ret = send_can_frames(self->sock, variant->testcase);
tools/testing/selftests/net/can/test_raw_filter.c
36
if (write(sock, &frame, sizeof(frame)) < 0)
tools/testing/selftests/net/can/test_raw_filter.c
361
FD_SET(self->sock, &rdfs);
tools/testing/selftests/net/can/test_raw_filter.c
363
ret = select(self->sock + 1, &rdfs, NULL, NULL, &tv);
tools/testing/selftests/net/can/test_raw_filter.c
367
ret = FD_ISSET(self->sock, &rdfs);
tools/testing/selftests/net/can/test_raw_filter.c
375
ret = read(self->sock, &frame, sizeof(frame));
tools/testing/selftests/net/can/test_raw_filter.c
40
if (write(sock, &frame, sizeof(frame)) < 0)
tools/testing/selftests/net/can/test_raw_filter.c
44
if (write(sock, &frame, sizeof(frame)) < 0)
tools/testing/selftests/net/can/test_raw_filter.c
48
if (write(sock, &frame, sizeof(frame)) < 0)
tools/testing/selftests/net/can/test_raw_filter.c
59
int sock;
tools/testing/selftests/net/can/test_raw_filter.c
88
self->sock = s;
tools/testing/selftests/net/can/test_raw_filter.c
93
close(self->sock);
tools/testing/selftests/net/cmsg_sender.c
133
opt.sock.family = AF_INET;
tools/testing/selftests/net/cmsg_sender.c
136
opt.sock.family = AF_INET6;
tools/testing/selftests/net/cmsg_sender.c
140
opt.sock.proto = IPPROTO_UDP;
tools/testing/selftests/net/cmsg_sender.c
142
opt.sock.proto = IPPROTO_UDP;
tools/testing/selftests/net/cmsg_sender.c
145
opt.sock.proto = IPPROTO_ICMP;
tools/testing/selftests/net/cmsg_sender.c
147
opt.sock.type = SOCK_RAW;
tools/testing/selftests/net/cmsg_sender.c
271
if (opt.sock.family == AF_INET) {
tools/testing/selftests/net/cmsg_sender.c
427
if (opt.sock.family == AF_INET) {
tools/testing/selftests/net/cmsg_sender.c
487
hints.ai_family = opt.sock.family;
tools/testing/selftests/net/cmsg_sender.c
498
if (ai->ai_family == AF_INET6 && opt.sock.proto == IPPROTO_ICMP)
tools/testing/selftests/net/cmsg_sender.c
499
opt.sock.proto = IPPROTO_ICMPV6;
tools/testing/selftests/net/cmsg_sender.c
501
fd = socket(ai->ai_family, opt.sock.type, opt.sock.proto);
tools/testing/selftests/net/cmsg_sender.c
508
if (opt.sock.proto == IPPROTO_ICMP) {
tools/testing/selftests/net/cmsg_sender.c
511
} else if (opt.sock.proto == IPPROTO_ICMPV6) {
tools/testing/selftests/net/cmsg_sender.c
514
} else if (opt.sock.type == SOCK_RAW) {
tools/testing/selftests/net/cmsg_sender.c
519
sin6->sin6_port = htons(opt.sock.proto);
tools/testing/selftests/net/cmsg_sender.c
62
} sock;
tools/testing/selftests/net/cmsg_sender.c
81
.sock = {
tools/testing/selftests/net/fin_ack_lat.c
112
int sock;
tools/testing/selftests/net/fin_ack_lat.c
121
sock = socket(AF_INET, SOCK_STREAM, 0);
tools/testing/selftests/net/fin_ack_lat.c
122
if (sock < 0)
tools/testing/selftests/net/fin_ack_lat.c
125
if (setsockopt(sock, SOL_SOCKET, SO_REUSEADDR | SO_REUSEPORT,
tools/testing/selftests/net/fin_ack_lat.c
134
if (bind(sock, (struct sockaddr *)&address, sizeof(address)) < 0)
tools/testing/selftests/net/fin_ack_lat.c
137
if (listen(sock, 3) < 0)
tools/testing/selftests/net/fin_ack_lat.c
140
if (getsockname(sock, (struct sockaddr *)&laddr, &len) == -1)
tools/testing/selftests/net/fin_ack_lat.c
148
server(sock, laddr);
tools/testing/selftests/net/fin_ack_lat.c
30
int sock = 0;
tools/testing/selftests/net/fin_ack_lat.c
42
sock = socket(AF_INET, SOCK_STREAM, 0);
tools/testing/selftests/net/fin_ack_lat.c
43
if (sock < 0)
tools/testing/selftests/net/fin_ack_lat.c
48
if (setsockopt(sock, SOL_SOCKET, SO_LINGER, &sl, sizeof(sl)))
tools/testing/selftests/net/fin_ack_lat.c
51
if (setsockopt(sock, IPPROTO_TCP, TCP_NODELAY,
tools/testing/selftests/net/fin_ack_lat.c
61
if (connect(sock, (struct sockaddr *)&addr, sizeof(addr)) < 0)
tools/testing/selftests/net/fin_ack_lat.c
64
send(sock, &buffer, sizeof(buffer), 0);
tools/testing/selftests/net/fin_ack_lat.c
65
if (read(sock, &buffer, sizeof(buffer)) == -1)
tools/testing/selftests/net/fin_ack_lat.c
75
if (getsockname(sock, (struct sockaddr *)&laddr, &len) == -1)
tools/testing/selftests/net/fin_ack_lat.c
82
close(sock);
tools/testing/selftests/net/fin_ack_lat.c
86
static void server(int sock, struct sockaddr_in address)
tools/testing/selftests/net/fin_ack_lat.c
93
accepted = accept(sock, (struct sockaddr *)&address,
tools/testing/selftests/net/hwtstamp_config.c
110
sock = socket(AF_INET, SOCK_DGRAM, 0);
tools/testing/selftests/net/hwtstamp_config.c
111
if (sock < 0) {
tools/testing/selftests/net/hwtstamp_config.c
119
if (ioctl(sock, (argc == 2) ? SIOCGHWTSTAMP : SIOCSHWTSTAMP, &ifr)) {
tools/testing/selftests/net/hwtstamp_config.c
93
int sock;
tools/testing/selftests/net/icmp_rfc4884.c
591
check_rfc4884_offset(struct __test_metadata *_metadata, int sock,
tools/testing/selftests/net/icmp_rfc4884.c
609
ASSERT_EQ(poll_err(sock), 0);
tools/testing/selftests/net/icmp_rfc4884.c
611
recv = recvmsg(sock, &msg, MSG_ERRQUEUE);
tools/testing/selftests/net/ipsec.c
1330
static int netlink_sock_bind(int *sock, uint32_t *seq, int proto, uint32_t groups)
tools/testing/selftests/net/ipsec.c
1339
if (netlink_sock(sock, seq, proto)) {
tools/testing/selftests/net/ipsec.c
1344
if (bind(*sock, (struct sockaddr *)&snl, sizeof(snl)) < 0) {
tools/testing/selftests/net/ipsec.c
1350
if (getsockname(*sock, (struct sockaddr *)&snl, &addr_len) < 0) {
tools/testing/selftests/net/ipsec.c
1365
close(*sock);
tools/testing/selftests/net/ipsec.c
193
static int netlink_sock(int *sock, uint32_t *seq_nr, int proto)
tools/testing/selftests/net/ipsec.c
195
if (*sock > 0) {
tools/testing/selftests/net/ipsec.c
200
*sock = socket(AF_NETLINK, SOCK_RAW | SOCK_CLOEXEC, proto);
tools/testing/selftests/net/ipsec.c
201
if (*sock <= 0) {
tools/testing/selftests/net/ipsec.c
286
static int netlink_check_answer(int sock)
tools/testing/selftests/net/ipsec.c
294
if (recv(sock, &answer, sizeof(answer), 0) < 0) {
tools/testing/selftests/net/ipsec.c
309
static int veth_add(int sock, uint32_t seq, const char *peera, int ns_a,
tools/testing/selftests/net/ipsec.c
352
if (send(sock, &req, req.nh.nlmsg_len, 0) < 0) {
tools/testing/selftests/net/ipsec.c
356
return netlink_check_answer(sock);
tools/testing/selftests/net/ipsec.c
359
static int ip4_addr_set(int sock, uint32_t seq, const char *intf,
tools/testing/selftests/net/ipsec.c
394
if (send(sock, &req, req.nh.nlmsg_len, 0) < 0) {
tools/testing/selftests/net/ipsec.c
398
return netlink_check_answer(sock);
tools/testing/selftests/net/ipsec.c
401
static int link_set_up(int sock, uint32_t seq, const char *intf)
tools/testing/selftests/net/ipsec.c
420
if (send(sock, &req, req.nh.nlmsg_len, 0) < 0) {
tools/testing/selftests/net/ipsec.c
424
return netlink_check_answer(sock);
tools/testing/selftests/net/ipsec.c
427
static int ip4_route_set(int sock, uint32_t seq, const char *intf,
tools/testing/selftests/net/ipsec.c
458
if (send(sock, &req, req.nh.nlmsg_len, 0) < 0) {
tools/testing/selftests/net/ipsec.c
463
return netlink_check_answer(sock);
tools/testing/selftests/net/ipsec.c
624
unsigned int *server_port, int sock[2])
tools/testing/selftests/net/ipsec.c
630
sock[0] = socket(AF_INET, SOCK_DGRAM, 0);
tools/testing/selftests/net/ipsec.c
631
if (sock[0] < 0) {
tools/testing/selftests/net/ipsec.c
640
if (bind(sock[0], (struct sockaddr *)&server, s_len)) {
tools/testing/selftests/net/ipsec.c
645
if (getsockname(sock[0], (struct sockaddr *)&server, &s_len)) {
tools/testing/selftests/net/ipsec.c
652
if (setsockopt(sock[0], SOL_SOCKET, SO_RCVTIMEO, (const char *)&t, sizeof t)) {
tools/testing/selftests/net/ipsec.c
657
sock[1] = socket(AF_INET, SOCK_DGRAM, 0);
tools/testing/selftests/net/ipsec.c
658
if (sock[1] < 0) {
tools/testing/selftests/net/ipsec.c
666
close(sock[0]);
tools/testing/selftests/net/ipsec.c
670
static int udp_ping_send(int sock[2], in_addr_t dest_ip, unsigned int port,
tools/testing/selftests/net/ipsec.c
682
s_bytes = sendto(sock[1], buf, buf_len, 0, dest_addr, sizeof(server));
tools/testing/selftests/net/ipsec.c
691
r_bytes = recv(sock[0], sock_buf, buf_len, 0);
tools/testing/selftests/net/ipsec.c
707
static int udp_ping_reply(int sock[2], in_addr_t dest_ip, unsigned int port,
tools/testing/selftests/net/ipsec.c
719
r_bytes = recv(sock[0], sock_buf, buf_len, 0);
tools/testing/selftests/net/ipsec.c
734
s_bytes = sendto(sock[1], buf, buf_len, 0, dest_addr, sizeof(server));
tools/testing/selftests/net/ipsec.c
746
typedef int (*ping_f)(int sock[2], in_addr_t dest_ip, unsigned int port,
tools/testing/selftests/net/mptcp/mptcp_connect.c
270
static int do_ulp_so(int sock, const char *name)
tools/testing/selftests/net/mptcp/mptcp_connect.c
272
return setsockopt(sock, IPPROTO_TCP, TCP_ULP, name, strlen(name));
tools/testing/selftests/net/mptcp/mptcp_connect.c
276
static void sock_test_tcpulp(int sock, int proto, unsigned int line)
tools/testing/selftests/net/mptcp/mptcp_connect.c
280
int ret = getsockopt(sock, IPPROTO_TCP, TCP_ULP, buf, &buflen);
tools/testing/selftests/net/mptcp/mptcp_connect.c
288
ret = do_ulp_so(sock, "tls");
tools/testing/selftests/net/mptcp/mptcp_connect.c
292
ret = do_ulp_so(sock, "tls");
tools/testing/selftests/net/mptcp/mptcp_connect.c
297
ret = do_ulp_so(sock, "mptcp");
tools/testing/selftests/net/mptcp/mptcp_connect.c
309
int sock = -1;
tools/testing/selftests/net/mptcp/mptcp_connect.c
325
sock = socket(a->ai_family, a->ai_socktype, cfg_sock_proto);
tools/testing/selftests/net/mptcp/mptcp_connect.c
326
if (sock < 0)
tools/testing/selftests/net/mptcp/mptcp_connect.c
329
SOCK_TEST_TCPULP(sock, cfg_sock_proto);
tools/testing/selftests/net/mptcp/mptcp_connect.c
331
if (-1 == setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, &one,
tools/testing/selftests/net/mptcp/mptcp_connect.c
336
set_transparent(sock, pf);
tools/testing/selftests/net/mptcp/mptcp_connect.c
339
set_mptfo(sock);
tools/testing/selftests/net/mptcp/mptcp_connect.c
341
if (bind(sock, a->ai_addr, a->ai_addrlen) == 0)
tools/testing/selftests/net/mptcp/mptcp_connect.c
345
close(sock);
tools/testing/selftests/net/mptcp/mptcp_connect.c
346
sock = -1;
tools/testing/selftests/net/mptcp/mptcp_connect.c
351
if (sock < 0) {
tools/testing/selftests/net/mptcp/mptcp_connect.c
353
return sock;
tools/testing/selftests/net/mptcp/mptcp_connect.c
356
SOCK_TEST_TCPULP(sock, cfg_sock_proto);
tools/testing/selftests/net/mptcp/mptcp_connect.c
358
if (listen(sock, 20)) {
tools/testing/selftests/net/mptcp/mptcp_connect.c
360
close(sock);
tools/testing/selftests/net/mptcp/mptcp_connect.c
364
SOCK_TEST_TCPULP(sock, cfg_sock_proto);
tools/testing/selftests/net/mptcp/mptcp_connect.c
366
return sock;
tools/testing/selftests/net/mptcp/mptcp_connect.c
380
int sock = -1;
tools/testing/selftests/net/mptcp/mptcp_connect.c
386
sock = socket(a->ai_family, a->ai_socktype, proto);
tools/testing/selftests/net/mptcp/mptcp_connect.c
387
if (sock < 0) {
tools/testing/selftests/net/mptcp/mptcp_connect.c
392
SOCK_TEST_TCPULP(sock, proto);
tools/testing/selftests/net/mptcp/mptcp_connect.c
395
set_mark(sock, cfg_mark);
tools/testing/selftests/net/mptcp/mptcp_connect.c
402
syn_copied = sendto(sock, winfo->buf, winfo->len, MSG_FASTOPEN,
tools/testing/selftests/net/mptcp/mptcp_connect.c
412
if (connect(sock, a->ai_addr, a->ai_addrlen) == 0) {
tools/testing/selftests/net/mptcp/mptcp_connect.c
420
close(sock);
tools/testing/selftests/net/mptcp/mptcp_connect.c
421
sock = -1;
tools/testing/selftests/net/mptcp/mptcp_connect.c
425
if (sock != -1)
tools/testing/selftests/net/mptcp/mptcp_connect.c
426
SOCK_TEST_TCPULP(sock, proto);
tools/testing/selftests/net/mptcp/mptcp_connect.c
427
return sock;
tools/testing/selftests/net/mptcp/mptcp_inq.c
102
int sock = -1;
tools/testing/selftests/net/mptcp/mptcp_inq.c
118
sock = socket(a->ai_family, a->ai_socktype, proto_rx);
tools/testing/selftests/net/mptcp/mptcp_inq.c
119
if (sock < 0)
tools/testing/selftests/net/mptcp/mptcp_inq.c
122
if (-1 == setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, &one,
tools/testing/selftests/net/mptcp/mptcp_inq.c
126
if (bind(sock, a->ai_addr, a->ai_addrlen) == 0)
tools/testing/selftests/net/mptcp/mptcp_inq.c
130
close(sock);
tools/testing/selftests/net/mptcp/mptcp_inq.c
131
sock = -1;
tools/testing/selftests/net/mptcp/mptcp_inq.c
136
if (sock < 0)
tools/testing/selftests/net/mptcp/mptcp_inq.c
139
if (listen(sock, 20))
tools/testing/selftests/net/mptcp/mptcp_inq.c
142
return sock;
tools/testing/selftests/net/mptcp/mptcp_inq.c
153
int sock = -1;
tools/testing/selftests/net/mptcp/mptcp_inq.c
159
sock = socket(a->ai_family, a->ai_socktype, proto);
tools/testing/selftests/net/mptcp/mptcp_inq.c
160
if (sock < 0)
tools/testing/selftests/net/mptcp/mptcp_inq.c
163
if (connect(sock, a->ai_addr, a->ai_addrlen) == 0)
tools/testing/selftests/net/mptcp/mptcp_inq.c
169
if (sock < 0)
tools/testing/selftests/net/mptcp/mptcp_inq.c
173
return sock;
tools/testing/selftests/net/mptcp/mptcp_sockopt.c
189
int sock = -1;
tools/testing/selftests/net/mptcp/mptcp_sockopt.c
205
sock = socket(a->ai_family, a->ai_socktype, IPPROTO_MPTCP);
tools/testing/selftests/net/mptcp/mptcp_sockopt.c
206
if (sock < 0)
tools/testing/selftests/net/mptcp/mptcp_sockopt.c
209
if (-1 == setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, &one,
tools/testing/selftests/net/mptcp/mptcp_sockopt.c
213
if (bind(sock, a->ai_addr, a->ai_addrlen) == 0)
tools/testing/selftests/net/mptcp/mptcp_sockopt.c
217
close(sock);
tools/testing/selftests/net/mptcp/mptcp_sockopt.c
218
sock = -1;
tools/testing/selftests/net/mptcp/mptcp_sockopt.c
223
if (sock < 0)
tools/testing/selftests/net/mptcp/mptcp_sockopt.c
226
if (listen(sock, 20))
tools/testing/selftests/net/mptcp/mptcp_sockopt.c
229
return sock;
tools/testing/selftests/net/mptcp/mptcp_sockopt.c
240
int sock = -1;
tools/testing/selftests/net/mptcp/mptcp_sockopt.c
246
sock = socket(a->ai_family, a->ai_socktype, proto);
tools/testing/selftests/net/mptcp/mptcp_sockopt.c
247
if (sock < 0)
tools/testing/selftests/net/mptcp/mptcp_sockopt.c
250
if (connect(sock, a->ai_addr, a->ai_addrlen) == 0)
tools/testing/selftests/net/mptcp/mptcp_sockopt.c
256
if (sock < 0)
tools/testing/selftests/net/mptcp/mptcp_sockopt.c
260
return sock;
tools/testing/selftests/net/mptcp/pm_nl_ctl.c
1307
int sock;
tools/testing/selftests/net/mptcp/pm_nl_ctl.c
1328
sock = socket(family, SOCK_STREAM, IPPROTO_MPTCP);
tools/testing/selftests/net/mptcp/pm_nl_ctl.c
1329
if (sock < 0)
tools/testing/selftests/net/mptcp/pm_nl_ctl.c
1332
if (setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, &enable, sizeof(enable))) {
tools/testing/selftests/net/mptcp/pm_nl_ctl.c
1333
close(sock);
tools/testing/selftests/net/mptcp/pm_nl_ctl.c
1337
err = bind(sock, (struct sockaddr *)&addr,
tools/testing/selftests/net/mptcp/pm_nl_ctl.c
1341
if (err == 0 && listen(sock, 30) == 0)
tools/testing/selftests/net/mptcp/pm_nl_ctl.c
1344
close(sock);
tools/testing/selftests/net/netfilter/conntrack_dump_flush.c
101
static int conntrack_data_insert(struct mnl_socket *sock, struct nlmsghdr *nlh,
tools/testing/selftests/net/netfilter/conntrack_dump_flush.c
109
portid = mnl_socket_get_portid(sock);
tools/testing/selftests/net/netfilter/conntrack_dump_flush.c
119
if (mnl_socket_sendto(sock, nlh, nlh->nlmsg_len) < 0) {
tools/testing/selftests/net/netfilter/conntrack_dump_flush.c
124
ret = mnl_socket_recvfrom(sock, buf, MNL_SOCKET_BUFFER_SIZE);
tools/testing/selftests/net/netfilter/conntrack_dump_flush.c
145
static int conntrack_data_generate_v4(struct mnl_socket *sock, uint32_t src_ip,
tools/testing/selftests/net/netfilter/conntrack_dump_flush.c
174
return conntrack_data_insert(sock, nlh, zone);
tools/testing/selftests/net/netfilter/conntrack_dump_flush.c
177
static int conntrack_data_generate_v6(struct mnl_socket *sock,
tools/testing/selftests/net/netfilter/conntrack_dump_flush.c
210
return conntrack_data_insert(sock, nlh, zone);
tools/testing/selftests/net/netfilter/conntrack_dump_flush.c
219
static int conntracK_count_zone(struct mnl_socket *sock, uint16_t zone)
tools/testing/selftests/net/netfilter/conntrack_dump_flush.c
228
portid = mnl_socket_get_portid(sock);
tools/testing/selftests/net/netfilter/conntrack_dump_flush.c
242
ret = mnl_socket_sendto(sock, nlh, nlh->nlmsg_len);
tools/testing/selftests/net/netfilter/conntrack_dump_flush.c
249
ret = mnl_socket_recvfrom(sock, buf, MNL_SOCKET_BUFFER_SIZE);
tools/testing/selftests/net/netfilter/conntrack_dump_flush.c
256
ret = mnl_socket_recvfrom(sock, buf, MNL_SOCKET_BUFFER_SIZE);
tools/testing/selftests/net/netfilter/conntrack_dump_flush.c
266
static int conntrack_flush_zone(struct mnl_socket *sock, uint16_t zone)
tools/testing/selftests/net/netfilter/conntrack_dump_flush.c
275
portid = mnl_socket_get_portid(sock);
tools/testing/selftests/net/netfilter/conntrack_dump_flush.c
289
ret = mnl_socket_sendto(sock, nlh, nlh->nlmsg_len);
tools/testing/selftests/net/netfilter/conntrack_dump_flush.c
295
ret = mnl_socket_recvfrom(sock, buf, MNL_SOCKET_BUFFER_SIZE);
tools/testing/selftests/net/netfilter/conntrack_dump_flush.c
312
struct mnl_socket *sock;
tools/testing/selftests/net/netfilter/conntrack_dump_flush.c
320
self->sock = mnl_socket_open(NETLINK_NETFILTER);
tools/testing/selftests/net/netfilter/conntrack_dump_flush.c
321
if (!self->sock) {
tools/testing/selftests/net/netfilter/conntrack_dump_flush.c
326
ret = mnl_socket_bind(self->sock, 0, MNL_SOCKET_AUTOPID);
tools/testing/selftests/net/netfilter/conntrack_dump_flush.c
329
ret = conntracK_count_zone(self->sock, TEST_ZONE_ID);
tools/testing/selftests/net/netfilter/conntrack_dump_flush.c
335
ret = conntrack_data_generate_v4(self->sock, 0xf0f0f0f0, 0xf1f1f1f1,
tools/testing/selftests/net/netfilter/conntrack_dump_flush.c
338
ret = conntrack_data_generate_v4(self->sock, 0xf2f2f2f2, 0xf3f3f3f3,
tools/testing/selftests/net/netfilter/conntrack_dump_flush.c
341
ret = conntrack_data_generate_v4(self->sock, 0xf4f4f4f4, 0xf5f5f5f5,
tools/testing/selftests/net/netfilter/conntrack_dump_flush.c
344
ret = conntrack_data_generate_v4(self->sock, 0xf6f6f6f6, 0xf7f7f7f7,
tools/testing/selftests/net/netfilter/conntrack_dump_flush.c
364
ret = conntrack_data_generate_v6(self->sock, src, dst,
tools/testing/selftests/net/netfilter/conntrack_dump_flush.c
383
ret = conntrack_data_generate_v6(self->sock, src, dst,
tools/testing/selftests/net/netfilter/conntrack_dump_flush.c
402
ret = conntrack_data_generate_v6(self->sock, src, dst,
tools/testing/selftests/net/netfilter/conntrack_dump_flush.c
422
ret = conntrack_data_generate_v6(self->sock, src, dst,
tools/testing/selftests/net/netfilter/conntrack_dump_flush.c
426
ret = conntracK_count_zone(self->sock, TEST_ZONE_ID);
tools/testing/selftests/net/netfilter/conntrack_dump_flush.c
440
ret = conntracK_count_zone(self->sock, TEST_ZONE_ID);
tools/testing/selftests/net/netfilter/conntrack_dump_flush.c
448
ret = conntrack_flush_zone(self->sock, TEST_ZONE_ID);
tools/testing/selftests/net/netfilter/conntrack_dump_flush.c
450
ret = conntracK_count_zone(self->sock, TEST_ZONE_ID);
tools/testing/selftests/net/netfilter/conntrack_dump_flush.c
452
ret = conntracK_count_zone(self->sock, TEST_ZONE_ID + 1);
tools/testing/selftests/net/netfilter/conntrack_dump_flush.c
454
ret = conntracK_count_zone(self->sock, TEST_ZONE_ID + 2);
tools/testing/selftests/net/netfilter/conntrack_dump_flush.c
456
ret = conntracK_count_zone(self->sock, NF_CT_DEFAULT_ZONE_ID);
tools/testing/selftests/net/netfilter/conntrack_dump_flush.c
464
ret = conntrack_flush_zone(self->sock, NF_CT_DEFAULT_ZONE_ID);
tools/testing/selftests/net/netfilter/conntrack_dump_flush.c
466
ret = conntracK_count_zone(self->sock, TEST_ZONE_ID);
tools/testing/selftests/net/netfilter/conntrack_dump_flush.c
468
ret = conntracK_count_zone(self->sock, TEST_ZONE_ID + 1);
tools/testing/selftests/net/netfilter/conntrack_dump_flush.c
470
ret = conntracK_count_zone(self->sock, TEST_ZONE_ID + 2);
tools/testing/selftests/net/netfilter/conntrack_dump_flush.c
472
ret = conntracK_count_zone(self->sock, NF_CT_DEFAULT_ZONE_ID);
tools/testing/selftests/net/ovpn/ovpn-cli.c
1553
static int ovpn_get_mcast_id(struct nl_sock *sock, const char *family,
tools/testing/selftests/net/ovpn/ovpn-cli.c
1574
ctrlid = genl_ctrl_resolve(sock, "nlctrl");
tools/testing/selftests/net/ovpn/ovpn-cli.c
1581
ret = nl_send_auto_complete(sock, msg);
tools/testing/selftests/net/ovpn/ovpn-cli.c
1592
nl_recvmsgs(sock, cb);
tools/testing/selftests/net/ovpn/ovpn-cli.c
1605
struct nl_sock *sock;
tools/testing/selftests/net/ovpn/ovpn-cli.c
1609
sock = nl_socket_alloc();
tools/testing/selftests/net/ovpn/ovpn-cli.c
1610
if (!sock) {
tools/testing/selftests/net/ovpn/ovpn-cli.c
1616
nl_socket_set_buffer_size(sock, 8192, 8192);
tools/testing/selftests/net/ovpn/ovpn-cli.c
1618
ret = genl_connect(sock);
tools/testing/selftests/net/ovpn/ovpn-cli.c
1625
mcid = ovpn_get_mcast_id(sock, OVPN_FAMILY_NAME, OVPN_MCGRP_PEERS);
tools/testing/selftests/net/ovpn/ovpn-cli.c
1632
ret = nl_socket_add_membership(sock, mcid);
tools/testing/selftests/net/ovpn/ovpn-cli.c
1645
int err = nl_recvmsgs(sock, cb);
tools/testing/selftests/net/ovpn/ovpn-cli.c
1658
nl_socket_free(sock);
tools/testing/selftests/net/psock_tpacket.c
101
int ret, sock = socket(PF_PACKET, SOCK_RAW, 0);
tools/testing/selftests/net/psock_tpacket.c
102
if (sock == -1) {
tools/testing/selftests/net/psock_tpacket.c
107
ret = setsockopt(sock, SOL_PACKET, PACKET_VERSION, &ver, sizeof(ver));
tools/testing/selftests/net/psock_tpacket.c
113
return sock;
tools/testing/selftests/net/psock_tpacket.c
220
static void walk_v1_v2_rx(int sock, struct ring *ring)
tools/testing/selftests/net/psock_tpacket.c
232
pfd.fd = sock;
tools/testing/selftests/net/psock_tpacket.c
342
static void __v1_v2_set_packet_loss_discard(int sock)
tools/testing/selftests/net/psock_tpacket.c
346
ret = setsockopt(sock, SOL_PACKET, PACKET_LOSS, (void *) &discard,
tools/testing/selftests/net/psock_tpacket.c
369
static void walk_tx(int sock, struct ring *ring)
tools/testing/selftests/net/psock_tpacket.c
411
pfd.fd = sock;
tools/testing/selftests/net/psock_tpacket.c
473
ret = sendto(sock, NULL, 0, 0, NULL, 0);
tools/testing/selftests/net/psock_tpacket.c
500
static void walk_v1_v2(int sock, struct ring *ring)
tools/testing/selftests/net/psock_tpacket.c
503
walk_v1_v2_rx(sock, ring);
tools/testing/selftests/net/psock_tpacket.c
505
walk_tx(sock, ring);
tools/testing/selftests/net/psock_tpacket.c
581
static void walk_v3_rx(int sock, struct ring *ring)
tools/testing/selftests/net/psock_tpacket.c
593
pfd.fd = sock;
tools/testing/selftests/net/psock_tpacket.c
622
static void walk_v3(int sock, struct ring *ring)
tools/testing/selftests/net/psock_tpacket.c
625
walk_v3_rx(sock, ring);
tools/testing/selftests/net/psock_tpacket.c
627
walk_tx(sock, ring);
tools/testing/selftests/net/psock_tpacket.c
667
static void setup_ring(int sock, struct ring *ring, int version, int type)
tools/testing/selftests/net/psock_tpacket.c
679
__v1_v2_set_packet_loss_discard(sock);
tools/testing/selftests/net/psock_tpacket.c
681
ret = setsockopt(sock, SOL_PACKET, type, &ring->req,
tools/testing/selftests/net/psock_tpacket.c
687
ret = setsockopt(sock, SOL_PACKET, type, &ring->req3,
tools/testing/selftests/net/psock_tpacket.c
708
static void mmap_ring(int sock, struct ring *ring)
tools/testing/selftests/net/psock_tpacket.c
71
void (*walk)(int sock, struct ring *ring);
tools/testing/selftests/net/psock_tpacket.c
713
MAP_SHARED | MAP_LOCKED | MAP_POPULATE, sock, 0);
tools/testing/selftests/net/psock_tpacket.c
726
static void bind_ring(int sock, struct ring *ring)
tools/testing/selftests/net/psock_tpacket.c
730
pair_udp_setfilter(sock);
tools/testing/selftests/net/psock_tpacket.c
739
ret = bind(sock, (struct sockaddr *) &ring->ll, sizeof(ring->ll));
tools/testing/selftests/net/psock_tpacket.c
746
static void walk_ring(int sock, struct ring *ring)
tools/testing/selftests/net/psock_tpacket.c
748
ring->walk(sock, ring);
tools/testing/selftests/net/psock_tpacket.c
751
static void unmap_ring(int sock, struct ring *ring)
tools/testing/selftests/net/psock_tpacket.c
804
int sock;
tools/testing/selftests/net/psock_tpacket.c
819
sock = pfsocket(version);
tools/testing/selftests/net/psock_tpacket.c
821
setup_ring(sock, &ring, version, type);
tools/testing/selftests/net/psock_tpacket.c
822
mmap_ring(sock, &ring);
tools/testing/selftests/net/psock_tpacket.c
823
bind_ring(sock, &ring);
tools/testing/selftests/net/psock_tpacket.c
824
walk_ring(sock, &ring);
tools/testing/selftests/net/psock_tpacket.c
825
unmap_ring(sock, &ring);
tools/testing/selftests/net/psock_tpacket.c
826
close(sock);
tools/testing/selftests/net/tcp_ao/lib/netlink.c
134
static int __add_veth(int sock, uint32_t seq, const char *name,
tools/testing/selftests/net/tcp_ao/lib/netlink.c
16
static int netlink_sock(int *sock, uint32_t *seq_nr, int proto)
tools/testing/selftests/net/tcp_ao/lib/netlink.c
177
if (send(sock, &req, req.nh.nlmsg_len, 0) < 0) {
tools/testing/selftests/net/tcp_ao/lib/netlink.c
18
if (*sock > 0) {
tools/testing/selftests/net/tcp_ao/lib/netlink.c
181
return netlink_check_answer(sock, false);
tools/testing/selftests/net/tcp_ao/lib/netlink.c
197
static int __ip_addr_add(int sock, uint32_t seq, const char *intf,
tools/testing/selftests/net/tcp_ao/lib/netlink.c
222
if (send(sock, &req, req.nh.nlmsg_len, 0) < 0) {
tools/testing/selftests/net/tcp_ao/lib/netlink.c
226
return netlink_check_answer(sock, true);
tools/testing/selftests/net/tcp_ao/lib/netlink.c
23
*sock = socket(AF_NETLINK, SOCK_RAW | SOCK_CLOEXEC, proto);
tools/testing/selftests/net/tcp_ao/lib/netlink.c
24
if (*sock < 0) {
tools/testing/selftests/net/tcp_ao/lib/netlink.c
245
static int __ip_route_add(int sock, uint32_t seq, const char *intf, int family,
tools/testing/selftests/net/tcp_ao/lib/netlink.c
278
if (send(sock, &req, req.nh.nlmsg_len, 0) < 0) {
tools/testing/selftests/net/tcp_ao/lib/netlink.c
283
return netlink_check_answer(sock, true);
tools/testing/selftests/net/tcp_ao/lib/netlink.c
308
static int __link_set_up(int sock, uint32_t seq, const char *intf)
tools/testing/selftests/net/tcp_ao/lib/netlink.c
327
if (send(sock, &req, req.nh.nlmsg_len, 0) < 0) {
tools/testing/selftests/net/tcp_ao/lib/netlink.c
331
return netlink_check_answer(sock, false);
tools/testing/selftests/net/tcp_ao/lib/netlink.c
34
static int netlink_check_answer(int sock, bool quite)
tools/testing/selftests/net/tcp_ao/lib/netlink.c
348
static int __add_vrf(int sock, uint32_t seq, const char *name,
tools/testing/selftests/net/tcp_ao/lib/netlink.c
395
if (send(sock, &req, req.nh.nlmsg_len, 0) < 0) {
tools/testing/selftests/net/tcp_ao/lib/netlink.c
399
return netlink_check_answer(sock, true);
tools/testing/selftests/net/tcp_ao/lib/netlink.c
42
if (recv(sock, &answer, sizeof(answer), 0) < 0) {
tools/testing/selftests/net/timestamping.c
134
static void sendpacket(int sock, struct sockaddr *addr, socklen_t addr_len, int ptpv2)
tools/testing/selftests/net/timestamping.c
141
res = sendto(sock, sync_p, sync_len, 0, addr, addr_len);
tools/testing/selftests/net/timestamping.c
153
int sock, int recvmsg_flags,
tools/testing/selftests/net/timestamping.c
260
if (ioctl(sock, SIOCGSTAMP, &tv))
tools/testing/selftests/net/timestamping.c
268
if (ioctl(sock, SIOCGSTAMPNS, &ts))
tools/testing/selftests/net/timestamping.c
277
static void recvpacket(int sock, int recvmsg_flags,
tools/testing/selftests/net/timestamping.c
300
res = recvmsg(sock, &msg, recvmsg_flags|MSG_DONTWAIT);
tools/testing/selftests/net/timestamping.c
308
sock, recvmsg_flags,
tools/testing/selftests/net/timestamping.c
324
int sock;
tools/testing/selftests/net/timestamping.c
383
sock = socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP);
tools/testing/selftests/net/timestamping.c
384
if (sock < 0)
tools/testing/selftests/net/timestamping.c
389
if (ioctl(sock, SIOCGIFADDR, &device) < 0)
tools/testing/selftests/net/timestamping.c
404
if (ioctl(sock, SIOCSHWTSTAMP, &hwtstamp) < 0) {
tools/testing/selftests/net/timestamping.c
420
if (bind(sock,
tools/testing/selftests/net/timestamping.c
425
if (setsockopt(sock, SOL_SOCKET, SO_BINDTODEVICE, interface, if_len))
tools/testing/selftests/net/timestamping.c
434
if (setsockopt(sock, IPPROTO_IP, IP_MULTICAST_IF,
tools/testing/selftests/net/timestamping.c
439
if (setsockopt(sock, IPPROTO_IP, IP_ADD_MEMBERSHIP,
tools/testing/selftests/net/timestamping.c
443
if (setsockopt(sock, IPPROTO_IP, IP_MULTICAST_LOOP,
tools/testing/selftests/net/timestamping.c
450
setsockopt(sock, SOL_SOCKET, SO_TIMESTAMP,
tools/testing/selftests/net/timestamping.c
455
setsockopt(sock, SOL_SOCKET, SO_TIMESTAMPNS,
tools/testing/selftests/net/timestamping.c
460
setsockopt(sock, SOL_SOCKET, SO_TIMESTAMPING, &so_timestamping,
tools/testing/selftests/net/timestamping.c
465
if (setsockopt(sock, SOL_IP, IP_PKTINFO,
tools/testing/selftests/net/timestamping.c
471
if (getsockopt(sock, SOL_SOCKET, SO_TIMESTAMP, &val, &len) < 0)
tools/testing/selftests/net/timestamping.c
476
if (getsockopt(sock, SOL_SOCKET, SO_TIMESTAMPNS, &val, &len) < 0)
tools/testing/selftests/net/timestamping.c
483
if (getsockopt(sock, SOL_SOCKET, SO_TIMESTAMPING, &so_timestamping_get,
tools/testing/selftests/net/timestamping.c
517
FD_SET(sock, &readfs);
tools/testing/selftests/net/timestamping.c
518
FD_SET(sock, &errorfs);
tools/testing/selftests/net/timestamping.c
522
res = select(sock + 1, &readfs, 0, &errorfs, &delta);
tools/testing/selftests/net/timestamping.c
529
if (FD_ISSET(sock, &readfs))
tools/testing/selftests/net/timestamping.c
531
if (FD_ISSET(sock, &errorfs))
tools/testing/selftests/net/timestamping.c
533
recvpacket(sock, 0,
tools/testing/selftests/net/timestamping.c
536
recvpacket(sock, MSG_ERRQUEUE,
tools/testing/selftests/net/timestamping.c
542
sendpacket(sock,
tools/testing/selftests/net/tun.c
548
int fd, sock;
tools/testing/selftests/net/tun.c
770
self->sock = udp_socket_open(&ssa, false, true, &dsa);
tools/testing/selftests/net/tun.c
771
ASSERT_GE(self->sock, 0);
tools/testing/selftests/net/tun.c
778
if (self->sock != -1)
tools/testing/selftests/net/tun.c
779
close(self->sock);
tools/testing/selftests/net/tun.c
855
int len, total_len = 0, socket = self->sock;
tools/testing/selftests/net/tun.c
885
return send_gso_udp_msg(self->sock, &dsa, buf, payload_len, gso_size);
tools/testing/selftests/sched_ext/non_scx_kfunc_deny.bpf.c
15
__u32 BPF_PROG(tcp_ca_ssthresh, struct sock *sk)
tools/testing/selftests/sched_ext/non_scx_kfunc_deny.bpf.c
26
void BPF_PROG(tcp_ca_cong_avoid, struct sock *sk, __u32 ack, __u32 acked) {}
tools/testing/selftests/sched_ext/non_scx_kfunc_deny.bpf.c
29
__u32 BPF_PROG(tcp_ca_undo_cwnd, struct sock *sk) { return 2; }
tools/usb/usbip/src/usbipd.c
386
int sock;
tools/usb/usbip/src/usbipd.c
390
sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
tools/usb/usbip/src/usbipd.c
391
if (sock < 0) {
tools/usb/usbip/src/usbipd.c
397
usbip_net_set_reuseaddr(sock);
tools/usb/usbip/src/usbipd.c
398
usbip_net_set_nodelay(sock);
tools/usb/usbip/src/usbipd.c
401
usbip_net_set_v6only(sock);
tools/usb/usbip/src/usbipd.c
403
ret = bind(sock, ai->ai_addr, ai->ai_addrlen);
tools/usb/usbip/src/usbipd.c
407
close(sock);
tools/usb/usbip/src/usbipd.c
411
ret = listen(sock, SOMAXCONN);
tools/usb/usbip/src/usbipd.c
415
close(sock);
tools/usb/usbip/src/usbipd.c
420
sockfdlist[nsockfd++] = sock;
tools/virtio/vhost_net_test.c
106
dev->sock = socket(AF_PACKET, SOCK_RAW, htons(TEST_PTYPE));
tools/virtio/vhost_net_test.c
107
assert(dev->sock != -1);
tools/virtio/vhost_net_test.c
110
assert(ioctl(dev->sock, SIOCGIFINDEX, &ifr) >= 0);
tools/virtio/vhost_net_test.c
115
assert(ioctl(dev->sock, SIOCGIFFLAGS, &ifr) >= 0);
tools/virtio/vhost_net_test.c
117
assert(ioctl(dev->sock, SIOCSIFFLAGS, &ifr) >= 0);
tools/virtio/vhost_net_test.c
124
int sockfd = dev->sock;
tools/virtio/vhost_net_test.c
313
n = recvfrom(dev->sock, dev->res_buf, TEST_BUF_LEN, 0, NULL, NULL);
tools/virtio/vhost_net_test.c
55
int sock;