Symbol: sock
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
1100
struct sock *sk = areq->sk;
crypto/af_alg.c
1126
struct sock *sk = areq->sk;
crypto/af_alg.c
1146
__poll_t af_alg_poll(struct file *file, struct socket *sock,
crypto/af_alg.c
1149
struct sock *sk = sock->sk;
crypto/af_alg.c
1154
sock_poll_wait(file, sock, wait);
crypto/af_alg.c
1174
struct af_alg_async_req *af_alg_alloc_areq(struct sock *sk,
crypto/af_alg.c
1213
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
357
static int alg_setsockopt(struct socket *sock, int level, int optname,
crypto/af_alg.c
360
struct sock *sk = sock->sk;
crypto/af_alg.c
378
if (sock->state == SS_CONNECTED)
crypto/af_alg.c
389
if (sock->state == SS_CONNECTED)
crypto/af_alg.c
396
if (sock->state == SS_CONNECTED)
crypto/af_alg.c
410
int af_alg_accept(struct sock *sk, struct socket *newsock,
crypto/af_alg.c
415
struct sock *sk2;
crypto/af_alg.c
472
static int alg_accept(struct socket *sock, struct socket *newsock,
crypto/af_alg.c
475
return af_alg_accept(sock->sk, newsock, arg);
crypto/af_alg.c
498
static void alg_sock_destruct(struct sock *sk)
crypto/af_alg.c
505
static int alg_create(struct net *net, struct socket *sock, int protocol,
crypto/af_alg.c
508
struct sock *sk;
crypto/af_alg.c
511
if (sock->type != SOCK_SEQPACKET)
crypto/af_alg.c
521
sock->ops = &alg_proto_ops;
crypto/af_alg.c
522
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
232
static int aead_recvmsg(struct socket *sock, struct msghdr *msg,
crypto/algif_aead.c
235
struct sock *sk = sock->sk;
crypto/algif_aead.c
240
int err = _aead_recvmsg(sock, msg, ignored, flags);
crypto/algif_aead.c
284
static int aead_check_key(struct socket *sock)
crypto/algif_aead.c
287
struct sock *psk;
crypto/algif_aead.c
290
struct sock *sk = sock->sk;
crypto/algif_aead.c
319
static int aead_sendmsg_nokey(struct socket *sock, struct msghdr *msg,
crypto/algif_aead.c
324
err = aead_check_key(sock);
crypto/algif_aead.c
328
return aead_sendmsg(sock, msg, size);
crypto/algif_aead.c
331
static int aead_recvmsg_nokey(struct socket *sock, struct msghdr *msg,
crypto/algif_aead.c
336
err = aead_check_key(sock);
crypto/algif_aead.c
340
return aead_recvmsg(sock, msg, ignored, flags);
crypto/algif_aead.c
37
static inline bool aead_sufficient_data(struct sock *sk)
crypto/algif_aead.c
382
static void aead_sock_destruct(struct sock *sk)
crypto/algif_aead.c
386
struct sock *psk = ask->parent;
crypto/algif_aead.c
397
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
428
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
101
struct sock *psk = ask->parent;
crypto/algif_skcipher.c
213
static int skcipher_recvmsg(struct socket *sock, struct msghdr *msg,
crypto/algif_skcipher.c
216
struct sock *sk = sock->sk;
crypto/algif_skcipher.c
221
int err = _skcipher_recvmsg(sock, msg, ignored, flags);
crypto/algif_skcipher.c
265
static int skcipher_check_key(struct socket *sock)
crypto/algif_skcipher.c
268
struct sock *psk;
crypto/algif_skcipher.c
271
struct sock *sk = sock->sk;
crypto/algif_skcipher.c
300
static int skcipher_sendmsg_nokey(struct socket *sock, struct msghdr *msg,
crypto/algif_skcipher.c
305
err = skcipher_check_key(sock);
crypto/algif_skcipher.c
309
return skcipher_sendmsg(sock, msg, size);
crypto/algif_skcipher.c
312
static int skcipher_recvmsg_nokey(struct socket *sock, struct msghdr *msg,
crypto/algif_skcipher.c
317
err = skcipher_check_key(sock);
crypto/algif_skcipher.c
321
return skcipher_recvmsg(sock, msg, ignored, flags);
crypto/algif_skcipher.c
358
static void skcipher_sock_destruct(struct sock *sk)
crypto/algif_skcipher.c
362
struct sock *psk = ask->parent;
crypto/algif_skcipher.c
37
static int skcipher_sendmsg(struct socket *sock, struct msghdr *msg,
crypto/algif_skcipher.c
374
static int skcipher_accept_parent_nokey(void *private, struct sock *sk)
crypto/algif_skcipher.c
40
struct sock *sk = sock->sk;
crypto/algif_skcipher.c
405
static int skcipher_accept_parent(void *private, struct 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
85
struct sock *sk = areq->sk;
crypto/algif_skcipher.c
96
static int _skcipher_recvmsg(struct socket *sock, struct msghdr *msg,
crypto/algif_skcipher.c
99
struct sock *sk = sock->sk;
drivers/atm/atmtcp.c
161
struct sock *s;
drivers/atm/atmtcp.c
267
struct sock *s;
drivers/atm/atmtcp.c
464
static int atmtcp_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
drivers/atm/atmtcp.c
467
struct atm_vcc *vcc = ATM_SD(sock);
drivers/atm/atmtcp.c
479
sock->state = SS_CONNECTED;
drivers/atm/eni.c
2084
struct sock *s;
drivers/atm/he.c
332
struct sock *s;
drivers/atm/idt77252.c
724
struct sock *sk = sk_atm(vcc);
drivers/atm/iphase.c
1800
struct sock *sk = sk_atm(vcc);
drivers/atm/solos-pci.c
901
struct sock *s;
drivers/block/drbd/drbd_int.h
1011
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
5065
struct drbd_socket *sock;
drivers/block/drbd/drbd_receiver.c
5068
sock = &connection->data;
drivers/block/drbd/drbd_receiver.c
5069
p = conn_prepare_command(connection, sock);
drivers/block/drbd/drbd_receiver.c
5076
return conn_send_command(connection, sock, P_CONNECTION_FEATURES, sizeof(*p), NULL, 0);
drivers/block/drbd/drbd_receiver.c
5170
struct drbd_socket *sock;
drivers/block/drbd/drbd_receiver.c
5209
sock = &connection->data;
drivers/block/drbd/drbd_receiver.c
5210
if (!conn_prepare_command(connection, sock)) {
drivers/block/drbd/drbd_receiver.c
5214
rv = !conn_send_command(connection, sock, P_AUTH_CHALLENGE, 0,
drivers/block/drbd/drbd_receiver.c
5276
if (!conn_prepare_command(connection, sock)) {
drivers/block/drbd/drbd_receiver.c
5280
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
struct socket *sock;
drivers/block/nbd.c
1254
sock = nbd_get_socket(nbd, arg, &err);
drivers/block/nbd.c
1255
if (!sock)
drivers/block/nbd.c
1296
nsock->sock = sock;
drivers/block/nbd.c
1309
sockfd_put(sock);
drivers/block/nbd.c
1316
struct socket *sock, *old;
drivers/block/nbd.c
1321
sock = nbd_get_socket(nbd, arg, &err);
drivers/block/nbd.c
1322
if (!sock)
drivers/block/nbd.c
1327
sockfd_put(sock);
drivers/block/nbd.c
1342
sk_set_memalloc(sock->sk);
drivers/block/nbd.c
1344
sock->sk->sk_sndtimeo = nbd->tag_set.timeout;
drivers/block/nbd.c
1347
old = nsock->sock;
drivers/block/nbd.c
1349
nsock->sock = sock;
drivers/block/nbd.c
1370
sockfd_put(sock);
drivers/block/nbd.c
1455
sockfd_put(config->socks[i]->sock);
drivers/block/nbd.c
1528
sk_set_memalloc(config->socks[i]->sock->sk);
drivers/block/nbd.c
1530
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
214
static int rxe_udp_encap_recv(struct sock *sk, struct sk_buff *skb)
drivers/infiniband/sw/rxe/rxe_net.c
258
struct socket *sock;
drivers/infiniband/sw/rxe/rxe_net.c
272
err = udp_sock_create(net, &udp_cfg, &sock);
drivers/infiniband/sw/rxe/rxe_net.c
275
rxe_reclassify_recv_socket(sock);
drivers/infiniband/sw/rxe/rxe_net.c
281
setup_udp_tunnel_sock(net, sock, &tnl_cfg);
drivers/infiniband/sw/rxe/rxe_net.c
283
return sock;
drivers/infiniband/sw/rxe/rxe_net.c
42
static inline void rxe_reclassify_recv_socket(struct socket *sock)
drivers/infiniband/sw/rxe/rxe_net.c
444
struct sock *sk = pkt->qp->sk->sk;
drivers/infiniband/sw/rxe/rxe_net.c
45
struct sock *sk = sock->sk;
drivers/infiniband/sw/rxe/rxe_net.c
465
struct sock *sk = pkt->qp->sk->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
526
void siw_qp_llp_data_ready(struct sock *sk);
drivers/infiniband/sw/siw/siw.h
527
void siw_qp_llp_write_space(struct sock *sk);
drivers/infiniband/sw/siw/siw_cm.c
1008
new_cep->sock = new_s;
drivers/infiniband/sw/siw/siw_cm.c
1053
new_cep->sock = NULL;
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
1107
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
1230
if (cep->sock) {
drivers/infiniband/sw/siw/siw_cm.c
1231
siw_socket_disassoc(cep->sock);
drivers/infiniband/sw/siw/siw_cm.c
1232
sock_release(cep->sock);
drivers/infiniband/sw/siw/siw_cm.c
1233
cep->sock = NULL;
drivers/infiniband/sw/siw/siw_cm.c
1279
static void siw_cm_llp_data_ready(struct sock *sk)
drivers/infiniband/sw/siw/siw_cm.c
1315
static void siw_cm_llp_write_space(struct sock *sk)
drivers/infiniband/sw/siw/siw_cm.c
1323
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
1334
static void siw_cm_llp_state_change(struct sock *sk)
drivers/infiniband/sw/siw/siw_cm.c
1337
void (*orig_state_change)(struct sock *s);
drivers/infiniband/sw/siw/siw_cm.c
151
static void siw_rtr_data_ready(struct sock *sk)
drivers/infiniband/sw/siw/siw_cm.c
1564
cep->sock = NULL;
drivers/infiniband/sw/siw/siw_cm.c
1700
qp_attrs.sk = cep->sock;
drivers/infiniband/sw/siw/siw_cm.c
189
struct sock *sk = cep->sock->sk;
drivers/infiniband/sw/siw/siw_cm.c
1940
cep->sock = NULL;
drivers/infiniband/sw/siw/siw_cm.c
1970
if (cep->sock) {
drivers/infiniband/sw/siw/siw_cm.c
1971
siw_socket_disassoc(cep->sock);
drivers/infiniband/sw/siw/siw_cm.c
1972
sock_release(cep->sock);
drivers/infiniband/sw/siw/siw_cm.c
1973
cep->sock = NULL;
drivers/infiniband/sw/siw/siw_cm.c
199
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
401
getname_local(cep->sock, &event.local_addr);
drivers/infiniband/sw/siw/siw_cm.c
402
getname_peer(cep->sock, &event.remote_addr);
drivers/infiniband/sw/siw/siw_cm.c
421
if (cep->sock) {
drivers/infiniband/sw/siw/siw_cm.c
422
siw_socket_disassoc(cep->sock);
drivers/infiniband/sw/siw/siw_cm.c
423
sock_release(cep->sock);
drivers/infiniband/sw/siw/siw_cm.c
424
cep->sock = NULL;
drivers/infiniband/sw/siw/siw_cm.c
516
struct socket *s = cep->sock;
drivers/infiniband/sw/siw/siw_cm.c
564
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
925
qp_attrs.sk = cep->sock;
drivers/infiniband/sw/siw/siw_cm.c
971
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/isdn/mISDN/socket.c
106
mISDN_sock_recvmsg(struct socket *sock, struct msghdr *msg, size_t len,
drivers/isdn/mISDN/socket.c
110
struct sock *sk = sock->sk;
drivers/isdn/mISDN/socket.c
167
mISDN_sock_sendmsg(struct socket *sock, struct msghdr *msg, size_t len)
drivers/isdn/mISDN/socket.c
169
struct sock *sk = sock->sk;
drivers/isdn/mISDN/socket.c
236
data_sock_release(struct socket *sock)
drivers/isdn/mISDN/socket.c
238
struct sock *sk = sock->sk;
drivers/isdn/mISDN/socket.c
241
printk(KERN_DEBUG "%s(%p) sk=%p\n", __func__, sock, sk);
drivers/isdn/mISDN/socket.c
279
data_sock_ioctl_bound(struct sock *sk, unsigned int cmd, void __user *p)
drivers/isdn/mISDN/socket.c
350
data_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
drivers/isdn/mISDN/socket.c
353
struct sock *sk = sock->sk;
drivers/isdn/mISDN/socket.c
403
static int data_sock_setsockopt(struct socket *sock, int level, int optname,
drivers/isdn/mISDN/socket.c
406
struct sock *sk = sock->sk;
drivers/isdn/mISDN/socket.c
410
printk(KERN_DEBUG "%s(%p, %d, %x, optval, %d)\n", __func__, sock,
drivers/isdn/mISDN/socket.c
435
static int data_sock_getsockopt(struct socket *sock, int level, int optname,
drivers/isdn/mISDN/socket.c
438
struct sock *sk = sock->sk;
drivers/isdn/mISDN/socket.c
46
mISDN_sock_link(struct mISDN_sock_list *l, struct sock *sk)
drivers/isdn/mISDN/socket.c
465
data_sock_bind(struct socket *sock, struct sockaddr_unsized *addr, int addr_len)
drivers/isdn/mISDN/socket.c
468
struct sock *sk = sock->sk;
drivers/isdn/mISDN/socket.c
469
struct sock *csk;
drivers/isdn/mISDN/socket.c
473
printk(KERN_DEBUG "%s(%p) sk=%p\n", __func__, sock, sk);
drivers/isdn/mISDN/socket.c
53
static void mISDN_sock_unlink(struct mISDN_sock_list *l, struct sock *sk)
drivers/isdn/mISDN/socket.c
552
data_sock_getname(struct socket *sock, struct sockaddr *addr,
drivers/isdn/mISDN/socket.c
556
struct sock *sk = sock->sk;
drivers/isdn/mISDN/socket.c
593
data_sock_create(struct net *net, struct socket *sock, int protocol, int kern)
drivers/isdn/mISDN/socket.c
595
struct sock *sk;
drivers/isdn/mISDN/socket.c
597
if (sock->type != SOCK_DGRAM)
drivers/isdn/mISDN/socket.c
604
sock_init_data(sock, sk);
drivers/isdn/mISDN/socket.c
606
sock->ops = &data_sock_ops;
drivers/isdn/mISDN/socket.c
607
sock->state = SS_UNCONNECTED;
drivers/isdn/mISDN/socket.c
618
base_sock_release(struct socket *sock)
drivers/isdn/mISDN/socket.c
620
struct sock *sk = sock->sk;
drivers/isdn/mISDN/socket.c
622
printk(KERN_DEBUG "%s(%p) sk=%p\n", __func__, sock, sk);
drivers/isdn/mISDN/socket.c
634
base_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
drivers/isdn/mISDN/socket.c
699
base_sock_bind(struct socket *sock, struct sockaddr_unsized *addr, int addr_len)
drivers/isdn/mISDN/socket.c
702
struct sock *sk = sock->sk;
drivers/isdn/mISDN/socket.c
749
base_sock_create(struct net *net, struct socket *sock, int protocol, int kern)
drivers/isdn/mISDN/socket.c
751
struct sock *sk;
drivers/isdn/mISDN/socket.c
753
if (sock->type != SOCK_RAW)
drivers/isdn/mISDN/socket.c
762
sock_init_data(sock, sk);
drivers/isdn/mISDN/socket.c
763
sock->ops = &base_sock_ops;
drivers/isdn/mISDN/socket.c
764
sock->state = SS_UNCONNECTED;
drivers/isdn/mISDN/socket.c
774
mISDN_sock_create(struct net *net, struct socket *sock, int proto, int kern)
drivers/isdn/mISDN/socket.c
780
err = base_sock_create(net, sock, proto, kern);
drivers/isdn/mISDN/socket.c
794
err = data_sock_create(net, sock, proto, kern);
drivers/isdn/mISDN/socket.c
95
mISDN_sock_cmsg(struct sock *sk, struct msghdr *msg, struct sk_buff *skb)
drivers/isdn/mISDN/stack.c
61
struct sock *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, 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
1002
spin_lock_irqsave(&sock->lock, flags);
drivers/mmc/host/tifm_sd.c
1005
sock->addr + SOCK_DMA_FIFO_INT_ENABLE_CLEAR);
drivers/mmc/host/tifm_sd.c
1006
writel(0, sock->addr + SOCK_DMA_FIFO_INT_ENABLE_SET);
drivers/mmc/host/tifm_sd.c
1012
spin_unlock_irqrestore(&sock->lock, flags);
drivers/mmc/host/tifm_sd.c
1014
dev_dbg(&sock->dev, "after remove\n");
drivers/mmc/host/tifm_sd.c
1019
static int tifm_sd_suspend(struct tifm_dev *sock, pm_message_t state)
drivers/mmc/host/tifm_sd.c
1024
static int tifm_sd_resume(struct tifm_dev *sock)
drivers/mmc/host/tifm_sd.c
1026
struct mmc_host *mmc = tifm_get_drvdata(sock);
drivers/mmc/host/tifm_sd.c
1031
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
264
struct tifm_dev *sock = host->dev;
drivers/mmc/host/tifm_sd.c
312
dev_dbg(&sock->dev, "setting dma for %d blocks\n", dma_blk_cnt);
drivers/mmc/host/tifm_sd.c
313
writel(sg_dma_address(sg) + dma_off, sock->addr + SOCK_DMA_ADDRESS);
drivers/mmc/host/tifm_sd.c
316
sock->addr + SOCK_DMA_CONTROL);
drivers/mmc/host/tifm_sd.c
319
sock->addr + SOCK_DMA_CONTROL);
drivers/mmc/host/tifm_sd.c
369
struct tifm_dev *sock = host->dev;
drivers/mmc/host/tifm_sd.c
378
dev_dbg(&sock->dev, "executing opcode 0x%x, arg: 0x%x, mask: 0x%x\n",
drivers/mmc/host/tifm_sd.c
381
writel((cmd->arg >> 16) & 0xffff, sock->addr + SOCK_MMCSD_ARG_HIGH);
drivers/mmc/host/tifm_sd.c
382
writel(cmd->arg & 0xffff, sock->addr + SOCK_MMCSD_ARG_LOW);
drivers/mmc/host/tifm_sd.c
383
writel(cmd->opcode | cmd_mask, sock->addr + SOCK_MMCSD_COMMAND);
drivers/mmc/host/tifm_sd.c
386
static void tifm_sd_fetch_resp(struct mmc_command *cmd, struct tifm_dev *sock)
drivers/mmc/host/tifm_sd.c
388
cmd->resp[0] = (readl(sock->addr + SOCK_MMCSD_RESPONSE + 0x1c) << 16)
drivers/mmc/host/tifm_sd.c
389
| readl(sock->addr + SOCK_MMCSD_RESPONSE + 0x18);
drivers/mmc/host/tifm_sd.c
390
cmd->resp[1] = (readl(sock->addr + SOCK_MMCSD_RESPONSE + 0x14) << 16)
drivers/mmc/host/tifm_sd.c
391
| readl(sock->addr + SOCK_MMCSD_RESPONSE + 0x10);
drivers/mmc/host/tifm_sd.c
392
cmd->resp[2] = (readl(sock->addr + SOCK_MMCSD_RESPONSE + 0x0c) << 16)
drivers/mmc/host/tifm_sd.c
393
| readl(sock->addr + SOCK_MMCSD_RESPONSE + 0x08);
drivers/mmc/host/tifm_sd.c
394
cmd->resp[3] = (readl(sock->addr + SOCK_MMCSD_RESPONSE + 0x04) << 16)
drivers/mmc/host/tifm_sd.c
395
| readl(sock->addr + SOCK_MMCSD_RESPONSE + 0x00);
drivers/mmc/host/tifm_sd.c
400
struct tifm_dev *sock = host->dev;
drivers/mmc/host/tifm_sd.c
429
| readl(sock->addr
drivers/mmc/host/tifm_sd.c
431
sock->addr
drivers/mmc/host/tifm_sd.c
440
& readl(sock->addr
drivers/mmc/host/tifm_sd.c
442
sock->addr
drivers/mmc/host/tifm_sd.c
449
& readl(sock->addr
drivers/mmc/host/tifm_sd.c
451
sock->addr + SOCK_MMCSD_INT_ENABLE);
drivers/mmc/host/tifm_sd.c
471
static void tifm_sd_data_event(struct tifm_dev *sock)
drivers/mmc/host/tifm_sd.c
477
spin_lock(&sock->lock);
drivers/mmc/host/tifm_sd.c
478
host = mmc_priv((struct mmc_host*)tifm_get_drvdata(sock));
drivers/mmc/host/tifm_sd.c
479
fifo_status = readl(sock->addr + SOCK_DMA_FIFO_STATUS);
drivers/mmc/host/tifm_sd.c
480
dev_dbg(&sock->dev, "data event: fifo_status %x, flags %x\n",
drivers/mmc/host/tifm_sd.c
494
writel(fifo_status, sock->addr + SOCK_DMA_FIFO_STATUS);
drivers/mmc/host/tifm_sd.c
495
spin_unlock(&sock->lock);
drivers/mmc/host/tifm_sd.c
499
static void tifm_sd_card_event(struct tifm_dev *sock)
drivers/mmc/host/tifm_sd.c
506
spin_lock(&sock->lock);
drivers/mmc/host/tifm_sd.c
507
host = mmc_priv((struct mmc_host*)tifm_get_drvdata(sock));
drivers/mmc/host/tifm_sd.c
508
host_status = readl(sock->addr + SOCK_MMCSD_STATUS);
drivers/mmc/host/tifm_sd.c
509
dev_dbg(&sock->dev, "host event: host_status %x, flags %x\n",
drivers/mmc/host/tifm_sd.c
517
sock->addr + SOCK_MMCSD_STATUS);
drivers/mmc/host/tifm_sd.c
531
sock->addr + SOCK_DMA_FIFO_INT_ENABLE_CLEAR);
drivers/mmc/host/tifm_sd.c
532
writel(TIFM_DMA_RESET, sock->addr + SOCK_DMA_CONTROL);
drivers/mmc/host/tifm_sd.c
550
tifm_sd_fetch_resp(cmd, sock);
drivers/mmc/host/tifm_sd.c
554
sock);
drivers/mmc/host/tifm_sd.c
564
sock->addr + SOCK_MMCSD_STATUS);
drivers/mmc/host/tifm_sd.c
581
writel(host_status, sock->addr + SOCK_MMCSD_STATUS);
drivers/mmc/host/tifm_sd.c
582
spin_unlock(&sock->lock);
drivers/mmc/host/tifm_sd.c
588
struct tifm_dev *sock = host->dev;
drivers/mmc/host/tifm_sd.c
598
writel(data_timeout, sock->addr + SOCK_MMCSD_DATA_TO);
drivers/mmc/host/tifm_sd.c
600
& readl(sock->addr + SOCK_MMCSD_SDIO_MODE_CONFIG),
drivers/mmc/host/tifm_sd.c
601
sock->addr + SOCK_MMCSD_SDIO_MODE_CONFIG);
drivers/mmc/host/tifm_sd.c
606
writel(data_timeout, sock->addr + SOCK_MMCSD_DATA_TO);
drivers/mmc/host/tifm_sd.c
608
| readl(sock->addr + SOCK_MMCSD_SDIO_MODE_CONFIG),
drivers/mmc/host/tifm_sd.c
609
sock->addr + SOCK_MMCSD_SDIO_MODE_CONFIG);
drivers/mmc/host/tifm_sd.c
616
struct tifm_dev *sock = host->dev;
drivers/mmc/host/tifm_sd.c
620
spin_lock_irqsave(&sock->lock, flags);
drivers/mmc/host/tifm_sd.c
628
dev_name(&sock->dev));
drivers/mmc/host/tifm_sd.c
647
| readl(sock->addr + SOCK_MMCSD_INT_ENABLE),
drivers/mmc/host/tifm_sd.c
648
sock->addr + SOCK_MMCSD_INT_ENABLE);
drivers/mmc/host/tifm_sd.c
652
| readl(sock->addr + SOCK_MMCSD_INT_ENABLE),
drivers/mmc/host/tifm_sd.c
653
sock->addr + SOCK_MMCSD_INT_ENABLE);
drivers/mmc/host/tifm_sd.c
656
sock->addr + SOCK_MMCSD_BUFFER_CONFIG);
drivers/mmc/host/tifm_sd.c
663
if(1 != tifm_map_sg(sock, &host->bounce_buf, 1,
drivers/mmc/host/tifm_sd.c
668
dev_name(&sock->dev));
drivers/mmc/host/tifm_sd.c
672
host->sg_len = tifm_map_sg(sock, r_data->sg,
drivers/mmc/host/tifm_sd.c
680
dev_name(&sock->dev));
drivers/mmc/host/tifm_sd.c
681
tifm_unmap_sg(sock, &host->bounce_buf, 1,
drivers/mmc/host/tifm_sd.c
690
sock->addr + SOCK_DMA_FIFO_INT_ENABLE_CLEAR);
drivers/mmc/host/tifm_sd.c
692
sock->addr + SOCK_FIFO_PAGE_SIZE);
drivers/mmc/host/tifm_sd.c
694
sock->addr + SOCK_FIFO_CONTROL);
drivers/mmc/host/tifm_sd.c
696
sock->addr + SOCK_DMA_FIFO_INT_ENABLE_SET);
drivers/mmc/host/tifm_sd.c
700
sock->addr + SOCK_MMCSD_BUFFER_CONFIG);
drivers/mmc/host/tifm_sd.c
703
sock->addr + SOCK_MMCSD_BUFFER_CONFIG);
drivers/mmc/host/tifm_sd.c
709
sock->addr + SOCK_MMCSD_NUM_BLOCKS);
drivers/mmc/host/tifm_sd.c
711
sock->addr + SOCK_MMCSD_BLOCK_LEN);
drivers/mmc/host/tifm_sd.c
716
writel(TIFM_CTRL_LED | readl(sock->addr + SOCK_CONTROL),
drivers/mmc/host/tifm_sd.c
717
sock->addr + SOCK_CONTROL);
drivers/mmc/host/tifm_sd.c
719
spin_unlock_irqrestore(&sock->lock, flags);
drivers/mmc/host/tifm_sd.c
723
spin_unlock_irqrestore(&sock->lock, flags);
drivers/mmc/host/tifm_sd.c
730
struct tifm_dev *sock = host->dev;
drivers/mmc/host/tifm_sd.c
731
struct mmc_host *mmc = tifm_get_drvdata(sock);
drivers/mmc/host/tifm_sd.c
736
spin_lock_irqsave(&sock->lock, flags);
drivers/mmc/host/tifm_sd.c
744
dev_name(&sock->dev));
drivers/mmc/host/tifm_sd.c
745
spin_unlock_irqrestore(&sock->lock, flags);
drivers/mmc/host/tifm_sd.c
753
& readl(sock->addr + SOCK_MMCSD_INT_ENABLE),
drivers/mmc/host/tifm_sd.c
754
sock->addr + SOCK_MMCSD_INT_ENABLE);
drivers/mmc/host/tifm_sd.c
756
tifm_unmap_sg(sock, &host->bounce_buf, 1,
drivers/mmc/host/tifm_sd.c
759
tifm_unmap_sg(sock, r_data->sg, r_data->sg_len,
drivers/mmc/host/tifm_sd.c
765
- readl(sock->addr + SOCK_MMCSD_NUM_BLOCKS) - 1;
drivers/mmc/host/tifm_sd.c
768
- readl(sock->addr + SOCK_MMCSD_BLOCK_LEN) + 1;
drivers/mmc/host/tifm_sd.c
771
writel((~TIFM_CTRL_LED) & readl(sock->addr + SOCK_CONTROL),
drivers/mmc/host/tifm_sd.c
772
sock->addr + SOCK_CONTROL);
drivers/mmc/host/tifm_sd.c
774
spin_unlock_irqrestore(&sock->lock, flags);
drivers/mmc/host/tifm_sd.c
792
struct tifm_dev *sock = host->dev;
drivers/mmc/host/tifm_sd.c
796
spin_lock_irqsave(&sock->lock, flags);
drivers/mmc/host/tifm_sd.c
798
dev_dbg(&sock->dev, "ios: clock = %u, vdd = %x, bus_mode = %x, "
drivers/mmc/host/tifm_sd.c
804
writel(TIFM_MMCSD_4BBUS | readl(sock->addr + SOCK_MMCSD_CONFIG),
drivers/mmc/host/tifm_sd.c
805
sock->addr + SOCK_MMCSD_CONFIG);
drivers/mmc/host/tifm_sd.c
808
& readl(sock->addr + SOCK_MMCSD_CONFIG),
drivers/mmc/host/tifm_sd.c
809
sock->addr + SOCK_MMCSD_CONFIG);
drivers/mmc/host/tifm_sd.c
829
& readl(sock->addr + SOCK_CONTROL),
drivers/mmc/host/tifm_sd.c
830
sock->addr + SOCK_CONTROL);
drivers/mmc/host/tifm_sd.c
835
| readl(sock->addr + SOCK_CONTROL),
drivers/mmc/host/tifm_sd.c
836
sock->addr + SOCK_CONTROL);
drivers/mmc/host/tifm_sd.c
844
& readl(sock->addr + SOCK_MMCSD_CONFIG)),
drivers/mmc/host/tifm_sd.c
845
sock->addr + SOCK_MMCSD_CONFIG);
drivers/mmc/host/tifm_sd.c
853
spin_unlock_irqrestore(&sock->lock, flags);
drivers/mmc/host/tifm_sd.c
860
struct tifm_dev *sock = host->dev;
drivers/mmc/host/tifm_sd.c
863
spin_lock_irqsave(&sock->lock, flags);
drivers/mmc/host/tifm_sd.c
864
if (TIFM_MMCSD_CARD_RO & readl(sock->addr + SOCK_PRESENT_STATE))
drivers/mmc/host/tifm_sd.c
866
spin_unlock_irqrestore(&sock->lock, flags);
drivers/mmc/host/tifm_sd.c
880
struct tifm_dev *sock = host->dev;
drivers/mmc/host/tifm_sd.c
882
writel(0, sock->addr + SOCK_MMCSD_INT_ENABLE);
drivers/mmc/host/tifm_sd.c
885
writel(TIFM_MMCSD_RESET, sock->addr + SOCK_MMCSD_SYSTEM_CONTROL);
drivers/mmc/host/tifm_sd.c
887
sock->addr + SOCK_MMCSD_CONFIG);
drivers/mmc/host/tifm_sd.c
891
if (1 & readl(sock->addr + SOCK_MMCSD_SYSTEM_STATUS)) {
drivers/mmc/host/tifm_sd.c
900
dev_name(&sock->dev));
drivers/mmc/host/tifm_sd.c
904
writel(0, sock->addr + SOCK_MMCSD_NUM_BLOCKS);
drivers/mmc/host/tifm_sd.c
906
sock->addr + SOCK_MMCSD_CONFIG);
drivers/mmc/host/tifm_sd.c
907
writel(TIFM_MMCSD_RXDE, sock->addr + SOCK_MMCSD_BUFFER_CONFIG);
drivers/mmc/host/tifm_sd.c
910
writel(64, sock->addr + SOCK_MMCSD_COMMAND_TO);
drivers/mmc/host/tifm_sd.c
911
writel(TIFM_MMCSD_INAB, sock->addr + SOCK_MMCSD_COMMAND);
drivers/mmc/host/tifm_sd.c
914
host_status = readl(sock->addr + SOCK_MMCSD_STATUS);
drivers/mmc/host/tifm_sd.c
915
writel(host_status, sock->addr + SOCK_MMCSD_STATUS);
drivers/mmc/host/tifm_sd.c
926
dev_name(&sock->dev));
drivers/mmc/host/tifm_sd.c
932
sock->addr + SOCK_MMCSD_INT_ENABLE);
drivers/mmc/host/tifm_sd.c
937
static int tifm_sd_probe(struct tifm_dev *sock)
drivers/mmc/host/tifm_sd.c
944
& readl(sock->addr + SOCK_PRESENT_STATE))) {
drivers/mmc/host/tifm_sd.c
946
dev_name(&sock->dev));
drivers/mmc/host/tifm_sd.c
950
mmc = devm_mmc_alloc_host(&sock->dev, sizeof(*host));
drivers/mmc/host/tifm_sd.c
955
tifm_set_drvdata(sock, mmc);
drivers/mmc/host/tifm_sd.c
956
host->dev = sock;
drivers/mmc/host/tifm_sd.c
979
sock->card_event = tifm_sd_card_event;
drivers/mmc/host/tifm_sd.c
980
sock->data_event = tifm_sd_data_event;
drivers/mmc/host/tifm_sd.c
989
static void tifm_sd_remove(struct tifm_dev *sock)
drivers/mmc/host/tifm_sd.c
991
struct mmc_host *mmc = tifm_get_drvdata(sock);
drivers/mmc/host/tifm_sd.c
995
spin_lock_irqsave(&sock->lock, flags);
drivers/mmc/host/tifm_sd.c
997
writel(0, sock->addr + SOCK_MMCSD_INT_ENABLE);
drivers/mmc/host/tifm_sd.c
998
spin_unlock_irqrestore(&sock->lock, flags);
drivers/net/amt.c
1003
struct socket *sock;
drivers/net/amt.c
1009
sock = rcu_dereference_bh(amt->sock);
drivers/net/amt.c
1010
if (!sock)
drivers/net/amt.c
1042
udp_tunnel_xmit_skb(rt, sock->sk, skb,
drivers/net/amt.c
1063
struct socket *sock;
drivers/net/amt.c
1069
sock = rcu_dereference_bh(amt->sock);
drivers/net/amt.c
1070
if (!sock)
drivers/net/amt.c
1100
udp_tunnel_xmit_skb(rt, sock->sk, skb,
drivers/net/amt.c
1119
struct socket *sock;
drivers/net/amt.c
1124
sock = rcu_dereference_bh(amt->sock);
drivers/net/amt.c
1125
if (!sock)
drivers/net/amt.c
1159
udp_tunnel_xmit_skb(rt, sock->sk, skb,
drivers/net/amt.c
2557
struct socket *sock;
drivers/net/amt.c
2567
sock = rcu_dereference(amt->sock);
drivers/net/amt.c
2568
if (!sock)
drivers/net/amt.c
2574
rt = ip_route_output_ports(amt->net, &fl4, sock->sk,
drivers/net/amt.c
2634
err = ip_local_out(amt->net, sock->sk, skb);
drivers/net/amt.c
2772
static int amt_rcv(struct sock *sk, struct sk_buff *skb)
drivers/net/amt.c
2908
static int amt_err_lookup(struct sock *sk, struct sk_buff *skb)
drivers/net/amt.c
2950
struct socket *sock;
drivers/net/amt.c
2959
err = udp_sock_create(net, &udp_conf, &sock);
drivers/net/amt.c
2963
return sock;
drivers/net/amt.c
2969
struct socket *sock;
drivers/net/amt.c
2971
sock = amt_create_sock(amt->net, amt->relay_port);
drivers/net/amt.c
2972
if (IS_ERR(sock))
drivers/net/amt.c
2973
return PTR_ERR(sock);
drivers/net/amt.c
2982
setup_udp_tunnel_sock(amt->net, sock, &tunnel_cfg);
drivers/net/amt.c
2984
rcu_assign_pointer(amt->sock, sock);
drivers/net/amt.c
3022
struct socket *sock;
drivers/net/amt.c
3031
sock = rtnl_dereference(amt->sock);
drivers/net/amt.c
3032
RCU_INIT_POINTER(amt->sock, NULL);
drivers/net/amt.c
3034
if (sock)
drivers/net/amt.c
3035
udp_tunnel_sock_release(sock);
drivers/net/amt.c
617
struct socket *sock;
drivers/net/amt.c
627
sock = rcu_dereference(amt->sock);
drivers/net/amt.c
628
if (!sock)
drivers/net/amt.c
634
rt = ip_route_output_ports(amt->net, &fl4, sock->sk,
drivers/net/amt.c
693
err = ip_local_out(amt->net, sock->sk, skb);
drivers/net/amt.c
706
struct socket *sock;
drivers/net/amt.c
716
sock = rcu_dereference(amt->sock);
drivers/net/amt.c
717
if (!sock)
drivers/net/amt.c
723
rt = ip_route_output_ports(amt->net, &fl4, sock->sk,
drivers/net/amt.c
784
err = ip_local_out(amt->net, sock->sk, skb);
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
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;
drivers/net/bareudp.c
258
struct socket *sock;
drivers/net/bareudp.c
260
sock = bareudp_create_sock(bareudp->net, port);
drivers/net/bareudp.c
261
if (IS_ERR(sock))
drivers/net/bareudp.c
262
return PTR_ERR(sock);
drivers/net/bareudp.c
271
setup_udp_tunnel_sock(bareudp->net, sock, &tunnel_cfg);
drivers/net/bareudp.c
273
rcu_assign_pointer(bareudp->sock, sock);
drivers/net/bareudp.c
288
struct socket *sock;
drivers/net/bareudp.c
290
sock = bareudp->sock;
drivers/net/bareudp.c
291
rcu_assign_pointer(bareudp->sock, NULL);
drivers/net/bareudp.c
293
udp_tunnel_sock_release(sock);
drivers/net/bareudp.c
311
struct socket *sock = rcu_dereference(bareudp->sock);
drivers/net/bareudp.c
323
if (!sock)
drivers/net/bareudp.c
362
udp_tunnel_xmit_skb(rt, sock->sk, skb, saddr, info->key.u.ipv4.dst,
drivers/net/bareudp.c
381
struct socket *sock = rcu_dereference(bareudp->sock);
drivers/net/bareudp.c
393
if (!sock)
drivers/net/bareudp.c
399
dst = udp_tunnel6_dst_lookup(skb, dev, bareudp->net, sock, 0, &saddr,
drivers/net/bareudp.c
430
udp_tunnel6_xmit_skb(dst, sock->sk, skb, dev,
drivers/net/bareudp.c
530
struct socket *sock = rcu_dereference(bareudp->sock);
drivers/net/bareudp.c
532
dst = udp_tunnel6_dst_lookup(skb, dev, bareudp->net, sock,
drivers/net/bareudp.c
56
struct socket __rcu *sock;
drivers/net/bareudp.c
61
static int bareudp_udp_encap_recv(struct sock *sk, struct sk_buff *skb)
drivers/net/bonding/bond_main.c
5447
static void bond_sk_to_flow(struct sock *sk, struct flow_keys *flow)
drivers/net/bonding/bond_main.c
5480
static u32 bond_sk_hash_l34(struct sock *sk)
drivers/net/bonding/bond_main.c
5494
struct sock *sk)
drivers/net/bonding/bond_main.c
5513
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/chelsio/inline_crypto/chtls/chtls.h
161
struct sock *sk; /* The listening socket */
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls.h
191
struct sock *lsk;
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls.h
246
struct sock *sk;
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls.h
279
struct sock *sk;
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls.h
414
void (*backlog_rcv)(struct sock *sk, struct sk_buff *skb);
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls.h
481
static inline int csk_flag(const struct sock *sk, enum csk_flags flag)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls.h
508
static inline void process_cpl_msg(void (*fn)(struct sock *, struct sk_buff *),
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls.h
509
struct sock *sk,
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls.h
544
static inline void send_or_defer(struct sock *sk, struct tcp_sock *tp,
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls.h
560
void chtls_install_cpl_ops(struct sock *sk);
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls.h
562
void chtls_listen_stop(struct chtls_dev *cdev, struct sock *sk);
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls.h
563
int chtls_listen_start(struct chtls_dev *cdev, struct sock *sk);
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls.h
564
void chtls_close(struct sock *sk, long timeout);
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls.h
565
int chtls_disconnect(struct sock *sk, int flags);
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls.h
566
void chtls_shutdown(struct sock *sk, int how);
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls.h
567
void chtls_destroy_sock(struct sock *sk);
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls.h
568
int chtls_sendmsg(struct sock *sk, struct msghdr *msg, size_t size);
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls.h
569
int chtls_recvmsg(struct sock *sk, struct msghdr *msg,
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls.h
571
void chtls_splice_eof(struct socket *sock);
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls.h
572
int send_tx_flowc_wr(struct sock *sk, int compl,
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls.h
574
void chtls_tcp_push(struct sock *sk, int flags);
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls.h
576
void chtls_set_tcb_field_rpl_skb(struct sock *sk, u16 word,
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls.h
580
void chtls_set_quiesce_ctrl(struct sock *sk, int val);
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls.h
581
void skb_entail(struct sock *sk, struct sk_buff *skb, int flags);
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls.h
583
void free_tls_keyid(struct sock *sk);
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
1018
struct sock *sk;
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
1074
static void inet_inherit_port(struct sock *lsk, struct sock *newsk)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
1081
static int chtls_backlog_rcv(struct sock *sk, struct sk_buff *skb)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
1110
static struct sock *chtls_recv_sock(struct sock *lsk,
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
1125
struct sock *newsk;
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
1279
static int chtls_get_module(struct sock *sk)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
1289
static void chtls_pass_accept_request(struct sock *sk,
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
1302
struct sock *newsk;
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
141
static void assign_rxopt(struct sock *sk, unsigned int opt)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
1434
struct sock *lsk;
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
1463
static void make_established(struct sock *sk, u32 snd_isn, unsigned int opt)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
1481
static void chtls_abort_conn(struct sock *sk, struct sk_buff *skb)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
1490
static struct sock *reap_list;
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
1500
struct sock *sk = reap_list;
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
1522
static void add_to_reap_list(struct sock *sk)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
1538
static void add_pass_open_to_parent(struct sock *child, struct sock *lsk,
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
1564
static void bl_add_pass_open_to_parent(struct sock *lsk, struct sk_buff *skb)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
1566
struct sock *child = skb->sk;
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
1577
struct sock *lsk, *sk;
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
1638
static void handle_urg_ptr(struct sock *sk, u32 urg_seq)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
1663
struct sock *sk = csk->sk;
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
1674
static void handle_excess_rx(struct sock *sk, struct sk_buff *skb)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
1682
static void chtls_recv_data(struct sock *sk, struct sk_buff *skb)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
169
static void chtls_purge_receive_queue(struct sock *sk)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
1732
struct sock *sk;
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
1744
static void chtls_recv_pdu(struct sock *sk, struct sk_buff *skb)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
1784
struct sock *sk;
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
179
static void chtls_purge_write_queue(struct sock *sk)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
1804
static void chtls_rx_hdr(struct sock *sk, struct sk_buff *skb)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
1853
struct sock *sk;
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
1866
static void chtls_timewait(struct sock *sk)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
1876
static void chtls_peer_close(struct sock *sk, struct sk_buff *skb)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
190
static void chtls_purge_recv_queue(struct sock *sk)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
1919
static void chtls_close_con_rpl(struct sock *sk, struct sk_buff *skb)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
2018
static void chtls_send_abort_rpl(struct sock *sk, struct sk_buff *skb,
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
2055
static void bl_abort_syn_rcv(struct sock *lsk, struct sk_buff *skb)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
2058
struct sock *child;
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
2071
static int abort_syn_rcv(struct sock *sk, struct sk_buff *skb)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
2077
struct sock *psk;
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
2109
static void chtls_abort_req_rss(struct sock *sk, struct sk_buff *skb)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
2151
static void chtls_abort_rpl_rss(struct sock *sk, struct sk_buff *skb)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
2180
void (*fn)(struct sock *sk, struct sk_buff *skb);
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
2183
struct sock *sk;
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
2224
static void chtls_rx_ack(struct sock *sk, struct sk_buff *skb)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
223
static void chtls_send_abort(struct sock *sk, int mode, struct sk_buff *skb)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
2288
struct sock *sk;
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
2304
struct sock *sk;
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
245
static void chtls_send_reset(struct sock *sk, int mode, struct sk_buff *skb)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
280
static void release_tcp_port(struct sock *sk)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
286
static void tcp_uncork(struct sock *sk)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
296
static void chtls_close_conn(struct sock *sk)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
330
static int make_close_transition(struct sock *sk)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
338
void chtls_close(struct sock *sk, long timeout)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
402
static int wait_for_states(struct sock *sk, unsigned int states)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
446
int chtls_disconnect(struct sock *sk, int flags)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
471
void chtls_shutdown(struct sock *sk, int how)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
479
void chtls_destroy_sock(struct sock *sk)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
498
static void reset_listen_child(struct sock *child)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
513
static void chtls_disconnect_acceptq(struct sock *listen_sk)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
523
struct sock *child = req->sk;
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
542
static int listen_hashfn(const struct sock *sk)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
548
struct sock *sk,
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
567
struct sock *sk)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
586
struct sock *sk)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
607
static void cleanup_syn_rcv_conn(struct sock *child, struct sock *parent)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
623
struct sock *listen_sk = listen_ctx->lsk;
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
629
struct sock *child = csk->sk;
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
643
int chtls_listen_start(struct chtls_dev *cdev, struct sock *sk)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
730
void chtls_listen_stop(struct chtls_dev *cdev, struct sock *sk)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
810
static void chtls_purge_wr_queue(struct sock *sk)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
818
static void chtls_release_resources(struct sock *sk)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
848
static void chtls_conn_done(struct sock *sk)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
856
static void do_abort_syn_rcv(struct sock *child, struct sock *parent)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
884
static void pass_open_abort(struct sock *child, struct sock *parent,
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
891
static void bl_pass_open_abort(struct sock *lsk, struct sk_buff *skb)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
896
static void chtls_pass_open_arp_failure(struct sock *sk,
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
902
struct sock *parent;
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
935
struct sock *sk = (struct sock *)handle;
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
94
struct sock *sk)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
953
struct sock *sk;
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.h
109
static inline unsigned int sk_in_state(const struct sock *sk,
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.h
142
static inline void sk_wakeup_sleepers(struct sock *sk, bool interruptable)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.h
171
static inline void chtls_free_skb(struct sock *sk, struct sk_buff *skb)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.h
178
static inline void chtls_kfree_skb(struct sock *sk, struct sk_buff *skb)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.h
204
static inline struct sk_buff *dequeue_wr(struct sock *sk)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_hw.c
109
static int chtls_set_tcb_keyid(struct sock *sk, int keyid)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_hw.c
114
static int chtls_set_tcb_seqno(struct sock *sk)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_hw.c
119
static int chtls_set_tcb_quiesce(struct sock *sk, int val)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_hw.c
125
void chtls_set_quiesce_ctrl(struct sock *sk, int val)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_hw.c
196
void free_tls_keyid(struct sock *sk)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_hw.c
356
struct sock *sk;
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_hw.c
41
static void __set_tcb_field(struct sock *sk, struct sk_buff *skb, u16 word,
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_hw.c
61
static int chtls_set_tcb_field(struct sock *sk, u16 word, u64 mask, u64 val)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_hw.c
91
void chtls_set_tcb_field_rpl_skb(struct sock *sk, u16 word,
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_io.c
1004
int chtls_sendmsg(struct sock *sk, struct msghdr *msg, size_t size)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_io.c
106
static int send_flowc_wr(struct sock *sk, struct fw_flowc_wr *flowc,
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_io.c
1236
void chtls_splice_eof(struct socket *sock)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_io.c
1238
struct sock *sk = sock->sk;
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_io.c
1245
static void chtls_select_window(struct sock *sk)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_io.c
1305
static void chtls_cleanup_rbuf(struct sock *sk, int copied)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_io.c
1334
static int chtls_pt_recvmsg(struct sock *sk, struct msghdr *msg, size_t len,
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_io.c
1531
static int peekmsg(struct sock *sk, struct msghdr *msg,
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_io.c
159
int send_tx_flowc_wr(struct sock *sk, int compl,
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_io.c
1658
int chtls_recvmsg(struct sock *sk, struct msghdr *msg, size_t len,
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_io.c
213
static int tls_copy_ivs(struct sock *sk, struct sk_buff *skb)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_io.c
270
static void tls_copy_tx_key(struct sock *sk, struct sk_buff *skb)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_io.c
334
static void tls_tx_data_wr(struct sock *sk, struct sk_buff *skb,
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_io.c
43
static int nos_ivs(struct sock *sk, unsigned int size)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_io.c
436
static int chtls_expansion_size(struct sock *sk, int data_len,
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_io.c
473
static void make_tlstx_data_wr(struct sock *sk, struct sk_buff *skb,
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_io.c
50
static int set_ivs_imm(struct sock *sk, const struct sk_buff *skb)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_io.c
502
static void make_tx_data_wr(struct sock *sk, struct sk_buff *skb,
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_io.c
596
struct sock *sk;
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_io.c
64
static int max_ivs_size(struct sock *sk, int size)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_io.c
69
static int ivs_size(struct sock *sk, const struct sk_buff *skb)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_io.c
722
static bool should_push(struct sock *sk)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_io.c
754
static bool send_should_push(struct sock *sk, int flags)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_io.c
759
void chtls_tcp_push(struct sock *sk, int flags)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_io.c
792
static int select_size(struct sock *sk, int io_len, int flags, int len)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_io.c
813
void skb_entail(struct sock *sk, struct sk_buff *skb, int flags)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_io.c
830
static struct sk_buff *get_tx_skb(struct sock *sk, int size)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_io.c
843
static struct sk_buff *get_record_skb(struct sock *sk, int size, bool zcopy)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_io.c
871
static void push_frames_if_head(struct sock *sk)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_io.c
879
static int chtls_skb_copy_to_page_nocache(struct sock *sk,
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_io.c
89
static struct sk_buff *create_flowc_wr_skb(struct sock *sk,
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_io.c
899
static bool csk_mem_free(struct chtls_dev *cdev, struct sock *sk)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_io.c
905
struct sock *sk, long *timeo_p)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_io.c
973
static int chtls_proccess_cmsg(struct sock *sk, struct msghdr *msg,
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_main.c
110
static void chtls_stop_listen(struct chtls_dev *cdev, struct sock *sk)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_main.c
144
static int chtls_create_hash(struct tls_toe_device *dev, struct sock *sk)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_main.c
153
static void chtls_destroy_hash(struct tls_toe_device *dev, struct sock *sk)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_main.c
468
static int do_chtls_getsockopt(struct sock *sk, char __user *optval,
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_main.c
479
static int chtls_getsockopt(struct sock *sk, int level, int optname,
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_main.c
491
static int do_chtls_setsockopt(struct sock *sk, int optname,
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_main.c
570
static int chtls_setsockopt(struct sock *sk, int level, int optname,
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_main.c
592
void chtls_install_cpl_ops(struct sock *sk)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_main.c
78
static int listen_backlog_rcv(struct sock *sk, struct sk_buff *skb)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_main.c
86
static int chtls_start_listen(struct chtls_dev *cdev, 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
635
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
1010
setup_udp_tunnel_sock(net, sock, &tunnel_cfg);
drivers/net/geneve.c
1021
udp_tunnel_notify_del_rx_port(gs->sock, UDP_TUNNEL_TYPE_GENEVE);
drivers/net/geneve.c
1022
udp_tunnel_sock_release(gs->sock);
drivers/net/geneve.c
1052
if (inet_sk(gs->sock->sk)->inet_sport == dst_port &&
drivers/net/geneve.c
110
struct socket *sock;
drivers/net/geneve.c
1394
udp_tunnel_xmit_skb(rt, gs4->sock->sk, skb, saddr, info->key.u.ipv4.dst,
drivers/net/geneve.c
1428
dst = udp_tunnel6_dst_lookup(skb, dev, geneve->net, gs6->sock, 0,
drivers/net/geneve.c
1484
udp_tunnel6_xmit_skb(dst, gs6->sock->sk, skb, dev,
drivers/net/geneve.c
1596
dst = udp_tunnel6_dst_lookup(skb, dev, geneve->net, gs6->sock, 0,
drivers/net/geneve.c
1658
udp_tunnel_push_rx_port(dev, gs->sock,
drivers/net/geneve.c
1661
udp_tunnel_drop_rx_port(dev, gs->sock,
drivers/net/geneve.c
171
return gs->sock->sk->sk_family;
drivers/net/geneve.c
2187
rcu_assign_sk_user_data((*gs4)->sock->sk, NULL);
drivers/net/geneve.c
2192
rcu_assign_sk_user_data((*gs6)->sock->sk, NULL);
drivers/net/geneve.c
2205
rcu_assign_sk_user_data(gs4->sock->sk, gs4);
drivers/net/geneve.c
2209
rcu_assign_sk_user_data(gs6->sock->sk, gs6);
drivers/net/geneve.c
474
geneve_sk_gro_hint_off(const struct sock *sk, const struct genevehdr *gh,
drivers/net/geneve.c
570
static int geneve_post_decap_hint(const struct sock *sk, struct sk_buff *skb,
drivers/net/geneve.c
651
static int geneve_udp_encap_recv(struct sock *sk, struct sk_buff *skb)
drivers/net/geneve.c
712
static int geneve_udp_encap_err_lookup(struct sock *sk, struct sk_buff *skb)
drivers/net/geneve.c
767
struct socket *sock;
drivers/net/geneve.c
785
err = udp_sock_create(net, &udp_conf, &sock);
drivers/net/geneve.c
789
udp_allow_gso(sock->sk);
drivers/net/geneve.c
790
return sock;
drivers/net/geneve.c
868
static struct sk_buff *geneve_gro_receive(struct sock *sk,
drivers/net/geneve.c
946
static int geneve_gro_complete(struct sock *sk, struct sk_buff *skb,
drivers/net/geneve.c
979
struct socket *sock;
drivers/net/geneve.c
987
sock = geneve_create_sock(net, ipv6, port, ipv6_rx_csum);
drivers/net/geneve.c
988
if (IS_ERR(sock)) {
drivers/net/geneve.c
990
return ERR_CAST(sock);
drivers/net/geneve.c
993
gs->sock = sock;
drivers/net/geneve.c
999
udp_tunnel_notify_add_rx_port(gs->sock, UDP_TUNNEL_TYPE_GENEVE);
drivers/net/gtp.c
1020
struct sock *sk, __u8 tos,
drivers/net/gtp.c
1034
struct sock *sk, __u8 tos,
drivers/net/gtp.c
1403
static struct sock *gtp_create_sock(int type, struct gtp_dev *gtp,
drivers/net/gtp.c
1409
struct socket *sock;
drivers/net/gtp.c
1428
err = udp_sock_create(net, &udp_conf, &sock);
drivers/net/gtp.c
1437
setup_udp_tunnel_sock(net, sock, &tuncfg);
drivers/net/gtp.c
1439
return sock->sk;
drivers/net/gtp.c
1445
struct sock *sk1u;
drivers/net/gtp.c
1446
struct sock *sk0;
drivers/net/gtp.c
1648
static struct sock *gtp_encap_enable_socket(int fd, int type,
drivers/net/gtp.c
1652
struct socket *sock;
drivers/net/gtp.c
1653
struct sock *sk;
drivers/net/gtp.c
1658
sock = sockfd_lookup(fd, &err);
drivers/net/gtp.c
1659
if (!sock) {
drivers/net/gtp.c
1664
sk = sock->sk;
drivers/net/gtp.c
1692
setup_udp_tunnel_sock(sock_net(sock->sk), sock, &tuncfg);
drivers/net/gtp.c
1695
release_sock(sock->sk);
drivers/net/gtp.c
1697
sockfd_put(sock);
drivers/net/gtp.c
1703
struct sock *sk1u = NULL;
drivers/net/gtp.c
1704
struct sock *sk0 = NULL;
drivers/net/gtp.c
1823
static struct pdp_ctx *gtp_pdp_add(struct gtp_dev *gtp, struct sock *sk,
drivers/net/gtp.c
2010
struct sock *sk;
drivers/net/gtp.c
2334
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
850
static void __gtp_encap_destroy(struct sock *sk)
drivers/net/gtp.c
870
static void gtp_encap_destroy(struct sock *sk)
drivers/net/gtp.c
877
static void gtp_encap_disable_sock(struct sock *sk)
drivers/net/gtp.c
902
static int gtp_encap_recv(struct sock *sk, struct sk_buff *skb)
drivers/net/gtp.c
990
struct sock *sk;
drivers/net/hyperv/netvsc_drv.c
254
struct sock *sk = skb->sk;
drivers/net/ovpn/io.c
106
struct ovpn_socket *sock;
drivers/net/ovpn/io.c
143
sock = rcu_dereference(peer->sock);
drivers/net/ovpn/io.c
144
if (sock && sock->sk->sk_protocol == IPPROTO_UDP)
drivers/net/ovpn/io.c
237
struct ovpn_socket *sock;
drivers/net/ovpn/io.c
276
sock = rcu_dereference(peer->sock);
drivers/net/ovpn/io.c
277
if (unlikely(!sock))
drivers/net/ovpn/io.c
280
switch (sock->sk->sk_protocol) {
drivers/net/ovpn/io.c
282
ovpn_udp_send_skb(peer, sock->sk, skb);
drivers/net/ovpn/io.c
285
ovpn_tcp_send_skb(peer, sock->sk, skb);
drivers/net/ovpn/netlink.c
1149
struct ovpn_socket *sock;
drivers/net/ovpn/netlink.c
1186
sock = rcu_dereference(peer->sock);
drivers/net/ovpn/netlink.c
1187
if (!sock) {
drivers/net/ovpn/netlink.c
1191
genlmsg_multicast_netns(&ovpn_nl_family, sock_net(sock->sk), msg, 0,
drivers/net/ovpn/netlink.c
1215
struct ovpn_socket *sock;
drivers/net/ovpn/netlink.c
1251
sock = rcu_dereference(peer->sock);
drivers/net/ovpn/netlink.c
1252
if (!sock) {
drivers/net/ovpn/netlink.c
1256
genlmsg_multicast_netns(&ovpn_nl_family, sock_net(sock->sk), msg, 0,
drivers/net/ovpn/netlink.c
346
struct socket *sock = NULL;
drivers/net/ovpn/netlink.c
387
sock = sockfd_lookup(sockfd, &ret);
drivers/net/ovpn/netlink.c
388
if (!sock) {
drivers/net/ovpn/netlink.c
399
if (sock->sk->sk_protocol == IPPROTO_UDP &&
drivers/net/ovpn/netlink.c
404
sockfd_put(sock);
drivers/net/ovpn/netlink.c
413
if (sock->sk->sk_protocol == IPPROTO_TCP &&
drivers/net/ovpn/netlink.c
418
sockfd_put(sock);
drivers/net/ovpn/netlink.c
423
ovpn_sock = ovpn_socket_new(sock, peer);
drivers/net/ovpn/netlink.c
430
sockfd_put(sock);
drivers/net/ovpn/netlink.c
439
rcu_assign_pointer(peer->sock, ovpn_sock);
drivers/net/ovpn/netlink.c
470
struct ovpn_socket *sock;
drivers/net/ovpn/netlink.c
503
sock = rcu_dereference(peer->sock);
drivers/net/ovpn/netlink.c
504
if (sock && sock->sk->sk_protocol == IPPROTO_TCP &&
drivers/net/ovpn/netlink.c
539
struct ovpn_socket *sock;
drivers/net/ovpn/netlink.c
556
sock = rcu_dereference(peer->sock);
drivers/net/ovpn/netlink.c
557
if (!sock) {
drivers/net/ovpn/netlink.c
562
if (!net_eq(genl_info_net(info), sock_net(sock->sk))) {
drivers/net/ovpn/netlink.c
564
sock_net(sock->sk),
drivers/net/ovpn/netlink.c
569
local_port = inet_sk(sock->sk)->inet_sport;
drivers/net/ovpn/peer.c
1131
static void ovpn_peer_release_p2p(struct ovpn_priv *ovpn, struct sock *sk,
drivers/net/ovpn/peer.c
1147
ovpn_sock = rcu_access_pointer(peer->sock);
drivers/net/ovpn/peer.c
1159
static void ovpn_peers_release_mp(struct ovpn_priv *ovpn, struct sock *sk,
drivers/net/ovpn/peer.c
1177
ovpn_sock = rcu_dereference(peer->sock);
drivers/net/ovpn/peer.c
1195
void ovpn_peers_free(struct ovpn_priv *ovpn, struct sock *sk,
drivers/net/ovpn/peer.h
143
void ovpn_peers_free(struct ovpn_priv *ovpn, struct sock *sock,
drivers/net/ovpn/peer.h
75
struct ovpn_socket __rcu *sock;
drivers/net/ovpn/peer.h
90
void (*sk_data_ready)(struct sock *sk);
drivers/net/ovpn/peer.h
91
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
160
static int ovpn_tcp_recvmsg(struct sock *sk, struct msghdr *msg, size_t len,
drivers/net/ovpn/tcp.c
164
struct ovpn_socket *sock;
drivers/net/ovpn/tcp.c
169
sock = rcu_dereference_sk_user_data(sk);
drivers/net/ovpn/tcp.c
170
if (unlikely(!sock || !sock->peer || !ovpn_peer_hold(sock->peer))) {
drivers/net/ovpn/tcp.c
174
peer = sock->peer;
drivers/net/ovpn/tcp.c
212
struct sock *sk = ovpn_sock->sk;
drivers/net/ovpn/tcp.c
238
void ovpn_tcp_socket_wait_finish(struct ovpn_socket *sock)
drivers/net/ovpn/tcp.c
240
struct ovpn_peer *peer = sock->peer;
drivers/net/ovpn/tcp.c
247
cancel_work_sync(&sock->tcp_tx_work);
drivers/net/ovpn/tcp.c
255
static void ovpn_tcp_send_sock(struct ovpn_peer *peer, struct sock *sk)
drivers/net/ovpn/tcp.c
317
struct ovpn_socket *sock;
drivers/net/ovpn/tcp.c
319
sock = container_of(work, struct ovpn_socket, tcp_tx_work);
drivers/net/ovpn/tcp.c
321
lock_sock(sock->sk);
drivers/net/ovpn/tcp.c
322
if (sock->peer)
drivers/net/ovpn/tcp.c
323
ovpn_tcp_send_sock(sock->peer, sock->sk);
drivers/net/ovpn/tcp.c
324
release_sock(sock->sk);
drivers/net/ovpn/tcp.c
327
static void ovpn_tcp_send_sock_skb(struct ovpn_peer *peer, struct sock *sk,
drivers/net/ovpn/tcp.c
345
void ovpn_tcp_send_skb(struct ovpn_peer *peer, struct sock *sk,
drivers/net/ovpn/tcp.c
368
static void ovpn_tcp_release(struct sock *sk)
drivers/net/ovpn/tcp.c
371
struct ovpn_socket *sock;
drivers/net/ovpn/tcp.c
376
sock = rcu_dereference_sk_user_data(sk);
drivers/net/ovpn/tcp.c
377
if (!sock) {
drivers/net/ovpn/tcp.c
382
peer = sock->peer;
drivers/net/ovpn/tcp.c
403
static int ovpn_tcp_sendmsg(struct sock *sk, struct msghdr *msg, size_t size)
drivers/net/ovpn/tcp.c
405
struct ovpn_socket *sock;
drivers/net/ovpn/tcp.c
412
sock = rcu_dereference_sk_user_data(sk);
drivers/net/ovpn/tcp.c
413
if (unlikely(!sock || !sock->peer || !ovpn_peer_hold(sock->peer))) {
drivers/net/ovpn/tcp.c
419
peer = sock->peer;
drivers/net/ovpn/tcp.c
463
static int ovpn_tcp_disconnect(struct sock *sk, int flags)
drivers/net/ovpn/tcp.c
468
static void ovpn_tcp_data_ready(struct sock *sk)
drivers/net/ovpn/tcp.c
470
struct ovpn_socket *sock;
drivers/net/ovpn/tcp.c
475
sock = rcu_dereference_sk_user_data(sk);
drivers/net/ovpn/tcp.c
476
if (likely(sock && sock->peer))
drivers/net/ovpn/tcp.c
477
strp_data_ready(&sock->peer->tcp.strp);
drivers/net/ovpn/tcp.c
481
static void ovpn_tcp_write_space(struct sock *sk)
drivers/net/ovpn/tcp.c
483
struct ovpn_socket *sock;
drivers/net/ovpn/tcp.c
486
sock = rcu_dereference_sk_user_data(sk);
drivers/net/ovpn/tcp.c
487
if (likely(sock && sock->peer)) {
drivers/net/ovpn/tcp.c
488
schedule_work(&sock->tcp_tx_work);
drivers/net/ovpn/tcp.c
489
sock->peer->tcp.sk_cb.sk_write_space(sk);
drivers/net/ovpn/tcp.c
577
static void ovpn_tcp_close(struct sock *sk, long timeout)
drivers/net/ovpn/tcp.c
579
struct ovpn_socket *sock;
drivers/net/ovpn/tcp.c
583
sock = rcu_dereference_sk_user_data(sk);
drivers/net/ovpn/tcp.c
584
if (!sock || !sock->peer || !ovpn_peer_hold(sock->peer)) {
drivers/net/ovpn/tcp.c
588
peer = sock->peer;
drivers/net/ovpn/tcp.c
591
ovpn_peer_del(sock->peer, OVPN_DEL_PEER_REASON_TRANSPORT_DISCONNECT);
drivers/net/ovpn/tcp.c
596
static __poll_t ovpn_tcp_poll(struct file *file, struct socket *sock,
drivers/net/ovpn/tcp.c
599
struct sk_buff_head *queue = &sock->sk->sk_receive_queue;
drivers/net/ovpn/tcp.c
605
ovpn_sock = rcu_dereference_sk_user_data(sock->sk);
drivers/net/ovpn/tcp.c
622
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
146
struct dst_cache *cache, struct sock *sk,
drivers/net/ovpn/udp.c
221
struct dst_cache *cache, struct sock *sk,
drivers/net/ovpn/udp.c
298
struct sock *sk, struct sk_buff *skb)
drivers/net/ovpn/udp.c
34
static struct ovpn_socket *ovpn_socket_from_udp_sock(struct sock *sk)
drivers/net/ovpn/udp.c
341
void ovpn_udp_send_skb(struct ovpn_peer *peer, struct sock *sk,
drivers/net/ovpn/udp.c
357
static void ovpn_udp_encap_destroy(struct sock *sk)
drivers/net/ovpn/udp.c
359
struct ovpn_socket *sock;
drivers/net/ovpn/udp.c
363
sock = rcu_dereference_sk_user_data(sk);
drivers/net/ovpn/udp.c
364
if (!sock || !sock->ovpn) {
drivers/net/ovpn/udp.c
368
ovpn = sock->ovpn;
drivers/net/ovpn/udp.c
385
int ovpn_udp_socket_attach(struct ovpn_socket *ovpn_sock, struct socket *sock,
drivers/net/ovpn/udp.c
403
setup_udp_tunnel_sock(sock_net(ovpn_sock->sk), sock, &cfg);
drivers/net/ovpn/udp.c
437
struct sock *sk = ovpn_sock->sk;
drivers/net/ovpn/udp.c
68
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
107
udp_tunnel_sock_release(pfcp->sock);
drivers/net/pfcp.c
108
pfcp->sock = NULL;
drivers/net/pfcp.c
162
struct socket *sock;
drivers/net/pfcp.c
167
err = udp_sock_create(net, &udp_conf, &sock);
drivers/net/pfcp.c
175
setup_udp_tunnel_sock(net, sock, &tuncfg);
drivers/net/pfcp.c
177
return sock;
drivers/net/pfcp.c
182
pfcp->sock = pfcp_create_sock(pfcp);
drivers/net/pfcp.c
184
return PTR_ERR_OR_ZERO(pfcp->sock);
drivers/net/pfcp.c
21
struct socket *sock;
drivers/net/pfcp.c
51
static int pfcp_encap_recv(struct sock *sk, struct sk_buff *skb)
drivers/net/ppp/pppoe.c
1007
static int pppoe_recvmsg(struct socket *sock, struct msghdr *m,
drivers/net/ppp/pppoe.c
1010
struct sock *sk = sock->sk;
drivers/net/ppp/pppoe.c
284
struct sock *sk;
drivers/net/ppp/pppoe.c
369
static int pppoe_rcv_core(struct sock *sk, struct sk_buff *skb)
drivers/net/ppp/pppoe.c
459
struct sock *sk = sk_pppox(po);
drivers/net/ppp/pppoe.c
527
static void pppoe_destruct(struct sock *sk)
drivers/net/ppp/pppoe.c
537
static int pppoe_create(struct net *net, struct socket *sock, int kern)
drivers/net/ppp/pppoe.c
539
struct sock *sk;
drivers/net/ppp/pppoe.c
545
sock_init_data(sock, sk);
drivers/net/ppp/pppoe.c
548
sock->state = SS_UNCONNECTED;
drivers/net/ppp/pppoe.c
549
sock->ops = &pppoe_ops;
drivers/net/ppp/pppoe.c
564
static int pppoe_release(struct socket *sock)
drivers/net/ppp/pppoe.c
566
struct sock *sk = sock->sk;
drivers/net/ppp/pppoe.c
603
sock->sk = NULL;
drivers/net/ppp/pppoe.c
611
static int pppoe_connect(struct socket *sock, struct sockaddr_unsized *uservaddr,
drivers/net/ppp/pppoe.c
614
struct sock *sk = sock->sk;
drivers/net/ppp/pppoe.c
723
static int pppoe_getname(struct socket *sock, struct sockaddr *uaddr,
drivers/net/ppp/pppoe.c
731
memcpy(&sp.sa_addr.pppoe, &pppox_sk(sock->sk)->pppoe_pa,
drivers/net/ppp/pppoe.c
739
static int pppoe_ioctl(struct socket *sock, unsigned int cmd,
drivers/net/ppp/pppoe.c
742
struct sock *sk = sock->sk;
drivers/net/ppp/pppoe.c
840
static int pppoe_sendmsg(struct socket *sock, struct msghdr *m,
drivers/net/ppp/pppoe.c
844
struct sock *sk = sock->sk;
drivers/net/ppp/pppoe.c
87
static int __pppoe_xmit(struct sock *sk, struct sk_buff *skb);
drivers/net/ppp/pppoe.c
916
static int __pppoe_xmit(struct sock *sk, struct sk_buff *skb)
drivers/net/ppp/pppoe.c
975
struct sock *sk = chan->private;
drivers/net/ppp/pppoe.c
983
struct sock *sk = chan->private;
drivers/net/ppp/pppox.c
103
int pppox_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
drivers/net/ppp/pppox.c
108
return pppox_ioctl(sock, cmd, (unsigned long)compat_ptr(arg));
drivers/net/ppp/pppox.c
114
static int pppox_create(struct net *net, struct socket *sock, int protocol,
drivers/net/ppp/pppox.c
129
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(sk_pppox(sock));
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
1110
static int tap_sendmsg(struct socket *sock, struct msghdr *m,
drivers/net/tap.c
1113
struct tap_queue *q = container_of(sock, struct tap_queue, sock);
drivers/net/tap.c
1131
static int tap_recvmsg(struct socket *sock, struct msghdr *m,
drivers/net/tap.c
1134
struct tap_queue *q = container_of(sock, struct tap_queue, sock);
drivers/net/tap.c
1149
static int tap_peek_len(struct socket *sock)
drivers/net/tap.c
1151
struct tap_queue *q = container_of(sock, struct tap_queue,
drivers/net/tap.c
1152
sock);
drivers/net/tap.c
1175
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
1348
struct sock *sk = tfile->socket.sk;
drivers/net/tun.c
1360
struct sock *sk;
drivers/net/tun.c
1451
struct sock *sk = tfile->socket.sk;
drivers/net/tun.c
2350
static void tun_sock_write_space(struct sock *sk)
drivers/net/tun.c
2509
static int tun_sendmsg(struct socket *sock, struct msghdr *m, size_t total_len)
drivers/net/tun.c
2512
struct tun_file *tfile = container_of(sock, struct tun_file, socket);
drivers/net/tun.c
2564
static int tun_recvmsg(struct socket *sock, struct msghdr *m, size_t total_len,
drivers/net/tun.c
2567
struct tun_file *tfile = container_of(sock, struct tun_file, socket);
drivers/net/tun.c
2582
ret = sock_recv_errqueue(sock->sk, m, total_len,
drivers/net/tun.c
2616
static int tun_peek_len(struct socket *sock)
drivers/net/tun.c
2618
struct tun_file *tfile = container_of(sock, struct tun_file, socket);
drivers/net/vrf.c
1169
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
675
static int vrf_output6_direct_finish(struct net *net, struct sock *sk,
drivers/net/vrf.c
683
static int vrf_output6_direct(struct net *net, struct sock *sk,
drivers/net/vrf.c
700
static int vrf_ip6_out_direct_finish(struct net *net, struct sock *sk,
drivers/net/vrf.c
713
struct sock *sk,
drivers/net/vrf.c
734
struct sock *sk,
drivers/net/vrf.c
803
struct sock *sk,
drivers/net/vrf.c
820
static int vrf_finish_output(struct net *net, struct sock *sk, struct sk_buff *skb)
drivers/net/vrf.c
858
static int vrf_output(struct net *net, struct sock *sk, struct sk_buff *skb)
drivers/net/vrf.c
905
static int vrf_output_direct_finish(struct net *net, struct sock *sk,
drivers/net/vrf.c
913
static int vrf_output_direct(struct net *net, struct sock *sk,
drivers/net/vrf.c
930
static int vrf_ip_out_direct_finish(struct net *net, struct sock *sk,
drivers/net/vrf.c
943
struct sock *sk,
drivers/net/vrf.c
964
struct sock *sk,
drivers/net/vrf.c
983
struct sock *sk,
drivers/net/vxlan/vxlan_core.c
1497
udp_tunnel_notify_del_rx_port(vs->sock,
drivers/net/vxlan/vxlan_core.c
1523
udp_tunnel_sock_release(sock4->sock);
drivers/net/vxlan/vxlan_core.c
1529
udp_tunnel_sock_release(sock6->sock);
drivers/net/vxlan/vxlan_core.c
1644
static int vxlan_rcv(struct sock *sk, struct sk_buff *skb)
drivers/net/vxlan/vxlan_core.c
1813
static int vxlan_err_lookup(struct sock *sk, struct sk_buff *skb)
drivers/net/vxlan/vxlan_core.c
2479
ifindex = sock4->sock->sk->sk_bound_dev_if;
drivers/net/vxlan/vxlan_core.c
2546
udp_tunnel_xmit_skb(rt, sock4->sock->sk, skb, saddr,
drivers/net/vxlan/vxlan_core.c
2563
ifindex = sock6->sock->sk->sk_bound_dev_if;
drivers/net/vxlan/vxlan_core.c
2565
ndst = udp_tunnel6_dst_lookup(skb, dev, vxlan->net, sock6->sock,
drivers/net/vxlan/vxlan_core.c
2621
udp_tunnel6_xmit_skb(ndst, sock6->sock->sk, skb, dev,
drivers/net/vxlan/vxlan_core.c
3260
ndst = udp_tunnel6_dst_lookup(skb, dev, vxlan->net, sock6->sock,
drivers/net/vxlan/vxlan_core.c
3338
udp_tunnel_push_rx_port(dev, vs->sock, type);
drivers/net/vxlan/vxlan_core.c
3340
udp_tunnel_drop_rx_port(dev, vs->sock, type);
drivers/net/vxlan/vxlan_core.c
3549
struct socket *sock;
drivers/net/vxlan/vxlan_core.c
3568
err = udp_sock_create(net, &udp_conf, &sock);
drivers/net/vxlan/vxlan_core.c
3572
udp_allow_gso(sock->sk);
drivers/net/vxlan/vxlan_core.c
3573
return sock;
drivers/net/vxlan/vxlan_core.c
3582
struct socket *sock;
drivers/net/vxlan/vxlan_core.c
3595
sock = vxlan_create_sock(net, ipv6, port, flags, ifindex);
drivers/net/vxlan/vxlan_core.c
3596
if (IS_ERR(sock)) {
drivers/net/vxlan/vxlan_core.c
3598
return ERR_CAST(sock);
drivers/net/vxlan/vxlan_core.c
3601
vs->sock = sock;
drivers/net/vxlan/vxlan_core.c
3606
udp_tunnel_notify_add_rx_port(sock,
drivers/net/vxlan/vxlan_core.c
3626
setup_udp_tunnel_sock(net, sock, &tunnel_cfg);
drivers/net/vxlan/vxlan_core.c
656
static struct vxlanhdr *vxlan_gro_prepare_receive(struct sock *sk,
drivers/net/vxlan/vxlan_core.c
706
static struct sk_buff *vxlan_gro_receive(struct sock *sk,
drivers/net/vxlan/vxlan_core.c
722
static struct sk_buff *vxlan_gpe_gro_receive(struct sock *sk,
drivers/net/vxlan/vxlan_core.c
748
static int vxlan_gro_complete(struct sock *sk, struct sk_buff *skb, int nhoff)
drivers/net/vxlan/vxlan_core.c
756
static int vxlan_gpe_gro_complete(struct sock *sk, struct sk_buff *skb, int nhoff)
drivers/net/vxlan/vxlan_core.c
92
if (inet_sk(vs->sock->sk)->inet_sport == port &&
drivers/net/vxlan/vxlan_core.c
95
vs->sock->sk->sk_bound_dev_if == ifindex)
drivers/net/vxlan/vxlan_multicast.c
23
struct sock *sk;
drivers/net/vxlan/vxlan_multicast.c
32
sk = sock4->sock->sk;
drivers/net/vxlan/vxlan_multicast.c
40
sk = sock6->sock->sk;
drivers/net/vxlan/vxlan_multicast.c
57
struct sock *sk;
drivers/net/vxlan/vxlan_multicast.c
66
sk = sock4->sock->sk;
drivers/net/vxlan/vxlan_multicast.c
74
sk = sock6->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 = ipv6_stub->ipv6_dst_lookup_flow(sock_net(sock), sock, &fl,
drivers/net/wireguard/socket.c
152
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
316
static int wg_receive(struct sock *sk, struct sk_buff *skb)
drivers/net/wireguard/socket.c
334
static void sock_free(struct sock *sock)
drivers/net/wireguard/socket.c
336
if (unlikely(!sock))
drivers/net/wireguard/socket.c
338
sk_clear_memalloc(sock);
drivers/net/wireguard/socket.c
339
udp_tunnel_sock_release(sock->sk_socket);
drivers/net/wireguard/socket.c
342
static void set_sock_opts(struct socket *sock)
drivers/net/wireguard/socket.c
344
sock->sk->sk_allocation = GFP_ATOMIC;
drivers/net/wireguard/socket.c
345
sock->sk->sk_sndbuf = INT_MAX;
drivers/net/wireguard/socket.c
346
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
419
void wg_socket_reinit(struct wg_device *wg, struct sock *new4,
drivers/net/wireguard/socket.c
420
struct sock *new6)
drivers/net/wireguard/socket.c
422
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
989
ret = kernel_connect(qmi_hdl->sock, (struct sockaddr_unsized *)&qmi->sq,
drivers/net/wireless/ath/ath11k/qmi.c
3180
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
1063
static void nvme_tcp_data_ready(struct sock *sk)
drivers/nvme/host/tcp.c
1077
static void nvme_tcp_write_space(struct sock *sk)
drivers/nvme/host/tcp.c
1093
static void nvme_tcp_state_change(struct sock *sk)
drivers/nvme/host/tcp.c
1167
ret = sock_sendmsg(queue->sock, &msg);
drivers/nvme/host/tcp.c
1223
ret = sock_sendmsg(queue->sock, &msg);
drivers/nvme/host/tcp.c
1261
ret = sock_sendmsg(queue->sock, &msg);
drivers/nvme/host/tcp.c
1294
ret = kernel_sendmsg(queue->sock, &msg, &iov, 1, iov.iov_len);
drivers/nvme/host/tcp.c
1362
struct socket *sock = queue->sock;
drivers/nvme/host/tcp.c
1363
struct sock *sk = sock->sk;
drivers/nvme/host/tcp.c
1371
consumed = sock->ops->read_sock(sk, &rd_desc, nvme_tcp_recv_skb);
drivers/nvme/host/tcp.c
1403
sk_stream_is_writeable(queue->sock->sk))
drivers/nvme/host/tcp.c
143
struct socket *sock;
drivers/nvme/host/tcp.c
1450
fput(queue->sock->file);
drivers/nvme/host/tcp.c
1451
queue->sock = NULL;
drivers/nvme/host/tcp.c
1495
ret = kernel_sendmsg(queue->sock, &msg, &iov, 1, iov.iov_len);
drivers/nvme/host/tcp.c
1510
ret = kernel_recvmsg(queue->sock, &msg, &iov, 1,
drivers/nvme/host/tcp.c
1521
ctype = tls_get_record_type(queue->sock->sk,
drivers/nvme/host/tcp.c
1725
args.ta_sock = queue->sock;
drivers/nvme/host/tcp.c
1750
tls_handshake_cancel(queue->sock->sk);
drivers/nvme/host/tcp.c
1788
IPPROTO_TCP, &queue->sock);
drivers/nvme/host/tcp.c
1795
sock_file = sock_alloc_file(queue->sock, O_CLOEXEC, NULL);
drivers/nvme/host/tcp.c
180
void (*state_change)(struct sock *);
drivers/nvme/host/tcp.c
1801
sk_net_refcnt_upgrade(queue->sock->sk);
drivers/nvme/host/tcp.c
1802
nvme_tcp_reclassify_socket(queue->sock);
drivers/nvme/host/tcp.c
1805
tcp_sock_set_syncnt(queue->sock->sk, 1);
drivers/nvme/host/tcp.c
1808
tcp_sock_set_nodelay(queue->sock->sk);
drivers/nvme/host/tcp.c
181
void (*data_ready)(struct sock *);
drivers/nvme/host/tcp.c
1815
sock_no_linger(queue->sock->sk);
drivers/nvme/host/tcp.c
1818
sock_set_priority(queue->sock->sk, so_priority);
drivers/nvme/host/tcp.c
182
void (*write_space)(struct sock *);
drivers/nvme/host/tcp.c
1822
ip_sock_set_tos(queue->sock->sk, nctrl->opts->tos);
drivers/nvme/host/tcp.c
1825
queue->sock->sk->sk_rcvtimeo = 10 * HZ;
drivers/nvme/host/tcp.c
1827
queue->sock->sk->sk_allocation = GFP_ATOMIC;
drivers/nvme/host/tcp.c
1828
queue->sock->sk->sk_use_task_frag = false;
drivers/nvme/host/tcp.c
1835
sk_set_memalloc(queue->sock->sk);
drivers/nvme/host/tcp.c
1838
ret = kernel_bind(queue->sock, (struct sockaddr_unsized *)&ctrl->src_addr,
drivers/nvme/host/tcp.c
1852
ret = sock_setsockopt(queue->sock, SOL_SOCKET, SO_BINDTODEVICE,
drivers/nvme/host/tcp.c
1876
ret = kernel_connect(queue->sock, (struct sockaddr_unsized *)&ctrl->addr,
drivers/nvme/host/tcp.c
1900
kernel_sock_shutdown(queue->sock, SHUT_RDWR);
drivers/nvme/host/tcp.c
1905
fput(queue->sock->file);
drivers/nvme/host/tcp.c
1906
queue->sock = NULL;
drivers/nvme/host/tcp.c
1915
struct socket *sock = queue->sock;
drivers/nvme/host/tcp.c
1917
write_lock_bh(&sock->sk->sk_callback_lock);
drivers/nvme/host/tcp.c
1918
sock->sk->sk_user_data = NULL;
drivers/nvme/host/tcp.c
1919
sock->sk->sk_data_ready = queue->data_ready;
drivers/nvme/host/tcp.c
1920
sock->sk->sk_state_change = queue->state_change;
drivers/nvme/host/tcp.c
1921
sock->sk->sk_write_space = queue->write_space;
drivers/nvme/host/tcp.c
1922
write_unlock_bh(&sock->sk->sk_callback_lock);
drivers/nvme/host/tcp.c
1927
kernel_sock_shutdown(queue->sock, SHUT_RDWR);
drivers/nvme/host/tcp.c
1959
!sk_wmem_alloc_get(queue->sock->sk))
drivers/nvme/host/tcp.c
1978
write_lock_bh(&queue->sock->sk->sk_callback_lock);
drivers/nvme/host/tcp.c
1979
queue->sock->sk->sk_user_data = queue;
drivers/nvme/host/tcp.c
1980
queue->state_change = queue->sock->sk->sk_state_change;
drivers/nvme/host/tcp.c
1981
queue->data_ready = queue->sock->sk->sk_data_ready;
drivers/nvme/host/tcp.c
1982
queue->write_space = queue->sock->sk->sk_write_space;
drivers/nvme/host/tcp.c
1983
queue->sock->sk->sk_data_ready = nvme_tcp_data_ready;
drivers/nvme/host/tcp.c
1984
queue->sock->sk->sk_state_change = nvme_tcp_state_change;
drivers/nvme/host/tcp.c
1985
queue->sock->sk->sk_write_space = nvme_tcp_write_space;
drivers/nvme/host/tcp.c
1987
queue->sock->sk->sk_ll_usec = 1;
drivers/nvme/host/tcp.c
1989
write_unlock_bh(&queue->sock->sk->sk_callback_lock);
drivers/nvme/host/tcp.c
2795
struct sock *sk = queue->sock->sk;
drivers/nvme/host/tcp.c
2822
ret = kernel_getsockname(queue->sock, (struct sockaddr *)&src_addr);
drivers/nvme/host/tcp.c
69
static void nvme_tcp_reclassify_socket(struct socket *sock)
drivers/nvme/host/tcp.c
71
struct sock *sk = sock->sk;
drivers/nvme/host/tcp.c
94
static void nvme_tcp_reclassify_socket(struct socket *sock) { }
drivers/nvme/target/tcp.c
1144
ctype = tls_get_record_type(queue->sock->sk, cmsg);
drivers/nvme/target/tcp.c
1151
tls_alert_recv(queue->sock->sk, msg, &level, &description);
drivers/nvme/target/tcp.c
1187
len = kernel_recvmsg(queue->sock, &msg, &iov, 1,
drivers/nvme/target/tcp.c
1251
len = sock_recvmsg(cmd->queue->sock, &cmd->recv_msg,
drivers/nvme/target/tcp.c
1293
len = kernel_recvmsg(queue->sock, &msg, &iov, 1,
drivers/nvme/target/tcp.c
1396
tls_handshake_cancel(queue->sock->sk);
drivers/nvme/target/tcp.c
149
struct socket *sock;
drivers/nvme/target/tcp.c
1550
struct socket *sock = queue->sock;
drivers/nvme/target/tcp.c
1555
write_lock_bh(&sock->sk->sk_callback_lock);
drivers/nvme/target/tcp.c
1556
sock->sk->sk_data_ready = queue->data_ready;
drivers/nvme/target/tcp.c
1557
sock->sk->sk_state_change = queue->state_change;
drivers/nvme/target/tcp.c
1558
sock->sk->sk_write_space = queue->write_space;
drivers/nvme/target/tcp.c
1559
sock->sk->sk_user_data = NULL;
drivers/nvme/target/tcp.c
1560
write_unlock_bh(&sock->sk->sk_callback_lock);
drivers/nvme/target/tcp.c
1611
fput(queue->sock->file);
drivers/nvme/target/tcp.c
1618
static void nvmet_tcp_data_ready(struct sock *sk)
drivers/nvme/target/tcp.c
1636
static void nvmet_tcp_write_space(struct sock *sk)
drivers/nvme/target/tcp.c
1658
static void nvmet_tcp_state_change(struct sock *sk)
drivers/nvme/target/tcp.c
1687
struct socket *sock = queue->sock;
drivers/nvme/target/tcp.c
1688
struct inet_sock *inet = inet_sk(sock->sk);
drivers/nvme/target/tcp.c
1691
ret = kernel_getsockname(sock,
drivers/nvme/target/tcp.c
1696
ret = kernel_getpeername(sock,
drivers/nvme/target/tcp.c
1706
sock_no_linger(sock->sk);
drivers/nvme/target/tcp.c
1709
sock_set_priority(sock->sk, so_priority);
drivers/nvme/target/tcp.c
1713
ip_sock_set_tos(sock->sk, inet->rcv_tos);
drivers/nvme/target/tcp.c
1716
write_lock_bh(&sock->sk->sk_callback_lock);
drivers/nvme/target/tcp.c
1717
if (sock->sk->sk_state != TCP_ESTABLISHED) {
drivers/nvme/target/tcp.c
1724
sock->sk->sk_user_data = queue;
drivers/nvme/target/tcp.c
1725
queue->data_ready = sock->sk->sk_data_ready;
drivers/nvme/target/tcp.c
1726
sock->sk->sk_data_ready = nvmet_tcp_data_ready;
drivers/nvme/target/tcp.c
1727
queue->state_change = sock->sk->sk_state_change;
drivers/nvme/target/tcp.c
1728
sock->sk->sk_state_change = nvmet_tcp_state_change;
drivers/nvme/target/tcp.c
1729
queue->write_space = sock->sk->sk_write_space;
drivers/nvme/target/tcp.c
1730
sock->sk->sk_write_space = nvmet_tcp_write_space;
drivers/nvme/target/tcp.c
1735
write_unlock_bh(&sock->sk->sk_callback_lock);
drivers/nvme/target/tcp.c
1759
len = kernel_recvmsg(queue->sock, &msg, &iov, 1,
drivers/nvme/target/tcp.c
1850
if (!tls_handshake_cancel(queue->sock->sk))
drivers/nvme/target/tcp.c
1876
args.ta_sock = queue->sock;
drivers/nvme/target/tcp.c
1912
queue->sock = newsock;
drivers/nvme/target/tcp.c
1925
sock_file = sock_alloc_file(queue->sock, O_CLOEXEC, NULL);
drivers/nvme/target/tcp.c
1956
struct sock *sk = queue->sock->sk;
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
198
void (*write_space)(struct sock *);
drivers/nvme/target/tcp.c
1990
fput(queue->sock->file);
drivers/nvme/target/tcp.c
2007
ret = kernel_accept(port->sock, &newsock, O_NONBLOCK);
drivers/nvme/target/tcp.c
2017
static void nvmet_tcp_listen_data_ready(struct sock *sk)
drivers/nvme/target/tcp.c
202
struct socket *sock;
drivers/nvme/target/tcp.c
206
void (*data_ready)(struct sock *);
drivers/nvme/target/tcp.c
2071
IPPROTO_TCP, &port->sock);
drivers/nvme/target/tcp.c
2077
port->sock->sk->sk_user_data = port;
drivers/nvme/target/tcp.c
2078
port->data_ready = port->sock->sk->sk_data_ready;
drivers/nvme/target/tcp.c
2079
port->sock->sk->sk_data_ready = nvmet_tcp_listen_data_ready;
drivers/nvme/target/tcp.c
2080
sock_set_reuseaddr(port->sock->sk);
drivers/nvme/target/tcp.c
2081
tcp_sock_set_nodelay(port->sock->sk);
drivers/nvme/target/tcp.c
2083
sock_set_priority(port->sock->sk, so_priority);
drivers/nvme/target/tcp.c
2085
ret = kernel_bind(port->sock, (struct sockaddr_unsized *)&port->addr,
drivers/nvme/target/tcp.c
2092
ret = kernel_listen(port->sock, NVMET_TCP_BACKLOG);
drivers/nvme/target/tcp.c
2105
sock_release(port->sock);
drivers/nvme/target/tcp.c
2118
kernel_sock_shutdown(queue->sock, SHUT_RDWR);
drivers/nvme/target/tcp.c
2126
write_lock_bh(&port->sock->sk->sk_callback_lock);
drivers/nvme/target/tcp.c
2127
port->sock->sk->sk_data_ready = port->data_ready;
drivers/nvme/target/tcp.c
2128
port->sock->sk->sk_user_data = NULL;
drivers/nvme/target/tcp.c
2129
write_unlock_bh(&port->sock->sk->sk_callback_lock);
drivers/nvme/target/tcp.c
2137
sock_release(port->sock);
drivers/nvme/target/tcp.c
2148
kernel_sock_shutdown(queue->sock, SHUT_RDWR);
drivers/nvme/target/tcp.c
2251
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
405
kernel_sock_shutdown(queue->sock, SHUT_RDWR);
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
923
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/i82092.c
376
static void set_bridge_state(int sock)
drivers/pcmcia/i82092.c
378
indirect_write(sock, I365_GBLCTL, 0x00);
drivers/pcmcia/i82092.c
379
indirect_write(sock, I365_GENCTL, 0x00);
drivers/pcmcia/i82092.c
381
indirect_setbit(sock, I365_INTCTL, 0x08);
drivers/pcmcia/i82092.c
385
static int i82092aa_init(struct pcmcia_socket *sock)
drivers/pcmcia/i82092.c
394
i82092aa_set_io_map(sock, &io);
drivers/pcmcia/i82092.c
398
i82092aa_set_mem_map(sock, &mem);
drivers/pcmcia/i82092.c
406
unsigned int sock = container_of(socket,
drivers/pcmcia/i82092.c
411
status = indirect_read(sock, I365_STATUS);
drivers/pcmcia/i82092.c
420
if (indirect_read(sock, I365_INTCTL) & I365_PC_IOCARD) {
drivers/pcmcia/i82092.c
449
unsigned int sock = sock_info->number;
drivers/pcmcia/i82092.c
454
set_bridge_state(sock);
drivers/pcmcia/i82092.c
467
indirect_write(sock, I365_INTCTL, reg);
drivers/pcmcia/i82092.c
488
sock);
drivers/pcmcia/i82092.c
501
"not setting Vpp on socket %i\n", sock);
drivers/pcmcia/i82092.c
505
"setting Vpp to 5.0 for socket %i\n", sock);
drivers/pcmcia/i82092.c
519
if (reg != indirect_read(sock, I365_POWER)) /* only write if changed */
drivers/pcmcia/i82092.c
520
indirect_write(sock, I365_POWER, reg);
drivers/pcmcia/i82092.c
544
indirect_write(sock, I365_CSCINT, reg);
drivers/pcmcia/i82092.c
545
(void)indirect_read(sock, I365_CSC);
drivers/pcmcia/i82092.c
555
unsigned int sock = sock_info->number;
drivers/pcmcia/i82092.c
569
if (indirect_read(sock, I365_ADDRWIN) & I365_ENA_IO(map))
drivers/pcmcia/i82092.c
570
indirect_resetbit(sock, I365_ADDRWIN, I365_ENA_IO(map));
drivers/pcmcia/i82092.c
573
indirect_write16(sock, I365_IO(map)+I365_W_START, io->start);
drivers/pcmcia/i82092.c
574
indirect_write16(sock, I365_IO(map)+I365_W_STOP, io->stop);
drivers/pcmcia/i82092.c
576
ioctl = indirect_read(sock, I365_IOCTL) & ~I365_IOCTL_MASK(map);
drivers/pcmcia/i82092.c
581
indirect_write(sock, I365_IOCTL, ioctl);
drivers/pcmcia/i82092.c
585
indirect_setbit(sock, I365_ADDRWIN, I365_ENA_IO(map));
drivers/pcmcia/i82092.c
595
unsigned int sock = sock_info->number;
drivers/pcmcia/i82092.c
610
sock,
drivers/pcmcia/i82092.c
618
if (indirect_read(sock, I365_ADDRWIN) & I365_ENA_MEM(map))
drivers/pcmcia/i82092.c
619
indirect_resetbit(sock, I365_ADDRWIN, I365_ENA_MEM(map));
drivers/pcmcia/i82092.c
628
indirect_write16(sock, base+I365_W_START, i);
drivers/pcmcia/i82092.c
647
indirect_write16(sock, base+I365_W_STOP, i);
drivers/pcmcia/i82092.c
656
indirect_write16(sock, base+I365_W_OFF, i);
drivers/pcmcia/i82092.c
660
indirect_setbit(sock, I365_ADDRWIN, I365_ENA_MEM(map));
drivers/pcmcia/i82365.c
1004
if (reg != i365_get(sock, I365_POWER))
drivers/pcmcia/i82365.c
1005
i365_set(sock, I365_POWER, reg);
drivers/pcmcia/i82365.c
1010
i365_bflip(sock, PD67_MISC_CTL_1, PD67_MC1_SPKR_ENA,
drivers/pcmcia/i82365.c
1024
i365_set(sock, I365_CSCINT, reg);
drivers/pcmcia/i82365.c
1025
i365_get(sock, I365_CSC);
drivers/pcmcia/i82365.c
1032
static int i365_set_io_map(u_short sock, struct pccard_io_map *io)
drivers/pcmcia/i82365.c
1037
"%#llx-%#llx)\n", sock, io->map, io->flags, io->speed,
drivers/pcmcia/i82365.c
1043
if (i365_get(sock, I365_ADDRWIN) & I365_ENA_IO(map))
drivers/pcmcia/i82365.c
1044
i365_bclr(sock, I365_ADDRWIN, I365_ENA_IO(map));
drivers/pcmcia/i82365.c
1045
i365_set_pair(sock, I365_IO(map)+I365_W_START, io->start);
drivers/pcmcia/i82365.c
1046
i365_set_pair(sock, I365_IO(map)+I365_W_STOP, io->stop);
drivers/pcmcia/i82365.c
1047
ioctl = i365_get(sock, I365_IOCTL) & ~I365_IOCTL_MASK(map);
drivers/pcmcia/i82365.c
1052
i365_set(sock, I365_IOCTL, ioctl);
drivers/pcmcia/i82365.c
1055
i365_bset(sock, I365_ADDRWIN, I365_ENA_IO(map));
drivers/pcmcia/i82365.c
1061
static int i365_set_mem_map(u_short sock, struct pccard_mem_map *mem)
drivers/pcmcia/i82365.c
1067
"%#x)\n", sock, mem->map, mem->flags, mem->speed,
drivers/pcmcia/i82365.c
1079
if (i365_get(sock, I365_ADDRWIN) & I365_ENA_MEM(map))
drivers/pcmcia/i82365.c
1080
i365_bclr(sock, I365_ADDRWIN, I365_ENA_MEM(map));
drivers/pcmcia/i82365.c
1086
i365_set_pair(sock, base+I365_W_START, i);
drivers/pcmcia/i82365.c
1095
i365_set_pair(sock, base+I365_W_STOP, i);
drivers/pcmcia/i82365.c
1100
i365_set_pair(sock, base+I365_W_OFF, i);
drivers/pcmcia/i82365.c
1104
i365_bset(sock, I365_ADDRWIN, I365_ENA_MEM(map));
drivers/pcmcia/i82365.c
1126
unsigned short sock;
drivers/pcmcia/i82365.c
1131
sock = s->number;
drivers/pcmcia/i82365.c
1133
ISA_LOCK(sock, flags);
drivers/pcmcia/i82365.c
1136
i365_get(sock,i), i365_get(sock,i+1),
drivers/pcmcia/i82365.c
1137
i365_get(sock,i+2), i365_get(sock,i+3),
drivers/pcmcia/i82365.c
1141
ISA_UNLOCK(sock, flags);
drivers/pcmcia/i82365.c
1166
unsigned int sock = container_of(s, struct i82365_socket, socket)->number;
drivers/pcmcia/i82365.c
1168
if (socket[sock].flags & IS_ALIVE) {
drivers/pcmcia/i82365.c
1173
LOCKED(i365_get_status(sock, value));
drivers/pcmcia/i82365.c
1178
unsigned int sock = container_of(s, struct i82365_socket, socket)->number;
drivers/pcmcia/i82365.c
1180
if (socket[sock].flags & IS_ALIVE)
drivers/pcmcia/i82365.c
1183
LOCKED(i365_set_socket(sock, state));
drivers/pcmcia/i82365.c
1188
unsigned int sock = container_of(s, struct i82365_socket, socket)->number;
drivers/pcmcia/i82365.c
1189
if (socket[sock].flags & IS_ALIVE)
drivers/pcmcia/i82365.c
1192
LOCKED(i365_set_io_map(sock, io));
drivers/pcmcia/i82365.c
1197
unsigned int sock = container_of(s, struct i82365_socket, socket)->number;
drivers/pcmcia/i82365.c
1198
if (socket[sock].flags & IS_ALIVE)
drivers/pcmcia/i82365.c
1201
LOCKED(i365_set_mem_map(sock, mem));
drivers/pcmcia/i82365.c
217
static u_char i365_get(u_short sock, u_short reg)
drivers/pcmcia/i82365.c
222
unsigned int port = socket[sock].ioaddr;
drivers/pcmcia/i82365.c
224
reg = I365_REG(socket[sock].psock, reg);
drivers/pcmcia/i82365.c
231
static void i365_set(u_short sock, u_short reg, u_char data)
drivers/pcmcia/i82365.c
236
unsigned int port = socket[sock].ioaddr;
drivers/pcmcia/i82365.c
237
u_char val = I365_REG(socket[sock].psock, reg);
drivers/pcmcia/i82365.c
243
static void i365_bset(u_short sock, u_short reg, u_char mask)
drivers/pcmcia/i82365.c
245
u_char d = i365_get(sock, reg);
drivers/pcmcia/i82365.c
247
i365_set(sock, reg, d);
drivers/pcmcia/i82365.c
250
static void i365_bclr(u_short sock, u_short reg, u_char mask)
drivers/pcmcia/i82365.c
252
u_char d = i365_get(sock, reg);
drivers/pcmcia/i82365.c
254
i365_set(sock, reg, d);
drivers/pcmcia/i82365.c
257
static void i365_bflip(u_short sock, u_short reg, u_char mask, int b)
drivers/pcmcia/i82365.c
259
u_char d = i365_get(sock, reg);
drivers/pcmcia/i82365.c
264
i365_set(sock, reg, d);
drivers/pcmcia/i82365.c
267
static u_short i365_get_pair(u_short sock, u_short reg)
drivers/pcmcia/i82365.c
270
a = i365_get(sock, reg);
drivers/pcmcia/i82365.c
271
b = i365_get(sock, reg+1);
drivers/pcmcia/i82365.c
275
static void i365_set_pair(u_short sock, u_short reg, u_short data)
drivers/pcmcia/i82365.c
277
i365_set(sock, reg, data & 0xff);
drivers/pcmcia/i82365.c
278
i365_set(sock, reg+1, data >> 8);
drivers/pcmcia/i82365.c
489
static u_int __init test_irq(u_short sock, int irq)
drivers/pcmcia/i82365.c
495
irq_hits = 0; irq_sock = sock;
drivers/pcmcia/i82365.c
504
i365_set(sock, I365_CSCINT, I365_CSC_DETECT | (irq << 4));
drivers/pcmcia/i82365.c
505
i365_bset(sock, I365_GENCTL, I365_CTL_SW_IRQ);
drivers/pcmcia/i82365.c
511
i365_set(sock, I365_CSCINT, 0);
drivers/pcmcia/i82365.c
517
static u_int __init isa_scan(u_short sock, u_int mask0)
drivers/pcmcia/i82365.c
529
set_bridge_state(sock);
drivers/pcmcia/i82365.c
530
i365_set(sock, I365_CSCINT, 0);
drivers/pcmcia/i82365.c
532
if ((mask0 & (1 << i)) && (test_irq(sock, i) == 0))
drivers/pcmcia/i82365.c
535
if ((mask1 & (1 << i)) && (test_irq(sock, i) != 0))
drivers/pcmcia/i82365.c
572
static int __init identify(unsigned int port, u_short sock)
drivers/pcmcia/i82365.c
579
socket[sockets].psock = sock;
drivers/pcmcia/i82365.c
640
static int __init is_alive(u_short sock)
drivers/pcmcia/i82365.c
645
stat = i365_get(sock, I365_STATUS);
drivers/pcmcia/i82365.c
646
start = i365_get_pair(sock, I365_IO(0)+I365_W_START);
drivers/pcmcia/i82365.c
647
stop = i365_get_pair(sock, I365_IO(0)+I365_W_STOP);
drivers/pcmcia/i82365.c
649
(i365_get(sock, I365_INTCTL) & I365_PC_IOCARD) &&
drivers/pcmcia/i82365.c
650
(i365_get(sock, I365_ADDRWIN) & I365_ENA_IO(0)) &&
drivers/pcmcia/i82365.c
755
int i, j, sock, k, ns, id;
drivers/pcmcia/i82365.c
796
sock = (i & 1) << 1;
drivers/pcmcia/i82365.c
797
if (identify(port, sock) == IS_I82365DF) {
drivers/pcmcia/i82365.c
798
add_socket(port, sock, IS_VLSI);
drivers/pcmcia/i82365.c
807
sock = (i & 3);
drivers/pcmcia/i82365.c
808
id = identify(port, sock);
drivers/pcmcia/i82365.c
813
if ((ignore == i+j) || (identify(port, sock+j) < 0))
drivers/pcmcia/i82365.c
822
add_socket(port, sock+j, id); ns++;
drivers/pcmcia/i82365.c
887
static int i365_get_status(u_short sock, u_int *value)
drivers/pcmcia/i82365.c
891
status = i365_get(sock, I365_STATUS);
drivers/pcmcia/i82365.c
895
if (i365_get(sock, I365_INTCTL) & I365_PC_IOCARD)
drivers/pcmcia/i82365.c
905
if (socket[sock].type == IS_VG469) {
drivers/pcmcia/i82365.c
906
status = i365_get(sock, VG469_VSENSE);
drivers/pcmcia/i82365.c
907
if (socket[sock].psock & 1) {
drivers/pcmcia/i82365.c
916
pr_debug("GetStatus(%d) = %#4.4x\n", sock, *value);
drivers/pcmcia/i82365.c
922
static int i365_set_socket(u_short sock, socket_state_t *state)
drivers/pcmcia/i82365.c
924
struct i82365_socket *t = &socket[sock];
drivers/pcmcia/i82365.c
928
"io_irq %d, csc_mask %#2.2x)\n", sock, state->flags,
drivers/pcmcia/i82365.c
932
set_bridge_state(sock);
drivers/pcmcia/i82365.c
939
i365_set(sock, I365_INTCTL, reg);
drivers/pcmcia/i82365.c
956
i365_bset(sock, PD67_MISC_CTL_1, PD67_MC1_VCC_3V);
drivers/pcmcia/i82365.c
958
i365_bclr(sock, PD67_MISC_CTL_1, PD67_MC1_VCC_3V);
drivers/pcmcia/i82365.c
972
i365_bset(sock, VG469_VSELECT, VG469_VSEL_VCC);
drivers/pcmcia/i82365.c
974
i365_bclr(sock, VG469_VSELECT, VG469_VSEL_VCC);
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/tcic.c
363
int i, sock, ret = 0;
drivers/pcmcia/tcic.c
370
sock = 0;
drivers/pcmcia/tcic.c
381
if (tcic_getw(TCIC_ADDR) == 0xc3a5) sock = 2;
drivers/pcmcia/tcic.c
383
if (sock == 0) {
drivers/pcmcia/tcic.c
390
if (tcic_getw(TCIC_ADDR) == 0xc3a5) sock = 2;
drivers/pcmcia/tcic.c
394
if (sock == 0) {
drivers/pcmcia/tcic.c
402
for (i = 0; i < sock; i++) {
drivers/pcmcia/tcic.c
593
static int tcic_get_status(struct pcmcia_socket *sock, u_int *value)
drivers/pcmcia/tcic.c
595
u_short psock = container_of(sock, struct tcic_socket, socket)->psock;
drivers/pcmcia/tcic.c
613
dev_dbg(&sock->dev, "GetStatus(%d) = %#2.2x\n", psock, *value);
drivers/pcmcia/tcic.c
619
static int tcic_set_socket(struct pcmcia_socket *sock, socket_state_t *state)
drivers/pcmcia/tcic.c
621
u_short psock = container_of(sock, struct tcic_socket, socket)->psock;
drivers/pcmcia/tcic.c
625
dev_dbg(&sock->dev, "SetSocket(%d, flags %#3.3x, Vcc %d, Vpp %d, "
drivers/pcmcia/tcic.c
694
static int tcic_set_io_map(struct pcmcia_socket *sock, struct pccard_io_map *io)
drivers/pcmcia/tcic.c
696
u_short psock = container_of(sock, struct tcic_socket, socket)->psock;
drivers/pcmcia/tcic.c
700
dev_dbg(&sock->dev, "SetIOMap(%d, %d, %#2.2x, %d ns, "
drivers/pcmcia/tcic.c
731
static int tcic_set_mem_map(struct pcmcia_socket *sock, struct pccard_mem_map *mem)
drivers/pcmcia/tcic.c
733
u_short psock = container_of(sock, struct tcic_socket, socket)->psock;
drivers/pcmcia/tcic.c
737
dev_dbg(&sock->dev, "SetMemMap(%d, %d, %#2.2x, %d ns, "
drivers/pcmcia/tcic.h
102
#define TCIC_PWR_VCC(sock) (0x01<<(sock))
drivers/pcmcia/tcic.h
104
#define TCIC_PWR_VPP(sock) (0x08<<(sock))
drivers/pcmcia/tcic.h
185
#define TCIC_SCF1(sock) ((sock)<<3)
drivers/pcmcia/tcic.h
186
#define TCIC_SCF2(sock) (((sock)<<3)+2)
drivers/pcmcia/tcic.h
217
#define TCIC_MWIN(sock,map) (0x100+(((map)+((sock)<<2))<<3))
drivers/pcmcia/tcic.h
245
#define TCIC_IWIN(sock,map) (0x200+(((map)+((sock)<<1))<<2))
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
803
struct yenta_socket *sock = pci_get_drvdata(dev);
drivers/pcmcia/yenta_socket.c
809
pcmcia_unregister_socket(&sock->socket);
drivers/pcmcia/yenta_socket.c
812
cb_writel(sock, CB_SOCKET_MASK, 0x0);
drivers/pcmcia/yenta_socket.c
813
exca_writeb(sock, I365_CSCINT, 0);
drivers/pcmcia/yenta_socket.c
815
if (sock->cb_irq)
drivers/pcmcia/yenta_socket.c
816
free_irq(sock->cb_irq, sock);
drivers/pcmcia/yenta_socket.c
818
timer_shutdown_sync(&sock->poll_timer);
drivers/pcmcia/yenta_socket.c
820
iounmap(sock->base);
drivers/pcmcia/yenta_socket.c
821
yenta_free_resources(sock);
drivers/pcmcia/yenta_socket.c
826
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
213
if (!hsmp_pdev.sock || msg->sock_ind >= hsmp_pdev.num_sockets)
drivers/platform/x86/amd/hsmp/hsmp.c
215
sock = &hsmp_pdev.sock[msg->sock_ind];
drivers/platform/x86/amd/hsmp/hsmp.c
217
ret = down_interruptible(&sock->hsmp_sem);
drivers/platform/x86/amd/hsmp/hsmp.c
221
ret = __hsmp_send_message(sock, msg);
drivers/platform/x86/amd/hsmp/hsmp.c
223
up(&sock->hsmp_sem);
drivers/platform/x86/amd/hsmp/hsmp.c
273
dev_err(hsmp_pdev.sock[sock_ind].dev,
drivers/platform/x86/amd/hsmp/hsmp.c
351
ssize_t hsmp_metric_tbl_read(struct hsmp_socket *sock, char *buf, size_t size)
drivers/platform/x86/amd/hsmp/hsmp.c
356
if (!sock || !buf)
drivers/platform/x86/amd/hsmp/hsmp.c
359
if (!sock->metric_tbl_addr) {
drivers/platform/x86/amd/hsmp/hsmp.c
360
dev_err(sock->dev, "Metrics table address not available\n");
drivers/platform/x86/amd/hsmp/hsmp.c
366
dev_err(sock->dev, "Wrong buffer size\n");
drivers/platform/x86/amd/hsmp/hsmp.c
371
msg.sock_ind = sock->sock_ind;
drivers/platform/x86/amd/hsmp/hsmp.c
376
memcpy_fromio(buf, sock->metric_tbl_addr, size);
drivers/platform/x86/amd/hsmp/hsmp.c
384
struct hsmp_socket *sock = &hsmp_pdev.sock[sock_ind];
drivers/platform/x86/amd/hsmp/hsmp.c
403
dev_err(sock->dev, "Invalid DRAM address for metric table\n");
drivers/platform/x86/amd/hsmp/hsmp.c
406
sock->metric_tbl_addr = devm_ioremap(sock->dev, dram_addr,
drivers/platform/x86/amd/hsmp/hsmp.c
408
if (!sock->metric_tbl_addr) {
drivers/platform/x86/amd/hsmp/hsmp.c
409
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
166
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
2569
if ((conn->sock->sk->sk_shutdown & SEND_SHUTDOWN) ||
drivers/target/iscsi/iscsi_target.c
2570
(conn->sock->sk->sk_shutdown & RCV_SHUTDOWN)) {
drivers/target/iscsi/iscsi_target.c
2756
if ((conn->sock->sk->sk_shutdown & SEND_SHUTDOWN) ||
drivers/target/iscsi/iscsi_target.c
2757
(conn->sock->sk->sk_shutdown & RCV_SHUTDOWN)) {
drivers/target/iscsi/iscsi_target.c
4355
if (conn->sock)
drivers/target/iscsi/iscsi_target.c
4356
sock_release(conn->sock);
drivers/target/iscsi/iscsi_target.c
4594
if (l_conn->sock)
drivers/target/iscsi/iscsi_target.c
4595
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
1330
if (conn->sock) {
drivers/target/iscsi/iscsi_target_nego.c
1331
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
305
int usbip_recv(struct socket *sock, void *buf, int size);
drivers/vhost/net.c
1012
static int vhost_net_rx_peek_head_len(struct vhost_net *net, struct sock *sk,
drivers/vhost/net.c
1157
struct socket *sock;
drivers/vhost/net.c
1164
sock = vhost_vq_get_backend(vq);
drivers/vhost/net.c
1165
if (!sock)
drivers/vhost/net.c
1184
sock_len = vhost_net_rx_peek_head_len(net, sock->sk,
drivers/vhost/net.c
1218
err = sock->ops->recvmsg(sock, &msg,
drivers/vhost/net.c
1232
err = sock->ops->recvmsg(sock, &msg,
drivers/vhost/net.c
1391
struct socket *sock;
drivers/vhost/net.c
1396
sock = vhost_vq_get_backend(vq);
drivers/vhost/net.c
1402
return sock;
drivers/vhost/net.c
1459
struct socket *sock = sockfd_lookup(fd, &r);
drivers/vhost/net.c
1461
if (!sock)
drivers/vhost/net.c
1465
if (sock->sk->sk_type != SOCK_RAW) {
drivers/vhost/net.c
1470
if (sock->sk->sk_family != AF_PACKET) {
drivers/vhost/net.c
1474
return sock;
drivers/vhost/net.c
1476
sockfd_put(sock);
drivers/vhost/net.c
1497
struct socket *sock;
drivers/vhost/net.c
1501
sock = tun_get_socket(file);
drivers/vhost/net.c
1502
if (!IS_ERR(sock))
drivers/vhost/net.c
1503
return sock;
drivers/vhost/net.c
1504
sock = tap_get_socket(file);
drivers/vhost/net.c
1505
if (IS_ERR(sock))
drivers/vhost/net.c
1507
return sock;
drivers/vhost/net.c
1512
struct socket *sock;
drivers/vhost/net.c
1517
sock = get_raw_socket(fd);
drivers/vhost/net.c
1518
if (!IS_ERR(sock))
drivers/vhost/net.c
1519
return sock;
drivers/vhost/net.c
1520
sock = get_tap_socket(fd);
drivers/vhost/net.c
1521
if (!IS_ERR(sock))
drivers/vhost/net.c
1522
return sock;
drivers/vhost/net.c
1528
struct socket *sock, *oldsock;
drivers/vhost/net.c
1555
sock = get_socket(fd);
drivers/vhost/net.c
1556
if (IS_ERR(sock)) {
drivers/vhost/net.c
1557
r = PTR_ERR(sock);
drivers/vhost/net.c
1563
if (sock != oldsock) {
drivers/vhost/net.c
1565
sock && vhost_sock_zcopy(sock));
drivers/vhost/net.c
1572
vhost_vq_set_backend(vq, sock);
drivers/vhost/net.c
1581
if (sock)
drivers/vhost/net.c
1582
nvq->rx_ring = get_tap_ptr_ring(sock->file);
drivers/vhost/net.c
1618
if (sock)
drivers/vhost/net.c
1619
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
450
struct socket *sock;
drivers/vhost/net.c
452
sock = vhost_vq_get_backend(vq);
drivers/vhost/net.c
453
if (!sock)
drivers/vhost/net.c
456
return vhost_poll_start(poll, sock->file);
drivers/vhost/net.c
475
struct socket *sock,
drivers/vhost/net.c
497
err = sock->ops->sendmsg(sock, msghdr, 0);
drivers/vhost/net.c
517
static int sock_has_rx_data(struct socket *sock)
drivers/vhost/net.c
519
if (unlikely(!sock))
drivers/vhost/net.c
522
if (sock->ops->peek_len)
drivers/vhost/net.c
523
return sock->ops->peek_len(sock);
drivers/vhost/net.c
525
return skb_queue_empty(&sock->sk->sk_receive_queue);
drivers/vhost/net.c
547
struct socket *sock;
drivers/vhost/net.c
558
sock = vhost_vq_get_backend(rvq);
drivers/vhost/net.c
572
if ((sock_has_rx_data(sock) &&
drivers/vhost/net.c
582
if (poll_rx || sock_has_rx_data(sock))
drivers/vhost/net.c
687
struct socket *sock = vhost_vq_get_backend(vq);
drivers/vhost/net.c
691
int headroom = vhost_sock_xdp(sock) ? XDP_PACKET_HEADROOM : 0;
drivers/vhost/net.c
752
static void handle_tx_copy(struct vhost_net *net, struct socket *sock)
drivers/vhost/net.c
768
bool sock_can_batch = (sock->sk->sk_sndbuf == INT_MAX);
drivers/vhost/net.c
776
vhost_tx_batch(net, nvq, sock, &msg);
drivers/vhost/net.c
789
vhost_tx_batch(net, nvq, sock, &msg);
drivers/vhost/net.c
810
vhost_tx_batch(net, nvq, sock, &msg);
drivers/vhost/net.c
821
vhost_tx_batch(net, nvq, sock, &msg);
drivers/vhost/net.c
831
err = sock->ops->sendmsg(sock, &msg, len);
drivers/vhost/net.c
852
vhost_tx_batch(net, nvq, sock, &msg);
drivers/vhost/net.c
855
static void handle_tx_zerocopy(struct vhost_net *net, struct socket *sock)
drivers/vhost/net.c
933
err = sock->ops->sendmsg(sock, &msg, len);
drivers/vhost/net.c
969
struct socket *sock;
drivers/vhost/net.c
972
sock = vhost_vq_get_backend(vq);
drivers/vhost/net.c
973
if (!sock)
drivers/vhost/net.c
982
if (vhost_sock_zcopy(sock))
drivers/vhost/net.c
983
handle_tx_zerocopy(net, sock);
drivers/vhost/net.c
985
handle_tx_copy(net, sock);
drivers/vhost/net.c
991
static int peek_head_len(struct vhost_net_virtqueue *rvq, struct sock *sk)
drivers/vhost/vsock.c
721
static void vhost_vsock_reset_orphans(struct sock *sk)
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
1003
map = pvcalls_enter_sock(sock);
drivers/xen/pvcalls-front.c
1012
pvcalls_exit_sock(sock);
drivers/xen/pvcalls-front.c
1017
int pvcalls_front_release(struct socket *sock)
drivers/xen/pvcalls-front.c
1024
if (sock->sk == NULL)
drivers/xen/pvcalls-front.c
1027
map = pvcalls_enter_sock(sock);
drivers/xen/pvcalls-front.c
1040
pvcalls_exit_sock(sock);
drivers/xen/pvcalls-front.c
1043
sock->sk->sk_send_head = NULL;
drivers/xen/pvcalls-front.c
107
map = (struct sock_mapping *)sock->sk->sk_send_head;
drivers/xen/pvcalls-front.c
1118
map->sock->sk->sk_send_head = NULL;
drivers/xen/pvcalls-front.c
116
static inline void pvcalls_exit_sock(struct socket *sock)
drivers/xen/pvcalls-front.c
120
map = (struct sock_mapping *)sock->sk->sk_send_head;
drivers/xen/pvcalls-front.c
270
int pvcalls_front_socket(struct socket *sock)
drivers/xen/pvcalls-front.c
28
.obj_size = sizeof(struct sock),
drivers/xen/pvcalls-front.c
284
if (sock->type != SOCK_STREAM)
drivers/xen/pvcalls-front.c
316
sock->sk->sk_send_head = (void *)map;
drivers/xen/pvcalls-front.c
423
int pvcalls_front_connect(struct socket *sock, struct sockaddr *addr,
drivers/xen/pvcalls-front.c
432
if (addr->sa_family != AF_INET || sock->type != SOCK_STREAM)
drivers/xen/pvcalls-front.c
435
map = pvcalls_enter_sock(sock);
drivers/xen/pvcalls-front.c
442
pvcalls_exit_sock(sock);
drivers/xen/pvcalls-front.c
448
pvcalls_exit_sock(sock);
drivers/xen/pvcalls-front.c
457
pvcalls_exit_sock(sock);
drivers/xen/pvcalls-front.c
471
map->sock = sock;
drivers/xen/pvcalls-front.c
487
pvcalls_exit_sock(sock);
drivers/xen/pvcalls-front.c
543
int pvcalls_front_sendmsg(struct socket *sock, struct msghdr *msg,
drivers/xen/pvcalls-front.c
554
map = pvcalls_enter_sock(sock);
drivers/xen/pvcalls-front.c
561
pvcalls_exit_sock(sock);
drivers/xen/pvcalls-front.c
583
pvcalls_exit_sock(sock);
drivers/xen/pvcalls-front.c
59
struct socket *sock;
drivers/xen/pvcalls-front.c
637
int pvcalls_front_recvmsg(struct socket *sock, struct msghdr *msg, size_t len,
drivers/xen/pvcalls-front.c
646
map = pvcalls_enter_sock(sock);
drivers/xen/pvcalls-front.c
669
pvcalls_exit_sock(sock);
drivers/xen/pvcalls-front.c
674
int pvcalls_front_bind(struct socket *sock, struct sockaddr *addr, int addr_len)
drivers/xen/pvcalls-front.c
681
if (addr->sa_family != AF_INET || sock->type != SOCK_STREAM)
drivers/xen/pvcalls-front.c
684
map = pvcalls_enter_sock(sock);
drivers/xen/pvcalls-front.c
693
pvcalls_exit_sock(sock);
drivers/xen/pvcalls-front.c
698
map->sock = sock;
drivers/xen/pvcalls-front.c
723
pvcalls_exit_sock(sock);
drivers/xen/pvcalls-front.c
728
int pvcalls_front_listen(struct socket *sock, int backlog)
drivers/xen/pvcalls-front.c
735
map = pvcalls_enter_sock(sock);
drivers/xen/pvcalls-front.c
741
pvcalls_exit_sock(sock);
drivers/xen/pvcalls-front.c
749
pvcalls_exit_sock(sock);
drivers/xen/pvcalls-front.c
773
pvcalls_exit_sock(sock);
drivers/xen/pvcalls-front.c
778
int pvcalls_front_accept(struct socket *sock, struct socket *newsock,
drivers/xen/pvcalls-front.c
788
map = pvcalls_enter_sock(sock);
drivers/xen/pvcalls-front.c
794
pvcalls_exit_sock(sock);
drivers/xen/pvcalls-front.c
812
pvcalls_exit_sock(sock);
drivers/xen/pvcalls-front.c
818
pvcalls_exit_sock(sock);
drivers/xen/pvcalls-front.c
827
pvcalls_exit_sock(sock);
drivers/xen/pvcalls-front.c
835
pvcalls_exit_sock(sock);
drivers/xen/pvcalls-front.c
844
pvcalls_exit_sock(sock);
drivers/xen/pvcalls-front.c
855
pvcalls_exit_sock(sock);
drivers/xen/pvcalls-front.c
878
pvcalls_exit_sock(sock);
drivers/xen/pvcalls-front.c
884
pvcalls_exit_sock(sock);
drivers/xen/pvcalls-front.c
891
map2->sock = newsock;
drivers/xen/pvcalls-front.c
892
newsock->sk = sk_alloc(sock_net(sock->sk), PF_INET, GFP_KERNEL, &pvcalls_proto, false);
drivers/xen/pvcalls-front.c
899
pvcalls_exit_sock(sock);
drivers/xen/pvcalls-front.c
911
pvcalls_exit_sock(sock);
drivers/xen/pvcalls-front.c
99
static inline struct sock_mapping *pvcalls_enter_sock(struct socket *sock)
drivers/xen/pvcalls-front.c
996
__poll_t pvcalls_front_poll(struct file *file, struct socket *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
1296
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
324
static void afs_notify_end_request_tx(struct sock *sock,
fs/afs/rxrpc.c
678
static void afs_wake_up_call_waiter(struct sock *sk, struct rxrpc_call *rxcall,
fs/afs/rxrpc.c
691
static void afs_wake_up_async_call(struct sock *sk, struct rxrpc_call *rxcall,
fs/afs/rxrpc.c
784
static void afs_rx_new_call(struct sock *sk, struct rxrpc_call *rxcall,
fs/afs/rxrpc.c
837
static void afs_notify_end_reply_tx(struct sock *sock,
fs/afs/rxrpc.c
981
static void afs_rx_notify_oob(struct sock *sk, struct sk_buff *oob)
fs/dlm/lowcomms.c
1051
if (newcon->sock) {
fs/dlm/lowcomms.c
1077
lock_sock(othercon->sock->sk);
fs/dlm/lowcomms.c
1079
release_sock(othercon->sock->sk);
fs/dlm/lowcomms.c
1089
lock_sock(newcon->sock->sk);
fs/dlm/lowcomms.c
1091
release_sock(newcon->sock->sk);
fs/dlm/lowcomms.c
1126
static int sctp_bind_addrs(struct socket *sock, __be16 port)
fs/dlm/lowcomms.c
1137
result = kernel_bind(sock, addr, addr_len);
fs/dlm/lowcomms.c
1139
result = sock_bind_add(sock->sk, addr, addr_len);
fs/dlm/lowcomms.c
118
struct socket *sock;
fs/dlm/lowcomms.c
1387
ret = sock_sendmsg(con->sock, &msg);
fs/dlm/lowcomms.c
1390
lock_sock(con->sock->sk);
fs/dlm/lowcomms.c
1392
if (test_bit(SOCKWQ_ASYNC_NOSPACE, &con->sock->flags) &&
fs/dlm/lowcomms.c
1397
set_bit(SOCK_NOSPACE, &con->sock->sk->sk_socket->flags);
fs/dlm/lowcomms.c
1398
con->sock->sk->sk_write_pending++;
fs/dlm/lowcomms.c
1402
release_sock(con->sock->sk);
fs/dlm/lowcomms.c
1408
release_sock(con->sock->sk);
fs/dlm/lowcomms.c
1438
WARN_ON_ONCE(con->sock);
fs/dlm/lowcomms.c
1490
if (!con->sock) {
fs/dlm/lowcomms.c
1557
if (WARN_ON_ONCE(!listen_con.sock))
fs/dlm/lowcomms.c
1572
struct socket *sock;
fs/dlm/lowcomms.c
1585
SOCK_STREAM, dlm_proto_ops->proto, &sock);
fs/dlm/lowcomms.c
1589
sock_set_mark(sock->sk, mark);
fs/dlm/lowcomms.c
1590
dlm_proto_ops->sockopts(sock);
fs/dlm/lowcomms.c
1592
result = dlm_proto_ops->bind(sock);
fs/dlm/lowcomms.c
1594
sock_release(sock);
fs/dlm/lowcomms.c
1598
add_sock(sock, con);
fs/dlm/lowcomms.c
1602
result = kernel_connect(sock, (struct sockaddr_unsized *)&addr, addr_len, 0);
fs/dlm/lowcomms.c
1611
dlm_close_sock(&con->sock);
fs/dlm/lowcomms.c
1628
if (!con->sock) {
fs/dlm/lowcomms.c
1631
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
1723
lock_sock(listen_con.sock->sk);
fs/dlm/lowcomms.c
1724
listen_con.sock->sk->sk_data_ready = listen_sock.sk_data_ready;
fs/dlm/lowcomms.c
1725
release_sock(listen_con.sock->sk);
fs/dlm/lowcomms.c
1728
dlm_close_sock(&listen_con.sock);
fs/dlm/lowcomms.c
173
void (*sk_error_report)(struct 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
1755
struct socket *sock;
fs/dlm/lowcomms.c
176
void (*sk_write_space)(struct sock *);
fs/dlm/lowcomms.c
1766
SOCK_STREAM, dlm_proto_ops->proto, &sock);
fs/dlm/lowcomms.c
1772
sock_set_mark(sock->sk, dlm_config.ci_mark);
fs/dlm/lowcomms.c
1773
dlm_proto_ops->listen_sockopts(sock);
fs/dlm/lowcomms.c
1775
result = dlm_proto_ops->listen_bind(sock);
fs/dlm/lowcomms.c
1779
lock_sock(sock->sk);
fs/dlm/lowcomms.c
1780
listen_sock.sk_data_ready = sock->sk->sk_data_ready;
fs/dlm/lowcomms.c
1781
listen_sock.sk_write_space = sock->sk->sk_write_space;
fs/dlm/lowcomms.c
1782
listen_sock.sk_error_report = sock->sk->sk_error_report;
fs/dlm/lowcomms.c
1783
listen_sock.sk_state_change = sock->sk->sk_state_change;
fs/dlm/lowcomms.c
1785
listen_con.sock = sock;
fs/dlm/lowcomms.c
1787
sock->sk->sk_allocation = GFP_NOFS;
fs/dlm/lowcomms.c
1788
sock->sk->sk_use_task_frag = false;
fs/dlm/lowcomms.c
1789
sock->sk->sk_data_ready = lowcomms_listen_data_ready;
fs/dlm/lowcomms.c
1790
release_sock(sock->sk);
fs/dlm/lowcomms.c
1792
result = sock->ops->listen(sock, 128);
fs/dlm/lowcomms.c
1794
dlm_close_sock(&listen_con.sock);
fs/dlm/lowcomms.c
1801
sock_release(sock);
fs/dlm/lowcomms.c
1805
static int dlm_tcp_bind(struct socket *sock)
fs/dlm/lowcomms.c
1816
result = kernel_bind(sock, (struct sockaddr_unsized *)&src_addr,
fs/dlm/lowcomms.c
1837
static void dlm_tcp_sockopts(struct socket *sock)
fs/dlm/lowcomms.c
1840
tcp_sock_set_nodelay(sock->sk);
fs/dlm/lowcomms.c
1843
static void dlm_tcp_listen_sockopts(struct socket *sock)
fs/dlm/lowcomms.c
1845
dlm_tcp_sockopts(sock);
fs/dlm/lowcomms.c
1846
sock_set_reuseaddr(sock->sk);
fs/dlm/lowcomms.c
1849
static int dlm_tcp_listen_bind(struct socket *sock)
fs/dlm/lowcomms.c
1855
return kernel_bind(sock, (struct sockaddr_unsized *)&dlm_local_addr[0],
fs/dlm/lowcomms.c
1870
static int dlm_sctp_bind(struct socket *sock)
fs/dlm/lowcomms.c
1872
return sctp_bind_addrs(sock, 0);
fs/dlm/lowcomms.c
1886
static int dlm_sctp_bind_listen(struct socket *sock)
fs/dlm/lowcomms.c
1888
return sctp_bind_addrs(sock, dlm_config.ci_tcp_port);
fs/dlm/lowcomms.c
1891
static void dlm_sctp_sockopts(struct socket *sock)
fs/dlm/lowcomms.c
1894
sctp_sock_set_nodelay(sock->sk);
fs/dlm/lowcomms.c
1895
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
506
static void lowcomms_data_ready(struct sock *sk)
fs/dlm/lowcomms.c
516
static void lowcomms_write_space(struct sock *sk)
fs/dlm/lowcomms.c
520
clear_bit(SOCK_NOSPACE, &con->sock->flags);
fs/dlm/lowcomms.c
524
con->sock->sk->sk_write_pending--;
fs/dlm/lowcomms.c
525
clear_bit(SOCKWQ_ASYNC_NOSPACE, &con->sock->flags);
fs/dlm/lowcomms.c
532
static void lowcomms_state_change(struct sock *sk)
fs/dlm/lowcomms.c
541
static void lowcomms_listen_data_ready(struct sock *sk)
fs/dlm/lowcomms.c
561
if (!con->sock) {
fs/dlm/lowcomms.c
592
static void lowcomms_error_report(struct sock *sk)
fs/dlm/lowcomms.c
631
static void restore_callbacks(struct sock *sk)
fs/dlm/lowcomms.c
645
static void add_sock(struct socket *sock, struct connection *con)
fs/dlm/lowcomms.c
647
struct sock *sk = sock->sk;
fs/dlm/lowcomms.c
650
con->sock = sock;
fs/dlm/lowcomms.c
70
struct socket *sock; /* NULL if not connected */
fs/dlm/lowcomms.c
717
static void dlm_close_sock(struct socket **sock)
fs/dlm/lowcomms.c
719
lock_sock((*sock)->sk);
fs/dlm/lowcomms.c
720
restore_callbacks((*sock)->sk);
fs/dlm/lowcomms.c
721
release_sock((*sock)->sk);
fs/dlm/lowcomms.c
723
sock_release(*sock);
fs/dlm/lowcomms.c
724
*sock = NULL;
fs/dlm/lowcomms.c
744
if (con->sock) {
fs/dlm/lowcomms.c
745
lock_sock(con->sock->sk);
fs/dlm/lowcomms.c
746
restore_callbacks(con->sock->sk);
fs/dlm/lowcomms.c
747
release_sock(con->sock->sk);
fs/dlm/lowcomms.c
764
if (!con->sock) {
fs/dlm/lowcomms.c
769
dlm_close_sock(&con->sock);
fs/dlm/lowcomms.c
809
if (!con->sock) {
fs/dlm/lowcomms.c
814
ret = kernel_sock_shutdown(con->sock, dlm_proto_ops->how);
fs/dlm/lowcomms.c
821
ret = wait_event_timeout(con->shutdown_wait, !con->sock,
fs/dlm/lowcomms.c
924
ret = kernel_recvmsg(con->sock, &msg, &iov, 1, iov.iov_len,
fs/dlm/lowcomms.c
928
lock_sock(con->sock->sk);
fs/dlm/lowcomms.c
930
release_sock(con->sock->sk);
fs/dlm/lowcomms.c
935
release_sock(con->sock->sk);
fs/dlm/lowcomms.c
990
result = kernel_accept(listen_con.sock, &newsock, O_NONBLOCK);
fs/eventpoll.c
476
struct socket *sock;
fs/eventpoll.c
477
struct sock *sk;
fs/eventpoll.c
482
sock = sock_from_file(epi->ffd.file);
fs/eventpoll.c
483
if (!sock)
fs/eventpoll.c
486
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
3057
cifs_reclassify_socket4(struct socket *sock)
fs/smb/client/connect.c
3059
struct sock *sk = sock->sk;
fs/smb/client/connect.c
3067
cifs_reclassify_socket6(struct socket *sock)
fs/smb/client/connect.c
3069
struct sock *sk = sock->sk;
fs/smb/client/connect.c
3077
cifs_reclassify_socket4(struct socket *sock)
fs/smb/client/connect.c
3082
cifs_reclassify_socket6(struct socket *sock)
fs/smb/client/connect.c
3361
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
365
length = kernel_recvmsg(t->sock, &ksmbd_msg,
fs/smb/server/transport_tcp.c
425
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
169
int af_alg_release(struct socket *sock);
include/crypto/if_alg.h
170
void af_alg_release_parent(struct sock *sk);
include/crypto/if_alg.h
171
int af_alg_accept(struct sock *sk, struct socket *newsock,
include/crypto/if_alg.h
176
static inline struct alg_sock *alg_sk(struct sock *sk)
include/crypto/if_alg.h
187
static inline int af_alg_sndbuf(struct sock *sk)
include/crypto/if_alg.h
202
static inline bool af_alg_writable(struct sock *sk)
include/crypto/if_alg.h
213
static inline int af_alg_rcvbuf(struct sock *sk)
include/crypto/if_alg.h
228
static inline bool af_alg_readable(struct sock *sk)
include/crypto/if_alg.h
233
unsigned int af_alg_count_tsgl(struct sock *sk, size_t bytes);
include/crypto/if_alg.h
234
void af_alg_pull_tsgl(struct sock *sk, size_t used, struct scatterlist *dst);
include/crypto/if_alg.h
235
void af_alg_wmem_wakeup(struct sock *sk);
include/crypto/if_alg.h
236
int af_alg_wait_for_data(struct sock *sk, unsigned flags, unsigned min);
include/crypto/if_alg.h
237
int af_alg_sendmsg(struct socket *sock, struct msghdr *msg, size_t size,
include/crypto/if_alg.h
241
__poll_t af_alg_poll(struct file *file, struct socket *sock,
include/crypto/if_alg.h
243
struct af_alg_async_req *af_alg_alloc_areq(struct sock *sk,
include/crypto/if_alg.h
245
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
96
struct sock *sk;
include/linux/atalk.h
37
struct sock sk;
include/linux/atalk.h
46
static inline struct atalk_sock *at_sk(struct sock *sk)
include/linux/atmdev.h
125
static inline struct atm_vcc *atm_sk(struct sock *sk)
include/linux/atmdev.h
130
static inline struct atm_vcc *ATM_SD(struct socket *sock)
include/linux/atmdev.h
132
return atm_sk(sock->sk);
include/linux/atmdev.h
135
static inline struct sock *sk_atm(struct atm_vcc *vcc)
include/linux/atmdev.h
137
return (struct sock *)vcc;
include/linux/atmdev.h
234
void vcc_insert_socket(struct sock *sk);
include/linux/atmdev.h
94
struct sock sk;
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
506
#define BPF_CGROUP_RUN_PROG_GETSOCKOPT(sock, level, optname, optval, \
include/linux/bpf-cgroup.h
508
#define BPF_CGROUP_RUN_PROG_GETSOCKOPT_KERN(sock, level, optname, optval, \
include/linux/bpf-cgroup.h
510
#define BPF_CGROUP_RUN_PROG_SETSOCKOPT(sock, level, optname, optval, optlen, \
include/linux/bpf.h
3475
void sock_map_unhash(struct sock *sk);
include/linux/bpf.h
3476
void sock_map_destroy(struct sock *sk);
include/linux/bpf.h
3477
void sock_map_close(struct sock *sk, long timeout);
include/linux/bpf.h
3597
void bpf_sk_reuseport_detach(struct sock *sk);
include/linux/bpf.h
3603
static inline void bpf_sk_reuseport_detach(struct sock *sk)
include/linux/bpf.h
3794
struct sock *sk;
include/linux/bpf.h
3795
struct sock *selected_sk;
include/linux/bpf.h
3796
struct sock *migrating_sk;
include/linux/bpf.h
43
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
1095
int sk_filter_trim_cap(struct sock *sk, struct sk_buff *skb, unsigned int cap,
include/linux/filter.h
1098
static inline int sk_filter(struct sock *sk, struct sk_buff *skb)
include/linux/filter.h
1105
static inline int sk_filter_reason(struct sock *sk, struct sk_buff *skb,
include/linux/filter.h
1140
int sk_attach_filter(struct sock_fprog *fprog, struct sock *sk);
include/linux/filter.h
1141
int sk_attach_bpf(u32 ufd, struct sock *sk);
include/linux/filter.h
1142
int sk_reuseport_attach_filter(struct sock_fprog *fprog, struct sock *sk);
include/linux/filter.h
1143
int sk_reuseport_attach_bpf(u32 ufd, struct sock *sk);
include/linux/filter.h
1145
int sk_detach_filter(struct sock *sk);
include/linux/filter.h
1146
int sk_get_filter(struct sock *sk, sockptr_t optval, unsigned int len);
include/linux/filter.h
1148
bool sk_filter_charge(struct sock *sk, struct sk_filter *fp);
include/linux/filter.h
1149
void sk_filter_uncharge(struct sock *sk, struct sk_filter *fp);
include/linux/filter.h
1246
struct sock *bpf_run_sk_reuseport(struct sock_reuseport *reuse, struct sock *sk,
include/linux/filter.h
1248
struct sock *migrating_sk,
include/linux/filter.h
1251
static inline struct sock *
include/linux/filter.h
1252
bpf_run_sk_reuseport(struct sock_reuseport *reuse, struct sock *sk,
include/linux/filter.h
1254
struct sock *migrating_sk,
include/linux/filter.h
1522
struct sock *sk;
include/linux/filter.h
1534
struct sock *sk;
include/linux/filter.h
1578
struct sock *sk;
include/linux/filter.h
1605
struct sock *selected_sk;
include/linux/filter.h
1637
struct sock *_selected_sk = NULL; \
include/linux/filter.h
1669
const int ifindex, struct sock **psk)
include/linux/filter.h
1672
struct sock *selected_sk = NULL;
include/linux/filter.h
1708
const int ifindex, struct sock **psk)
include/linux/filter.h
1711
struct sock *selected_sk = NULL;
include/linux/filter.h
33
struct sock;
include/linux/icmpv6.h
89
void icmpv6_flow_init(const struct sock *sk, struct flowi6 *fl6, u8 type,
include/linux/if_pppox.h
44
struct sock sk;
include/linux/if_pppox.h
58
static inline struct pppox_sock *pppox_sk(struct sock *sk)
include/linux/if_pppox.h
63
static inline struct sock *sk_pppox(struct pppox_sock *po)
include/linux/if_pppox.h
65
return (struct sock *)po;
include/linux/if_pppox.h
71
int (*create)(struct net *net, struct socket *sock, int kern);
include/linux/if_pppox.h
72
int (*ioctl)(struct socket *sock, unsigned int cmd,
include/linux/if_pppox.h
79
extern void pppox_unbind_sock(struct sock *sk);/* delete ppp-channel binding */
include/linux/if_pppox.h
80
extern int pppox_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg);
include/linux/if_pppox.h
81
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
115
extern int ip_mc_join_group(struct sock *sk, struct ip_mreqn *imr);
include/linux/igmp.h
116
extern int ip_mc_join_group_ssm(struct sock *sk, struct ip_mreqn *imr,
include/linux/igmp.h
118
extern int ip_mc_leave_group(struct sock *sk, struct ip_mreqn *imr);
include/linux/igmp.h
119
extern void ip_mc_drop_socket(struct sock *sk);
include/linux/igmp.h
120
extern int ip_mc_source(int add, int omode, struct sock *sk,
include/linux/igmp.h
122
extern int ip_mc_msfilter(struct sock *sk, struct ip_msfilter *msf,int ifindex);
include/linux/igmp.h
123
extern int ip_mc_msfget(struct sock *sk, struct ip_msfilter *msf,
include/linux/igmp.h
125
extern int ip_mc_gsfget(struct sock *sk, struct group_filter *gsf,
include/linux/igmp.h
127
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
19
struct sock;
include/linux/kobject_ns.h
43
const void *(*netlink_ns)(struct sock *sk);
include/linux/lsm_audit.h
29
const struct sock *sk;
include/linux/lsm_hook_defs.h
289
LSM_HOOK(int, 0, netlink_send, struct sock *sk, struct sk_buff *skb)
include/linux/lsm_hook_defs.h
321
LSM_HOOK(int, 0, unix_stream_connect, struct sock *sock, struct sock *other,
include/linux/lsm_hook_defs.h
322
struct sock *newsk)
include/linux/lsm_hook_defs.h
323
LSM_HOOK(int, 0, unix_may_send, struct socket *sock, struct socket *other)
include/linux/lsm_hook_defs.h
325
LSM_HOOK(int, 0, socket_post_create, struct socket *sock, int family, int type,
include/linux/lsm_hook_defs.h
328
LSM_HOOK(int, 0, socket_bind, struct socket *sock, struct sockaddr *address,
include/linux/lsm_hook_defs.h
330
LSM_HOOK(int, 0, socket_connect, struct socket *sock, struct sockaddr *address,
include/linux/lsm_hook_defs.h
332
LSM_HOOK(int, 0, socket_listen, struct socket *sock, int backlog)
include/linux/lsm_hook_defs.h
333
LSM_HOOK(int, 0, socket_accept, struct socket *sock, struct socket *newsock)
include/linux/lsm_hook_defs.h
334
LSM_HOOK(int, 0, socket_sendmsg, struct socket *sock, struct msghdr *msg,
include/linux/lsm_hook_defs.h
336
LSM_HOOK(int, 0, socket_recvmsg, struct socket *sock, struct msghdr *msg,
include/linux/lsm_hook_defs.h
338
LSM_HOOK(int, 0, socket_getsockname, struct socket *sock)
include/linux/lsm_hook_defs.h
339
LSM_HOOK(int, 0, socket_getpeername, struct socket *sock)
include/linux/lsm_hook_defs.h
340
LSM_HOOK(int, 0, socket_getsockopt, struct socket *sock, int level, int optname)
include/linux/lsm_hook_defs.h
341
LSM_HOOK(int, 0, socket_setsockopt, struct socket *sock, int level, int optname)
include/linux/lsm_hook_defs.h
342
LSM_HOOK(int, 0, socket_shutdown, struct socket *sock, int how)
include/linux/lsm_hook_defs.h
343
LSM_HOOK(int, 0, socket_sock_rcv_skb, struct sock *sk, struct sk_buff *skb)
include/linux/lsm_hook_defs.h
344
LSM_HOOK(int, -ENOPROTOOPT, socket_getpeersec_stream, struct socket *sock,
include/linux/lsm_hook_defs.h
346
LSM_HOOK(int, -ENOPROTOOPT, socket_getpeersec_dgram, struct socket *sock,
include/linux/lsm_hook_defs.h
348
LSM_HOOK(int, 0, sk_alloc_security, struct sock *sk, int family, gfp_t priority)
include/linux/lsm_hook_defs.h
349
LSM_HOOK(void, LSM_RET_VOID, sk_free_security, struct sock *sk)
include/linux/lsm_hook_defs.h
350
LSM_HOOK(void, LSM_RET_VOID, sk_clone_security, const struct sock *sk,
include/linux/lsm_hook_defs.h
351
struct sock *newsk)
include/linux/lsm_hook_defs.h
352
LSM_HOOK(void, LSM_RET_VOID, sk_getsecid, const struct sock *sk, u32 *secid)
include/linux/lsm_hook_defs.h
353
LSM_HOOK(void, LSM_RET_VOID, sock_graft, struct sock *sk, struct socket *parent)
include/linux/lsm_hook_defs.h
354
LSM_HOOK(int, 0, inet_conn_request, const struct sock *sk, struct sk_buff *skb,
include/linux/lsm_hook_defs.h
356
LSM_HOOK(void, LSM_RET_VOID, inet_csk_clone, struct sock *newsk,
include/linux/lsm_hook_defs.h
358
LSM_HOOK(void, LSM_RET_VOID, inet_conn_established, struct sock *sk,
include/linux/lsm_hook_defs.h
368
LSM_HOOK(int, 0, tun_dev_attach, struct sock *sk, void *security)
include/linux/lsm_hook_defs.h
372
LSM_HOOK(int, 0, sctp_bind_connect, struct sock *sk, int optname,
include/linux/lsm_hook_defs.h
375
struct sock *sk, struct sock *newsk)
include/linux/lsm_hook_defs.h
378
LSM_HOOK(int, 0, mptcp_add_subflow, struct sock *sk, struct sock *ssk)
include/linux/mISDNif.h
485
struct sock sk;
include/linux/memcontrol.h
1585
struct sock;
include/linux/memcontrol.h
1590
void mem_cgroup_sk_alloc(struct sock *sk);
include/linux/memcontrol.h
1591
void mem_cgroup_sk_free(struct sock *sk);
include/linux/memcontrol.h
1592
void mem_cgroup_sk_inherit(const struct sock *sk, struct sock *newsk);
include/linux/memcontrol.h
1593
bool mem_cgroup_sk_charge(const struct sock *sk, unsigned int nr_pages,
include/linux/memcontrol.h
1595
void mem_cgroup_sk_uncharge(const struct sock *sk, unsigned int nr_pages);
include/linux/memcontrol.h
1644
static inline void mem_cgroup_sk_alloc(struct sock *sk)
include/linux/memcontrol.h
1648
static inline void mem_cgroup_sk_free(struct sock *sk)
include/linux/memcontrol.h
1652
static inline void mem_cgroup_sk_inherit(const struct sock *sk, struct sock *newsk)
include/linux/memcontrol.h
1656
static inline bool mem_cgroup_sk_charge(const struct sock *sk,
include/linux/memcontrol.h
1663
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
251
struct sock __rcu *mroute_sk;
include/linux/net.h
124
struct sock *sk;
include/linux/net.h
157
typedef int (*skb_read_actor_t)(struct sock *, struct sk_buff *);
include/linux/net.h
163
int (*release) (struct socket *sock);
include/linux/net.h
164
int (*bind) (struct socket *sock,
include/linux/net.h
167
int (*connect) (struct socket *sock,
include/linux/net.h
172
int (*accept) (struct socket *sock,
include/linux/net.h
175
int (*getname) (struct socket *sock,
include/linux/net.h
178
__poll_t (*poll) (struct file *file, struct socket *sock,
include/linux/net.h
180
int (*ioctl) (struct socket *sock, unsigned int cmd,
include/linux/net.h
183
int (*compat_ioctl) (struct socket *sock, unsigned int cmd,
include/linux/net.h
186
int (*gettstamp) (struct socket *sock, void __user *userstamp,
include/linux/net.h
188
int (*listen) (struct socket *sock, int len);
include/linux/net.h
189
int (*shutdown) (struct socket *sock, int flags);
include/linux/net.h
190
int (*setsockopt)(struct socket *sock, int level,
include/linux/net.h
193
int (*getsockopt)(struct socket *sock, int level,
include/linux/net.h
195
void (*show_fdinfo)(struct seq_file *m, struct socket *sock);
include/linux/net.h
196
int (*sendmsg) (struct socket *sock, struct msghdr *m,
include/linux/net.h
206
int (*recvmsg) (struct socket *sock, struct msghdr *m,
include/linux/net.h
208
int (*mmap) (struct file *file, struct socket *sock,
include/linux/net.h
210
ssize_t (*splice_read)(struct socket *sock, loff_t *ppos,
include/linux/net.h
212
void (*splice_eof)(struct socket *sock);
include/linux/net.h
213
int (*set_peek_off)(struct sock *sk, int val);
include/linux/net.h
214
int (*peek_len)(struct socket *sock);
include/linux/net.h
219
int (*read_sock)(struct sock *sk, read_descriptor_t *desc,
include/linux/net.h
222
int (*read_skb)(struct sock *sk, skb_read_actor_t recv_actor);
include/linux/net.h
223
int (*sendmsg_locked)(struct sock *sk, struct msghdr *msg,
include/linux/net.h
225
int (*set_rcvlowat)(struct sock *sk, int val);
include/linux/net.h
233
int (*create)(struct net *net, struct socket *sock,
include/linux/net.h
258
void sock_release(struct socket *sock);
include/linux/net.h
259
int sock_sendmsg(struct socket *sock, struct msghdr *msg);
include/linux/net.h
260
int sock_recvmsg(struct socket *sock, struct msghdr *msg, int flags);
include/linux/net.h
261
struct file *sock_alloc_file(struct socket *sock, int flags, const char *dname);
include/linux/net.h
264
#define sockfd_put(sock) fput(sock->file)
include/linux/net.h
342
int kernel_sendmsg(struct socket *sock, struct msghdr *msg, struct kvec *vec,
include/linux/net.h
344
int kernel_recvmsg(struct socket *sock, struct msghdr *msg, struct kvec *vec,
include/linux/net.h
347
int kernel_bind(struct socket *sock, struct sockaddr_unsized *addr, int addrlen);
include/linux/net.h
348
int kernel_listen(struct socket *sock, int backlog);
include/linux/net.h
349
int kernel_accept(struct socket *sock, struct socket **newsock, int flags);
include/linux/net.h
350
int kernel_connect(struct socket *sock, struct sockaddr_unsized *addr, int addrlen,
include/linux/net.h
352
int kernel_getsockname(struct socket *sock, struct sockaddr *addr);
include/linux/net.h
353
int kernel_getpeername(struct socket *sock, struct sockaddr *addr);
include/linux/net.h
354
int kernel_sock_shutdown(struct socket *sock, enum sock_shutdown_cmd how);
include/linux/net.h
357
u32 kernel_sock_ip_overhead(struct sock *sk);
include/linux/netdevice.h
1560
struct sock *sk);
include/linux/netdevice.h
2948
struct sock *sk);
include/linux/netdevice.h
3376
int dev_loopback_xmit(struct net *net, struct sock *sk, struct sk_buff *newskb);
include/linux/netdevice.h
3419
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
119
int br_ip6_fragment(struct net *net, struct sock *sk, struct sk_buff *skb,
include/linux/netfilter_ipv6.h
121
int (*output)(struct net *, struct sock *sk,
include/linux/netfilter_ipv6.h
125
static inline int nf_br_ip6_fragment(struct net *net, struct sock *sk,
include/linux/netfilter_ipv6.h
128
int (*output)(struct net *, struct sock *sk,
include/linux/netfilter_ipv6.h
146
int ip6_route_me_harder(struct net *net, struct sock *sk, struct sk_buff *skb);
include/linux/netfilter_ipv6.h
148
static inline int nf_ip6_route_me_harder(struct net *net, struct sock *sk, struct sk_buff *skb)
include/linux/netfilter_ipv6.h
45
int (*route_me_harder)(struct net *net, struct sock *sk, struct sk_buff *skb);
include/linux/netfilter_ipv6.h
57
int (*fragment)(struct net *net, struct sock *sk, struct sk_buff *skb,
include/linux/netfilter_ipv6.h
58
int (*output)(struct net *, struct sock *, struct sk_buff *));
include/linux/netfilter_ipv6.h
61
int (*br_fragment)(struct net *net, struct sock *sk,
include/linux/netfilter_ipv6.h
64
int (*output)(struct net *, struct sock *sk,
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
1642
int security_netlink_send(struct sock *sk, struct sk_buff *skb);
include/linux/security.h
1643
int security_unix_stream_connect(struct sock *sock, struct sock *other, struct sock *newsk);
include/linux/security.h
1644
int security_unix_may_send(struct socket *sock, struct socket *other);
include/linux/security.h
1646
int security_socket_post_create(struct socket *sock, int family,
include/linux/security.h
1649
int security_socket_bind(struct socket *sock, struct sockaddr *address, int addrlen);
include/linux/security.h
1650
int security_socket_connect(struct socket *sock, struct sockaddr *address, int addrlen);
include/linux/security.h
1651
int security_socket_listen(struct socket *sock, int backlog);
include/linux/security.h
1652
int security_socket_accept(struct socket *sock, struct socket *newsock);
include/linux/security.h
1653
int security_socket_sendmsg(struct socket *sock, struct msghdr *msg, int size);
include/linux/security.h
1654
int security_socket_recvmsg(struct socket *sock, struct msghdr *msg,
include/linux/security.h
1656
int security_socket_getsockname(struct socket *sock);
include/linux/security.h
1657
int security_socket_getpeername(struct socket *sock);
include/linux/security.h
1658
int security_socket_getsockopt(struct socket *sock, int level, int optname);
include/linux/security.h
1659
int security_socket_setsockopt(struct socket *sock, int level, int optname);
include/linux/security.h
1660
int security_socket_shutdown(struct socket *sock, int how);
include/linux/security.h
1661
int security_sock_rcv_skb(struct sock *sk, struct sk_buff *skb);
include/linux/security.h
1662
int security_socket_getpeersec_stream(struct socket *sock, sockptr_t optval,
include/linux/security.h
1664
int security_socket_getpeersec_dgram(struct socket *sock, struct sk_buff *skb, u32 *secid);
include/linux/security.h
1665
int security_sk_alloc(struct sock *sk, int family, gfp_t priority);
include/linux/security.h
1666
void security_sk_free(struct sock *sk);
include/linux/security.h
1667
void security_sk_clone(const struct sock *sk, struct sock *newsk);
include/linux/security.h
1668
void security_sk_classify_flow(const struct sock *sk,
include/linux/security.h
1672
void security_sock_graft(struct sock*sk, struct socket *parent);
include/linux/security.h
1673
int security_inet_conn_request(const struct sock *sk,
include/linux/security.h
1675
void security_inet_csk_clone(struct sock *newsk,
include/linux/security.h
1677
void security_inet_conn_established(struct sock *sk,
include/linux/security.h
1686
int security_tun_dev_attach(struct sock *sk, void *security);
include/linux/security.h
1689
int security_sctp_bind_connect(struct sock *sk, int optname,
include/linux/security.h
1691
void security_sctp_sk_clone(struct sctp_association *asoc, struct sock *sk,
include/linux/security.h
1692
struct sock *newsk);
include/linux/security.h
1695
int security_mptcp_add_subflow(struct sock *sk, struct sock *ssk);
include/linux/security.h
1698
static inline int security_netlink_send(struct sock *sk, struct sk_buff *skb)
include/linux/security.h
1703
static inline int security_unix_stream_connect(struct sock *sock,
include/linux/security.h
1704
struct sock *other,
include/linux/security.h
1705
struct sock *newsk)
include/linux/security.h
1710
static inline int security_unix_may_send(struct socket *sock,
include/linux/security.h
1722
static inline int security_socket_post_create(struct socket *sock,
include/linux/security.h
1736
static inline int security_socket_bind(struct socket *sock,
include/linux/security.h
1743
static inline int security_socket_connect(struct socket *sock,
include/linux/security.h
1750
static inline int security_socket_listen(struct socket *sock, int backlog)
include/linux/security.h
1755
static inline int security_socket_accept(struct socket *sock,
include/linux/security.h
1761
static inline int security_socket_sendmsg(struct socket *sock,
include/linux/security.h
1767
static inline int security_socket_recvmsg(struct socket *sock,
include/linux/security.h
1774
static inline int security_socket_getsockname(struct socket *sock)
include/linux/security.h
1779
static inline int security_socket_getpeername(struct socket *sock)
include/linux/security.h
1784
static inline int security_socket_getsockopt(struct socket *sock,
include/linux/security.h
1790
static inline int security_socket_setsockopt(struct socket *sock,
include/linux/security.h
1796
static inline int security_socket_shutdown(struct socket *sock, int how)
include/linux/security.h
1800
static inline int security_sock_rcv_skb(struct sock *sk,
include/linux/security.h
1806
static inline int security_socket_getpeersec_stream(struct socket *sock,
include/linux/security.h
1814
static inline int security_socket_getpeersec_dgram(struct socket *sock, struct sk_buff *skb, u32 *secid)
include/linux/security.h
1819
static inline int security_sk_alloc(struct sock *sk, int family, gfp_t priority)
include/linux/security.h
1824
static inline void security_sk_free(struct sock *sk)
include/linux/security.h
1828
static inline void security_sk_clone(const struct sock *sk, struct sock *newsk)
include/linux/security.h
1832
static inline void security_sk_classify_flow(const struct sock *sk,
include/linux/security.h
1842
static inline void security_sock_graft(struct sock *sk, struct socket *parent)
include/linux/security.h
1846
static inline int security_inet_conn_request(const struct sock *sk,
include/linux/security.h
1852
static inline void security_inet_csk_clone(struct sock *newsk,
include/linux/security.h
1857
static inline void security_inet_conn_established(struct sock *sk,
include/linux/security.h
1894
static inline int security_tun_dev_attach(struct sock *sk, void *security)
include/linux/security.h
1910
static inline int security_sctp_bind_connect(struct sock *sk, int optname,
include/linux/security.h
1918
struct sock *sk,
include/linux/security.h
1919
struct sock *newsk)
include/linux/security.h
1929
static inline int security_mptcp_add_subflow(struct sock *sk, struct sock *ssk)
include/linux/security.h
206
struct sock;
include/linux/skbuff.h
1316
void __fix_address sk_skb_reason_drop(struct sock *sk, struct sk_buff *skb,
include/linux/skbuff.h
1411
static inline bool skb_fclone_busy(const struct sock *sk,
include/linux/skbuff.h
1755
struct ubuf_info *msg_zerocopy_realloc(struct sock *sk, size_t size,
include/linux/skbuff.h
1762
int __zerocopy_sg_from_iter(struct msghdr *msg, struct sock *sk,
include/linux/skbuff.h
1777
int skb_zerocopy_iter_stream(struct sock *sk, struct sk_buff *skb,
include/linux/skbuff.h
4193
int __skb_wait_for_more_packets(struct sock *sk, struct sk_buff_head *queue,
include/linux/skbuff.h
4200
struct sk_buff *__skb_try_recv_datagram(struct sock *sk,
include/linux/skbuff.h
4204
struct sk_buff *__skb_recv_datagram(struct sock *sk,
include/linux/skbuff.h
4207
struct sk_buff *skb_recv_datagram(struct sock *sk, unsigned int flags, int *err);
include/linux/skbuff.h
4208
__poll_t datagram_poll_queue(struct file *file, struct socket *sock,
include/linux/skbuff.h
4211
__poll_t datagram_poll(struct file *file, struct socket *sock,
include/linux/skbuff.h
4229
void skb_free_datagram(struct sock *sk, struct sk_buff *skb);
include/linux/skbuff.h
4230
int skb_kill_datagram(struct sock *sk, struct sk_buff *skb, unsigned int flags);
include/linux/skbuff.h
4235
int skb_splice_bits(struct sk_buff *skb, struct sock *sk, unsigned int offset,
include/linux/skbuff.h
4238
int skb_send_sock_locked(struct sock *sk, struct sk_buff *skb, int offset,
include/linux/skbuff.h
4240
int skb_send_sock_locked_with_flags(struct sock *sk, struct sk_buff *skb,
include/linux/skbuff.h
4242
int skb_send_sock(struct sock *sk, struct sk_buff *skb, int offset, int len);
include/linux/skbuff.h
4692
struct sock *sk, int tstype);
include/linux/skbuff.h
906
struct sock *sk;
include/linux/skmsg.h
106
void (*saved_unhash)(struct sock *sk);
include/linux/skmsg.h
107
void (*saved_destroy)(struct sock *sk);
include/linux/skmsg.h
108
void (*saved_close)(struct sock *sk, long timeout);
include/linux/skmsg.h
109
void (*saved_write_space)(struct sock *sk);
include/linux/skmsg.h
110
void (*saved_data_ready)(struct sock *sk);
include/linux/skmsg.h
116
int (*psock_update_sk_prot)(struct sock *sk, struct sk_psock *psock,
include/linux/skmsg.h
122
struct sock *sk_pair;
include/linux/skmsg.h
126
int sk_msg_alloc(struct sock *sk, struct sk_msg *msg, int len,
include/linux/skmsg.h
128
int sk_msg_clone(struct sock *sk, struct sk_msg *dst, struct sk_msg *src,
include/linux/skmsg.h
130
void sk_msg_trim(struct sock *sk, struct sk_msg *msg, int len);
include/linux/skmsg.h
131
int sk_msg_free(struct sock *sk, struct sk_msg *msg);
include/linux/skmsg.h
132
int sk_msg_free_nocharge(struct sock *sk, struct sk_msg *msg);
include/linux/skmsg.h
133
void sk_msg_free_partial(struct sock *sk, struct sk_msg *msg, u32 bytes);
include/linux/skmsg.h
134
void sk_msg_free_partial_nocharge(struct sock *sk, struct sk_msg *msg,
include/linux/skmsg.h
137
void sk_msg_return(struct sock *sk, struct sk_msg *msg, int bytes);
include/linux/skmsg.h
138
void sk_msg_return_zero(struct sock *sk, struct sk_msg *msg, int bytes);
include/linux/skmsg.h
140
int sk_msg_zerocopy_from_iter(struct sock *sk, struct iov_iter *from,
include/linux/skmsg.h
142
int sk_msg_memcopy_from_iter(struct sock *sk, struct iov_iter *from,
include/linux/skmsg.h
144
int sk_msg_recvmsg(struct sock *sk, struct sk_psock *psock, struct msghdr *msg,
include/linux/skmsg.h
146
int __sk_msg_recvmsg(struct sock *sk, struct sk_psock *psock, struct msghdr *msg,
include/linux/skmsg.h
148
bool sk_msg_is_readable(struct sock *sk);
include/linux/skmsg.h
296
static inline struct sk_psock *sk_psock(const struct sock *sk)
include/linux/skmsg.h
320
static inline void sock_drop(struct sock *sk, struct sk_buff *skb)
include/linux/skmsg.h
423
struct sock *sk = psock->sk;
include/linux/skmsg.h
429
struct sk_psock *sk_psock_init(struct sock *sk, int node);
include/linux/skmsg.h
433
int sk_psock_init_strp(struct sock *sk, struct sk_psock *psock);
include/linux/skmsg.h
434
void sk_psock_start_strp(struct sock *sk, struct sk_psock *psock);
include/linux/skmsg.h
435
void sk_psock_stop_strp(struct sock *sk, struct sk_psock *psock);
include/linux/skmsg.h
437
static inline int sk_psock_init_strp(struct sock *sk, struct sk_psock *psock)
include/linux/skmsg.h
442
static inline void sk_psock_start_strp(struct sock *sk, struct sk_psock *psock)
include/linux/skmsg.h
446
static inline void sk_psock_stop_strp(struct sock *sk, struct sk_psock *psock)
include/linux/skmsg.h
451
void sk_psock_start_verdict(struct sock *sk, struct sk_psock *psock);
include/linux/skmsg.h
452
void sk_psock_stop_verdict(struct sock *sk, struct sk_psock *psock);
include/linux/skmsg.h
454
int sk_psock_msg_verdict(struct sock *sk, struct sk_psock *psock,
include/linux/skmsg.h
481
static inline void sk_psock_restore_proto(struct sock *sk,
include/linux/skmsg.h
488
static inline struct sk_psock *sk_psock_get(struct sock *sk)
include/linux/skmsg.h
500
void sk_psock_drop(struct sock *sk, struct sk_psock *psock);
include/linux/skmsg.h
502
static inline void sk_psock_put(struct sock *sk, struct sk_psock *psock)
include/linux/skmsg.h
508
static inline void sk_psock_data_ready(struct sock *sk, struct sk_psock *psock)
include/linux/skmsg.h
51
struct sock *sk_redir;
include/linux/skmsg.h
52
struct sock *sk;
include/linux/skmsg.h
557
static inline ssize_t sk_psock_msg_inq(struct sock *sk)
include/linux/skmsg.h
571
static inline ssize_t sk_msg_first_len(struct sock *sk)
include/linux/skmsg.h
620
static inline void skb_bpf_set_redir(struct sk_buff *skb, struct sock *sk_redir,
include/linux/skmsg.h
628
static inline struct sock *skb_bpf_redirect_fetch(const struct sk_buff *skb)
include/linux/skmsg.h
632
return (struct sock *)(sk_redir & BPF_F_PTR_MASK);
include/linux/skmsg.h
84
struct sock *sk;
include/linux/skmsg.h
85
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
217
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
438
extern long __sys_sendmsg_sock(struct socket *sock, struct msghdr *msg,
include/linux/socket.h
440
extern long __sys_recvmsg_sock(struct socket *sock, struct msghdr *msg,
include/linux/socket.h
463
extern int __sys_bind_socket(struct socket *sock, struct sockaddr_storage *address,
include/linux/socket.h
470
extern int __sys_listen_socket(struct socket *sock, int backlog);
include/linux/socket.h
471
extern int do_getsockname(struct socket *sock, int peer,
include/linux/socket.h
477
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
504
bool (*smc_hs_congested)(const struct sock *sk);
include/linux/tcp.h
579
static inline struct tcp_timewait_sock *tcp_twsk(const struct sock *sk)
include/linux/tcp.h
584
static inline bool tcp_passive_fastopen(const struct sock *sk)
include/linux/tcp.h
590
static inline void fastopen_queue_tune(struct sock *sk, int backlog)
include/linux/tcp.h
617
struct sk_buff *tcp_get_timestamping_opt_stats(const struct sock *sk,
include/linux/tcp.h
634
void __tcp_sock_set_cork(struct sock *sk, bool on);
include/linux/tcp.h
635
void tcp_sock_set_cork(struct sock *sk, bool on);
include/linux/tcp.h
636
int tcp_sock_set_keepcnt(struct sock *sk, int val);
include/linux/tcp.h
637
int tcp_sock_set_keepidle_locked(struct sock *sk, int val);
include/linux/tcp.h
638
int tcp_sock_set_keepidle(struct sock *sk, int val);
include/linux/tcp.h
639
int tcp_sock_set_keepintvl(struct sock *sk, int val);
include/linux/tcp.h
640
void __tcp_sock_set_nodelay(struct sock *sk, bool on);
include/linux/tcp.h
641
void tcp_sock_set_nodelay(struct sock *sk);
include/linux/tcp.h
642
void tcp_sock_set_quickack(struct sock *sk, int val);
include/linux/tcp.h
643
int tcp_sock_set_syncnt(struct sock *sk, int val);
include/linux/tcp.h
644
int tcp_sock_set_user_timeout(struct sock *sk, int val);
include/linux/tcp.h
645
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
137
static inline int udp_set_peek_off(struct sock *sk, int val)
include/linux/udp.h
144
static inline void udp_set_no_check6_tx(struct sock *sk, bool val)
include/linux/udp.h
149
static inline void udp_set_no_check6_rx(struct sock *sk, bool val)
include/linux/udp.h
154
static inline bool udp_get_no_check6_tx(const struct sock *sk)
include/linux/udp.h
159
static inline bool udp_get_no_check6_rx(const struct sock *sk)
include/linux/udp.h
164
static inline void udp_cmsg_recv(struct msghdr *msg, struct sock *sk,
include/linux/udp.h
193
static inline bool udp_unexpected_gso(struct sock *sk, struct sk_buff *skb)
include/linux/udp.h
219
static inline void udp_allow_gso(struct sock *sk)
include/linux/udp.h
241
static inline struct sock *udp_tunnel_sk(const struct net *net, bool is_ipv6)
include/linux/udp.h
85
int (*encap_rcv)(struct sock *sk, struct sk_buff *skb);
include/linux/udp.h
86
void (*encap_err_rcv)(struct sock *sk, struct sk_buff *skb, int err,
include/linux/udp.h
88
int (*encap_err_lookup)(struct sock *sk, struct sk_buff *skb);
include/linux/udp.h
89
void (*encap_destroy)(struct sock *sk);
include/linux/udp.h
92
struct sk_buff * (*gro_receive)(struct sock *sk,
include/linux/udp.h
95
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
211
void vsock_add_pending(struct sock *listener, struct sock *pending);
include/net/af_vsock.h
212
void vsock_remove_pending(struct sock *listener, struct sock *pending);
include/net/af_vsock.h
213
void vsock_enqueue_accept(struct sock *listener, struct sock *connected);
include/net/af_vsock.h
217
struct sock *vsock_find_bound_socket(struct sockaddr_vm *addr);
include/net/af_vsock.h
218
struct sock *vsock_find_connected_socket(struct sockaddr_vm *src,
include/net/af_vsock.h
220
struct sock *vsock_find_bound_socket_net(struct sockaddr_vm *addr,
include/net/af_vsock.h
222
struct sock *vsock_find_connected_socket_net(struct sockaddr_vm *src,
include/net/af_vsock.h
227
void (*fn)(struct sock *sk));
include/net/af_vsock.h
230
void vsock_linger(struct sock *sk);
include/net/af_vsock.h
243
int __vsock_connectible_recvmsg(struct socket *sock, struct msghdr *msg, size_t len,
include/net/af_vsock.h
245
int vsock_connectible_recvmsg(struct socket *sock, struct msghdr *msg, size_t len,
include/net/af_vsock.h
247
int __vsock_dgram_recvmsg(struct socket *sock, struct msghdr *msg,
include/net/af_vsock.h
249
int vsock_dgram_recvmsg(struct socket *sock, struct msghdr *msg,
include/net/af_vsock.h
254
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 socket __rcu *sock;
include/net/ax25.h
251
struct sock *sk; /* Backlink to socket */
include/net/ax25.h
256
struct sock sk;
include/net/ax25.h
262
static inline struct ax25_cb *sk_to_ax25(const struct sock *sk)
include/net/ax25.h
303
struct sock *ax25_find_listener(ax25_address *, int, struct net_device *, int);
include/net/ax25.h
304
struct sock *ax25_get_socket(ax25_address *, ax25_address *, int);
include/net/ax25.h
311
struct sock *ax25_make_new(struct sock *, struct ax25_dev *);
include/net/bluetooth/bluetooth.h
399
struct sock sk;
include/net/bluetooth/bluetooth.h
401
struct sock *parent;
include/net/bluetooth/bluetooth.h
404
void (*skb_put_cmsg)(struct sk_buff *, struct msghdr *, struct sock *);
include/net/bluetooth/bluetooth.h
424
void bt_sock_link(struct bt_sock_list *l, struct sock *s);
include/net/bluetooth/bluetooth.h
425
void bt_sock_unlink(struct bt_sock_list *l, struct sock *s);
include/net/bluetooth/bluetooth.h
426
bool bt_sock_linked(struct bt_sock_list *l, struct sock *s);
include/net/bluetooth/bluetooth.h
427
struct sock *bt_sock_alloc(struct net *net, struct socket *sock,
include/net/bluetooth/bluetooth.h
429
int bt_sock_recvmsg(struct socket *sock, struct msghdr *msg, size_t len,
include/net/bluetooth/bluetooth.h
431
int bt_sock_stream_recvmsg(struct socket *sock, struct msghdr *msg,
include/net/bluetooth/bluetooth.h
433
__poll_t bt_sock_poll(struct file *file, struct socket *sock, poll_table *wait);
include/net/bluetooth/bluetooth.h
434
int bt_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg);
include/net/bluetooth/bluetooth.h
435
int bt_sock_wait_state(struct sock *sk, int state, unsigned long timeo);
include/net/bluetooth/bluetooth.h
436
int bt_sock_wait_ready(struct sock *sk, unsigned int msg_flags);
include/net/bluetooth/bluetooth.h
438
void bt_accept_enqueue(struct sock *parent, struct sock *sk, bool bh);
include/net/bluetooth/bluetooth.h
439
void bt_accept_unlink(struct sock *sk);
include/net/bluetooth/bluetooth.h
440
struct sock *bt_accept_dequeue(struct sock *parent, struct socket *newsock);
include/net/bluetooth/bluetooth.h
476
struct sock *sk;
include/net/bluetooth/bluetooth.h
525
static inline struct sk_buff *bt_skb_send_alloc(struct sock *sk,
include/net/bluetooth/bluetooth.h
554
static inline struct sk_buff *bt_skb_sendmsg(struct sock *sk,
include/net/bluetooth/bluetooth.h
584
static inline struct sk_buff *bt_skb_sendmmsg(struct sock *sk,
include/net/bluetooth/bluetooth.h
621
void hci_sock_set_flag(struct sock *sk, int nr);
include/net/bluetooth/bluetooth.h
622
void hci_sock_clear_flag(struct sock *sk, int nr);
include/net/bluetooth/bluetooth.h
623
int hci_sock_test_flag(struct sock *sk, int nr);
include/net/bluetooth/bluetooth.h
624
unsigned short hci_sock_get_channel(struct sock *sk);
include/net/bluetooth/bluetooth.h
625
u32 hci_sock_get_cookie(struct sock *sk);
include/net/bluetooth/bluetooth.h
680
void mgmt_cleanup(struct sock *sk);
include/net/bluetooth/bluetooth.h
682
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
2489
void mgmt_advertising_added(struct sock *sk, struct hci_dev *hdev,
include/net/bluetooth/hci_core.h
2491
void mgmt_advertising_removed(struct sock *sk, struct hci_dev *hdev,
include/net/bluetooth/hci_core.h
2493
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
946
bool l2cap_is_socket(struct socket *sock);
include/net/bluetooth/rfcomm.h
156
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
3739
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_req(const struct sock *sk,
include/net/inet6_connection_sock.h
26
int inet6_csk_xmit(struct sock *sk, struct sk_buff *skb, struct flowi *fl);
include/net/inet6_connection_sock.h
28
struct dst_entry *inet6_csk_update_pmtu(struct sock *sk, u32 mtu);
include/net/inet6_hashtables.h
104
struct sock *inet6_steal_sock(struct net *net, struct sk_buff *skb, int doff,
include/net/inet6_hashtables.h
109
struct sock *sk, *reuse_sk;
include/net/inet6_hashtables.h
143
static inline struct sock *__inet6_lookup_skb(struct sk_buff *skb, int doff,
include/net/inet6_hashtables.h
151
struct sock *sk;
include/net/inet6_hashtables.h
165
struct sock *inet6_lookup(const struct net *net, struct sk_buff *skb, int doff,
include/net/inet6_hashtables.h
170
static inline bool inet6_match(const struct net *net, const struct sock *sk,
include/net/inet6_hashtables.h
43
struct sock *__inet6_lookup_established(const struct net *net,
include/net/inet6_hashtables.h
58
struct sock *inet6_lookup_reuseport(const struct net *net, struct sock *sk,
include/net/inet6_hashtables.h
66
struct sock *inet6_lookup_listener(const struct net *net,
include/net/inet6_hashtables.h
74
struct sock *inet6_lookup_run_sk_lookup(const struct net *net,
include/net/inet6_hashtables.h
83
static inline struct sock *__inet6_lookup(const struct net *net,
include/net/inet6_hashtables.h
92
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
70
static inline void inet_ctl_sock_destroy(struct sock *sk)
include/net/inet_connection_sock.h
102
unsigned int (*icsk_sync_mss)(struct sock *sk, u32 pmtu);
include/net/inet_connection_sock.h
154
static inline void *inet_csk_ca(const struct sock *sk)
include/net/inet_connection_sock.h
159
struct sock *inet_csk_clone_lock(const struct sock *sk,
include/net/inet_connection_sock.h
172
void inet_csk_init_xmit_timers(struct sock *sk,
include/net/inet_connection_sock.h
176
void inet_csk_clear_xmit_timers(struct sock *sk);
include/net/inet_connection_sock.h
177
void inet_csk_clear_xmit_timers_sync(struct sock *sk);
include/net/inet_connection_sock.h
179
static inline void inet_csk_schedule_ack(struct sock *sk)
include/net/inet_connection_sock.h
184
static inline int inet_csk_ack_scheduled(const struct sock *sk)
include/net/inet_connection_sock.h
189
static inline void inet_csk_delack_init(struct sock *sk)
include/net/inet_connection_sock.h
194
static inline unsigned long tcp_timeout_expires(const struct sock *sk)
include/net/inet_connection_sock.h
205
static inline void inet_csk_clear_xmit_timer(struct sock *sk, const int what)
include/net/inet_connection_sock.h
228
static inline void inet_csk_reset_xmit_timer(struct sock *sk, const int what,
include/net/inet_connection_sock.h
263
struct sock *inet_csk_accept(struct sock *sk, struct proto_accept_arg *arg);
include/net/inet_connection_sock.h
265
int inet_csk_get_port(struct sock *sk, unsigned short snum);
include/net/inet_connection_sock.h
267
struct dst_entry *inet_csk_route_req(const struct sock *sk, struct flowi4 *fl4,
include/net/inet_connection_sock.h
269
struct dst_entry *inet_csk_route_child_sock(const struct sock *sk,
include/net/inet_connection_sock.h
270
struct sock *newsk,
include/net/inet_connection_sock.h
273
struct sock *inet_csk_reqsk_queue_add(struct sock *sk,
include/net/inet_connection_sock.h
275
struct sock *child);
include/net/inet_connection_sock.h
276
bool inet_csk_reqsk_queue_hash_add(struct sock *sk, struct request_sock *req);
include/net/inet_connection_sock.h
277
struct sock *inet_csk_complete_hashdance(struct sock *sk, struct sock *child,
include/net/inet_connection_sock.h
281
static inline void inet_csk_reqsk_queue_added(struct sock *sk)
include/net/inet_connection_sock.h
286
static inline int inet_csk_reqsk_queue_len(const struct sock *sk)
include/net/inet_connection_sock.h
291
static inline int inet_csk_reqsk_queue_is_full(const struct sock *sk)
include/net/inet_connection_sock.h
296
bool inet_csk_reqsk_queue_drop(struct sock *sk, struct request_sock *req);
include/net/inet_connection_sock.h
297
void inet_csk_reqsk_queue_drop_and_put(struct sock *sk, struct request_sock *req);
include/net/inet_connection_sock.h
299
void inet_csk_destroy_sock(struct sock *sk);
include/net/inet_connection_sock.h
300
void inet_csk_prepare_for_destroy_sock(struct sock *sk);
include/net/inet_connection_sock.h
301
void inet_csk_prepare_forced_close(struct sock *sk);
include/net/inet_connection_sock.h
306
static inline __poll_t inet_csk_listen_poll(const struct sock *sk)
include/net/inet_connection_sock.h
312
int inet_csk_listen_start(struct sock *sk);
include/net/inet_connection_sock.h
313
void inet_csk_listen_stop(struct sock *sk);
include/net/inet_connection_sock.h
316
void inet_csk_update_fastreuse(const struct sock *sk,
include/net/inet_connection_sock.h
320
struct dst_entry *inet_csk_update_pmtu(struct sock *sk, u32 mtu);
include/net/inet_connection_sock.h
322
static inline void inet_csk_enter_pingpong_mode(struct sock *sk)
include/net/inet_connection_sock.h
328
static inline void inet_csk_exit_pingpong_mode(struct sock *sk)
include/net/inet_connection_sock.h
333
static inline bool inet_csk_in_pingpong_mode(struct sock *sk)
include/net/inet_connection_sock.h
339
static inline void inet_csk_inc_pingpong_cnt(struct sock *sk)
include/net/inet_connection_sock.h
347
static inline bool inet_csk_has_ulp(const struct sock *sk)
include/net/inet_connection_sock.h
352
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
37
void (*send_check)(struct sock *sk, struct sk_buff *skb);
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
49
int (*setsockopt)(struct sock *sk, int level, int optname,
include/net/inet_connection_sock.h
51
int (*getsockopt)(struct sock *sk, int level, int optname,
include/net/inet_connection_sock.h
53
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
305
bool inet_ehash_insert(struct sock *sk, struct sock *osk, bool *found_dup_sk);
include/net/inet_hashtables.h
306
bool inet_ehash_nolisten(struct sock *sk, struct sock *osk,
include/net/inet_hashtables.h
308
int inet_hash(struct sock *sk);
include/net/inet_hashtables.h
309
void inet_unhash(struct sock *sk);
include/net/inet_hashtables.h
311
struct sock *__inet_lookup_listener(const struct net *net,
include/net/inet_hashtables.h
318
static inline struct sock *inet_lookup_listener(struct net *net,
include/net/inet_hashtables.h
357
static inline bool inet_match(const struct net *net, const struct sock *sk,
include/net/inet_hashtables.h
374
struct sock *__inet_lookup_established(const struct net *net,
include/net/inet_hashtables.h
387
struct sock *inet_lookup_reuseport(const struct net *net, struct sock *sk,
include/net/inet_hashtables.h
393
struct sock *inet_lookup_run_sk_lookup(const struct net *net,
include/net/inet_hashtables.h
400
static inline struct sock *inet_lookup_established(struct net *net,
include/net/inet_hashtables.h
409
static inline struct sock *__inet_lookup(struct net *net,
include/net/inet_hashtables.h
417
struct sock *sk;
include/net/inet_hashtables.h
429
static inline struct sock *inet_lookup(struct net *net,
include/net/inet_hashtables.h
435
struct sock *sk;
include/net/inet_hashtables.h
447
struct sock *inet_steal_sock(struct net *net, struct sk_buff *skb, int doff,
include/net/inet_hashtables.h
452
struct sock *sk, *reuse_sk;
include/net/inet_hashtables.h
486
static inline struct sock *__inet_lookup_skb(struct sk_buff *skb,
include/net/inet_hashtables.h
495
struct sock *sk;
include/net/inet_hashtables.h
509
static inline void sk_daddr_set(struct sock *sk, __be32 addr)
include/net/inet_hashtables.h
517
static inline void sk_rcv_saddr_set(struct sock *sk, __be32 addr)
include/net/inet_hashtables.h
526
struct sock *sk, u64 port_offset,
include/net/inet_hashtables.h
529
struct sock *, __u16,
include/net/inet_hashtables.h
535
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
798
void ipv4_pktinfo_prepare(const struct sock *sk, struct sk_buff *skb, bool drop_dst);
include/net/ip.h
799
void ip_cmsg_recv_offset(struct msghdr *msg, struct sock *sk,
include/net/ip.h
801
int ip_cmsg_send(struct sock *sk, struct msghdr *msg,
include/net/ip.h
804
int do_ip_setsockopt(struct sock *sk, int level, int optname, sockptr_t optval,
include/net/ip.h
806
int ip_setsockopt(struct sock *sk, int level, int optname, sockptr_t optval,
include/net/ip.h
808
int do_ip_getsockopt(struct sock *sk, int level, int optname,
include/net/ip.h
810
int ip_getsockopt(struct sock *sk, int level, int optname, char __user *optval,
include/net/ip.h
812
int ip_ra_control(struct sock *sk, unsigned char on,
include/net/ip.h
813
void (*destructor)(struct sock *));
include/net/ip.h
815
int ip_recv_error(struct sock *sk, struct msghdr *msg, int len, int *addr_len);
include/net/ip.h
816
void ip_icmp_error(struct sock *sk, struct sk_buff *skb, int err, __be16 port,
include/net/ip.h
818
void ip_local_error(struct sock *sk, int err, __be32 daddr, __be16 dport,
include/net/ip.h
841
void ip_sock_set_freebind(struct sock *sk);
include/net/ip.h
842
int ip_sock_set_mtu_discover(struct sock *sk, int val);
include/net/ip.h
843
void ip_sock_set_pktinfo(struct sock *sk);
include/net/ip.h
844
void ip_sock_set_recverr(struct sock *sk);
include/net/ip.h
845
void ip_sock_set_tos(struct sock *sk, int val);
include/net/ip.h
846
void __ip_sock_set_tos(struct sock *sk, int val);
include/net/ip6_route.h
191
void ip6_sk_update_pmtu(struct sk_buff *skb, struct sock *sk, __be32 mtu);
include/net/ip6_route.h
195
void ip6_sk_redirect(struct sk_buff *skb, struct sock *sk);
include/net/ip6_route.h
231
static inline void ip6_dst_store(struct sock *sk, struct dst_entry *dst,
include/net/ip6_route.h
245
void ip6_sk_dst_store_flow(struct sock *sk, struct dst_entry *dst,
include/net/ip6_route.h
266
int ip6_fragment(struct net *net, struct sock *sk, struct sk_buff *skb,
include/net/ip6_route.h
267
int (*output)(struct net *, struct sock *, struct sk_buff *));
include/net/ip6_route.h
291
static inline bool ip6_sk_accept_pmtu(const struct sock *sk)
include/net/ip6_route.h
299
static inline bool ip6_sk_ignore_df(const struct sock *sk)
include/net/ip6_route.h
86
struct dst_entry *ip6_route_output_flags(struct net *net, const struct sock *sk,
include/net/ip6_route.h
90
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
1007
int ip6_rcv_finish(struct net *net, struct sock *sk, struct sk_buff *skb);
include/net/ipv6.h
1012
int ip6_xmit(const struct sock *sk, struct sk_buff *skb, struct flowi6 *fl6,
include/net/ipv6.h
1017
int ip6_append_data(struct sock *sk,
include/net/ipv6.h
1024
int ip6_push_pending_frames(struct sock *sk);
include/net/ipv6.h
1026
void ip6_flush_pending_frames(struct sock *sk);
include/net/ipv6.h
1030
struct sk_buff *__ip6_make_skb(struct sock *sk, struct sk_buff_head *queue,
include/net/ipv6.h
1032
struct sk_buff *ip6_make_skb(struct sock *sk,
include/net/ipv6.h
1040
static inline struct sk_buff *ip6_finish_skb(struct sock *sk)
include/net/ipv6.h
1045
int ip6_dst_lookup(struct net *net, struct sock *sk, struct dst_entry **dst,
include/net/ipv6.h
1047
struct dst_entry *ip6_dst_lookup_flow(struct net *net, const struct sock *sk, struct flowi6 *fl6,
include/net/ipv6.h
1049
struct dst_entry *ip6_sk_dst_lookup_flow(struct sock *sk, struct flowi6 *fl6,
include/net/ipv6.h
1059
int ip6_output(struct net *net, struct sock *sk, struct sk_buff *skb);
include/net/ipv6.h
1066
int __ip6_local_out(struct net *net, struct sock *sk, struct sk_buff *skb);
include/net/ipv6.h
1067
int ip6_local_out(struct net *net, struct sock *sk, struct sk_buff *skb);
include/net/ipv6.h
1115
int do_ipv6_setsockopt(struct sock *sk, int level, int optname, sockptr_t optval,
include/net/ipv6.h
1117
int ipv6_setsockopt(struct sock *sk, int level, int optname, sockptr_t optval,
include/net/ipv6.h
1119
int do_ipv6_getsockopt(struct sock *sk, int level, int optname,
include/net/ipv6.h
1121
int ipv6_getsockopt(struct sock *sk, int level, int optname,
include/net/ipv6.h
1124
int __ip6_datagram_connect(struct sock *sk, struct sockaddr_unsized *addr,
include/net/ipv6.h
1126
int ip6_datagram_connect(struct sock *sk, struct sockaddr_unsized *addr, int addr_len);
include/net/ipv6.h
1127
int ip6_datagram_connect_v6_only(struct sock *sk, struct sockaddr_unsized *addr,
include/net/ipv6.h
1129
int ip6_datagram_dst_update(struct sock *sk, bool fix_sk_saddr);
include/net/ipv6.h
1130
void ip6_datagram_release_cb(struct sock *sk);
include/net/ipv6.h
1132
int ipv6_recv_error(struct sock *sk, struct msghdr *msg, int len,
include/net/ipv6.h
1134
int ipv6_recv_rxpmtu(struct sock *sk, struct msghdr *msg, int len,
include/net/ipv6.h
1136
void ipv6_icmp_error(struct sock *sk, struct sk_buff *skb, int err, __be16 port,
include/net/ipv6.h
1138
void ipv6_local_error(struct sock *sk, int err, struct flowi6 *fl6, u32 info);
include/net/ipv6.h
1139
void ipv6_local_rxpmtu(struct sock *sk, struct flowi6 *fl6, u32 mtu);
include/net/ipv6.h
1141
void inet6_cleanup_sock(struct sock *sk);
include/net/ipv6.h
1142
void inet6_sock_destruct(struct sock *sk);
include/net/ipv6.h
1143
int inet6_release(struct socket *sock);
include/net/ipv6.h
1144
int inet6_bind(struct socket *sock, struct sockaddr_unsized *uaddr, int addr_len);
include/net/ipv6.h
1145
int inet6_bind_sk(struct sock *sk, struct sockaddr_unsized *uaddr, int addr_len);
include/net/ipv6.h
1146
int inet6_getname(struct socket *sock, struct sockaddr *uaddr,
include/net/ipv6.h
1148
int inet6_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg);
include/net/ipv6.h
1149
int inet6_compat_ioctl(struct socket *sock, unsigned int cmd,
include/net/ipv6.h
1153
struct sock *sk);
include/net/ipv6.h
1154
int inet6_sendmsg(struct socket *sock, struct msghdr *msg, size_t size);
include/net/ipv6.h
1155
int inet6_recvmsg(struct socket *sock, struct msghdr *msg, size_t size,
include/net/ipv6.h
1168
int ip6_mc_source(int add, int omode, struct sock *sk,
include/net/ipv6.h
1170
int ip6_mc_msfilter(struct sock *sk, struct group_filter *gsf,
include/net/ipv6.h
1172
int ip6_mc_msfget(struct sock *sk, struct group_filter *gsf,
include/net/ipv6.h
1207
int ipv6_sock_mc_join(struct sock *sk, int ifindex,
include/net/ipv6.h
1209
int ipv6_sock_mc_join_ssm(struct sock *sk, int ifindex,
include/net/ipv6.h
1211
int ipv6_sock_mc_drop(struct sock *sk, int ifindex,
include/net/ipv6.h
1214
static inline int ip6_sock_set_v6only(struct sock *sk)
include/net/ipv6.h
1227
static inline void ip6_sock_set_recverr(struct sock *sk)
include/net/ipv6.h
1235
static inline int ip6_sock_set_addr_preferences(struct sock *sk, int val)
include/net/ipv6.h
1293
static inline void ip6_sock_set_recvpktinfo(struct sock *sk)
include/net/ipv6.h
278
struct sock *sk;
include/net/ipv6.h
280
void (*destructor)(struct sock *);
include/net/ipv6.h
357
const struct sock *sk)
include/net/ipv6.h
391
struct ip6_flowlabel *__fl6_sock_lookup(struct sock *sk, __be32 label);
include/net/ipv6.h
394
static inline struct ip6_flowlabel *fl6_sock_lookup(struct sock *sk,
include/net/ipv6.h
408
void fl6_free_socklist(struct sock *sk);
include/net/ipv6.h
409
int ipv6_flowlabel_opt(struct sock *sk, sockptr_t optval, int optlen);
include/net/ipv6.h
410
int ipv6_flowlabel_opt_get(struct sock *sk, struct in6_flowlabel_req *freq,
include/net/ipv6.h
414
bool ip6_autoflowlabel(struct net *net, const struct sock *sk);
include/net/ipv6.h
425
void icmpv6_push_pending_frames(struct sock *sk, struct flowi6 *fl6,
include/net/ipv6.h
428
int ip6_ra_control(struct sock *sk, int sel);
include/net/ipv6.h
432
struct ipv6_txoptions *ipv6_dup_options(struct sock *sk,
include/net/ipv6.h
434
struct ipv6_txoptions *ipv6_renew_options(struct sock *sk,
include/net/ipv6.h
449
bool ipv6_opt_accepted(const struct sock *sk, const struct sk_buff *skb,
include/net/ipv6.h
451
struct ipv6_txoptions *ipv6_update_options(struct sock *sk,
include/net/ipv6_stubs.h
24
int (*ipv6_sock_mc_join)(struct sock *sk, int ifindex,
include/net/ipv6_stubs.h
26
int (*ipv6_sock_mc_drop)(struct sock *sk, int ifindex,
include/net/ipv6_stubs.h
29
const struct sock *sk,
include/net/ipv6_stubs.h
63
int (*xfrm6_udp_encap_rcv)(struct sock *sk, struct sk_buff *skb);
include/net/ipv6_stubs.h
64
struct sk_buff *(*xfrm6_gro_udp_encap_rcv)(struct sock *sk,
include/net/ipv6_stubs.h
72
int (*ipv6_fragment)(struct net *net, struct sock *sk, struct sk_buff *skb,
include/net/ipv6_stubs.h
73
int (*output)(struct net *, struct sock *, struct sk_buff *));
include/net/ipv6_stubs.h
76
int (*ip6_xmit)(const struct sock *sk, struct sk_buff *skb, struct flowi6 *fl6,
include/net/ipv6_stubs.h
83
int (*inet6_bind)(struct sock *sk, struct sockaddr_unsized *uaddr, int addr_len,
include/net/ipv6_stubs.h
85
struct sock *(*udp6_lib_lookup)(const struct net *net,
include/net/ipv6_stubs.h
90
int (*ipv6_setsockopt)(struct sock *sk, int level, int optname,
include/net/ipv6_stubs.h
92
int (*ipv6_getsockopt)(struct sock *sk, int level, int optname,
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_conn_ind(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
101
int llc_conn_ac_conn_confirm(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
102
int llc_conn_ac_data_ind(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
103
int llc_conn_ac_disc_ind(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
104
int llc_conn_ac_rst_ind(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
105
int llc_conn_ac_rst_confirm(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
106
int llc_conn_ac_clear_remote_busy_if_f_eq_1(struct sock *sk,
include/net/llc_c_ac.h
108
int llc_conn_ac_stop_rej_tmr_if_data_flag_eq_2(struct sock *sk,
include/net/llc_c_ac.h
110
int llc_conn_ac_send_disc_cmd_p_set_x(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
111
int llc_conn_ac_send_dm_rsp_f_set_p(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
112
int llc_conn_ac_send_dm_rsp_f_set_1(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
113
int llc_conn_ac_send_frmr_rsp_f_set_x(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
114
int llc_conn_ac_resend_frmr_rsp_f_set_0(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
115
int llc_conn_ac_resend_frmr_rsp_f_set_p(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
116
int llc_conn_ac_send_i_cmd_p_set_1(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
117
int llc_conn_ac_send_i_xxx_x_set_0(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
118
int llc_conn_ac_resend_i_xxx_x_set_0(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
119
int llc_conn_ac_resend_i_xxx_x_set_0_or_send_rr(struct sock *sk,
include/net/llc_c_ac.h
121
int llc_conn_ac_resend_i_rsp_f_set_1(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
122
int llc_conn_ac_send_rej_cmd_p_set_1(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
123
int llc_conn_ac_send_rej_rsp_f_set_1(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
124
int llc_conn_ac_send_rej_xxx_x_set_0(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
125
int llc_conn_ac_send_rnr_cmd_p_set_1(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
126
int llc_conn_ac_send_rnr_rsp_f_set_1(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
127
int llc_conn_ac_send_rnr_xxx_x_set_0(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
128
int llc_conn_ac_set_remote_busy(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
129
int llc_conn_ac_opt_send_rnr_xxx_x_set_0(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
130
int llc_conn_ac_send_rr_cmd_p_set_1(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
131
int llc_conn_ac_send_rr_rsp_f_set_1(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
132
int llc_conn_ac_send_ack_rsp_f_set_1(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
133
int llc_conn_ac_send_rr_xxx_x_set_0(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
134
int llc_conn_ac_send_ack_xxx_x_set_0(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
135
int llc_conn_ac_send_sabme_cmd_p_set_x(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
136
int llc_conn_ac_send_ua_rsp_f_set_p(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
137
int llc_conn_ac_set_s_flag_0(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
138
int llc_conn_ac_set_s_flag_1(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
139
int llc_conn_ac_start_p_timer(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
140
int llc_conn_ac_start_ack_timer(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
141
int llc_conn_ac_start_rej_timer(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
142
int llc_conn_ac_start_ack_tmr_if_not_running(struct sock *sk,
include/net/llc_c_ac.h
144
int llc_conn_ac_stop_ack_timer(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
145
int llc_conn_ac_stop_p_timer(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
146
int llc_conn_ac_stop_rej_timer(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
147
int llc_conn_ac_stop_all_timers(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
148
int llc_conn_ac_stop_other_timers(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
149
int llc_conn_ac_upd_nr_received(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
150
int llc_conn_ac_inc_tx_win_size(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
151
int llc_conn_ac_dec_tx_win_size(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
152
int llc_conn_ac_upd_p_flag(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
153
int llc_conn_ac_set_data_flag_2(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
154
int llc_conn_ac_set_data_flag_0(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
155
int llc_conn_ac_set_data_flag_1(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
156
int llc_conn_ac_set_data_flag_1_if_data_flag_eq_0(struct sock *sk,
include/net/llc_c_ac.h
158
int llc_conn_ac_set_p_flag_0(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
159
int llc_conn_ac_set_remote_busy_0(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
160
int llc_conn_ac_set_retry_cnt_0(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
161
int llc_conn_ac_set_cause_flag_0(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
162
int llc_conn_ac_set_cause_flag_1(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
163
int llc_conn_ac_inc_retry_cnt_by_1(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
164
int llc_conn_ac_set_vr_0(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
165
int llc_conn_ac_inc_vr_by_1(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
166
int llc_conn_ac_set_vs_0(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
167
int llc_conn_ac_set_vs_nr(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
168
int llc_conn_ac_rst_vs(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
169
int llc_conn_ac_upd_vs(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
170
int llc_conn_disc(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
171
int llc_conn_reset(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
172
int llc_conn_ac_disc_confirm(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
174
int llc_conn_ac_send_ack_if_needed(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
175
int llc_conn_ac_adjust_npta_by_rr(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
176
int llc_conn_ac_adjust_npta_by_rnr(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
177
int llc_conn_ac_rst_sendack_flag(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
178
int llc_conn_ac_send_i_as_ack(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
185
void llc_conn_set_p_flag(struct sock *sk, u8 value);
include/net/llc_c_ac.h
23
struct sock;
include/net/llc_c_ac.h
97
typedef int (*llc_conn_action_t)(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ac.h
99
int llc_conn_ac_clear_remote_busy(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
128
typedef int (*llc_conn_ev_t)(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
129
typedef int (*llc_conn_ev_qfyr_t)(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
131
int llc_conn_ev_conn_req(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
132
int llc_conn_ev_data_req(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
133
int llc_conn_ev_disc_req(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
134
int llc_conn_ev_rst_req(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
135
int llc_conn_ev_local_busy_detected(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
136
int llc_conn_ev_local_busy_cleared(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
137
int llc_conn_ev_rx_bad_pdu(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
138
int llc_conn_ev_rx_disc_cmd_pbit_set_x(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
139
int llc_conn_ev_rx_dm_rsp_fbit_set_x(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
140
int llc_conn_ev_rx_frmr_rsp_fbit_set_x(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
141
int llc_conn_ev_rx_i_cmd_pbit_set_x_inval_ns(struct sock *sk,
include/net/llc_c_ev.h
143
int llc_conn_ev_rx_i_rsp_fbit_set_x(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
144
int llc_conn_ev_rx_i_rsp_fbit_set_x_unexpd_ns(struct sock *sk,
include/net/llc_c_ev.h
146
int llc_conn_ev_rx_i_rsp_fbit_set_x_inval_ns(struct sock *sk,
include/net/llc_c_ev.h
148
int llc_conn_ev_rx_rej_rsp_fbit_set_x(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
149
int llc_conn_ev_rx_sabme_cmd_pbit_set_x(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
150
int llc_conn_ev_rx_ua_rsp_fbit_set_x(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
151
int llc_conn_ev_rx_xxx_cmd_pbit_set_x(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
152
int llc_conn_ev_rx_xxx_rsp_fbit_set_x(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
153
int llc_conn_ev_rx_zzz_cmd_pbit_set_x_inval_nr(struct sock *sk,
include/net/llc_c_ev.h
155
int llc_conn_ev_rx_zzz_rsp_fbit_set_x_inval_nr(struct sock *sk,
include/net/llc_c_ev.h
157
int llc_conn_ev_p_tmr_exp(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
158
int llc_conn_ev_ack_tmr_exp(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
159
int llc_conn_ev_rej_tmr_exp(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
160
int llc_conn_ev_busy_tmr_exp(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
162
int llc_conn_ev_rx_xxx_cmd_pbit_set_1(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
163
int llc_conn_ev_rx_xxx_rsp_fbit_set_1(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
164
int llc_conn_ev_rx_i_cmd_pbit_set_0_unexpd_ns(struct sock *sk,
include/net/llc_c_ev.h
166
int llc_conn_ev_rx_i_cmd_pbit_set_1_unexpd_ns(struct sock *sk,
include/net/llc_c_ev.h
168
int llc_conn_ev_rx_i_cmd_pbit_set_0(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
169
int llc_conn_ev_rx_i_cmd_pbit_set_1(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
170
int llc_conn_ev_rx_i_rsp_fbit_set_0_unexpd_ns(struct sock *sk,
include/net/llc_c_ev.h
172
int llc_conn_ev_rx_i_rsp_fbit_set_1_unexpd_ns(struct sock *sk,
include/net/llc_c_ev.h
174
int llc_conn_ev_rx_i_rsp_fbit_set_0(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
175
int llc_conn_ev_rx_i_rsp_fbit_set_1(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
176
int llc_conn_ev_rx_rr_cmd_pbit_set_0(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
177
int llc_conn_ev_rx_rr_cmd_pbit_set_1(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
178
int llc_conn_ev_rx_rr_rsp_fbit_set_0(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
179
int llc_conn_ev_rx_rr_rsp_fbit_set_1(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
180
int llc_conn_ev_rx_rnr_cmd_pbit_set_0(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
181
int llc_conn_ev_rx_rnr_cmd_pbit_set_1(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
182
int llc_conn_ev_rx_rnr_rsp_fbit_set_0(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
183
int llc_conn_ev_rx_rnr_rsp_fbit_set_1(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
184
int llc_conn_ev_rx_rej_cmd_pbit_set_0(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
185
int llc_conn_ev_rx_rej_cmd_pbit_set_1(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
186
int llc_conn_ev_rx_rej_rsp_fbit_set_0(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
187
int llc_conn_ev_rx_rej_rsp_fbit_set_1(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
188
int llc_conn_ev_rx_any_frame(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
189
int llc_conn_ev_tx_buffer_full(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
190
int llc_conn_ev_init_p_f_cycle(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
193
int llc_conn_ev_qlfy_data_flag_eq_1(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
194
int llc_conn_ev_qlfy_data_flag_eq_0(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
195
int llc_conn_ev_qlfy_data_flag_eq_2(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
196
int llc_conn_ev_qlfy_p_flag_eq_1(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
197
int llc_conn_ev_qlfy_last_frame_eq_1(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
198
int llc_conn_ev_qlfy_last_frame_eq_0(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
199
int llc_conn_ev_qlfy_p_flag_eq_0(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
200
int llc_conn_ev_qlfy_p_flag_eq_f(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
201
int llc_conn_ev_qlfy_remote_busy_eq_0(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
202
int llc_conn_ev_qlfy_remote_busy_eq_1(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
203
int llc_conn_ev_qlfy_retry_cnt_lt_n2(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
204
int llc_conn_ev_qlfy_retry_cnt_gte_n2(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
205
int llc_conn_ev_qlfy_s_flag_eq_1(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
206
int llc_conn_ev_qlfy_s_flag_eq_0(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
207
int llc_conn_ev_qlfy_cause_flag_eq_1(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
208
int llc_conn_ev_qlfy_cause_flag_eq_0(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
209
int llc_conn_ev_qlfy_set_status_conn(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
210
int llc_conn_ev_qlfy_set_status_disc(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
211
int llc_conn_ev_qlfy_set_status_failed(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
212
int llc_conn_ev_qlfy_set_status_remote_busy(struct sock *sk,
include/net/llc_c_ev.h
214
int llc_conn_ev_qlfy_set_status_refuse(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
215
int llc_conn_ev_qlfy_set_status_conflict(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
216
int llc_conn_ev_qlfy_set_status_rst_done(struct sock *sk, struct sk_buff *skb);
include/net/llc_c_ev.h
218
static __inline__ int llc_conn_space(struct sock *sk, struct sk_buff *skb)
include/net/llc_conn.h
101
void llc_sk_stop_all_timers(struct sock *sk, bool sync);
include/net/llc_conn.h
102
void llc_sk_free(struct sock *sk);
include/net/llc_conn.h
104
void llc_sk_reset(struct sock *sk);
include/net/llc_conn.h
107
int llc_conn_state_process(struct sock *sk, struct sk_buff *skb);
include/net/llc_conn.h
108
void llc_conn_send_pdu(struct sock *sk, struct sk_buff *skb);
include/net/llc_conn.h
109
void llc_conn_rtn_pdu(struct sock *sk, struct sk_buff *skb);
include/net/llc_conn.h
110
void llc_conn_resend_i_pdu_as_cmd(struct sock *sk, u8 nr, u8 first_p_bit);
include/net/llc_conn.h
111
void llc_conn_resend_i_pdu_as_rsp(struct sock *sk, u8 nr, u8 first_f_bit);
include/net/llc_conn.h
112
int llc_conn_remove_acked_pdus(struct sock *conn, u8 nr, u16 *how_many_unacked);
include/net/llc_conn.h
113
struct sock *llc_lookup_established(struct llc_sap *sap, struct llc_addr *daddr,
include/net/llc_conn.h
115
void llc_sap_add_socket(struct llc_sap *sap, struct sock *sk);
include/net/llc_conn.h
116
void llc_sap_remove_socket(struct llc_sap *sap, struct sock *sk);
include/net/llc_conn.h
34
struct sock sk;
include/net/llc_conn.h
84
static inline struct llc_sock *llc_sk(const struct sock *sk)
include/net/llc_conn.h
99
struct sock *llc_sk_alloc(struct net *net, int family, gfp_t priority,
include/net/llc_if.h
65
int llc_establish_connection(struct sock *sk, const u8 *lmac, u8 *dmac,
include/net/llc_if.h
67
int llc_build_and_send_pkt(struct sock *sk, struct sk_buff *skb);
include/net/llc_if.h
68
int llc_send_disc(struct sock *sk);
include/net/llc_sap.h
20
struct sock;
include/net/llc_sap.h
23
void llc_save_primitive(struct sock *sk, struct sk_buff *skb,
include/net/llc_sap.h
25
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
145
struct sock *sk;
include/net/mctp.h
291
int mctp_local_output(struct sock *sk, struct mctp_dst *dst,
include/net/mctp.h
68
struct sock sk;
include/net/mptcp.h
132
static inline bool sk_is_mptcp(const struct sock *sk)
include/net/mptcp.h
147
void mptcp_space(const struct sock *ssk, int *space, int *full_space);
include/net/mptcp.h
148
bool mptcp_syn_options(struct sock *sk, const struct sk_buff *skb,
include/net/mptcp.h
152
bool mptcp_established_options(struct sock *sk, struct sk_buff *skb,
include/net/mptcp.h
155
bool mptcp_incoming_options(struct sock *sk, struct sk_buff *skb);
include/net/mptcp.h
217
const struct sock *sk_listener,
include/net/mptcp.h
220
struct sock *sk_listener,
include/net/mptcp.h
233
void mptcp_active_detect_blackhole(struct sock *sk, bool expired);
include/net/mptcp.h
240
static inline bool sk_is_mptcp(const struct sock *sk)
include/net/mptcp.h
255
static inline bool mptcp_syn_options(struct sock *sk, const struct sk_buff *skb,
include/net/mptcp.h
269
static inline bool mptcp_established_options(struct sock *sk,
include/net/mptcp.h
278
static inline bool mptcp_incoming_options(struct sock *sk,
include/net/mptcp.h
300
static inline void mptcp_space(const struct sock *ssk, int *s, int *fs) { }
include/net/mptcp.h
304
const struct sock *sk_listener,
include/net/mptcp.h
311
struct sock *sk_listener,
include/net/mptcp.h
319
static inline void mptcp_active_detect_blackhole(struct sock *sk, bool expired) { }
include/net/mptcp.h
324
void mptcpv6_handle_mapped(struct sock *sk, bool mapped);
include/net/mptcp.h
327
static inline void mptcpv6_handle_mapped(struct sock *sk, bool mapped) { }
include/net/mptcp.h
331
struct mptcp_sock *bpf_mptcp_sock_from_subflow(struct sock *sk);
include/net/mptcp.h
333
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
39
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/netrom.h
191
void nr_destroy_socket(struct sock *);
include/net/netrom.h
198
int nr_process_rx_frame(struct sock *, struct sk_buff *);
include/net/netrom.h
206
void nr_output(struct sock *, struct sk_buff *);
include/net/netrom.h
207
void nr_send_nak_frame(struct sock *);
include/net/netrom.h
208
void nr_kick(struct sock *);
include/net/netrom.h
209
void nr_transmit_buffer(struct sock *, struct sk_buff *);
include/net/netrom.h
210
void nr_establish_data_link(struct sock *);
include/net/netrom.h
211
void nr_enquiry_response(struct sock *);
include/net/netrom.h
212
void nr_check_iframes_acked(struct sock *, unsigned short);
include/net/netrom.h
226
void nr_clear_queues(struct sock *);
include/net/netrom.h
227
void nr_frames_acked(struct sock *, unsigned short);
include/net/netrom.h
228
void nr_requeue_frames(struct sock *);
include/net/netrom.h
229
int nr_validate_nr(struct sock *, unsigned short);
include/net/netrom.h
230
int nr_in_rx_window(struct sock *, unsigned short);
include/net/netrom.h
231
void nr_write_internal(struct sock *, int);
include/net/netrom.h
253
void nr_disconnect(struct sock *, int);
include/net/netrom.h
256
void nr_init_timers(struct sock *sk);
include/net/netrom.h
257
void nr_start_heartbeat(struct sock *);
include/net/netrom.h
258
void nr_start_t1timer(struct sock *);
include/net/netrom.h
259
void nr_start_t2timer(struct sock *);
include/net/netrom.h
260
void nr_start_t4timer(struct sock *);
include/net/netrom.h
261
void nr_start_idletimer(struct sock *);
include/net/netrom.h
262
void nr_stop_heartbeat(struct sock *);
include/net/netrom.h
263
void nr_stop_t1timer(struct sock *);
include/net/netrom.h
264
void nr_stop_t2timer(struct sock *);
include/net/netrom.h
265
void nr_stop_t4timer(struct sock *);
include/net/netrom.h
266
void nr_stop_idletimer(struct sock *);
include/net/netrom.h
267
int nr_t1timer_running(struct sock *);
include/net/netrom.h
68
struct sock sock;
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
25
void (*ip6_datagram_recv_common_ctl)(struct sock *sk,
include/net/ping.h
28
void (*ip6_datagram_recv_specific_ctl)(struct sock *sk,
include/net/ping.h
32
void (*ipv6_icmp_error)(struct sock *sk, struct sk_buff *skb, int err,
include/net/ping.h
56
int ping_get_port(struct sock *sk, unsigned short ident);
include/net/ping.h
57
void ping_unhash(struct sock *sk);
include/net/ping.h
59
int ping_init_sock(struct sock *sk);
include/net/ping.h
60
void ping_close(struct sock *sk, long timeout);
include/net/ping.h
61
int ping_bind(struct sock *sk, struct sockaddr_unsized *uaddr, int addr_len);
include/net/ping.h
66
int ping_recvmsg(struct sock *sk, struct msghdr *msg, size_t len,
include/net/ping.h
70
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/rose.h
129
struct sock sock;
include/net/rose.h
186
struct sock *rose_find_socket(unsigned int, struct rose_neigh *);
include/net/rose.h
191
void rose_destroy_socket(struct sock *);
include/net/rose.h
197
int rose_process_rx_frame(struct sock *, struct sk_buff *);
include/net/rose.h
216
void rose_kick(struct sock *);
include/net/rose.h
217
void rose_enquiry_response(struct sock *);
include/net/rose.h
241
void rose_clear_queues(struct sock *);
include/net/rose.h
242
void rose_frames_acked(struct sock *, unsigned short);
include/net/rose.h
243
void rose_requeue_frames(struct sock *);
include/net/rose.h
244
int rose_validate_nr(struct sock *, unsigned short);
include/net/rose.h
245
void rose_write_internal(struct sock *, int);
include/net/rose.h
249
void rose_disconnect(struct sock *, int, int, int);
include/net/rose.h
252
void rose_start_heartbeat(struct sock *);
include/net/rose.h
253
void rose_start_t1timer(struct sock *);
include/net/rose.h
254
void rose_start_t2timer(struct sock *);
include/net/rose.h
255
void rose_start_t3timer(struct sock *);
include/net/rose.h
256
void rose_start_hbtimer(struct sock *);
include/net/rose.h
257
void rose_start_idletimer(struct sock *);
include/net/rose.h
258
void rose_stop_heartbeat(struct sock *);
include/net/rose.h
259
void rose_stop_timer(struct sock *);
include/net/rose.h
260
void rose_stop_idletimer(struct sock *);
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
101
static inline void _sock_rps_record_flow(const struct sock *sk)
include/net/rps.h
121
static inline void _sock_rps_delete_flow(const struct sock *sk)
include/net/rps.h
160
static inline void sock_rps_record_flow(const struct sock *sk)
include/net/rps.h
170
static inline void sock_rps_delete_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
115
int sctp_get_sctp_info(struct sock *sk, struct sctp_association *asoc,
include/net/sctp/sctp.h
137
struct sock *sctp_err_lookup(struct net *net, int family, struct sk_buff *,
include/net/sctp/sctp.h
140
void sctp_err_finish(struct sock *, struct sctp_transport *);
include/net/sctp/sctp.h
141
int sctp_udp_v4_err(struct sock *sk, struct sk_buff *skb);
include/net/sctp/sctp.h
142
int sctp_udp_v6_err(struct sock *sk, struct sk_buff *skb);
include/net/sctp/sctp.h
143
void sctp_icmp_frag_needed(struct sock *, struct sctp_association *,
include/net/sctp/sctp.h
145
void sctp_icmp_redirect(struct sock *, struct sctp_transport *,
include/net/sctp/sctp.h
147
void sctp_icmp_proto_unreachable(struct sock *sk,
include/net/sctp/sctp.h
364
struct sctp_association *sctp_id2assoc(struct sock *sk, sctp_assoc_t id);
include/net/sctp/sctp.h
393
static inline void sctp_skb_set_owner_r(struct sk_buff *skb, struct sock *sk)
include/net/sctp/sctp.h
458
void sctp_put_port(struct sock *sk);
include/net/sctp/sctp.h
509
static inline int __sctp_style(const struct sock *sk,
include/net/sctp/sctp.h
525
static inline int __sctp_sstate(const struct sock *sk,
include/net/sctp/sctp.h
659
static inline bool sctp_newsk_ready(const struct sock *sk)
include/net/sctp/sctp.h
664
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
1206
int sctp_is_any(struct sock *sk, const union sctp_addr *addr);
include/net/sctp/structs.h
1207
int sctp_is_ep_boundall(struct sock *sk);
include/net/sctp/structs.h
1244
struct sock *sk;
include/net/sctp/structs.h
1339
struct sctp_endpoint *sctp_endpoint_new(struct sock *, gfp_t);
include/net/sctp/structs.h
2110
sctp_association_new(const struct sctp_endpoint *ep, const struct sock *sk,
include/net/sctp/structs.h
2134
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
428
int (*setsockopt) (struct sock *sk,
include/net/sctp/structs.h
433
int (*getsockopt) (struct sock *sk,
include/net/sctp/structs.h
441
struct sock *sk);
include/net/sctp/structs.h
455
struct sock *sk);
include/net/sctp/structs.h
474
void (*ecn_capable)(struct sock *sk);
include/net/sctp/structs.h
477
int (*ip_options_len)(struct sock *sk);
include/net/sctp/structs.h
497
void (*to_sk_saddr)(union sctp_addr *, struct sock *sk);
include/net/sctp/structs.h
498
void (*to_sk_daddr)(union sctp_addr *, struct sock *sk);
include/net/sctp/structs.h
499
void (*copy_ip_options)(struct sock *sk, struct sock *newsk);
include/net/sctp/structs.h
663
struct sock *, gfp_t gfp);
include/net/sctp/structs.h
995
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
1030
static inline void sock_copy_flags(struct sock *nsk, const struct sock *osk)
include/net/sock.h
1035
static inline void sock_set_flag(struct sock *sk, enum sock_flags flag)
include/net/sock.h
1040
static inline void sock_reset_flag(struct sock *sk, enum sock_flags flag)
include/net/sock.h
1045
static inline void sock_valbool_flag(struct sock *sk, enum sock_flags bit,
include/net/sock.h
1054
static inline bool sock_flag(const struct sock *sk, enum sock_flags flag)
include/net/sock.h
1078
static inline gfp_t sk_gfp_mask(const struct sock *sk, gfp_t gfp_mask)
include/net/sock.h
1083
static inline void sk_acceptq_removed(struct sock *sk)
include/net/sock.h
1088
static inline void sk_acceptq_added(struct sock *sk)
include/net/sock.h
1097
static inline bool sk_acceptq_is_full(const struct sock *sk)
include/net/sock.h
1105
static inline int sk_stream_min_wspace(const struct sock *sk)
include/net/sock.h
1110
static inline int sk_stream_wspace(const struct sock *sk)
include/net/sock.h
1115
static inline void sk_wmem_queued_add(struct sock *sk, int val)
include/net/sock.h
1120
static inline void sk_forward_alloc_add(struct sock *sk, int val)
include/net/sock.h
1126
void sk_stream_write_space(struct sock *sk);
include/net/sock.h
1129
static inline void __sk_add_backlog(struct sock *sk, struct sk_buff *skb)
include/net/sock.h
1148
static inline bool sk_rcvqueues_full(const struct sock *sk, unsigned int limit)
include/net/sock.h
1156
static inline __must_check int sk_add_backlog(struct sock *sk, struct sk_buff *skb,
include/net/sock.h
1175
int __sk_backlog_rcv(struct sock *sk, struct sk_buff *skb);
include/net/sock.h
1177
INDIRECT_CALLABLE_DECLARE(int tcp_v4_do_rcv(struct sock *sk, struct sk_buff *skb));
include/net/sock.h
1178
INDIRECT_CALLABLE_DECLARE(int tcp_v6_do_rcv(struct sock *sk, struct sk_buff *skb));
include/net/sock.h
1180
static inline int sk_backlog_rcv(struct sock *sk, struct sk_buff *skb)
include/net/sock.h
1191
static inline void sk_incoming_cpu_update(struct sock *sk)
include/net/sock.h
1200
static inline void sock_rps_save_rxhash(struct sock *sk,
include/net/sock.h
1212
static inline void sock_rps_reset_rxhash(struct sock *sk)
include/net/sock.h
1235
int sk_stream_wait_connect(struct sock *sk, long *timeo_p);
include/net/sock.h
1236
int sk_stream_wait_memory(struct sock *sk, long *timeo_p);
include/net/sock.h
1237
void sk_stream_wait_close(struct sock *sk, long timeo_p);
include/net/sock.h
1238
int sk_stream_error(struct sock *sk, int flags, int err);
include/net/sock.h
1239
void sk_stream_kill_queues(struct sock *sk);
include/net/sock.h
1240
void sk_set_memalloc(struct sock *sk);
include/net/sock.h
1241
void sk_clear_memalloc(struct sock *sk);
include/net/sock.h
1243
void __sk_flush_backlog(struct sock *sk);
include/net/sock.h
1245
static inline bool sk_flush_backlog(struct sock *sk)
include/net/sock.h
1254
int sk_wait_data(struct sock *sk, long *timeo, const struct sk_buff *skb);
include/net/sock.h
1268
static inline void sk_prot_clear_nulls(struct sock *sk, int size)
include/net/sock.h
1270
if (offsetof(struct sock, sk_node.next) != 0)
include/net/sock.h
1271
memset(sk, 0, offsetof(struct sock, sk_node.next));
include/net/sock.h
1273
size - offsetof(struct sock, sk_node.pprev));
include/net/sock.h
1287
void (*close)(struct sock *sk,
include/net/sock.h
1289
int (*pre_connect)(struct sock *sk,
include/net/sock.h
1292
int (*connect)(struct sock *sk,
include/net/sock.h
1295
int (*disconnect)(struct sock *sk, int flags);
include/net/sock.h
1297
struct sock * (*accept)(struct sock *sk,
include/net/sock.h
1300
int (*ioctl)(struct sock *sk, int cmd,
include/net/sock.h
1302
int (*init)(struct sock *sk);
include/net/sock.h
1303
void (*destroy)(struct sock *sk);
include/net/sock.h
1304
void (*shutdown)(struct sock *sk, int how);
include/net/sock.h
1305
int (*setsockopt)(struct sock *sk, int level,
include/net/sock.h
1308
int (*getsockopt)(struct sock *sk, int level,
include/net/sock.h
1311
void (*keepalive)(struct sock *sk, int valbool);
include/net/sock.h
1313
int (*compat_ioctl)(struct sock *sk,
include/net/sock.h
1316
int (*sendmsg)(struct sock *sk, struct msghdr *msg,
include/net/sock.h
1318
int (*recvmsg)(struct sock *sk, struct msghdr *msg,
include/net/sock.h
1320
void (*splice_eof)(struct socket *sock);
include/net/sock.h
1321
int (*bind)(struct sock *sk,
include/net/sock.h
1323
int (*bind_add)(struct sock *sk,
include/net/sock.h
1326
int (*backlog_rcv) (struct sock *sk,
include/net/sock.h
1331
void (*release_cb)(struct sock *sk);
include/net/sock.h
1334
int (*hash)(struct sock *sk);
include/net/sock.h
1335
void (*unhash)(struct sock *sk);
include/net/sock.h
1336
void (*rehash)(struct sock *sk);
include/net/sock.h
1337
int (*get_port)(struct sock *sk, unsigned short snum);
include/net/sock.h
1338
void (*put_port)(struct sock *sk);
include/net/sock.h
1340
int (*psock_update_sk_prot)(struct sock *sk,
include/net/sock.h
1350
bool (*stream_memory_free)(const struct sock *sk, int wake);
include/net/sock.h
1351
bool (*sock_is_readable)(struct sock *sk);
include/net/sock.h
1353
void (*enter_memory_pressure)(struct sock *sk);
include/net/sock.h
1354
void (*leave_memory_pressure)(struct sock *sk);
include/net/sock.h
1400
int (*diag_destroy)(struct sock *sk, int err);
include/net/sock.h
1407
INDIRECT_CALLABLE_DECLARE(bool tcp_stream_memory_free(const struct sock *sk, int wake));
include/net/sock.h
1409
static inline bool __sk_stream_memory_free(const struct sock *sk, int wake)
include/net/sock.h
1419
static inline bool sk_stream_memory_free(const struct sock *sk)
include/net/sock.h
1424
static inline bool __sk_stream_is_writeable(const struct sock *sk, int wake)
include/net/sock.h
1430
static inline bool sk_stream_is_writeable(const struct sock *sk)
include/net/sock.h
1435
static inline int sk_under_cgroup_hierarchy(struct sock *sk,
include/net/sock.h
1448
static inline void sk_sockets_allocated_dec(struct sock *sk)
include/net/sock.h
1454
static inline void sk_sockets_allocated_inc(struct sock *sk)
include/net/sock.h
1461
sk_sockets_allocated_read_positive(struct sock *sk)
include/net/sock.h
1507
static inline int __sk_prot_rehash(struct sock *sk)
include/net/sock.h
1548
int __sk_mem_raise_allocated(struct sock *sk, int size, int amt, int kind);
include/net/sock.h
1549
int __sk_mem_schedule(struct sock *sk, int size, int kind);
include/net/sock.h
1550
void __sk_mem_reduce_allocated(struct sock *sk, int amount);
include/net/sock.h
1551
void __sk_mem_reclaim(struct sock *sk, int amount);
include/net/sock.h
1557
static inline long sk_prot_mem_limits(const struct sock *sk, int index)
include/net/sock.h
1567
static inline bool sk_has_account(struct sock *sk)
include/net/sock.h
1573
static inline bool sk_wmem_schedule(struct sock *sk, int size)
include/net/sock.h
1584
__sk_rmem_schedule(struct sock *sk, int size, bool pfmemalloc)
include/net/sock.h
1596
sk_rmem_schedule(struct sock *sk, const struct sk_buff *skb, int size)
include/net/sock.h
1601
static inline int sk_unused_reserved_mem(const struct sock *sk)
include/net/sock.h
1614
static inline void sk_mem_reclaim(struct sock *sk)
include/net/sock.h
1627
static inline void sk_mem_reclaim_final(struct sock *sk)
include/net/sock.h
1633
static inline void sk_mem_charge(struct sock *sk, int size)
include/net/sock.h
1640
static inline void sk_mem_uncharge(struct sock *sk, int size)
include/net/sock.h
1648
void __sk_charge(struct sock *sk, gfp_t gfp);
include/net/sock.h
1651
static inline void sk_owner_set(struct sock *sk, struct module *owner)
include/net/sock.h
1657
static inline void sk_owner_clear(struct sock *sk)
include/net/sock.h
1662
static inline void sk_owner_put(struct sock *sk)
include/net/sock.h
1667
static inline void sk_owner_set(struct sock *sk, struct module *owner)
include/net/sock.h
1671
static inline void sk_owner_clear(struct sock *sk)
include/net/sock.h
1675
static inline void sk_owner_put(struct sock *sk)
include/net/sock.h
1699
static inline bool lockdep_sock_is_held(const struct sock *sk)
include/net/sock.h
1705
void lock_sock_nested(struct sock *sk, int subclass);
include/net/sock.h
1707
static inline void lock_sock(struct sock *sk)
include/net/sock.h
1712
void __lock_sock(struct sock *sk);
include/net/sock.h
1713
void __release_sock(struct sock *sk);
include/net/sock.h
1714
void release_sock(struct sock *sk);
include/net/sock.h
1723
bool __lock_sock_fast(struct sock *sk) __acquires(&sk->sk_lock.slock);
include/net/sock.h
1738
static inline bool lock_sock_fast(struct sock *sk)
include/net/sock.h
1747
static inline bool lock_sock_fast_nested(struct sock *sk)
include/net/sock.h
1762
static inline void unlock_sock_fast(struct sock *sk, bool slow)
include/net/sock.h
1774
void sockopt_lock_sock(struct sock *sk);
include/net/sock.h
1775
void sockopt_release_sock(struct sock *sk);
include/net/sock.h
1793
static inline void sock_owned_by_me(const struct sock *sk)
include/net/sock.h
1800
static inline void sock_not_owned_by_me(const struct sock *sk)
include/net/sock.h
1807
static inline bool sock_owned_by_user(const struct sock *sk)
include/net/sock.h
1813
static inline bool sock_owned_by_user_nocheck(const struct sock *sk)
include/net/sock.h
1818
static inline void sock_release_ownership(struct sock *sk)
include/net/sock.h
1828
static inline bool sock_allow_reclassification(const struct sock *csk)
include/net/sock.h
1830
struct sock *sk = (struct sock *)csk;
include/net/sock.h
1836
struct sock *sk_alloc(struct net *net, int family, gfp_t priority,
include/net/sock.h
1838
void sk_free(struct sock *sk);
include/net/sock.h
1839
void sk_net_refcnt_upgrade(struct sock *sk);
include/net/sock.h
1840
void sk_destruct(struct sock *sk);
include/net/sock.h
1841
struct sock *sk_clone(const struct sock *sk, const gfp_t priority, bool lock);
include/net/sock.h
1843
static inline struct sock *sk_clone_lock(const struct sock *sk, const gfp_t priority)
include/net/sock.h
1848
struct sk_buff *sock_wmalloc(struct sock *sk, unsigned long size, int force,
include/net/sock.h
1852
struct sk_buff *sock_omalloc(struct sock *sk, unsigned long size,
include/net/sock.h
1861
static inline void skb_set_owner_edemux(struct sk_buff *skb, struct sock *sk)
include/net/sock.h
1873
int sk_setsockopt(struct sock *sk, int level, int optname,
include/net/sock.h
1875
int sock_setsockopt(struct socket *sock, int level, int op,
include/net/sock.h
1877
int do_sock_setsockopt(struct socket *sock, bool compat, int level,
include/net/sock.h
1879
int do_sock_getsockopt(struct socket *sock, bool compat, int level,
include/net/sock.h
1882
int sk_getsockopt(struct sock *sk, int level, int optname,
include/net/sock.h
1884
int sock_gettstamp(struct socket *sock, void __user *userstamp,
include/net/sock.h
1886
struct sk_buff *sock_alloc_send_pskb(struct sock *sk, unsigned long header_len,
include/net/sock.h
1890
static inline struct sk_buff *sock_alloc_send_skb(struct sock *sk,
include/net/sock.h
1897
void *sock_kmalloc(struct sock *sk, int size, gfp_t priority);
include/net/sock.h
1898
void *sock_kmemdup(struct sock *sk, const void *src,
include/net/sock.h
1900
void sock_kfree_s(struct sock *sk, void *mem, int size);
include/net/sock.h
1901
void sock_kzfree_s(struct sock *sk, void *mem, int size);
include/net/sock.h
1902
void sk_send_sigurg(struct sock *sk);
include/net/sock.h
1904
static inline void sock_replace_proto(struct sock *sk, struct proto *proto)
include/net/sock.h
1921
const struct sock *sk)
include/net/sock.h
1930
int __sock_cmsg_send(struct sock *sk, struct cmsghdr *cmsg,
include/net/sock.h
1932
int sock_cmsg_send(struct sock *sk, struct msghdr *msg,
include/net/sock.h
1939
int sock_no_bind(struct socket *sock, struct sockaddr_unsized *saddr, int len);
include/net/sock.h
1940
int sock_no_connect(struct socket *sock, struct sockaddr_unsized *saddr, int len, int flags);
include/net/sock.h
1948
int sock_no_sendmsg_locked(struct sock *sk, struct msghdr *msg, size_t len);
include/net/sock.h
1950
int sock_no_mmap(struct file *file, struct socket *sock,
include/net/sock.h
1957
int sock_common_getsockopt(struct socket *sock, int level, int optname,
include/net/sock.h
1959
int sock_common_recvmsg(struct socket *sock, struct msghdr *msg, size_t size,
include/net/sock.h
1961
int sock_common_setsockopt(struct socket *sock, int level, int optname,
include/net/sock.h
1964
void sk_common_release(struct sock *sk);
include/net/sock.h
1971
void sock_init_data_uid(struct socket *sock, struct sock *sk, kuid_t uid);
include/net/sock.h
1976
void sock_init_data(struct socket *sock, struct sock *sk);
include/net/sock.h
2004
static inline void sock_put(struct sock *sk)
include/net/sock.h
201
struct sock *skc_listener; /* request_sock */
include/net/sock.h
2012
void sock_gen_put(struct sock *sk);
include/net/sock.h
2014
int __sk_receive_skb(struct sock *sk, struct sk_buff *skb, const int nested,
include/net/sock.h
2016
static inline int sk_receive_skb(struct sock *sk, struct sk_buff *skb,
include/net/sock.h
2022
static inline void sk_tx_queue_set(struct sock *sk, int tx_queue)
include/net/sock.h
2043
static inline void sk_tx_queue_clear(struct sock *sk)
include/net/sock.h
2051
int sk_tx_queue_get(const struct sock *sk);
include/net/sock.h
2053
static inline void __sk_rx_queue_set(struct sock *sk,
include/net/sock.h
2068
static inline void sk_rx_queue_set(struct sock *sk, const struct sk_buff *skb)
include/net/sock.h
2073
static inline void sk_rx_queue_update(struct sock *sk, const struct sk_buff *skb)
include/net/sock.h
2078
static inline void sk_rx_queue_clear(struct sock *sk)
include/net/sock.h
2085
static inline int sk_rx_queue_get(const struct sock *sk)
include/net/sock.h
2099
static inline void sk_set_socket(struct sock *sk, struct socket *sock)
include/net/sock.h
2101
WRITE_ONCE(sk->sk_socket, sock);
include/net/sock.h
2102
if (sock) {
include/net/sock.h
2103
WRITE_ONCE(sk->sk_uid, SOCK_INODE(sock)->i_uid);
include/net/sock.h
2104
WRITE_ONCE(sk->sk_ino, SOCK_INODE(sock)->i_ino);
include/net/sock.h
2111
static inline wait_queue_head_t *sk_sleep(struct sock *sk)
include/net/sock.h
2123
static inline void sock_orphan(struct sock *sk)
include/net/sock.h
2132
static inline void sock_graft(struct sock *sk, struct socket *parent)
include/net/sock.h
2143
static inline unsigned long sock_i_ino(const struct sock *sk)
include/net/sock.h
2149
static inline kuid_t sk_uid(const struct sock *sk)
include/net/sock.h
2155
static inline kuid_t sock_net_uid(const struct net *net, const struct sock *sk)
include/net/sock.h
2167
static inline void sk_set_txhash(struct sock *sk)
include/net/sock.h
2173
static inline bool sk_rethink_txhash(struct sock *sk)
include/net/sock.h
2183
__sk_dst_get(const struct sock *sk)
include/net/sock.h
2190
sk_dst_get(const struct sock *sk)
include/net/sock.h
2202
static inline void __dst_negative_advice(struct sock *sk)
include/net/sock.h
2210
static inline void dst_negative_advice(struct sock *sk)
include/net/sock.h
2217
__sk_dst_set(struct sock *sk, struct dst_entry *dst)
include/net/sock.h
2230
sk_dst_set(struct sock *sk, struct dst_entry *dst)
include/net/sock.h
2241
__sk_dst_reset(struct sock *sk)
include/net/sock.h
2247
sk_dst_reset(struct sock *sk)
include/net/sock.h
2252
struct dst_entry *__sk_dst_check(struct sock *sk, u32 cookie);
include/net/sock.h
2254
struct dst_entry *sk_dst_check(struct sock *sk, u32 cookie);
include/net/sock.h
2256
static inline void sk_dst_confirm(struct sock *sk)
include/net/sock.h
2265
struct sock *sk = skb->sk;
include/net/sock.h
2273
bool sk_mc_loop(const struct sock *sk);
include/net/sock.h
2275
static inline bool sk_can_gso(const struct sock *sk)
include/net/sock.h
2280
void sk_setup_caps(struct sock *sk, struct dst_entry *dst);
include/net/sock.h
2282
static inline void sk_gso_disable(struct sock *sk)
include/net/sock.h
2288
static inline int skb_do_copy_data_nocache(struct sock *sk, struct sk_buff *skb,
include/net/sock.h
2306
static inline int skb_add_data_nocache(struct sock *sk, struct sk_buff *skb,
include/net/sock.h
2319
static inline int skb_copy_to_page_nocache(struct sock *sk, struct iov_iter *from,
include/net/sock.h
2344
static inline int sk_wmem_alloc_get(const struct sock *sk)
include/net/sock.h
2355
static inline int sk_rmem_alloc_get(const struct sock *sk)
include/net/sock.h
2366
static inline bool sk_has_allocations(const struct sock *sk)
include/net/sock.h
2415
static inline void sock_poll_wait(struct file *filp, struct socket *sock,
include/net/sock.h
2423
poll_wait(filp, &sock->wq.wait, p);
include/net/sock.h
2426
static inline void skb_set_hash_from_sk(struct sk_buff *skb, struct sock *sk)
include/net/sock.h
2437
void skb_set_owner_w(struct sk_buff *skb, struct sock *sk);
include/net/sock.h
2447
static inline void skb_set_owner_r(struct sk_buff *skb, struct sock *sk)
include/net/sock.h
2456
static inline __must_check bool skb_set_owner_sk_safe(struct sk_buff *skb, struct sock *sk)
include/net/sock.h
2467
static inline struct sk_buff *skb_clone_and_charge_r(struct sk_buff *skb, struct sock *sk)
include/net/sock.h
2489
void sk_reset_timer(struct sock *sk, struct timer_list *timer,
include/net/sock.h
2492
void sk_stop_timer(struct sock *sk, struct timer_list *timer);
include/net/sock.h
2494
void sk_stop_timer_sync(struct sock *sk, struct timer_list *timer);
include/net/sock.h
2496
int __sk_queue_drop_skb(struct sock *sk, struct sk_buff_head *sk_queue,
include/net/sock.h
2498
void (*destructor)(struct sock *sk,
include/net/sock.h
2500
int __sock_queue_rcv_skb(struct sock *sk, struct sk_buff *skb);
include/net/sock.h
2502
int sock_queue_rcv_skb_reason(struct sock *sk, struct sk_buff *skb,
include/net/sock.h
2505
static inline int sock_queue_rcv_skb(struct sock *sk, struct sk_buff *skb)
include/net/sock.h
2510
int sock_queue_err_skb(struct sock *sk, struct sk_buff *skb);
include/net/sock.h
2511
struct sk_buff *sock_dequeue_err_skb(struct sock *sk);
include/net/sock.h
2517
static inline int sock_error(struct sock *sk)
include/net/sock.h
2531
void sk_error_report(struct sock *sk);
include/net/sock.h
2533
static inline unsigned long sock_wspace(struct sock *sk)
include/net/sock.h
2549
static inline void sk_set_bit(int nr, struct sock *sk)
include/net/sock.h
2558
static inline void sk_clear_bit(int nr, struct sock *sk)
include/net/sock.h
2567
static inline void sk_wake_async(const struct sock *sk, int how, int band)
include/net/sock.h
2576
static inline void sk_wake_async_rcu(const struct sock *sk, int how, int band)
include/net/sock.h
2592
static inline void sk_stream_moderate_sndbuf(struct sock *sk)
include/net/sock.h
2621
static inline struct page_frag *sk_page_frag(struct sock *sk)
include/net/sock.h
2629
bool sk_page_frag_refill(struct sock *sk, struct page_frag *pfrag);
include/net/sock.h
2631
static inline bool __sock_writeable(const struct sock *sk, int wmem_alloc)
include/net/sock.h
2638
static inline bool sock_writeable(const struct sock *sk)
include/net/sock.h
2654
static inline struct mem_cgroup *mem_cgroup_from_sk(const struct sock *sk)
include/net/sock.h
2659
static inline bool mem_cgroup_sk_enabled(const struct sock *sk)
include/net/sock.h
2664
static inline bool mem_cgroup_sk_under_memory_pressure(const struct sock *sk)
include/net/sock.h
2685
static inline struct mem_cgroup *mem_cgroup_from_sk(const struct sock *sk)
include/net/sock.h
2690
static inline bool mem_cgroup_sk_enabled(const struct sock *sk)
include/net/sock.h
2695
static inline bool mem_cgroup_sk_under_memory_pressure(const struct sock *sk)
include/net/sock.h
2701
static inline long sock_rcvtimeo(const struct sock *sk, bool noblock)
include/net/sock.h
2706
static inline long sock_sndtimeo(const struct sock *sk, bool noblock)
include/net/sock.h
2711
static inline int sock_rcvlowat(const struct sock *sk, int waitall, int len)
include/net/sock.h
2743
static inline void sk_drops_add(struct sock *sk, int segs)
include/net/sock.h
2753
static inline void sk_drops_inc(struct sock *sk)
include/net/sock.h
2758
static inline int sk_drops_read(const struct sock *sk)
include/net/sock.h
2769
static inline void sk_drops_reset(struct sock *sk)
include/net/sock.h
2779
sock_skb_set_dropcount(const struct sock *sk, struct sk_buff *skb)
include/net/sock.h
2785
static inline void sk_drops_skbadd(struct sock *sk, const struct sk_buff *skb)
include/net/sock.h
2792
static inline ktime_t sock_read_timestamp(struct sock *sk)
include/net/sock.h
2809
static inline void sock_write_timestamp(struct sock *sk, ktime_t kt)
include/net/sock.h
2820
void __sock_recv_timestamp(struct msghdr *msg, struct sock *sk,
include/net/sock.h
2822
void __sock_recv_wifi_status(struct msghdr *msg, struct sock *sk,
include/net/sock.h
2825
bool skb_has_tx_timestamp(struct sk_buff *skb, const struct sock *sk);
include/net/sock.h
2826
int skb_get_tx_timestamp(struct sk_buff *skb, struct sock *sk,
include/net/sock.h
2830
sock_recv_timestamp(struct msghdr *msg, struct sock *sk, struct sk_buff *skb)
include/net/sock.h
2854
void __sock_recv_cmsgs(struct msghdr *msg, struct sock *sk,
include/net/sock.h
2858
static inline void sock_recv_cmsgs(struct msghdr *msg, struct sock *sk,
include/net/sock.h
2888
static inline void _sock_tx_timestamp(struct sock *sk,
include/net/sock.h
2906
static inline void sock_tx_timestamp(struct sock *sk,
include/net/sock.h
2920
static inline bool sk_is_inet(const struct sock *sk)
include/net/sock.h
2927
static inline bool sk_is_tcp(const struct sock *sk)
include/net/sock.h
2934
static inline bool sk_is_udp(const struct sock *sk)
include/net/sock.h
2941
static inline bool sk_is_unix(const struct sock *sk)
include/net/sock.h
2946
static inline bool sk_is_stream_unix(const struct sock *sk)
include/net/sock.h
2951
static inline bool sk_is_vsock(const struct sock *sk)
include/net/sock.h
2956
static inline bool sk_may_scm_recv(const struct sock *sk)
include/net/sock.h
2971
static inline void sk_eat_skb(struct sock *sk, struct sk_buff *skb)
include/net/sock.h
2990
static inline bool sk_fullsock(const struct sock *sk)
include/net/sock.h
2996
sk_is_refcounted(struct sock *sk)
include/net/sock.h
3003
sk_requests_wifi_status(struct sock *sk)
include/net/sock.h
3011
static inline bool sk_listener(const struct sock *sk)
include/net/sock.h
3020
static inline bool sk_listener_or_tw(const struct sock *sk)
include/net/sock.h
3026
void sock_enable_timestamp(struct sock *sk, enum sock_flags flag);
include/net/sock.h
3027
int sock_recv_errqueue(struct sock *sk, struct msghdr *msg, int len, int level,
include/net/sock.h
3030
bool sk_ns_capable(const struct sock *sk,
include/net/sock.h
3032
bool sk_capable(const struct sock *sk, int cap);
include/net/sock.h
3033
bool sk_net_capable(const struct sock *sk, int cap);
include/net/sock.h
3035
void sk_get_meminfo(const struct sock *sk, u32 *meminfo);
include/net/sock.h
3056
static inline int sk_get_wmem0(const struct sock *sk, const struct proto *proto)
include/net/sock.h
3065
static inline int sk_get_rmem0(const struct sock *sk, const struct proto *proto)
include/net/sock.h
3078
static inline void sk_pacing_shift_update(struct sock *sk, int val)
include/net/sock.h
3090
static inline bool sk_dev_equal_l3scope(struct sock *sk, int dif)
include/net/sock.h
3105
void sock_def_readable(struct sock *sk);
include/net/sock.h
3107
int sock_bindtoindex(struct sock *sk, int ifindex, bool lock_sk);
include/net/sock.h
3108
void sock_set_timestamp(struct sock *sk, int optname, bool valbool);
include/net/sock.h
3109
int sock_set_timestamping(struct sock *sk, int optname,
include/net/sock.h
3113
void bpf_skops_tx_timestamping(struct sock *sk, struct sk_buff *skb, int op);
include/net/sock.h
3115
static inline void bpf_skops_tx_timestamping(struct sock *sk, struct sk_buff *skb, int op)
include/net/sock.h
3119
void sock_no_linger(struct sock *sk);
include/net/sock.h
3120
void sock_set_keepalive(struct sock *sk);
include/net/sock.h
3121
void sock_set_priority(struct sock *sk, u32 priority);
include/net/sock.h
3122
void sock_set_rcvbuf(struct sock *sk, int val);
include/net/sock.h
3123
void sock_set_mark(struct sock *sk, u32 val);
include/net/sock.h
3124
void sock_set_reuseaddr(struct sock *sk);
include/net/sock.h
3125
void sock_set_reuseport(struct sock *sk);
include/net/sock.h
3126
void sock_set_sndtimeo(struct sock *sk, s64 secs);
include/net/sock.h
3128
int sock_bind_add(struct sock *sk, struct sockaddr_unsized *addr, int addr_len);
include/net/sock.h
3134
int sock_ioctl_inout(struct sock *sk, unsigned int cmd,
include/net/sock.h
3136
int sk_ioctl(struct sock *sk, unsigned int cmd, void __user *arg);
include/net/sock.h
3137
static inline bool sk_is_readable(struct sock *sk)
include/net/sock.h
448
void (*sk_data_ready)(struct sock *sk);
include/net/sock.h
512
struct sk_buff* (*sk_validate_xmit_skb)(struct sock *sk,
include/net/sock.h
575
void (*sk_state_change)(struct sock *sk);
include/net/sock.h
576
void (*sk_write_space)(struct sock *sk);
include/net/sock.h
577
void (*sk_error_report)(struct sock *sk);
include/net/sock.h
578
int (*sk_backlog_rcv)(struct sock *sk,
include/net/sock.h
580
void (*sk_destruct)(struct sock *sk);
include/net/sock.h
603
struct sock *sock;
include/net/sock.h
638
static inline bool sk_user_data_is_nocopy(const struct sock *sk)
include/net/sock.h
656
__locked_read_sk_user_data_with_flags(const struct sock *sk,
include/net/sock.h
679
__rcu_dereference_sk_user_data_with_flags(const struct sock *sk,
include/net/sock.h
706
struct net *sock_net(const struct sock *sk)
include/net/sock.h
712
void sock_net_set(struct sock *sk, struct net *net)
include/net/sock.h
728
int sk_set_peek_off(struct sock *sk, int val);
include/net/sock.h
730
static inline int sk_peek_offset(const struct sock *sk, int flags)
include/net/sock.h
739
static inline void sk_peek_offset_bwd(struct sock *sk, int val)
include/net/sock.h
749
static inline void sk_peek_offset_fwd(struct sock *sk, int val)
include/net/sock.h
757
static inline struct sock *sk_entry(const struct hlist_node *node)
include/net/sock.h
759
return hlist_entry(node, struct sock, sk_node);
include/net/sock.h
762
static inline struct sock *__sk_head(const struct hlist_head *head)
include/net/sock.h
764
return hlist_entry(head->first, struct sock, sk_node);
include/net/sock.h
767
static inline struct sock *sk_head(const struct hlist_head *head)
include/net/sock.h
772
static inline struct sock *__sk_nulls_head(const struct hlist_nulls_head *head)
include/net/sock.h
774
return hlist_nulls_entry(head->first, struct sock, sk_nulls_node);
include/net/sock.h
777
static inline struct sock *sk_nulls_head(const struct hlist_nulls_head *head)
include/net/sock.h
782
static inline struct sock *sk_next(const struct sock *sk)
include/net/sock.h
784
return hlist_entry_safe(sk->sk_node.next, struct sock, sk_node);
include/net/sock.h
787
static inline struct sock *sk_nulls_next(const struct sock *sk)
include/net/sock.h
791
struct sock, sk_nulls_node) :
include/net/sock.h
795
static inline bool sk_unhashed(const struct sock *sk)
include/net/sock.h
800
static inline bool sk_hashed(const struct sock *sk)
include/net/sock.h
810
static inline void __sk_del_node(struct sock *sk)
include/net/sock.h
816
static inline bool __sk_del_node_init(struct sock *sk)
include/net/sock.h
832
static __always_inline void sock_hold(struct sock *sk)
include/net/sock.h
840
static __always_inline void __sock_put(struct sock *sk)
include/net/sock.h
845
static inline bool sk_del_node_init(struct sock *sk)
include/net/sock.h
856
static inline bool __sk_nulls_del_node_init_rcu(struct sock *sk)
include/net/sock.h
865
static inline bool sk_nulls_del_node_init_rcu(struct sock *sk)
include/net/sock.h
875
static inline bool sk_nulls_replace_node_init_rcu(struct sock *old,
include/net/sock.h
876
struct sock *new)
include/net/sock.h
888
static inline void __sk_add_node(struct sock *sk, struct hlist_head *list)
include/net/sock.h
893
static inline void sk_add_node(struct sock *sk, struct hlist_head *list)
include/net/sock.h
899
static inline void sk_add_node_rcu(struct sock *sk, struct hlist_head *list)
include/net/sock.h
909
static inline void sk_add_node_tail_rcu(struct sock *sk, struct hlist_head *list)
include/net/sock.h
915
static inline void __sk_nulls_add_node_rcu(struct sock *sk, struct hlist_nulls_head *list)
include/net/sock.h
920
static inline void __sk_nulls_add_node_tail_rcu(struct sock *sk, struct hlist_nulls_head *list)
include/net/sock.h
925
static inline void sk_nulls_add_node_rcu(struct sock *sk, struct hlist_nulls_head *list)
include/net/sock.h
931
static inline void __sk_del_bind_node(struct sock *sk)
include/net/sock.h
936
static inline void sk_add_bind_node(struct sock *sk,
include/net/sock.h
976
static inline struct user_namespace *sk_user_ns(const struct sock *sk)
include/net/sock.h
98
struct sock;
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
1138
INDIRECT_CALLABLE_DECLARE(void tcp_v6_send_check(struct sock *sk, struct sk_buff *skb));
include/net/tcp.h
1290
void (*cong_avoid)(struct sock *sk, u32 ack, u32 acked);
include/net/tcp.h
1294
void (*cong_control)(struct sock *sk, u32 ack, int flag, const struct rate_sample *rs);
include/net/tcp.h
1297
u32 (*ssthresh)(struct sock *sk);
include/net/tcp.h
1300
void (*set_state)(struct sock *sk, u8 new_state);
include/net/tcp.h
1303
void (*cwnd_event)(struct sock *sk, enum tcp_ca_event ev);
include/net/tcp.h
1306
void (*in_ack_event)(struct sock *sk, u32 flags);
include/net/tcp.h
1309
void (*pkts_acked)(struct sock *sk, const struct ack_sample *sample);
include/net/tcp.h
1312
u32 (*min_tso_segs)(struct sock *sk);
include/net/tcp.h
1315
u32 (*undo_cwnd)(struct sock *sk);
include/net/tcp.h
1317
u32 (*sndbuf_expand)(struct sock *sk);
include/net/tcp.h
1321
size_t (*get_info)(struct sock *sk, u32 ext, int *attr,
include/net/tcp.h
1331
void (*init)(struct sock *sk);
include/net/tcp.h
1333
void (*release)(struct sock *sk);
include/net/tcp.h
1342
void tcp_assign_congestion_control(struct sock *sk);
include/net/tcp.h
1343
void tcp_init_congestion_control(struct sock *sk);
include/net/tcp.h
1344
void tcp_cleanup_congestion_control(struct sock *sk);
include/net/tcp.h
1350
int tcp_set_congestion_control(struct sock *sk, const char *name, bool load,
include/net/tcp.h
1355
u32 tcp_reno_ssthresh(struct sock *sk);
include/net/tcp.h
1356
u32 tcp_reno_undo_cwnd(struct sock *sk);
include/net/tcp.h
1357
void tcp_reno_cong_avoid(struct sock *sk, u32 ack, u32 acked);
include/net/tcp.h
1372
static inline bool tcp_ca_needs_ecn(const struct sock *sk)
include/net/tcp.h
1379
static inline bool tcp_ca_needs_accecn(const struct sock *sk)
include/net/tcp.h
1386
static inline bool tcp_ca_ect_1_negotiation(const struct sock *sk)
include/net/tcp.h
1393
static inline bool tcp_ca_no_fallback_rfc3168(const struct sock *sk)
include/net/tcp.h
1400
static inline void tcp_ca_event(struct sock *sk, const enum tcp_ca_event event)
include/net/tcp.h
1409
void tcp_set_ca_state(struct sock *sk, const u8 ca_state);
include/net/tcp.h
1481
static inline bool tcp_in_cwnd_reduction(const struct sock *sk)
include/net/tcp.h
1491
static inline __u32 tcp_current_ssthresh(const struct sock *sk)
include/net/tcp.h
1506
void tcp_enter_cwr(struct sock *sk);
include/net/tcp.h
1536
static inline bool tcp_is_cwnd_limited(const struct sock *sk)
include/net/tcp.h
1556
static inline bool tcp_needs_internal_pacing(const struct sock *sk)
include/net/tcp.h
1564
static inline unsigned long tcp_pacing_delay(const struct sock *sk)
include/net/tcp.h
1571
static inline void tcp_reset_xmit_timer(struct sock *sk,
include/net/tcp.h
1588
static inline unsigned long tcp_probe0_base(const struct sock *sk)
include/net/tcp.h
1594
static inline unsigned long tcp_probe0_when(const struct sock *sk,
include/net/tcp.h
1604
static inline void tcp_check_probe_timer(struct sock *sk)
include/net/tcp.h
1636
bool tcp_add_backlog(struct sock *sk, struct sk_buff *skb,
include/net/tcp.h
1639
static inline int tcp_filter(struct sock *sk, struct sk_buff *skb,
include/net/tcp.h
1647
void tcp_set_state(struct sock *sk, int state);
include/net/tcp.h
1648
void tcp_done(struct sock *sk);
include/net/tcp.h
1649
int tcp_abort(struct sock *sk, int err);
include/net/tcp.h
1657
void tcp_cwnd_restart(struct sock *sk, s32 delta);
include/net/tcp.h
1659
static inline void tcp_slow_start_after_idle_check(struct sock *sk)
include/net/tcp.h
1674
void tcp_select_initial_window(const struct sock *sk, int __space,
include/net/tcp.h
1686
static inline int tcp_win_from_space(const struct sock *sk, int space)
include/net/tcp.h
1700
static inline int tcp_space_from_win(const struct sock *sk, int win)
include/net/tcp.h
1710
static inline void tcp_scaling_ratio_init(struct sock *sk)
include/net/tcp.h
1716
static inline int tcp_space(const struct sock *sk)
include/net/tcp.h
1723
static inline int tcp_full_space(const struct sock *sk)
include/net/tcp.h
1728
static inline void __tcp_adjust_rcv_ssthresh(struct sock *sk, u32 new_ssthresh)
include/net/tcp.h
1739
static inline void tcp_adjust_rcv_ssthresh(struct sock *sk)
include/net/tcp.h
1744
void tcp_cleanup_rbuf(struct sock *sk, int copied);
include/net/tcp.h
1745
void __tcp_cleanup_rbuf(struct sock *sk, int copied);
include/net/tcp.h
1753
static inline bool tcp_rmem_pressure(const struct sock *sk)
include/net/tcp.h
1766
static inline bool tcp_epollin_ready(const struct sock *sk, int target)
include/net/tcp.h
1779
const struct sock *sk_listener,
include/net/tcp.h
1782
void tcp_enter_memory_pressure(struct sock *sk);
include/net/tcp.h
1783
void tcp_leave_memory_pressure(struct sock *sk);
include/net/tcp.h
1787
struct net *net = sock_net((struct sock *)tp);
include/net/tcp.h
1800
struct net *net = sock_net((struct sock *)tp);
include/net/tcp.h
1811
struct net *net = sock_net((struct sock *)tp);
include/net/tcp.h
1830
static inline int tcp_fin_time(const struct sock *sk)
include/net/tcp.h
1889
if (sk_is_mptcp((struct sock *)tp))
include/net/tcp.h
1907
static inline void tcp_fast_path_check(struct sock *sk)
include/net/tcp.h
2008
const struct sock *sk, const struct sk_buff *skb);
include/net/tcp.h
2009
int tcp_md5_do_add(struct sock *sk, const union tcp_md5_addr *addr,
include/net/tcp.h
2012
int tcp_md5_key_copy(struct sock *sk, const union tcp_md5_addr *addr,
include/net/tcp.h
2016
int tcp_md5_do_del(struct sock *sk, const union tcp_md5_addr *addr,
include/net/tcp.h
2018
void tcp_clear_md5_list(struct sock *sk);
include/net/tcp.h
2019
struct tcp_md5sig_key *tcp_v4_md5_lookup(const struct sock *sk,
include/net/tcp.h
2020
const struct sock *addr_sk);
include/net/tcp.h
2023
struct tcp_md5sig_key *__tcp_md5_do_lookup(const struct sock *sk, int l3index,
include/net/tcp.h
2027
tcp_md5_do_lookup(const struct sock *sk, int l3index,
include/net/tcp.h
2036
tcp_md5_do_lookup_any_l3index(const struct sock *sk,
include/net/tcp.h
2045
void tcp_md5_destruct_sock(struct sock *sk);
include/net/tcp.h
2048
tcp_md5_do_lookup(const struct sock *sk, int l3index,
include/net/tcp.h
2055
tcp_md5_do_lookup_any_l3index(const struct sock *sk,
include/net/tcp.h
2062
static inline void tcp_md5_destruct_sock(struct sock *sk)
include/net/tcp.h
2073
void tcp_fastopen_cache_get(struct sock *sk, u16 *mss,
include/net/tcp.h
2075
void tcp_fastopen_cache_set(struct sock *sk, u16 mss,
include/net/tcp.h
2087
void tcp_fastopen_destroy_cipher(struct sock *sk);
include/net/tcp.h
2089
int tcp_fastopen_reset_cipher(struct net *net, struct sock *sk,
include/net/tcp.h
2093
void tcp_fastopen_add_skb(struct sock *sk, struct sk_buff *skb);
include/net/tcp.h
2094
struct sock *tcp_try_fastopen(struct sock *sk, struct sk_buff *skb,
include/net/tcp.h
2099
bool tcp_fastopen_cookie_check(struct sock *sk, u16 *mss,
include/net/tcp.h
2101
bool tcp_fastopen_defer_connect(struct sock *sk, int *err);
include/net/tcp.h
2114
void tcp_fastopen_active_disable(struct sock *sk);
include/net/tcp.h
2115
bool tcp_fastopen_active_should_disable(struct sock *sk);
include/net/tcp.h
2116
void tcp_fastopen_active_disable_ofo_check(struct sock *sk);
include/net/tcp.h
2117
void tcp_fastopen_active_detect_blackhole(struct sock *sk, bool expired);
include/net/tcp.h
2121
struct tcp_fastopen_context *tcp_fastopen_get_ctx(const struct sock *sk)
include/net/tcp.h
2159
void tcp_chrono_start(struct sock *sk, const enum tcp_chrono type);
include/net/tcp.h
2160
void tcp_chrono_stop(struct sock *sk, const enum tcp_chrono type);
include/net/tcp.h
2179
void tcp_write_queue_purge(struct sock *sk);
include/net/tcp.h
2181
static inline struct sk_buff *tcp_rtx_queue_head(const struct sock *sk)
include/net/tcp.h
2186
static inline struct sk_buff *tcp_rtx_queue_tail(const struct sock *sk)
include/net/tcp.h
2191
static inline struct sk_buff *tcp_write_queue_tail(const struct sock *sk)
include/net/tcp.h
2199
static inline struct sk_buff *tcp_send_head(const struct sock *sk)
include/net/tcp.h
2204
static inline bool tcp_skb_is_last(const struct sock *sk,
include/net/tcp.h
2217
static inline bool tcp_write_queue_empty(const struct sock *sk)
include/net/tcp.h
2224
static inline bool tcp_rtx_queue_empty(const struct sock *sk)
include/net/tcp.h
2229
static inline bool tcp_rtx_and_write_queues_empty(const struct sock *sk)
include/net/tcp.h
2234
static inline void tcp_add_write_queue_tail(struct sock *sk, struct sk_buff *skb)
include/net/tcp.h
2246
struct sock *sk)
include/net/tcp.h
2251
static inline void tcp_unlink_write_queue(struct sk_buff *skb, struct sock *sk)
include/net/tcp.h
2259
static inline void tcp_rtx_queue_unlink(struct sk_buff *skb, struct sock *sk)
include/net/tcp.h
2265
static inline void tcp_rtx_queue_unlink_and_free(struct sk_buff *skb, struct sock *sk)
include/net/tcp.h
2272
static inline void tcp_write_collapse_fence(struct sock *sk)
include/net/tcp.h
2280
static inline void tcp_push_pending_frames(struct sock *sk)
include/net/tcp.h
2304
static inline void tcp_advance_highest_sack(struct sock *sk, struct sk_buff *skb)
include/net/tcp.h
2309
static inline struct sk_buff *tcp_highest_sack(struct sock *sk)
include/net/tcp.h
2314
static inline void tcp_highest_sack_reset(struct sock *sk)
include/net/tcp.h
2320
static inline void tcp_highest_sack_replace(struct sock *sk,
include/net/tcp.h
2329
static inline bool inet_sk_transparent(const struct sock *sk)
include/net/tcp.h
2365
struct sock *syn_wait_sk;
include/net/tcp.h
2373
void tcp_v4_destroy_sock(struct sock *sk);
include/net/tcp.h
2392
struct net *net = sock_net((struct sock *)tp);
include/net/tcp.h
2400
bool tcp_stream_memory_free(const struct sock *sk, int wake);
include/net/tcp.h
2407
int tcp_rtx_synack(const struct sock *sk, struct request_sock *req);
include/net/tcp.h
2410
struct sock *sk, struct sk_buff *skb);
include/net/tcp.h
2415
struct tcp_md5sig_key *(*md5_lookup) (const struct sock *sk,
include/net/tcp.h
2416
const struct sock *addr_sk);
include/net/tcp.h
2419
const struct sock *sk,
include/net/tcp.h
2421
int (*md5_parse)(struct sock *sk,
include/net/tcp.h
2427
int (*ao_parse)(struct sock *sk, int optname, sockptr_t optval, int optlen);
include/net/tcp.h
2428
struct tcp_ao_key *(*ao_lookup)(const struct sock *sk,
include/net/tcp.h
2429
struct sock *addr_sk,
include/net/tcp.h
2432
const struct sock *sk,
include/net/tcp.h
2435
const struct sock *sk, const struct sk_buff *skb,
include/net/tcp.h
2443
struct tcp_md5sig_key *(*req_md5_lookup)(const struct sock *sk,
include/net/tcp.h
2444
const struct sock *addr_sk);
include/net/tcp.h
2447
const struct sock *sk,
include/net/tcp.h
2451
struct tcp_ao_key *(*ao_lookup)(const struct sock *sk,
include/net/tcp.h
2463
struct dst_entry *(*route_req)(const struct sock *sk,
include/net/tcp.h
2471
int (*send_synack)(const struct sock *sk, struct dst_entry *dst,
include/net/tcp.h
2485
const struct sock *sk, struct sk_buff *skb,
include/net/tcp.h
2494
const struct sock *sk, struct sk_buff *skb,
include/net/tcp.h
2518
static inline void tcp_get_current_key(const struct sock *sk,
include/net/tcp.h
2571
void tcp_mark_skb_lost(struct sock *sk, struct sk_buff *skb);
include/net/tcp.h
2572
void tcp_newreno_mark_lost(struct sock *sk, bool snd_una_advanced);
include/net/tcp.h
2575
extern bool tcp_rack_mark_lost(struct sock *sk);
include/net/tcp.h
2576
extern void tcp_rack_reo_timeout(struct sock *sk);
include/net/tcp.h
2595
static inline void tcp_plb_init(const struct sock *sk,
include/net/tcp.h
2601
void tcp_plb_update_state(const struct sock *sk, struct tcp_plb_state *plb,
include/net/tcp.h
2603
void tcp_plb_check_rehash(struct sock *sk, struct tcp_plb_state *plb);
include/net/tcp.h
2604
void tcp_plb_update_state_upon_rto(struct sock *sk, struct tcp_plb_state *plb);
include/net/tcp.h
2606
static inline void tcp_warn_once(const struct sock *sk, bool cond, const char *str)
include/net/tcp.h
2621
static inline s64 tcp_rto_delta_us(const struct sock *sk)
include/net/tcp.h
2673
static inline int tcp_inq(struct sock *sk)
include/net/tcp.h
2697
int tcp_peek_len(struct socket *sock);
include/net/tcp.h
2720
static inline void tcp_listendrop(const struct sock *sk)
include/net/tcp.h
2722
sk_drops_inc((struct sock *)sk);
include/net/tcp.h
2740
int (*init)(struct sock *sk);
include/net/tcp.h
2742
void (*update)(struct sock *sk, struct proto *p,
include/net/tcp.h
2743
void (*write_space)(struct sock *sk));
include/net/tcp.h
2745
void (*release)(struct sock *sk);
include/net/tcp.h
2747
int (*get_info)(struct sock *sk, struct sk_buff *skb, bool net_admin);
include/net/tcp.h
2748
size_t (*get_info_size)(const struct sock *sk, bool net_admin);
include/net/tcp.h
2750
void (*clone)(const struct request_sock *req, struct sock *newsk,
include/net/tcp.h
2758
int tcp_set_ulp(struct sock *sk, const char *name);
include/net/tcp.h
2760
void tcp_cleanup_ulp(struct sock *sk);
include/net/tcp.h
2761
void tcp_update_ulp(struct sock *sk, struct proto *p,
include/net/tcp.h
2762
void (*write_space)(struct sock *sk));
include/net/tcp.h
2773
int tcp_bpf_update_proto(struct sock *sk, struct sk_psock *psock, bool restore);
include/net/tcp.h
2774
void tcp_bpf_clone(const struct sock *sk, struct sock *newsk);
include/net/tcp.h
2783
void tcp_eat_skb(struct sock *sk, struct sk_buff *skb);
include/net/tcp.h
2785
static inline void tcp_eat_skb(struct sock *sk, struct sk_buff *skb)
include/net/tcp.h
2790
int tcp_bpf_sendmsg_redir(struct sock *sk, bool ingress,
include/net/tcp.h
2795
static inline void tcp_bpf_clone(const struct sock *sk, struct sock *newsk)
include/net/tcp.h
2822
static inline int tcp_call_bpf(struct sock *sk, int op, u32 nargs, u32 *args)
include/net/tcp.h
2847
static inline int tcp_call_bpf_2arg(struct sock *sk, int op, u32 arg1, u32 arg2)
include/net/tcp.h
2854
static inline int tcp_call_bpf_3arg(struct sock *sk, int op, u32 arg1, u32 arg2,
include/net/tcp.h
2863
static inline int tcp_call_bpf(struct sock *sk, int op, u32 nargs, u32 *args)
include/net/tcp.h
2868
static inline int tcp_call_bpf_2arg(struct sock *sk, int op, u32 arg1, u32 arg2)
include/net/tcp.h
2873
static inline int tcp_call_bpf_3arg(struct sock *sk, int op, u32 arg1, u32 arg2,
include/net/tcp.h
2881
static inline u32 tcp_timeout_init(struct sock *sk)
include/net/tcp.h
2892
static inline u32 tcp_rwnd_init_bpf(struct sock *sk)
include/net/tcp.h
2903
static inline bool tcp_bpf_ca_needs_ecn(struct sock *sk)
include/net/tcp.h
2908
static inline void tcp_bpf_rtt(struct sock *sk, long mrtt, u32 srtt)
include/net/tcp.h
2920
void (*cad)(struct sock *sk, u32 ack_seq));
include/net/tcp.h
2936
static inline u64 tcp_transmit_time(const struct sock *sk)
include/net/tcp.h
2970
static inline bool tcp_ao_required(struct sock *sk, const void *saddr,
include/net/tcp.h
2997
enum skb_drop_reason tcp_inbound_hash(struct sock *sk,
include/net/tcp.h
301
static inline bool tcp_under_memory_pressure(const struct sock *sk)
include/net/tcp.h
329
static inline void tcp_wmem_free_skb(struct sock *sk, struct sk_buff *skb)
include/net/tcp.h
339
void sk_forced_mem_schedule(struct sock *sk, int size);
include/net/tcp.h
341
bool tcp_check_oom(const struct sock *sk, int shift);
include/net/tcp.h
364
void tcp_shutdown(struct sock *sk, int how);
include/net/tcp.h
369
void tcp_remove_empty_skb(struct sock *sk);
include/net/tcp.h
370
int tcp_sendmsg(struct sock *sk, struct msghdr *msg, size_t size);
include/net/tcp.h
371
int tcp_sendmsg_locked(struct sock *sk, struct msghdr *msg, size_t size);
include/net/tcp.h
372
int tcp_sendmsg_fastopen(struct sock *sk, struct msghdr *msg, int *copied,
include/net/tcp.h
374
void tcp_splice_eof(struct socket *sock);
include/net/tcp.h
375
int tcp_send_mss(struct sock *sk, int *size_goal, int flags);
include/net/tcp.h
376
int tcp_wmem_schedule(struct sock *sk, int copy);
include/net/tcp.h
377
void tcp_push(struct sock *sk, int flags, int mss_now, int nonagle,
include/net/tcp.h
379
void tcp_release_cb(struct sock *sk);
include/net/tcp.h
381
void tcp_write_timer_handler(struct sock *sk);
include/net/tcp.h
382
void tcp_delack_timer_handler(struct sock *sk);
include/net/tcp.h
383
int tcp_ioctl(struct sock *sk, int cmd, int *karg);
include/net/tcp.h
384
enum skb_drop_reason tcp_rcv_state_process(struct sock *sk, struct sk_buff *skb);
include/net/tcp.h
385
void tcp_rcv_established(struct sock *sk, struct sk_buff *skb);
include/net/tcp.h
386
void tcp_rcvbuf_grow(struct sock *sk, u32 newval);
include/net/tcp.h
387
void tcp_rcv_space_adjust(struct sock *sk);
include/net/tcp.h
388
int tcp_twsk_unique(struct sock *sk, struct sock *sktw, void *twp);
include/net/tcp.h
389
void tcp_twsk_destructor(struct sock *sk);
include/net/tcp.h
396
struct sk_buff *tcp_stream_alloc_skb(struct sock *sk, gfp_t gfp,
include/net/tcp.h
399
static inline void tcp_dec_quickack_mode(struct sock *sk)
include/net/tcp.h
471
struct sock *tcp_check_req(struct sock *sk, struct sk_buff *skb,
include/net/tcp.h
474
enum skb_drop_reason tcp_child_process(struct sock *parent, struct sock *child,
include/net/tcp.h
476
void tcp_enter_loss(struct sock *sk);
include/net/tcp.h
477
void tcp_cwnd_reduction(struct sock *sk, int newly_acked_sacked, int newly_lost, int flag);
include/net/tcp.h
479
void tcp_update_pacing_rate(struct sock *sk);
include/net/tcp.h
480
void tcp_set_rto(struct sock *sk);
include/net/tcp.h
481
void tcp_update_metrics(struct sock *sk);
include/net/tcp.h
482
void tcp_init_metrics(struct sock *sk);
include/net/tcp.h
485
void __tcp_close(struct sock *sk, long timeout);
include/net/tcp.h
486
void tcp_close(struct sock *sk, long timeout);
include/net/tcp.h
487
void tcp_init_sock(struct sock *sk);
include/net/tcp.h
488
void tcp_init_transfer(struct sock *sk, int bpf_op, struct sk_buff *skb);
include/net/tcp.h
489
__poll_t tcp_poll(struct file *file, struct socket *sock,
include/net/tcp.h
491
int do_tcp_getsockopt(struct sock *sk, int level,
include/net/tcp.h
493
int tcp_getsockopt(struct sock *sk, int level, int optname,
include/net/tcp.h
496
int do_tcp_setsockopt(struct sock *sk, int level, int optname,
include/net/tcp.h
498
int tcp_setsockopt(struct sock *sk, int level, int optname, sockptr_t optval,
include/net/tcp.h
500
void tcp_reset_keepalive_timer(struct sock *sk, unsigned long timeout);
include/net/tcp.h
501
void tcp_set_keepalive(struct sock *sk, int val);
include/net/tcp.h
503
int tcp_recvmsg(struct sock *sk, struct msghdr *msg, size_t len,
include/net/tcp.h
505
int tcp_set_rcvlowat(struct sock *sk, int val);
include/net/tcp.h
506
int tcp_set_window_clamp(struct sock *sk, int val);
include/net/tcp.h
509
void tcp_recv_timestamp(struct msghdr *msg, const struct sock *sk,
include/net/tcp.h
511
void tcp_data_ready(struct sock *sk);
include/net/tcp.h
513
int tcp_mmap(struct file *file, struct socket *sock,
include/net/tcp.h
523
u16 tcp_v4_get_syncookie(struct sock *sk, struct iphdr *iph,
include/net/tcp.h
525
u16 tcp_v6_get_syncookie(struct sock *sk, struct ipv6hdr *iph,
include/net/tcp.h
530
struct sock *sk, struct tcphdr *th);
include/net/tcp.h
535
void tcp_v4_send_check(struct sock *sk, struct sk_buff *skb);
include/net/tcp.h
536
void tcp_v4_mtu_reduced(struct sock *sk);
include/net/tcp.h
537
void tcp_req_err(struct sock *sk, u32 seq, bool abort);
include/net/tcp.h
538
void tcp_ld_RTO_revert(struct sock *sk, u32 seq);
include/net/tcp.h
539
int tcp_v4_conn_request(struct sock *sk, struct sk_buff *skb);
include/net/tcp.h
540
struct sock *tcp_create_openreq_child(const struct sock *sk,
include/net/tcp.h
543
void tcp_ca_openreq_child(struct sock *sk, const struct dst_entry *dst);
include/net/tcp.h
544
struct sock *tcp_v4_syn_recv_sock(const struct sock *sk, struct sk_buff *skb,
include/net/tcp.h
549
void (*opt_child_init)(struct sock *newsk,
include/net/tcp.h
550
const struct sock *sk));
include/net/tcp.h
551
int tcp_v4_do_rcv(struct sock *sk, struct sk_buff *skb);
include/net/tcp.h
552
int tcp_v4_connect(struct sock *sk, struct sockaddr_unsized *uaddr, int addr_len);
include/net/tcp.h
553
int tcp_connect(struct sock *sk);
include/net/tcp.h
560
struct sk_buff *tcp_make_synack(const struct sock *sk, struct dst_entry *dst,
include/net/tcp.h
565
int tcp_disconnect(struct sock *sk, int flags);
include/net/tcp.h
567
void tcp_finish_connect(struct sock *sk, struct sk_buff *skb);
include/net/tcp.h
568
int tcp_send_rcvq(struct sock *sk, struct msghdr *msg, size_t size);
include/net/tcp.h
569
void inet_sk_rx_dst_set(struct sock *sk, const struct sk_buff *skb);
include/net/tcp.h
572
struct sock *tcp_get_cookie_sock(struct sock *sk, struct sk_buff *skb,
include/net/tcp.h
576
struct sock *cookie_v4_check(struct sock *sk, struct sk_buff *skb);
include/net/tcp.h
578
struct sock *sk, struct sk_buff *skb,
include/net/tcp.h
615
static inline void tcp_synq_overflow(const struct sock *sk)
include/net/tcp.h
639
static inline bool tcp_synq_no_recent_overflow(const struct sock *sk)
include/net/tcp.h
70
void tcp_time_wait(struct sock *sk, int state, int timeo);
include/net/tcp.h
705
struct request_sock *cookie_bpf_check(struct sock *sk, struct sk_buff *skb);
include/net/tcp.h
712
static inline struct request_sock *cookie_bpf_check(struct net *net, struct sock *sk,
include/net/tcp.h
721
struct sock *cookie_v6_check(struct sock *sk, struct sk_buff *skb);
include/net/tcp.h
729
void tcp_skb_entail(struct sock *sk, struct sk_buff *skb);
include/net/tcp.h
731
void __tcp_push_pending_frames(struct sock *sk, unsigned int cur_mss,
include/net/tcp.h
733
int __tcp_retransmit_skb(struct sock *sk, struct sk_buff *skb, int segs);
include/net/tcp.h
734
int tcp_retransmit_skb(struct sock *sk, struct sk_buff *skb, int segs);
include/net/tcp.h
735
void tcp_retransmit_timer(struct sock *sk);
include/net/tcp.h
736
void tcp_xmit_retransmit_queue(struct sock *);
include/net/tcp.h
737
void tcp_simple_retransmit(struct sock *);
include/net/tcp.h
738
void tcp_enter_recovery(struct sock *sk, bool ece_ack);
include/net/tcp.h
739
int tcp_trim_head(struct sock *, struct sk_buff *, u32);
include/net/tcp.h
744
int tcp_fragment(struct sock *sk, enum tcp_queue tcp_queue,
include/net/tcp.h
748
void tcp_send_probe0(struct sock *);
include/net/tcp.h
749
int tcp_write_wakeup(struct sock *, int mib);
include/net/tcp.h
750
void tcp_send_fin(struct sock *sk);
include/net/tcp.h
751
void tcp_send_active_reset(struct sock *sk, gfp_t priority,
include/net/tcp.h
753
int tcp_send_synack(struct sock *);
include/net/tcp.h
754
void tcp_push_one(struct sock *, unsigned int mss_now);
include/net/tcp.h
755
void __tcp_send_ack(struct sock *sk, u32 rcv_nxt, u16 flags);
include/net/tcp.h
756
void tcp_send_ack(struct sock *sk);
include/net/tcp.h
757
void tcp_send_delayed_ack(struct sock *sk);
include/net/tcp.h
758
void tcp_send_loss_probe(struct sock *sk);
include/net/tcp.h
759
bool tcp_schedule_loss_probe(struct sock *sk, bool advancing_rto);
include/net/tcp.h
764
void tcp_rearm_rto(struct sock *sk);
include/net/tcp.h
765
void tcp_synack_rtt_meas(struct sock *sk, struct request_sock *req);
include/net/tcp.h
766
void tcp_done_with_error(struct sock *sk, int err);
include/net/tcp.h
767
void tcp_reset(struct sock *sk, struct sk_buff *skb);
include/net/tcp.h
768
void tcp_fin(struct sock *sk);
include/net/tcp.h
769
void __tcp_check_space(struct sock *sk);
include/net/tcp.h
770
static inline void tcp_check_space(struct sock *sk)
include/net/tcp.h
778
void tcp_sack_compress_send_ack(struct sock *sk);
include/net/tcp.h
786
static inline void tcp_add_receive_queue(struct sock *sk, struct sk_buff *skb)
include/net/tcp.h
794
void tcp_init_xmit_timers(struct sock *);
include/net/tcp.h
795
static inline void tcp_clear_xmit_timers(struct sock *sk)
include/net/tcp.h
806
unsigned int tcp_sync_mss(struct sock *sk, u32 pmtu);
include/net/tcp.h
807
unsigned int tcp_current_mss(struct sock *sk);
include/net/tcp.h
808
u32 tcp_clamp_probe0_to_user_timeout(const struct sock *sk, u32 when);
include/net/tcp.h
834
void tcp_get_info(struct sock *, struct tcp_info *);
include/net/tcp.h
835
void tcp_rate_check_app_limited(struct sock *sk);
include/net/tcp.h
838
int tcp_read_sock(struct sock *sk, read_descriptor_t *desc,
include/net/tcp.h
840
int tcp_read_sock_noack(struct sock *sk, read_descriptor_t *desc,
include/net/tcp.h
843
int tcp_read_skb(struct sock *sk, skb_read_actor_t recv_actor);
include/net/tcp.h
844
struct sk_buff *tcp_recv_skb(struct sock *sk, u32 seq, u32 *off);
include/net/tcp.h
845
void tcp_read_done(struct sock *sk, size_t len);
include/net/tcp.h
847
void tcp_initialize_rcv_mss(struct sock *sk);
include/net/tcp.h
849
int tcp_mtu_to_mss(struct sock *sk, int pmtu);
include/net/tcp.h
850
int tcp_mss_to_mtu(struct sock *sk, int mss);
include/net/tcp.h
851
void tcp_mtup_init(struct sock *sk);
include/net/tcp.h
853
static inline unsigned int tcp_rto_max(const struct sock *sk)
include/net/tcp.h
858
static inline void tcp_bound_rto(struct sock *sk)
include/net/tcp.h
876
u32 tcp_delack_max(const struct sock *sk);
include/net/tcp.h
879
static inline u32 tcp_rto_min(const struct sock *sk)
include/net/tcp.h
889
static inline u32 tcp_rto_min_us(const struct sock *sk)
include/net/tcp.h
922
u32 __tcp_select_window(struct sock *sk);
include/net/tcp.h
924
void tcp_send_window_probe(struct sock *sk);
include/net/tcp_ao.h
176
int tcp_ao_transmit_skb(struct sock *sk, struct sk_buff *skb,
include/net/tcp_ao.h
181
const struct sock *sk, const struct sk_buff *skb,
include/net/tcp_ao.h
183
int tcp_parse_ao(struct sock *sk, int cmd, unsigned short int family,
include/net/tcp_ao.h
185
struct tcp_ao_key *tcp_ao_established_key(const struct sock *sk,
include/net/tcp_ao.h
188
int tcp_ao_copy_all_matching(const struct sock *sk, struct sock *newsk,
include/net/tcp_ao.h
193
void tcp_ao_destroy_sock(struct sock *sk, bool twsk);
include/net/tcp_ao.h
195
bool tcp_ao_ignore_icmp(const struct sock *sk, int family, int type, int code);
include/net/tcp_ao.h
196
int tcp_ao_get_mkts(struct sock *sk, sockptr_t optval, sockptr_t optlen);
include/net/tcp_ao.h
197
int tcp_ao_get_sock_info(struct sock *sk, sockptr_t optval, sockptr_t optlen);
include/net/tcp_ao.h
198
int tcp_ao_get_repair(struct sock *sk, sockptr_t optval, sockptr_t optlen);
include/net/tcp_ao.h
199
int tcp_ao_set_repair(struct sock *sk, sockptr_t optval, unsigned int optlen);
include/net/tcp_ao.h
200
enum skb_drop_reason tcp_inbound_ao_hash(struct sock *sk,
include/net/tcp_ao.h
205
struct tcp_ao_key *tcp_ao_do_lookup(const struct sock *sk, int l3index,
include/net/tcp_ao.h
213
int tcp_ao_prepare_reset(const struct sock *sk, struct sk_buff *skb,
include/net/tcp_ao.h
219
int tcp_v4_parse_ao(struct sock *sk, int cmd, sockptr_t optval, int optlen);
include/net/tcp_ao.h
220
struct tcp_ao_key *tcp_v4_ao_lookup(const struct sock *sk, struct sock *addr_sk,
include/net/tcp_ao.h
226
const struct sock *sk,
include/net/tcp_ao.h
230
struct tcp_ao_key *tcp_v4_ao_lookup_rsk(const struct sock *sk,
include/net/tcp_ao.h
234
const struct sock *sk, const struct sk_buff *skb,
include/net/tcp_ao.h
243
const struct sock *sk, __be32 sisn,
include/net/tcp_ao.h
247
struct tcp_ao_key *tcp_v6_ao_lookup(const struct sock *sk,
include/net/tcp_ao.h
248
struct sock *addr_sk, int sndid, int rcvid);
include/net/tcp_ao.h
249
struct tcp_ao_key *tcp_v6_ao_lookup_rsk(const struct sock *sk,
include/net/tcp_ao.h
253
const struct sock *sk, const struct sk_buff *skb,
include/net/tcp_ao.h
255
int tcp_v6_parse_ao(struct sock *sk, int cmd, sockptr_t optval, int optlen);
include/net/tcp_ao.h
259
void tcp_ao_established(struct sock *sk);
include/net/tcp_ao.h
260
void tcp_ao_finish_connect(struct sock *sk, struct sk_buff *skb);
include/net/tcp_ao.h
261
void tcp_ao_connect_init(struct sock *sk);
include/net/tcp_ao.h
262
void tcp_ao_syncookie(struct sock *sk, const struct sk_buff *skb,
include/net/tcp_ao.h
266
static inline int tcp_ao_transmit_skb(struct sock *sk, struct sk_buff *skb,
include/net/tcp_ao.h
273
static inline void tcp_ao_syncookie(struct sock *sk, const struct sk_buff *skb,
include/net/tcp_ao.h
278
static inline bool tcp_ao_ignore_icmp(const struct sock *sk, int family,
include/net/tcp_ao.h
284
static inline enum skb_drop_reason tcp_inbound_ao_hash(struct sock *sk,
include/net/tcp_ao.h
292
static inline struct tcp_ao_key *tcp_ao_do_lookup(const struct sock *sk,
include/net/tcp_ao.h
299
static inline void tcp_ao_destroy_sock(struct sock *sk, bool twsk)
include/net/tcp_ao.h
303
static inline void tcp_ao_established(struct sock *sk)
include/net/tcp_ao.h
307
static inline void tcp_ao_finish_connect(struct sock *sk, struct sk_buff *skb)
include/net/tcp_ao.h
316
static inline void tcp_ao_connect_init(struct sock *sk)
include/net/tcp_ao.h
320
static inline int tcp_ao_get_mkts(struct sock *sk, sockptr_t optval, sockptr_t optlen)
include/net/tcp_ao.h
325
static inline int tcp_ao_get_sock_info(struct sock *sk, sockptr_t optval, sockptr_t optlen)
include/net/tcp_ao.h
330
static inline int tcp_ao_get_repair(struct sock *sk,
include/net/tcp_ao.h
336
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
112
struct sock *sk;
include/net/tls.h
131
void (*saved_data_ready)(struct sock *sk);
include/net/tls.h
165
void (*sk_destruct)(struct sock *sk);
include/net/tls.h
233
int (*push_pending_record)(struct sock *sk, int flags);
include/net/tls.h
234
void (*sk_write_space)(struct sock *sk);
include/net/tls.h
258
struct sock *sk;
include/net/tls.h
260
void (*sk_destruct)(struct sock *sk);
include/net/tls.h
276
int (*tls_dev_add)(struct net_device *netdev, struct sock *sk,
include/net/tls.h
284
struct sock *sk, u32 seq, u8 *rcd_sn,
include/net/tls.h
350
tls_validate_xmit_skb(struct sock *sk, struct net_device *dev,
include/net/tls.h
353
tls_validate_xmit_skb_sw(struct sock *sk, struct net_device *dev,
include/net/tls.h
359
struct sock *sk = skb->sk;
include/net/tls.h
369
static inline struct tls_context *tls_get_ctx(const struct sock *sk)
include/net/tls.h
397
static inline bool tls_sw_has_ctx_tx(const struct sock *sk)
include/net/tls.h
410
static inline bool tls_sw_has_ctx_rx(const struct sock *sk)
include/net/tls.h
439
tls_driver_ctx(const struct sock *sk, enum tls_offload_ctx_dir direction)
include/net/tls.h
447
static inline void tls_offload_rx_resync_request(struct sock *sk, __be32 seq)
include/net/tls.h
480
tls_offload_rx_resync_set_type(struct sock *sk, enum tls_offload_sync_type type)
include/net/tls.h
488
static inline bool tls_offload_tx_resync_pending(struct sock *sk)
include/net/tls.h
501
void tls_device_sk_destruct(struct sock *sk);
include/net/tls.h
502
void tls_offload_tx_resync_request(struct sock *sk, u32 got_seq, u32 exp_seq);
include/net/tls.h
504
static inline bool tls_is_sk_rx_device_offloaded(struct sock *sk)
include/net/tls.h
94
struct sock *sk;
include/net/tls_toe.h
37
struct sock;
include/net/tls_toe.h
66
int (*hash)(struct tls_toe_device *device, struct sock *sk);
include/net/tls_toe.h
67
void (*unhash)(struct tls_toe_device *device, struct sock *sk);
include/net/tls_toe.h
72
int tls_toe_bypass(struct sock *sk);
include/net/tls_toe.h
73
int tls_toe_hash(struct sock *sk);
include/net/tls_toe.h
74
void tls_toe_unhash(struct sock *sk);
include/net/transp_v6.h
37
void ip6_datagram_recv_ctl(struct sock *sk, struct msghdr *msg,
include/net/transp_v6.h
39
void ip6_datagram_recv_common_ctl(struct sock *sk, struct msghdr *msg,
include/net/transp_v6.h
41
void ip6_datagram_recv_specific_ctl(struct sock *sk, struct msghdr *msg,
include/net/transp_v6.h
44
int ip6_datagram_send_ctl(struct net *net, struct sock *sk, struct msghdr *msg,
include/net/transp_v6.h
47
void __ip6_dgram_sock_seq_show(struct seq_file *seq, struct sock *sp,
include/net/transp_v6.h
50
ip6_dgram_sock_seq_show(struct seq_file *seq, struct sock *sp, __u16 srcp,
include/net/udp.h
137
static inline bool udp_hashed4(const struct sock *sk)
include/net/udp.h
180
static inline bool udp_hashed4(const struct sock *sk)
include/net/udp.h
239
static inline __wsum udp_csum_outgoing(struct sock *sk, struct sk_buff *skb)
include/net/udp.h
278
typedef struct sock *(*udp_lookup_t)(const struct sk_buff *skb, __be16 sport,
include/net/udp.h
287
static inline int udp_lib_init_sock(struct sock *sk)
include/net/udp.h
305
static inline void udp_drops_inc(struct sock *sk)
include/net/udp.h
311
static inline int udp_lib_hash(struct sock *sk)
include/net/udp.h
317
void udp_lib_unhash(struct sock *sk);
include/net/udp.h
318
void udp_lib_rehash(struct sock *sk, u16 new_hash, u16 new_hash4);
include/net/udp.h
322
static inline void udp_lib_close(struct sock *sk, long timeout)
include/net/udp.h
329
static inline void udp_lib_hash4(struct sock *sk, u16 hash)
include/net/udp.h
333
static inline void udp4_hash4(struct sock *sk)
include/net/udp.h
337
void udp_lib_hash4(struct sock *sk, u16 hash);
include/net/udp.h
338
void udp4_hash4(struct sock *sk);
include/net/udp.h
341
int udp_lib_get_port(struct sock *sk, unsigned short snum,
include/net/udp.h
382
static inline int udp_rqueue_get(struct sock *sk)
include/net/udp.h
399
void udp_destruct_common(struct sock *sk);
include/net/udp.h
400
void skb_consume_udp(struct sock *sk, struct sk_buff *skb, int len);
include/net/udp.h
401
int __udp_enqueue_schedule_skb(struct sock *sk, struct sk_buff *skb);
include/net/udp.h
402
void udp_skb_destructor(struct sock *sk, struct sk_buff *skb);
include/net/udp.h
403
struct sk_buff *__skb_recv_udp(struct sock *sk, unsigned int flags, int *off,
include/net/udp.h
405
static inline struct sk_buff *skb_recv_udp(struct sock *sk, unsigned int flags,
include/net/udp.h
414
bool udp_sk_rx_dst_set(struct sock *sk, struct dst_entry *dst);
include/net/udp.h
416
int udp_abort(struct sock *sk, int err);
include/net/udp.h
417
int udp_sendmsg(struct sock *sk, struct msghdr *msg, size_t len);
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_init_sock(struct sock *sk);
include/net/udp.h
426
int udp_pre_connect(struct sock *sk, struct sockaddr_unsized *uaddr, int addr_len);
include/net/udp.h
427
int __udp_disconnect(struct sock *sk, int flags);
include/net/udp.h
428
int udp_disconnect(struct sock *sk, int flags);
include/net/udp.h
429
__poll_t udp_poll(struct file *file, struct socket *sock, poll_table *wait);
include/net/udp.h
433
int udp_lib_getsockopt(struct sock *sk, int level, int optname,
include/net/udp.h
435
int udp_lib_setsockopt(struct sock *sk, int level, int optname,
include/net/udp.h
437
int (*push_pending_frames)(struct sock *));
include/net/udp.h
438
struct sock *udp4_lib_lookup(const struct net *net, __be32 saddr, __be16 sport,
include/net/udp.h
440
struct sock *__udp4_lib_lookup(const struct net *net, __be32 saddr,
include/net/udp.h
444
struct sock *udp4_lib_lookup_skb(const struct sk_buff *skb,
include/net/udp.h
446
struct sock *udp6_lib_lookup(const struct net *net,
include/net/udp.h
450
struct sock *__udp6_lib_lookup(const struct net *net,
include/net/udp.h
455
struct sock *udp6_lib_lookup_skb(const struct sk_buff *skb,
include/net/udp.h
457
int udp_read_skb(struct sock *sk, skb_read_actor_t recv_actor);
include/net/udp.h
597
static inline struct sk_buff *udp_rcv_segment(struct sock *sk,
include/net/udp.h
674
int udp_bpf_update_proto(struct sock *sk, struct sk_psock *psock, bool restore);
include/net/udp_tunnel.h
131
void udp_tunnel_push_rx_port(struct net_device *dev, struct socket *sock,
include/net/udp_tunnel.h
133
void udp_tunnel_drop_rx_port(struct net_device *dev, struct socket *sock,
include/net/udp_tunnel.h
135
void udp_tunnel_notify_add_rx_port(struct socket *sock, unsigned short type);
include/net/udp_tunnel.h
136
void udp_tunnel_notify_del_rx_port(struct socket *sock, unsigned short type);
include/net/udp_tunnel.h
139
void udp_tunnel_xmit_skb(struct rtable *rt, struct sock *sk, struct sk_buff *skb,
include/net/udp_tunnel.h
144
void udp_tunnel6_xmit_skb(struct dst_entry *dst, struct sock *sk,
include/net/udp_tunnel.h
180
void udp_tunnel_sock_release(struct socket *sock);
include/net/udp_tunnel.h
192
struct socket *sock, int oif,
include/net/udp_tunnel.h
212
void udp_tunnel_update_gro_lookup(struct net *net, struct sock *sk, bool add);
include/net/udp_tunnel.h
213
void udp_tunnel_update_gro_rcv(struct sock *sk, bool add);
include/net/udp_tunnel.h
216
struct sock *sk, bool add) {}
include/net/udp_tunnel.h
217
static inline void udp_tunnel_update_gro_rcv(struct sock *sk, bool add) {}
include/net/udp_tunnel.h
220
static inline void udp_tunnel_cleanup_gro(struct sock *sk)
include/net/udp_tunnel.h
226
static inline void udp_tunnel_encap_enable(struct sock *sk)
include/net/udp_tunnel.h
72
typedef int (*udp_tunnel_encap_rcv_t)(struct sock *sk, struct sk_buff *skb);
include/net/udp_tunnel.h
73
typedef int (*udp_tunnel_encap_err_lookup_t)(struct sock *sk,
include/net/udp_tunnel.h
75
typedef void (*udp_tunnel_encap_err_rcv_t)(struct sock *sk,
include/net/udp_tunnel.h
78
typedef void (*udp_tunnel_encap_destroy_t)(struct sock *sk);
include/net/udp_tunnel.h
82
typedef int (*udp_tunnel_gro_complete_t)(struct sock *sk, struct sk_buff *skb,
include/net/udp_tunnel.h
98
void setup_udp_tunnel_sock(struct net *net, struct socket *sock,
include/net/udplite.h
70
const struct sock *sk = skb->sk;
include/net/vxlan.h
188
struct socket *sock;
include/net/vxlan.h
451
return vs->sock->sk->sk_family;
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
1246
int __xfrm_policy_check(struct sock *, int dir, struct sk_buff *skb,
include/net/xfrm.h
1270
static inline int __xfrm_policy_check2(struct sock *sk, int dir,
include/net/xfrm.h
1304
static inline int xfrm_policy_check(struct sock *sk, int dir, struct sk_buff *skb, unsigned short family)
include/net/xfrm.h
1309
static inline int xfrm4_policy_check(struct sock *sk, int dir, struct sk_buff *skb)
include/net/xfrm.h
1314
static inline int xfrm6_policy_check(struct sock *sk, int dir, struct sk_buff *skb)
include/net/xfrm.h
1319
static inline int xfrm4_policy_check_reverse(struct sock *sk, int dir,
include/net/xfrm.h
1325
static inline int xfrm6_policy_check_reverse(struct sock *sk, int dir,
include/net/xfrm.h
1371
int __xfrm_sk_clone_policy(struct sock *sk, const struct sock *osk);
include/net/xfrm.h
1373
static inline int xfrm_sk_clone_policy(struct sock *sk, const struct sock *osk)
include/net/xfrm.h
1386
static inline void xfrm_sk_free_policy(struct sock *sk)
include/net/xfrm.h
1404
static inline void xfrm_sk_free_policy(struct sock *sk) {}
include/net/xfrm.h
1405
static inline int xfrm_sk_clone_policy(struct sock *sk, const struct sock *osk) { return 0; }
include/net/xfrm.h
1408
static inline int xfrm6_policy_check(struct sock *sk, int dir, struct sk_buff *skb)
include/net/xfrm.h
1412
static inline int xfrm4_policy_check(struct sock *sk, int dir, struct sk_buff *skb)
include/net/xfrm.h
1416
static inline int xfrm_policy_check(struct sock *sk, int dir, struct sk_buff *skb, unsigned short family)
include/net/xfrm.h
1426
static inline int xfrm4_policy_check_reverse(struct sock *sk, int dir,
include/net/xfrm.h
1431
static inline int xfrm6_policy_check_reverse(struct sock *sk, int dir,
include/net/xfrm.h
1781
int (*finish)(struct net *, struct sock *,
include/net/xfrm.h
1784
int (*finish)(struct net *, struct sock *,
include/net/xfrm.h
1786
int xfrm_output_resume(struct sock *sk, struct sk_buff *skb, int err);
include/net/xfrm.h
1787
int xfrm_output(struct sock *sk, struct sk_buff *skb);
include/net/xfrm.h
1816
int xfrm4_output(struct net *net, struct sock *sk, struct sk_buff *skb);
include/net/xfrm.h
1838
int xfrm6_output(struct net *net, struct sock *sk, struct sk_buff *skb);
include/net/xfrm.h
1842
int xfrm4_udp_encap_rcv(struct sock *sk, struct sk_buff *skb);
include/net/xfrm.h
1843
int xfrm6_udp_encap_rcv(struct sock *sk, struct sk_buff *skb);
include/net/xfrm.h
1844
struct sk_buff *xfrm4_gro_udp_encap_rcv(struct sock *sk, struct list_head *head,
include/net/xfrm.h
1846
struct sk_buff *xfrm6_gro_udp_encap_rcv(struct sock *sk, struct list_head *head,
include/net/xfrm.h
1848
int xfrm_user_policy(struct sock *sk, int optname, sockptr_t optval,
include/net/xfrm.h
1851
static inline int xfrm_user_policy(struct sock *sk, int optname,
include/net/xfrm.h
1889
int xfrm_sk_policy_insert(struct sock *sk, int dir, struct xfrm_policy *pol);
include/net/xfrm.h
1968
struct sock *nlsk;
include/net/xfrm.h
1981
struct sock *nlsk;
include/net/xfrm.h
2275
static inline bool xfrm6_local_dontfrag(const struct sock *sk)
include/net/xfrm.h
422
int (*output)(struct net *net, struct sock *sk, struct sk_buff *skb);
include/net/xfrm.h
518
int (*output)(struct net *net, struct sock *sk, struct sk_buff *skb);
include/net/xfrm.h
709
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, 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
2224
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 inline int io_uring_cmd_getsockopt(struct socket *sock,
io_uring/cmd_net.c
136
static int io_uring_cmd_getsockname(struct socket *sock,
io_uring/cmd_net.c
153
return do_getsockname(sock, peer, uaddr, ulen);
io_uring/cmd_net.c
158
struct socket *sock = cmd->file->private_data;
io_uring/cmd_net.c
159
struct sock *sk = sock->sk;
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
27
err = do_sock_getsockopt(sock, compat, level, optname,
io_uring/cmd_net.c
37
static inline int io_uring_cmd_setsockopt(struct socket *sock,
io_uring/cmd_net.c
53
return do_sock_setsockopt(sock, compat, level, optname, optval_s,
io_uring/cmd_net.c
57
static bool io_process_timestamp_skb(struct io_uring_cmd *cmd, struct sock *sk,
io_uring/cmd_net.c
89
static int io_uring_cmd_timestamp(struct socket *sock,
io_uring/cmd_net.c
93
struct sock *sk = sock->sk;
io_uring/napi.h
45
struct socket *sock;
io_uring/napi.h
50
sock = sock_from_file(req->file);
io_uring/napi.h
51
if (sock && sock->sk)
io_uring/napi.h
52
__io_napi_add_id(ctx, READ_ONCE(sock->sk->sk_napi_id));
io_uring/net.c
1020
struct socket *sock;
io_uring/net.c
1026
sock = sock_from_file(req->file);
io_uring/net.c
1027
if (unlikely(!sock))
io_uring/net.c
1061
ret = io_recvmsg_multishot(sock, sr, kmsg, flags,
io_uring/net.c
1068
ret = __sys_recvmsg_sock(sock, &kmsg->msg, sr->umsg,
io_uring/net.c
1077
if (ret > 0 && io_net_retry(sock, flags)) {
io_uring/net.c
1179
struct socket *sock;
io_uring/net.c
1189
sock = sock_from_file(req->file);
io_uring/net.c
1190
if (unlikely(!sock))
io_uring/net.c
1215
ret = sock_recvmsg(sock, &kmsg->msg, flags);
io_uring/net.c
1221
if (ret > 0 && io_net_retry(sock, flags)) {
io_uring/net.c
1281
struct socket *sock;
io_uring/net.c
1289
sock = sock_from_file(req->file);
io_uring/net.c
1290
if (unlikely(!sock))
io_uring/net.c
1294
ret = io_zcrx_recv(req, zc->ifq, sock, 0, issue_flags, &zc->len);
io_uring/net.c
139
struct socket *sock;
io_uring/net.c
144
sock = sock_from_file(req->file);
io_uring/net.c
145
if (unlikely(!sock))
io_uring/net.c
1465
struct socket *sock;
io_uring/net.c
1469
sock = sock_from_file(req->file);
io_uring/net.c
1470
if (unlikely(!sock))
io_uring/net.c
1472
if (!test_bit(SOCK_SUPPORT_ZC, &sock->flags))
io_uring/net.c
148
ret = __sys_shutdown_sock(sock, shutdown->how);
io_uring/net.c
1495
ret = sock_sendmsg(sock, &kmsg->msg);
io_uring/net.c
1501
if (ret > 0 && io_net_retry(sock, kmsg->msg.msg_flags)) {
io_uring/net.c
153
static bool io_net_retry(struct socket *sock, int flags)
io_uring/net.c
1532
struct socket *sock;
io_uring/net.c
1549
sock = sock_from_file(req->file);
io_uring/net.c
1550
if (unlikely(!sock))
io_uring/net.c
1552
if (!test_bit(SOCK_SUPPORT_ZC, &sock->flags))
io_uring/net.c
1567
ret = __sys_sendmsg_sock(sock, &kmsg->msg, flags);
io_uring/net.c
157
return sock->type == SOCK_STREAM || sock->type == SOCK_SEQPACKET;
io_uring/net.c
1573
if (ret > 0 && io_net_retry(sock, flags)) {
io_uring/net.c
1712
struct io_socket *sock = io_kiocb_to_cmd(req, struct io_socket);
io_uring/net.c
1714
bctx->socket.family = sock->domain;
io_uring/net.c
1715
bctx->socket.type = sock->type;
io_uring/net.c
1716
bctx->socket.protocol = sock->protocol;
io_uring/net.c
1721
struct io_socket *sock = io_kiocb_to_cmd(req, struct io_socket);
io_uring/net.c
1726
sock->domain = READ_ONCE(sqe->fd);
io_uring/net.c
1727
sock->type = READ_ONCE(sqe->off);
io_uring/net.c
1728
sock->protocol = READ_ONCE(sqe->len);
io_uring/net.c
1729
sock->file_slot = READ_ONCE(sqe->file_index);
io_uring/net.c
1730
sock->nofile = rlimit(RLIMIT_NOFILE);
io_uring/net.c
1732
sock->flags = sock->type & ~SOCK_TYPE_MASK;
io_uring/net.c
1733
if (sock->file_slot && (sock->flags & SOCK_CLOEXEC))
io_uring/net.c
1735
if (sock->flags & ~(SOCK_CLOEXEC | SOCK_NONBLOCK))
io_uring/net.c
1742
struct io_socket *sock = io_kiocb_to_cmd(req, struct io_socket);
io_uring/net.c
1743
bool fixed = !!sock->file_slot;
io_uring/net.c
1748
fd = __get_unused_fd_flags(sock->flags, sock->nofile);
io_uring/net.c
1752
file = __sys_socket_file(sock->domain, sock->type, sock->protocol);
io_uring/net.c
1767
sock->file_slot);
io_uring/net.c
1866
struct socket *sock;
io_uring/net.c
1869
sock = sock_from_file(req->file);
io_uring/net.c
1870
if (unlikely(!sock))
io_uring/net.c
1873
ret = __sys_bind_socket(sock, &io->addr, bind->addr_len);
io_uring/net.c
1894
struct socket *sock;
io_uring/net.c
1897
sock = sock_from_file(req->file);
io_uring/net.c
1898
if (unlikely(!sock))
io_uring/net.c
1901
ret = __sys_listen_socket(sock, listen->backlog);
io_uring/net.c
549
struct socket *sock;
io_uring/net.c
554
sock = sock_from_file(req->file);
io_uring/net.c
555
if (unlikely(!sock))
io_uring/net.c
570
ret = __sys_sendmsg_sock(sock, &kmsg->msg, flags);
io_uring/net.c
575
if (ret > 0 && io_net_retry(sock, flags)) {
io_uring/net.c
647
struct socket *sock;
io_uring/net.c
652
sock = sock_from_file(req->file);
io_uring/net.c
653
if (unlikely(!sock))
io_uring/net.c
682
ret = sock_sendmsg(sock, &kmsg->msg);
io_uring/net.c
687
if (ret > 0 && io_net_retry(sock, flags)) {
io_uring/net.c
961
static int io_recvmsg_multishot(struct socket *sock, struct io_sr_msg *io,
io_uring/net.c
974
if (sock->file->f_flags & O_NONBLOCK)
io_uring/net.c
977
err = sock_recvmsg(sock, &kmsg->msg, flags);
io_uring/zcrx.c
1465
struct sock *sk, int flags,
io_uring/zcrx.c
1472
.sock = sk->sk_socket,
io_uring/zcrx.c
1511
struct socket *sock, unsigned int flags,
io_uring/zcrx.c
1514
struct sock *sk = sock->sk;
io_uring/zcrx.c
336
struct socket *sock;
io_uring/zcrx.h
75
struct socket *sock, unsigned int flags,
io_uring/zcrx.h
89
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
101
struct sock *sk;
kernel/audit.c
330
static struct sock *audit_get_sk(const struct net *net)
kernel/audit.c
733
struct sock *sk;
kernel/audit.c
784
static int kauditd_send_queue(struct sock *sk, u32 portid,
kernel/audit.c
850
struct sock *sock = audit_get_sk(&init_net);
kernel/audit.c
856
if (!netlink_has_listeners(sock, AUDIT_NLGRP_READLOG))
kernel/audit.c
875
nlmsg_multicast(sock, copy, 0, AUDIT_NLGRP_READLOG, GFP_KERNEL);
kernel/audit.c
887
struct sock *sk = NULL;
kernel/audit.c
963
struct sock *sk = audit_get_sk(dest->net);
kernel/bpf/cgroup.c
121
struct socket *sock;
kernel/bpf/cgroup.c
127
sock = (void *)(unsigned long)args[0];
kernel/bpf/cgroup.c
131
cgrp = sock_cgroup_ptr(&sock->sk->sk_cgrp_data);
kernel/bpf/cgroup.c
1561
int __cgroup_bpf_run_filter_skb(struct sock *sk,
kernel/bpf/cgroup.c
1566
struct sock *save_sk;
kernel/bpf/cgroup.c
1639
int __cgroup_bpf_run_filter_sk(struct sock *sk,
kernel/bpf/cgroup.c
1667
int __cgroup_bpf_run_filter_sock_addr(struct sock *sk,
kernel/bpf/cgroup.c
1721
int __cgroup_bpf_run_filter_sock_ops(struct sock *sk,
kernel/bpf/cgroup.c
1995
int __cgroup_bpf_run_filter_setsockopt(struct sock *sk, int *level,
kernel/bpf/cgroup.c
2086
int __cgroup_bpf_run_filter_getsockopt(struct sock *sk, int level,
kernel/bpf/cgroup.c
2171
int __cgroup_bpf_run_filter_getsockopt_kern(struct sock *sk, int level,
kernel/bpf/cgroup.c
99
struct sock *sk;
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
7294
struct sock *sk;
kernel/bpf/verifier.c
7298
struct sock *sk;
kernel/bpf/verifier.c
7324
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
696
static int uevent_net_broadcast(struct sock *usk, struct sk_buff *skb,
mm/memcontrol.c
5040
void mem_cgroup_sk_alloc(struct sock *sk)
mm/memcontrol.c
5063
void mem_cgroup_sk_free(struct sock *sk)
mm/memcontrol.c
5071
void mem_cgroup_sk_inherit(const struct sock *sk, struct sock *newsk)
mm/memcontrol.c
5096
bool mem_cgroup_sk_charge(const struct sock *sk, unsigned int nr_pages,
mm/memcontrol.c
5117
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/appletalk/atalk_proc.c
165
struct sock *s;
net/appletalk/ddp.c
1033
static int atalk_create(struct net *net, struct socket *sock, int protocol,
net/appletalk/ddp.c
1036
struct sock *sk;
net/appletalk/ddp.c
1046
if (sock->type != SOCK_RAW && sock->type != SOCK_DGRAM)
net/appletalk/ddp.c
1050
if (sock->type == SOCK_RAW && !kern && !capable(CAP_NET_RAW))
net/appletalk/ddp.c
1058
sock->ops = &atalk_dgram_ops;
net/appletalk/ddp.c
1059
sock_init_data(sock, sk);
net/appletalk/ddp.c
1068
static int atalk_release(struct socket *sock)
net/appletalk/ddp.c
1070
struct sock *sk = sock->sk;
net/appletalk/ddp.c
1077
sock->sk = NULL;
net/appletalk/ddp.c
1096
static int atalk_pick_and_bind_port(struct sock *sk, struct sockaddr_at *sat)
net/appletalk/ddp.c
1105
struct sock *s;
net/appletalk/ddp.c
1131
static int atalk_autobind(struct sock *sk)
net/appletalk/ddp.c
1152
static int atalk_bind(struct socket *sock, struct sockaddr_unsized *uaddr, int addr_len)
net/appletalk/ddp.c
1155
struct sock *sk = sock->sk;
net/appletalk/ddp.c
1207
static int atalk_connect(struct socket *sock, struct sockaddr_unsized *uaddr,
net/appletalk/ddp.c
1210
struct sock *sk = sock->sk;
net/appletalk/ddp.c
1216
sock->state = SS_UNCONNECTED;
net/appletalk/ddp.c
1250
sock->state = SS_CONNECTED;
net/appletalk/ddp.c
1262
static int atalk_getname(struct socket *sock, struct sockaddr *uaddr,
net/appletalk/ddp.c
1266
struct sock *sk = sock->sk;
net/appletalk/ddp.c
1406
struct sock *sock;
net/appletalk/ddp.c
1472
sock = atalk_search_socket(&tosat, atif);
net/appletalk/ddp.c
1473
if (!sock) /* But not one of our sockets */
net/appletalk/ddp.c
1477
if (sock_queue_rcv_skb(sock, skb) < 0)
net/appletalk/ddp.c
148
static struct sock *atalk_find_or_insert_socket(struct sock *sk,
net/appletalk/ddp.c
151
struct sock *s;
net/appletalk/ddp.c
1547
static int atalk_sendmsg(struct socket *sock, struct msghdr *msg, size_t len)
net/appletalk/ddp.c
1549
struct sock *sk = sock->sk;
net/appletalk/ddp.c
172
struct sock *sk = timer_container_of(sk, t, sk_timer);
net/appletalk/ddp.c
1724
static int atalk_recvmsg(struct socket *sock, struct msghdr *msg, size_t size,
net/appletalk/ddp.c
1727
struct sock *sk = sock->sk;
net/appletalk/ddp.c
1775
static int atalk_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
net/appletalk/ddp.c
1778
struct sock *sk = sock->sk;
net/appletalk/ddp.c
181
static inline void atalk_destroy_socket(struct sock *sk)
net/appletalk/ddp.c
1829
static int atalk_compat_routing_ioctl(struct sock *sk, unsigned int cmd,
net/appletalk/ddp.c
1859
static int atalk_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
net/appletalk/ddp.c
1862
struct sock *sk = sock->sk;
net/appletalk/ddp.c
1875
return atalk_ioctl(sock, cmd, (unsigned long)argp);
net/appletalk/ddp.c
76
static inline void __atalk_insert_socket(struct sock *sk)
net/appletalk/ddp.c
81
static inline void atalk_remove_socket(struct sock *sk)
net/appletalk/ddp.c
88
static struct sock *atalk_search_socket(struct sockaddr_at *to,
net/appletalk/ddp.c
91
struct sock *def_socket = NULL;
net/appletalk/ddp.c
92
struct sock *s;
net/atm/atm_misc.c
29
struct sock *sk = sk_atm(vcc);
net/atm/br2684.c
722
static int br2684_ioctl(struct socket *sock, unsigned int cmd,
net/atm/br2684.c
725
struct atm_vcc *atmvcc = ATM_SD(sock);
net/atm/br2684.c
741
if (sock->state != SS_CONNECTED)
net/atm/clip.c
55
struct sock *sk;
net/atm/clip.c
682
static int clip_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
net/atm/clip.c
684
struct atm_vcc *vcc = ATM_SD(sock);
net/atm/clip.c
685
struct sock *sk = sock->sk;
net/atm/clip.c
709
sock->state = SS_CONNECTED;
net/atm/common.c
100
static inline int vcc_writable(struct sock *sk)
net/atm/common.c
108
static void vcc_write_space(struct sock *sk)
net/atm/common.c
125
static void vcc_release_cb(struct sock *sk)
net/atm/common.c
140
int vcc_create(struct net *net, struct socket *sock, int protocol, int family, int kern)
net/atm/common.c
142
struct sock *sk;
net/atm/common.c
145
sock->sk = NULL;
net/atm/common.c
146
if (sock->type == SOCK_STREAM)
net/atm/common.c
151
sock_init_data(sock, sk);
net/atm/common.c
173
static void vcc_destroy_socket(struct sock *sk)
net/atm/common.c
199
int vcc_release(struct socket *sock)
net/atm/common.c
201
struct sock *sk = sock->sk;
net/atm/common.c
205
vcc_destroy_socket(sock->sk);
net/atm/common.c
215
struct sock *sk = sk_atm(vcc);
net/atm/common.c
270
struct sock *s;
net/atm/common.c
316
struct sock *s;
net/atm/common.c
385
struct sock *sk = sk_atm(vcc);
net/atm/common.c
43
static void __vcc_insert_socket(struct sock *sk)
net/atm/common.c
462
int vcc_connect(struct socket *sock, int itf, short vpi, int vci)
net/atm/common.c
465
struct atm_vcc *vcc = ATM_SD(sock);
net/atm/common.c
469
if (sock->state == SS_CONNECTED)
net/atm/common.c
471
if (sock->state != SS_UNCONNECTED)
net/atm/common.c
51
void vcc_insert_socket(struct sock *sk)
net/atm/common.c
517
if (test_bit(ATM_VF_READY, &ATM_SD(sock)->flags))
net/atm/common.c
518
sock->state = SS_CONNECTED;
net/atm/common.c
522
int vcc_recvmsg(struct socket *sock, struct msghdr *msg, size_t size,
net/atm/common.c
525
struct sock *sk = sock->sk;
net/atm/common.c
530
if (sock->state != SS_CONNECTED)
net/atm/common.c
537
vcc = ATM_SD(sock);
net/atm/common.c
568
int vcc_sendmsg(struct socket *sock, struct msghdr *m, size_t size)
net/atm/common.c
570
struct sock *sk = sock->sk;
net/atm/common.c
577
if (sock->state != SS_CONNECTED) {
net/atm/common.c
585
vcc = ATM_SD(sock);
net/atm/common.c
59
static void vcc_remove_socket(struct sock *sk)
net/atm/common.c
661
__poll_t vcc_poll(struct file *file, struct socket *sock, poll_table *wait)
net/atm/common.c
663
struct sock *sk = sock->sk;
net/atm/common.c
667
sock_poll_wait(file, sock, wait);
net/atm/common.c
670
vcc = ATM_SD(sock);
net/atm/common.c
68
struct sock *sk = sk_atm(vcc);
net/atm/common.c
685
if (sock->state == SS_CONNECTING &&
net/atm/common.c
757
int vcc_setsockopt(struct socket *sock, int level, int optname,
net/atm/common.c
767
vcc = ATM_SD(sock);
net/atm/common.c
778
if (sock->state == SS_CONNECTED)
net/atm/common.c
78
static void vcc_sock_destruct(struct sock *sk)
net/atm/common.c
780
if (sock->state != SS_UNCONNECTED)
net/atm/common.c
799
int vcc_getsockopt(struct socket *sock, int level, int optname,
net/atm/common.c
810
vcc = ATM_SD(sock);
net/atm/common.c
89
static void vcc_def_wakeup(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
122
sock->state = SS_CONNECTED;
net/atm/ioctl.c
159
error = ic->ioctl(sock, cmd, arg);
net/atm/ioctl.c
218
int vcc_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
net/atm/ioctl.c
220
return do_vcc_ioctl(sock, cmd, arg, 0);
net/atm/ioctl.c
277
static int do_atm_iobuf(struct socket *sock, unsigned int cmd,
net/atm/ioctl.c
289
static int do_atmif_sioc(struct socket *sock, unsigned int cmd,
net/atm/ioctl.c
301
static int do_atm_ioctl(struct socket *sock, unsigned int cmd32,
net/atm/ioctl.c
316
return do_atmif_sioc(sock, cmd32, arg);
net/atm/ioctl.c
330
return do_atm_iobuf(sock, cmd, arg);
net/atm/ioctl.c
348
return do_atmif_sioc(sock, cmd, arg);
net/atm/ioctl.c
354
int vcc_compat_ioctl(struct socket *sock, unsigned int cmd,
net/atm/ioctl.c
359
ret = do_vcc_ioctl(sock, cmd, arg, 1);
net/atm/ioctl.c
363
return do_atm_ioctl(sock, cmd, arg);
net/atm/ioctl.c
51
static int do_vcc_ioctl(struct socket *sock, unsigned int cmd,
net/atm/ioctl.c
54
struct sock *sk = sock->sk;
net/atm/ioctl.c
62
vcc = ATM_SD(sock);
net/atm/ioctl.c
65
if (sock->state != SS_CONNECTED ||
net/atm/ioctl.c
78
if (sock->state != SS_CONNECTED) {
net/atm/lec.c
1018
static int lane_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
net/atm/lec.c
1020
struct atm_vcc *vcc = ATM_SD(sock);
net/atm/lec.c
1039
sock->state = SS_CONNECTED;
net/atm/lec.c
142
struct sock *sk;
net/atm/lec.c
452
struct sock *sk;
net/atm/lec.c
525
struct sock *sk;
net/atm/lec.c
632
struct sock *sk = sk_atm(vcc);
net/atm/mpc.c
1249
struct sock *sk;
net/atm/mpc.c
1446
static int atm_mpoa_ioctl(struct socket *sock, unsigned int cmd,
net/atm/mpc.c
1450
struct atm_vcc *vcc = ATM_SD(sock);
net/atm/mpc.c
1462
sock->state = SS_CONNECTED;
net/atm/mpc.c
704
struct sock *sk = sk_atm(vcc);
net/atm/mpc.c
978
struct sock *sk;
net/atm/pppoatm.c
439
static int pppoatm_ioctl(struct socket *sock, unsigned int cmd,
net/atm/pppoatm.c
442
struct atm_vcc *atmvcc = ATM_SD(sock);
net/atm/pppoatm.c
456
if (sock->state != SS_CONNECTED)
net/atm/proc.c
104
*sock = sk;
net/atm/proc.c
179
struct sock *sk = sk_atm(vcc);
net/atm/proc.c
70
struct sock *sk;
net/atm/proc.c
73
static inline int compare_family(struct sock *sk, int family)
net/atm/proc.c
78
static int __vcc_walk(struct sock **sock, int family, int *bucket, loff_t l)
net/atm/proc.c
80
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, optval, optlen);
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/atm/signaling.c
251
struct sock *s;
net/atm/signaling.c
41
struct sock *s;
net/atm/signaling.c
98
struct sock *sk;
net/atm/svc.c
100
static int svc_bind(struct socket *sock, struct sockaddr_unsized *sockaddr,
net/atm/svc.c
104
struct sock *sk = sock->sk;
net/atm/svc.c
112
if (sock->state == SS_CONNECTED) {
net/atm/svc.c
116
if (sock->state != SS_UNCONNECTED) {
net/atm/svc.c
120
vcc = ATM_SD(sock);
net/atm/svc.c
156
static int svc_connect(struct socket *sock, struct sockaddr_unsized *sockaddr,
net/atm/svc.c
160
struct sock *sk = sock->sk;
net/atm/svc.c
162
struct atm_vcc *vcc = ATM_SD(sock);
net/atm/svc.c
172
switch (sock->state) {
net/atm/svc.c
184
sock->state = SS_UNCONNECTED;
net/atm/svc.c
214
sock->state = SS_CONNECTING;
net/atm/svc.c
277
error = vcc_connect(sock, vcc->itf, vcc->vpi, vcc->vci);
net/atm/svc.c
279
sock->state = SS_CONNECTED;
net/atm/svc.c
287
static int svc_listen(struct socket *sock, int backlog)
net/atm/svc.c
290
struct sock *sk = sock->sk;
net/atm/svc.c
291
struct atm_vcc *vcc = ATM_SD(sock);
net/atm/svc.c
327
static int svc_accept(struct socket *sock, struct socket *newsock,
net/atm/svc.c
330
struct sock *sk = sock->sk;
net/atm/svc.c
333
struct atm_vcc *old_vcc = ATM_SD(sock);
net/atm/svc.c
36
static int svc_create(struct net *net, struct socket *sock, int protocol,
net/atm/svc.c
426
static int svc_getname(struct socket *sock, struct sockaddr *sockaddr,
net/atm/svc.c
432
memcpy(addr, peer ? &ATM_SD(sock)->remote : &ATM_SD(sock)->local,
net/atm/svc.c
439
struct sock *sk = sk_atm(vcc);
net/atm/svc.c
458
static int svc_setsockopt(struct socket *sock, int level, int optname,
net/atm/svc.c
46
static int svc_shutdown(struct socket *sock, int how)
net/atm/svc.c
461
struct sock *sk = sock->sk;
net/atm/svc.c
462
struct atm_vcc *vcc = ATM_SD(sock);
net/atm/svc.c
495
error = vcc_setsockopt(sock, level, optname, optval, optlen);
net/atm/svc.c
503
static int svc_getsockopt(struct socket *sock, int level, int optname,
net/atm/svc.c
506
struct sock *sk = sock->sk;
net/atm/svc.c
511
error = vcc_getsockopt(sock, level, optname, optval, optlen);
net/atm/svc.c
522
if (copy_to_user(optval, &ATM_SD(sock)->sap, sizeof(struct atm_sap))) {
net/atm/svc.c
531
static int svc_addparty(struct socket *sock, struct sockaddr *sockaddr,
net/atm/svc.c
535
struct sock *sk = sock->sk;
net/atm/svc.c
536
struct atm_vcc *vcc = ATM_SD(sock);
net/atm/svc.c
55
struct sock *sk = sk_atm(vcc);
net/atm/svc.c
561
static int svc_dropparty(struct socket *sock, int ep_ref)
net/atm/svc.c
564
struct sock *sk = sock->sk;
net/atm/svc.c
565
struct atm_vcc *vcc = ATM_SD(sock);
net/atm/svc.c
588
static int svc_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
net/atm/svc.c
592
struct atm_vcc *vcc = ATM_SD(sock);
net/atm/svc.c
600
error = svc_addparty(sock, (struct sockaddr *)&sa, sizeof(sa),
net/atm/svc.c
608
error = svc_dropparty(sock, ep_ref);
net/atm/svc.c
611
error = vcc_ioctl(sock, cmd, arg);
net/atm/svc.c
618
static int svc_compat_ioctl(struct socket *sock, unsigned int cmd,
net/atm/svc.c
628
return svc_ioctl(sock, cmd, arg);
net/atm/svc.c
630
return vcc_compat_ioctl(sock, cmd, arg);
net/atm/svc.c
660
static int svc_create(struct net *net, struct socket *sock, int protocol,
net/atm/svc.c
668
sock->ops = &svc_proto_ops;
net/atm/svc.c
669
error = vcc_create(net, sock, protocol, AF_ATMSVC, kern);
net/atm/svc.c
672
ATM_SD(sock)->local.sas_family = AF_ATMSVC;
net/atm/svc.c
673
ATM_SD(sock)->remote.sas_family = AF_ATMSVC;
net/atm/svc.c
80
static int svc_release(struct socket *sock)
net/atm/svc.c
82
struct sock *sk = sock->sk;
net/atm/svc.c
86
vcc = ATM_SD(sock);
net/atm/svc.c
95
vcc_release(sock);
net/ax25/af_ax25.c
1084
sock->sk = NULL;
net/ax25/af_ax25.c
1097
static int ax25_bind(struct socket *sock, struct sockaddr_unsized *uaddr, int addr_len)
net/ax25/af_ax25.c
1099
struct sock *sk = sock->sk;
net/ax25/af_ax25.c
1177
static int __must_check ax25_connect(struct socket *sock,
net/ax25/af_ax25.c
1180
struct sock *sk = sock->sk;
net/ax25/af_ax25.c
1210
if (sock->state == SS_CONNECTING) {
net/ax25/af_ax25.c
1217
sock->state = SS_CONNECTED;
net/ax25/af_ax25.c
1221
sock->state = SS_UNCONNECTED;
net/ax25/af_ax25.c
1233
sock->state = SS_UNCONNECTED;
net/ax25/af_ax25.c
1301
sock->state = SS_CONNECTED;
net/ax25/af_ax25.c
1307
sock->state = SS_CONNECTING;
net/ax25/af_ax25.c
1363
sock->state = SS_UNCONNECTED;
net/ax25/af_ax25.c
1368
sock->state = SS_CONNECTED;
net/ax25/af_ax25.c
1377
static int ax25_accept(struct socket *sock, struct socket *newsock,
net/ax25/af_ax25.c
1381
struct sock *newsk;
net/ax25/af_ax25.c
1384
struct sock *sk;
net/ax25/af_ax25.c
1388
if (sock->state != SS_UNCONNECTED)
net/ax25/af_ax25.c
1391
if ((sk = sock->sk) == NULL)
net/ax25/af_ax25.c
1451
static int ax25_getname(struct socket *sock, struct sockaddr *uaddr,
net/ax25/af_ax25.c
1455
struct sock *sk = sock->sk;
net/ax25/af_ax25.c
1499
static int ax25_sendmsg(struct socket *sock, struct msghdr *msg, size_t len)
net/ax25/af_ax25.c
1502
struct sock *sk = sock->sk;
net/ax25/af_ax25.c
1668
static int ax25_recvmsg(struct socket *sock, struct msghdr *msg, size_t size,
net/ax25/af_ax25.c
1671
struct sock *sk = sock->sk;
net/ax25/af_ax25.c
172
struct sock *ax25_find_listener(ax25_address *addr, int digi,
net/ax25/af_ax25.c
1768
static int ax25_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
net/ax25/af_ax25.c
1770
struct sock *sk = sock->sk;
net/ax25/af_ax25.c
199
struct sock *ax25_get_socket(ax25_address *my_addr, ax25_address *dest_addr,
net/ax25/af_ax25.c
202
struct sock *sk = NULL;
net/ax25/af_ax25.c
291
struct sock *sk;
net/ax25/af_ax25.c
350
struct sock *sk=ax25->sk;
net/ax25/af_ax25.c
55
static void ax25_free_sock(struct sock *sk)
net/ax25/af_ax25.c
555
static int ax25_setsockopt(struct socket *sock, int level, int optname,
net/ax25/af_ax25.c
558
struct sock *sk = sock->sk;
net/ax25/af_ax25.c
674
(sock->state != SS_UNCONNECTED ||
net/ax25/af_ax25.c
717
static int ax25_getsockopt(struct socket *sock, int level, int optname,
net/ax25/af_ax25.c
720
struct sock *sk = sock->sk;
net/ax25/af_ax25.c
80
struct sock *sk;
net/ax25/af_ax25.c
814
static int ax25_listen(struct socket *sock, int backlog)
net/ax25/af_ax25.c
816
struct sock *sk = sock->sk;
net/ax25/af_ax25.c
843
static int ax25_create(struct net *net, struct socket *sock, int protocol,
net/ax25/af_ax25.c
846
struct sock *sk;
net/ax25/af_ax25.c
855
switch (sock->type) {
net/ax25/af_ax25.c
914
sock_init_data(sock, sk);
net/ax25/af_ax25.c
917
sock->ops = &ax25_proto_ops;
net/ax25/af_ax25.c
925
struct sock *ax25_make_new(struct sock *osk, struct ax25_dev *ax25_dev)
net/ax25/af_ax25.c
927
struct sock *sk;
net/ax25/af_ax25.c
995
static int ax25_release(struct socket *sock)
net/ax25/af_ax25.c
997
struct sock *sk = sock->sk;
net/ax25/ax25_ds_timer.c
93
struct sock *sk=ax25->sk;
net/ax25/ax25_in.c
188
struct sock *make, *sk;
net/ax25/ax25_std_timer.c
31
struct sock *sk = ax25->sk;
net/bluetooth/af_bluetooth.c
116
static int bt_sock_create(struct net *net, struct socket *sock, int proto,
net/bluetooth/af_bluetooth.c
135
err = bt_proto[proto]->create(net, sock, proto, kern);
net/bluetooth/af_bluetooth.c
137
bt_sock_reclassify_lock(sock->sk, proto);
net/bluetooth/af_bluetooth.c
146
struct sock *bt_sock_alloc(struct net *net, struct socket *sock,
net/bluetooth/af_bluetooth.c
149
struct sock *sk;
net/bluetooth/af_bluetooth.c
155
sock_init_data(sock, sk);
net/bluetooth/af_bluetooth.c
175
void bt_sock_link(struct bt_sock_list *l, struct sock *sk)
net/bluetooth/af_bluetooth.c
183
void bt_sock_unlink(struct bt_sock_list *l, struct sock *sk)
net/bluetooth/af_bluetooth.c
191
bool bt_sock_linked(struct bt_sock_list *l, struct sock *s)
net/bluetooth/af_bluetooth.c
193
struct sock *sk;
net/bluetooth/af_bluetooth.c
213
void bt_accept_enqueue(struct sock *parent, struct sock *sk, bool bh)
net/bluetooth/af_bluetooth.c
255
void bt_accept_unlink(struct sock *sk)
net/bluetooth/af_bluetooth.c
266
struct sock *bt_accept_dequeue(struct sock *parent, struct socket *newsock)
net/bluetooth/af_bluetooth.c
269
struct sock *sk;
net/bluetooth/af_bluetooth.c
275
sk = (struct sock *)s;
net/bluetooth/af_bluetooth.c
323
int bt_sock_recvmsg(struct socket *sock, struct msghdr *msg, size_t len,
net/bluetooth/af_bluetooth.c
326
struct sock *sk = sock->sk;
net/bluetooth/af_bluetooth.c
332
BT_DBG("sock %p sk %p len %zu", sock, sk, len);
net/bluetooth/af_bluetooth.c
385
static long bt_sock_data_wait(struct sock *sk, long timeo)
net/bluetooth/af_bluetooth.c
414
int bt_sock_stream_recvmsg(struct socket *sock, struct msghdr *msg,
net/bluetooth/af_bluetooth.c
417
struct sock *sk = sock->sk;
net/bluetooth/af_bluetooth.c
519
static inline __poll_t bt_accept_poll(struct sock *parent)
net/bluetooth/af_bluetooth.c
522
struct sock *sk;
net/bluetooth/af_bluetooth.c
525
sk = (struct sock *)s;
net/bluetooth/af_bluetooth.c
535
__poll_t bt_sock_poll(struct file *file, struct socket *sock,
net/bluetooth/af_bluetooth.c
538
struct sock *sk = sock->sk;
net/bluetooth/af_bluetooth.c
576
static int bt_ethtool_get_ts_info(struct sock *sk, unsigned int index,
net/bluetooth/af_bluetooth.c
603
static int bt_ethtool(struct sock *sk, const struct ifreq *ifr,
net/bluetooth/af_bluetooth.c
625
static int bt_dev_ioctl(struct socket *sock, unsigned int cmd, void __user *arg)
net/bluetooth/af_bluetooth.c
627
struct sock *sk = sock->sk;
net/bluetooth/af_bluetooth.c
656
int bt_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
net/bluetooth/af_bluetooth.c
658
struct sock *sk = sock->sk;
net/bluetooth/af_bluetooth.c
689
err = bt_dev_ioctl(sock, cmd, (void __user *)arg);
net/bluetooth/af_bluetooth.c
702
int bt_sock_wait_state(struct sock *sk, int state, unsigned long timeo)
net/bluetooth/af_bluetooth.c
738
int bt_sock_wait_ready(struct sock *sk, unsigned int msg_flags)
net/bluetooth/af_bluetooth.c
74
void bt_sock_reclassify_lock(struct sock *sk, int proto)
net/bluetooth/af_bluetooth.c
816
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
423
struct socket *sock = s->sock;
net/bluetooth/bnep/core.c
466
len = kernel_sendmsg(sock, &s->msg, iv, il, len);
net/bluetooth/bnep/core.c
483
struct sock *sk = s->sock->sk;
net/bluetooth/bnep/core.c
528
s->sock->sk->sk_err = EUNATCH;
net/bluetooth/bnep/core.c
530
wake_up_interruptible(sk_sleep(s->sock->sk));
net/bluetooth/bnep/core.c
533
fput(s->sock->file);
net/bluetooth/bnep/core.c
545
struct l2cap_conn *conn = l2cap_pi(session->sock->sk)->chan->conn;
net/bluetooth/bnep/core.c
557
int bnep_add_connection(struct bnep_connadd_req *req, struct socket *sock)
net/bluetooth/bnep/core.c
567
if (!l2cap_is_socket(sock))
net/bluetooth/bnep/core.c
573
baswap((void *) dst, &l2cap_pi(sock->sk)->chan->dst);
net/bluetooth/bnep/core.c
574
baswap((void *) src, &l2cap_pi(sock->sk)->chan->src);
net/bluetooth/bnep/core.c
601
s->sock = sock;
net/bluetooth/bnep/core.c
667
wake_up_interruptible(sk_sleep(s->sock->sk));
net/bluetooth/bnep/core.c
73
struct socket *sock = s->sock;
net/bluetooth/bnep/core.c
76
return kernel_sendmsg(sock, &s->msg, &iv, 1, len);
net/bluetooth/bnep/netdev.c
168
struct sock *sk = s->sock->sk;
net/bluetooth/bnep/netdev.c
54
struct sock *sk = s->sock->sk;
net/bluetooth/bnep/sock.c
137
static int bnep_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
net/bluetooth/bnep/sock.c
139
return do_bnep_sock_ioctl(sock, cmd, (void __user *)arg);
net/bluetooth/bnep/sock.c
143
static int bnep_sock_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
net/bluetooth/bnep/sock.c
168
return do_bnep_sock_ioctl(sock, cmd, argp);
net/bluetooth/bnep/sock.c
198
static int bnep_sock_create(struct net *net, struct socket *sock, int protocol,
net/bluetooth/bnep/sock.c
201
struct sock *sk;
net/bluetooth/bnep/sock.c
203
BT_DBG("sock %p", sock);
net/bluetooth/bnep/sock.c
205
if (sock->type != SOCK_RAW)
net/bluetooth/bnep/sock.c
208
sk = bt_sock_alloc(net, sock, &bnep_proto, protocol, GFP_ATOMIC, kern);
net/bluetooth/bnep/sock.c
212
sock->ops = &bnep_sock_ops;
net/bluetooth/bnep/sock.c
213
sock->state = SS_UNCONNECTED;
net/bluetooth/bnep/sock.c
37
static int bnep_sock_release(struct socket *sock)
net/bluetooth/bnep/sock.c
39
struct sock *sk = sock->sk;
net/bluetooth/bnep/sock.c
41
BT_DBG("sock %p sk %p", sock, sk);
net/bluetooth/bnep/sock.c
53
static int do_bnep_sock_ioctl(struct socket *sock, unsigned int cmd, void __user *argp)
net/bluetooth/bnep/sock.c
73
nsock = sockfd_lookup(ca.sock, &err);
net/bluetooth/cmtp/capi.c
145
wake_up_interruptible(sk_sleep(session->sock->sk));
net/bluetooth/cmtp/cmtp.h
40
int sock; /* Connected socket */
net/bluetooth/cmtp/cmtp.h
61
int cmtp_add_connection(struct cmtp_connadd_req *req, struct socket *sock);
net/bluetooth/cmtp/cmtp.h
73
struct socket *sock;
net/bluetooth/cmtp/core.c
195
struct socket *sock = session->sock;
net/bluetooth/cmtp/core.c
206
return kernel_sendmsg(sock, &msg, &iv, 1, len);
net/bluetooth/cmtp/core.c
281
struct sock *sk = session->sock->sk;
net/bluetooth/cmtp/core.c
319
fput(session->sock->file);
net/bluetooth/cmtp/core.c
330
int cmtp_add_connection(struct cmtp_connadd_req *req, struct socket *sock)
net/bluetooth/cmtp/core.c
338
if (!l2cap_is_socket(sock))
net/bluetooth/cmtp/core.c
350
s = __cmtp_get_session(&l2cap_pi(sock->sk)->chan->dst);
net/bluetooth/cmtp/core.c
356
bacpy(&session->bdaddr, &l2cap_pi(sock->sk)->chan->dst);
net/bluetooth/cmtp/core.c
358
session->mtu = min_t(uint, l2cap_pi(sock->sk)->chan->omtu,
net/bluetooth/cmtp/core.c
359
l2cap_pi(sock->sk)->chan->imtu);
net/bluetooth/cmtp/core.c
365
session->sock = sock;
net/bluetooth/cmtp/core.c
398
get_file(session->sock->file);
net/bluetooth/cmtp/core.c
401
wake_up_interruptible(sk_sleep(session->sock->sk));
net/bluetooth/cmtp/core.c
444
wake_up_interruptible(sk_sleep(session->sock->sk));
net/bluetooth/cmtp/sock.c
139
static int cmtp_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
net/bluetooth/cmtp/sock.c
141
return do_cmtp_sock_ioctl(sock, cmd, (void __user *)arg);
net/bluetooth/cmtp/sock.c
145
static int cmtp_sock_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
net/bluetooth/cmtp/sock.c
170
return do_cmtp_sock_ioctl(sock, cmd, argp);
net/bluetooth/cmtp/sock.c
200
static int cmtp_sock_create(struct net *net, struct socket *sock, int protocol,
net/bluetooth/cmtp/sock.c
203
struct sock *sk;
net/bluetooth/cmtp/sock.c
205
BT_DBG("sock %p", sock);
net/bluetooth/cmtp/sock.c
207
if (sock->type != SOCK_RAW)
net/bluetooth/cmtp/sock.c
214
sock_init_data(sock, sk);
net/bluetooth/cmtp/sock.c
216
sock->ops = &cmtp_sock_ops;
net/bluetooth/cmtp/sock.c
218
sock->state = SS_UNCONNECTED;
net/bluetooth/cmtp/sock.c
49
static int cmtp_sock_release(struct socket *sock)
net/bluetooth/cmtp/sock.c
51
struct sock *sk = sock->sk;
net/bluetooth/cmtp/sock.c
53
BT_DBG("sock %p sk %p", sock, sk);
net/bluetooth/cmtp/sock.c
66
static int do_cmtp_sock_ioctl(struct socket *sock, unsigned int cmd, void __user *argp)
net/bluetooth/cmtp/sock.c
85
nsock = sockfd_lookup(ca.sock, &err);
net/bluetooth/hci_conn.c
3128
struct sock *sk = skb ? skb->sk : NULL;
net/bluetooth/hci_sock.c
1003
static int hci_sock_bound_ioctl(struct sock *sk, unsigned int cmd,
net/bluetooth/hci_sock.c
1043
static int hci_sock_ioctl(struct socket *sock, unsigned int cmd,
net/bluetooth/hci_sock.c
1047
struct sock *sk = sock->sk;
net/bluetooth/hci_sock.c
116
static void hci_sock_free_cookie(struct sock *sk)
net/bluetooth/hci_sock.c
1173
static int hci_sock_compat_ioctl(struct socket *sock, unsigned int cmd,
net/bluetooth/hci_sock.c
1181
return hci_sock_ioctl(sock, cmd, arg);
net/bluetooth/hci_sock.c
1184
return hci_sock_ioctl(sock, cmd, (unsigned long)compat_ptr(arg));
net/bluetooth/hci_sock.c
1188
static int hci_sock_bind(struct socket *sock, struct sockaddr_unsized *addr,
net/bluetooth/hci_sock.c
1192
struct sock *sk = sock->sk;
net/bluetooth/hci_sock.c
1197
BT_DBG("sock %p sk %p", sock, sk);
net/bluetooth/hci_sock.c
1490
static int hci_sock_getname(struct socket *sock, struct sockaddr *addr,
net/bluetooth/hci_sock.c
1494
struct sock *sk = sock->sk;
net/bluetooth/hci_sock.c
1498
BT_DBG("sock %p sk %p", sock, sk);
net/bluetooth/hci_sock.c
1521
static void hci_sock_cmsg(struct sock *sk, struct msghdr *msg,
net/bluetooth/hci_sock.c
1558
static int hci_sock_recvmsg(struct socket *sock, struct msghdr *msg,
net/bluetooth/hci_sock.c
1562
struct sock *sk = sock->sk;
net/bluetooth/hci_sock.c
1567
BT_DBG("sock %p, sk %p", sock, sk);
net/bluetooth/hci_sock.c
1614
scm_recv(sock, msg, &scm, flags);
net/bluetooth/hci_sock.c
1619
static int hci_mgmt_cmd(struct hci_mgmt_chan *chan, struct sock *sk,
net/bluetooth/hci_sock.c
165
static bool is_filtered_packet(struct sock *sk, struct sk_buff *skb)
net/bluetooth/hci_sock.c
1734
static int hci_logging_frame(struct sock *sk, struct sk_buff *skb,
net/bluetooth/hci_sock.c
1800
static int hci_sock_sendmsg(struct socket *sock, struct msghdr *msg,
net/bluetooth/hci_sock.c
1803
struct sock *sk = sock->sk;
net/bluetooth/hci_sock.c
1810
BT_DBG("sock %p sk %p", sock, sk);
net/bluetooth/hci_sock.c
1938
static int hci_sock_setsockopt_old(struct socket *sock, int level, int optname,
net/bluetooth/hci_sock.c
1942
struct sock *sk = sock->sk;
net/bluetooth/hci_sock.c
2017
static int hci_sock_setsockopt(struct socket *sock, int level, int optname,
net/bluetooth/hci_sock.c
2020
struct sock *sk = sock->sk;
net/bluetooth/hci_sock.c
2027
return hci_sock_setsockopt_old(sock, level, optname, optval,
net/bluetooth/hci_sock.c
205
struct sock *sk;
net/bluetooth/hci_sock.c
2065
static int hci_sock_getsockopt_old(struct socket *sock, int level, int optname,
net/bluetooth/hci_sock.c
2069
struct sock *sk = sock->sk;
net/bluetooth/hci_sock.c
2131
static int hci_sock_getsockopt(struct socket *sock, int level, int optname,
net/bluetooth/hci_sock.c
2134
struct sock *sk = sock->sk;
net/bluetooth/hci_sock.c
2140
return hci_sock_getsockopt_old(sock, level, optname, optval,
net/bluetooth/hci_sock.c
2164
static void hci_sock_destruct(struct sock *sk)
net/bluetooth/hci_sock.c
2201
static int hci_sock_create(struct net *net, struct socket *sock, int protocol,
net/bluetooth/hci_sock.c
2204
struct sock *sk;
net/bluetooth/hci_sock.c
2206
BT_DBG("sock %p", sock);
net/bluetooth/hci_sock.c
2208
if (sock->type != SOCK_RAW)
net/bluetooth/hci_sock.c
2211
sock->ops = &hci_sock_ops;
net/bluetooth/hci_sock.c
2213
sk = bt_sock_alloc(net, sock, &hci_sk_proto, protocol, GFP_ATOMIC,
net/bluetooth/hci_sock.c
2218
sock->state = SS_UNCONNECTED;
net/bluetooth/hci_sock.c
268
static void hci_sock_copy_creds(struct sock *sk, struct sk_buff *skb)
net/bluetooth/hci_sock.c
317
int flag, struct sock *skip_sk)
net/bluetooth/hci_sock.c
319
struct sock *sk;
net/bluetooth/hci_sock.c
351
int flag, struct sock *skip_sk)
net/bluetooth/hci_sock.c
428
int flag, struct sock *skip_sk)
net/bluetooth/hci_sock.c
430
struct sock *sk;
net/bluetooth/hci_sock.c
559
static struct sk_buff *create_monitor_ctrl_open(struct sock *sk)
net/bluetooth/hci_sock.c
619
static struct sk_buff *create_monitor_ctrl_close(struct sock *sk)
net/bluetooth/hci_sock.c
63
static struct hci_dev *hci_hdev_from_sock(struct sock *sk)
net/bluetooth/hci_sock.c
659
static struct sk_buff *create_monitor_ctrl_command(struct sock *sk, u16 index,
net/bluetooth/hci_sock.c
689
send_monitor_note(struct sock *sk, const char *fmt, ...)
net/bluetooth/hci_sock.c
722
static void send_monitor_replay(struct sock *sk)
net/bluetooth/hci_sock.c
74
void hci_sock_set_flag(struct sock *sk, int nr)
net/bluetooth/hci_sock.c
764
static void send_monitor_control_replay(struct sock *mon_sk)
net/bluetooth/hci_sock.c
766
struct sock *sk;
net/bluetooth/hci_sock.c
79
void hci_sock_clear_flag(struct sock *sk, int nr)
net/bluetooth/hci_sock.c
837
struct sock *sk;
net/bluetooth/hci_sock.c
84
int hci_sock_test_flag(struct sock *sk, int nr)
net/bluetooth/hci_sock.c
89
unsigned short hci_sock_get_channel(struct sock *sk)
net/bluetooth/hci_sock.c
901
static int hci_sock_release(struct socket *sock)
net/bluetooth/hci_sock.c
903
struct sock *sk = sock->sk;
net/bluetooth/hci_sock.c
907
BT_DBG("sock %p sk %p", sock, sk);
net/bluetooth/hci_sock.c
94
u32 hci_sock_get_cookie(struct sock *sk)
net/bluetooth/hci_sock.c
99
static bool hci_sock_gen_cookie(struct sock *sk)
net/bluetooth/hci_sync.c
158
struct sock *sk)
net/bluetooth/hci_sync.c
1929
struct sock *sk)
net/bluetooth/hci_sync.c
2017
static int hci_clear_adv_sets_sync(struct hci_dev *hdev, struct sock *sk)
net/bluetooth/hci_sync.c
2033
static int hci_clear_adv_sync(struct hci_dev *hdev, struct sock *sk, bool force)
net/bluetooth/hci_sync.c
2065
struct sock *sk)
net/bluetooth/hci_sync.c
2098
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
2672
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
103
struct sock *sk = sock->sk;
net/bluetooth/hidp/core.c
1199
struct sock *ctrl_sk = session->ctrl_sock->sk;
net/bluetooth/hidp/core.c
1200
struct sock *intr_sk = session->intr_sock->sk;
net/bluetooth/hidp/core.c
615
static int hidp_send_frame(struct socket *sock, unsigned char *data, int len)
net/bluetooth/hidp/core.c
620
BT_DBG("sock %p data %p len %d", sock, data, len);
net/bluetooth/hidp/core.c
627
return kernel_sendmsg(sock, &msg, &iv, 1, len);
net/bluetooth/hidp/core.c
633
struct socket *sock)
net/bluetooth/hidp/core.c
641
ret = hidp_send_frame(sock, skb->data, skb->len);
net/bluetooth/hidp/core.c
98
static int hidp_send_message(struct hidp_session *session, struct socket *sock,
net/bluetooth/hidp/sock.c
126
static int hidp_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
net/bluetooth/hidp/sock.c
128
return do_hidp_sock_ioctl(sock, cmd, (void __user *)arg);
net/bluetooth/hidp/sock.c
148
static int hidp_sock_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
net/bluetooth/hidp/sock.c
219
return hidp_sock_ioctl(sock, cmd, arg);
net/bluetooth/hidp/sock.c
249
static int hidp_sock_create(struct net *net, struct socket *sock, int protocol,
net/bluetooth/hidp/sock.c
252
struct sock *sk;
net/bluetooth/hidp/sock.c
254
BT_DBG("sock %p", sock);
net/bluetooth/hidp/sock.c
256
if (sock->type != SOCK_RAW)
net/bluetooth/hidp/sock.c
259
sk = bt_sock_alloc(net, sock, &hidp_proto, protocol, GFP_ATOMIC, kern);
net/bluetooth/hidp/sock.c
263
sock->ops = &hidp_sock_ops;
net/bluetooth/hidp/sock.c
264
sock->state = SS_UNCONNECTED;
net/bluetooth/hidp/sock.c
33
static int hidp_sock_release(struct socket *sock)
net/bluetooth/hidp/sock.c
35
struct sock *sk = sock->sk;
net/bluetooth/hidp/sock.c
37
BT_DBG("sock %p sk %p", sock, sk);
net/bluetooth/hidp/sock.c
50
static int do_hidp_sock_ioctl(struct socket *sock, unsigned int cmd, void __user *argp)
net/bluetooth/iso.c
1009
static int iso_sock_rebind_bis(struct sock *sk, struct sockaddr_iso *sa,
net/bluetooth/iso.c
1051
static int iso_sock_rebind_bc(struct sock *sk, struct sockaddr_iso *sa,
net/bluetooth/iso.c
1109
static int iso_sock_bind(struct socket *sock, struct sockaddr_unsized *addr,
net/bluetooth/iso.c
1113
struct sock *sk = sock->sk;
net/bluetooth/iso.c
1154
err = iso_sock_bind_bc(sock, addr, addr_len);
net/bluetooth/iso.c
1166
static int iso_sock_connect(struct socket *sock, struct sockaddr_unsized *addr,
net/bluetooth/iso.c
1170
struct sock *sk = sock->sk;
net/bluetooth/iso.c
1215
static int iso_listen_bis(struct sock *sk)
net/bluetooth/iso.c
1279
static int iso_listen_cis(struct sock *sk)
net/bluetooth/iso.c
1295
static int iso_sock_listen(struct socket *sock, int backlog)
net/bluetooth/iso.c
1297
struct sock *sk = sock->sk;
net/bluetooth/iso.c
1340
static int iso_sock_accept(struct socket *sock, struct socket *newsock,
net/bluetooth/iso.c
1344
struct sock *sk = sock->sk, *ch;
net/bluetooth/iso.c
143
static struct sock *iso_sock_hold(struct iso_conn *conn)
net/bluetooth/iso.c
1435
static int iso_sock_getname(struct socket *sock, struct sockaddr *addr,
net/bluetooth/iso.c
1439
struct sock *sk = sock->sk;
net/bluetooth/iso.c
1442
BT_DBG("sock %p, sk %p", sock, sk);
net/bluetooth/iso.c
1468
static int iso_sock_sendmsg(struct socket *sock, struct msghdr *msg,
net/bluetooth/iso.c
1471
struct sock *sk = sock->sk;
net/bluetooth/iso.c
1477
BT_DBG("sock %p, sk %p", sock, sk);
net/bluetooth/iso.c
1564
static void iso_conn_big_sync(struct sock *sk)
net/bluetooth/iso.c
157
struct sock *sk;
net/bluetooth/iso.c
1597
static int iso_sock_recvmsg(struct socket *sock, struct msghdr *msg,
net/bluetooth/iso.c
1600
struct sock *sk = sock->sk;
net/bluetooth/iso.c
1659
return bt_sock_recvmsg(sock, msg, len, flags);
net/bluetooth/iso.c
1753
static int iso_sock_setsockopt(struct socket *sock, int level, int optname,
net/bluetooth/iso.c
1756
struct sock *sk = sock->sk;
net/bluetooth/iso.c
180
static void iso_sock_set_timer(struct sock *sk, long timeout)
net/bluetooth/iso.c
1852
static int iso_sock_getsockopt(struct socket *sock, int level, int optname,
net/bluetooth/iso.c
1855
struct sock *sk = sock->sk;
net/bluetooth/iso.c
190
static void iso_sock_clear_timer(struct sock *sk)
net/bluetooth/iso.c
1923
static int iso_sock_shutdown(struct socket *sock, int how)
net/bluetooth/iso.c
1925
struct sock *sk = sock->sk;
net/bluetooth/iso.c
1928
BT_DBG("sock %p, sk %p, how %d", sock, sk, how);
net/bluetooth/iso.c
1968
static int iso_sock_release(struct socket *sock)
net/bluetooth/iso.c
1970
struct sock *sk = sock->sk;
net/bluetooth/iso.c
1973
BT_DBG("sock %p, sk %p", sock, sk);
net/bluetooth/iso.c
1992
static void iso_sock_ready(struct sock *sk)
net/bluetooth/iso.c
2006
static bool iso_match_big(struct sock *sk, void *data)
net/bluetooth/iso.c
2013
static bool iso_match_big_hcon(struct sock *sk, void *data)
net/bluetooth/iso.c
2020
static bool iso_match_pa_sync_flag(struct sock *sk, void *data)
net/bluetooth/iso.c
2025
static bool iso_match_dst(struct sock *sk, void *data)
net/bluetooth/iso.c
2032
struct sock *parent = NULL;
net/bluetooth/iso.c
2033
struct sock *sk = conn->sk;
net/bluetooth/iso.c
2193
static bool iso_match_sid(struct sock *sk, void *data)
net/bluetooth/iso.c
2203
static bool iso_match_sid_past(struct sock *sk, void *data)
net/bluetooth/iso.c
2213
static bool iso_match_sync_handle(struct sock *sk, void *data)
net/bluetooth/iso.c
2220
static bool iso_match_sync_handle_pa_report(struct sock *sk, void *data)
net/bluetooth/iso.c
2235
struct sock *sk;
net/bluetooth/iso.c
233
static void iso_chan_del(struct sock *sk, int err)
net/bluetooth/iso.c
236
struct sock *parent;
net/bluetooth/iso.c
2622
struct sock *sk;
net/bluetooth/iso.c
267
struct sock *sk;
net/bluetooth/iso.c
293
static int __iso_chan_add(struct iso_conn *conn, struct sock *sk,
net/bluetooth/iso.c
294
struct sock *parent)
net/bluetooth/iso.c
31
struct sock *sk;
net/bluetooth/iso.c
315
static int iso_chan_add(struct iso_conn *conn, struct sock *sk,
net/bluetooth/iso.c
316
struct sock *parent)
net/bluetooth/iso.c
335
static int iso_connect_bis(struct sock *sk)
net/bluetooth/iso.c
432
static int iso_connect_cis(struct sock *sk)
net/bluetooth/iso.c
44
static void iso_sock_close(struct sock *sk);
net/bluetooth/iso.c
45
static void iso_sock_kill(struct sock *sk);
net/bluetooth/iso.c
531
static struct bt_iso_qos *iso_sock_get_qos(struct sock *sk)
net/bluetooth/iso.c
539
static int iso_send_frame(struct sock *sk, struct sk_buff *skb,
net/bluetooth/iso.c
572
struct sock *sk;
net/bluetooth/iso.c
594
static struct sock *__iso_get_sock_listen_by_addr(bdaddr_t *src, bdaddr_t *dst)
net/bluetooth/iso.c
596
struct sock *sk;
net/bluetooth/iso.c
612
static struct sock *__iso_get_sock_listen_by_sid(bdaddr_t *ba, bdaddr_t *bc,
net/bluetooth/iso.c
615
struct sock *sk;
net/bluetooth/iso.c
641
static struct sock *iso_get_sock(struct hci_dev *hdev, bdaddr_t *src,
net/bluetooth/iso.c
645
struct sock *sk = NULL, *sk1 = NULL;
net/bluetooth/iso.c
702
static struct sock *iso_get_sock_big(struct sock *match_sk, bdaddr_t *src,
net/bluetooth/iso.c
705
struct sock *sk = NULL;
net/bluetooth/iso.c
741
static void iso_sock_destruct(struct sock *sk)
net/bluetooth/iso.c
752
static void iso_sock_cleanup_listen(struct sock *parent)
net/bluetooth/iso.c
754
struct sock *sk;
net/bluetooth/iso.c
777
static void iso_sock_kill(struct sock *sk)
net/bluetooth/iso.c
798
static void iso_sock_disconn(struct sock *sk)
net/bluetooth/iso.c
800
struct sock *bis_sk;
net/bluetooth/iso.c
82
static bool iso_match_sid(struct sock *sk, void *data);
net/bluetooth/iso.c
83
static bool iso_match_sid_past(struct sock *sk, void *data);
net/bluetooth/iso.c
830
static void __iso_sock_close(struct sock *sk)
net/bluetooth/iso.c
84
static bool iso_match_sync_handle(struct sock *sk, void *data);
net/bluetooth/iso.c
85
static bool iso_match_sync_handle_pa_report(struct sock *sk, void *data);
net/bluetooth/iso.c
86
static void iso_sock_disconn(struct sock *sk);
net/bluetooth/iso.c
867
static void iso_sock_close(struct sock *sk)
net/bluetooth/iso.c
876
static void iso_sock_init(struct sock *sk, struct sock *parent)
net/bluetooth/iso.c
88
typedef bool (*iso_sock_match_t)(struct sock *sk, void *data);
net/bluetooth/iso.c
90
static struct sock *iso_get_sock(struct hci_dev *hdev, bdaddr_t *src,
net/bluetooth/iso.c
922
static struct sock *iso_sock_alloc(struct net *net, struct socket *sock,
net/bluetooth/iso.c
925
struct sock *sk;
net/bluetooth/iso.c
927
sk = bt_sock_alloc(net, sock, &iso_proto, proto, prio, kern);
net/bluetooth/iso.c
944
static int iso_sock_create(struct net *net, struct socket *sock, int protocol,
net/bluetooth/iso.c
947
struct sock *sk;
net/bluetooth/iso.c
949
BT_DBG("sock %p", sock);
net/bluetooth/iso.c
951
sock->state = SS_UNCONNECTED;
net/bluetooth/iso.c
953
if (sock->type != SOCK_SEQPACKET)
net/bluetooth/iso.c
956
sock->ops = &iso_sock_ops;
net/bluetooth/iso.c
958
sk = iso_sock_alloc(net, sock, protocol, GFP_ATOMIC, kern);
net/bluetooth/iso.c
966
static int iso_sock_bind_bc(struct socket *sock, struct sockaddr_unsized *addr,
net/bluetooth/iso.c
970
struct sock *sk = sock->sk;
net/bluetooth/l2cap_core.c
2538
struct sock *sk = skb ? skb->sk : NULL;
net/bluetooth/l2cap_core.c
2551
struct sock *sk = skb ? skb->sk : NULL;
net/bluetooth/l2cap_sock.c
1129
static int l2cap_sock_sendmsg(struct socket *sock, struct msghdr *msg,
net/bluetooth/l2cap_sock.c
1132
struct sock *sk = sock->sk;
net/bluetooth/l2cap_sock.c
1137
BT_DBG("sock %p, sk %p", sock, sk);
net/bluetooth/l2cap_sock.c
1172
struct sock *sk = chan->data;
net/bluetooth/l2cap_sock.c
1198
static int l2cap_sock_recvmsg(struct socket *sock, struct msghdr *msg,
net/bluetooth/l2cap_sock.c
1201
struct sock *sk = sock->sk;
net/bluetooth/l2cap_sock.c
1233
if (sock->type == SOCK_STREAM)
net/bluetooth/l2cap_sock.c
1234
err = bt_sock_stream_recvmsg(sock, msg, len, flags);
net/bluetooth/l2cap_sock.c
1236
err = bt_sock_recvmsg(sock, msg, len, flags);
net/bluetooth/l2cap_sock.c
1275
static void l2cap_sock_kill(struct sock *sk)
net/bluetooth/l2cap_sock.c
1293
static int __l2cap_wait_ack(struct sock *sk, struct l2cap_chan *chan)
net/bluetooth/l2cap_sock.c
1338
static int l2cap_sock_shutdown(struct socket *sock, int how)
net/bluetooth/l2cap_sock.c
1340
struct sock *sk = sock->sk;
net/bluetooth/l2cap_sock.c
1345
BT_DBG("sock %p, sk %p, how %d", sock, sk, how);
net/bluetooth/l2cap_sock.c
1439
static int l2cap_sock_release(struct socket *sock)
net/bluetooth/l2cap_sock.c
1441
struct sock *sk = sock->sk;
net/bluetooth/l2cap_sock.c
1445
BT_DBG("sock %p, sk %p", sock, sk);
net/bluetooth/l2cap_sock.c
1456
err = l2cap_sock_shutdown(sock, SHUT_RDWR);
net/bluetooth/l2cap_sock.c
1471
static void l2cap_sock_cleanup_listen(struct sock *parent)
net/bluetooth/l2cap_sock.c
1473
struct sock *sk;
net/bluetooth/l2cap_sock.c
1499
struct sock *sk, *parent = chan->data;
net/bluetooth/l2cap_sock.c
1530
struct sock *sk;
net/bluetooth/l2cap_sock.c
1593
struct sock *sk = chan->data;
net/bluetooth/l2cap_sock.c
1603
struct sock *sk = chan->data;
net/bluetooth/l2cap_sock.c
1604
struct sock *parent;
net/bluetooth/l2cap_sock.c
1658
struct sock *sk = chan->data;
net/bluetooth/l2cap_sock.c
1670
struct sock *sk = chan->data;
net/bluetooth/l2cap_sock.c
1698
struct sock *sk = chan->data;
net/bluetooth/l2cap_sock.c
1699
struct sock *parent;
net/bluetooth/l2cap_sock.c
1721
struct sock *parent, *sk = chan->data;
net/bluetooth/l2cap_sock.c
1734
struct sock *sk = chan->data;
net/bluetooth/l2cap_sock.c
1750
struct sock *sk = chan->data;
net/bluetooth/l2cap_sock.c
1759
struct sock *sk = chan->data;
net/bluetooth/l2cap_sock.c
1766
struct sock *sk = chan->data;
net/bluetooth/l2cap_sock.c
1773
struct sock *sk = chan->data;
net/bluetooth/l2cap_sock.c
1781
struct sock *sk = chan->data;
net/bluetooth/l2cap_sock.c
181
static int l2cap_sock_connect(struct socket *sock, struct sockaddr_unsized *addr,
net/bluetooth/l2cap_sock.c
1810
static void l2cap_sock_destruct(struct sock *sk)
net/bluetooth/l2cap_sock.c
184
struct sock *sk = sock->sk;
net/bluetooth/l2cap_sock.c
1845
static void l2cap_sock_init(struct sock *sk, struct sock *parent)
net/bluetooth/l2cap_sock.c
1919
static struct sock *l2cap_sock_alloc(struct net *net, struct socket *sock,
net/bluetooth/l2cap_sock.c
1922
struct sock *sk;
net/bluetooth/l2cap_sock.c
1925
sk = bt_sock_alloc(net, sock, &l2cap_proto, proto, prio, kern);
net/bluetooth/l2cap_sock.c
1937
if (sock)
net/bluetooth/l2cap_sock.c
1938
sock->sk = NULL;
net/bluetooth/l2cap_sock.c
1949
static int l2cap_sock_create(struct net *net, struct socket *sock, int protocol,
net/bluetooth/l2cap_sock.c
1952
struct sock *sk;
net/bluetooth/l2cap_sock.c
1954
BT_DBG("sock %p", sock);
net/bluetooth/l2cap_sock.c
1956
sock->state = SS_UNCONNECTED;
net/bluetooth/l2cap_sock.c
1958
if (sock->type != SOCK_SEQPACKET && sock->type != SOCK_STREAM &&
net/bluetooth/l2cap_sock.c
1959
sock->type != SOCK_DGRAM && sock->type != SOCK_RAW)
net/bluetooth/l2cap_sock.c
1962
if (sock->type == SOCK_RAW && !kern && !capable(CAP_NET_RAW))
net/bluetooth/l2cap_sock.c
1965
sock->ops = &l2cap_sock_ops;
net/bluetooth/l2cap_sock.c
1967
sk = l2cap_sock_alloc(net, sock, protocol, GFP_ATOMIC, kern);
net/bluetooth/l2cap_sock.c
272
static int l2cap_sock_listen(struct socket *sock, int backlog)
net/bluetooth/l2cap_sock.c
274
struct sock *sk = sock->sk;
net/bluetooth/l2cap_sock.c
329
static int l2cap_sock_accept(struct socket *sock, struct socket *newsock,
net/bluetooth/l2cap_sock.c
333
struct sock *sk = sock->sk, *nsk;
net/bluetooth/l2cap_sock.c
385
static int l2cap_sock_getname(struct socket *sock, struct sockaddr *addr,
net/bluetooth/l2cap_sock.c
389
struct sock *sk = sock->sk;
net/bluetooth/l2cap_sock.c
392
BT_DBG("sock %p, sk %p", sock, sk);
net/bluetooth/l2cap_sock.c
435
static int l2cap_sock_getsockopt_old(struct socket *sock, int optname,
net/bluetooth/l2cap_sock.c
438
struct sock *sk = sock->sk;
net/bluetooth/l2cap_sock.c
46
static void l2cap_sock_init(struct sock *sk, struct sock *parent);
net/bluetooth/l2cap_sock.c
47
static struct sock *l2cap_sock_alloc(struct net *net, struct socket *sock,
net/bluetooth/l2cap_sock.c
49
static void l2cap_sock_cleanup_listen(struct sock *parent);
net/bluetooth/l2cap_sock.c
51
bool l2cap_is_socket(struct socket *sock)
net/bluetooth/l2cap_sock.c
53
return sock && sock->ops == &l2cap_sock_ops;
net/bluetooth/l2cap_sock.c
555
static int l2cap_sock_getsockopt(struct socket *sock, int level, int optname,
net/bluetooth/l2cap_sock.c
558
struct sock *sk = sock->sk;
net/bluetooth/l2cap_sock.c
568
return l2cap_sock_getsockopt_old(sock, optname, optval, optlen);
net/bluetooth/l2cap_sock.c
725
static int l2cap_sock_setsockopt_old(struct socket *sock, int optname,
net/bluetooth/l2cap_sock.c
728
struct sock *sk = sock->sk;
net/bluetooth/l2cap_sock.c
83
static int l2cap_sock_bind(struct socket *sock, struct sockaddr_unsized *addr, int alen)
net/bluetooth/l2cap_sock.c
85
struct sock *sk = sock->sk;
net/bluetooth/l2cap_sock.c
879
static int l2cap_sock_setsockopt(struct socket *sock, int level, int optname,
net/bluetooth/l2cap_sock.c
882
struct sock *sk = sock->sk;
net/bluetooth/l2cap_sock.c
895
return l2cap_sock_setsockopt_old(sock, optname, optval, optlen);
net/bluetooth/mgmt.c
10280
struct sock *skip_sk,
net/bluetooth/mgmt.c
10311
struct sock *skip_sk)
net/bluetooth/mgmt.c
10613
void mgmt_cleanup(struct sock *sk)
net/bluetooth/mgmt.c
1080
static int send_settings_rsp(struct sock *sk, u16 opcode, struct hci_dev *hdev);
net/bluetooth/mgmt.c
1138
static void mgmt_init_hdev(struct sock *sk, struct hci_dev *hdev)
net/bluetooth/mgmt.c
1160
static int read_controller_info(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
1214
static int read_ext_controller_info(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
1254
static int ext_info_changed(struct hci_dev *hdev, struct sock *skip)
net/bluetooth/mgmt.c
1270
static int send_settings_rsp(struct sock *sk, u16 opcode, struct hci_dev *hdev)
net/bluetooth/mgmt.c
1278
void mgmt_advertising_added(struct sock *sk, struct hci_dev *hdev, u8 instance)
net/bluetooth/mgmt.c
1287
void mgmt_advertising_removed(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
1330
static int new_settings(struct hci_dev *hdev, struct sock *skip)
net/bluetooth/mgmt.c
1396
static int set_powered(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt.c
1461
struct sock *sk;
net/bluetooth/mgmt.c
1578
static int set_discoverable(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt.c
1740
struct sock *sk, u8 val)
net/bluetooth/mgmt.c
1778
static int set_connectable(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt.c
1838
static int set_bondable(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt.c
1876
static int set_link_security(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt.c
2020
static int set_ssp(struct sock *sk, struct hci_dev *hdev, void *data, u16 len)
net/bluetooth/mgmt.c
2095
static int set_hs(struct sock *sk, struct hci_dev *hdev, void *data, u16 len)
net/bluetooth/mgmt.c
2190
struct sock *sk;
net/bluetooth/mgmt.c
2247
static int set_mesh(struct sock *sk, struct hci_dev *hdev, void *data, u16 len)
net/bluetooth/mgmt.c
2388
static int mesh_features(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
2442
static int mesh_send_cancel(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
2476
static int mesh_send(struct sock *sk, struct hci_dev *hdev, void *data, u16 len)
net/bluetooth/mgmt.c
2545
static int set_le(struct sock *sk, struct hci_dev *hdev, void *data, u16 len)
net/bluetooth/mgmt.c
2662
static int mgmt_hci_cmd_sync(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
2758
static int add_uuid(struct sock *sk, struct hci_dev *hdev, void *data, u16 len)
net/bluetooth/mgmt.c
2833
static int remove_uuid(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt.c
2919
static int set_dev_class(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt.c
2974
static int load_link_keys(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt.c
3068
u8 addr_type, struct sock *skip_sk)
net/bluetooth/mgmt.c
3115
static int unpair_device(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt.c
3276
static int disconnect(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt.c
331
u16 len, int flag, struct sock *skip_sk)
net/bluetooth/mgmt.c
3344
static int get_connections(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt.c
338
struct sock *skip_sk)
net/bluetooth/mgmt.c
3398
static int send_pin_code_neg_reply(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
3419
static int pin_code_reply(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt.c
344
static int mgmt_event_skb(struct sk_buff *skb, struct sock *skip_sk)
net/bluetooth/mgmt.c
3481
static int set_io_capability(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt.c
3598
static int pair_device(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt.c
366
static int read_version(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt.c
3734
static int cancel_pair_device(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt.c
379
static int read_commands(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt.c
3791
static int user_pairing_resp(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
3862
static int pin_code_neg_reply(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
3874
static int user_confirm_reply(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt.c
3890
static int user_confirm_neg_reply(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
3902
static int user_passkey_reply(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt.c
3914
static int user_passkey_neg_reply(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
4011
static int set_local_name(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt.c
4079
static int set_appearance(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt.c
4114
static int get_phy_configuration(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
4135
int mgmt_phy_configuration_changed(struct hci_dev *hdev, struct sock *skip)
net/bluetooth/mgmt.c
4224
static int set_phy_configuration(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
431
static int read_index_list(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt.c
4353
static int set_blocked_keys(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt.c
4402
static int set_wideband_speech(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
4451
static int read_controller_cap(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
4556
static int read_exp_features_info(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
4649
bool enabled, struct sock *skip)
net/bluetooth/mgmt.c
4669
static int set_zero_key_func(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
4696
static int set_debug_func(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
4742
static int set_mgmt_mesh_func(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
4793
static int set_quality_report_func(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
4867
static int set_offload_codec_func(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
489
static int read_unconf_index_list(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
4925
static int set_le_simultaneous_roles_func(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
4984
static int set_iso_socket_func(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
5036
int (*set_func)(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
5055
static int set_exp_feature(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
5073
static int get_device_flags(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt.c
5124
static void device_flags_changed(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
5201
static int set_device_flags(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt.c
5285
static void mgmt_adv_monitor_added(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
5295
static void mgmt_adv_monitor_removed(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
5305
static int read_adv_mon_features(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
5411
static int __add_adv_patterns_monitor(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
547
static int read_ext_index_list(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
5514
static int add_adv_patterns_monitor(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
5551
static int add_adv_patterns_monitor_rssi(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
5630
static int remove_adv_monitor(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
5759
static int read_local_oob_data(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
5801
static int add_remote_oob_data(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
5909
static int remove_remote_oob_data(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
5998
static int start_discovery_internal(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
6069
static int start_discovery(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
6076
static int start_limited_discovery(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
6084
static int start_service_discovery(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
6221
static int stop_discovery(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt.c
6266
static int confirm_name(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt.c
6308
static int block_device(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt.c
6344
static int unblock_device(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt.c
6385
static int set_device_id(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt.c
643
static int new_options(struct hci_dev *hdev, struct sock *skip)
net/bluetooth/mgmt.c
651
static int send_options_rsp(struct sock *sk, u16 opcode, struct hci_dev *hdev)
net/bluetooth/mgmt.c
6524
static int set_advertising(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt.c
659
static int read_config_info(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
6609
static int set_static_address(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
6653
static int set_scan_params(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
6735
static int set_fast_connectable(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
6832
static int set_bredr(struct sock *sk, struct hci_dev *hdev, void *data, u16 len)
net/bluetooth/mgmt.c
6982
static int set_secure_conn(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
7063
static int set_debug_keys(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
7110
static int set_privacy(struct sock *sk, struct hci_dev *hdev, void *cp_data,
net/bluetooth/mgmt.c
7183
static int load_irks(struct sock *sk, struct hci_dev *hdev, void *cp_data,
net/bluetooth/mgmt.c
7276
static int load_long_term_keys(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
7436
static int get_conn_info(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt.c
7580
static int get_clock_info(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt.c
7644
static void device_added(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
7684
static int add_device(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
7796
static void device_removed(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
7812
static int remove_device(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
7948
static int load_conn_param(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt.c
8067
static int set_external_config(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
8123
static int set_public_address(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
8295
static int read_local_ssp_oob_req(struct hci_dev *hdev, struct sock *sk,
net/bluetooth/mgmt.c
8317
static int read_local_oob_ext_data(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
8515
static int read_adv_features(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
8689
static void add_adv_complete(struct hci_dev *hdev, struct sock *sk, u8 instance,
net/bluetooth/mgmt.c
8751
static int add_advertising(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
8944
static int add_ext_adv_params(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
9103
static int add_ext_adv_data(struct sock *sk, struct hci_dev *hdev, void *data,
net/bluetooth/mgmt.c
9260
static int remove_advertising(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
9308
static int get_adv_size_info(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt.c
9847
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
112
void *data, u16 data_len, int flag, struct sock *skip_sk)
net/bluetooth/mgmt_util.c
126
int mgmt_cmd_status(struct sock *sk, u16 index, u16 cmd, u8 status)
net/bluetooth/mgmt_util.c
169
int mgmt_cmd_complete(struct sock *sk, u16 index, u16 cmd, u8 status,
net/bluetooth/mgmt_util.c
263
struct mgmt_pending_cmd *mgmt_pending_new(struct sock *sk, u16 opcode,
net/bluetooth/mgmt_util.c
290
struct mgmt_pending_cmd *mgmt_pending_add(struct sock *sk, u16 opcode,
net/bluetooth/mgmt_util.c
371
void *data, struct sock *sk)
net/bluetooth/mgmt_util.c
381
struct mgmt_mesh_tx *mgmt_mesh_next(struct hci_dev *hdev, struct sock *sk)
net/bluetooth/mgmt_util.c
411
struct mgmt_mesh_tx *mgmt_mesh_add(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/mgmt_util.c
76
struct sock *skip_sk)
net/bluetooth/mgmt_util.h
27
struct sock *sk;
net/bluetooth/mgmt_util.h
39
struct sock *sk;
net/bluetooth/mgmt_util.h
48
struct sock *skip_sk);
net/bluetooth/mgmt_util.h
50
void *data, u16 data_len, int flag, struct sock *skip_sk);
net/bluetooth/mgmt_util.h
51
int mgmt_cmd_status(struct sock *sk, u16 index, u16 cmd, u8 status);
net/bluetooth/mgmt_util.h
52
int mgmt_cmd_complete(struct sock *sk, u16 index, u16 cmd, u8 status,
net/bluetooth/mgmt_util.h
60
struct mgmt_pending_cmd *mgmt_pending_add(struct sock *sk, u16 opcode,
net/bluetooth/mgmt_util.h
63
struct mgmt_pending_cmd *mgmt_pending_new(struct sock *sk, u16 opcode,
net/bluetooth/mgmt_util.h
73
void *data, struct sock *sk);
net/bluetooth/mgmt_util.h
75
struct mgmt_mesh_tx *mgmt_mesh_next(struct hci_dev *hdev, struct sock *sk);
net/bluetooth/mgmt_util.h
76
struct mgmt_mesh_tx *mgmt_mesh_add(struct sock *sk, struct hci_dev *hdev,
net/bluetooth/rfcomm/core.c
1134
struct socket *sock = s->sock;
net/bluetooth/rfcomm/core.c
1161
return kernel_sendmsg(sock, &msg, iv, 3, 6 + len);
net/bluetooth/rfcomm/core.c
1322
struct sock *sk = d->session->sock->sk;
net/bluetooth/rfcomm/core.c
183
static void rfcomm_l2state_change(struct sock *sk)
net/bluetooth/rfcomm/core.c
189
static void rfcomm_l2data_ready(struct sock *sk)
net/bluetooth/rfcomm/core.c
1935
struct socket *sock = s->sock;
net/bluetooth/rfcomm/core.c
1936
struct sock *sk = sock->sk;
net/bluetooth/rfcomm/core.c
1961
struct socket *sock = s->sock, *nsock;
net/bluetooth/rfcomm/core.c
1967
if (list_empty(&bt_sk(sock->sk)->accept_q))
net/bluetooth/rfcomm/core.c
197
static int rfcomm_l2sock_create(struct socket **sock)
net/bluetooth/rfcomm/core.c
1972
err = kernel_accept(sock, &nsock, O_NONBLOCK);
net/bluetooth/rfcomm/core.c
1994
struct sock *sk = s->sock->sk;
net/bluetooth/rfcomm/core.c
203
err = sock_create_kern(&init_net, PF_BLUETOOTH, SOCK_SEQPACKET, BTPROTO_L2CAP, sock);
net/bluetooth/rfcomm/core.c
205
struct sock *sk = (*sock)->sk;
net/bluetooth/rfcomm/core.c
2053
struct socket *sock;
net/bluetooth/rfcomm/core.c
2054
struct sock *sk;
net/bluetooth/rfcomm/core.c
2059
err = rfcomm_l2sock_create(&sock);
net/bluetooth/rfcomm/core.c
2071
err = kernel_bind(sock, (struct sockaddr_unsized *)&addr, sizeof(addr));
net/bluetooth/rfcomm/core.c
2078
sk = sock->sk;
net/bluetooth/rfcomm/core.c
2085
err = kernel_listen(sock, 10);
net/bluetooth/rfcomm/core.c
2092
s = rfcomm_session_add(sock, BT_LISTEN);
net/bluetooth/rfcomm/core.c
2100
sock_release(sock);
net/bluetooth/rfcomm/core.c
214
struct sock *sk = d->session->sock->sk;
net/bluetooth/rfcomm/core.c
2194
struct l2cap_chan *chan = l2cap_pi(s->sock->sk)->chan;
net/bluetooth/rfcomm/core.c
681
static struct rfcomm_session *rfcomm_session_add(struct socket *sock, int state)
net/bluetooth/rfcomm/core.c
688
BT_DBG("session %p sock %p", s, sock);
net/bluetooth/rfcomm/core.c
694
s->sock = sock;
net/bluetooth/rfcomm/core.c
721
sock_release(s->sock);
net/bluetooth/rfcomm/core.c
735
chan = l2cap_pi(s->sock->sk)->chan;
net/bluetooth/rfcomm/core.c
770
struct socket *sock;
net/bluetooth/rfcomm/core.c
771
struct sock *sk;
net/bluetooth/rfcomm/core.c
775
*err = rfcomm_l2sock_create(&sock);
net/bluetooth/rfcomm/core.c
784
*err = kernel_bind(sock, (struct sockaddr_unsized *)&addr, sizeof(addr));
net/bluetooth/rfcomm/core.c
789
sk = sock->sk;
net/bluetooth/rfcomm/core.c
798
s = rfcomm_session_add(sock, BT_BOUND);
net/bluetooth/rfcomm/core.c
811
*err = kernel_connect(sock, (struct sockaddr_unsized *)&addr, sizeof(addr), O_NONBLOCK);
net/bluetooth/rfcomm/core.c
818
sock_release(sock);
net/bluetooth/rfcomm/core.c
824
struct l2cap_chan *chan = l2cap_pi(s->sock->sk)->chan;
net/bluetooth/rfcomm/core.c
841
return kernel_sendmsg(s->sock, &msg, &iv, 1, len);
net/bluetooth/rfcomm/sock.c
106
static struct sock *__rfcomm_get_listen_sock_by_addr(u8 channel, bdaddr_t *src)
net/bluetooth/rfcomm/sock.c
108
struct sock *sk = NULL;
net/bluetooth/rfcomm/sock.c
127
static struct sock *rfcomm_get_sock_by_channel(int state, u8 channel, bdaddr_t *src)
net/bluetooth/rfcomm/sock.c
129
struct sock *sk = NULL, *sk1 = NULL;
net/bluetooth/rfcomm/sock.c
153
static void rfcomm_sock_destruct(struct sock *sk)
net/bluetooth/rfcomm/sock.c
173
static void rfcomm_sock_cleanup_listen(struct sock *parent)
net/bluetooth/rfcomm/sock.c
175
struct sock *sk;
net/bluetooth/rfcomm/sock.c
192
static void rfcomm_sock_kill(struct sock *sk)
net/bluetooth/rfcomm/sock.c
205
static void __rfcomm_sock_close(struct sock *sk)
net/bluetooth/rfcomm/sock.c
232
static void rfcomm_sock_close(struct sock *sk)
net/bluetooth/rfcomm/sock.c
239
static void rfcomm_sock_init(struct sock *sk, struct sock *parent)
net/bluetooth/rfcomm/sock.c
271
static struct sock *rfcomm_sock_alloc(struct net *net, struct socket *sock,
net/bluetooth/rfcomm/sock.c
275
struct sock *sk;
net/bluetooth/rfcomm/sock.c
281
sk = bt_sock_alloc(net, sock, &rfcomm_proto, proto, prio, kern);
net/bluetooth/rfcomm/sock.c
305
static int rfcomm_sock_create(struct net *net, struct socket *sock,
net/bluetooth/rfcomm/sock.c
308
struct sock *sk;
net/bluetooth/rfcomm/sock.c
310
BT_DBG("sock %p", sock);
net/bluetooth/rfcomm/sock.c
312
sock->state = SS_UNCONNECTED;
net/bluetooth/rfcomm/sock.c
314
if (sock->type != SOCK_STREAM && sock->type != SOCK_RAW)
net/bluetooth/rfcomm/sock.c
317
sock->ops = &rfcomm_sock_ops;
net/bluetooth/rfcomm/sock.c
319
sk = rfcomm_sock_alloc(net, sock, protocol, GFP_ATOMIC, kern);
net/bluetooth/rfcomm/sock.c
327
static int rfcomm_sock_bind(struct socket *sock, struct sockaddr_unsized *addr, int addr_len)
net/bluetooth/rfcomm/sock.c
330
struct sock *sk = sock->sk;
net/bluetooth/rfcomm/sock.c
374
static int rfcomm_sock_connect(struct socket *sock, struct sockaddr_unsized *addr,
net/bluetooth/rfcomm/sock.c
378
struct sock *sk = sock->sk;
net/bluetooth/rfcomm/sock.c
423
static int rfcomm_sock_listen(struct socket *sock, int backlog)
net/bluetooth/rfcomm/sock.c
425
struct sock *sk = sock->sk;
net/bluetooth/rfcomm/sock.c
43
static void rfcomm_sock_close(struct sock *sk);
net/bluetooth/rfcomm/sock.c
44
static void rfcomm_sock_kill(struct sock *sk);
net/bluetooth/rfcomm/sock.c
472
static int rfcomm_sock_accept(struct socket *sock, struct socket *newsock,
net/bluetooth/rfcomm/sock.c
476
struct sock *sk = sock->sk, *nsk;
net/bluetooth/rfcomm/sock.c
52
struct sock *sk = d->owner;
net/bluetooth/rfcomm/sock.c
533
static int rfcomm_sock_getname(struct socket *sock, struct sockaddr *addr, int peer)
net/bluetooth/rfcomm/sock.c
536
struct sock *sk = sock->sk;
net/bluetooth/rfcomm/sock.c
538
BT_DBG("sock %p, sk %p", sock, sk);
net/bluetooth/rfcomm/sock.c
555
static int rfcomm_sock_sendmsg(struct socket *sock, struct msghdr *msg,
net/bluetooth/rfcomm/sock.c
558
struct sock *sk = sock->sk;
net/bluetooth/rfcomm/sock.c
572
BT_DBG("sock %p, sk %p", sock, sk);
net/bluetooth/rfcomm/sock.c
595
static int rfcomm_sock_recvmsg(struct socket *sock, struct msghdr *msg,
net/bluetooth/rfcomm/sock.c
598
struct sock *sk = sock->sk;
net/bluetooth/rfcomm/sock.c
607
len = bt_sock_stream_recvmsg(sock, msg, size, flags);
net/bluetooth/rfcomm/sock.c
620
static int rfcomm_sock_setsockopt_old(struct socket *sock, int optname,
net/bluetooth/rfcomm/sock.c
623
struct sock *sk = sock->sk;
net/bluetooth/rfcomm/sock.c
66
struct sock *sk = d->owner, *parent;
net/bluetooth/rfcomm/sock.c
661
static int rfcomm_sock_setsockopt(struct socket *sock, int level, int optname,
net/bluetooth/rfcomm/sock.c
664
struct sock *sk = sock->sk;
net/bluetooth/rfcomm/sock.c
672
return rfcomm_sock_setsockopt_old(sock, optname, optval, optlen);
net/bluetooth/rfcomm/sock.c
726
static int rfcomm_sock_getsockopt_old(struct socket *sock, int optname, char __user *optval, int __user *optlen)
net/bluetooth/rfcomm/sock.c
728
struct sock *sk = sock->sk;
net/bluetooth/rfcomm/sock.c
729
struct sock *l2cap_sk;
net/bluetooth/rfcomm/sock.c
780
l2cap_sk = rfcomm_pi(sk)->dlc->session->sock->sk;
net/bluetooth/rfcomm/sock.c
802
static int rfcomm_sock_getsockopt(struct socket *sock, int level, int optname, char __user *optval, int __user *optlen)
net/bluetooth/rfcomm/sock.c
804
struct sock *sk = sock->sk;
net/bluetooth/rfcomm/sock.c
812
return rfcomm_sock_getsockopt_old(sock, optname, optval, optlen);
net/bluetooth/rfcomm/sock.c
859
static int rfcomm_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
net/bluetooth/rfcomm/sock.c
861
struct sock *sk __maybe_unused = sock->sk;
net/bluetooth/rfcomm/sock.c
866
err = bt_sock_ioctl(sock, cmd, arg);
net/bluetooth/rfcomm/sock.c
880
static int rfcomm_sock_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
net/bluetooth/rfcomm/sock.c
882
return rfcomm_sock_ioctl(sock, cmd, (unsigned long)compat_ptr(arg));
net/bluetooth/rfcomm/sock.c
886
static int rfcomm_sock_shutdown(struct socket *sock, int how)
net/bluetooth/rfcomm/sock.c
888
struct sock *sk = sock->sk;
net/bluetooth/rfcomm/sock.c
891
BT_DBG("sock %p, sk %p", sock, sk);
net/bluetooth/rfcomm/sock.c
912
static int rfcomm_sock_release(struct socket *sock)
net/bluetooth/rfcomm/sock.c
914
struct sock *sk = sock->sk;
net/bluetooth/rfcomm/sock.c
917
BT_DBG("sock %p, sk %p", sock, sk);
net/bluetooth/rfcomm/sock.c
922
err = rfcomm_sock_shutdown(sock, 2);
net/bluetooth/rfcomm/sock.c
935
struct sock *sk, *parent;
net/bluetooth/rfcomm/sock.c
985
struct sock *sk;
net/bluetooth/rfcomm/tty.c
280
struct sock *sk = dlc->owner;
net/bluetooth/rfcomm/tty.c
391
static int __rfcomm_create_dev(struct sock *sk, void __user *arg)
net/bluetooth/rfcomm/tty.c
475
static int rfcomm_create_dev(struct sock *sk, void __user *arg)
net/bluetooth/rfcomm/tty.c
573
int rfcomm_dev_ioctl(struct sock *sk, unsigned int cmd, void __user *arg)
net/bluetooth/sco.c
1067
static int sco_sock_getsockopt_old(struct socket *sock, int optname,
net/bluetooth/sco.c
1070
struct sock *sk = sock->sk;
net/bluetooth/sco.c
1129
static int sco_sock_getsockopt(struct socket *sock, int level, int optname,
net/bluetooth/sco.c
1132
struct sock *sk = sock->sk;
net/bluetooth/sco.c
1146
return sco_sock_getsockopt_old(sock, optname, optval, optlen);
net/bluetooth/sco.c
131
static struct sock *sco_sock_hold(struct sco_conn *conn)
net/bluetooth/sco.c
1311
static int sco_sock_shutdown(struct socket *sock, int how)
net/bluetooth/sco.c
1313
struct sock *sk = sock->sk;
net/bluetooth/sco.c
1316
BT_DBG("sock %p, sk %p", sock, sk);
net/bluetooth/sco.c
1341
static int sco_sock_release(struct socket *sock)
net/bluetooth/sco.c
1343
struct sock *sk = sock->sk;
net/bluetooth/sco.c
1346
BT_DBG("sock %p, sk %p", sock, sk);
net/bluetooth/sco.c
1367
struct sock *parent;
net/bluetooth/sco.c
1368
struct sock *sk = conn->sk;
net/bluetooth/sco.c
1428
struct sock *sk;
net/bluetooth/sco.c
145
struct sock *sk;
net/bluetooth/sco.c
1525
struct sock *sk;
net/bluetooth/sco.c
173
static void sco_sock_set_timer(struct sock *sk, long timeout)
net/bluetooth/sco.c
183
static void sco_sock_clear_timer(struct sock *sk)
net/bluetooth/sco.c
231
static void sco_chan_del(struct sock *sk, int err)
net/bluetooth/sco.c
257
struct sock *sk;
net/bluetooth/sco.c
283
static void __sco_chan_add(struct sco_conn *conn, struct sock *sk,
net/bluetooth/sco.c
284
struct sock *parent)
net/bluetooth/sco.c
295
static int sco_chan_add(struct sco_conn *conn, struct sock *sk,
net/bluetooth/sco.c
296
struct sock *parent)
net/bluetooth/sco.c
310
static int sco_connect(struct sock *sk)
net/bluetooth/sco.c
392
static int sco_send_frame(struct sock *sk, struct sk_buff *skb,
net/bluetooth/sco.c
412
struct sock *sk;
net/bluetooth/sco.c
438
static struct sock *__sco_get_sock_listen_by_addr(bdaddr_t *ba)
net/bluetooth/sco.c
440
struct sock *sk;
net/bluetooth/sco.c
456
static struct sock *sco_get_sock_listen(bdaddr_t *src)
net/bluetooth/sco.c
458
struct sock *sk = NULL, *sk1 = NULL;
net/bluetooth/sco.c
480
static void sco_sock_destruct(struct sock *sk)
net/bluetooth/sco.c
49
struct sock *sk;
net/bluetooth/sco.c
491
static void sco_sock_cleanup_listen(struct sock *parent)
net/bluetooth/sco.c
493
struct sock *sk;
net/bluetooth/sco.c
510
static void sco_sock_kill(struct sock *sk)
net/bluetooth/sco.c
530
static void __sco_sock_close(struct sock *sk)
net/bluetooth/sco.c
555
static void sco_sock_close(struct sock *sk)
net/bluetooth/sco.c
563
static void sco_sock_init(struct sock *sk, struct sock *parent)
net/bluetooth/sco.c
580
static struct sock *sco_sock_alloc(struct net *net, struct socket *sock,
net/bluetooth/sco.c
583
struct sock *sk;
net/bluetooth/sco.c
585
sk = bt_sock_alloc(net, sock, &sco_proto, proto, prio, kern);
net/bluetooth/sco.c
60
static void sco_sock_close(struct sock *sk);
net/bluetooth/sco.c
602
static int sco_sock_create(struct net *net, struct socket *sock, int protocol,
net/bluetooth/sco.c
605
struct sock *sk;
net/bluetooth/sco.c
607
BT_DBG("sock %p", sock);
net/bluetooth/sco.c
609
sock->state = SS_UNCONNECTED;
net/bluetooth/sco.c
61
static void sco_sock_kill(struct sock *sk);
net/bluetooth/sco.c
611
if (sock->type != SOCK_SEQPACKET)
net/bluetooth/sco.c
614
sock->ops = &sco_sock_ops;
net/bluetooth/sco.c
616
sk = sco_sock_alloc(net, sock, protocol, GFP_ATOMIC, kern);
net/bluetooth/sco.c
624
static int sco_sock_bind(struct socket *sock, struct sockaddr_unsized *addr,
net/bluetooth/sco.c
628
struct sock *sk = sock->sk;
net/bluetooth/sco.c
658
static int sco_sock_connect(struct socket *sock, struct sockaddr_unsized *addr, int alen, int flags)
net/bluetooth/sco.c
661
struct sock *sk = sock->sk;
net/bluetooth/sco.c
699
static int sco_sock_listen(struct socket *sock, int backlog)
net/bluetooth/sco.c
701
struct sock *sk = sock->sk;
net/bluetooth/sco.c
739
static int sco_sock_accept(struct socket *sock, struct socket *newsock,
net/bluetooth/sco.c
743
struct sock *sk = sock->sk, *ch;
net/bluetooth/sco.c
794
static int sco_sock_getname(struct socket *sock, struct sockaddr *addr,
net/bluetooth/sco.c
798
struct sock *sk = sock->sk;
net/bluetooth/sco.c
800
BT_DBG("sock %p, sk %p", sock, sk);
net/bluetooth/sco.c
812
static int sco_sock_sendmsg(struct socket *sock, struct msghdr *msg,
net/bluetooth/sco.c
815
struct sock *sk = sock->sk;
net/bluetooth/sco.c
820
BT_DBG("sock %p, sk %p", sock, sk);
net/bluetooth/sco.c
904
static int sco_sock_recvmsg(struct socket *sock, struct msghdr *msg,
net/bluetooth/sco.c
907
struct sock *sk = sock->sk;
net/bluetooth/sco.c
927
return bt_sock_recvmsg(sock, msg, len, flags);
net/bluetooth/sco.c
930
static int sco_sock_setsockopt(struct socket *sock, int level, int optname,
net/bluetooth/sco.c
933
struct sock *sk = sock->sk;
net/bpf/test_run.c
982
.obj_size = sizeof(struct sock),
net/bpf/test_run.c
997
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
1126
struct sock *sk, struct sk_buff *skb,
net/bridge/br_netfilter_hooks.c
1129
int (*okfn)(struct net *, struct sock *,
net/bridge/br_netfilter_hooks.c
275
int br_nf_pre_routing_finish_bridge(struct net *net, struct sock *sk, struct sk_buff *skb)
net/bridge/br_netfilter_hooks.c
371
static int br_nf_pre_routing_finish(struct net *net, struct sock *sk, struct sk_buff *skb)
net/bridge/br_netfilter_hooks.c
634
static int br_nf_forward_finish(struct net *net, struct sock *sk, struct sk_buff *skb)
net/bridge/br_netfilter_hooks.c
780
static int br_nf_push_frag_xmit(struct net *net, struct sock *sk, struct sk_buff *skb)
net/bridge/br_netfilter_hooks.c
804
br_nf_ip_fragment(struct net *net, struct sock *sk, struct sk_buff *skb,
net/bridge/br_netfilter_hooks.c
805
int (*output)(struct net *, struct sock *, struct sk_buff *))
net/bridge/br_netfilter_hooks.c
830
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
893
int br_dev_queue_push_xmit(struct net *net, struct sock *sk, struct sk_buff *skb);
net/bridge/br_private.h
896
int br_forward_finish(struct net *net, struct sock *sk, struct sk_buff *skb);
net/bridge/br_private.h
924
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
2372
static int compat_do_ebt_get_ctl(struct sock *sk, int cmd,
net/bridge/netfilter/ebtables.c
2445
static int do_ebt_get_ctl(struct sock *sk, int cmd, void __user *user, int *len)
net/bridge/netfilter/ebtables.c
2511
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/caif/caif_socket.c
1002
static void caif_sock_destructor(struct sock *sk)
net/caif/caif_socket.c
1017
static int caif_create(struct net *net, struct socket *sock, int protocol,
net/caif/caif_socket.c
1020
struct sock *sk = NULL;
net/caif/caif_socket.c
1037
if (sock->type == SOCK_SEQPACKET)
net/caif/caif_socket.c
1038
sock->ops = &caif_seqpacket_ops;
net/caif/caif_socket.c
1039
else if (sock->type == SOCK_STREAM)
net/caif/caif_socket.c
1040
sock->ops = &caif_stream_ops;
net/caif/caif_socket.c
1079
sock_init_data(sock, sk);
net/caif/caif_socket.c
108
static void caif_flow_ctrl(struct sock *sk, int mode)
net/caif/caif_socket.c
120
static void caif_queue_rcv_skb(struct sock *sk, struct sk_buff *skb)
net/caif/caif_socket.c
250
static void caif_check_flow_release(struct sock *sk)
net/caif/caif_socket.c
267
static int caif_seqpkt_recvmsg(struct socket *sock, struct msghdr *m,
net/caif/caif_socket.c
271
struct sock *sk = sock->sk;
net/caif/caif_socket.c
305
static long caif_stream_data_wait(struct sock *sk, long timeo)
net/caif/caif_socket.c
343
static int caif_stream_recvmsg(struct socket *sock, struct msghdr *msg,
net/caif/caif_socket.c
346
struct sock *sk = sock->sk;
net/caif/caif_socket.c
463
struct sock *sk = &cf_sk->sk;
net/caif/caif_socket.c
49
struct sock sk; /* must be first member */
net/caif/caif_socket.c
514
static int caif_seqpkt_sendmsg(struct socket *sock, struct msghdr *msg,
net/caif/caif_socket.c
517
struct sock *sk = sock->sk;
net/caif/caif_socket.c
586
static int caif_stream_sendmsg(struct socket *sock, struct msghdr *msg,
net/caif/caif_socket.c
589
struct sock *sk = sock->sk;
net/caif/caif_socket.c
665
static int setsockopt(struct socket *sock, int lvl, int opt, sockptr_t ov,
net/caif/caif_socket.c
668
struct sock *sk = sock->sk;
net/caif/caif_socket.c
737
static int caif_connect(struct socket *sock, struct sockaddr_unsized *uaddr,
net/caif/caif_socket.c
740
struct sock *sk = sock->sk;
net/caif/caif_socket.c
758
switch (sock->state) {
net/caif/caif_socket.c
766
sock->state = SS_CONNECTED;
net/caif/caif_socket.c
797
sock->state = SS_UNCONNECTED;
net/caif/caif_socket.c
808
sock->state = SS_CONNECTING;
net/caif/caif_socket.c
874
sock->state = SS_UNCONNECTED;
net/caif/caif_socket.c
88
static void caif_read_lock(struct sock *sk)
net/caif/caif_socket.c
880
sock->state = SS_CONNECTED;
net/caif/caif_socket.c
891
static int caif_release(struct socket *sock)
net/caif/caif_socket.c
893
struct sock *sk = sock->sk;
net/caif/caif_socket.c
909
sock->sk = NULL;
net/caif/caif_socket.c
931
struct socket *sock, poll_table *wait)
net/caif/caif_socket.c
933
struct sock *sk = sock->sk;
net/caif/caif_socket.c
937
sock_poll_wait(file, sock, wait);
net/caif/caif_socket.c
95
static void caif_read_unlock(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
1116
int ifindex, struct sock *sk)
net/can/bcm.c
125
struct sock *sk;
net/can/bcm.c
131
struct sock sk;
net/can/bcm.c
1324
static int bcm_tx_send(struct msghdr *msg, int ifindex, struct sock *sk,
net/can/bcm.c
1373
static int bcm_sendmsg(struct socket *sock, struct msghdr *msg, size_t size)
net/can/bcm.c
1375
struct sock *sk = sock->sk;
net/can/bcm.c
1491
struct sock *sk = &bo->sk;
net/can/bcm.c
156
static inline struct bcm_sock *bcm_sk(const struct sock *sk)
net/can/bcm.c
1565
static int bcm_init(struct sock *sk)
net/can/bcm.c
1588
static int bcm_release(struct socket *sock)
net/can/bcm.c
1590
struct sock *sk = sock->sk;
net/can/bcm.c
1662
sock->sk = NULL;
net/can/bcm.c
1671
static int bcm_connect(struct socket *sock, struct sockaddr_unsized *uaddr, int len,
net/can/bcm.c
1675
struct sock *sk = sock->sk;
net/can/bcm.c
1735
static int bcm_recvmsg(struct socket *sock, struct msghdr *msg, size_t size,
net/can/bcm.c
1738
struct sock *sk = sock->sk;
net/can/bcm.c
1772
static int bcm_sock_no_ioctlcmd(struct socket *sock, unsigned int cmd,
net/can/bcm.c
212
struct sock *sk = (struct sock *)pde_data(m->file->f_inode);
net/can/bcm.c
364
struct sock *sk = op->sk;
net/can/bcm.c
929
int ifindex, struct sock *sk)
net/can/isotp.c
1147
static int isotp_recvmsg(struct socket *sock, struct msghdr *msg, size_t size,
net/can/isotp.c
1150
struct sock *sk = sock->sk;
net/can/isotp.c
1191
static int isotp_release(struct socket *sock)
net/can/isotp.c
1193
struct sock *sk = sock->sk;
net/can/isotp.c
1252
sock->sk = NULL;
net/can/isotp.c
1261
static int isotp_bind(struct socket *sock, struct sockaddr_unsized *uaddr, int len)
net/can/isotp.c
1264
struct sock *sk = sock->sk;
net/can/isotp.c
1369
static int isotp_getname(struct socket *sock, struct sockaddr *uaddr, int peer)
net/can/isotp.c
1372
struct sock *sk = sock->sk;
net/can/isotp.c
1387
static int isotp_setsockopt_locked(struct socket *sock, int level, int optname,
net/can/isotp.c
1390
struct sock *sk = sock->sk;
net/can/isotp.c
1485
static int isotp_setsockopt(struct socket *sock, int level, int optname,
net/can/isotp.c
1489
struct sock *sk = sock->sk;
net/can/isotp.c
1496
ret = isotp_setsockopt_locked(sock, level, optname, optval, optlen);
net/can/isotp.c
1501
static int isotp_getsockopt(struct socket *sock, int level, int optname,
net/can/isotp.c
1504
struct sock *sk = sock->sk;
net/can/isotp.c
152
struct sock sk;
net/can/isotp.c
1556
struct sock *sk = &so->sk;
net/can/isotp.c
1619
static void isotp_sock_destruct(struct sock *sk)
net/can/isotp.c
1634
static int isotp_init(struct sock *sk)
net/can/isotp.c
1684
static __poll_t isotp_poll(struct file *file, struct socket *sock, poll_table *wait)
net/can/isotp.c
1686
struct sock *sk = sock->sk;
net/can/isotp.c
1689
__poll_t mask = datagram_poll(file, sock, wait);
net/can/isotp.c
1699
static int isotp_sock_no_ioctlcmd(struct socket *sock, unsigned int cmd,
net/can/isotp.c
177
static inline struct isotp_sock *isotp_sk(const struct sock *sk)
net/can/isotp.c
197
struct sock *sk = &so->sk;
net/can/isotp.c
214
static int isotp_send_fc(struct sock *sk, int ae, u8 flowstatus)
net/can/isotp.c
283
static void isotp_rcv_skb(struct sk_buff *skb, struct sock *sk)
net/can/isotp.c
370
struct sock *sk = &so->sk;
net/can/isotp.c
450
static int isotp_rcv_sf(struct sock *sk, struct canfd_frame *cf, int pcilen,
net/can/isotp.c
483
static int isotp_rcv_ff(struct sock *sk, struct canfd_frame *cf, int ae)
net/can/isotp.c
556
static int isotp_rcv_cf(struct sock *sk, struct canfd_frame *cf, int ae,
net/can/isotp.c
652
struct sock *sk = (struct sock *)data;
net/can/isotp.c
769
struct sock *sk = &so->sk;
net/can/isotp.c
867
struct sock *sk = (struct sock *)data;
net/can/isotp.c
913
struct sock *sk = &so->sk;
net/can/isotp.c
949
static int isotp_sendmsg(struct socket *sock, struct msghdr *msg, size_t size)
net/can/isotp.c
951
struct sock *sk = sock->sk;
net/can/j1939/j1939-priv.h
187
void j1939_sk_send_loop_abort(struct sock *sk, int err);
net/can/j1939/j1939-priv.h
216
int j1939_cancel_active_session(struct j1939_priv *priv, struct sock *sk);
net/can/j1939/j1939-priv.h
220
void j1939_sock_pending_del(struct sock *sk);
net/can/j1939/j1939-priv.h
236
struct sock *sk;
net/can/j1939/j1939-priv.h
293
struct sock sk; /* must be first to skip with memset */
net/can/j1939/j1939-priv.h
322
static inline struct j1939_sock *j1939_sk(const struct sock *sk)
net/can/j1939/socket.c
1000
static void __j1939_sk_errqueue(struct j1939_session *session, struct sock *sk,
net/can/j1939/socket.c
1122
void j1939_sk_send_loop_abort(struct sock *sk, int err)
net/can/j1939/socket.c
1134
static int j1939_sk_send_loop(struct j1939_priv *priv, struct sock *sk,
net/can/j1939/socket.c
1228
static int j1939_sk_sendmsg(struct socket *sock, struct msghdr *msg,
net/can/j1939/socket.c
1231
struct sock *sk = sock->sk;
net/can/j1939/socket.c
1237
lock_sock(sock->sk);
net/can/j1939/socket.c
1297
release_sock(sock->sk);
net/can/j1939/socket.c
1320
struct sock *sk;
net/can/j1939/socket.c
1367
static int j1939_sk_no_ioctlcmd(struct socket *sock, unsigned int cmd,
net/can/j1939/socket.c
367
static void j1939_sk_sock_destruct(struct sock *sk)
net/can/j1939/socket.c
395
static int j1939_sk_init(struct sock *sk)
net/can/j1939/socket.c
444
static int j1939_sk_bind(struct socket *sock, struct sockaddr_unsized *uaddr, int len)
net/can/j1939/socket.c
447
struct j1939_sock *jsk = j1939_sk(sock->sk);
net/can/j1939/socket.c
449
struct sock *sk;
net/can/j1939/socket.c
457
lock_sock(sock->sk);
net/can/j1939/socket.c
460
sk = sock->sk;
net/can/j1939/socket.c
540
release_sock(sock->sk);
net/can/j1939/socket.c
545
static int j1939_sk_connect(struct socket *sock, struct sockaddr_unsized *uaddr,
net/can/j1939/socket.c
549
struct j1939_sock *jsk = j1939_sk(sock->sk);
net/can/j1939/socket.c
556
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
587
release_sock(sock->sk);
net/can/j1939/socket.c
612
static int j1939_sk_getname(struct socket *sock, struct sockaddr *uaddr,
net/can/j1939/socket.c
616
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
636
static int j1939_sk_release(struct socket *sock)
net/can/j1939/socket.c
638
struct sock *sk = sock->sk;
net/can/j1939/socket.c
666
sock->sk = NULL;
net/can/j1939/socket.c
693
static int j1939_sk_setsockopt(struct socket *sock, int level, int optname,
net/can/j1939/socket.c
696
struct sock *sk = sock->sk;
net/can/j1939/socket.c
70
void j1939_sock_pending_del(struct sock *sk)
net/can/j1939/socket.c
768
static int j1939_sk_getsockopt(struct socket *sock, int level, int optname,
net/can/j1939/socket.c
771
struct sock *sk = sock->sk;
net/can/j1939/socket.c
819
static int j1939_sk_recvmsg(struct socket *sock, struct msghdr *msg,
net/can/j1939/socket.c
822
struct sock *sk = sock->sk;
net/can/j1939/socket.c
831
return sock_recv_errqueue(sock->sk, msg, size, SOL_CAN_J1939,
net/can/j1939/socket.c
881
struct sock *sk,
net/can/j1939/transport.c
2223
int j1939_cancel_active_session(struct j1939_priv *priv, struct sock *sk)
net/can/raw.c
1017
static int raw_recvmsg(struct socket *sock, struct msghdr *msg, size_t size,
net/can/raw.c
1020
struct sock *sk = sock->sk;
net/can/raw.c
1059
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
215
struct sock *sk, struct can_filter *filter,
net/can/raw.c
239
struct sock *sk, can_err_mask_t err_mask)
net/can/raw.c
251
struct sock *sk, struct can_filter *filter,
net/can/raw.c
263
struct sock *sk,
net/can/raw.c
274
struct sock *sk)
net/can/raw.c
283
struct sock *sk)
net/can/raw.c
302
struct sock *sk = &ro->sk;
net/can/raw.c
364
static int raw_init(struct sock *sk)
net/can/raw.c
398
static int raw_release(struct socket *sock)
net/can/raw.c
400
struct sock *sk = sock->sk;
net/can/raw.c
442
sock->sk = NULL;
net/can/raw.c
453
static int raw_bind(struct socket *sock, struct sockaddr_unsized *uaddr, int len)
net/can/raw.c
456
struct sock *sk = sock->sk;
net/can/raw.c
538
static int raw_getname(struct socket *sock, struct sockaddr *uaddr,
net/can/raw.c
542
struct sock *sk = sock->sk;
net/can/raw.c
555
static int raw_setsockopt(struct socket *sock, int level, int optname,
net/can/raw.c
558
struct sock *sk = sock->sk;
net/can/raw.c
762
static int raw_getsockopt(struct socket *sock, int level, int optname,
net/can/raw.c
765
struct sock *sk = sock->sk;
net/can/raw.c
85
struct sock sk;
net/can/raw.c
916
static int raw_sendmsg(struct socket *sock, struct msghdr *msg, size_t size)
net/can/raw.c
918
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
116
ret = do_recvmsg(con->sock, &con->v2.in_iter);
net/ceph/messenger_v2.c
122
static int do_sendmsg(struct socket *sock, struct iov_iter *it)
net/ceph/messenger_v2.c
129
ret = sock_sendmsg(sock, &msg);
net/ceph/messenger_v2.c
143
static int do_try_sendpage(struct socket *sock, struct iov_iter *it)
net/ceph/messenger_v2.c
174
ret = sock_sendmsg(sock, &msg);
net/ceph/messenger_v2.c
203
ret = do_try_sendpage(con->sock, &con->v2.out_iter);
net/ceph/messenger_v2.c
205
ret = do_sendmsg(con->sock, &con->v2.out_iter);
net/ceph/messenger_v2.c
3409
tcp_sock_set_cork(con->sock->sk, true);
net/ceph/messenger_v2.c
3423
tcp_sock_set_cork(con->sock->sk, false);
net/ceph/messenger_v2.c
80
static int do_recvmsg(struct socket *sock, struct iov_iter *it)
net/ceph/messenger_v2.c
87
ret = sock_recvmsg(sock, &msg, msg.msg_flags);
net/compat.c
139
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
231
BPF_CALL_5(bpf_sk_storage_get, struct bpf_map *, map, struct sock *, sk,
net/core/bpf_sk_storage.c
265
BPF_CALL_2(bpf_sk_storage_delete, struct bpf_map *, map, struct sock *, sk)
net/core/bpf_sk_storage.c
285
struct sock *sk = (struct sock *)owner;
net/core/bpf_sk_storage.c
302
struct sock *sk = owner;
net/core/bpf_sk_storage.c
310
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
387
BPF_CALL_5(bpf_sk_storage_get_tracing, struct bpf_map *, map, struct sock *, sk,
net/core/bpf_sk_storage.c
399
struct sock *, sk)
net/core/bpf_sk_storage.c
47
void bpf_sk_storage_free(struct sock *sk)
net/core/bpf_sk_storage.c
573
static int bpf_sk_storage_diag_put_all(struct sock *sk, struct sk_buff *skb,
net/core/bpf_sk_storage.c
628
struct sock *sk, struct sk_buff *skb,
net/core/bpf_sk_storage.c
787
__bpf_md_ptr(struct sock *, sk);
net/core/bpf_sk_storage.c
792
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
2520
else if ((struct sock *)ptype->af_packet_priv == skb->sk)
net/core/dev.c
3966
struct sk_buff *(*sk_validate)(struct sock *sk, struct net_device *dev,
net/core/dev.c
3968
struct sock *sk = skb->sk;
net/core/dev.c
4303
const struct sock *sk;
net/core/dev.c
4330
int dev_loopback_xmit(struct net *net, struct sock *sk, struct sk_buff *skb)
net/core/dev.c
4615
struct sock *sk = skb->sk;
net/core/dev.c
4659
int sk_tx_queue_get(const struct sock *sk)
net/core/dev.c
4688
struct sock *sk = skb->sk;
net/core/dev.c
9414
struct sock *sk)
net/core/dev.c
9432
struct sock *sk)
net/core/devmem.c
366
struct net_devmem_dmabuf_binding *net_devmem_get_binding(struct sock *sk,
net/core/devmem.h
146
net_devmem_get_binding(struct sock *sk, unsigned int dmabuf_id);
net/core/devmem.h
218
net_devmem_get_binding(struct sock *sk, unsigned int dmabuf_id)
net/core/drop_monitor.c
113
struct sock *rx_sk);
net/core/drop_monitor.c
269
struct sock *rx_sk)
net/core/drop_monitor.c
496
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
10136
BUILD_BUG_ON(sizeof_field(struct sock, sk_bound_dev_if) != 4);
net/core/filter.c
10140
offsetof(struct sock, sk_bound_dev_if));
net/core/filter.c
10143
offsetof(struct sock, sk_bound_dev_if));
net/core/filter.c
10147
BUILD_BUG_ON(sizeof_field(struct sock, sk_mark) != 4);
net/core/filter.c
10151
offsetof(struct sock, sk_mark));
net/core/filter.c
10154
offsetof(struct sock, sk_mark));
net/core/filter.c
10158
BUILD_BUG_ON(sizeof_field(struct sock, sk_priority) != 4);
net/core/filter.c
10162
offsetof(struct sock, sk_priority));
net/core/filter.c
10165
offsetof(struct sock, sk_priority));
net/core/filter.c
10181
BPF_FIELD_SIZEOF(struct sock, sk_type),
net/core/filter.c
10183
bpf_target_off(struct sock, sk_type,
net/core/filter.c
10184
sizeof_field(struct sock, sk_type),
net/core/filter.c
10190
BPF_FIELD_SIZEOF(struct sock, sk_protocol),
net/core/filter.c
10192
bpf_target_off(struct sock, sk_protocol,
net/core/filter.c
10193
sizeof_field(struct sock, sk_protocol),
net/core/filter.c
10282
BPF_FIELD_SIZEOF(struct sock, sk_rx_queue_mapping),
net/core/filter.c
10284
bpf_target_off(struct sock, sk_rx_queue_mapping,
net/core/filter.c
10285
sizeof_field(struct sock,
net/core/filter.c
10499
struct sock, sk, sk_family);
net/core/filter.c
10504
struct sock, sk, sk_type);
net/core/filter.c
10509
struct sock, sk, sk_protocol);
net/core/filter.c
10849
struct sock, type);
net/core/filter.c
11356
int sk_detach_filter(struct sock *sk)
net/core/filter.c
11376
int sk_get_filter(struct sock *sk, sockptr_t optval, unsigned int len)
net/core/filter.c
11422
struct sock *sk, struct sk_buff *skb,
net/core/filter.c
11423
struct sock *migrating_sk,
net/core/filter.c
11436
struct sock *bpf_run_sk_reuseport(struct sock_reuseport *reuse, struct sock *sk,
net/core/filter.c
11438
struct sock *migrating_sk,
net/core/filter.c
11458
struct sock *selected_sk;
net/core/filter.c
11479
struct sock *sk = reuse_kern->sk;
net/core/filter.c
11633
struct sock, \
net/core/filter.c
11699
struct sock *, sk, u64, flags)
net/core/filter.c
11918
BPF_CALL_1(bpf_skc_to_tcp6_sock, struct sock *, sk)
net/core/filter.c
11939
BPF_CALL_1(bpf_skc_to_tcp_sock, struct sock *, sk)
net/core/filter.c
11955
BPF_CALL_1(bpf_skc_to_tcp_timewait_sock, struct sock *, sk)
net/core/filter.c
11984
BPF_CALL_1(bpf_skc_to_tcp_request_sock, struct sock *, sk)
net/core/filter.c
12007
BPF_CALL_1(bpf_skc_to_udp6_sock, struct sock *, sk)
net/core/filter.c
12028
BPF_CALL_1(bpf_skc_to_unix_sock, struct sock *, sk)
net/core/filter.c
12048
BPF_CALL_1(bpf_skc_to_mptcp_sock, struct sock *, sk)
net/core/filter.c
12225
__bpf_kfunc int bpf_sk_assign_tcp_reqsk(struct __sk_buff *s, struct sock *sk,
net/core/filter.c
1230
void sk_filter_uncharge(struct sock *sk, struct sk_filter *fp)
net/core/filter.c
1241
static bool __sk_filter_charge(struct sock *sk, struct sk_filter *fp)
net/core/filter.c
12548
__bpf_kfunc int bpf_sock_destroy(struct sock_common *sock)
net/core/filter.c
1255
bool sk_filter_charge(struct sock *sk, struct sk_filter *fp)
net/core/filter.c
12550
struct sock *sk = (struct sock *)sock;
net/core/filter.c
134
int sk_filter_trim_cap(struct sock *sk, struct sk_buff *skb,
net/core/filter.c
1480
static int __sk_attach_prog(struct bpf_prog *prog, struct sock *sk)
net/core/filter.c
1507
struct bpf_prog *__get_filter(struct sock_fprog *fprog, struct sock *sk)
net/core/filter.c
1553
int sk_attach_filter(struct sock_fprog *fprog, struct sock *sk)
net/core/filter.c
1571
int sk_reuseport_attach_filter(struct sock_fprog *fprog, struct sock *sk)
net/core/filter.c
1591
static struct bpf_prog *__get_bpf(u32 ufd, struct sock *sk)
net/core/filter.c
1599
int sk_attach_bpf(u32 ufd, struct sock *sk)
net/core/filter.c
1616
int sk_reuseport_attach_bpf(u32 ufd, struct sock *sk)
net/core/filter.c
165
struct sock *save_sk = skb->sk;
net/core/filter.c
1889
BPF_CALL_1(bpf_sk_fullsock, struct sock *, sk)
net/core/filter.c
3123
struct sock *sk = skb_to_full_sk(skb);
net/core/filter.c
4983
struct sock *sk;
net/core/filter.c
5008
static inline u64 __bpf_sk_cgroup_id(struct sock *sk)
net/core/filter.c
5032
static inline u64 __bpf_sk_ancestor_cgroup_id(struct sock *sk,
net/core/filter.c
5064
BPF_CALL_1(bpf_sk_cgroup_id, struct sock *, sk)
net/core/filter.c
5076
BPF_CALL_2(bpf_sk_ancestor_cgroup_id, struct sock *, sk, int, ancestor_level)
net/core/filter.c
5163
BPF_CALL_1(bpf_get_socket_cookie_sock, struct sock *, ctx)
net/core/filter.c
5175
BPF_CALL_1(bpf_get_socket_ptr_cookie, struct sock *, sk)
net/core/filter.c
5199
static u64 __bpf_get_netns_cookie(struct sock *sk)
net/core/filter.c
5217
BPF_CALL_1(bpf_get_netns_cookie_sock, struct sock *, ctx)
net/core/filter.c
5267
struct sock *sk = sk_to_full_sk(skb->sk);
net/core/filter.c
5283
static int sk_bpf_set_get_cb_flags(struct sock *sk, char *optval, bool getopt)
net/core/filter.c
5302
static int sol_socket_sockopt(struct sock *sk, int optname,
net/core/filter.c
5343
static int bpf_sol_tcp_getsockopt(struct sock *sk, int optname,
net/core/filter.c
5375
static int bpf_sol_tcp_setsockopt(struct sock *sk, int optname,
net/core/filter.c
5426
static int sol_tcp_sockopt_congestion(struct sock *sk, char *optval,
net/core/filter.c
5479
static int sol_tcp_sockopt(struct sock *sk, int optname,
net/core/filter.c
5537
static int sol_ip_sockopt(struct sock *sk, int optname,
net/core/filter.c
5562
static int sol_ipv6_sockopt(struct sock *sk, int optname,
net/core/filter.c
5588
static int __bpf_setsockopt(struct sock *sk, int level, int optname,
net/core/filter.c
5611
static int _bpf_setsockopt(struct sock *sk, int level, int optname,
net/core/filter.c
5619
static int __bpf_getsockopt(struct sock *sk, int level, int optname,
net/core/filter.c
5648
static int _bpf_getsockopt(struct sock *sk, int level, int optname,
net/core/filter.c
5656
BPF_CALL_5(bpf_sk_setsockopt, struct sock *, sk, int, level,
net/core/filter.c
5673
BPF_CALL_5(bpf_sk_getsockopt, struct sock *, sk, int, level,
net/core/filter.c
5690
BPF_CALL_5(bpf_unlocked_sk_setsockopt, struct sock *, sk, int, level,
net/core/filter.c
5707
BPF_CALL_5(bpf_unlocked_sk_getsockopt, struct sock *, sk, int, level,
net/core/filter.c
5758
static int sk_bpf_set_get_bypass_prot_mem(struct sock *sk,
net/core/filter.c
5783
BPF_CALL_5(bpf_sock_create_setsockopt, struct sock *, sk, int, level,
net/core/filter.c
5803
BPF_CALL_5(bpf_sock_create_getsockopt, struct sock *, sk, int, level,
net/core/filter.c
5874
struct sock *sk = bpf_sock->sk;
net/core/filter.c
5962
struct sock *sk = bpf_sock->sk;
net/core/filter.c
5991
struct sock *sk = ctx->sk;
net/core/filter.c
6874
static struct sock *sk_lookup(struct net *net, struct bpf_sock_tuple *tuple,
net/core/filter.c
6878
struct sock *sk = NULL;
net/core/filter.c
6922
static struct sock *
net/core/filter.c
6927
struct sock *sk = NULL;
net/core/filter.c
6963
static struct sock *
net/core/filter.c
6968
struct sock *sk = __bpf_skc_lookup(skb, tuple, len, caller_net,
net/core/filter.c
6973
struct sock *sk2 = sk_to_full_sk(sk);
net/core/filter.c
6992
static struct sock *
net/core/filter.c
7011
static struct sock *
net/core/filter.c
7015
struct sock *sk = bpf_skc_lookup(skb, tuple, len, proto, netns_id,
net/core/filter.c
7019
struct sock *sk2 = sk_to_full_sk(sk);
net/core/filter.c
7167
BPF_CALL_1(bpf_sk_release, struct sock *, sk)
net/core/filter.c
7453
BPF_CALL_1(bpf_tcp_sock, struct sock *, sk)
net/core/filter.c
7468
BPF_CALL_1(bpf_get_listener_sock, struct sock *, sk)
net/core/filter.c
7558
BPF_CALL_5(bpf_tcp_check_syncookie, struct sock *, sk, void *, iph, u32, iph_len,
net/core/filter.c
7631
BPF_CALL_5(bpf_tcp_gen_syncookie, struct sock *, sk, void *, iph, u32, iph_len,
net/core/filter.c
7700
BPF_CALL_3(bpf_sk_assign, struct sk_buff *, skb, struct sock *, sk, u64, flags)
net/core/lwt_bpf.c
143
static int bpf_output(struct net *net, struct sock *sk, struct sk_buff *skb)
net/core/lwt_bpf.c
184
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
2203
static const void *net_netlink_ns(struct sock *sk)
net/core/net_namespace.c
1106
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
2404
struct net *rtnl_get_net_ns_capable(struct sock *sk, int netnsid)
net/core/rtnetlink.c
6881
static int rtnetlink_dump_start(struct sock *ssk, struct sk_buff *skb,
net/core/rtnetlink.c
6926
struct sock *rtnl;
net/core/rtnetlink.c
7070
struct sock *sk;
net/core/rtnetlink.c
946
struct sock *rtnl = net->rtnl;
net/core/rtnetlink.c
953
struct sock *rtnl = net->rtnl;
net/core/rtnetlink.c
962
struct sock *rtnl = net->rtnl;
net/core/rtnetlink.c
970
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
429
static void scm_passec(struct sock *sk, struct msghdr *msg, struct scm_cookie *scm)
net/core/scm.c
446
static bool scm_has_secdata(struct sock *sk)
net/core/scm.c
451
static void scm_passec(struct sock *sk, struct msghdr *msg, struct scm_cookie *scm)
net/core/scm.c
455
static bool scm_has_secdata(struct sock *sk)
net/core/scm.c
497
static bool __scm_recv_common(struct sock *sk, struct msghdr *msg,
net/core/scm.c
528
void scm_recv(struct socket *sock, struct msghdr *msg,
net/core/scm.c
531
if (!__scm_recv_common(sock->sk, msg, scm, flags))
net/core/scm.c
538
void scm_recv_unix(struct socket *sock, struct msghdr *msg,
net/core/scm.c
541
if (!__scm_recv_common(sock->sk, msg, scm, flags))
net/core/scm.c
544
if (sock->sk->sk_scm_pidfd)
net/core/skbuff.c
1220
bool __sk_skb_reason_drop(struct sock *sk, struct sk_buff *skb,
net/core/skbuff.c
1249
sk_skb_reason_drop(struct sock *sk, struct sk_buff *skb, enum skb_drop_reason reason)
net/core/skbuff.c
1316
struct sock *sk = skb->sk;
net/core/skbuff.c
1726
static struct ubuf_info *msg_zerocopy_alloc(struct sock *sk, size_t size,
net/core/skbuff.c
1764
struct ubuf_info *msg_zerocopy_realloc(struct sock *sk, size_t size,
net/core/skbuff.c
1839
struct sock *sk = skb->sk;
net/core/skbuff.c
1898
struct sock *sk = skb_from_uarg(uarg_to_msgzc(uarg))->sk;
net/core/skbuff.c
1913
int skb_zerocopy_iter_stream(struct sock *sk, struct sk_buff *skb,
net/core/skbuff.c
1938
struct sock *save_sk = skb->sk;
net/core/skbuff.c
2463
struct sock *sk = skb->sk;
net/core/skbuff.c
3102
struct sock *sk)
net/core/skbuff.c
3134
struct sock *sk)
net/core/skbuff.c
3161
struct sock *sk)
net/core/skbuff.c
3198
struct splice_pipe_desc *spd, struct sock *sk)
net/core/skbuff.c
3254
int skb_splice_bits(struct sk_buff *skb, struct sock *sk, unsigned int offset,
net/core/skbuff.c
3278
static int sendmsg_locked(struct sock *sk, struct msghdr *msg)
net/core/skbuff.c
3280
struct socket *sock = sk->sk_socket;
net/core/skbuff.c
3283
if (!sock)
net/core/skbuff.c
3286
if (!sock->ops->sendmsg_locked)
net/core/skbuff.c
3289
return sock->ops->sendmsg_locked(sk, msg, size);
net/core/skbuff.c
3292
static int sendmsg_unlocked(struct sock *sk, struct msghdr *msg)
net/core/skbuff.c
3294
struct socket *sock = sk->sk_socket;
net/core/skbuff.c
3296
if (!sock)
net/core/skbuff.c
3298
return sock_sendmsg(sock, msg);
net/core/skbuff.c
3301
typedef int (*sendmsg_func)(struct sock *sk, struct msghdr *msg);
net/core/skbuff.c
3302
static int __skb_send_sock(struct sock *sk, struct sk_buff *skb, int offset,
net/core/skbuff.c
3407
int skb_send_sock_locked(struct sock *sk, struct sk_buff *skb, int offset,
net/core/skbuff.c
3414
int skb_send_sock_locked_with_flags(struct sock *sk, struct sk_buff *skb,
net/core/skbuff.c
3422
int skb_send_sock(struct sock *sk, struct sk_buff *skb, int offset, int len)
net/core/skbuff.c
5451
struct sock *sk = skb->sk;
net/core/skbuff.c
5468
int sock_queue_err_skb(struct sock *sk, struct sk_buff *skb)
net/core/skbuff.c
5496
struct sk_buff *sock_dequeue_err_skb(struct sock *sk)
net/core/skbuff.c
5540
struct sock *sk = skb->sk;
net/core/skbuff.c
5560
struct sock *sk,
net/core/skbuff.c
5588
static bool skb_may_tx_timestamp(struct sock *sk, bool tsonly)
net/core/skbuff.c
5590
struct socket *sock;
net/core/skbuff.c
5603
sock = READ_ONCE(sk->sk_socket);
net/core/skbuff.c
5604
if (!sock)
net/core/skbuff.c
5606
file = READ_ONCE(sock->file);
net/core/skbuff.c
5618
struct sock *sk = skb->sk;
net/core/skbuff.c
5659
struct sock *sk,
net/core/skbuff.c
5689
struct sock *sk, int tstype)
net/core/skbuff.c
5761
struct sock *sk = skb->sk;
net/core/skmsg.c
1033
struct sock *sk_other;
net/core/skmsg.c
1091
static void sk_psock_write_space(struct sock *sk)
net/core/skmsg.c
1094
void (*write_space)(struct sock *sk) = NULL;
net/core/skmsg.c
1114
struct sock *sk;
net/core/skmsg.c
1161
static void sk_psock_strp_data_ready(struct sock *sk)
net/core/skmsg.c
1181
int sk_psock_init_strp(struct sock *sk, struct sk_psock *psock)
net/core/skmsg.c
1202
void sk_psock_start_strp(struct sock *sk, struct sk_psock *psock)
net/core/skmsg.c
1212
void sk_psock_stop_strp(struct sock *sk, struct sk_psock *psock)
net/core/skmsg.c
1236
static int sk_psock_verdict_recv(struct sock *sk, struct sk_buff *skb)
net/core/skmsg.c
1268
static void sk_psock_verdict_data_ready(struct sock *sk)
net/core/skmsg.c
1271
struct socket *sock;
net/core/skmsg.c
1277
sock = READ_ONCE(sk->sk_socket);
net/core/skmsg.c
1278
if (likely(sock))
net/core/skmsg.c
1279
ops = READ_ONCE(sock->ops);
net/core/skmsg.c
1296
void sk_psock_start_verdict(struct sock *sk, struct sk_psock *psock)
net/core/skmsg.c
1306
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
193
static int __sk_msg_free(struct sock *sk, struct sk_msg *msg, u32 i,
net/core/skmsg.c
211
int sk_msg_free_nocharge(struct sock *sk, struct sk_msg *msg)
net/core/skmsg.c
217
int sk_msg_free(struct sock *sk, struct sk_msg *msg)
net/core/skmsg.c
223
static void __sk_msg_free_partial(struct sock *sk, struct sk_msg *msg,
net/core/skmsg.c
251
void sk_msg_free_partial(struct sock *sk, struct sk_msg *msg, u32 bytes)
net/core/skmsg.c
257
void sk_msg_free_partial_nocharge(struct sock *sk, struct sk_msg *msg,
net/core/skmsg.c
263
void sk_msg_trim(struct sock *sk, struct sk_msg *msg, int len)
net/core/skmsg.c
27
int sk_msg_alloc(struct sock *sk, struct sk_msg *msg, int len,
net/core/skmsg.c
311
int sk_msg_zerocopy_from_iter(struct sock *sk, struct iov_iter *from,
net/core/skmsg.c
368
int sk_msg_memcopy_from_iter(struct sock *sk, struct iov_iter *from,
net/core/skmsg.c
412
int __sk_msg_recvmsg(struct sock *sk, struct sk_psock *psock, struct msghdr *msg,
net/core/skmsg.c
500
int sk_msg_recvmsg(struct sock *sk, struct sk_psock *psock, struct msghdr *msg,
net/core/skmsg.c
507
bool sk_msg_is_readable(struct sock *sk)
net/core/skmsg.c
532
static struct sk_msg *sk_psock_create_ingress_msg(struct sock *sk,
net/core/skmsg.c
547
struct sock *sk,
net/core/skmsg.c
593
struct sock *sk = psock->sk;
net/core/skmsg.c
628
struct sock *sk = psock->sk;
net/core/skmsg.c
749
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
888
void sk_psock_drop(struct sock *sk, struct sk_psock *psock)
net/core/skmsg.c
919
int sk_psock_msg_verdict(struct sock *sk, struct sk_psock *psock,
net/core/skmsg.c
960
struct sock *sk_other;
net/core/sock.c
1003
static void __sock_set_mark(struct sock *sk, u32 val)
net/core/sock.c
1011
void sock_set_mark(struct sock *sk, u32 val)
net/core/sock.c
1019
static void sock_release_reserved_memory(struct sock *sk, int bytes)
net/core/sock.c
1029
static int sock_reserve_memory(struct sock *sk, int bytes)
net/core/sock.c
1085
sock_devmem_dontneed(struct sock *sk, sockptr_t optval, unsigned int optlen)
net/core/sock.c
1143
void sockopt_lock_sock(struct sock *sk)
net/core/sock.c
1156
void sockopt_release_sock(struct sock *sk)
net/core/sock.c
1193
int sk_setsockopt(struct sock *sk, int level, int optname,
net/core/sock.c
1197
struct socket *sock = sk->sk_socket;
net/core/sock.c
1287
int (*set_peek_off)(struct sock *sk, int val);
net/core/sock.c
1289
set_peek_off = READ_ONCE(sock->ops)->set_peek_off;
net/core/sock.c
1451
int (*set_rcvlowat)(struct sock *sk, int val) = NULL;
net/core/sock.c
1455
if (sock)
net/core/sock.c
1456
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
1678
int sock_setsockopt(struct socket *sock, int level, int optname,
net/core/sock.c
1681
return sk_setsockopt(sock->sk, level, optname,
net/core/sock.c
1686
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
1725
int sk_getsockopt(struct sock *sk, int level, int optname,
net/core/sock.c
1728
struct socket *sock = sk->sk_socket;
net/core/sock.c
188
bool sk_capable(const struct sock *sk, int cap)
net/core/sock.c
1980
lv = READ_ONCE(sock->ops)->getname(sock, (struct sockaddr *)&address, 2);
net/core/sock.c
2005
return security_socket_getpeersec_stream(sock,
net/core/sock.c
2029
if (!READ_ONCE(sock->ops)->set_peek_off)
net/core/sock.c
203
bool sk_net_capable(const struct sock *sk, int cap)
net/core/sock.c
2178
static inline void sock_lock_init(struct sock *sk)
net/core/sock.c
2203
static void sock_copy(struct sock *nsk, const struct sock *osk)
net/core/sock.c
2214
BUILD_BUG_ON(offsetof(struct sock, sk_tx_queue_mapping) <
net/core/sock.c
2215
offsetof(struct sock, sk_dontcopy_begin) ||
net/core/sock.c
2216
offsetof(struct sock, sk_tx_queue_mapping) >=
net/core/sock.c
2217
offsetof(struct sock, sk_dontcopy_end));
net/core/sock.c
2219
memcpy(nsk, osk, offsetof(struct sock, sk_dontcopy_begin));
net/core/sock.c
2222
prot->obj_size - offsetof(struct sock, sk_dontcopy_end),
net/core/sock.c
2231
static struct sock *sk_prot_alloc(struct proto *prot, gfp_t priority,
net/core/sock.c
2234
struct sock *sk;
net/core/sock.c
2267
static void sk_prot_free(struct proto *prot, struct sock *sk)
net/core/sock.c
2296
struct sock *sk_alloc(struct net *net, int family, gfp_t priority,
net/core/sock.c
2299
struct sock *sk;
net/core/sock.c
2345
struct sock *sk = container_of(head, struct sock, sk_rcu);
net/core/sock.c
2387
void sk_net_refcnt_upgrade(struct sock *sk)
net/core/sock.c
2400
void sk_destruct(struct sock *sk)
net/core/sock.c
2415
static void __sk_free(struct sock *sk)
net/core/sock.c
2426
void sk_free(struct sock *sk)
net/core/sock.c
2438
static void sk_init_common(struct sock *sk)
net/core/sock.c
2473
struct sock *sk_clone(const struct sock *sk, const gfp_t priority,
net/core/sock.c
2479
struct sock *newsk;
net/core/sock.c
2608
static u32 sk_dst_gso_max_size(struct sock *sk, const struct net_device *dev)
net/core/sock.c
2626
void sk_setup_caps(struct sock *sk, struct dst_entry *dst)
net/core/sock.c
2671
struct sock *sk = skb->sk;
net/core/sock.c
2710
struct sock *sk = skb->sk;
net/core/sock.c
2716
void skb_set_owner_w(struct sk_buff *skb, struct sock *sk)
net/core/sock.c
2780
struct sock *sk = skb->sk;
net/core/sock.c
2804
struct sock *sk = skb->sk;
net/core/sock.c
2823
struct sk_buff *sock_wmalloc(struct sock *sk, unsigned long size, int force,
net/core/sock.c
2841
struct sock *sk = skb->sk;
net/core/sock.c
2846
struct sk_buff *sock_omalloc(struct sock *sk, unsigned long size,
net/core/sock.c
2869
void *sock_kmalloc(struct sock *sk, int size, gfp_t priority)
net/core/sock.c
2893
void *sock_kmemdup(struct sock *sk, const void *src,
net/core/sock.c
2909
static inline void __sock_kfree_s(struct sock *sk, void *mem, int size,
net/core/sock.c
2921
void sock_kfree_s(struct sock *sk, void *mem, int size)
net/core/sock.c
2927
void sock_kzfree_s(struct sock *sk, void *mem, int size)
net/core/sock.c
2936
static long sock_wait_for_wmem(struct sock *sk, long timeo)
net/core/sock.c
2965
struct sk_buff *sock_alloc_send_pskb(struct sock *sk, unsigned long header_len,
net/core/sock.c
3009
int __sock_cmsg_send(struct sock *sk, struct cmsghdr *cmsg,
net/core/sock.c
302
void sk_set_memalloc(struct sock *sk)
net/core/sock.c
3078
int sock_cmsg_send(struct sock *sk, struct msghdr *msg,
net/core/sock.c
3097
static void sk_enter_memory_pressure(struct sock *sk)
net/core/sock.c
310
void sk_clear_memalloc(struct sock *sk)
net/core/sock.c
3105
static void sk_leave_memory_pressure(struct sock *sk)
net/core/sock.c
3164
bool sk_page_frag_refill(struct sock *sk, struct page_frag *pfrag)
net/core/sock.c
3178
void __lock_sock(struct sock *sk)
net/core/sock.c
3196
void __release_sock(struct sock *sk)
net/core/sock.c
3233
void __sk_flush_backlog(struct sock *sk)
net/core/sock.c
3257
int sk_wait_data(struct sock *sk, long *timeo, const struct sk_buff *skb)
net/core/sock.c
327
int __sk_backlog_rcv(struct sock *sk, struct sk_buff *skb)
net/core/sock.c
3286
int __sk_mem_raise_allocated(struct sock *sk, int size, int amt, int kind)
net/core/sock.c
3404
int __sk_mem_schedule(struct sock *sk, int size, int kind)
net/core/sock.c
3423
void __sk_mem_reduce_allocated(struct sock *sk, int amount)
net/core/sock.c
3443
void __sk_mem_reclaim(struct sock *sk, int amount)
net/core/sock.c
3451
void __sk_charge(struct sock *sk, gfp_t gfp)
net/core/sock.c
346
void sk_error_report(struct sock *sk)
net/core/sock.c
3469
int sk_set_peek_off(struct sock *sk, int val)
net/core/sock.c
3483
int sock_no_bind(struct socket *sock, struct sockaddr_unsized *saddr, int len)
net/core/sock.c
3489
int sock_no_connect(struct socket *sock, struct sockaddr_unsized *saddr,
net/core/sock.c
3502
int sock_no_accept(struct socket *sock, struct socket *newsock,
net/core/sock.c
3509
int sock_no_getname(struct socket *sock, struct sockaddr *saddr,
net/core/sock.c
3516
int sock_no_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
net/core/sock.c
3522
int sock_no_listen(struct socket *sock, int backlog)
net/core/sock.c
3528
int sock_no_shutdown(struct socket *sock, int how)
net/core/sock.c
3534
int sock_no_sendmsg(struct socket *sock, struct msghdr *m, size_t len)
net/core/sock.c
3540
int sock_no_sendmsg_locked(struct sock *sk, struct msghdr *m, size_t len)
net/core/sock.c
3546
int sock_no_recvmsg(struct socket *sock, struct msghdr *m, size_t len,
net/core/sock.c
3553
int sock_no_mmap(struct file *file, struct socket *sock, struct vm_area_struct *vma)
net/core/sock.c
3566
struct socket *sock;
net/core/sock.c
3568
sock = sock_from_file(file);
net/core/sock.c
3569
if (sock) {
net/core/sock.c
3570
sock_update_netprioidx(&sock->sk->sk_cgrp_data);
net/core/sock.c
3571
sock_update_classid(&sock->sk->sk_cgrp_data);
net/core/sock.c
3579
static void sock_def_wakeup(struct sock *sk)
net/core/sock.c
3590
static void sock_def_error_report(struct sock *sk)
net/core/sock.c
3602
void sock_def_readable(struct sock *sk)
net/core/sock.c
3617
static void sock_def_write_space(struct sock *sk)
net/core/sock.c
3643
static void sock_def_write_space_wfree(struct sock *sk, int wmem_alloc)
net/core/sock.c
3662
static void sock_def_destruct(struct sock *sk)
net/core/sock.c
3666
void sk_send_sigurg(struct sock *sk)
net/core/sock.c
3674
void sk_reset_timer(struct sock *sk, struct timer_list* timer,
net/core/sock.c
3682
void sk_stop_timer(struct sock *sk, struct timer_list* timer)
net/core/sock.c
3689
void sk_stop_timer_sync(struct sock *sk, struct timer_list *timer)
net/core/sock.c
3696
void sock_init_data_uid(struct socket *sock, struct sock *sk, kuid_t uid)
net/core/sock.c
3708
sk_set_socket(sk, sock);
net/core/sock.c
3712
if (sock) {
net/core/sock.c
3713
sk->sk_type = sock->type;
net/core/sock.c
3714
RCU_INIT_POINTER(sk->sk_wq, &sock->wq);
net/core/sock.c
3715
sock->sk = sk;
net/core/sock.c
3767
void sock_init_data(struct socket *sock, struct sock *sk)
net/core/sock.c
3769
kuid_t uid = sock ?
net/core/sock.c
3770
SOCK_INODE(sock)->i_uid :
net/core/sock.c
3773
sock_init_data_uid(sock, sk, uid);
net/core/sock.c
3777
void lock_sock_nested(struct sock *sk, int subclass)
net/core/sock.c
3791
void release_sock(struct sock *sk)
net/core/sock.c
3808
bool __lock_sock_fast(struct sock *sk) __acquires(&sk->sk_lock.slock)
net/core/sock.c
3840
int sock_gettstamp(struct socket *sock, void __user *userstamp,
net/core/sock.c
3843
struct sock *sk = sock->sk;
net/core/sock.c
3879
void sock_enable_timestamp(struct sock *sk, enum sock_flags flag)
net/core/sock.c
3896
int sock_recv_errqueue(struct sock *sk, struct msghdr *msg, int len,
net/core/sock.c
3940
int sock_common_getsockopt(struct socket *sock, int level, int optname,
net/core/sock.c
3943
struct sock *sk = sock->sk;
net/core/sock.c
3950
int sock_common_recvmsg(struct socket *sock, struct msghdr *msg, size_t size,
net/core/sock.c
3953
struct sock *sk = sock->sk;
net/core/sock.c
3967
int sock_common_setsockopt(struct socket *sock, int level, int optname,
net/core/sock.c
3970
struct sock *sk = sock->sk;
net/core/sock.c
3977
void sk_common_release(struct sock *sk)
net/core/sock.c
4012
void sk_get_meminfo(const struct sock *sk, u32 *mem)
net/core/sock.c
4407
struct sock *sk = p;
net/core/sock.c
4421
int sock_bind_add(struct sock *sk, struct sockaddr_unsized *addr, int addr_len)
net/core/sock.c
4430
int sock_ioctl_inout(struct sock *sk, unsigned int cmd,
net/core/sock.c
4453
static int sock_ioctl_out(struct sock *sk, unsigned int cmd, void __user *arg)
net/core/sock.c
4469
int sk_ioctl(struct sock *sk, unsigned int cmd, void __user *arg)
net/core/sock.c
4491
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_write_rx, sk_drops);
net/core/sock.c
4492
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_write_rx, sk_peek_off);
net/core/sock.c
4493
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_write_rx, sk_error_queue);
net/core/sock.c
4494
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_write_rx, sk_receive_queue);
net/core/sock.c
4495
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_write_rx, sk_backlog);
net/core/sock.c
4497
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_read_rx, sk_rx_dst);
net/core/sock.c
4498
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_read_rx, sk_rx_dst_ifindex);
net/core/sock.c
4499
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_read_rx, sk_rx_dst_cookie);
net/core/sock.c
4500
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_read_rx, sk_rcvbuf);
net/core/sock.c
4501
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_read_rx, sk_filter);
net/core/sock.c
4502
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_read_rx, sk_wq);
net/core/sock.c
4503
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_read_rx, sk_data_ready);
net/core/sock.c
4504
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_read_rx, sk_rcvtimeo);
net/core/sock.c
4505
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_read_rx, sk_rcvlowat);
net/core/sock.c
4507
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_read_rxtx, sk_err);
net/core/sock.c
4508
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_read_rxtx, sk_socket);
net/core/sock.c
4510
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_read_rxtx, sk_memcg);
net/core/sock.c
4513
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_write_rxtx, sk_lock);
net/core/sock.c
4514
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_write_rxtx, sk_reserved_mem);
net/core/sock.c
4515
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_write_rxtx, sk_forward_alloc);
net/core/sock.c
4516
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_write_rxtx, sk_tsflags);
net/core/sock.c
4518
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_write_tx, sk_omem_alloc);
net/core/sock.c
4519
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_write_tx, sk_omem_alloc);
net/core/sock.c
4520
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_write_tx, sk_err_soft);
net/core/sock.c
4521
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_write_tx, sk_wmem_queued);
net/core/sock.c
4522
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_write_tx, sk_wmem_alloc);
net/core/sock.c
4523
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_write_tx, sk_tsq_flags);
net/core/sock.c
4524
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_write_tx, sk_send_head);
net/core/sock.c
4525
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_write_tx, sk_write_queue);
net/core/sock.c
4526
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_write_tx, sk_write_pending);
net/core/sock.c
4527
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_write_tx, sk_frag);
net/core/sock.c
4528
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_write_tx, sk_timer);
net/core/sock.c
4529
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_write_tx, sk_pacing_rate);
net/core/sock.c
4530
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_write_tx, sk_zckey);
net/core/sock.c
4531
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_write_tx, sk_tskey);
net/core/sock.c
4533
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_read_tx, sk_dst_pending_confirm);
net/core/sock.c
4534
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_read_tx, sk_pacing_status);
net/core/sock.c
4535
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_read_tx, sk_max_pacing_rate);
net/core/sock.c
4536
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_read_tx, sk_sndtimeo);
net/core/sock.c
4537
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_read_tx, sk_priority);
net/core/sock.c
4538
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_read_tx, sk_mark);
net/core/sock.c
4539
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_read_tx, sk_uid);
net/core/sock.c
4540
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_read_tx, sk_protocol);
net/core/sock.c
4541
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_read_tx, sk_dst_cache);
net/core/sock.c
4542
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_read_tx, sk_route_caps);
net/core/sock.c
4543
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_read_tx, sk_gso_type);
net/core/sock.c
4544
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_read_tx, sk_gso_max_size);
net/core/sock.c
4545
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_read_tx, sk_allocation);
net/core/sock.c
4546
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_read_tx, sk_txhash);
net/core/sock.c
4547
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_read_tx, sk_sndbuf);
net/core/sock.c
4548
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_read_tx, sk_gso_max_segs);
net/core/sock.c
4549
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_read_tx, sk_pacing_shift);
net/core/sock.c
4550
CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_read_tx, sk_use_task_frag);
net/core/sock.c
459
static bool sk_set_prio_allowed(const struct sock *sk, int val)
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
523
int sock_queue_rcv_skb_reason(struct sock *sk, struct sk_buff *skb,
net/core/sock.c
552
int __sk_receive_skb(struct sock *sk, struct sk_buff *skb,
net/core/sock.c
607
struct dst_entry *__sk_dst_check(struct sock *sk, u32 cookie)
net/core/sock.c
625
struct dst_entry *sk_dst_check(struct sock *sk, u32 cookie)
net/core/sock.c
641
static int sock_bindtoindex_locked(struct sock *sk, int ifindex)
net/core/sock.c
671
int sock_bindtoindex(struct sock *sk, int ifindex, bool lock_sk)
net/core/sock.c
685
static int sock_setbindtodevice(struct sock *sk, sockptr_t optval, int optlen)
net/core/sock.c
733
static int sock_getbindtodevice(struct sock *sk, sockptr_t optval,
net/core/sock.c
774
bool sk_mc_loop(const struct sock *sk)
net/core/sock.c
794
void sock_set_reuseaddr(struct sock *sk)
net/core/sock.c
802
void sock_set_reuseport(struct sock *sk)
net/core/sock.c
810
void sock_no_linger(struct sock *sk)
net/core/sock.c
819
void sock_set_priority(struct sock *sk, u32 priority)
net/core/sock.c
825
void sock_set_sndtimeo(struct sock *sk, s64 secs)
net/core/sock.c
834
static void __sock_set_timestamps(struct sock *sk, bool val, bool new, bool ns)
net/core/sock.c
844
void sock_set_timestamp(struct sock *sk, int optname, bool valbool)
net/core/sock.c
862
static int sock_timestamping_bind_phc(struct sock *sk, int phc_index)
net/core/sock.c
899
int sock_set_timestamping(struct sock *sk, int optname,
net/core/sock.c
951
void bpf_skops_tx_timestamping(struct sock *sk, struct sk_buff *skb, int op)
net/core/sock.c
964
void sock_set_keepalive(struct sock *sk)
net/core/sock.c
974
static void __sock_set_rcvbuf(struct sock *sk, int val)
net/core/sock.c
995
void sock_set_rcvbuf(struct sock *sk, int val)
net/core/sock_diag.c
115
struct sock *sk;
net/core/sock_diag.c
148
struct sock *sk = bsk->sk;
net/core/sock_diag.c
176
void sock_diag_broadcast_destroy(struct sock *sk)
net/core/sock_diag.c
27
u64 __sock_gen_cookie(struct sock *sk)
net/core/sock_diag.c
313
int sock_diag_destroy(struct sock *sk, int err)
net/core/sock_diag.c
42
int sock_diag_check_cookie(struct sock *sk, const __u32 *cookie)
net/core/sock_diag.c
57
void sock_diag_save_cookie(struct sock *sk, __u32 *cookie)
net/core/sock_diag.c
66
int sock_diag_put_meminfo(struct sock *sk, struct sk_buff *skb, int attrtype)
net/core/sock_diag.c
76
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
1199
struct sock *sk;
net/core/sock_map.c
1214
struct sock *sk;
net/core/sock_map.c
124
static void sock_map_sk_release(struct sock *sk)
net/core/sock_map.c
1254
struct sock *sk;
net/core/sock_map.c
1282
struct sock *sk;
net/core/sock_map.c
142
static void sock_map_del_link(struct sock *sk,
net/core/sock_map.c
1604
static void sock_map_unlink(struct sock *sk, struct sk_psock_link *link)
net/core/sock_map.c
1618
static void sock_map_remove_links(struct sock *sk, struct sk_psock *psock)
net/core/sock_map.c
1628
void sock_map_unhash(struct sock *sk)
net/core/sock_map.c
1630
void (*saved_unhash)(struct sock *sk);
net/core/sock_map.c
1650
void sock_map_destroy(struct sock *sk)
net/core/sock_map.c
1652
void (*saved_destroy)(struct sock *sk);
net/core/sock_map.c
1674
void sock_map_close(struct sock *sk, long timeout)
net/core/sock_map.c
1676
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
554
struct sock *sk, u64 flags);
net/core/sock_map.c
559
struct socket *sock;
net/core/sock_map.c
560
struct sock *sk;
net/core/sock_map.c
571
sock = sockfd_lookup(ufd, &ret);
net/core/sock_map.c
572
if (!sock)
net/core/sock_map.c
574
sk = sock->sk;
net/core/sock_map.c
58
sizeof(struct sock *),
net/core/sock_map.c
593
sockfd_put(sock);
net/core/sock_map.c
600
struct sock *sk = (struct sock *)value;
net/core/sock_map.c
648
struct sock *sk;
net/core/sock_map.c
676
struct sock *sk;
net/core/sock_map.c
706
struct sock *sk;
net/core/sock_map.c
714
__bpf_md_ptr(struct sock *, sk);
net/core/sock_map.c
719
struct sock *sk)
net/core/sock_map.c
817
usage += (u64)map->max_entries * sizeof(struct sock *);
net/core/sock_map.c
848
struct sock *sk;
net/core/sock_map.c
893
static struct sock *__sock_hash_lookup_elem(struct bpf_map *map, void *key)
net/core/sock_map.c
916
static void sock_hash_delete_from_link(struct bpf_map *map, struct sock *sk,
net/core/sock_map.c
966
u32 hash, struct sock *sk,
net/core/sock_map.c
992
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
122
int sk_stream_wait_memory(struct sock *sk, long *timeo_p)
net/core/stream.c
190
int sk_stream_error(struct sock *sk, int flags, int err)
net/core/stream.c
200
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
223
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
115
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
211
struct socket *sock;
net/handshake/handshake-test.c
220
&sock, 1);
net/handshake/handshake-test.c
222
filp = sock_alloc_file(sock, O_NONBLOCK, NULL);
net/handshake/handshake-test.c
224
KUNIT_ASSERT_NOT_NULL(test, sock->sk);
net/handshake/handshake-test.c
225
sock->file = filp;
net/handshake/handshake-test.c
227
err = handshake_req_submit(sock, req, GFP_KERNEL);
net/handshake/handshake-test.c
231
result = handshake_req_hash_lookup(sock->sk);
net/handshake/handshake-test.c
237
handshake_req_cancel(sock->sk);
net/handshake/handshake-test.c
245
struct socket *sock;
net/handshake/handshake-test.c
255
&sock, 1);
net/handshake/handshake-test.c
257
filp = sock_alloc_file(sock, O_NONBLOCK, NULL);
net/handshake/handshake-test.c
259
KUNIT_ASSERT_NOT_NULL(test, sock->sk);
net/handshake/handshake-test.c
260
sock->file = filp;
net/handshake/handshake-test.c
262
net = sock_net(sock->sk);
net/handshake/handshake-test.c
270
err = handshake_req_submit(sock, req, GFP_KERNEL);
net/handshake/handshake-test.c
282
struct socket *sock;
net/handshake/handshake-test.c
293
&sock, 1);
net/handshake/handshake-test.c
295
filp = sock_alloc_file(sock, O_NONBLOCK, NULL);
net/handshake/handshake-test.c
297
KUNIT_ASSERT_NOT_NULL(test, sock->sk);
net/handshake/handshake-test.c
298
sock->file = filp;
net/handshake/handshake-test.c
301
err = handshake_req_submit(sock, req1, GFP_KERNEL);
net/handshake/handshake-test.c
303
err = handshake_req_submit(sock, req2, GFP_KERNEL);
net/handshake/handshake-test.c
308
handshake_req_cancel(sock->sk);
net/handshake/handshake-test.c
315
struct socket *sock;
net/handshake/handshake-test.c
325
&sock, 1);
net/handshake/handshake-test.c
328
filp = sock_alloc_file(sock, O_NONBLOCK, NULL);
net/handshake/handshake-test.c
330
sock->file = filp;
net/handshake/handshake-test.c
332
err = handshake_req_submit(sock, req, GFP_KERNEL);
net/handshake/handshake-test.c
338
result = handshake_req_cancel(sock->sk);
net/handshake/handshake-test.c
350
struct socket *sock;
net/handshake/handshake-test.c
361
&sock, 1);
net/handshake/handshake-test.c
364
filp = sock_alloc_file(sock, O_NONBLOCK, NULL);
net/handshake/handshake-test.c
366
sock->file = filp;
net/handshake/handshake-test.c
368
err = handshake_req_submit(sock, req, GFP_KERNEL);
net/handshake/handshake-test.c
371
net = sock_net(sock->sk);
net/handshake/handshake-test.c
380
result = handshake_req_cancel(sock->sk);
net/handshake/handshake-test.c
392
struct socket *sock;
net/handshake/handshake-test.c
403
&sock, 1);
net/handshake/handshake-test.c
406
filp = sock_alloc_file(sock, O_NONBLOCK, NULL);
net/handshake/handshake-test.c
408
sock->file = filp;
net/handshake/handshake-test.c
410
err = handshake_req_submit(sock, req, GFP_KERNEL);
net/handshake/handshake-test.c
413
net = sock_net(sock->sk);
net/handshake/handshake-test.c
425
result = handshake_req_cancel(sock->sk);
net/handshake/handshake-test.c
450
struct socket *sock;
net/handshake/handshake-test.c
461
&sock, 1);
net/handshake/handshake-test.c
464
filp = sock_alloc_file(sock, O_NONBLOCK, NULL);
net/handshake/handshake-test.c
466
sock->file = filp;
net/handshake/handshake-test.c
468
err = handshake_req_submit(sock, req, GFP_KERNEL);
net/handshake/handshake-test.c
471
handshake_req_cancel(sock->sk);
net/handshake/handshake.h
35
struct sock *hr_sk;
net/handshake/handshake.h
36
void (*hr_odestruct)(struct sock *sk);
net/handshake/handshake.h
70
int tls_alert_send(struct socket *sock, u8 level, u8 description);
net/handshake/handshake.h
85
struct handshake_req *handshake_req_hash_lookup(struct sock *sk);
net/handshake/handshake.h
87
int handshake_req_submit(struct socket *sock, struct handshake_req *req,
net/handshake/handshake.h
91
bool handshake_req_cancel(struct sock *sk);
net/handshake/netlink.c
110
sock = req->hr_sk->sk_socket;
net/handshake/netlink.c
112
FD_PREPARE(fdf, O_CLOEXEC, sock->file);
net/handshake/netlink.c
118
get_file(sock->file); /* FD_PREPARE() consumes a reference. */
net/handshake/netlink.c
140
struct socket *sock;
net/handshake/netlink.c
147
sock = sockfd_lookup(fd, &err);
net/handshake/netlink.c
148
if (!sock)
net/handshake/netlink.c
151
req = handshake_req_hash_lookup(sock->sk);
net/handshake/netlink.c
154
trace_handshake_cmd_done_err(net, req, sock->sk, err);
net/handshake/netlink.c
155
sockfd_put(sock);
net/handshake/netlink.c
159
trace_handshake_cmd_done(net, req, sock->sk, fd);
net/handshake/netlink.c
166
sockfd_put(sock);
net/handshake/netlink.c
95
struct socket *sock;
net/handshake/request.c
222
int handshake_req_submit(struct socket *sock, struct handshake_req *req,
net/handshake/request.c
229
if (!sock || !req || !sock->file) {
net/handshake/request.c
234
req->hr_sk = sock->sk;
net/handshake/request.c
290
struct sock *sk = req->hr_sk;
net/handshake/request.c
314
bool handshake_req_cancel(struct sock *sk)
net/handshake/request.c
59
struct handshake_req *handshake_req_hash_lookup(struct sock *sk)
net/handshake/request.c
85
static void handshake_sk_destruct(struct sock *sk)
net/handshake/request.c
87
void (*sk_destruct)(struct sock *sk);
net/handshake/tlshd.c
432
bool tls_handshake_cancel(struct sock *sk)
net/handshake/tlshd.c
443
void tls_handshake_close(struct socket *sock)
net/handshake/tlshd.c
447
req = handshake_req_hash_lookup(sock->sk);
net/handshake/tlshd.c
452
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
1029
static int inet_compat_routing_ioctl(struct sock *sk, unsigned int cmd,
net/ipv4/af_inet.c
1049
static int inet_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
net/ipv4/af_inet.c
1052
struct sock *sk = sock->sk;
net/ipv4/af_inet.c
1267
static int inet_sk_reselect_saddr(struct sock *sk)
net/ipv4/af_inet.c
1322
int inet_sk_rebuild_header(struct sock *sk)
net/ipv4/af_inet.c
1357
void inet_sk_set_state(struct sock *sk, int state)
net/ipv4/af_inet.c
1364
void inet_sk_state_store(struct sock *sk, int newstate)
net/ipv4/af_inet.c
141
void inet_sock_destruct(struct sock *sk)
net/ipv4/af_inet.c
1586
int inet_recv_error(struct sock *sk, struct msghdr *msg, int len, int *addr_len)
net/ipv4/af_inet.c
1639
int inet_ctl_sock_create(struct sock **sk, unsigned short family,
net/ipv4/af_inet.c
1643
struct socket *sock;
net/ipv4/af_inet.c
1644
int rc = sock_create_kern(net, family, type, protocol, &sock);
net/ipv4/af_inet.c
1647
*sk = sock->sk;
net/ipv4/af_inet.c
182
static int inet_autobind(struct sock *sk)
net/ipv4/af_inet.c
199
int __inet_listen_sk(struct sock *sk, int backlog)
net/ipv4/af_inet.c
238
int inet_listen(struct socket *sock, int backlog)
net/ipv4/af_inet.c
240
struct sock *sk = sock->sk;
net/ipv4/af_inet.c
245
if (sock->state != SS_UNCONNECTED || sock->type != SOCK_STREAM)
net/ipv4/af_inet.c
260
static int inet_create(struct net *net, struct socket *sock, int protocol,
net/ipv4/af_inet.c
263
struct sock *sk;
net/ipv4/af_inet.c
274
sock->state = SS_UNCONNECTED;
net/ipv4/af_inet.c
280
list_for_each_entry_rcu(answer, &inetsw[sock->type], list) {
net/ipv4/af_inet.c
308
PF_INET, protocol, sock->type);
net/ipv4/af_inet.c
322
if (sock->type == SOCK_RAW && !kern &&
net/ipv4/af_inet.c
326
sock->ops = answer->ops;
net/ipv4/af_inet.c
350
if (SOCK_RAW == sock->type) {
net/ipv4/af_inet.c
363
sock_init_data(sock, sk);
net/ipv4/af_inet.c
409
sock->sk = NULL;
net/ipv4/af_inet.c
419
int inet_release(struct socket *sock)
net/ipv4/af_inet.c
421
struct sock *sk = sock->sk;
net/ipv4/af_inet.c
444
sock->sk = NULL;
net/ipv4/af_inet.c
450
int inet_bind_sk(struct sock *sk, struct sockaddr_unsized *uaddr, int addr_len)
net/ipv4/af_inet.c
473
int inet_bind(struct socket *sock, struct sockaddr_unsized *uaddr, int addr_len)
net/ipv4/af_inet.c
475
return inet_bind_sk(sock->sk, uaddr, addr_len);
net/ipv4/af_inet.c
479
int __inet_bind(struct sock *sk, struct sockaddr_unsized *uaddr, int addr_len,
net/ipv4/af_inet.c
576
int inet_dgram_connect(struct socket *sock, struct sockaddr_unsized *uaddr,
net/ipv4/af_inet.c
579
struct sock *sk = sock->sk;
net/ipv4/af_inet.c
604
static long inet_wait_for_connect(struct sock *sk, long timeo, int writebias)
net/ipv4/af_inet.c
632
int __inet_stream_connect(struct socket *sock, struct sockaddr_unsized *uaddr,
net/ipv4/af_inet.c
635
struct sock *sk = sock->sk;
net/ipv4/af_inet.c
655
sock->state = err ? SS_DISCONNECTING : SS_UNCONNECTED;
net/ipv4/af_inet.c
660
switch (sock->state) {
net/ipv4/af_inet.c
689
sock->state = SS_CONNECTING;
net/ipv4/af_inet.c
735
sock->state = SS_CONNECTED;
net/ipv4/af_inet.c
742
sock->state = SS_UNCONNECTED;
net/ipv4/af_inet.c
745
sock->state = SS_DISCONNECTING;
net/ipv4/af_inet.c
750
int inet_stream_connect(struct socket *sock, struct sockaddr_unsized *uaddr,
net/ipv4/af_inet.c
755
lock_sock(sock->sk);
net/ipv4/af_inet.c
756
err = __inet_stream_connect(sock, uaddr, addr_len, flags, 0);
net/ipv4/af_inet.c
757
release_sock(sock->sk);
net/ipv4/af_inet.c
762
void __inet_accept(struct socket *sock, struct socket *newsock, struct sock *newsk)
net/ipv4/af_inet.c
776
if (test_bit(SOCK_SUPPORT_ZC, &sock->flags))
net/ipv4/af_inet.c
788
int inet_accept(struct socket *sock, struct socket *newsock,
net/ipv4/af_inet.c
791
struct sock *sk1 = sock->sk, *sk2;
net/ipv4/af_inet.c
800
__inet_accept(sock, newsock, sk2);
net/ipv4/af_inet.c
809
int inet_getname(struct socket *sock, struct sockaddr *uaddr,
net/ipv4/af_inet.c
812
struct sock *sk = sock->sk;
net/ipv4/af_inet.c
845
int inet_send_prepare(struct sock *sk)
net/ipv4/af_inet.c
858
int inet_sendmsg(struct socket *sock, struct msghdr *msg, size_t size)
net/ipv4/af_inet.c
860
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
885
INDIRECT_CALLABLE_DECLARE(int udp_recvmsg(struct sock *, struct msghdr *,
net/ipv4/af_inet.c
887
int inet_recvmsg(struct socket *sock, struct msghdr *msg, size_t size,
net/ipv4/af_inet.c
890
struct sock *sk = sock->sk;
net/ipv4/af_inet.c
905
int inet_shutdown(struct socket *sock, int how)
net/ipv4/af_inet.c
907
struct sock *sk = sock->sk;
net/ipv4/af_inet.c
920
if (sock->state == SS_CONNECTING) {
net/ipv4/af_inet.c
923
sock->state = SS_DISCONNECTING;
net/ipv4/af_inet.c
925
sock->state = SS_CONNECTED;
net/ipv4/af_inet.c
950
sock->state = err ? SS_DISCONNECTING : SS_UNCONNECTED;
net/ipv4/af_inet.c
971
int inet_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
net/ipv4/af_inet.c
973
struct sock *sk = sock->sk;
net/ipv4/arp.c
654
static int arp_xmit_finish(struct net *net, struct sock *sk, struct sk_buff *skb)
net/ipv4/arp.c
703
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_in_ack_event(struct sock *sk, u32 flags)
net/ipv4/bpf_tcp_ca.c
279
static void bpf_tcp_ca_pkts_acked(struct sock *sk, const struct ack_sample *sample)
net/ipv4/bpf_tcp_ca.c
283
static u32 bpf_tcp_ca_min_tso_segs(struct sock *sk)
net/ipv4/bpf_tcp_ca.c
288
static void bpf_tcp_ca_cong_control(struct sock *sk, u32 ack, int flag,
net/ipv4/bpf_tcp_ca.c
293
static u32 bpf_tcp_ca_undo_cwnd(struct sock *sk)
net/ipv4/bpf_tcp_ca.c
298
static u32 bpf_tcp_ca_sndbuf_expand(struct sock *sk)
net/ipv4/bpf_tcp_ca.c
303
static void __bpf_tcp_ca_init(struct sock *sk)
net/ipv4/bpf_tcp_ca.c
307
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
123
static struct sock *esp_find_tcp_sk(struct xfrm_state *x)
net/ipv4/esp4.c
128
struct sock *sk;
net/ipv4/esp4.c
150
struct sock *sk;
net/ipv4/esp4.c
176
static int esp_output_tcp_encap_cb(struct net *net, struct sock *sk,
net/ipv4/esp4.c
344
struct sock *sk;
net/ipv4/esp4.c
436
struct sock *sk = skb->sk;
net/ipv4/fib_frontend.c
1434
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 socket *sock;
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
511
struct sock *sk = fou->sock->sk;
net/ipv4/fou_core.c
561
struct socket *sock = fou->sock;
net/ipv4/fou_core.c
564
udp_tunnel_sock_release(sock);
net/ipv4/fou_core.c
572
struct socket *sock = NULL;
net/ipv4/fou_core.c
574
struct sock *sk;
net/ipv4/fou_core.c
579
err = udp_sock_create(net, &cfg->udp_config, &sock);
net/ipv4/fou_core.c
590
sk = sock->sk;
net/ipv4/fou_core.c
596
fou->sock = sock;
net/ipv4/fou_core.c
621
setup_udp_tunnel_sock(net, sock, &tunnel_cfg);
net/ipv4/fou_core.c
630
*sockp = sock;
net/ipv4/fou_core.c
636
if (sock)
net/ipv4/fou_core.c
637
udp_tunnel_sock_release(sock);
net/ipv4/fou_core.c
73
static int fou_udp_recv(struct sock *sk, struct sk_buff *skb)
net/ipv4/fou_core.c
782
struct sock *sk = fou->sock->sk;
net/ipv4/fou_core.c
784
if (nla_put_u8(msg, FOU_ATTR_AF, fou->sock->sk->sk_family) ||
net/ipv4/fou_core.c
796
if (fou->sock->sk->sk_family == AF_INET) {
net/ipv4/icmp.c
1754
struct sock *sk;
net/ipv4/icmp.c
202
static DEFINE_PER_CPU(struct sock *, ipv4_icmp_sk);
net/ipv4/icmp.c
205
static inline struct sock *icmp_xmit_lock(struct net *net)
net/ipv4/icmp.c
207
struct sock *sk;
net/ipv4/icmp.c
221
static inline void icmp_xmit_unlock(struct sock *sk)
net/ipv4/icmp.c
381
static void icmp_push_reply(struct sock *sk,
net/ipv4/icmp.c
422
struct sock *sk;
net/ipv4/icmp.c
818
struct sock *sk;
net/ipv4/igmp.c
2261
static int __ip_mc_join_group(struct sock *sk, struct ip_mreqn *imr,
net/ipv4/igmp.c
2313
int ip_mc_join_group(struct sock *sk, struct ip_mreqn *imr)
net/ipv4/igmp.c
2321
int ip_mc_join_group_ssm(struct sock *sk, struct ip_mreqn *imr,
net/ipv4/igmp.c
2327
static int ip_mc_leave_src(struct sock *sk, struct ip_mc_socklist *iml,
net/ipv4/igmp.c
2347
int ip_mc_leave_group(struct sock *sk, struct ip_mreqn *imr)
net/ipv4/igmp.c
2395
int ip_mc_source(int add, int omode, struct sock *sk, struct
net/ipv4/igmp.c
2534
int ip_mc_msfilter(struct sock *sk, struct ip_msfilter *msf, int ifindex)
net/ipv4/igmp.c
2624
int ip_mc_msfget(struct sock *sk, struct ip_msfilter *msf,
net/ipv4/igmp.c
2684
int ip_mc_gsfget(struct sock *sk, struct group_filter *gsf,
net/ipv4/igmp.c
2733
int ip_mc_sf_allow(const struct sock *sk, __be32 loc_addr, __be32 rmt_addr,
net/ipv4/igmp.c
2781
void ip_mc_drop_socket(struct sock *sk)
net/ipv4/inet_connection_sock.c
1015
bool inet_csk_reqsk_queue_drop(struct sock *sk, struct request_sock *req)
net/ipv4/inet_connection_sock.c
1020
void inet_csk_reqsk_queue_drop_and_put(struct sock *sk, struct request_sock *req)
net/ipv4/inet_connection_sock.c
1031
struct sock *sk_listener = req->rsk_listener;
net/ipv4/inet_connection_sock.c
1038
struct sock *nsk;
net/ipv4/inet_connection_sock.c
112
bool inet_rcv_saddr_any(const struct sock *sk)
net/ipv4/inet_connection_sock.c
1152
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
1282
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
1303
static int inet_ulp_can_listen(const struct sock *sk)
net/ipv4/inet_connection_sock.c
131
bool inet_sk_get_local_port_range(const struct sock *sk, int *low, int *high)
net/ipv4/inet_connection_sock.c
1322
int inet_csk_listen_start(struct sock *sk)
net/ipv4/inet_connection_sock.c
1358
static void inet_child_forget(struct sock *sk, struct request_sock *req,
net/ipv4/inet_connection_sock.c
1359
struct sock *child)
net/ipv4/inet_connection_sock.c
1382
struct sock *inet_csk_reqsk_queue_add(struct sock *sk,
net/ipv4/inet_connection_sock.c
1384
struct sock *child)
net/ipv4/inet_connection_sock.c
1407
struct sock *inet_csk_complete_hashdance(struct sock *sk, struct sock *child,
net/ipv4/inet_connection_sock.c
1456
void inet_csk_listen_stop(struct sock *sk)
net/ipv4/inet_connection_sock.c
1471
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
157
static bool inet_bind_conflict(const struct sock *sk, struct sock *sk2,
net/ipv4/inet_connection_sock.c
187
static bool __inet_bhash2_conflict(const struct sock *sk, struct sock *sk2,
net/ipv4/inet_connection_sock.c
205
static bool inet_bhash2_conflict(const struct sock *sk,
net/ipv4/inet_connection_sock.c
211
struct sock *sk2;
net/ipv4/inet_connection_sock.c
227
static int inet_csk_bind_conflict(const struct sock *sk,
net/ipv4/inet_connection_sock.c
235
struct sock *sk2;
net/ipv4/inet_connection_sock.c
274
static bool inet_bhash2_addr_any_conflict(const struct sock *sk, int port, int l3mdev,
net/ipv4/inet_connection_sock.c
316
inet_csk_find_open_port(const struct sock *sk, struct inet_bind_bucket **tb_ret,
net/ipv4/inet_connection_sock.c
413
const struct sock *sk)
net/ipv4/inet_connection_sock.c
443
void inet_csk_update_fastreuse(const struct sock *sk,
net/ipv4/inet_connection_sock.c
501
int inet_csk_get_port(struct sock *sk, unsigned short snum)
net/ipv4/inet_connection_sock.c
602
static int inet_csk_wait_for_connect(struct sock *sk, long timeo)
net/ipv4/inet_connection_sock.c
650
struct sock *inet_csk_accept(struct sock *sk, struct proto_accept_arg *arg)
net/ipv4/inet_connection_sock.c
655
struct sock *newsk;
net/ipv4/inet_connection_sock.c
720
void inet_csk_init_xmit_timers(struct sock *sk,
net/ipv4/inet_connection_sock.c
733
void inet_csk_clear_xmit_timers(struct sock *sk)
net/ipv4/inet_connection_sock.c
745
void inet_csk_clear_xmit_timers_sync(struct sock *sk)
net/ipv4/inet_connection_sock.c
760
struct dst_entry *inet_csk_route_req(const struct sock *sk,
net/ipv4/inet_connection_sock.c
795
struct dst_entry *inet_csk_route_child_sock(const struct sock *sk,
net/ipv4/inet_connection_sock.c
796
struct sock *newsk,
net/ipv4/inet_connection_sock.c
853
reqsk_alloc_noprof(const struct request_sock_ops *ops, struct sock *sk_listener,
net/ipv4/inet_connection_sock.c
885
struct sock *sk_listener,
net/ipv4/inet_connection_sock.c
919
struct sock *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
921
struct sock *req_sk, *nreq_sk;
net/ipv4/inet_connection_sock.c
937
offsetof(struct sock, sk_dontcopy_begin));
net/ipv4/inet_connection_sock.c
939
req->rsk_ops->obj_size - offsetof(struct sock, sk_dontcopy_end),
net/ipv4/inet_connection_sock.c
982
struct sock *sk = req_to_sk(req);
net/ipv4/inet_connection_sock.c
998
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
580
const struct sock *sk)
net/ipv4/inet_diag.c
594
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
986
int inet_diag_handler_get_info(struct sk_buff *skb, struct sock *sk)
net/ipv4/inet_fragment.c
505
struct sock *sk = skb->sk;
net/ipv4/inet_fragment.c
606
struct sock *sk = is_skb_wmem(head) ? head->sk : NULL;
net/ipv4/inet_hashtables.c
1009
int inet_bhash2_update_saddr(struct sock *sk, void *saddr, int family)
net/ipv4/inet_hashtables.c
1015
void inet_bhash2_reset_saddr(struct sock *sk)
net/ipv4/inet_hashtables.c
1036
struct sock *sk, u64 port_offset,
net/ipv4/inet_hashtables.c
1039
struct sock *, __u16, struct inet_timewait_sock **,
net/ipv4/inet_hashtables.c
1184
inet_ehash_nolisten(sk, (struct sock *)tw, NULL);
net/ipv4/inet_hashtables.c
1232
struct sock *sk)
net/ipv4/inet_hashtables.c
127
const struct sock *sk)
net/ipv4/inet_hashtables.c
155
const struct sock *sk)
net/ipv4/inet_hashtables.c
168
const struct sock *sk;
net/ipv4/inet_hashtables.c
188
const struct sock *sk)
net/ipv4/inet_hashtables.c
200
void inet_bind_hash(struct sock *sk, struct inet_bind_bucket *tb,
net/ipv4/inet_hashtables.c
212
static void __inet_put_port(struct sock *sk)
net/ipv4/inet_hashtables.c
244
void inet_put_port(struct sock *sk)
net/ipv4/inet_hashtables.c
252
int __inet_inherit_port(const struct sock *sk, struct sock *child)
net/ipv4/inet_hashtables.c
332
inet_lhash2_bucket_sk(struct inet_hashinfo *h, struct sock *sk)
net/ipv4/inet_hashtables.c
349
static inline int compute_score(struct sock *sk, const struct net *net,
net/ipv4/inet_hashtables.c
387
struct sock *inet_lookup_reuseport(const struct net *net, struct sock *sk,
net/ipv4/inet_hashtables.c
393
struct sock *reuse_sk = NULL;
net/ipv4/inet_hashtables.c
413
static struct sock *inet_lhash2_lookup(const struct net *net,
net/ipv4/inet_hashtables.c
420
struct sock *sk, *result = NULL;
net/ipv4/inet_hashtables.c
440
struct sock *inet_lookup_run_sk_lookup(const struct net *net,
net/ipv4/inet_hashtables.c
447
struct sock *sk, *reuse_sk;
net/ipv4/inet_hashtables.c
462
struct sock *__inet_lookup_listener(const struct net *net,
net/ipv4/inet_hashtables.c
47
static u32 sk_ehashfn(const struct sock *sk)
net/ipv4/inet_hashtables.c
470
struct sock *result = NULL;
net/ipv4/inet_hashtables.c
507
void sock_gen_put(struct sock *sk)
net/ipv4/inet_hashtables.c
527
struct sock *__inet_lookup_established(const struct net *net,
net/ipv4/inet_hashtables.c
538
struct sock *sk;
net/ipv4/inet_hashtables.c
576
struct sock *sk, __u16 lport,
net/ipv4/inet_hashtables.c
593
struct sock *sk2;
net/ipv4/inet_hashtables.c
61
static bool sk_is_connect_bind(const struct sock *sk)
net/ipv4/inet_hashtables.c
634
sk_nulls_del_node_init_rcu((struct sock *)tw);
net/ipv4/inet_hashtables.c
653
static u64 inet_sk_port_offset(const struct sock *sk)
net/ipv4/inet_hashtables.c
665
static bool inet_ehash_lookup_by_sk(struct sock *sk,
net/ipv4/inet_hashtables.c
673
struct sock *esk;
net/ipv4/inet_hashtables.c
705
bool inet_ehash_insert(struct sock *sk, struct sock *osk, bool *found_dup_sk)
net/ipv4/inet_hashtables.c
742
bool inet_ehash_nolisten(struct sock *sk, struct sock *osk, bool *found_dup_sk)
net/ipv4/inet_hashtables.c
758
static int inet_reuseport_add_sock(struct sock *sk,
net/ipv4/inet_hashtables.c
764
struct sock *sk2;
net/ipv4/inet_hashtables.c
781
int inet_hash(struct sock *sk)
net/ipv4/inet_hashtables.c
819
void inet_unhash(struct sock *sk)
net/ipv4/inet_hashtables.c
854
int l3mdev, const struct sock *sk)
net/ipv4/inet_hashtables.c
864
unsigned short port, int l3mdev, const struct sock *sk)
net/ipv4/inet_hashtables.c
887
unsigned short port, int l3mdev, const struct sock *sk)
net/ipv4/inet_hashtables.c
899
inet_bhash2_addr_any_hashbucket(const struct sock *sk, const struct net *net, int port)
net/ipv4/inet_hashtables.c
914
static void inet_update_saddr(struct sock *sk, void *saddr, int family)
net/ipv4/inet_hashtables.c
927
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
439
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
1292
static int ip_setup_cork(struct sock *sk, struct inet_cork *cork,
net/ipv4/ip_output.c
1357
int ip_append_data(struct sock *sk, struct flowi4 *fl4,
net/ipv4/ip_output.c
1396
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
1519
int ip_push_pending_frames(struct sock *sk, struct flowi4 *fl4)
net/ipv4/ip_output.c
1534
static void __ip_flush_pending_frames(struct sock *sk,
net/ipv4/ip_output.c
1546
void ip_flush_pending_frames(struct sock *sk)
net/ipv4/ip_output.c
1551
struct sk_buff *ip_make_skb(struct sock *sk,
net/ipv4/ip_output.c
1602
void ip_send_unicast_reply(struct sock *sk, const struct sock *orig_sk,
net/ipv4/ip_output.c
1671
skb_set_owner_edemux(nskb, (struct sock *)orig_sk);
net/ipv4/ip_output.c
200
static int ip_finish_output2(struct net *net, struct sock *sk, struct sk_buff *skb)
net/ipv4/ip_output.c
249
static int ip_finish_output_gso(struct net *net, struct sock *sk,
net/ipv4/ip_output.c
297
static int __ip_finish_output(struct net *net, struct sock *sk, struct sk_buff *skb)
net/ipv4/ip_output.c
318
static int ip_finish_output(struct net *net, struct sock *sk, struct sk_buff *skb)
net/ipv4/ip_output.c
334
static int ip_mc_finish_output(struct net *net, struct sock *sk,
net/ipv4/ip_output.c
368
int ip_mc_output(struct net *net, struct sock *sk, struct sk_buff *skb)
net/ipv4/ip_output.c
428
int ip_output(struct net *net, struct sock *sk, struct sk_buff *skb)
net/ipv4/ip_output.c
463
int __ip_queue_xmit(struct sock *sk, struct sk_buff *skb, struct flowi *fl,
net/ipv4/ip_output.c
546
int ip_queue_xmit(struct sock *sk, struct sk_buff *skb, struct flowi *fl)
net/ipv4/ip_output.c
576
static int ip_fragment(struct net *net, struct sock *sk, struct sk_buff *skb,
net/ipv4/ip_output.c
578
int (*output)(struct net *, struct sock *, struct sk_buff *))
net/ipv4/ip_output.c
761
int ip_do_fragment(struct net *net, struct sock *sk, struct sk_buff *skb,
net/ipv4/ip_output.c
762
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
950
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, int *addr_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
1040
struct sock *mroute_sk;
net/ipv4/ipmr.c
1349
static void mrtsock_destruct(struct sock *sk)
net/ipv4/ipmr.c
1375
int ip_mroute_setsockopt(struct sock *sk, int optname, sockptr_t optval,
net/ipv4/ipmr.c
1568
int ipmr_sk_ioctl(struct sock *sk, unsigned int cmd, void __user *arg)
net/ipv4/ipmr.c
1590
int ip_mroute_getsockopt(struct sock *sk, int optname, sockptr_t optval,
net/ipv4/ipmr.c
1637
int ipmr_ioctl(struct sock *sk, int cmd, void *arg)
net/ipv4/ipmr.c
1705
int ipmr_compat_ioctl(struct sock *sk, unsigned int cmd, void __user *arg)
net/ipv4/ipmr.c
1820
static inline int ipmr_forward_finish(struct net *net, struct sock *sk,
net/ipv4/ipmr.c
2187
struct sock *mroute_sk;
net/ipv4/ipmr.c
2295
int ip_mr_output(struct net *net, struct sock *sk, struct sk_buff *skb)
net/ipv4/netfilter.c
21
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
1414
static int do_arpt_set_ctl(struct sock *sk, int cmd, sockptr_t arg,
net/ipv4/netfilter/arp_tables.c
1443
static int do_arpt_get_ctl(struct sock *sk, int cmd, void __user *user, int *len)
net/ipv4/netfilter/ip_tables.c
1621
do_ipt_set_ctl(struct sock *sk, int cmd, sockptr_t arg, unsigned int len)
net/ipv4/netfilter/ip_tables.c
1650
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
1015
static struct sock *ping_get_first(struct seq_file *seq, int start)
net/ipv4/ping.c
1017
struct sock *sk;
net/ipv4/ping.c
1041
static struct sock *ping_get_next(struct seq_file *seq, struct sock *sk)
net/ipv4/ping.c
1055
static struct sock *ping_get_idx(struct seq_file *seq, loff_t pos)
net/ipv4/ping.c
1057
struct sock *sk = ping_get_first(seq, 0);
net/ipv4/ping.c
1085
struct sock *sk;
net/ipv4/ping.c
1104
static void ping_v4_format_sock(struct sock *sp, struct seq_file *f,
net/ipv4/ping.c
144
void ping_unhash(struct sock *sk)
net/ipv4/ping.c
160
static struct sock *ping_lookup(struct net *net, struct sk_buff *skb, u16 ident)
net/ipv4/ping.c
163
struct sock *sk = NULL;
net/ipv4/ping.c
251
int ping_init_sock(struct sock *sk)
net/ipv4/ping.c
283
void ping_close(struct sock *sk, long timeout)
net/ipv4/ping.c
293
static int ping_pre_connect(struct sock *sk, struct sockaddr_unsized *uaddr,
net/ipv4/ping.c
307
static int ping_check_bind_addr(struct sock *sk, struct inet_sock *isk,
net/ipv4/ping.c
394
static void ping_set_saddr(struct sock *sk, struct sockaddr_unsized *saddr)
net/ipv4/ping.c
416
int ping_bind(struct sock *sk, struct sockaddr_unsized *uaddr, int addr_len)
net/ipv4/ping.c
498
struct sock *sk;
net/ipv4/ping.c
636
static int ping_v4_push_pending_frames(struct sock *sk, struct pingfakehdr *pfh,
net/ipv4/ping.c
697
static int ping_v4_sendmsg(struct sock *sk, struct msghdr *msg, size_t len)
net/ipv4/ping.c
75
int ping_get_port(struct sock *sk, unsigned short ident)
net/ipv4/ping.c
80
struct sock *sk2 = NULL;
net/ipv4/ping.c
851
int ping_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, int flags,
net/ipv4/ping.c
942
static enum skb_drop_reason __ping_queue_rcv_skb(struct sock *sk,
net/ipv4/ping.c
957
int ping_queue_rcv_skb(struct sock *sk, struct sk_buff *skb)
net/ipv4/ping.c
972
struct sock *sk;
net/ipv4/raw.c
1015
struct sock *sk;
net/ipv4/raw.c
1035
static void raw_sock_seq_show(struct seq_file *seq, struct sock *sp, int i)
net/ipv4/raw.c
108
void raw_unhash_sk(struct sock *sk)
net/ipv4/raw.c
119
bool raw_v4_match(struct net *net, const struct sock *sk, unsigned short num,
net/ipv4/raw.c
137
static int icmp_filter(const struct sock *sk, const struct sk_buff *skb)
net/ipv4/raw.c
170
struct sock *sk;
net/ipv4/raw.c
208
static void raw_err(struct sock *sk, struct sk_buff *skb, u32 info)
net/ipv4/raw.c
279
struct sock *sk;
net/ipv4/raw.c
296
static int raw_rcv_skb(struct sock *sk, struct sk_buff *skb)
net/ipv4/raw.c
311
int raw_rcv(struct sock *sk, struct sk_buff *skb)
net/ipv4/raw.c
326
static int raw_send_hdrinc(struct sock *sk, struct flowi4 *fl4,
net/ipv4/raw.c
482
static int raw_sendmsg(struct sock *sk, struct msghdr *msg, size_t len)
net/ipv4/raw.c
683
static void raw_close(struct sock *sk, long timeout)
net/ipv4/raw.c
693
static void raw_destroy(struct sock *sk)
net/ipv4/raw.c
701
static int raw_bind(struct sock *sk, struct sockaddr_unsized *uaddr,
net/ipv4/raw.c
741
static int raw_recvmsg(struct sock *sk, struct msghdr *msg, size_t len,
net/ipv4/raw.c
794
static int raw_sk_init(struct sock *sk)
net/ipv4/raw.c
804
static int raw_seticmpfilter(struct sock *sk, sockptr_t optval, int optlen)
net/ipv4/raw.c
813
static int raw_geticmpfilter(struct sock *sk, char __user *optval, int __user *optlen)
net/ipv4/raw.c
832
static int do_raw_setsockopt(struct sock *sk, int optname,
net/ipv4/raw.c
844
static int raw_setsockopt(struct sock *sk, int level, int optname,
net/ipv4/raw.c
852
static int do_raw_getsockopt(struct sock *sk, int optname,
net/ipv4/raw.c
864
static int raw_getsockopt(struct sock *sk, int level, int optname,
net/ipv4/raw.c
872
static int raw_ioctl(struct sock *sk, int cmd, int *karg)
net/ipv4/raw.c
902
static int compat_raw_ioctl(struct sock *sk, unsigned int cmd, unsigned long arg)
net/ipv4/raw.c
91
int raw_hash_sk(struct sock *sk)
net/ipv4/raw.c
918
int raw_abort(struct sock *sk, int err)
net/ipv4/raw.c
961
static struct sock *raw_get_first(struct seq_file *seq, int bucket)
net/ipv4/raw.c
966
struct sock *sk;
net/ipv4/raw.c
979
static struct sock *raw_get_next(struct seq_file *seq, struct sock *sk)
net/ipv4/raw.c
992
static struct sock *raw_get_idx(struct seq_file *seq, loff_t pos)
net/ipv4/raw.c
994
struct sock *sk = raw_get_first(seq, 0);
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
1070
static void ip_rt_update_pmtu(struct dst_entry *dst, struct sock *sk,
net/ipv4/route.c
1104
static void __ipv4_sk_update_pmtu(struct sk_buff *skb, struct sock *sk, u32 mtu)
net/ipv4/route.c
1122
void ipv4_sk_update_pmtu(struct sk_buff *skb, struct sock *sk, u32 mtu)
net/ipv4/route.c
1192
void ipv4_sk_redirect(struct sk_buff *skb, struct sock *sk)
net/ipv4/route.c
1269
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
2930
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
265
static int cookie_tcp_reqsk_init(struct sock *sk, struct sk_buff *skb,
net/ipv4/syncookies.c
301
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
1011
void tcp_remove_empty_skb(struct sock *sk)
net/ipv4/tcp.c
1024
static int tcp_downgrade_zcopy_pure(struct sock *sk, struct sk_buff *skb)
net/ipv4/tcp.c
1040
int tcp_wmem_schedule(struct sock *sk, int copy)
net/ipv4/tcp.c
1065
int tcp_sendmsg_fastopen(struct sock *sk, struct msghdr *msg, int *copied,
net/ipv4/tcp.c
1113
void tcp_rate_check_app_limited(struct sock *sk)
net/ipv4/tcp.c
1130
int tcp_sendmsg_locked(struct sock *sk, struct msghdr *msg, size_t size)
net/ipv4/tcp.c
1460
int tcp_sendmsg(struct sock *sk, struct msghdr *msg, size_t size)
net/ipv4/tcp.c
1472
void tcp_splice_eof(struct socket *sock)
net/ipv4/tcp.c
1474
struct sock *sk = sock->sk;
net/ipv4/tcp.c
1493
static int tcp_recv_urg(struct sock *sk, struct msghdr *msg, int len, int flags)
net/ipv4/tcp.c
1537
static int tcp_peek_sndq(struct sock *sk, struct msghdr *msg, int len)
net/ipv4/tcp.c
1566
void __tcp_cleanup_rbuf(struct sock *sk, int copied)
net/ipv4/tcp.c
1618
void tcp_cleanup_rbuf(struct sock *sk, int copied)
net/ipv4/tcp.c
1629
static void tcp_eat_recv_skb(struct sock *sk, struct sk_buff *skb)
net/ipv4/tcp.c
1641
struct sk_buff *tcp_recv_skb(struct sock *sk, u32 seq, u32 *off)
net/ipv4/tcp.c
1677
static int __tcp_read_sock(struct sock *sk, read_descriptor_t *desc,
net/ipv4/tcp.c
1755
int tcp_read_sock(struct sock *sk, read_descriptor_t *desc,
net/ipv4/tcp.c
1763
int tcp_read_sock_noack(struct sock *sk, read_descriptor_t *desc,
net/ipv4/tcp.c
1770
int tcp_read_skb(struct sock *sk, skb_read_actor_t recv_actor)
net/ipv4/tcp.c
1800
void tcp_read_done(struct sock *sk, size_t len)
net/ipv4/tcp.c
1839
int tcp_peek_len(struct socket *sock)
net/ipv4/tcp.c
1841
return tcp_inq(sock->sk);
net/ipv4/tcp.c
1846
int tcp_set_rcvlowat(struct sock *sk, int val)
net/ipv4/tcp.c
1893
int tcp_mmap(struct file *file, struct socket *sock,
net/ipv4/tcp.c
1963
static void tcp_zerocopy_set_hint_for_skb(struct sock *sk,
net/ipv4/tcp.c
2000
static int tcp_recvmsg_locked(struct sock *sk, struct msghdr *msg, size_t len,
net/ipv4/tcp.c
2003
static int receive_fallback_to_copy(struct sock *sk,
net/ipv4/tcp.c
2064
struct sock *sk,
net/ipv4/tcp.c
2171
static void tcp_zc_finalize_rx_tstamp(struct sock *sk,
net/ipv4/tcp.c
2223
static int tcp_zerocopy_receive(struct sock *sk,
net/ipv4/tcp.c
2375
void tcp_recv_timestamp(struct msghdr *msg, const struct sock *sk,
net/ipv4/tcp.c
2445
static int tcp_inq_hint(struct sock *sk)
net/ipv4/tcp.c
2474
static void tcp_xa_pool_commit_locked(struct sock *sk, struct tcp_xa_pool *p)
net/ipv4/tcp.c
2490
static void tcp_xa_pool_commit(struct sock *sk, struct tcp_xa_pool *p)
net/ipv4/tcp.c
2502
static int tcp_xa_pool_refill(struct sock *sk, struct tcp_xa_pool *p,
net/ipv4/tcp.c
2531
static int tcp_recvmsg_dmabuf(struct sock *sk, const struct sk_buff *skb,
net/ipv4/tcp.c
2687
static int tcp_recvmsg_locked(struct sock *sk, struct msghdr *msg, size_t len,
net/ipv4/tcp.c
2965
int tcp_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, int flags,
net/ipv4/tcp.c
2997
void tcp_set_state(struct sock *sk, int state)
net/ipv4/tcp.c
3092
static int tcp_close_state(struct sock *sk)
net/ipv4/tcp.c
3107
void tcp_shutdown(struct sock *sk, int how)
net/ipv4/tcp.c
3153
static bool tcp_out_of_memory(const struct sock *sk)
net/ipv4/tcp.c
3161
bool tcp_check_oom(const struct sock *sk, int shift)
net/ipv4/tcp.c
3175
void __tcp_close(struct sock *sk, long timeout)
net/ipv4/tcp.c
331
void tcp_enter_memory_pressure(struct sock *sk)
net/ipv4/tcp.c
3347
void tcp_close(struct sock *sk, long timeout)
net/ipv4/tcp.c
3367
static void tcp_rtx_queue_purge(struct sock *sk)
net/ipv4/tcp.c
3384
void tcp_write_queue_purge(struct sock *sk)
net/ipv4/tcp.c
3400
int tcp_disconnect(struct sock *sk, int flags)
net/ipv4/tcp.c
346
void tcp_leave_memory_pressure(struct sock *sk)
net/ipv4/tcp.c
3548
static inline bool tcp_can_repair_sock(const struct sock *sk)
net/ipv4/tcp.c
3586
static int tcp_repair_options_est(struct sock *sk, sockptr_t optbuf,
net/ipv4/tcp.c
3639
static void tcp_enable_tx_delay(struct sock *sk, int val)
net/ipv4/tcp.c
3679
void __tcp_sock_set_cork(struct sock *sk, bool on)
net/ipv4/tcp.c
3693
void tcp_sock_set_cork(struct sock *sk, bool on)
net/ipv4/tcp.c
3707
void __tcp_sock_set_nodelay(struct sock *sk, bool on)
net/ipv4/tcp.c
3717
void tcp_sock_set_nodelay(struct sock *sk)
net/ipv4/tcp.c
3725
static void __tcp_sock_set_quickack(struct sock *sk, int val)
net/ipv4/tcp.c
3742
void tcp_sock_set_quickack(struct sock *sk, int val)
net/ipv4/tcp.c
3750
int tcp_sock_set_syncnt(struct sock *sk, int val)
net/ipv4/tcp.c
3760
int tcp_sock_set_user_timeout(struct sock *sk, int val)
net/ipv4/tcp.c
3773
int tcp_sock_set_keepidle_locked(struct sock *sk, int val)
net/ipv4/tcp.c
3796
int tcp_sock_set_keepidle(struct sock *sk, int val)
net/ipv4/tcp.c
3807
int tcp_sock_set_keepintvl(struct sock *sk, int val)
net/ipv4/tcp.c
3817
int tcp_sock_set_keepcnt(struct sock *sk, int val)
net/ipv4/tcp.c
3828
int tcp_set_window_clamp(struct sock *sk, int val)
net/ipv4/tcp.c
3860
int tcp_sock_set_maxseg(struct sock *sk, int val)
net/ipv4/tcp.c
3876
int do_tcp_setsockopt(struct sock *sk, int level, int optname,
net/ipv4/tcp.c
410
void tcp_md5_destruct_sock(struct sock *sk)
net/ipv4/tcp.c
4211
int tcp_setsockopt(struct sock *sk, int level, int optname, sockptr_t optval,
net/ipv4/tcp.c
4244
void tcp_get_info(struct sock *sk, struct tcp_info *info)
net/ipv4/tcp.c
429
void tcp_init_sock(struct sock *sk)
net/ipv4/tcp.c
4443
struct sk_buff *tcp_get_timestamping_opt_stats(const struct sock *sk,
net/ipv4/tcp.c
4510
int do_tcp_getsockopt(struct sock *sk, int level,
net/ipv4/tcp.c
4887
int tcp_getsockopt(struct sock *sk, int level, int optname, char __user *optval,
net/ipv4/tcp.c
491
static void tcp_tx_timestamp(struct sock *sk, struct sockcm_cookie *sockc)
net/ipv4/tcp.c
4946
tcp_inbound_md5_hash(const struct sock *sk, const struct sk_buff *skb,
net/ipv4/tcp.c
4983
tcp_inbound_md5_hash(const struct sock *sk, const struct sk_buff *skb,
net/ipv4/tcp.c
4994
tcp_inbound_hash(struct sock *sk, const struct request_sock *req,
net/ipv4/tcp.c
5060
void tcp_done(struct sock *sk)
net/ipv4/tcp.c
5087
int tcp_abort(struct sock *sk, int err)
net/ipv4/tcp.c
519
bool tcp_stream_memory_free(const struct sock *sk, int wake)
net/ipv4/tcp.c
528
static bool tcp_stream_is_readable(struct sock *sk, int target)
net/ipv4/tcp.c
542
__poll_t tcp_poll(struct file *file, struct socket *sock, poll_table *wait)
net/ipv4/tcp.c
545
struct sock *sk = sock->sk;
net/ipv4/tcp.c
550
sock_poll_wait(file, sock, wait);
net/ipv4/tcp.c
649
int tcp_ioctl(struct sock *sk, int cmd, int *karg)
net/ipv4/tcp.c
707
void tcp_skb_entail(struct sock *sk, struct sk_buff *skb)
net/ipv4/tcp.c
741
static bool tcp_should_autocork(struct sock *sk, struct sk_buff *skb,
net/ipv4/tcp.c
751
void tcp_push(struct sock *sk, int flags, int mss_now,
net/ipv4/tcp.c
799
static int __tcp_splice_read(struct sock *sk, struct tcp_splice_state *tss)
net/ipv4/tcp.c
822
ssize_t tcp_splice_read(struct socket *sock, loff_t *ppos,
net/ipv4/tcp.c
826
struct sock *sk = sock->sk;
net/ipv4/tcp.c
847
timeo = sock_rcvtimeo(sk, sock->file->f_flags & O_NONBLOCK);
net/ipv4/tcp.c
920
void sk_forced_mem_schedule(struct sock *sk, int size)
net/ipv4/tcp.c
940
struct sk_buff *tcp_stream_alloc_skb(struct sock *sk, gfp_t gfp,
net/ipv4/tcp.c
971
static unsigned int tcp_xmit_size_goal(struct sock *sk, u32 mss_now,
net/ipv4/tcp.c
995
int tcp_send_mss(struct sock *sk, int *size_goal, int flags)
net/ipv4/tcp_ao.c
1076
static int tcp_ao_cache_traffic_keys(const struct sock *sk,
net/ipv4/tcp_ao.c
1094
void tcp_ao_connect_init(struct sock *sk)
net/ipv4/tcp_ao.c
113
struct tcp_ao_key *tcp_ao_established_key(const struct sock *sk,
net/ipv4/tcp_ao.c
1157
void tcp_ao_established(struct sock *sk)
net/ipv4/tcp_ao.c
1171
void tcp_ao_finish_connect(struct sock *sk, struct sk_buff *skb)
net/ipv4/tcp_ao.c
1190
int tcp_ao_copy_all_matching(const struct sock *sk, struct sock *newsk,
net/ipv4/tcp_ao.c
1292
static bool tcp_ao_can_set_current_rnext(struct sock *sk)
net/ipv4/tcp_ao.c
1300
static int tcp_ao_verify_ipv4(struct sock *sk, struct tcp_ao_add *cmd,
net/ipv4/tcp_ao.c
1452
static int tcp_ao_verify_ipv6(struct sock *sk, struct tcp_ao_add *cmd,
net/ipv4/tcp_ao.c
1516
static int tcp_ao_verify_ipv6(struct sock *sk, struct tcp_ao_add *cmd,
net/ipv4/tcp_ao.c
1524
static struct tcp_ao_info *setsockopt_ao_info(struct sock *sk)
net/ipv4/tcp_ao.c
1536
static struct tcp_ao_info *getsockopt_ao_info(struct sock *sk)
net/ipv4/tcp_ao.c
1549
static struct tcp_ao_key *tcp_ao_key_alloc(struct sock *sk,
net/ipv4/tcp_ao.c
1598
static int tcp_ao_add_cmd(struct sock *sk, unsigned short int family,
net/ipv4/tcp_ao.c
1764
static int tcp_ao_delete_key(struct sock *sk, struct tcp_ao_info *ao_info,
net/ipv4/tcp_ao.c
1814
static int tcp_ao_del_cmd(struct sock *sk, unsigned short int family,
net/ipv4/tcp_ao.c
1940
static int tcp_ao_required_verify(struct sock *sk)
net/ipv4/tcp_ao.c
195
static struct tcp_ao_key *__tcp_ao_do_lookup(const struct sock *sk, int l3index,
net/ipv4/tcp_ao.c
1960
static int tcp_ao_info_cmd(struct sock *sk, unsigned short int family,
net/ipv4/tcp_ao.c
2049
int tcp_parse_ao(struct sock *sk, int cmd, unsigned short int family,
net/ipv4/tcp_ao.c
2068
int tcp_v4_parse_ao(struct sock *sk, int cmd, sockptr_t optval, int optlen)
net/ipv4/tcp_ao.c
2108
static int tcp_ao_copy_mkts_to_user(const struct sock *sk,
net/ipv4/tcp_ao.c
220
struct tcp_ao_key *tcp_ao_do_lookup(const struct sock *sk, int l3index,
net/ipv4/tcp_ao.c
2308
int tcp_ao_get_mkts(struct sock *sk, sockptr_t optval, sockptr_t optlen)
net/ipv4/tcp_ao.c
2321
int tcp_ao_get_sock_info(struct sock *sk, sockptr_t optval, sockptr_t optlen)
net/ipv4/tcp_ao.c
2376
int tcp_ao_set_repair(struct sock *sk, sockptr_t optval, unsigned int optlen)
net/ipv4/tcp_ao.c
2411
int tcp_ao_get_repair(struct sock *sk, sockptr_t optval, sockptr_t optlen)
net/ipv4/tcp_ao.c
245
static struct tcp_ao_key *tcp_ao_copy_key(struct sock *sk,
net/ipv4/tcp_ao.c
286
static void tcp_ao_sk_omem_free(struct sock *sk, struct tcp_ao_info *ao)
net/ipv4/tcp_ao.c
296
void tcp_ao_destroy_sock(struct sock *sk, bool twsk)
net/ipv4/tcp_ao.c
330
atomic_sub(omem, &(((struct sock *)tp)->sk_omem_alloc));
net/ipv4/tcp_ao.c
375
const struct sock *sk,
net/ipv4/tcp_ao.c
389
const struct sock *sk,
net/ipv4/tcp_ao.c
458
const struct sock *sk,
net/ipv4/tcp_ao.c
52
bool tcp_ao_ignore_icmp(const struct sock *sk, int family, int type, int code)
net/ipv4/tcp_ao.c
623
const struct sock *sk, const struct sk_buff *skb,
net/ipv4/tcp_ao.c
673
const struct sock *sk, const struct sk_buff *skb,
net/ipv4/tcp_ao.c
702
struct tcp_ao_key *tcp_v4_ao_lookup_rsk(const struct sock *sk,
net/ipv4/tcp_ao.c
714
struct tcp_ao_key *tcp_v4_ao_lookup(const struct sock *sk, struct sock *addr_sk,
net/ipv4/tcp_ao.c
724
int tcp_ao_prepare_reset(const struct sock *sk, struct sk_buff *skb,
net/ipv4/tcp_ao.c
809
int tcp_ao_transmit_skb(struct sock *sk, struct sk_buff *skb,
net/ipv4/tcp_ao.c
847
const struct sock *sk, const struct sk_buff *skb,
net/ipv4/tcp_ao.c
865
void tcp_ao_syncookie(struct sock *sk, const struct sk_buff *skb,
net/ipv4/tcp_ao.c
901
tcp_ao_verify_hash(const struct sock *sk, const struct sk_buff *skb,
net/ipv4/tcp_ao.c
943
tcp_inbound_ao_hash(struct sock *sk, const struct sk_buff *skb,
net/ipv4/tcp_bbr.c
1016
static void bbr_update_model(struct sock *sk, const struct rate_sample *rs)
net/ipv4/tcp_bbr.c
1027
__bpf_kfunc static void bbr_main(struct sock *sk, u32 ack, int flag, const struct rate_sample *rs)
net/ipv4/tcp_bbr.c
1039
__bpf_kfunc static void bbr_init(struct sock *sk)
net/ipv4/tcp_bbr.c
1081
__bpf_kfunc static u32 bbr_sndbuf_expand(struct sock *sk)
net/ipv4/tcp_bbr.c
1090
__bpf_kfunc static u32 bbr_undo_cwnd(struct sock *sk)
net/ipv4/tcp_bbr.c
1101
__bpf_kfunc static u32 bbr_ssthresh(struct sock *sk)
net/ipv4/tcp_bbr.c
1107
static size_t bbr_get_info(struct sock *sk, u32 ext, int *attr,
net/ipv4/tcp_bbr.c
1129
__bpf_kfunc static void bbr_set_state(struct sock *sk, u8 new_state)
net/ipv4/tcp_bbr.c
204
static void bbr_check_probe_rtt_done(struct sock *sk);
net/ipv4/tcp_bbr.c
207
static bool bbr_full_bw_reached(const struct sock *sk)
net/ipv4/tcp_bbr.c
215
static u32 bbr_max_bw(const struct sock *sk)
net/ipv4/tcp_bbr.c
223
static u32 bbr_bw(const struct sock *sk)
net/ipv4/tcp_bbr.c
233
static u16 bbr_extra_acked(const struct sock *sk)
net/ipv4/tcp_bbr.c
244
static u64 bbr_rate_bytes_per_sec(struct sock *sk, u64 rate, int gain)
net/ipv4/tcp_bbr.c
256
static unsigned long bbr_bw_to_pacing_rate(struct sock *sk, u32 bw, int gain)
net/ipv4/tcp_bbr.c
266
static void bbr_init_pacing_rate_from_rtt(struct sock *sk)
net/ipv4/tcp_bbr.c
286
static void bbr_set_pacing_rate(struct sock *sk, u32 bw, int gain)
net/ipv4/tcp_bbr.c
299
__bpf_kfunc static u32 bbr_min_tso_segs(struct sock *sk)
net/ipv4/tcp_bbr.c
304
static u32 bbr_tso_segs_goal(struct sock *sk)
net/ipv4/tcp_bbr.c
321
static void bbr_save_cwnd(struct sock *sk)
net/ipv4/tcp_bbr.c
332
__bpf_kfunc static void bbr_cwnd_event(struct sock *sk, enum tcp_ca_event event)
net/ipv4/tcp_bbr.c
360
static u32 bbr_bdp(struct sock *sk, u32 bw, int gain)
net/ipv4/tcp_bbr.c
395
static u32 bbr_quantization_budget(struct sock *sk, u32 cwnd)
net/ipv4/tcp_bbr.c
413
static u32 bbr_inflight(struct sock *sk, u32 bw, int gain)
net/ipv4/tcp_bbr.c
437
static u32 bbr_packets_in_net_at_edt(struct sock *sk, u32 inflight_now)
net/ipv4/tcp_bbr.c
457
static u32 bbr_ack_aggregation_cwnd(struct sock *sk)
net/ipv4/tcp_bbr.c
481
struct sock *sk, const struct rate_sample *rs, u32 acked, u32 *new_cwnd)
net/ipv4/tcp_bbr.c
519
static void bbr_set_cwnd(struct sock *sk, const struct rate_sample *rs,
net/ipv4/tcp_bbr.c
554
static bool bbr_is_next_cycle_phase(struct sock *sk,
net/ipv4/tcp_bbr.c
591
static void bbr_advance_cycle_phase(struct sock *sk)
net/ipv4/tcp_bbr.c
601
static void bbr_update_cycle_phase(struct sock *sk,
net/ipv4/tcp_bbr.c
610
static void bbr_reset_startup_mode(struct sock *sk)
net/ipv4/tcp_bbr.c
617
static void bbr_reset_probe_bw_mode(struct sock *sk)
net/ipv4/tcp_bbr.c
626
static void bbr_reset_mode(struct sock *sk)
net/ipv4/tcp_bbr.c
635
static void bbr_reset_lt_bw_sampling_interval(struct sock *sk)
net/ipv4/tcp_bbr.c
647
static void bbr_reset_lt_bw_sampling(struct sock *sk)
net/ipv4/tcp_bbr.c
658
static void bbr_lt_bw_interval_done(struct sock *sk, u32 bw)
net/ipv4/tcp_bbr.c
688
static void bbr_lt_bw_sampling(struct sock *sk, const struct rate_sample *rs)
net/ipv4/tcp_bbr.c
761
static void bbr_update_bw(struct sock *sk, const struct rate_sample *rs)
net/ipv4/tcp_bbr.c
817
static void bbr_update_ack_aggregation(struct sock *sk,
net/ipv4/tcp_bbr.c
873
static void bbr_check_full_bw_reached(struct sock *sk,
net/ipv4/tcp_bbr.c
893
static void bbr_check_drain(struct sock *sk, const struct rate_sample *rs)
net/ipv4/tcp_bbr.c
908
static void bbr_check_probe_rtt_done(struct sock *sk)
net/ipv4/tcp_bbr.c
941
static void bbr_update_min_rtt(struct sock *sk, const struct rate_sample *rs)
net/ipv4/tcp_bbr.c
987
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
336
static int tcp_bpf_ioctl(struct sock *sk, int cmd, int *karg)
net/ipv4/tcp_bpf.c
354
static int tcp_bpf_recvmsg(struct sock *sk, struct msghdr *msg, size_t len,
net/ipv4/tcp_bpf.c
404
static int tcp_bpf_send_verdict(struct sock *sk, struct sk_psock *psock,
net/ipv4/tcp_bpf.c
408
struct sock *sk_redir;
net/ipv4/tcp_bpf.c
518
static int tcp_bpf_sendmsg(struct sock *sk, struct msghdr *msg, size_t size)
net/ipv4/tcp_bpf.c
677
struct sock *sk = strp->sk;
net/ipv4/tcp_bpf.c
709
int tcp_bpf_update_proto(struct sock *sk, struct sk_psock *psock, bool restore)
net/ipv4/tcp_bpf.c
753
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(struct sock *sk, enum tcp_ca_event event)
net/ipv4/tcp_cubic.c
324
__bpf_kfunc static void cubictcp_cong_avoid(struct sock *sk, u32 ack, u32 acked)
net/ipv4/tcp_cubic.c
341
__bpf_kfunc static u32 cubictcp_recalc_ssthresh(struct sock *sk)
net/ipv4/tcp_cubic.c
358
__bpf_kfunc static void cubictcp_state(struct sock *sk, u8 new_state)
net/ipv4/tcp_cubic.c
375
static u32 hystart_ack_delay(const struct sock *sk)
net/ipv4/tcp_cubic.c
386
static void hystart_update(struct sock *sk, u32 delay)
net/ipv4/tcp_cubic.c
452
__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
215
static size_t dctcp_get_info(struct sock *sk, u32 ext, int *attr,
net/ipv4/tcp_dctcp.c
243
__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
19
static inline void dctcp_ece_ack_update(struct sock *sk, enum tcp_ca_event evt,
net/ipv4/tcp_dctcp.h
4
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
386
static bool tcp_fastopen_queue_check(struct sock *sk)
net/ipv4/tcp_fastopen.c
424
static bool tcp_fastopen_no_cookie(const struct sock *sk,
net/ipv4/tcp_fastopen.c
437
struct sock *tcp_try_fastopen(struct sock *sk, struct sk_buff *skb,
net/ipv4/tcp_fastopen.c
445
struct sock *child;
net/ipv4/tcp_fastopen.c
505
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
537
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
1016
static void tcp_event_data_recv(struct sock *sk, struct sk_buff *skb)
net/ipv4/tcp_input.c
1071
static void tcp_rtt_estimator(struct sock *sk, long mrtt_us)
net/ipv4/tcp_input.c
1139
void tcp_update_pacing_rate(struct sock *sk)
net/ipv4/tcp_input.c
1176
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
1276
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
2451
static void tcp_add_reno_sack(struct sock *sk, int num_dupack, bool ece_ack)
net/ipv4/tcp_input.c
2469
static void tcp_remove_reno_sacks(struct sock *sk, int acked, bool ece_ack)
net/ipv4/tcp_input.c
2523
static void tcp_timeout_mark_lost(struct sock *sk)
net/ipv4/tcp_input.c
2553
void tcp_enter_loss(struct sock *sk)
net/ipv4/tcp_input.c
2610
static bool tcp_check_sack_reneging(struct sock *sk, int *ack_flag)
net/ipv4/tcp_input.c
2743
const struct sock *sk = (const struct sock *)tp;
net/ipv4/tcp_input.c
2790
static bool tcp_any_retrans_done(const struct sock *sk)
net/ipv4/tcp_input.c
2809
static void tcp_retrans_stamp_cleanup(struct sock *sk)
net/ipv4/tcp_input.c
2815
static void DBGUNDO(struct sock *sk, const char *msg)
net/ipv4/tcp_input.c
2842
static void tcp_undo_cwnd_reduction(struct sock *sk, bool unmark_loss)
net/ipv4/tcp_input.c
2876
static bool tcp_is_non_sack_preventing_reopen(struct sock *sk)
net/ipv4/tcp_input.c
2892
static bool tcp_try_undo_recovery(struct sock *sk)
net/ipv4/tcp_input.c
2921
static bool tcp_try_undo_dsack(struct sock *sk)
net/ipv4/tcp_input.c
2937
static bool tcp_try_undo_loss(struct sock *sk, bool frto_undo)
net/ipv4/tcp_input.c
2970
static void tcp_init_cwnd_reduction(struct sock *sk)
net/ipv4/tcp_input.c
2984
void tcp_cwnd_reduction(struct sock *sk, int newly_acked_sacked, int newly_lost, int flag)
net/ipv4/tcp_input.c
3012
static inline void tcp_end_cwnd_reduction(struct sock *sk)
net/ipv4/tcp_input.c
3029
void tcp_enter_cwr(struct sock *sk)
net/ipv4/tcp_input.c
3042
static void tcp_try_keep_open(struct sock *sk)
net/ipv4/tcp_input.c
3056
static void tcp_try_to_open(struct sock *sk, int flag)
net/ipv4/tcp_input.c
3073
static void tcp_mtup_probe_failed(struct sock *sk)
net/ipv4/tcp_input.c
3082
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
3115
static void tcp_non_congestion_loss_retransmit(struct sock *sk)
net/ipv4/tcp_input.c
3134
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
4042
static void tcp_send_challenge_ack(struct sock *sk, bool accecn_reflector)
net/ipv4/tcp_input.c
4112
static void tcp_process_tlp_ack(struct sock *sk, u32 ack, int flag)
net/ipv4/tcp_input.c
4142
static void tcp_in_ack_event(struct sock *sk, int flag)
net/ipv4/tcp_input.c
4165
static void tcp_xmit_recovery(struct sock *sk, int rexmit)
net/ipv4/tcp_input.c
4183
static u32 tcp_newly_delivered(struct sock *sk, u32 prior_delivered,
net/ipv4/tcp_input.c
4220
static void tcp_rack_update_reo_wnd(struct sock *sk, struct rate_sample *rs)
net/ipv4/tcp_input.c
4246
static int tcp_ack(struct sock *sk, const struct sk_buff *skb, int flag)
net/ipv4/tcp_input.c
4797
static u32 tcp_tsval_replay(const struct sock *sk)
net/ipv4/tcp_input.c
4811
static enum skb_drop_reason tcp_disordered_ack_check(const struct sock *sk,
net/ipv4/tcp_input.c
4860
static enum skb_drop_reason tcp_sequence(const struct sock *sk,
net/ipv4/tcp_input.c
4890
void tcp_done_with_error(struct sock *sk, int err)
net/ipv4/tcp_input.c
4905
void tcp_reset(struct sock *sk, struct sk_buff *skb)
net/ipv4/tcp_input.c
4947
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
5028
static void tcp_dsack_set(struct sock *sk, u32 seq, u32 end_seq)
net/ipv4/tcp_input.c
5048
static void tcp_dsack_extend(struct sock *sk, u32 seq, u32 end_seq)
net/ipv4/tcp_input.c
5058
static void tcp_rcv_spurious_retrans(struct sock *sk,
net/ipv4/tcp_input.c
5092
static void tcp_send_dupack(struct sock *sk, const struct sk_buff *skb)
net/ipv4/tcp_input.c
5143
void tcp_sack_compress_send_ack(struct sock *sk)
net/ipv4/tcp_input.c
5170
static void tcp_sack_new_ofo_skb(struct sock *sk, u32 seq, u32 end_seq)
net/ipv4/tcp_input.c
5264
static bool tcp_try_coalesce(struct sock *sk,
net/ipv4/tcp_input.c
5299
static bool tcp_ooo_try_coalesce(struct sock *sk,
net/ipv4/tcp_input.c
5317
tcp_drop_reason(struct sock *sk, struct sk_buff *skb, enum skb_drop_reason reason)
net/ipv4/tcp_input.c
5326
static void tcp_ofo_queue(struct sock *sk)
net/ipv4/tcp_input.c
5374
static bool tcp_prune_ofo_queue(struct sock *sk, const struct sk_buff *in_skb);
net/ipv4/tcp_input.c
5375
static int tcp_prune_queue(struct sock *sk, const struct sk_buff *in_skb);
net/ipv4/tcp_input.c
5377
static bool tcp_can_ingest(const struct sock *sk, const struct sk_buff *skb)
net/ipv4/tcp_input.c
5384
static int tcp_try_rmem_schedule(struct sock *sk, const struct sk_buff *skb,
net/ipv4/tcp_input.c
5401
static void tcp_data_queue_ofo(struct sock *sk, struct sk_buff *skb)
net/ipv4/tcp_input.c
5552
static int __must_check tcp_queue_rcv(struct sock *sk, struct sk_buff *skb,
net/ipv4/tcp_input.c
5569
int tcp_send_rcvq(struct sock *sk, struct msghdr *msg, size_t size)
net/ipv4/tcp_input.c
5621
void tcp_data_ready(struct sock *sk)
net/ipv4/tcp_input.c
5627
static void tcp_data_queue(struct sock *sk, struct sk_buff *skb)
net/ipv4/tcp_input.c
5766
static struct sk_buff *tcp_collapse_one(struct sock *sk, struct sk_buff *skb,
net/ipv4/tcp_input.c
5792
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
5898
static void tcp_collapse_ofo_queue(struct sock *sk)
net/ipv4/tcp_input.c
5958
static bool tcp_prune_ofo_queue(struct sock *sk, const struct sk_buff *in_skb)
net/ipv4/tcp_input.c
6012
static int tcp_prune_queue(struct sock *sk, const struct sk_buff *in_skb)
net/ipv4/tcp_input.c
605
static void tcp_sndbuf_expand(struct sock *sk)
net/ipv4/tcp_input.c
6059
static bool tcp_should_expand_sndbuf(struct sock *sk)
net/ipv4/tcp_input.c
6094
static void tcp_new_space(struct sock *sk)
net/ipv4/tcp_input.c
6118
void __tcp_check_space(struct sock *sk)
net/ipv4/tcp_input.c
6125
static inline void tcp_data_snd_check(struct sock *sk)
net/ipv4/tcp_input.c
6134
static void __tcp_ack_snd_check(struct sock *sk, int ofo_possible)
net/ipv4/tcp_input.c
6211
static inline void tcp_ack_snd_check(struct sock *sk)
net/ipv4/tcp_input.c
6230
static void tcp_check_urg(struct sock *sk, const struct tcphdr *th)
net/ipv4/tcp_input.c
6296
static void tcp_urg(struct sock *sk, struct sk_buff *skb, const struct tcphdr *th)
net/ipv4/tcp_input.c
6329
static bool tcp_reset_check(const struct sock *sk, const struct sk_buff *skb)
net/ipv4/tcp_input.c
6341
static bool tcp_validate_incoming(struct sock *sk, struct sk_buff *skb,
net/ipv4/tcp_input.c
6519
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
6725
void tcp_init_transfer(struct sock *sk, int bpf_op, struct sk_buff *skb)
net/ipv4/tcp_input.c
6753
void tcp_finish_connect(struct sock *sk, struct sk_buff *skb)
net/ipv4/tcp_input.c
6784
static bool tcp_rcv_fastopen_synack(struct sock *sk, struct sk_buff *synack,
net/ipv4/tcp_input.c
6857
static void tcp_try_undo_spurious_syn(struct sock *sk)
net/ipv4/tcp_input.c
6872
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
7121
static void tcp_rcv_synrecv_state_fastopen(struct sock *sk)
net/ipv4/tcp_input.c
7170
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
7475
const struct sock *listen_sk,
net/ipv4/tcp_input.c
7504
tcp_bpf_ca_needs_ecn((struct sock *)req))
net/ipv4/tcp_input.c
7510
struct sk_buff *skb, const struct sock *sk)
net/ipv4/tcp_input.c
7545
static bool tcp_syn_flood_action(struct sock *sk, const char *proto)
net/ipv4/tcp_input.c
7580
static void tcp_reqsk_record_syn(const struct sock *sk,
net/ipv4/tcp_input.c
7615
struct sock *sk, struct tcphdr *th)
net/ipv4/tcp_input.c
7642
struct sock *sk, struct sk_buff *skb)
net/ipv4/tcp_input.c
7648
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
894
static inline void tcp_rcv_rtt_measure_ts(struct sock *sk,
net/ipv4/tcp_input.c
912
void tcp_rcvbuf_grow(struct sock *sk, u32 newval)
net/ipv4/tcp_input.c
961
void tcp_rcv_space_adjust(struct sock *sk)
net/ipv4/tcp_input.c
996
static void tcp_save_lrcv_flowlabel(struct sock *sk, const struct sk_buff *skb)
net/ipv4/tcp_ipv4.c
1016
ctl_sk = this_cpu_read(ipv4_tcp_sk.sock);
net/ipv4/tcp_ipv4.c
1035
static void tcp_v4_timewait_ack(struct sock *sk, struct sk_buff *skb,
net/ipv4/tcp_ipv4.c
1099
static void tcp_v4_reqsk_send_ack(const struct sock *sk, struct sk_buff *skb,
net/ipv4/tcp_ipv4.c
118
int tcp_twsk_unique(struct sock *sk, struct sock *sktw, void *twp)
net/ipv4/tcp_ipv4.c
1182
static int tcp_v4_send_synack(const struct sock *sk, struct dst_entry *dst,
net/ipv4/tcp_ipv4.c
1212
tcp_bpf_ca_needs_ecn((struct sock *)req))
net/ipv4/tcp_ipv4.c
1260
struct tcp_md5sig_key *__tcp_md5_do_lookup(const struct sock *sk, int l3index,
net/ipv4/tcp_ipv4.c
1304
static struct tcp_md5sig_key *tcp_md5_do_lookup_exact(const struct sock *sk,
net/ipv4/tcp_ipv4.c
1338
struct tcp_md5sig_key *tcp_v4_md5_lookup(const struct sock *sk,
net/ipv4/tcp_ipv4.c
1339
const struct sock *addr_sk)
net/ipv4/tcp_ipv4.c
1351
static int tcp_md5sig_info_add(struct sock *sk, gfp_t gfp)
net/ipv4/tcp_ipv4.c
1367
static int __tcp_md5_do_add(struct sock *sk, const union tcp_md5_addr *addr,
net/ipv4/tcp_ipv4.c
1416
int tcp_md5_do_add(struct sock *sk, const union tcp_md5_addr *addr,
net/ipv4/tcp_ipv4.c
1446
int tcp_md5_key_copy(struct sock *sk, const union tcp_md5_addr *addr,
net/ipv4/tcp_ipv4.c
1474
int tcp_md5_do_del(struct sock *sk, const union tcp_md5_addr *addr, int family,
net/ipv4/tcp_ipv4.c
1489
void tcp_clear_md5_list(struct sock *sk)
net/ipv4/tcp_ipv4.c
1505
static int tcp_v4_parse_md5_keys(struct sock *sk, int optname,
net/ipv4/tcp_ipv4.c
1604
const struct sock *sk, const struct sk_buff *skb)
net/ipv4/tcp_ipv4.c
1630
const struct sock *sk_listener,
net/ipv4/tcp_ipv4.c
1641
static struct dst_entry *tcp_v4_route_req(const struct sock *sk,
net/ipv4/tcp_ipv4.c
1682
int tcp_v4_conn_request(struct sock *sk, struct sk_buff *skb)
net/ipv4/tcp_ipv4.c
1702
struct sock *tcp_v4_syn_recv_sock(const struct sock *sk, struct sk_buff *skb,
net/ipv4/tcp_ipv4.c
1707
void (*opt_child_init)(struct sock *newsk,
net/ipv4/tcp_ipv4.c
1708
const struct sock *sk))
net/ipv4/tcp_ipv4.c
1714
struct sock *newsk;
net/ipv4/tcp_ipv4.c
1823
static struct sock *tcp_v4_cookie_check(struct sock *sk, struct sk_buff *skb)
net/ipv4/tcp_ipv4.c
1834
u16 tcp_v4_get_syncookie(struct sock *sk, struct iphdr *iph,
net/ipv4/tcp_ipv4.c
1859
int tcp_v4_do_rcv(struct sock *sk, struct sk_buff *skb)
net/ipv4/tcp_ipv4.c
1862
struct sock *rsk;
net/ipv4/tcp_ipv4.c
1892
struct sock *nsk = tcp_v4_cookie_check(sk, skb);
net/ipv4/tcp_ipv4.c
1940
struct sock *sk;
net/ipv4/tcp_ipv4.c
1973
bool tcp_add_backlog(struct sock *sk, struct sk_buff *skb,
net/ipv4/tcp_ipv4.c
206
static int tcp_v4_pre_connect(struct sock *sk, struct sockaddr_unsized *uaddr,
net/ipv4/tcp_ipv4.c
2156
struct sock *sk = NULL;
net/ipv4/tcp_ipv4.c
2202
struct sock *nsk;
net/ipv4/tcp_ipv4.c
222
int tcp_v4_connect(struct sock *sk, struct sockaddr_unsized *uaddr, int addr_len)
net/ipv4/tcp_ipv4.c
2380
struct sock *sk2 = inet_lookup_listener(net, skb, __tcp_hdrlen(th),
net/ipv4/tcp_ipv4.c
2417
void inet_sk_rx_dst_set(struct sock *sk, const struct sk_buff *skb)
net/ipv4/tcp_ipv4.c
2457
static void tcp4_destruct_sock(struct sock *sk)
net/ipv4/tcp_ipv4.c
2468
static int tcp_v4_init_sock(struct sock *sk)
net/ipv4/tcp_ipv4.c
2484
static void tcp_release_user_frags(struct sock *sk)
net/ipv4/tcp_ipv4.c
2495
void tcp_v4_destroy_sock(struct sock *sk)
net/ipv4/tcp_ipv4.c
2540
static bool seq_sk_match(struct seq_file *seq, const struct sock *sk)
net/ipv4/tcp_ipv4.c
2561
struct sock *sk;
net/ipv4/tcp_ipv4.c
2589
struct sock *sk = cur;
net/ipv4/tcp_ipv4.c
2640
struct sock *sk;
net/ipv4/tcp_ipv4.c
2666
struct sock *sk = cur;
net/ipv4/tcp_ipv4.c
2846
static void get_tcp4_sock(struct sock *sk, struct seq_file *f, int i)
net/ipv4/tcp_ipv4.c
2934
struct sock *sk = v;
net/ipv4/tcp_ipv4.c
2958
struct sock *sk;
net/ipv4/tcp_ipv4.c
3023
static struct sock *bpf_iter_tcp_resume_bucket(struct sock *first_sk,
net/ipv4/tcp_ipv4.c
3028
struct sock *sk;
net/ipv4/tcp_ipv4.c
3041
static struct sock *bpf_iter_tcp_resume_listening(struct seq_file *seq)
net/ipv4/tcp_ipv4.c
3049
struct sock *sk;
net/ipv4/tcp_ipv4.c
3071
static struct sock *bpf_iter_tcp_resume_established(struct seq_file *seq)
net/ipv4/tcp_ipv4.c
3079
struct sock *sk;
net/ipv4/tcp_ipv4.c
3101
static struct sock *bpf_iter_tcp_resume(struct seq_file *seq)
net/ipv4/tcp_ipv4.c
3105
struct sock *sk = NULL;
net/ipv4/tcp_ipv4.c
3124
struct sock **start_sk)
net/ipv4/tcp_ipv4.c
3129
struct sock *sk;
net/ipv4/tcp_ipv4.c
3153
struct sock **start_sk)
net/ipv4/tcp_ipv4.c
3158
struct sock *sk;
net/ipv4/tcp_ipv4.c
3182
struct sock **start_sk)
net/ipv4/tcp_ipv4.c
3205
static struct sock *bpf_iter_tcp_batch(struct seq_file *seq)
net/ipv4/tcp_ipv4.c
3209
struct sock *sk;
net/ipv4/tcp_ipv4.c
3268
struct sock *sk;
net/ipv4/tcp_ipv4.c
3300
struct sock *sk = v;
net/ipv4/tcp_ipv4.c
372
void tcp_v4_mtu_reduced(struct sock *sk)
net/ipv4/tcp_ipv4.c
3723
struct sock *sk;
net/ipv4/tcp_ipv4.c
3738
per_cpu(ipv4_tcp_sk.sock, cpu) = sk;
net/ipv4/tcp_ipv4.c
407
static void do_redirect(struct sk_buff *skb, struct sock *sk)
net/ipv4/tcp_ipv4.c
417
void tcp_req_err(struct sock *sk, u32 seq, bool abort)
net/ipv4/tcp_ipv4.c
442
void tcp_ld_RTO_revert(struct sock *sk, u32 seq)
net/ipv4/tcp_ipv4.c
506
struct sock *sk;
net/ipv4/tcp_ipv4.c
673
void tcp_v4_send_check(struct sock *sk, struct sk_buff *skb)
net/ipv4/tcp_ipv4.c
683
static bool tcp_v4_ao_sign_reset(const struct sock *sk, struct sk_buff *skb,
net/ipv4/tcp_ipv4.c
740
static void tcp_v4_send_reset(const struct sock *sk, struct sk_buff *skb,
net/ipv4/tcp_ipv4.c
754
struct sock *sk1 = NULL;
net/ipv4/tcp_ipv4.c
757
struct sock *ctl_sk;
net/ipv4/tcp_ipv4.c
885
BUILD_BUG_ON(offsetof(struct sock, sk_bound_dev_if) !=
net/ipv4/tcp_ipv4.c
893
ctl_sk = this_cpu_read(ipv4_tcp_sk.sock);
net/ipv4/tcp_ipv4.c
932
static void tcp_v4_send_ack(const struct sock *sk,
net/ipv4/tcp_ipv4.c
945
struct sock *ctl_sk;
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
292
static void tcp_time_wait_init(struct sock *sk, struct tcp_timewait_sock *tcptw)
net/ipv4/tcp_minisocks.c
327
void tcp_time_wait(struct sock *sk, int state, int timeo)
net/ipv4/tcp_minisocks.c
337
struct tcp_timewait_sock *tcptw = tcp_twsk((struct sock *)tw);
net/ipv4/tcp_minisocks.c
398
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
434
const struct sock *sk_listener,
net/ipv4/tcp_minisocks.c
455
rcv_wnd = tcp_rwnd_init_bpf((struct sock *)req);
net/ipv4/tcp_minisocks.c
472
static void tcp_ecn_openreq_child(struct sock *sk,
net/ipv4/tcp_minisocks.c
499
void tcp_ca_openreq_child(struct sock *sk, const struct dst_entry *dst)
net/ipv4/tcp_minisocks.c
549
struct sock *tcp_create_openreq_child(const struct sock *sk,
net/ipv4/tcp_minisocks.c
553
struct sock *newsk = inet_csk_clone_lock(sk, req, GFP_ATOMIC);
net/ipv4/tcp_minisocks.c
690
struct sock *tcp_check_req(struct sock *sk, struct sk_buff *skb,
net/ipv4/tcp_minisocks.c
696
struct sock *child;
net/ipv4/tcp_minisocks.c
992
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
1058
static unsigned int tcp_synack_options(const struct sock *sk,
net/ipv4/tcp_output.c
1139
bpf_skops_hdr_opt_len((struct sock *)sk, skb, req, syn_skb,
net/ipv4/tcp_output.c
1148
static unsigned int tcp_established_options(struct sock *sk, struct sk_buff *skb,
net/ipv4/tcp_output.c
119
static inline __u32 tcp_acceptable_seq(const struct sock *sk)
net/ipv4/tcp_output.c
1258
static void tcp_tsq_write(struct sock *sk)
net/ipv4/tcp_output.c
1276
static void tcp_tsq_handler(struct sock *sk)
net/ipv4/tcp_output.c
1298
struct sock *sk;
net/ipv4/tcp_output.c
1308
sk = (struct sock *)tp;
net/ipv4/tcp_output.c
1329
void tcp_release_cb(struct sock *sk)
net/ipv4/tcp_output.c
1382
struct sock *sk = skb->sk;
net/ipv4/tcp_output.c
1430
struct sock *sk = (struct sock *)tp;
net/ipv4/tcp_output.c
1438
static void tcp_update_skb_after_send(struct sock *sk, struct sk_buff *skb,
net/ipv4/tcp_output.c
145
static __u16 tcp_advertise_mss(struct sock *sk)
net/ipv4/tcp_output.c
1465
static void tcp_rate_skb_sent(struct sock *sk, struct sk_buff *skb)
net/ipv4/tcp_output.c
1497
INDIRECT_CALLABLE_DECLARE(int ip_queue_xmit(struct sock *sk, struct sk_buff *skb, struct flowi *fl));
net/ipv4/tcp_output.c
1498
INDIRECT_CALLABLE_DECLARE(int inet6_csk_xmit(struct sock *sk, struct sk_buff *skb, struct flowi *fl));
net/ipv4/tcp_output.c
1499
INDIRECT_CALLABLE_DECLARE(void tcp_v4_send_check(struct sock *sk, struct sk_buff *skb));
net/ipv4/tcp_output.c
1512
static int __tcp_transmit_skb(struct sock *sk, struct sk_buff *skb,
net/ipv4/tcp_output.c
166
void tcp_cwnd_restart(struct sock *sk, s32 delta)
net/ipv4/tcp_output.c
1708
static int tcp_transmit_skb(struct sock *sk, struct sk_buff *skb, int clone_it,
net/ipv4/tcp_output.c
1720
static void tcp_queue_skb(struct sock *sk, struct sk_buff *skb)
net/ipv4/tcp_output.c
1755
static void tcp_adjust_pcount(struct sock *sk, const struct sk_buff *skb, int decr)
net/ipv4/tcp_output.c
1807
struct sock *sk,
net/ipv4/tcp_output.c
1821
int tcp_fragment(struct sock *sk, enum tcp_queue tcp_queue,
net/ipv4/tcp_output.c
186
struct sock *sk)
net/ipv4/tcp_output.c
1949
int tcp_trim_head(struct sock *sk, struct sk_buff *skb, u32 len)
net/ipv4/tcp_output.c
1973
static inline int __tcp_mtu_to_mss(struct sock *sk, int pmtu)
net/ipv4/tcp_output.c
1998
int tcp_mtu_to_mss(struct sock *sk, int pmtu)
net/ipv4/tcp_output.c
2007
int tcp_mss_to_mtu(struct sock *sk, int mss)
net/ipv4/tcp_output.c
2020
void tcp_mtup_init(struct sock *sk)
net/ipv4/tcp_output.c
204
static inline void tcp_event_ack_sent(struct sock *sk, u32 rcv_nxt)
net/ipv4/tcp_output.c
2057
unsigned int tcp_sync_mss(struct sock *sk, u32 pmtu)
net/ipv4/tcp_output.c
2082
unsigned int tcp_current_mss(struct sock *sk)
net/ipv4/tcp_output.c
2117
static void tcp_cwnd_application_limited(struct sock *sk)
net/ipv4/tcp_output.c
2135
static void tcp_cwnd_validate(struct sock *sk, bool is_cwnd_limited)
net/ipv4/tcp_output.c
2235
static u32 tcp_tso_autosize(const struct sock *sk, unsigned int mss_now,
net/ipv4/tcp_output.c
2255
static u32 tcp_tso_segs(struct sock *sk, unsigned int mss_now)
net/ipv4/tcp_output.c
2269
static unsigned int tcp_mss_split_point(const struct sock *sk,
net/ipv4/tcp_output.c
229
void tcp_select_initial_window(const struct sock *sk, int __space, __u32 mss,
net/ipv4/tcp_output.c
2379
static int tso_fragment(struct sock *sk, struct sk_buff *skb, unsigned int len,
net/ipv4/tcp_output.c
2431
static bool tcp_tso_should_defer(struct sock *sk, struct sk_buff *skb,
net/ipv4/tcp_output.c
2544
static inline void tcp_mtu_check_reprobe(struct sock *sk)
net/ipv4/tcp_output.c
2569
static bool tcp_can_coalesce_send_queue_head(struct sock *sk, int len)
net/ipv4/tcp_output.c
2587
static int tcp_clone_payload(struct sock *sk, struct sk_buff *to,
net/ipv4/tcp_output.c
2642
static void tcp_eat_one_skb(struct sock *sk,
net/ipv4/tcp_output.c
2662
static int tcp_mtu_probe(struct sock *sk)
net/ipv4/tcp_output.c
2793
static bool tcp_pacing_check(struct sock *sk)
net/ipv4/tcp_output.c
2812
static bool tcp_rtx_queue_empty_or_single_skb(const struct sock *sk)
net/ipv4/tcp_output.c
282
static u16 tcp_select_window(struct sock *sk)
net/ipv4/tcp_output.c
2835
static bool tcp_small_queue_check(struct sock *sk, const struct sk_buff *skb,
net/ipv4/tcp_output.c
2892
void tcp_chrono_start(struct sock *sk, const enum tcp_chrono type)
net/ipv4/tcp_output.c
2905
void tcp_chrono_stop(struct sock *sk, const enum tcp_chrono type)
net/ipv4/tcp_output.c
2926
static void tcp_grow_skb(struct sock *sk, struct sk_buff *skb, int amount)
net/ipv4/tcp_output.c
2966
static bool tcp_write_xmit(struct sock *sk, unsigned int mss_now, int nonagle,
net/ipv4/tcp_output.c
3101
bool tcp_schedule_loss_probe(struct sock *sk, bool advancing_rto)
net/ipv4/tcp_output.c
3154
static bool skb_still_in_host_queue(struct sock *sk,
net/ipv4/tcp_output.c
3172
void tcp_send_loss_probe(struct sock *sk)
net/ipv4/tcp_output.c
3237
void __tcp_push_pending_frames(struct sock *sk, unsigned int cur_mss,
net/ipv4/tcp_output.c
3255
void tcp_push_one(struct sock *sk, unsigned int mss_now)
net/ipv4/tcp_output.c
3316
u32 __tcp_select_window(struct sock *sk)
net/ipv4/tcp_output.c
3453
static bool tcp_collapse_retrans(struct sock *sk, struct sk_buff *skb)
net/ipv4/tcp_output.c
347
static void tcp_ecn_send(struct sock *sk, struct sk_buff *skb,
net/ipv4/tcp_output.c
3493
static bool tcp_can_collapse(const struct sock *sk, const struct sk_buff *skb)
net/ipv4/tcp_output.c
3511
static void tcp_retrans_try_collapse(struct sock *sk, struct sk_buff *to,
net/ipv4/tcp_output.c
3552
int __tcp_retransmit_skb(struct sock *sk, struct sk_buff *skb, int segs)
net/ipv4/tcp_output.c
3697
int tcp_retransmit_skb(struct sock *sk, struct sk_buff *skb, int segs)
net/ipv4/tcp_output.c
3727
void tcp_xmit_retransmit_queue(struct sock *sk)
net/ipv4/tcp_output.c
3803
void tcp_send_fin(struct sock *sk)
net/ipv4/tcp_output.c
385
static void tcp_init_nondata_skb(struct sk_buff *skb, struct sock *sk,
net/ipv4/tcp_output.c
3854
void tcp_send_active_reset(struct sock *sk, gfp_t priority,
net/ipv4/tcp_output.c
3889
int tcp_send_synack(struct sock *sk)
net/ipv4/tcp_output.c
3933
struct sk_buff *tcp_make_synack(const struct sock *sk, struct dst_entry *dst,
net/ipv4/tcp_output.c
3972
skb_set_owner_w(skb, (struct sock *)sk);
net/ipv4/tcp_output.c
4074
bpf_skops_write_hdr_opt((struct sock *)sk, skb, req, syn_skb,
net/ipv4/tcp_output.c
4084
static void tcp_ca_dst_init(struct sock *sk, const struct dst_entry *dst)
net/ipv4/tcp_output.c
4104
static void tcp_connect_init(struct sock *sk)
net/ipv4/tcp_output.c
4179
static void tcp_connect_queue_skb(struct sock *sk, struct sk_buff *skb)
net/ipv4/tcp_output.c
4199
static int tcp_send_syn_data(struct sock *sk, struct sk_buff *syn)
net/ipv4/tcp_output.c
4296
int tcp_connect(struct sock *sk)
net/ipv4/tcp_output.c
4400
u32 tcp_delack_max(const struct sock *sk)
net/ipv4/tcp_output.c
4411
void tcp_send_delayed_ack(struct sock *sk)
net/ipv4/tcp_output.c
4464
void __tcp_send_ack(struct sock *sk, u32 rcv_nxt, u16 flags)
net/ipv4/tcp_output.c
4507
void tcp_send_ack(struct sock *sk)
net/ipv4/tcp_output.c
4523
static int tcp_xmit_probe_skb(struct sock *sk, int urgent, int mib)
net/ipv4/tcp_output.c
4546
void tcp_send_window_probe(struct sock *sk)
net/ipv4/tcp_output.c
4556
int tcp_write_wakeup(struct sock *sk, int mib)
net/ipv4/tcp_output.c
4602
void tcp_send_probe0(struct sock *sk)
net/ipv4/tcp_output.c
4636
int tcp_rtx_synack(const struct sock *sk, struct request_sock *req)
net/ipv4/tcp_output.c
470
static void bpf_skops_hdr_opt_len(struct sock *sk, struct sk_buff *skb,
net/ipv4/tcp_output.c
506
sock_ops.sk = (struct sock *)req;
net/ipv4/tcp_output.c
534
static void bpf_skops_write_hdr_opt(struct sock *sk, struct sk_buff *skb,
net/ipv4/tcp_output.c
552
sock_ops.sk = (struct sock *)req;
net/ipv4/tcp_output.c
579
static void 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
66
static bool tcp_write_xmit(struct sock *sk, unsigned int mss_now, int nonagle,
net/ipv4/tcp_output.c
89
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
25
void tcp_plb_update_state(const struct sock *sk, struct tcp_plb_state *plb,
net/ipv4/tcp_plb.c
46
void tcp_plb_check_rehash(struct sock *sk, struct tcp_plb_state *plb)
net/ipv4/tcp_plb.c
91
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
106
static int tcp_out_of_resources(struct sock *sk, bool do_reset)
net/ipv4/tcp_timer.c
149
static int tcp_orphan_retries(struct sock *sk, bool alive)
net/ipv4/tcp_timer.c
165
static void tcp_mtu_probing(struct inet_connection_sock *icsk, struct sock *sk)
net/ipv4/tcp_timer.c
187
static unsigned int tcp_model_timeout(struct sock *sk,
net/ipv4/tcp_timer.c
214
static bool retransmits_timed_out(struct sock *sk,
net/ipv4/tcp_timer.c
242
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
308
void tcp_delack_timer_handler(struct sock *sk)
net/ipv4/tcp_timer.c
364
struct sock *sk = &icsk->icsk_inet.sk;
net/ipv4/tcp_timer.c
388
static void tcp_probe_timer(struct sock *sk)
net/ipv4/tcp_timer.c
439
static void tcp_update_rto_stats(struct sock *sk)
net/ipv4/tcp_timer.c
456
static void tcp_fastopen_synack_timer(struct sock *sk, struct request_sock *req)
net/ipv4/tcp_timer.c
493
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
534
void tcp_retransmit_timer(struct sock *sk)
net/ipv4/tcp_timer.c
694
void tcp_write_timer_handler(struct sock *sk)
net/ipv4/tcp_timer.c
731
struct sock *sk = timer_container_of(sk, t, tcp_retransmit_timer);
net/ipv4/tcp_timer.c
757
void tcp_reset_keepalive_timer(struct sock *sk, unsigned long len)
net/ipv4/tcp_timer.c
76
static void tcp_write_err(struct sock *sk)
net/ipv4/tcp_timer.c
762
static void tcp_delete_keepalive_timer(struct sock *sk)
net/ipv4/tcp_timer.c
767
void tcp_set_keepalive(struct sock *sk, int val)
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
165
static void tcp_vegas_cong_avoid(struct sock *sk, u32 ack, u32 acked)
net/ipv4/tcp_vegas.c
291
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
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_cong_avoid(struct sock *sk, u32 ack, u32 acked)
net/ipv4/tcp_veno.c
195
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
187
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
1033
void udp_flush_pending_frames(struct sock *sk)
net/ipv4/udp.c
1120
struct sock *sk = skb->sk;
net/ipv4/udp.c
1212
int udp_push_pending_frames(struct sock *sk)
net/ipv4/udp.c
1246
int udp_cmsg_send(struct sock *sk, struct msghdr *msg, u16 *gso_size)
net/ipv4/udp.c
1270
int udp_sendmsg(struct sock *sk, struct msghdr *msg, size_t len)
net/ipv4/udp.c
136
static struct udp_table *udp_get_table_prot(struct sock *sk)
net/ipv4/udp.c
144
struct sock *sk, unsigned int log)
net/ipv4/udp.c
147
struct sock *sk2;
net/ipv4/udp.c
1552
void udp_splice_eof(struct socket *sock)
net/ipv4/udp.c
1554
struct sock *sk = sock->sk;
net/ipv4/udp.c
1630
static void udp_rmem_release(struct sock *sk, unsigned int size,
net/ipv4/udp.c
1675
void udp_skb_destructor(struct sock *sk, struct sk_buff *skb)
net/ipv4/udp.c
1683
static void udp_skb_dtor_locked(struct sock *sk, struct sk_buff *skb)
net/ipv4/udp.c
1689
static int udp_rmem_schedule(struct sock *sk, int size)
net/ipv4/udp.c
1700
int __udp_enqueue_schedule_skb(struct sock *sk, struct sk_buff *skb)
net/ipv4/udp.c
179
struct sock *sk)
net/ipv4/udp.c
182
struct sock *sk2;
net/ipv4/udp.c
1835
void udp_destruct_common(struct sock *sk)
net/ipv4/udp.c
1852
static void udp_destruct_sock(struct sock *sk)
net/ipv4/udp.c
1858
int udp_init_sock(struct sock *sk)
net/ipv4/udp.c
1867
void skb_consume_udp(struct sock *sk, struct sk_buff *skb, int len)
net/ipv4/udp.c
1890
static struct sk_buff *__first_packet_length(struct sock *sk,
net/ipv4/udp.c
1921
static int first_packet_length(struct sock *sk)
net/ipv4/udp.c
1949
int udp_ioctl(struct sock *sk, int cmd, int *karg)
net/ipv4/udp.c
1972
struct sk_buff *__skb_recv_udp(struct sock *sk, unsigned int flags,
net/ipv4/udp.c
2042
int udp_read_skb(struct sock *sk, skb_read_actor_t recv_actor)
net/ipv4/udp.c
2073
int udp_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, int flags,
net/ipv4/udp.c
208
static int udp_reuseport_add_sock(struct sock *sk, struct udp_hslot *hslot)
net/ipv4/udp.c
212
struct sock *sk2;
net/ipv4/udp.c
2182
int udp_pre_connect(struct sock *sk, struct sockaddr_unsized *uaddr,
net/ipv4/udp.c
2196
static int udp_connect(struct sock *sk, struct sockaddr_unsized *uaddr,
net/ipv4/udp.c
2209
int __udp_disconnect(struct sock *sk, int flags)
net/ipv4/udp.c
2237
int udp_disconnect(struct sock *sk, int flags)
net/ipv4/udp.c
2246
void udp_lib_unhash(struct sock *sk)
net/ipv4/udp.c
2280
void udp_lib_rehash(struct sock *sk, u16 newhash, u16 newhash4)
net/ipv4/udp.c
2346
void udp_v4_rehash(struct sock *sk)
net/ipv4/udp.c
2358
static int __udp_queue_rcv_skb(struct sock *sk, struct sk_buff *skb)
net/ipv4/udp.c
239
int udp_lib_get_port(struct sock *sk, unsigned short snum,
net/ipv4/udp.c
2402
static int udp_queue_rcv_one_skb(struct sock *sk, struct sk_buff *skb)
net/ipv4/udp.c
2419
int (*encap_rcv)(struct sock *sk, struct sk_buff *skb);
net/ipv4/udp.c
2512
static int udp_queue_rcv_skb(struct sock *sk, struct sk_buff *skb)
net/ipv4/udp.c
2537
bool udp_sk_rx_dst_set(struct sock *sk, struct dst_entry *dst)
net/ipv4/udp.c
2561
struct sock *sk, *first = NULL;
net/ipv4/udp.c
2670
static int udp_unicast_rcv_skb(struct sock *sk, struct sk_buff *skb,
net/ipv4/udp.c
2695
struct sock *sk = NULL;
net/ipv4/udp.c
2804
static struct sock *__udp4_lib_mcast_demux_lookup(struct net *net,
net/ipv4/udp.c
2811
struct sock *sk, *result;
net/ipv4/udp.c
2839
static struct sock *__udp4_lib_demux_lookup(struct net *net,
net/ipv4/udp.c
2850
struct sock *sk;
net/ipv4/udp.c
2871
struct sock *sk = NULL;
net/ipv4/udp.c
2939
void udp_destroy_sock(struct sock *sk)
net/ipv4/udp.c
2950
void (*encap_destroy)(struct sock *sk);
net/ipv4/udp.c
2967
struct sock *sk)
net/ipv4/udp.c
2996
int udp_lib_setsockopt(struct sock *sk, int level, int optname,
net/ipv4/udp.c
2998
int (*push_pending_frames)(struct sock *))
net/ipv4/udp.c
3129
int udp_setsockopt(struct sock *sk, int level, int optname, sockptr_t optval,
net/ipv4/udp.c
3139
int udp_lib_getsockopt(struct sock *sk, int level, int optname,
net/ipv4/udp.c
3200
int udp_getsockopt(struct sock *sk, int level, int optname,
net/ipv4/udp.c
3221
__poll_t udp_poll(struct file *file, struct socket *sock, poll_table *wait)
net/ipv4/udp.c
3223
__poll_t mask = datagram_poll(file, sock, wait);
net/ipv4/udp.c
3224
struct sock *sk = sock->sk;
net/ipv4/udp.c
3242
int udp_abort(struct sock *sk, int err)
net/ipv4/udp.c
3305
static bool seq_sk_match(struct seq_file *seq, const struct sock *sk)
net/ipv4/udp.c
3331
static struct sock *udp_get_first(struct seq_file *seq, int start)
net/ipv4/udp.c
3336
struct sock *sk;
net/ipv4/udp.c
3359
static struct sock *udp_get_next(struct seq_file *seq, struct sock *sk)
net/ipv4/udp.c
3380
static struct sock *udp_get_idx(struct seq_file *seq, loff_t pos)
net/ipv4/udp.c
3382
struct sock *sk = udp_get_first(seq, 0);
net/ipv4/udp.c
3401
struct sock *sk;
net/ipv4/udp.c
3426
static void udp4_format_sock(struct sock *sp, struct seq_file *f,
net/ipv4/udp.c
3472
struct sock *sk;
net/ipv4/udp.c
3486
static struct sock *bpf_iter_udp_resume(struct sock *first_sk,
net/ipv4/udp.c
3490
struct sock *sk = NULL;
net/ipv4/udp.c
3503
static struct sock *bpf_iter_udp_batch(struct seq_file *seq)
net/ipv4/udp.c
3513
struct sock *sk;
net/ipv4/udp.c
3545
sk = hlist_entry_safe(hslot2->head.first, struct sock,
net/ipv4/udp.c
356
int udp_v4_get_port(struct sock *sk, unsigned short snum)
net/ipv4/udp.c
3599
struct sock,
net/ipv4/udp.c
3620
struct sock *sk;
net/ipv4/udp.c
3670
struct sock *sk = v;
net/ipv4/udp.c
368
static int compute_score(struct sock *sk, const struct net *net,
net/ipv4/udp.c
442
static struct sock *udp4_lib_lookup1(const struct net *net,
net/ipv4/udp.c
450
struct sock *sk, *result = NULL;
net/ipv4/udp.c
466
static struct sock *udp4_lib_lookup2(const struct net *net,
net/ipv4/udp.c
473
struct sock *sk, *result;
net/ipv4/udp.c
524
static struct sock *udp4_lib_lookup4(const struct net *net,
net/ipv4/udp.c
533
static void udp_rehash4(struct udp_table *udptable, struct sock *sk,
net/ipv4/udp.c
538
static void udp_unhash4(struct udp_table *udptable, struct sock *sk)
net/ipv4/udp.c
542
static struct sock *udp4_lib_lookup4(const struct net *net,
net/ipv4/udp.c
553
struct sock *sk;
net/ipv4/udp.c
563
sk = (struct sock *)up;
net/ipv4/udp.c
579
static void udp_rehash4(struct udp_table *udptable, struct sock *sk,
net/ipv4/udp.c
602
static void udp_unhash4(struct udp_table *udptable, struct sock *sk)
net/ipv4/udp.c
621
void udp_lib_hash4(struct sock *sk, u16 hash)
net/ipv4/udp.c
658
void udp4_hash4(struct sock *sk)
net/ipv4/udp.c
677
struct sock *__udp4_lib_lookup(const struct net *net, __be32 saddr,
net/ipv4/udp.c
683
struct sock *result, *sk;
net/ipv4/udp.c
746
static inline struct sock *__udp4_lib_lookup_skb(struct sk_buff *skb,
net/ipv4/udp.c
757
struct sock *udp4_lib_lookup_skb(const struct sk_buff *skb,
net/ipv4/udp.c
776
struct sock *udp4_lib_lookup(const struct net *net, __be32 saddr, __be16 sport,
net/ipv4/udp.c
779
struct sock *sk;
net/ipv4/udp.c
790
static inline bool __udp_is_mcast_sock(struct net *net, const struct sock *sk,
net/ipv4/udp.c
869
static struct sock *__udp4_lib_err_encap(struct net *net,
net/ipv4/udp.c
873
struct sock *sk,
net/ipv4/udp.c
876
int (*lookup)(struct sock *sk, struct sk_buff *skb);
net/ipv4/udp.c
939
struct sock *sk;
net/ipv4/udp_bpf.c
115
static int udp_bpf_ioctl(struct sock *sk, int cmd, int *karg)
net/ipv4/udp_bpf.c
14
static int sk_udp_recvmsg(struct sock *sk, struct msghdr *msg, size_t len,
net/ipv4/udp_bpf.c
156
int udp_bpf_update_proto(struct sock *sk, struct sk_psock *psock, bool restore)
net/ipv4/udp_bpf.c
24
static bool udp_sk_has_data(struct sock *sk)
net/ipv4/udp_bpf.c
39
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
102
struct sock *sk;
net/ipv4/udp_diag.c
155
static void udp_diag_get_info(struct sock *sk, struct inet_diag_msg *r,
net/ipv4/udp_diag.c
16
static int sk_diag_dump(struct sock *sk, struct sk_buff *skb,
net/ipv4/udp_diag.c
168
struct sock *sk;
net/ipv4/udp_diag.c
34
struct sock *sk = NULL;
net/ipv4/udp_impl.h
13
int udp_v4_get_port(struct sock *sk, unsigned short snum);
net/ipv4/udp_impl.h
14
void udp_v4_rehash(struct sock *sk);
net/ipv4/udp_impl.h
16
int udp_setsockopt(struct sock *sk, int level, int optname, sockptr_t optval,
net/ipv4/udp_impl.h
18
int udp_getsockopt(struct sock *sk, int level, int optname,
net/ipv4/udp_impl.h
21
int udp_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, int flags,
net/ipv4/udp_impl.h
23
void udp_destroy_sock(struct sock *sk);
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
483
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
788
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
857
static struct sock *udp4_gro_lookup_skb(struct sk_buff *skb, __be16 sport,
net/ipv4/udp_offload.c
862
struct sock *sk;
net/ipv4/udp_offload.c
880
struct sock *sk = NULL;
net/ipv4/udp_offload.c
930
struct sock *sk;
net/ipv4/udp_tunnel_core.c
102
void udp_tunnel_push_rx_port(struct net_device *dev, struct socket *sock,
net/ipv4/udp_tunnel_core.c
105
struct sock *sk = sock->sk;
net/ipv4/udp_tunnel_core.c
116
void udp_tunnel_drop_rx_port(struct net_device *dev, struct socket *sock,
net/ipv4/udp_tunnel_core.c
119
struct sock *sk = sock->sk;
net/ipv4/udp_tunnel_core.c
131
void udp_tunnel_notify_add_rx_port(struct socket *sock, unsigned short type)
net/ipv4/udp_tunnel_core.c
133
struct sock *sk = sock->sk;
net/ipv4/udp_tunnel_core.c
153
void udp_tunnel_notify_del_rx_port(struct socket *sock, unsigned short type)
net/ipv4/udp_tunnel_core.c
155
struct sock *sk = sock->sk;
net/ipv4/udp_tunnel_core.c
16
struct socket *sock = NULL;
net/ipv4/udp_tunnel_core.c
174
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
198
void udp_tunnel_sock_release(struct socket *sock)
net/ipv4/udp_tunnel_core.c
200
rcu_assign_sk_user_data(sock->sk, NULL);
net/ipv4/udp_tunnel_core.c
202
kernel_sock_shutdown(sock, SHUT_RDWR);
net/ipv4/udp_tunnel_core.c
203
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 socket *sock,
net/ipv4/udp_tunnel_core.c
74
struct sock *sk = sock->sk;
net/ipv4/udplite.c
21
static int udplite_sk_init(struct sock *sk)
net/ipv4/xfrm4_input.c
164
int xfrm4_udp_encap_rcv(struct sock *sk, struct sk_buff *skb)
net/ipv4/xfrm4_input.c
182
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
84
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
2992
static int ipv6_mc_config(struct sock *sk, bool join,
net/ipv6/addrconf.c
5344
struct net **tgt_net, struct sock *sk,
net/ipv6/addrconf_core.c
133
const struct sock *sk,
net/ipv6/addrconf_core.c
194
static int eafnosupport_ipv6_fragment(struct net *net, struct sock *sk, struct sk_buff *skb,
net/ipv6/addrconf_core.c
195
int (*output)(struct net *, struct sock *, struct sk_buff *))
net/ipv6/af_inet6.c
105
void inet6_sock_destruct(struct sock *sk)
net/ipv6/af_inet6.c
112
static int inet6_create(struct net *net, struct socket *sock, int protocol,
net/ipv6/af_inet6.c
117
struct sock *sk;
net/ipv6/af_inet6.c
131
list_for_each_entry_rcu(answer, &inetsw6[sock->type], list) {
net/ipv6/af_inet6.c
159
PF_INET6, protocol, sock->type);
net/ipv6/af_inet6.c
173
if (sock->type == SOCK_RAW && !kern &&
net/ipv6/af_inet6.c
177
sock->ops = answer->ops;
net/ipv6/af_inet6.c
189
sock_init_data(sock, sk);
net/ipv6/af_inet6.c
201
if (SOCK_RAW == sock->type) {
net/ipv6/af_inet6.c
268
sock->sk = NULL;
net/ipv6/af_inet6.c
272
static int __inet6_bind(struct sock *sk, struct sockaddr_unsized *uaddr, int addr_len,
net/ipv6/af_inet6.c
433
int inet6_bind_sk(struct sock *sk, struct sockaddr_unsized *uaddr, int addr_len)
net/ipv6/af_inet6.c
460
int inet6_bind(struct socket *sock, struct sockaddr_unsized *uaddr, int addr_len)
net/ipv6/af_inet6.c
462
return inet6_bind_sk(sock->sk, uaddr, addr_len);
net/ipv6/af_inet6.c
466
int inet6_release(struct socket *sock)
net/ipv6/af_inet6.c
468
struct sock *sk = sock->sk;
net/ipv6/af_inet6.c
479
return inet_release(sock);
net/ipv6/af_inet6.c
483
void inet6_cleanup_sock(struct sock *sk)
net/ipv6/af_inet6.c
513
int inet6_getname(struct socket *sock, struct sockaddr *uaddr,
net/ipv6/af_inet6.c
518
struct sock *sk = sock->sk;
net/ipv6/af_inet6.c
555
int inet6_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
net/ipv6/af_inet6.c
558
struct sock *sk = sock->sk;
net/ipv6/af_inet6.c
603
static int inet6_compat_routing_ioctl(struct sock *sk, unsigned int cmd,
net/ipv6/af_inet6.c
623
int inet6_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
net/ipv6/af_inet6.c
626
struct sock *sk = sock->sk;
net/ipv6/af_inet6.c
639
INDIRECT_CALLABLE_DECLARE(int udpv6_sendmsg(struct sock *, struct msghdr *,
net/ipv6/af_inet6.c
641
int inet6_sendmsg(struct socket *sock, struct msghdr *msg, size_t size)
net/ipv6/af_inet6.c
643
struct sock *sk = sock->sk;
net/ipv6/af_inet6.c
655
INDIRECT_CALLABLE_DECLARE(int udpv6_recvmsg(struct sock *, struct msghdr *,
net/ipv6/af_inet6.c
657
int inet6_recvmsg(struct socket *sock, struct msghdr *msg, size_t size,
net/ipv6/af_inet6.c
660
struct sock *sk = sock->sk;
net/ipv6/af_inet6.c
816
int inet6_sk_rebuild_header(struct sock *sk)
net/ipv6/af_inet6.c
856
bool ipv6_opt_accepted(const struct sock *sk, const struct sk_buff *skb,
net/ipv6/af_inet6.c
98
static struct ipv6_pinfo *inet6_sk_generic(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
1059
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, int *addr_len)
net/ipv6/datagram.c
548
int ipv6_recv_rxpmtu(struct sock *sk, struct msghdr *msg, int len,
net/ipv6/datagram.c
596
void ip6_datagram_recv_common_ctl(struct sock *sk, struct msghdr *msg,
net/ipv6/datagram.c
621
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
752
void ip6_datagram_recv_ctl(struct sock *sk, struct msghdr *msg,
net/ipv6/datagram.c
760
int ip6_datagram_send_ctl(struct net *net, struct sock *sk,
net/ipv6/esp6.c
140
static struct sock *esp6_find_tcp_sk(struct xfrm_state *x)
net/ipv6/esp6.c
145
struct sock *sk;
net/ipv6/esp6.c
167
struct sock *sk;
net/ipv6/esp6.c
193
static int esp_output_tcp_encap_cb(struct net *net, struct sock *sk,
net/ipv6/esp6.c
374
struct sock *sk;
net/ipv6/esp6.c
465
struct sock *sk = skb->sk;
net/ipv6/exthdrs.c
1215
ipv6_dup_options(struct sock *sk, struct ipv6_txoptions *opt)
net/ipv6/exthdrs.c
1274
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
1254
void icmpv6_flow_init(const struct sock *sk, struct flowi6 *fl6, u8 type,
net/ipv6/icmp.c
1270
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
122
struct dst_entry *inet6_csk_update_pmtu(struct sock *sk, u32 mtu)
net/ipv6/inet6_connection_sock.c
27
struct dst_entry *inet6_csk_route_req(const struct sock *sk,
net/ipv6/inet6_connection_sock.c
59
static struct dst_entry *inet6_csk_route_socket(struct sock *sk,
net/ipv6/inet6_connection_sock.c
92
int inet6_csk_xmit(struct sock *sk, struct sk_buff *skb, struct flowi *fl_unused)
net/ipv6/inet6_hashtables.c
129
struct sock *inet6_lookup_reuseport(const struct net *net, struct sock *sk,
net/ipv6/inet6_hashtables.c
137
struct sock *reuse_sk = NULL;
net/ipv6/inet6_hashtables.c
150
static struct sock *inet6_lhash2_lookup(const struct net *net,
net/ipv6/inet6_hashtables.c
157
struct sock *sk, *result = NULL;
net/ipv6/inet6_hashtables.c
177
struct sock *inet6_lookup_run_sk_lookup(const struct net *net,
net/ipv6/inet6_hashtables.c
186
struct sock *sk, *reuse_sk;
net/ipv6/inet6_hashtables.c
202
struct sock *inet6_lookup_listener(const struct net *net,
net/ipv6/inet6_hashtables.c
212
struct sock *result = NULL;
net/ipv6/inet6_hashtables.c
248
struct sock *inet6_lookup(const struct net *net,
net/ipv6/inet6_hashtables.c
254
struct sock *sk;
net/ipv6/inet6_hashtables.c
266
struct sock *sk, const __u16 lport,
net/ipv6/inet6_hashtables.c
282
struct sock *sk2;
net/ipv6/inet6_hashtables.c
325
sk_nulls_del_node_init_rcu((struct sock *)tw);
net/ipv6/inet6_hashtables.c
344
static u64 inet6_sk_port_offset(const struct sock *sk)
net/ipv6/inet6_hashtables.c
354
struct sock *sk)
net/ipv6/inet6_hashtables.c
49
struct sock *__inet6_lookup_established(const struct net *net,
net/ipv6/inet6_hashtables.c
61
struct sock *sk;
net/ipv6/inet6_hashtables.c
91
static inline int compute_score(struct sock *sk, const struct net *net,
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
257
struct ip6_flowlabel *__fl6_sock_lookup(struct sock *sk, __be32 label)
net/ipv6/ip6_flowlabel.c
278
void fl6_free_socklist(struct sock *sk)
net/ipv6/ip6_flowlabel.c
370
fl_create(struct net *net, struct sock *sk, struct in6_flowlabel_req *freq,
net/ipv6/ip6_flowlabel.c
465
static int mem_check(struct sock *sk)
net/ipv6/ip6_flowlabel.c
488
static inline void fl_link(struct sock *sk, struct ipv6_fl_socklist *sfl,
net/ipv6/ip6_flowlabel.c
500
int ipv6_flowlabel_opt_get(struct sock *sk, struct in6_flowlabel_req *freq,
net/ipv6/ip6_flowlabel.c
540
static int ipv6_flowlabel_put(struct sock *sk, struct in6_flowlabel_req *freq)
net/ipv6/ip6_flowlabel.c
575
static int ipv6_flowlabel_renew(struct sock *sk, struct in6_flowlabel_req *freq)
net/ipv6/ip6_flowlabel.c
606
static int ipv6_flowlabel_get(struct sock *sk, struct in6_flowlabel_req *freq,
net/ipv6/ip6_flowlabel.c
720
int ipv6_flowlabel_opt(struct sock *sk, sockptr_t optval, int optlen)
net/ipv6/ip6_input.c
109
static void ip6_list_rcv_finish(struct net *net, struct sock *sk,
net/ipv6/ip6_input.c
479
static int ip6_input_finish(struct net *net, struct sock *sk, struct sk_buff *skb)
net/ipv6/ip6_input.c
48
static void ip6_rcv_finish_core(struct net *net, struct sock *sk,
net/ipv6/ip6_input.c
69
int ip6_rcv_finish(struct net *net, struct sock *sk, struct sk_buff *skb)
net/ipv6/ip6_output.c
1057
static struct dst_entry *ip6_sk_dst_check(struct sock *sk,
net/ipv6/ip6_output.c
1105
static int ip6_dst_lookup_tail(struct net *net, const struct sock *sk,
net/ipv6/ip6_output.c
1233
int ip6_dst_lookup(struct net *net, struct sock *sk, struct dst_entry **dst,
net/ipv6/ip6_output.c
1253
struct dst_entry *ip6_dst_lookup_flow(struct net *net, const struct sock *sk, struct flowi6 *fl6,
net/ipv6/ip6_output.c
1287
struct dst_entry *ip6_sk_dst_lookup_flow(struct sock *sk, struct flowi6 *fl6,
net/ipv6/ip6_output.c
1341
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
1418
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
1826
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
1892
struct sk_buff *__ip6_make_skb(struct sock *sk,
net/ipv6/ip6_output.c
1997
int ip6_push_pending_frames(struct sock *sk)
net/ipv6/ip6_output.c
2009
static void __ip6_flush_pending_frames(struct sock *sk,
net/ipv6/ip6_output.c
2025
void ip6_flush_pending_frames(struct sock *sk)
net/ipv6/ip6_output.c
2032
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
268
int ip6_xmit(const struct sock *sk, struct sk_buff *skb, struct flowi6 *fl6,
net/ipv6/ip6_output.c
349
skb = l3mdev_ip6_out((struct sock *)sk, skb);
net/ipv6/ip6_output.c
359
net, (struct sock *)sk, skb, NULL, dev,
net/ipv6/ip6_output.c
369
ipv6_local_error((struct sock *)sk, EMSGSIZE, fl6, mtu);
net/ipv6/ip6_output.c
382
struct sock *last = NULL;
net/ipv6/ip6_output.c
386
struct sock *sk = ra->sk;
net/ipv6/ip6_output.c
465
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
861
int ip6_fragment(struct net *net, struct sock *sk, struct sk_buff *skb,
net/ipv6/ip6_output.c
862
int (*output)(struct net *, struct sock *, struct sk_buff *))
net/ipv6/ip6_udp_tunnel.c
138
struct socket *sock,
net/ipv6/ip6_udp_tunnel.c
165
dst = ipv6_stub->ipv6_dst_lookup_flow(net, sock->sk, &fl6,
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
1066
struct sock *mroute6_sk;
net/ipv6/ip6mr.c
1584
static int ip6mr_sk_init(struct mr_table *mrt, struct sock *sk)
net/ipv6/ip6mr.c
1610
int ip6mr_sk_done(struct sock *sk)
net/ipv6/ip6mr.c
1674
int ip6_mroute_setsockopt(struct sock *sk, int optname, sockptr_t optval,
net/ipv6/ip6mr.c
1851
int ip6_mroute_getsockopt(struct sock *sk, int optname, sockptr_t optval,
net/ipv6/ip6mr.c
1900
int ip6mr_ioctl(struct sock *sk, int cmd, void *arg)
net/ipv6/ip6mr.c
1968
int ip6mr_compat_ioctl(struct sock *sk, unsigned int cmd, void __user *arg)
net/ipv6/ip6mr.c
2027
static inline int ip6mr_forward2_finish(struct net *net, struct sock *sk, struct sk_buff *skb)
net/ipv6/ip6mr.c
2363
int ip6_mr_output(struct net *net, struct sock *sk, struct sk_buff *skb)
net/ipv6/ipv6_sockglue.c
1018
static int ipv6_get_msfilter(struct sock *sk, sockptr_t optval,
net/ipv6/ipv6_sockglue.c
103
struct ipv6_txoptions *ipv6_update_options(struct sock *sk,
net/ipv6/ipv6_sockglue.c
1047
static int compat_ipv6_get_msfilter(struct sock *sk, sockptr_t optval,
net/ipv6/ipv6_sockglue.c
1086
int do_ipv6_getsockopt(struct sock *sk, int level, int optname,
net/ipv6/ipv6_sockglue.c
1452
int ipv6_getsockopt(struct sock *sk, int level, int optname,
net/ipv6/ipv6_sockglue.c
147
static int do_ipv6_mcast_group_source(struct sock *sk, int optname,
net/ipv6/ipv6_sockglue.c
188
static int ipv6_set_mcast_msfilter(struct sock *sk, sockptr_t optval,
net/ipv6/ipv6_sockglue.c
219
static int compat_ipv6_set_mcast_msfilter(struct sock *sk, sockptr_t optval,
net/ipv6/ipv6_sockglue.c
263
static int ipv6_mcast_join_leave(struct sock *sk, int optname,
net/ipv6/ipv6_sockglue.c
283
static int compat_ipv6_mcast_join_leave(struct sock *sk, int optname,
net/ipv6/ipv6_sockglue.c
303
static int ipv6_set_opt_hdr(struct sock *sk, int optname, sockptr_t optval,
net/ipv6/ipv6_sockglue.c
377
int do_ipv6_setsockopt(struct sock *sk, int level, int optname,
net/ipv6/ipv6_sockglue.c
61
int ip6_ra_control(struct sock *sk, int sel)
net/ipv6/ipv6_sockglue.c
962
int ipv6_setsockopt(struct sock *sk, int level, int optname, sockptr_t optval,
net/ipv6/ipv6_sockglue.c
984
static int ipv6_getsockopt_sticky(struct sock *sk, struct ipv6_txoptions *opt,
net/ipv6/mcast.c
1733
static void ip6_mc_hdr(const struct sock *sk, struct sk_buff *skb,
net/ipv6/mcast.c
1768
struct sock *sk;
net/ipv6/mcast.c
198
static int __ipv6_sock_mc_join(struct sock *sk, int ifindex,
net/ipv6/mcast.c
2173
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
2628
static int ip6_mc_leave_src(struct sock *sk, struct ipv6_mc_socklist *iml,
net/ipv6/mcast.c
264
static void __ipv6_sock_mc_drop(struct sock *sk, struct ipv6_mc_socklist *mc_lst)
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
1660
struct sock *sk = net->ipv6.ndisc_sk;
net/ipv6/ndisc.c
1970
struct sock *sk;
net/ipv6/ndisc.c
476
struct sock *sk;
net/ipv6/netfilter.c
126
int br_ip6_fragment(struct net *net, struct sock *sk, struct sk_buff *skb,
net/ipv6/netfilter.c
128
int (*output)(struct net *, struct sock *sk,
net/ipv6/netfilter.c
23
int ip6_route_me_harder(struct net *net, struct sock *sk_partial, struct sk_buff *skb)
net/ipv6/netfilter.c
26
struct sock *sk = sk_to_full_sk(sk_partial);
net/ipv6/netfilter/ip6_tables.c
1630
do_ip6t_set_ctl(struct sock *sk, int cmd, sockptr_t arg, unsigned int len)
net/ipv6/netfilter/ip6_tables.c
1659
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
126
int __ip6_local_out(struct net *net, struct sock *sk, struct sk_buff *skb)
net/ipv6/output_core.c
146
int ip6_local_out(struct net *net, struct sock *sk, struct sk_buff *skb)
net/ipv6/ping.c
239
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
32
static void dummy_ip6_datagram_recv_ctl(struct sock *sk, struct msghdr *msg,
net/ipv6/ping.c
40
static void dummy_ipv6_icmp_error(struct sock *sk, struct sk_buff *skb, int err,
net/ipv6/ping.c
48
static int ping_v6_pre_connect(struct sock *sk, struct sockaddr_unsized *uaddr,
net/ipv6/ping.c
62
static int ping_v6_sendmsg(struct sock *sk, struct msghdr *msg, size_t len)
net/ipv6/raw.c
1030
static int rawv6_setsockopt(struct sock *sk, int level, int optname,
net/ipv6/raw.c
1053
static int do_rawv6_getsockopt(struct sock *sk, int level, int optname,
net/ipv6/raw.c
1091
static int rawv6_getsockopt(struct sock *sk, int level, int optname,
net/ipv6/raw.c
1114
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
1144
static int compat_rawv6_ioctl(struct sock *sk, unsigned int cmd, unsigned long arg)
net/ipv6/raw.c
1160
static void rawv6_close(struct sock *sk, long timeout)
net/ipv6/raw.c
1168
static void raw6_destroy(struct sock *sk)
net/ipv6/raw.c
1175
static int rawv6_init_sk(struct sock *sk)
net/ipv6/raw.c
1229
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
387
int rawv6_rcv(struct sock *sk, struct sk_buff *skb)
net/ipv6/raw.c
434
static int rawv6_recvmsg(struct sock *sk, struct msghdr *msg, size_t len,
net/ipv6/raw.c
511
static int rawv6_push_pending_frames(struct sock *sk, struct flowi6 *fl6,
net/ipv6/raw.c
594
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
741
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
937
static int rawv6_seticmpfilter(struct sock *sk, int optname,
net/ipv6/raw.c
954
static int rawv6_geticmpfilter(struct sock *sk, int optname,
net/ipv6/raw.c
980
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
2669
const struct sock *sk,
net/ipv6/route.c
2702
const struct sock *sk,
net/ipv6/route.c
2833
static void ip6_negative_advice(struct sock *sk,
net/ipv6/route.c
2910
static void __ip6_rt_update_pmtu(struct dst_entry *dst, const struct sock *sk,
net/ipv6/route.c
2989
static void ip6_rt_update_pmtu(struct dst_entry *dst, struct sock *sk,
net/ipv6/route.c
3018
void ip6_sk_update_pmtu(struct sk_buff *skb, struct sock *sk, __be32 mtu)
net/ipv6/route.c
3041
void ip6_sk_dst_store_flow(struct sock *sk, struct dst_entry *dst,
net/ipv6/route.c
3245
void ip6_sk_redirect(struct sk_buff *skb, struct sock *sk)
net/ipv6/route.c
4214
static void rt6_do_redirect(struct dst_entry *dst, struct sock *sk, struct sk_buff *skb)
net/ipv6/route.c
4639
static int ip6_pkt_discard_out(struct net *net, struct sock *sk, struct sk_buff *skb)
net/ipv6/route.c
4650
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
467
static int seg6_input_finish(struct net *net, struct sock *sk,
net/ipv6/seg6_iptunnel.c
473
static int seg6_input_core(struct net *net, struct sock *sk,
net/ipv6/seg6_iptunnel.c
557
static int seg6_output_core(struct net *net, struct sock *sk,
net/ipv6/seg6_iptunnel.c
618
static int seg6_output_nf(struct net *net, struct sock *sk, struct sk_buff *skb)
net/ipv6/seg6_iptunnel.c
634
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
102
struct tcp_ao_key *tcp_v6_ao_lookup_rsk(const struct sock *sk,
net/ipv6/tcp_ao.c
135
const struct sock *sk, const struct sk_buff *skb,
net/ipv6/tcp_ao.c
142
int tcp_v6_parse_ao(struct sock *sk, int cmd,
net/ipv6/tcp_ao.c
65
const struct sock *sk, __be32 sisn,
net/ipv6/tcp_ao.c
90
struct tcp_ao_key *tcp_v6_ao_lookup(const struct sock *sk,
net/ipv6/tcp_ao.c
91
struct sock *addr_sk,
net/ipv6/tcp_ipv6.c
1108
static void tcp_v6_send_ack(const struct sock *sk, struct sk_buff *skb, u32 seq,
net/ipv6/tcp_ipv6.c
1117
static void tcp_v6_timewait_ack(struct sock *sk, struct sk_buff *skb,
net/ipv6/tcp_ipv6.c
1179
static void tcp_v6_reqsk_send_ack(const 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
1256
static struct sock *tcp_v6_cookie_check(struct sock *sk, struct sk_buff *skb)
net/ipv6/tcp_ipv6.c
1267
u16 tcp_v6_get_syncookie(struct sock *sk, struct ipv6hdr *iph,
net/ipv6/tcp_ipv6.c
1282
static int tcp_v6_conn_request(struct sock *sk, struct sk_buff *skb)
net/ipv6/tcp_ipv6.c
1314
static void tcp_v6_mapped_child_init(struct sock *newsk, const struct sock *sk)
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 struct sock *tcp_v6_syn_recv_sock(const struct sock *sk, struct sk_buff *skb,
net/ipv6/tcp_ipv6.c
1353
void (*opt_child_init)(struct sock *newsk,
net/ipv6/tcp_ipv6.c
1354
const struct sock *sk))
net/ipv6/tcp_ipv6.c
1363
struct sock *newsk;
net/ipv6/tcp_ipv6.c
1533
int tcp_v6_do_rcv(struct sock *sk, struct sk_buff *skb)
net/ipv6/tcp_ipv6.c
1603
struct sock *nsk = tcp_v6_cookie_check(sk, skb);
net/ipv6/tcp_ipv6.c
1704
struct sock *sk = NULL;
net/ipv6/tcp_ipv6.c
1749
struct sock *nsk;
net/ipv6/tcp_ipv6.c
1922
struct sock *sk2;
net/ipv6/tcp_ipv6.c
1965
struct sock *sk;
net/ipv6/tcp_ipv6.c
2002
INDIRECT_CALLABLE_SCOPE void tcp_v6_send_check(struct sock *sk, struct sk_buff *skb)
net/ipv6/tcp_ipv6.c
2067
static void tcp6_destruct_sock(struct sock *sk)
net/ipv6/tcp_ipv6.c
2078
static int tcp_v6_init_sock(struct sock *sk)
net/ipv6/tcp_ipv6.c
2128
static void get_tcp6_sock(struct seq_file *seq, struct sock *sp, int i)
net/ipv6/tcp_ipv6.c
2230
struct sock *sk = v;
net/ipv6/tcp_ipv6.c
351
static void tcp_v6_mtu_reduced(struct sock *sk)
net/ipv6/tcp_ipv6.c
388
struct sock *sk;
net/ipv6/tcp_ipv6.c
525
static int tcp_v6_send_synack(const struct sock *sk, struct dst_entry *dst,
net/ipv6/tcp_ipv6.c
562
tcp_bpf_ca_needs_ecn((struct sock *)req))
net/ipv6/tcp_ipv6.c
587
static struct tcp_md5sig_key *tcp_v6_md5_do_lookup(const struct sock *sk,
net/ipv6/tcp_ipv6.c
595
static struct tcp_md5sig_key *tcp_v6_md5_lookup(const struct sock *sk,
net/ipv6/tcp_ipv6.c
596
const struct sock *addr_sk)
net/ipv6/tcp_ipv6.c
606
static int tcp_v6_parse_md5_keys(struct sock *sk, int optname,
net/ipv6/tcp_ipv6.c
728
const struct sock *sk, const struct sk_buff *skb)
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
752
const struct sock *sk_listener,
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
780
static struct dst_entry *tcp_v6_route_req(const struct sock *sk,
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
822
static void tcp_v6_send_response(const struct sock *sk, struct sk_buff *skb, u32 seq,
net/ipv6/tcp_ipv6.c
829
struct sock *ctl_sk = net->ipv6.tcp_sk;
net/ipv6/tcp_ipv6.c
931
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/tcp_ipv6.c
971
static void tcp_v6_send_reset(const struct sock *sk, struct sk_buff *skb,
net/ipv6/tcp_ipv6.c
990
struct sock *sk1 = NULL;
net/ipv6/tcpv6_offload.c
23
struct sock *sk;
net/ipv6/udp.c
1047
static void udp6_sk_rx_dst_set(struct sock *sk, struct dst_entry *dst)
net/ipv6/udp.c
1056
static int udp6_unicast_rcv_skb(struct sock *sk, struct sk_buff *skb,
net/ipv6/udp.c
1078
struct sock *sk = NULL;
net/ipv6/udp.c
110
void udp_v6_rehash(struct sock *sk)
net/ipv6/udp.c
1197
static struct sock *__udp6_lib_demux_lookup(struct net *net,
net/ipv6/udp.c
1207
struct sock *sk;
net/ipv6/udp.c
1227
struct sock *sk;
net/ipv6/udp.c
1273
static void udp_v6_flush_pending_frames(struct sock *sk)
net/ipv6/udp.c
1286
static int udpv6_pre_connect(struct sock *sk, struct sockaddr_unsized *uaddr,
net/ipv6/udp.c
130
static int compute_score(struct sock *sk, const struct net *net,
net/ipv6/udp.c
1307
static int udpv6_connect(struct sock *sk, struct sockaddr_unsized *uaddr,
net/ipv6/udp.c
1329
static void udp6_hwcsum_outgoing(struct sock *sk, struct sk_buff *skb,
net/ipv6/udp.c
1373
struct sock *sk = skb->sk;
net/ipv6/udp.c
1456
static int udp_v6_push_pending_frames(struct sock *sk)
net/ipv6/udp.c
1477
int udpv6_sendmsg(struct sock *sk, struct msghdr *msg, size_t len)
net/ipv6/udp.c
1797
static void udpv6_splice_eof(struct socket *sock)
net/ipv6/udp.c
1799
struct sock *sk = sock->sk;
net/ipv6/udp.c
1811
void udpv6_destroy_sock(struct sock *sk)
net/ipv6/udp.c
1823
void (*encap_destroy)(struct sock *sk);
net/ipv6/udp.c
1839
int udpv6_setsockopt(struct sock *sk, int level, int optname, sockptr_t optval,
net/ipv6/udp.c
1849
int udpv6_getsockopt(struct sock *sk, int level, int optname,
net/ipv6/udp.c
1866
const struct inet_sock *inet = inet_sk((const struct sock *)v);
net/ipv6/udp.c
195
static struct sock *udp6_lib_lookup1(const struct net *net,
net/ipv6/udp.c
203
struct sock *sk, *result = NULL;
net/ipv6/udp.c
219
static struct sock *udp6_lib_lookup2(const struct net *net,
net/ipv6/udp.c
225
struct sock *sk, *result;
net/ipv6/udp.c
276
static struct sock *udp6_lib_lookup4(const struct net *net,
net/ipv6/udp.c
285
static void udp6_hash4(struct sock *sk)
net/ipv6/udp.c
289
static struct sock *udp6_lib_lookup4(const struct net *net,
net/ipv6/udp.c
300
struct sock *sk;
net/ipv6/udp.c
308
sk = (struct sock *)up;
net/ipv6/udp.c
323
static void udp6_hash4(struct sock *sk)
net/ipv6/udp.c
344
struct sock *__udp6_lib_lookup(const struct net *net,
net/ipv6/udp.c
352
struct sock *result, *sk;
net/ipv6/udp.c
409
static struct sock *__udp6_lib_lookup_skb(struct sk_buff *skb,
net/ipv6/udp.c
420
struct sock *udp6_lib_lookup_skb(const struct sk_buff *skb,
net/ipv6/udp.c
439
struct sock *udp6_lib_lookup(const struct net *net, const struct in6_addr *saddr, __be16 sport,
net/ipv6/udp.c
442
struct sock *sk;
net/ipv6/udp.c
467
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
648
static struct sock *__udp6_lib_err_encap(struct net *net,
net/ipv6/udp.c
652
struct sock *sk,
net/ipv6/udp.c
657
int (*lookup)(struct sock *sk, struct sk_buff *skb);
net/ipv6/udp.c
68
int udpv6_init_sock(struct sock *sk)
net/ipv6/udp.c
713
struct sock *sk;
net/ipv6/udp.c
783
static int __udpv6_queue_rcv_skb(struct sock *sk, struct sk_buff *skb)
net/ipv6/udp.c
827
static int udpv6_queue_rcv_one_skb(struct sock *sk, struct sk_buff *skb)
net/ipv6/udp.c
841
int (*encap_rcv)(struct sock *sk, struct sk_buff *skb);
net/ipv6/udp.c
918
static int udpv6_queue_rcv_skb(struct sock *sk, struct sk_buff *skb)
net/ipv6/udp.c
940
static bool __udp_v6_is_mcast_sock(struct net *net, const struct sock *sk,
net/ipv6/udp.c
98
int udp_v6_get_port(struct sock *sk, unsigned short snum)
net/ipv6/udp.c
982
struct sock *sk, *first = NULL;
net/ipv6/udp_impl.h
16
int udpv6_init_sock(struct sock *sk);
net/ipv6/udp_impl.h
17
int udp_v6_get_port(struct sock *sk, unsigned short snum);
net/ipv6/udp_impl.h
18
void udp_v6_rehash(struct sock *sk);
net/ipv6/udp_impl.h
20
int udpv6_getsockopt(struct sock *sk, int level, int optname,
net/ipv6/udp_impl.h
22
int udpv6_setsockopt(struct sock *sk, int level, int optname, sockptr_t optval,
net/ipv6/udp_impl.h
24
int udpv6_sendmsg(struct sock *sk, struct msghdr *msg, size_t len);
net/ipv6/udp_impl.h
25
int udpv6_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, int flags,
net/ipv6/udp_impl.h
27
void udpv6_destroy_sock(struct sock *sk);
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
138
struct sock *sk = NULL;
net/ipv6/udplite.c
17
static int udplitev6_sk_init(struct sock *sk)
net/ipv6/xfrm6_input.c
159
int xfrm6_udp_encap_rcv(struct sock *sk, struct sk_buff *skb)
net/ipv6/xfrm6_input.c
179
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
79
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
107
static void xfrm6_update_pmtu(struct dst_entry *dst, struct sock *sk,
net/ipv6/xfrm6_policy.c
117
static void xfrm6_redirect(struct dst_entry *dst, struct sock *sk,
net/iucv/af_iucv.c
1141
static void iucv_process_message(struct sock *sk, struct sk_buff *skb,
net/iucv/af_iucv.c
1202
static void iucv_process_message_q(struct sock *sk)
net/iucv/af_iucv.c
1220
static int iucv_sock_recvmsg(struct socket *sock, struct msghdr *msg,
net/iucv/af_iucv.c
1223
struct sock *sk = sock->sk;
net/iucv/af_iucv.c
1347
static inline __poll_t iucv_accept_poll(struct sock *parent)
net/iucv/af_iucv.c
1350
struct sock *sk;
net/iucv/af_iucv.c
1353
sk = (struct sock *) isk;
net/iucv/af_iucv.c
1362
static __poll_t iucv_sock_poll(struct file *file, struct socket *sock,
net/iucv/af_iucv.c
1365
struct sock *sk = sock->sk;
net/iucv/af_iucv.c
1368
sock_poll_wait(file, sock, wait);
net/iucv/af_iucv.c
1401
static int iucv_sock_shutdown(struct socket *sock, int how)
net/iucv/af_iucv.c
1403
struct sock *sk = sock->sk;
net/iucv/af_iucv.c
1469
static int iucv_sock_release(struct socket *sock)
net/iucv/af_iucv.c
1471
struct sock *sk = sock->sk;
net/iucv/af_iucv.c
1485
static int iucv_sock_setsockopt(struct socket *sock, int level, int optname,
net/iucv/af_iucv.c
1488
struct sock *sk = sock->sk;
net/iucv/af_iucv.c
150
static int iucv_sock_in_state(struct sock *sk, int state, int state2)
net/iucv/af_iucv.c
1535
static int iucv_sock_getsockopt(struct socket *sock, int level, int optname,
net/iucv/af_iucv.c
1538
struct sock *sk = sock->sk;
net/iucv/af_iucv.c
1591
struct sock *sk, *nsk;
net/iucv/af_iucv.c
163
static inline int iucv_below_msglim(struct sock *sk)
net/iucv/af_iucv.c
1684
struct sock *sk = path->private;
net/iucv/af_iucv.c
1692
struct sock *sk = path->private;
net/iucv/af_iucv.c
1737
struct sock *sk = path->private;
net/iucv/af_iucv.c
1781
struct sock *sk = path->private;
net/iucv/af_iucv.c
179
static void iucv_sock_wake_msglim(struct sock *sk)
net/iucv/af_iucv.c
1799
struct sock *sk = path->private;
net/iucv/af_iucv.c
1842
static int afiucv_hs_callback_syn(struct sock *sk, struct sk_buff *skb)
net/iucv/af_iucv.c
1845
struct sock *nsk;
net/iucv/af_iucv.c
1907
static int afiucv_hs_callback_synack(struct sock *sk, struct sk_buff *skb)
net/iucv/af_iucv.c
1928
static int afiucv_hs_callback_synfin(struct sock *sk, struct sk_buff *skb)
net/iucv/af_iucv.c
194
static int afiucv_hs_send(struct iucv_message *imsg, struct sock *sock,
net/iucv/af_iucv.c
1948
static int afiucv_hs_callback_fin(struct sock *sk, struct sk_buff *skb)
net/iucv/af_iucv.c
197
struct iucv_sock *iucv = iucv_sk(sock);
net/iucv/af_iucv.c
1971
static int afiucv_hs_callback_win(struct sock *sk, struct sk_buff *skb)
net/iucv/af_iucv.c
1989
static int afiucv_hs_callback_rx(struct sock *sk, struct sk_buff *skb)
net/iucv/af_iucv.c
2038
struct sock *sk;
net/iucv/af_iucv.c
2140
static void afiucv_hs_callback_txnotify(struct sock *sk, enum iucv_tx_notify n)
net/iucv/af_iucv.c
2183
struct sock *sk;
net/iucv/af_iucv.c
2232
static int iucv_sock_create(struct net *net, struct socket *sock, int protocol,
net/iucv/af_iucv.c
2235
struct sock *sk;
net/iucv/af_iucv.c
2240
sock->state = SS_UNCONNECTED;
net/iucv/af_iucv.c
2242
switch (sock->type) {
net/iucv/af_iucv.c
2246
sock->ops = &iucv_sock_ops;
net/iucv/af_iucv.c
2252
sk = iucv_sock_alloc(sock, protocol, GFP_KERNEL, kern);
net/iucv/af_iucv.c
240
if (sock->sk_type == SOCK_SEQPACKET) {
net/iucv/af_iucv.c
265
static struct sock *__iucv_get_sock_by_name(char *nm)
net/iucv/af_iucv.c
267
struct sock *sk;
net/iucv/af_iucv.c
276
static void iucv_sock_destruct(struct sock *sk)
net/iucv/af_iucv.c
293
static void iucv_sock_cleanup_listen(struct sock *parent)
net/iucv/af_iucv.c
295
struct sock *sk;
net/iucv/af_iucv.c
306
static void iucv_sock_link(struct iucv_sock_list *l, struct sock *sk)
net/iucv/af_iucv.c
313
static void iucv_sock_unlink(struct iucv_sock_list *l, struct sock *sk)
net/iucv/af_iucv.c
321
static void iucv_sock_kill(struct sock *sk)
net/iucv/af_iucv.c
332
static void iucv_sever_path(struct sock *sk, int with_user_data)
net/iucv/af_iucv.c
352
static int iucv_send_ctrl(struct sock *sk, u8 flags)
net/iucv/af_iucv.c
378
static void iucv_sock_close(struct sock *sk)
net/iucv/af_iucv.c
441
static void iucv_sock_init(struct sock *sk, struct sock *parent)
net/iucv/af_iucv.c
449
static struct sock *iucv_sock_alloc(struct socket *sock, int proto, gfp_t prio, int kern)
net/iucv/af_iucv.c
451
struct sock *sk;
net/iucv/af_iucv.c
459
sock_init_data(sock, sk);
net/iucv/af_iucv.c
493
static void iucv_accept_enqueue(struct sock *parent, struct sock *sk)
net/iucv/af_iucv.c
506
static void iucv_accept_unlink(struct sock *sk)
net/iucv/af_iucv.c
519
static struct sock *iucv_accept_dequeue(struct sock *parent,
net/iucv/af_iucv.c
523
struct sock *sk;
net/iucv/af_iucv.c
526
sk = (struct sock *) isk;
net/iucv/af_iucv.c
565
static int iucv_sock_bind(struct socket *sock, struct sockaddr_unsized *addr,
net/iucv/af_iucv.c
570
struct sock *sk = sock->sk;
net/iucv/af_iucv.c
648
static int iucv_sock_autobind(struct sock *sk)
net/iucv/af_iucv.c
670
static int afiucv_path_connect(struct socket *sock, struct sockaddr_unsized *addr)
net/iucv/af_iucv.c
673
struct sock *sk = sock->sk;
net/iucv/af_iucv.c
716
static int iucv_sock_connect(struct socket *sock, struct sockaddr_unsized *addr,
net/iucv/af_iucv.c
720
struct sock *sk = sock->sk;
net/iucv/af_iucv.c
750
err = iucv_send_ctrl(sock->sk, AF_IUCV_FLAG_SYN);
net/iucv/af_iucv.c
752
err = afiucv_path_connect(sock, addr);
net/iucv/af_iucv.c
773
static int iucv_sock_listen(struct socket *sock, int backlog)
net/iucv/af_iucv.c
775
struct sock *sk = sock->sk;
net/iucv/af_iucv.c
784
if (sock->type != SOCK_STREAM && sock->type != SOCK_SEQPACKET)
net/iucv/af_iucv.c
798
static int iucv_sock_accept(struct socket *sock, struct socket *newsock,
net/iucv/af_iucv.c
802
struct sock *sk = sock->sk, *nsk;
net/iucv/af_iucv.c
852
static int iucv_sock_getname(struct socket *sock, struct sockaddr *addr,
net/iucv/af_iucv.c
856
struct sock *sk = sock->sk;
net/iucv/af_iucv.c
89
static struct sock *iucv_accept_dequeue(struct sock *parent,
net/iucv/af_iucv.c
899
static int iucv_sock_sendmsg(struct socket *sock, struct msghdr *msg,
net/iucv/af_iucv.c
902
struct sock *sk = sock->sk;
net/iucv/af_iucv.c
91
static void iucv_sock_kill(struct sock *sk);
net/iucv/af_iucv.c
92
static void iucv_sock_close(struct sock *sk);
net/iucv/af_iucv.c
94
static void afiucv_hs_callback_txnotify(struct sock *sk, enum iucv_tx_notify);
net/kcm/kcmsock.c
1019
if (sock->type == SOCK_DGRAM) {
net/kcm/kcmsock.c
1039
static ssize_t kcm_splice_read(struct socket *sock, loff_t *ppos,
net/kcm/kcmsock.c
1043
struct sock *sk = sock->sk;
net/kcm/kcmsock.c
1050
if (sock->file->f_flags & O_NONBLOCK || flags & SPLICE_F_NONBLOCK)
net/kcm/kcmsock.c
1135
static int kcm_setsockopt(struct socket *sock, int level, int optname,
net/kcm/kcmsock.c
1138
struct kcm_sock *kcm = kcm_sk(sock->sk);
net/kcm/kcmsock.c
1169
static int kcm_getsockopt(struct socket *sock, int level, int optname,
net/kcm/kcmsock.c
1172
struct kcm_sock *kcm = kcm_sk(sock->sk);
net/kcm/kcmsock.c
118
static int kcm_queue_rcv_skb(struct sock *sk, struct sk_buff *skb);
net/kcm/kcmsock.c
1239
static int kcm_attach(struct socket *sock, struct socket *csock,
net/kcm/kcmsock.c
1242
struct kcm_sock *kcm = kcm_sk(sock->sk);
net/kcm/kcmsock.c
1244
struct sock *csk;
net/kcm/kcmsock.c
1342
static int kcm_attach_ioctl(struct socket *sock, struct kcm_attach *info)
net/kcm/kcmsock.c
1358
err = kcm_attach(sock, csock, prog);
net/kcm/kcmsock.c
1374
struct sock *csk = psock->sk;
net/kcm/kcmsock.c
1468
static int kcm_unattach_ioctl(struct socket *sock, struct kcm_unattach *info)
net/kcm/kcmsock.c
1470
struct kcm_sock *kcm = kcm_sk(sock->sk);
net/kcm/kcmsock.c
1474
struct sock *csk;
net/kcm/kcmsock.c
1530
struct sock *newsk;
net/kcm/kcmsock.c
1553
static int kcm_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
net/kcm/kcmsock.c
1564
err = kcm_attach_ioctl(sock, &info);
net/kcm/kcmsock.c
1574
err = kcm_unattach_ioctl(sock, &info);
net/kcm/kcmsock.c
1581
FD_PREPARE(fdf, 0, kcm_clone(sock));
net/kcm/kcmsock.c
1634
struct sock *sk = &kcm->sk;
net/kcm/kcmsock.c
1682
static int kcm_release(struct socket *sock)
net/kcm/kcmsock.c
1684
struct sock *sk = sock->sk;
net/kcm/kcmsock.c
173
struct sock *sk = skb->sk;
net/kcm/kcmsock.c
1737
sock->sk = NULL;
net/kcm/kcmsock.c
1788
static int kcm_create(struct net *net, struct socket *sock,
net/kcm/kcmsock.c
1792
struct sock *sk;
net/kcm/kcmsock.c
1795
switch (sock->type) {
net/kcm/kcmsock.c
1797
sock->ops = &kcm_dgram_ops;
net/kcm/kcmsock.c
1800
sock->ops = &kcm_seqpacket_ops;
net/kcm/kcmsock.c
1841
sock_init_data(sock, sk);
net/kcm/kcmsock.c
192
static int kcm_queue_rcv_skb(struct sock *sk, struct sk_buff *skb)
net/kcm/kcmsock.c
350
static void psock_data_ready(struct sock *sk)
net/kcm/kcmsock.c
40
static inline struct kcm_sock *kcm_sk(const struct sock *sk)
net/kcm/kcmsock.c
406
static void psock_state_change(struct sock *sk)
net/kcm/kcmsock.c
416
static void psock_write_space(struct sock *sk)
net/kcm/kcmsock.c
50
static void report_csk_error(struct sock *csk, int err)
net/kcm/kcmsock.c
586
struct sock *sk = &kcm->sk;
net/kcm/kcmsock.c
59
struct sock *csk = psock->sk;
net/kcm/kcmsock.c
715
struct sock *sk = &kcm->sk;
net/kcm/kcmsock.c
748
static int kcm_sendmsg(struct socket *sock, struct msghdr *msg, size_t len)
net/kcm/kcmsock.c
750
struct sock *sk = sock->sk;
net/kcm/kcmsock.c
755
int eor = (sock->type == SOCK_DGRAM) ?
net/kcm/kcmsock.c
953
if (sock->type == SOCK_SEQPACKET) {
net/kcm/kcmsock.c
977
static void kcm_splice_eof(struct socket *sock)
net/kcm/kcmsock.c
979
struct sock *sk = sock->sk;
net/kcm/kcmsock.c
990
static int kcm_recvmsg(struct socket *sock, struct msghdr *msg,
net/kcm/kcmsock.c
993
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
1315
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
1320
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
1426
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
1513
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
1550
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
1590
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
1702
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
1734
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
1774
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
1846
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
1899
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
2262
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
2377
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
2452
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
2563
static int pfkey_migrate(struct sock *sk, struct sk_buff *skb,
net/key/af_key.c
2655
static int pfkey_migrate(struct sock *sk, struct sk_buff *skb,
net/key/af_key.c
2663
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
2748
struct net *net = sock_net((struct sock *)pfk);
net/key/af_key.c
2753
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
2795
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
2819
typedef int (*pfkey_handler)(struct sock *sk, struct sk_buff *skb,
net/key/af_key.c
2847
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
3155
struct sock *sk;
net/key/af_key.c
3282
static struct xfrm_policy *pfkey_compile_policy(struct sock *sk, int opt,
net/key/af_key.c
3690
static int pfkey_sendmsg(struct socket *sock, struct msghdr *msg, size_t len)
net/key/af_key.c
3692
struct sock *sk = sock->sk;
net/key/af_key.c
3731
static int pfkey_recvmsg(struct socket *sock, struct msghdr *msg, size_t len,
net/key/af_key.c
3734
struct sock *sk = sock->sk;
net/key/af_key.c
3802
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
1015
int l2tp_udp_encap_recv(struct sock *sk, struct sk_buff *skb)
net/l2tp/l2tp_core.c
1117
static void l2tp_udp_encap_err_recv(struct sock *sk, struct sk_buff *skb, int err,
net/l2tp/l2tp_core.c
1215
if (l2tp_sk_is_v6(tunnel->sock))
net/l2tp/l2tp_core.c
1216
err = inet6_csk_xmit(tunnel->sock, skb, NULL);
net/l2tp/l2tp_core.c
1219
err = ip_queue_xmit(tunnel->sock, skb, fl);
net/l2tp/l2tp_core.c
1228
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
1399
static void l2tp_udp_encap_destroy(struct sock *sk)
net/l2tp/l2tp_core.c
1431
struct socket *sock = tunnel->sock->sk_socket;
net/l2tp/l2tp_core.c
1433
if (sock) {
net/l2tp/l2tp_core.c
1434
kernel_sock_shutdown(sock, SHUT_RDWR);
net/l2tp/l2tp_core.c
1435
sock_release(sock);
net/l2tp/l2tp_core.c
145
struct sock *sk = tunnel->sock;
net/l2tp/l2tp_core.c
1463
struct socket *sock = NULL;
net/l2tp/l2tp_core.c
1493
err = udp_sock_create(net, &udp_conf, &sock);
net/l2tp/l2tp_core.c
1505
IPPROTO_L2TP, &sock);
net/l2tp/l2tp_core.c
1513
err = kernel_bind(sock, (struct sockaddr_unsized *)&ip6_addr,
net/l2tp/l2tp_core.c
1522
err = kernel_connect(sock,
net/l2tp/l2tp_core.c
1533
IPPROTO_L2TP, &sock);
net/l2tp/l2tp_core.c
1540
err = kernel_bind(sock, (struct sockaddr_unsized *)&ip_addr,
net/l2tp/l2tp_core.c
1548
err = kernel_connect(sock, (struct sockaddr_unsized *)&ip_addr,
net/l2tp/l2tp_core.c
1560
*sockp = sock;
net/l2tp/l2tp_core.c
1561
if (err < 0 && sock) {
net/l2tp/l2tp_core.c
1562
kernel_sock_shutdown(sock, SHUT_RDWR);
net/l2tp/l2tp_core.c
1563
sock_release(sock);
net/l2tp/l2tp_core.c
1612
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
1647
struct socket *sock;
net/l2tp/l2tp_core.c
1648
struct sock *sk;
net/l2tp/l2tp_core.c
1661
&sock);
net/l2tp/l2tp_core.c
1665
sock = sockfd_lookup(tunnel->fd, &ret);
net/l2tp/l2tp_core.c
1666
if (!sock)
net/l2tp/l2tp_core.c
1670
sk = sock->sk;
net/l2tp/l2tp_core.c
1686
setup_udp_tunnel_sock(net, sock, &udp_cfg);
net/l2tp/l2tp_core.c
1693
tunnel->sock = sk;
net/l2tp/l2tp_core.c
1703
sockfd_put(sock);
net/l2tp/l2tp_core.c
1712
sock_release(sock);
net/l2tp/l2tp_core.c
1714
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
1807
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
199
lock_sock(tunnel->sock);
net/l2tp/l2tp_eth.c
200
l3_overhead = kernel_sock_ip_overhead(tunnel->sock);
net/l2tp/l2tp_eth.c
201
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
1026
session = l2tp_session_get(tunnel->l2tp_net, tunnel->sock, tunnel->version,
net/l2tp/l2tp_ppp.c
1042
static int pppol2tp_ioctl(struct socket *sock, unsigned int cmd,
net/l2tp/l2tp_ppp.c
1051
session = sock->sk->sk_user_data;
net/l2tp/l2tp_ppp.c
1068
session = sock->sk->sk_user_data;
net/l2tp/l2tp_ppp.c
1084
session = sock->sk->sk_user_data;
net/l2tp/l2tp_ppp.c
1137
static int pppol2tp_tunnel_setsockopt(struct sock *sk,
net/l2tp/l2tp_ppp.c
1158
static int pppol2tp_session_setsockopt(struct sock *sk,
net/l2tp/l2tp_ppp.c
120
struct sock __rcu *sk; /* Pointer to the session PPPoX socket */
net/l2tp/l2tp_ppp.c
121
struct sock *__sk; /* Copy of .sk, for cleanup */
net/l2tp/l2tp_ppp.c
1218
static int pppol2tp_setsockopt(struct socket *sock, int level, int optname,
net/l2tp/l2tp_ppp.c
1221
struct sock *sk = sock->sk;
net/l2tp/l2tp_ppp.c
1262
static int pppol2tp_tunnel_getsockopt(struct sock *sk,
net/l2tp/l2tp_ppp.c
1284
static int pppol2tp_session_getsockopt(struct sock *sk,
net/l2tp/l2tp_ppp.c
1324
static int pppol2tp_getsockopt(struct socket *sock, int level, int optname,
net/l2tp/l2tp_ppp.c
1327
struct sock *sk = sock->sk;
net/l2tp/l2tp_ppp.c
133
static struct sock *pppol2tp_session_get_sock(struct l2tp_session *session)
net/l2tp/l2tp_ppp.c
142
static struct l2tp_session *pppol2tp_sock_to_session(struct sock *sk)
net/l2tp/l2tp_ppp.c
1421
pd->session = l2tp_session_get_next(net, pd->tunnel->sock,
net/l2tp/l2tp_ppp.c
1494
tunnel->sock ? 'Y' : 'N',
net/l2tp/l2tp_ppp.c
1512
struct sock *sk;
net/l2tp/l2tp_ppp.c
1516
if (tunnel->sock) {
net/l2tp/l2tp_ppp.c
1517
struct inet_sock *inet = inet_sk(tunnel->sock);
net/l2tp/l2tp_ppp.c
167
static int pppol2tp_recvmsg(struct socket *sock, struct msghdr *msg,
net/l2tp/l2tp_ppp.c
172
struct sock *sk = sock->sk;
net/l2tp/l2tp_ppp.c
199
struct sock *sk;
net/l2tp/l2tp_ppp.c
249
static int pppol2tp_sendmsg(struct socket *sock, struct msghdr *m,
net/l2tp/l2tp_ppp.c
252
struct sock *sk = sock->sk;
net/l2tp/l2tp_ppp.c
331
struct sock *sk = (struct sock *)chan->private;
net/l2tp/l2tp_ppp.c
383
static void pppol2tp_session_destruct(struct sock *sk)
net/l2tp/l2tp_ppp.c
411
static int pppol2tp_release(struct socket *sock)
net/l2tp/l2tp_ppp.c
413
struct sock *sk = sock->sk;
net/l2tp/l2tp_ppp.c
430
sock->sk = NULL;
net/l2tp/l2tp_ppp.c
456
static int pppol2tp_backlog_recv(struct sock *sk, struct sk_buff *skb)
net/l2tp/l2tp_ppp.c
469
static int pppol2tp_create(struct net *net, struct socket *sock, int kern)
net/l2tp/l2tp_ppp.c
472
struct sock *sk;
net/l2tp/l2tp_ppp.c
478
sock_init_data(sock, sk);
net/l2tp/l2tp_ppp.c
481
sock->state = SS_UNCONNECTED;
net/l2tp/l2tp_ppp.c
482
sock->ops = &pppol2tp_ops;
net/l2tp/l2tp_ppp.c
500
struct sock *sk;
net/l2tp/l2tp_ppp.c
676
if (!tunnel->sock) {
net/l2tp/l2tp_ppp.c
687
static int pppol2tp_connect(struct socket *sock, struct sockaddr_unsized *uservaddr,
net/l2tp/l2tp_ppp.c
690
struct sock *sk = sock->sk;
net/l2tp/l2tp_ppp.c
729
session = l2tp_session_get(sock_net(sk), tunnel->sock, tunnel->version,
net/l2tp/l2tp_ppp.c
848
if (!tunnel->sock) {
net/l2tp/l2tp_ppp.c
880
static int pppol2tp_getname(struct socket *sock, struct sockaddr *uaddr,
net/l2tp/l2tp_ppp.c
887
struct sock *sk = sock->sk;
net/l2tp/l2tp_ppp.c
905
inet = inet_sk(tunnel->sock);
net/l2tp/l2tp_ppp.c
906
if (tunnel->version == 2 && tunnel->sock->sk_family == AF_INET) {
net/l2tp/l2tp_ppp.c
924
} else if (tunnel->version == 2 && tunnel->sock->sk_family == AF_INET6) {
net/l2tp/l2tp_ppp.c
939
memcpy(&sp.pppol2tp.addr.sin6_addr, &tunnel->sock->sk_v6_daddr,
net/l2tp/l2tp_ppp.c
940
sizeof(tunnel->sock->sk_v6_daddr));
net/l2tp/l2tp_ppp.c
942
} else if (tunnel->version == 3 && tunnel->sock->sk_family == AF_INET6) {
net/l2tp/l2tp_ppp.c
957
memcpy(&sp.pppol2tp.addr.sin6_addr, &tunnel->sock->sk_v6_daddr,
net/l2tp/l2tp_ppp.c
958
sizeof(tunnel->sock->sk_v6_daddr));
net/llc/af_llc.c
1026
static int llc_ui_getname(struct socket *sock, struct sockaddr *uaddr,
net/llc/af_llc.c
1030
struct sock *sk = sock->sk;
net/llc/af_llc.c
1074
static int llc_ui_ioctl(struct socket *sock, unsigned int cmd,
net/llc/af_llc.c
1090
static int llc_ui_setsockopt(struct socket *sock, int level, int optname,
net/llc/af_llc.c
1093
struct sock *sk = sock->sk;
net/llc/af_llc.c
1172
static int llc_ui_getsockopt(struct socket *sock, int level, int optname,
net/llc/af_llc.c
1175
struct sock *sk = sock->sk;
net/llc/af_llc.c
127
static int llc_ui_send_data(struct sock* sk, struct sk_buff *skb, int noblock)
net/llc/af_llc.c
146
static void llc_ui_sk_init(struct socket *sock, struct sock *sk)
net/llc/af_llc.c
148
sock_graft(sk, sock);
net/llc/af_llc.c
149
sk->sk_type = sock->type;
net/llc/af_llc.c
150
sock->ops = &llc_ui_ops;
net/llc/af_llc.c
171
static int llc_ui_create(struct net *net, struct socket *sock, int protocol,
net/llc/af_llc.c
174
struct sock *sk;
net/llc/af_llc.c
183
if (likely(sock->type == SOCK_DGRAM || sock->type == SOCK_STREAM)) {
net/llc/af_llc.c
188
llc_ui_sk_init(sock, sk);
net/llc/af_llc.c
200
static int llc_ui_release(struct socket *sock)
net/llc/af_llc.c
202
struct sock *sk = sock->sk;
net/llc/af_llc.c
230
sock->sk = NULL;
net/llc/af_llc.c
276
static int llc_ui_autobind(struct socket *sock, struct sockaddr_llc *addr)
net/llc/af_llc.c
278
struct sock *sk = sock->sk;
net/llc/af_llc.c
340
static int llc_ui_bind(struct socket *sock, struct sockaddr_unsized *uaddr, int addrlen)
net/llc/af_llc.c
343
struct sock *sk = sock->sk;
net/llc/af_llc.c
396
struct sock *ask;
net/llc/af_llc.c
43
static bool llc_ui_wait_for_conn(struct sock *sk, long timeout);
net/llc/af_llc.c
44
static int llc_ui_wait_for_disc(struct sock *sk, long timeout);
net/llc/af_llc.c
445
static int llc_ui_shutdown(struct socket *sock, int how)
net/llc/af_llc.c
447
struct sock *sk = sock->sk;
net/llc/af_llc.c
45
static int llc_ui_wait_for_busy_core(struct sock *sk, long timeout);
net/llc/af_llc.c
480
static int llc_ui_connect(struct socket *sock, struct sockaddr_unsized *uaddr,
net/llc/af_llc.c
483
struct sock *sk = sock->sk;
net/llc/af_llc.c
497
if (unlikely(sock->state == SS_CONNECTING))
net/llc/af_llc.c
502
rc = llc_ui_autobind(sock, addr);
net/llc/af_llc.c
508
sock->state = SS_CONNECTING;
net/llc/af_llc.c
515
sock->state = SS_UNCONNECTED;
net/llc/af_llc.c
534
sock->state = SS_CONNECTED;
net/llc/af_llc.c
541
sock->state = SS_UNCONNECTED;
net/llc/af_llc.c
553
static int llc_ui_listen(struct socket *sock, int backlog)
net/llc/af_llc.c
555
struct sock *sk = sock->sk;
net/llc/af_llc.c
559
if (unlikely(sock->state != SS_UNCONNECTED))
net/llc/af_llc.c
581
static int llc_ui_wait_for_disc(struct sock *sk, long timeout)
net/llc/af_llc.c
603
static bool llc_ui_wait_for_conn(struct sock *sk, long timeout)
net/llc/af_llc.c
619
static int llc_ui_wait_for_busy_core(struct sock *sk, long timeout)
net/llc/af_llc.c
645
static int llc_wait_data(struct sock *sk, long timeo)
net/llc/af_llc.c
696
static int llc_ui_accept(struct socket *sock, struct socket *newsock,
net/llc/af_llc.c
699
struct sock *sk = sock->sk, *newsk;
net/llc/af_llc.c
710
if (unlikely(sock->state != SS_UNCONNECTED ||
net/llc/af_llc.c
759
static int llc_ui_recvmsg(struct socket *sock, struct msghdr *msg, size_t len,
net/llc/af_llc.c
765
struct sock *sk = sock->sk;
net/llc/af_llc.c
930
static int llc_ui_sendmsg(struct socket *sock, struct msghdr *msg, size_t len)
net/llc/af_llc.c
933
struct sock *sk = sock->sk;
net/llc/af_llc.c
956
rc = llc_ui_autobind(sock, addr);
net/llc/af_llc.c
97
static inline u8 llc_ui_header_len(struct sock *sk, struct sockaddr_llc *addr)
net/llc/llc_c_ac.c
1000
static int llc_conn_ac_inc_npta_value(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
1023
int llc_conn_ac_adjust_npta_by_rr(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
1049
int llc_conn_ac_adjust_npta_by_rnr(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
1074
int llc_conn_ac_dec_tx_win_size(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
1094
int llc_conn_ac_inc_tx_win_size(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
1104
int llc_conn_ac_stop_all_timers(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
1110
int llc_conn_ac_stop_other_timers(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
1122
int llc_conn_ac_start_ack_timer(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
1130
int llc_conn_ac_start_rej_timer(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
1139
int llc_conn_ac_start_ack_tmr_if_not_running(struct sock *sk,
net/llc/llc_c_ac.c
1150
int llc_conn_ac_stop_ack_timer(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
1156
int llc_conn_ac_stop_p_timer(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
1165
int llc_conn_ac_stop_rej_timer(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
1171
int llc_conn_ac_upd_nr_received(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
119
int llc_conn_ac_disc_confirm(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
1207
int llc_conn_ac_upd_p_flag(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
1223
int llc_conn_ac_set_data_flag_2(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
1229
int llc_conn_ac_set_data_flag_0(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
1235
int llc_conn_ac_set_data_flag_1(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
1241
int llc_conn_ac_set_data_flag_1_if_data_flag_eq_0(struct sock *sk,
net/llc/llc_c_ac.c
1249
int llc_conn_ac_set_p_flag_0(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
1255
static int llc_conn_ac_set_p_flag_1(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
1261
int llc_conn_ac_set_remote_busy_0(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
1267
int llc_conn_ac_set_cause_flag_0(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
1273
int llc_conn_ac_set_cause_flag_1(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
1279
int llc_conn_ac_set_retry_cnt_0(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
128
int llc_conn_ac_rst_ind(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
1285
int llc_conn_ac_inc_retry_cnt_by_1(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
1291
int llc_conn_ac_set_vr_0(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
1297
int llc_conn_ac_inc_vr_by_1(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
1303
int llc_conn_ac_set_vs_0(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
1309
int llc_conn_ac_set_vs_nr(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
1315
static int llc_conn_ac_inc_vs_by_1(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
1321
static void llc_conn_tmr_common_cb(struct sock *sk, u8 type)
net/llc/llc_c_ac.c
1367
int llc_conn_ac_rst_vs(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
1374
int llc_conn_ac_upd_vs(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
1393
int llc_conn_disc(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
1406
int llc_conn_reset(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
1440
static void llc_process_tmr_ev(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
167
int llc_conn_ac_rst_confirm(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
176
int llc_conn_ac_clear_remote_busy_if_f_eq_1(struct sock *sk,
net/llc/llc_c_ac.c
188
int llc_conn_ac_stop_rej_tmr_if_data_flag_eq_2(struct sock *sk,
net/llc/llc_c_ac.c
198
int llc_conn_ac_send_disc_cmd_p_set_x(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
223
int llc_conn_ac_send_dm_rsp_f_set_p(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
249
int llc_conn_ac_send_dm_rsp_f_set_1(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
273
int llc_conn_ac_send_frmr_rsp_f_set_x(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
307
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_inc_vs_by_1(struct sock *sk, struct sk_buff *skb);
net/llc/llc_c_ac.c
33
static void llc_process_tmr_ev(struct sock *sk, struct sk_buff *skb);
net/llc/llc_c_ac.c
334
int llc_conn_ac_resend_frmr_rsp_f_set_p(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
34
static int llc_conn_ac_data_confirm(struct sock *sk, struct sk_buff *ev);
net/llc/llc_c_ac.c
36
static int llc_conn_ac_inc_npta_value(struct sock *sk, struct sk_buff *skb);
net/llc/llc_c_ac.c
364
int llc_conn_ac_send_i_cmd_p_set_1(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
38
static int llc_conn_ac_send_rr_rsp_f_set_ackpf(struct sock *sk,
net/llc/llc_c_ac.c
382
static int llc_conn_ac_send_i_cmd_p_set_0(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
400
int llc_conn_ac_send_i_xxx_x_set_0(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
41
static int llc_conn_ac_set_p_flag_1(struct sock *sk, struct sk_buff *skb);
net/llc/llc_c_ac.c
418
int llc_conn_ac_resend_i_xxx_x_set_0(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
427
int llc_conn_ac_resend_i_xxx_x_set_0_or_send_rr(struct sock *sk,
net/llc/llc_c_ac.c
45
int llc_conn_ac_clear_remote_busy(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
456
int llc_conn_ac_resend_i_rsp_f_set_1(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
465
int llc_conn_ac_send_rej_cmd_p_set_1(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
489
int llc_conn_ac_send_rej_rsp_f_set_1(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
513
int llc_conn_ac_send_rej_xxx_x_set_0(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
537
int llc_conn_ac_send_rnr_cmd_p_set_1(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
561
int llc_conn_ac_send_rnr_rsp_f_set_1(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
585
int llc_conn_ac_send_rnr_xxx_x_set_0(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
609
int llc_conn_ac_set_remote_busy(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
61
int llc_conn_ac_conn_ind(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
621
int llc_conn_ac_opt_send_rnr_xxx_x_set_0(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
645
int llc_conn_ac_send_rr_cmd_p_set_1(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
669
int llc_conn_ac_send_rr_rsp_f_set_1(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
69
int llc_conn_ac_conn_confirm(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
694
int llc_conn_ac_send_ack_rsp_f_set_1(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
718
int llc_conn_ac_send_rr_xxx_x_set_0(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
742
int llc_conn_ac_send_ack_xxx_x_set_0(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
766
void llc_conn_set_p_flag(struct sock *sk, u8 value)
net/llc/llc_c_ac.c
77
static int llc_conn_ac_data_confirm(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
776
int llc_conn_ac_send_sabme_cmd_p_set_x(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
804
int llc_conn_ac_send_ua_rsp_f_set_p(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
831
int llc_conn_ac_set_s_flag_0(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
837
int llc_conn_ac_set_s_flag_1(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
843
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_data_ind(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
863
int llc_conn_ac_send_ack_if_needed(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
894
int llc_conn_ac_rst_sendack_flag(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
91
int llc_conn_ac_disc_ind(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
910
static int llc_conn_ac_send_i_rsp_f_set_ackpf(struct sock *sk,
net/llc/llc_c_ac.c
939
int llc_conn_ac_send_i_as_ack(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ac.c
965
static int llc_conn_ac_send_rr_rsp_f_set_ackpf(struct sock *sk,
net/llc/llc_c_ev.c
107
int llc_conn_ev_data_req(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
115
int llc_conn_ev_disc_req(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
123
int llc_conn_ev_rst_req(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
131
int llc_conn_ev_local_busy_detected(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
139
int llc_conn_ev_local_busy_cleared(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
147
int llc_conn_ev_rx_bad_pdu(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
152
int llc_conn_ev_rx_disc_cmd_pbit_set_x(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
160
int llc_conn_ev_rx_dm_rsp_fbit_set_x(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
168
int llc_conn_ev_rx_frmr_rsp_fbit_set_x(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
176
int llc_conn_ev_rx_i_cmd_pbit_set_0(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
186
int llc_conn_ev_rx_i_cmd_pbit_set_1(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
196
int llc_conn_ev_rx_i_cmd_pbit_set_0_unexpd_ns(struct sock *sk,
net/llc/llc_c_ev.c
208
int llc_conn_ev_rx_i_cmd_pbit_set_1_unexpd_ns(struct sock *sk,
net/llc/llc_c_ev.c
220
int llc_conn_ev_rx_i_cmd_pbit_set_x_inval_ns(struct sock *sk,
net/llc/llc_c_ev.c
235
int llc_conn_ev_rx_i_rsp_fbit_set_0(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
245
int llc_conn_ev_rx_i_rsp_fbit_set_1(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
254
int llc_conn_ev_rx_i_rsp_fbit_set_x(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
263
int llc_conn_ev_rx_i_rsp_fbit_set_0_unexpd_ns(struct sock *sk,
net/llc/llc_c_ev.c
275
int llc_conn_ev_rx_i_rsp_fbit_set_1_unexpd_ns(struct sock *sk,
net/llc/llc_c_ev.c
287
int llc_conn_ev_rx_i_rsp_fbit_set_x_unexpd_ns(struct sock *sk,
net/llc/llc_c_ev.c
298
int llc_conn_ev_rx_i_rsp_fbit_set_x_inval_ns(struct sock *sk,
net/llc/llc_c_ev.c
313
int llc_conn_ev_rx_rej_cmd_pbit_set_0(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
322
int llc_conn_ev_rx_rej_cmd_pbit_set_1(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
331
int llc_conn_ev_rx_rej_rsp_fbit_set_0(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
340
int llc_conn_ev_rx_rej_rsp_fbit_set_1(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
349
int llc_conn_ev_rx_rej_rsp_fbit_set_x(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
357
int llc_conn_ev_rx_rnr_cmd_pbit_set_0(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
366
int llc_conn_ev_rx_rnr_cmd_pbit_set_1(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
375
int llc_conn_ev_rx_rnr_rsp_fbit_set_0(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
384
int llc_conn_ev_rx_rnr_rsp_fbit_set_1(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
393
int llc_conn_ev_rx_rr_cmd_pbit_set_0(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
402
int llc_conn_ev_rx_rr_cmd_pbit_set_1(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
411
int llc_conn_ev_rx_rr_rsp_fbit_set_0(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
421
int llc_conn_ev_rx_rr_rsp_fbit_set_1(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
431
int llc_conn_ev_rx_sabme_cmd_pbit_set_x(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
439
int llc_conn_ev_rx_ua_rsp_fbit_set_x(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
447
int llc_conn_ev_rx_xxx_cmd_pbit_set_1(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
462
int llc_conn_ev_rx_xxx_cmd_pbit_set_x(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
481
int llc_conn_ev_rx_xxx_rsp_fbit_set_x(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
502
int llc_conn_ev_rx_zzz_cmd_pbit_set_x_inval_nr(struct sock *sk,
net/llc/llc_c_ev.c
520
int llc_conn_ev_rx_zzz_rsp_fbit_set_x_inval_nr(struct sock *sk,
net/llc/llc_c_ev.c
538
int llc_conn_ev_rx_any_frame(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
543
int llc_conn_ev_p_tmr_exp(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
550
int llc_conn_ev_ack_tmr_exp(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
557
int llc_conn_ev_rej_tmr_exp(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
564
int llc_conn_ev_busy_tmr_exp(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
571
int llc_conn_ev_init_p_f_cycle(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
576
int llc_conn_ev_tx_buffer_full(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
590
int llc_conn_ev_qlfy_data_flag_eq_1(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
595
int llc_conn_ev_qlfy_data_flag_eq_0(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
600
int llc_conn_ev_qlfy_data_flag_eq_2(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
605
int llc_conn_ev_qlfy_p_flag_eq_1(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
621
int llc_conn_ev_qlfy_last_frame_eq_1(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
635
int llc_conn_ev_qlfy_last_frame_eq_0(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
640
int llc_conn_ev_qlfy_p_flag_eq_0(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
645
int llc_conn_ev_qlfy_p_flag_eq_f(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
653
int llc_conn_ev_qlfy_remote_busy_eq_0(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
658
int llc_conn_ev_qlfy_remote_busy_eq_1(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
663
int llc_conn_ev_qlfy_retry_cnt_lt_n2(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
668
int llc_conn_ev_qlfy_retry_cnt_gte_n2(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
673
int llc_conn_ev_qlfy_s_flag_eq_1(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
678
int llc_conn_ev_qlfy_s_flag_eq_0(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
683
int llc_conn_ev_qlfy_cause_flag_eq_1(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
688
int llc_conn_ev_qlfy_cause_flag_eq_0(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
693
int llc_conn_ev_qlfy_set_status_conn(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
701
int llc_conn_ev_qlfy_set_status_disc(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
709
int llc_conn_ev_qlfy_set_status_failed(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
717
int llc_conn_ev_qlfy_set_status_remote_busy(struct sock *sk,
net/llc/llc_c_ev.c
726
int llc_conn_ev_qlfy_set_status_refuse(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
734
int llc_conn_ev_qlfy_set_status_conflict(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
742
int llc_conn_ev_qlfy_set_status_rst_done(struct sock *sk, struct sk_buff *skb)
net/llc/llc_c_ev.c
75
static u16 llc_util_nr_inside_tx_window(struct sock *sk, u8 nr)
net/llc/llc_c_ev.c
99
int llc_conn_ev_conn_req(struct sock *sk, struct sk_buff *skb)
net/llc/llc_conn.c
1010
void llc_sk_reset(struct sock *sk)
net/llc/llc_conn.c
178
void llc_conn_send_pdu(struct sock *sk, struct sk_buff *skb)
net/llc/llc_conn.c
194
void llc_conn_rtn_pdu(struct sock *sk, struct sk_buff *skb)
net/llc/llc_conn.c
211
void llc_conn_resend_i_pdu_as_cmd(struct sock *sk, u8 nr, u8 first_p_bit)
net/llc/llc_conn.c
254
void llc_conn_resend_i_pdu_as_rsp(struct sock *sk, u8 nr, u8 first_f_bit)
net/llc/llc_conn.c
294
int llc_conn_remove_acked_pdus(struct sock *sk, u8 nr, u16 *how_many_unacked)
net/llc/llc_conn.c
328
static void llc_conn_send_pdus(struct sock *sk)
net/llc/llc_conn.c
34
static void llc_conn_send_pdus(struct sock *sk);
net/llc/llc_conn.c
35
static int llc_conn_service(struct sock *sk, struct sk_buff *skb);
net/llc/llc_conn.c
357
static int llc_conn_service(struct sock *sk, struct sk_buff *skb)
net/llc/llc_conn.c
36
static int llc_exec_conn_trans_actions(struct sock *sk,
net/llc/llc_conn.c
387
static const struct llc_conn_state_trans *llc_qualify_conn_ev(struct sock *sk,
net/llc/llc_conn.c
39
static const struct llc_conn_state_trans *llc_qualify_conn_ev(struct sock *sk,
net/llc/llc_conn.c
434
static int llc_exec_conn_trans_actions(struct sock *sk,
net/llc/llc_conn.c
457
const struct sock *sk,
net/llc/llc_conn.c
481
static struct sock *__llc_lookup_established(struct llc_sap *sap,
net/llc/llc_conn.c
486
struct sock *rc;
net/llc/llc_conn.c
519
struct sock *llc_lookup_established(struct llc_sap *sap,
net/llc/llc_conn.c
524
struct sock *sk;
net/llc/llc_conn.c
534
const struct sock *sk,
net/llc/llc_conn.c
545
static struct sock *__llc_lookup_listener(struct llc_sap *sap,
net/llc/llc_conn.c
549
struct sock *rc;
net/llc/llc_conn.c
593
static struct sock *llc_lookup_listener(struct llc_sap *sap,
net/llc/llc_conn.c
597
struct sock *rc = __llc_lookup_listener(sap, laddr, net);
net/llc/llc_conn.c
606
static struct sock *__llc_lookup(struct llc_sap *sap,
net/llc/llc_conn.c
611
struct sock *sk = __llc_lookup_established(sap, daddr, laddr, net);
net/llc/llc_conn.c
62
int llc_conn_state_process(struct sock *sk, struct sk_buff *skb)
net/llc/llc_conn.c
706
void llc_sap_add_socket(struct llc_sap *sap, struct sock *sk)
net/llc/llc_conn.c
731
void llc_sap_remove_socket(struct llc_sap *sap, struct sock *sk)
net/llc/llc_conn.c
750
static int llc_conn_rcv(struct sock *sk, struct sk_buff *skb)
net/llc/llc_conn.c
759
static struct sock *llc_create_incoming_sock(struct sock *sk,
net/llc/llc_conn.c
764
struct sock *newsk = llc_sk_alloc(sock_net(sk), sk->sk_family, GFP_ATOMIC,
net/llc/llc_conn.c
784
struct sock *sk;
net/llc/llc_conn.c
805
struct sock *newsk = llc_create_incoming_sock(sk, skb->dev,
net/llc/llc_conn.c
858
static int llc_backlog_rcv(struct sock *sk, struct sk_buff *skb)
net/llc/llc_conn.c
891
static void llc_sk_init(struct sock *sk)
net/llc/llc_conn.c
930
struct sock *llc_sk_alloc(struct net *net, int family, gfp_t priority, struct proto *prot, int kern)
net/llc/llc_conn.c
932
struct sock *sk = sk_alloc(net, family, priority, prot, kern);
net/llc/llc_conn.c
947
void llc_sk_stop_all_timers(struct sock *sk, bool sync)
net/llc/llc_conn.c
973
void llc_sk_free(struct sock *sk)
net/llc/llc_if.c
129
int llc_send_disc(struct sock *sk)
net/llc/llc_if.c
44
int llc_build_and_send_pkt(struct sock *sk, struct sk_buff *skb)
net/llc/llc_if.c
83
int llc_establish_connection(struct sock *sk, const u8 *lmac, u8 *dmac, u8 dsap)
net/llc/llc_if.c
89
struct sock *existing;
net/llc/llc_proc.c
117
struct sock *sk = v;
net/llc/llc_proc.c
128
struct sock* sk;
net/llc/llc_proc.c
177
struct sock* sk;
net/llc/llc_proc.c
34
static struct sock *llc_get_sk_idx(loff_t pos)
net/llc/llc_proc.c
37
struct sock *sk = NULL;
net/llc/llc_proc.c
67
static struct sock *laddr_hash_next(struct llc_sap *sap, int bucket)
net/llc/llc_proc.c
70
struct sock *sk = NULL;
net/llc/llc_proc.c
82
struct sock* sk, *next;
net/llc/llc_sap.c
282
struct sock *sk)
net/llc/llc_sap.c
297
const struct sock *sk,
net/llc/llc_sap.c
317
static struct sock *llc_lookup_dgram(struct llc_sap *sap,
net/llc/llc_sap.c
321
struct sock *rc;
net/llc/llc_sap.c
357
const struct sock *sk)
net/llc/llc_sap.c
367
struct sock **stack, int count)
net/llc/llc_sap.c
398
struct sock *sk;
net/llc/llc_sap.c
399
struct sock *stack[256 / sizeof(struct sock *)];
net/llc/llc_sap.c
436
struct sock *sk = llc_lookup_dgram(sap, &laddr, dev_net(skb->dev));
net/llc/llc_sap.c
48
struct sk_buff *llc_alloc_frame(struct sock *sk, struct net_device *dev,
net/llc/llc_sap.c
70
void llc_save_primitive(struct sock *sk, struct sk_buff *skb, u8 prim)
net/mctp/af_mctp.c
131
static int mctp_connect(struct socket *sock, struct sockaddr_unsized *addr,
net/mctp/af_mctp.c
134
struct sock *sk = sock->sk;
net/mctp/af_mctp.c
189
static int mctp_sendmsg(struct socket *sock, struct msghdr *msg, size_t len)
net/mctp/af_mctp.c
193
struct sock *sk = sock->sk;
net/mctp/af_mctp.c
27
static int mctp_release(struct socket *sock)
net/mctp/af_mctp.c
283
static int mctp_recvmsg(struct socket *sock, struct msghdr *msg, size_t len,
net/mctp/af_mctp.c
287
struct sock *sk = sock->sk;
net/mctp/af_mctp.c
29
struct sock *sk = sock->sk;
net/mctp/af_mctp.c
32
sock->sk = NULL;
net/mctp/af_mctp.c
386
static int mctp_setsockopt(struct socket *sock, int level, int optname,
net/mctp/af_mctp.c
389
struct mctp_sock *msk = container_of(sock->sk, struct mctp_sock, sk);
net/mctp/af_mctp.c
407
static int mctp_getsockopt(struct socket *sock, int level, int optname,
net/mctp/af_mctp.c
410
struct mctp_sock *msk = container_of(sock->sk, struct mctp_sock, sk);
net/mctp/af_mctp.c
52
static int mctp_bind(struct socket *sock, struct sockaddr_unsized *addr, int addrlen)
net/mctp/af_mctp.c
54
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
1106
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
1014
KUNIT_ASSERT_PTR_EQ(test, flows[0]->key->sk, sock->sk);
net/mctp/test/route-test.c
1022
mctp_test_flow_fini(test, dev, &dst, sock);
net/mctp/test/route-test.c
1046
struct socket *sock;
net/mctp/test/route-test.c
1059
rc = sock_create_kern(&init_net, AF_MCTP, SOCK_DGRAM, 0, &sock);
net/mctp/test/route-test.c
1072
mns = &sock_net(sock->sk)->mctp;
net/mctp/test/route-test.c
1082
rc = mctp_local_output(sock->sk, &dst, skb, dst_eid, MCTP_TAG_OWNER);
net/mctp/test/route-test.c
1103
sock_release(sock);
net/mctp/test/route-test.c
1117
struct socket *sock;
net/mctp/test/route-test.c
1125
__mctp_route_test_init(test, &dev, &dst, &sock, MCTP_NET_ANY);
net/mctp/test/route-test.c
1140
skb2 = skb_recv_datagram(sock->sk, MSG_DONTWAIT, &rc);
net/mctp/test/route-test.c
1154
__mctp_route_test_fini(test, dev, &dst, sock);
net/mctp/test/route-test.c
182
struct socket *sock;
net/mctp/test/route-test.c
192
rc = sock_create_kern(&init_net, AF_MCTP, SOCK_DGRAM, 0, &sock);
net/mctp/test/route-test.c
199
rc = kernel_bind(sock, (struct sockaddr_unsized *)&addr, sizeof(addr));
net/mctp/test/route-test.c
203
*sockp = sock;
net/mctp/test/route-test.c
209
struct socket *sock)
net/mctp/test/route-test.c
211
sock_release(sock);
net/mctp/test/route-test.c
228
struct socket *sock;
net/mctp/test/route-test.c
233
__mctp_route_test_init(test, &dev, &dst, &sock, MCTP_NET_ANY);
net/mctp/test/route-test.c
245
skb2 = skb_recv_datagram(sock->sk, MSG_DONTWAIT, &rc);
net/mctp/test/route-test.c
249
skb_free_datagram(sock->sk, skb2);
net/mctp/test/route-test.c
253
skb2 = skb_recv_datagram(sock->sk, MSG_DONTWAIT, &rc);
net/mctp/test/route-test.c
257
__mctp_route_test_fini(test, dev, &dst, sock);
net/mctp/test/route-test.c
297
struct socket *sock;
net/mctp/test/route-test.c
303
__mctp_route_test_init(test, &dev, &dst, &sock, MCTP_NET_ANY);
net/mctp/test/route-test.c
315
skb2 = skb_recv_datagram(sock->sk, MSG_DONTWAIT, &rc);
net/mctp/test/route-test.c
320
skb_free_datagram(sock->sk, skb2);
net/mctp/test/route-test.c
326
__mctp_route_test_fini(test, dev, &dst, sock);
net/mctp/test/route-test.c
433
struct socket *sock;
net/mctp/test/route-test.c
448
rc = sock_create_kern(&init_net, AF_MCTP, SOCK_DGRAM, 0, &sock);
net/mctp/test/route-test.c
451
msk = container_of(sock->sk, struct mctp_sock, sk);
net/mctp/test/route-test.c
452
mns = &sock_net(sock->sk)->mctp;
net/mctp/test/route-test.c
475
skb2 = skb_recv_datagram(sock->sk, MSG_DONTWAIT, &rc);
net/mctp/test/route-test.c
483
skb_free_datagram(sock->sk, skb2);
net/mctp/test/route-test.c
486
__mctp_route_test_fini(test, dev, &dst, sock);
net/mctp/test/route-test.c
562
struct socket *sock;
net/mctp/test/route-test.c
579
__mctp_route_test_init(test, &t->dev, &t->dst, &t->sock, t->netid);
net/mctp/test/route-test.c
590
__mctp_route_test_fini(test, t->dev, &t->dst, t->sock);
net/mctp/test/route-test.c
616
rx_skb1 = skb_recv_datagram(t1.sock->sk, MSG_DONTWAIT, &rc);
net/mctp/test/route-test.c
624
rx_skb2 = skb_recv_datagram(t2.sock->sk, MSG_DONTWAIT, &rc);
net/mctp/test/route-test.c
647
__mctp_route_test_init(test, &t->dev, &t->dst, &t->sock, t->netid);
net/mctp/test/route-test.c
649
msk = container_of(t->sock->sk, struct mctp_sock, sk);
net/mctp/test/route-test.c
654
mns = &sock_net(t->sock->sk)->mctp;
net/mctp/test/route-test.c
670
__mctp_route_test_fini(test, t->dev, &t->dst, t->sock);
net/mctp/test/route-test.c
697
rx_skb1 = skb_recv_datagram(t1.sock->sk, MSG_DONTWAIT, &rc);
net/mctp/test/route-test.c
705
rx_skb2 = skb_recv_datagram(t2.sock->sk, MSG_DONTWAIT, &rc);
net/mctp/test/route-test.c
725
struct socket *sock;
net/mctp/test/route-test.c
729
__mctp_route_test_init(test, &dev, &dst, &sock, MCTP_NET_ANY);
net/mctp/test/route-test.c
734
lock_sock(sock->sk);
net/mctp/test/route-test.c
735
WRITE_ONCE(sock->sk->sk_rcvbuf, 0);
net/mctp/test/route-test.c
736
release_sock(sock->sk);
net/mctp/test/route-test.c
752
__mctp_route_test_fini(test, dev, &dst, sock);
net/mctp/test/route-test.c
763
struct socket *sock;
net/mctp/test/route-test.c
767
__mctp_route_test_init(test, &dev, &dst, &sock, MCTP_NET_ANY);
net/mctp/test/route-test.c
769
lock_sock(sock->sk);
net/mctp/test/route-test.c
770
WRITE_ONCE(sock->sk->sk_rcvbuf, 0);
net/mctp/test/route-test.c
771
release_sock(sock->sk);
net/mctp/test/route-test.c
798
__mctp_route_test_fini(test, dev, &dst, sock);
net/mctp/test/route-test.c
820
struct socket *sock;
net/mctp/test/route-test.c
827
__mctp_route_test_init(test, &dev, &dst, &sock, MCTP_NET_ANY);
net/mctp/test/route-test.c
871
rx_skb = skb_recv_datagram(sock->sk, MSG_DONTWAIT, &rc);
net/mctp/test/route-test.c
885
rx_skb = skb_recv_datagram(sock->sk, MSG_DONTWAIT, &rc);
net/mctp/test/route-test.c
904
__mctp_route_test_fini(test, dev, &dst, sock);
net/mctp/test/route-test.c
912
struct socket **sock,
net/mctp/test/route-test.c
925
__mctp_route_test_init(test, &dev, dst, sock, MCTP_NET_ANY);
net/mctp/test/route-test.c
946
struct socket *sock)
net/mctp/test/route-test.c
948
__mctp_route_test_fini(test, dev, dst, sock);
net/mctp/test/route-test.c
958
struct socket *sock;
net/mctp/test/route-test.c
962
mctp_test_flow_init(test, &dev, &dst, &sock, &skb, 30);
net/mctp/test/route-test.c
964
rc = mctp_local_output(sock->sk, &dst, skb, dst_eid, MCTP_TAG_OWNER);
net/mctp/test/route-test.c
976
KUNIT_ASSERT_PTR_EQ(test, flow->key->sk, sock->sk);
net/mctp/test/route-test.c
979
mctp_test_flow_fini(test, dev, &dst, sock);
net/mctp/test/route-test.c
992
struct socket *sock;
net/mctp/test/route-test.c
996
mctp_test_flow_init(test, &dev, &dst, &sock, &skb, 100);
net/mctp/test/route-test.c
998
rc = mctp_local_output(sock->sk, &dst, skb, dst_eid, MCTP_TAG_OWNER);
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
251
int *ret_bind_errno, struct socket **sock)
net/mctp/test/utils.c
258
rc = sock_create_kern(&init_net, AF_MCTP, SOCK_DGRAM, 0, sock);
net/mctp/test/utils.c
269
rc = kernel_connect(*sock, (struct sockaddr_unsized *)&addr,
net/mctp/test/utils.c
282
kernel_bind(*sock, (struct sockaddr_unsized *)&addr,
net/mctp/test/utils.h
72
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
440
void mptcp_active_disable(struct sock *sk)
net/mptcp/ctrl.c
466
bool mptcp_active_should_disable(struct sock *ssk)
net/mptcp/ctrl.c
499
void mptcp_active_enable(struct sock *sk)
net/mptcp/ctrl.c
517
void mptcp_active_detect_blackhole(struct sock *ssk, bool expired)
net/mptcp/ctrl.c
75
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
1008
mptcp_data_lock((struct sock *)msk);
net/mptcp/options.c
1010
mptcp_data_unlock((struct sock *)msk);
net/mptcp/options.c
1057
static void rwin_update(struct mptcp_sock *msk, struct sock *ssk,
net/mptcp/options.c
1083
struct sock *ssk,
net/mptcp/options.c
1087
struct sock *sk = (struct sock *)msk;
net/mptcp/options.c
1162
bool mptcp_incoming_options(struct sock *sk, struct sk_buff *skb)
net/mptcp/options.c
1201
mptcp_schedule_work((struct sock *)msk);
net/mptcp/options.c
1259
mptcp_schedule_work((struct sock *)msk);
net/mptcp/options.c
1301
const struct sock *ssk = (const struct sock *)tp;
net/mptcp/options.c
1368
const struct sock *ssk = (const struct sock *)tp;
net/mptcp/options.c
1418
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
562
static bool mptcp_established_options_dss(struct sock *sk, struct sk_buff *skb,
net/mptcp/options.c
654
static bool mptcp_established_options_add_addr(struct sock *sk, struct sk_buff *skb,
net/mptcp/options.c
718
static bool mptcp_established_options_rm_addr(struct sock *sk,
net/mptcp/options.c
748
static bool mptcp_established_options_mp_prio(struct sock *sk,
net/mptcp/options.c
774
static noinline bool mptcp_established_options_rst(struct sock *sk, struct sk_buff *skb,
net/mptcp/options.c
793
static bool mptcp_established_options_fastclose(struct sock *sk,
net/mptcp/options.c
816
static bool mptcp_established_options_mp_fail(struct sock *sk,
net/mptcp/options.c
839
bool mptcp_established_options(struct sock *sk, struct sk_buff *skb,
net/mptcp/options.c
942
static bool check_fully_established(struct mptcp_sock *msk, struct sock *ssk,
net/mptcp/pm.c
1008
void mptcp_pm_subflow_chk_stale(const struct mptcp_sock *msk, struct sock *ssk)
net/mptcp/pm.c
1062
u8 pm_type = mptcp_get_pm_type(sock_net((struct sock *)msk));
net/mptcp/pm.c
164
bool mptcp_pm_sport_in_anno_list(struct mptcp_sock *msk, const struct sock *sk)
net/mptcp/pm.c
189
struct sock *ssk = mptcp_subflow_tcp_sock(subflow);
net/mptcp/pm.c
20
struct mptcp_sock *sock;
net/mptcp/pm.c
283
struct sock *ssk = mptcp_subflow_tcp_sock(subflow);
net/mptcp/pm.c
305
const struct net *net = sock_net((struct sock *)msk);
net/mptcp/pm.c
311
struct sock *ssk = mptcp_subflow_tcp_sock(subflow);
net/mptcp/pm.c
32
bool mptcp_pm_addr_families_match(const struct sock *sk,
net/mptcp/pm.c
328
struct mptcp_sock *msk = entry->sock;
net/mptcp/pm.c
329
struct sock *sk = (struct sock *)msk;
net/mptcp/pm.c
379
struct sock *sk = (struct sock *)msk;
net/mptcp/pm.c
408
struct sock *sk = (struct sock *)msk;
net/mptcp/pm.c
429
add_entry->sock = msk;
net/mptcp/pm.c
444
struct sock *sk = (struct sock *)msk;
net/mptcp/pm.c
473
MPTCP_INC_STATS(sock_net((struct sock *)msk),
net/mptcp/pm.c
496
MPTCP_ADD_STATS(sock_net((struct sock *)msk),
net/mptcp/pm.c
510
void mptcp_pm_new_connection(struct mptcp_sock *msk, const struct sock *ssk, int server_side)
net/mptcp/pm.c
569
mptcp_schedule_work((struct sock *)msk);
net/mptcp/pm.c
573
void mptcp_pm_fully_established(struct mptcp_sock *msk, const struct sock *ssk)
net/mptcp/pm.c
628
struct sock *sk = (struct sock *)msk;
net/mptcp/pm.c
659
void mptcp_pm_add_addr_received(const struct sock *ssk,
net/mptcp/pm.c
678
__MPTCP_INC_STATS(sock_net((struct sock *)msk), MPTCP_MIB_ADDADDRDROP);
net/mptcp/pm.c
691
__MPTCP_INC_STATS(sock_net((struct sock *)msk), MPTCP_MIB_ADDADDRDROP);
net/mptcp/pm.c
728
struct sock *sk = (struct sock *)msk;
net/mptcp/pm.c
750
struct sock *ssk = mptcp_subflow_tcp_sock(subflow);
net/mptcp/pm.c
812
__MPTCP_INC_STATS(sock_net((struct sock *)msk), MPTCP_MIB_RMADDRDROP);
net/mptcp/pm.c
816
void mptcp_pm_mp_prio_received(struct sock *ssk, u8 bkup)
net/mptcp/pm.c
819
struct sock *sk = subflow->conn;
net/mptcp/pm.c
830
void mptcp_pm_mp_fail_received(struct sock *sk, u64 fail_seq)
net/mptcp/pm.c
971
static void mptcp_pm_subflows_chk_stale(const struct mptcp_sock *msk, struct sock *ssk)
net/mptcp/pm.c
974
struct sock *sk = (struct sock *)msk;
net/mptcp/pm_kernel.c
105
struct sock *ssk = mptcp_subflow_tcp_sock(subflow);
net/mptcp/pm_kernel.c
1080
struct sock *sk = (struct sock *)msk;
net/mptcp/pm_kernel.c
1124
struct sock *sk = (struct sock *)msk;
net/mptcp/pm_kernel.c
1250
struct sock *sk = (struct sock *)msk;
net/mptcp/pm_kernel.c
1463
struct sock *sk = (struct sock *)msk;
net/mptcp/pm_kernel.c
185
struct sock *sk = (struct sock *)msk;
net/mptcp/pm_kernel.c
209
struct sock *sk = (struct sock *)msk, *ssk;
net/mptcp/pm_kernel.c
335
struct sock *sk = (struct sock *)msk;
net/mptcp/pm_kernel.c
42
return pm_nl_get_pernet(sock_net((struct sock *)msk));
net/mptcp/pm_kernel.c
451
struct sock *sk = (struct sock *)msk;
net/mptcp/pm_kernel.c
503
struct sock *sk = (struct sock *)msk;
net/mptcp/pm_kernel.c
513
struct sock *ssk = mptcp_subflow_tcp_sock(subflow);
net/mptcp/pm_kernel.c
564
struct sock *sk = (struct sock *)msk;
net/mptcp/pm_kernel.c
597
struct sock *sk = (struct sock *)msk;
net/mptcp/pm_kernel.c
648
struct sock *sk = (struct sock *)msk;
net/mptcp/pm_kernel.c
838
static int mptcp_pm_nl_create_listen_socket(struct sock *sk,
net/mptcp/pm_kernel.c
844
struct sock *newsk, *ssk;
net/mptcp/pm_kernel.c
954
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
180
sock_put((struct sock *)msk);
net/mptcp/pm_userspace.c
193
struct sock *sk;
net/mptcp/pm_userspace.c
202
sk = (struct sock *)msk;
net/mptcp/pm_userspace.c
250
struct sock *sk = (struct sock *)msk;
net/mptcp/pm_userspace.c
303
struct sock *sk;
net/mptcp/pm_userspace.c
316
sk = (struct sock *)msk;
net/mptcp/pm_userspace.c
365
struct sock *sk;
net/mptcp/pm_userspace.c
375
sk = (struct sock *)msk;
net/mptcp/pm_userspace.c
430
static struct sock *mptcp_nl_find_ssk(struct mptcp_sock *msk,
net/mptcp/pm_userspace.c
441
struct sock *ssk;
net/mptcp/pm_userspace.c
48
struct sock *sk = (struct sock *)msk;
net/mptcp/pm_userspace.c
482
struct sock *sk, *ssk;
net/mptcp/pm_userspace.c
493
sk = (struct sock *)msk;
net/mptcp/pm_userspace.c
563
struct sock *sk;
net/mptcp/pm_userspace.c
573
sk = (struct sock *)msk;
net/mptcp/pm_userspace.c
631
struct sock *sk;
net/mptcp/pm_userspace.c
641
sk = (struct sock *)msk;
net/mptcp/pm_userspace.c
668
struct sock *sk;
net/mptcp/pm_userspace.c
674
sk = (struct sock *)msk;
net/mptcp/protocol.c
1014
static void dfrag_uncharge(struct sock *sk, int len)
net/mptcp/protocol.c
1020
static void dfrag_clear(struct sock *sk, struct mptcp_data_frag *dfrag)
net/mptcp/protocol.c
1030
static void __mptcp_clean_una(struct sock *sk)
net/mptcp/protocol.c
106
struct sock *sk = (struct sock *)msk;
net/mptcp/protocol.c
1089
static void __mptcp_clean_una_wakeup(struct sock *sk)
net/mptcp/protocol.c
1097
static void mptcp_clean_una_wakeup(struct sock *sk)
net/mptcp/protocol.c
1104
static void mptcp_enter_memory_pressure(struct sock *sk)
net/mptcp/protocol.c
1111
struct sock *ssk = mptcp_subflow_tcp_sock(subflow);
net/mptcp/protocol.c
1126
static bool mptcp_page_frag_refill(struct sock *sk, struct page_frag *pfrag)
net/mptcp/protocol.c
1164
struct sock *ssk, u64 data_seq,
net/mptcp/protocol.c
1194
static struct sk_buff *__mptcp_do_alloc_tx_skb(struct sock *sk, gfp_t gfp)
net/mptcp/protocol.c
1213
static struct sk_buff *__mptcp_alloc_tx_skb(struct sock *sk, struct sock *ssk, gfp_t gfp)
net/mptcp/protocol.c
1230
static struct sk_buff *mptcp_alloc_tx_skb(struct sock *sk, struct sock *ssk, bool data_lock_held)
net/mptcp/protocol.c
1250
struct sock *ssk,
net/mptcp/protocol.c
1270
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
1421
struct sock *ssk;
net/mptcp/protocol.c
1455
struct sock *mptcp_subflow_get_send(struct mptcp_sock *msk)
net/mptcp/protocol.c
1459
struct sock *sk = (struct sock *)msk;
net/mptcp/protocol.c
1462
struct sock *ssk;
net/mptcp/protocol.c
150
static void mptcp_drop(struct sock *sk, struct sk_buff *skb)
net/mptcp/protocol.c
1531
static void mptcp_push_release(struct sock *ssk, struct mptcp_sendmsg_info *info)
net/mptcp/protocol.c
156
static bool __mptcp_try_coalesce(struct sock *sk, struct sk_buff *to,
net/mptcp/protocol.c
1564
void mptcp_check_and_set_pending(struct sock *sk)
net/mptcp/protocol.c
1573
static int __subflow_push_pending(struct sock *sk, struct sock *ssk,
net/mptcp/protocol.c
1617
void __mptcp_push_pending(struct sock *sk, unsigned int flags)
net/mptcp/protocol.c
1619
struct sock *prev_ssk = NULL, *ssk = NULL;
net/mptcp/protocol.c
1685
static void __mptcp_subflow_push_pending(struct sock *sk, struct sock *ssk, bool first)
net/mptcp/protocol.c
1692
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
1752
static int mptcp_disconnect(struct sock *sk, int flags);
net/mptcp/protocol.c
1754
static int mptcp_sendmsg_fastopen(struct sock *sk, struct msghdr *msg,
net/mptcp/protocol.c
1759
struct sock *ssk;
net/mptcp/protocol.c
1812
static int do_copy_data_nocache(struct sock *sk, int copy,
net/mptcp/protocol.c
1829
static u32 mptcp_send_limit(const struct sock *sk)
net/mptcp/protocol.c
1856
struct sock *ssk = mptcp_subflow_tcp_sock(subflow);
net/mptcp/protocol.c
1862
static int mptcp_sendmsg(struct sock *sk, struct msghdr *msg, size_t len)
net/mptcp/protocol.c
1995
static void mptcp_eat_recv_skb(struct sock *sk, struct sk_buff *skb)
net/mptcp/protocol.c
2006
static int __mptcp_recvmsg_mskq(struct sock *sk, struct msghdr *msg,
net/mptcp/protocol.c
201
return mptcp_try_coalesce((struct sock *)msk, to, from);
net/mptcp/protocol.c
2074
static void mptcp_rcv_space_init(struct mptcp_sock *msk, const struct sock *ssk)
net/mptcp/protocol.c
208
static bool mptcp_rcvbuf_grow(struct sock *sk, u32 newval)
net/mptcp/protocol.c
2096
struct sock *sk = (struct sock *)msk;
net/mptcp/protocol.c
2150
struct sock *ssk;
net/mptcp/protocol.c
2167
static bool __mptcp_move_skbs(struct sock *sk, struct list_head *skbs, u32 *delta)
net/mptcp/protocol.c
2192
mptcp_check_data_fin((struct sock *)msk);
net/mptcp/protocol.c
2196
static bool mptcp_can_spool_backlog(struct sock *sk, struct list_head *skbs)
net/mptcp/protocol.c
2216
static void mptcp_backlog_spooled(struct sock *sk, u32 moved,
net/mptcp/protocol.c
2225
static bool mptcp_move_skbs(struct sock *sk)
net/mptcp/protocol.c
2243
static unsigned int mptcp_inq_hint(const struct sock *sk)
net/mptcp/protocol.c
2264
static int mptcp_recvmsg(struct sock *sk, struct msghdr *msg, size_t len,
net/mptcp/protocol.c
2381
struct sock *sk = timer_container_of(sk, t, mptcp_retransmit_timer);
net/mptcp/protocol.c
2401
struct sock *sk = &icsk->icsk_inet.sk;
net/mptcp/protocol.c
2412
struct sock *mptcp_subflow_get_retrans(struct mptcp_sock *msk)
net/mptcp/protocol.c
2414
struct sock *backup = NULL, *pick = NULL;
net/mptcp/protocol.c
2419
struct sock *ssk = mptcp_subflow_tcp_sock(subflow);
net/mptcp/protocol.c
2448
bool __mptcp_retransmit_pending_data(struct sock *sk)
net/mptcp/protocol.c
245
struct sock *sk = (struct sock *)msk;
net/mptcp/protocol.c
2492
static void __mptcp_subflow_disconnect(struct sock *ssk,
net/mptcp/protocol.c
2516
static void __mptcp_close_ssk(struct sock *sk, struct sock *ssk,
net/mptcp/protocol.c
2619
void mptcp_close_ssk(struct sock *sk, struct sock *ssk,
net/mptcp/protocol.c
2653
static unsigned int mptcp_sync_mss(struct sock *sk, u32 pmtu)
net/mptcp/protocol.c
2658
static void __mptcp_close_subflow(struct sock *sk)
net/mptcp/protocol.c
2666
struct sock *ssk = mptcp_subflow_tcp_sock(subflow);
net/mptcp/protocol.c
2684
static bool mptcp_close_tout_expired(const struct sock *sk)
net/mptcp/protocol.c
2697
struct sock *sk = (struct sock *)msk;
net/mptcp/protocol.c
2705
struct sock *tcp_sk = mptcp_subflow_tcp_sock(subflow);
net/mptcp/protocol.c
2743
static void __mptcp_retrans(struct sock *sk)
net/mptcp/protocol.c
2749
struct sock *ssk;
net/mptcp/protocol.c
2853
struct sock *sk = (struct sock *)msk;
net/mptcp/protocol.c
2872
struct sock *ssk = msk->first;
net/mptcp/protocol.c
2886
static void mptcp_backlog_purge(struct sock *sk)
net/mptcp/protocol.c
2904
static void mptcp_do_fastclose(struct sock *sk)
net/mptcp/protocol.c
2918
struct sock *ssk = mptcp_subflow_tcp_sock(subflow);
net/mptcp/protocol.c
2943
struct sock *sk = (struct sock *)msk;
net/mptcp/protocol.c
2989
static void __mptcp_init_sock(struct sock *sk)
net/mptcp/protocol.c
3023
static void mptcp_ca_reset(struct sock *sk)
net/mptcp/protocol.c
3036
static int mptcp_init_sock(struct sock *sk)
net/mptcp/protocol.c
3071
static void __mptcp_clear_xmit(struct sock *sk)
net/mptcp/protocol.c
3081
void mptcp_cancel_work(struct sock *sk)
net/mptcp/protocol.c
3089
void mptcp_subflow_shutdown(struct sock *sk, struct sock *ssk, int how)
net/mptcp/protocol.c
31
static unsigned int mptcp_inq_hint(const struct sock *sk);
net/mptcp/protocol.c
3124
void mptcp_set_state(struct sock *sk, int state)
net/mptcp/protocol.c
3164
static int mptcp_close_state(struct sock *sk)
net/mptcp/protocol.c
3174
static void mptcp_check_send_data_fin(struct sock *sk)
net/mptcp/protocol.c
3193
struct sock *tcp_sk = mptcp_subflow_tcp_sock(subflow);
net/mptcp/protocol.c
3199
static void __mptcp_wr_shutdown(struct sock *sk)
net/mptcp/protocol.c
3214
static void __mptcp_destroy_sock(struct sock *sk)
net/mptcp/protocol.c
3235
void __mptcp_unaccepted_force_close(struct sock *sk)
net/mptcp/protocol.c
3242
static __poll_t mptcp_check_readable(struct sock *sk)
net/mptcp/protocol.c
3247
static void mptcp_check_listen_stop(struct sock *sk)
net/mptcp/protocol.c
3249
struct sock *ssk;
net/mptcp/protocol.c
3267
bool __mptcp_close(struct sock *sk, long timeout)
net/mptcp/protocol.c
3297
struct sock *ssk = mptcp_subflow_tcp_sock(subflow);
net/mptcp/protocol.c
3337
static void mptcp_close(struct sock *sk, long timeout)
net/mptcp/protocol.c
3351
static void mptcp_copy_inaddrs(struct sock *msk, const struct sock *ssk)
net/mptcp/protocol.c
3377
struct sock *sk = (struct sock *)msk;
net/mptcp/protocol.c
3396
static int mptcp_disconnect(struct sock *sk, int flags)
net/mptcp/protocol.c
3458
static struct ipv6_pinfo *mptcp_inet6_sk(const struct sock *sk)
net/mptcp/protocol.c
3465
static void mptcp_copy_ip6_options(struct sock *newsk, const struct sock *sk)
net/mptcp/protocol.c
3485
static void mptcp_copy_ip_options(struct sock *newsk, const struct sock *sk)
net/mptcp/protocol.c
3505
struct sock *mptcp_sk_clone_init(const struct sock *sk,
net/mptcp/protocol.c
3507
struct sock *ssk,
net/mptcp/protocol.c
3511
struct sock *nsk = sk_clone_lock(sk, GFP_ATOMIC);
net/mptcp/protocol.c
354
static void mptcp_init_skb(struct sock *ssk, struct sk_buff *skb, int offset,
net/mptcp/protocol.c
3586
static void mptcp_destroy(struct sock *sk)
net/mptcp/protocol.c
3596
void __mptcp_data_acked(struct sock *sk)
net/mptcp/protocol.c
3604
void __mptcp_check_push(struct sock *sk, struct sock *ssk)
net/mptcp/protocol.c
3617
static void mptcp_release_cb(struct sock *sk)
net/mptcp/protocol.c
3683
static void schedule_3rdack_retransmission(struct sock *ssk)
net/mptcp/protocol.c
3705
void mptcp_subflow_process_delegated(struct sock *ssk, long status)
net/mptcp/protocol.c
3708
struct sock *sk = subflow->conn;
net/mptcp/protocol.c
3730
static int mptcp_hash(struct sock *sk)
net/mptcp/protocol.c
3739
static void mptcp_unhash(struct sock *sk)
net/mptcp/protocol.c
3744
static int mptcp_get_port(struct sock *sk, unsigned short snum)
net/mptcp/protocol.c
3755
void mptcp_finish_connect(struct sock *ssk)
net/mptcp/protocol.c
3759
struct sock *sk;
net/mptcp/protocol.c
376
static bool __mptcp_move_skb(struct sock *sk, struct sk_buff *skb)
net/mptcp/protocol.c
3779
void mptcp_sock_graft(struct sock *sk, struct socket *parent)
net/mptcp/protocol.c
3790
static void mptcp_sock_check_graft(struct sock *sk, struct sock *ssk)
net/mptcp/protocol.c
3792
struct socket *sock;
net/mptcp/protocol.c
3795
sock = sk->sk_socket;
net/mptcp/protocol.c
3797
if (sock) {
net/mptcp/protocol.c
3798
mptcp_sock_graft(ssk, sock);
net/mptcp/protocol.c
3804
bool mptcp_finish_join(struct sock *ssk)
net/mptcp/protocol.c
3808
struct sock *parent = (void *)msk;
net/mptcp/protocol.c
3871
static void mptcp_shutdown(struct sock *sk, int how)
net/mptcp/protocol.c
3881
const struct sock *sk = (void *)msk;
net/mptcp/protocol.c
3908
static int mptcp_ioctl(struct sock *sk, int cmd, int *karg)
net/mptcp/protocol.c
3941
static int mptcp_connect(struct sock *sk, struct sockaddr_unsized *uaddr,
net/mptcp/protocol.c
3947
struct sock *ssk;
net/mptcp/protocol.c
4052
static int mptcp_bind(struct socket *sock, struct sockaddr_unsized *uaddr, int addr_len)
net/mptcp/protocol.c
4054
struct mptcp_sock *msk = mptcp_sk(sock->sk);
net/mptcp/protocol.c
4055
struct sock *ssk, *sk = sock->sk;
net/mptcp/protocol.c
4079
static int mptcp_listen(struct socket *sock, int backlog)
net/mptcp/protocol.c
408
static void mptcp_stop_rtx_timer(struct sock *sk)
net/mptcp/protocol.c
4081
struct mptcp_sock *msk = mptcp_sk(sock->sk);
net/mptcp/protocol.c
4082
struct sock *sk = sock->sk;
net/mptcp/protocol.c
4083
struct sock *ssk;
net/mptcp/protocol.c
4091
if (sock->state != SS_UNCONNECTED || sock->type != SOCK_STREAM)
net/mptcp/protocol.c
4119
static void mptcp_graft_subflows(struct sock *sk)
net/mptcp/protocol.c
414
static void mptcp_close_wake_up(struct sock *sk)
net/mptcp/protocol.c
4141
struct sock *ssk = mptcp_subflow_tcp_sock(subflow);
net/mptcp/protocol.c
4182
static int mptcp_stream_accept(struct socket *sock, struct socket *newsock,
net/mptcp/protocol.c
4185
struct mptcp_sock *msk = mptcp_sk(sock->sk);
net/mptcp/protocol.c
4186
struct sock *ssk, *newsk;
net/mptcp/protocol.c
4205
struct sock *new_mptcp_sock;
net/mptcp/protocol.c
4223
__inet_accept(sock, newsock, newsk);
net/mptcp/protocol.c
4245
__inet_accept(sock, newsock, newsk);
net/mptcp/protocol.c
4262
struct sock *sk = (struct sock *)msk;
net/mptcp/protocol.c
4275
static __poll_t mptcp_poll(struct file *file, struct socket *sock,
net/mptcp/protocol.c
4278
struct sock *sk = sock->sk;
net/mptcp/protocol.c
4285
sock_poll_wait(file, sock, wait);
net/mptcp/protocol.c
4290
struct sock *ssk = READ_ONCE(msk->first);
net/mptcp/protocol.c
432
struct sock *ssk = mptcp_subflow_tcp_sock(subflow);
net/mptcp/protocol.c
4324
static struct sk_buff *mptcp_recv_skb(struct sock *sk, u32 *off)
net/mptcp/protocol.c
4348
static int __mptcp_read_sock(struct sock *sk, read_descriptor_t *desc,
net/mptcp/protocol.c
4398
static int mptcp_read_sock(struct sock *sk, read_descriptor_t *desc,
net/mptcp/protocol.c
4404
static int __mptcp_splice_read(struct sock *sk, struct tcp_splice_state *tss)
net/mptcp/protocol.c
442
static bool mptcp_pending_data_fin_ack(struct sock *sk)
net/mptcp/protocol.c
4430
static ssize_t mptcp_splice_read(struct socket *sock, loff_t *ppos,
net/mptcp/protocol.c
4439
struct sock *sk = sock->sk;
net/mptcp/protocol.c
4454
timeo = sock_rcvtimeo(sk, sock->file->f_flags & O_NONBLOCK);
net/mptcp/protocol.c
451
static void mptcp_check_data_fin_ack(struct sock *sk)
net/mptcp/protocol.c
4559
struct sock *ssk = mptcp_subflow_tcp_sock(subflow);
net/mptcp/protocol.c
475
static bool mptcp_pending_data_fin(struct sock *sk, u64 *seq)
net/mptcp/protocol.c
495
static void mptcp_set_datafin_timeout(struct sock *sk)
net/mptcp/protocol.c
50
static void __mptcp_destroy_sock(struct sock *sk);
net/mptcp/protocol.c
506
static void __mptcp_set_timeout(struct sock *sk, long tout)
net/mptcp/protocol.c
51
static void mptcp_check_send_data_fin(struct sock *sk);
net/mptcp/protocol.c
513
const struct sock *ssk = mptcp_subflow_tcp_sock(subflow);
net/mptcp/protocol.c
519
static void mptcp_set_timeout(struct sock *sk)
net/mptcp/protocol.c
529
static inline bool tcp_can_send_ack(const struct sock *ssk)
net/mptcp/protocol.c
535
void __mptcp_subflow_send_ack(struct sock *ssk)
net/mptcp/protocol.c
541
static void mptcp_subflow_send_ack(struct sock *ssk)
net/mptcp/protocol.c
558
static void mptcp_subflow_cleanup_rbuf(struct sock *ssk, int copied)
net/mptcp/protocol.c
568
static bool mptcp_subflow_could_cleanup(const struct sock *ssk, bool rx_empty)
net/mptcp/protocol.c
585
struct sock *sk = (struct sock *)msk;
net/mptcp/protocol.c
593
struct sock *ssk = mptcp_subflow_tcp_sock(subflow);
net/mptcp/protocol.c
600
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
648
static void mptcp_dss_corruption(struct mptcp_sock *msk, struct sock *ssk)
net/mptcp/protocol.c
656
static void __mptcp_add_backlog(struct sock *sk,
net/mptcp/protocol.c
662
struct sock *ssk = skb->sk;
net/mptcp/protocol.c
699
struct sock *ssk, bool own_msk)
net/mptcp/protocol.c
702
struct sock *sk = (struct sock *)msk;
net/mptcp/protocol.c
775
struct sock *sk = (struct sock *)msk;
net/mptcp/protocol.c
78
struct net *net = sock_net((struct sock *)msk);
net/mptcp/protocol.c
818
static bool __mptcp_subflow_error_report(struct sock *sk, struct sock *ssk)
net/mptcp/protocol.c
849
void __mptcp_error_report(struct sock *sk)
net/mptcp/protocol.c
862
static bool move_skbs_to_msk(struct mptcp_sock *msk, struct sock *ssk)
net/mptcp/protocol.c
864
struct sock *sk = (struct sock *)msk;
net/mptcp/protocol.c
882
void mptcp_data_ready(struct sock *sk, struct sock *ssk)
net/mptcp/protocol.c
905
static void mptcp_subflow_joined(struct mptcp_sock *msk, struct sock *ssk)
net/mptcp/protocol.c
912
static bool __mptcp_finish_join(struct mptcp_sock *msk, struct sock *ssk)
net/mptcp/protocol.c
914
struct sock *sk = (struct sock *)msk;
net/mptcp/protocol.c
934
static void __mptcp_flush_join_list(struct sock *sk, struct list_head *join_list)
net/mptcp/protocol.c
940
struct sock *ssk = mptcp_subflow_tcp_sock(subflow);
net/mptcp/protocol.c
950
static bool mptcp_rtx_timer_pending(struct sock *sk)
net/mptcp/protocol.c
955
static void mptcp_reset_rtx_timer(struct sock *sk)
net/mptcp/protocol.c
967
bool mptcp_schedule_work(struct sock *sk)
net/mptcp/protocol.h
1006
static inline void __mptcp_propagate_sndbuf(struct sock *sk, struct sock *ssk)
net/mptcp/protocol.h
1019
static inline void mptcp_propagate_sndbuf(struct sock *sk, struct sock *ssk)
net/mptcp/protocol.h
1041
int mptcp_token_new_connect(struct sock *ssk);
net/mptcp/protocol.h
1064
bool mptcp_pm_addr_families_match(const struct sock *sk,
net/mptcp/protocol.h
1067
void mptcp_pm_subflow_chk_stale(const struct mptcp_sock *msk, struct sock *ssk);
net/mptcp/protocol.h
1068
void mptcp_pm_new_connection(struct mptcp_sock *msk, const struct sock *ssk, int server_side);
net/mptcp/protocol.h
1069
void mptcp_pm_fully_established(struct mptcp_sock *msk, const struct sock *ssk);
net/mptcp/protocol.h
1076
void mptcp_pm_add_addr_received(const struct sock *ssk,
net/mptcp/protocol.h
1090
void mptcp_pm_mp_prio_received(struct sock *sk, u8 bkup);
net/mptcp/protocol.h
1091
void mptcp_pm_mp_fail_received(struct sock *sk, u64 fail_seq);
net/mptcp/protocol.h
1098
bool mptcp_pm_sport_in_anno_list(struct mptcp_sock *msk, const struct sock *sk);
net/mptcp/protocol.h
1129
const struct sock *ssk, gfp_t gfp);
net/mptcp/protocol.h
1130
void mptcp_event_addr_announced(const struct sock *ssk, const struct mptcp_addr_info *info);
net/mptcp/protocol.h
1132
void mptcp_event_pm_listener(const struct sock *ssk,
net/mptcp/protocol.h
1262
void mptcp_sockopt_sync_locked(struct mptcp_sock *msk, struct sock *ssk);
net/mptcp/protocol.h
1276
static inline bool mptcp_check_fallback(const struct sock *sk)
net/mptcp/protocol.h
1286
struct sock *ssk = READ_ONCE(msk->first);
net/mptcp/protocol.h
1295
static inline bool mptcp_try_fallback(struct sock *ssk, int fb_mib)
net/mptcp/protocol.h
1298
struct sock *sk = subflow->conn;
net/mptcp/protocol.h
1342
static inline bool subflow_simultaneous_connect(struct sock *sk)
net/mptcp/protocol.h
337
struct sock *first; /* The mptcp ops can safely dereference, using suitable
net/mptcp/protocol.h
380
sock_owned_by_me((const struct sock *)msk);
net/mptcp/protocol.h
401
static inline int mptcp_win_from_space(const struct sock *sk, int space)
net/mptcp/protocol.h
406
static inline int mptcp_space_from_win(const struct sock *sk, int win)
net/mptcp/protocol.h
411
static inline int __mptcp_space(const struct sock *sk)
net/mptcp/protocol.h
418
static inline struct mptcp_data_frag *mptcp_send_head(const struct sock *sk)
net/mptcp/protocol.h
425
static inline struct mptcp_data_frag *mptcp_send_next(struct sock *sk)
net/mptcp/protocol.h
435
static inline struct mptcp_data_frag *mptcp_pending_tail(const struct sock *sk)
net/mptcp/protocol.h
448
static inline struct mptcp_data_frag *mptcp_rtx_head(struct sock *sk)
net/mptcp/protocol.h
586
struct sock *tcp_sock; /* tcp sk backpointer */
net/mptcp/protocol.h
587
struct sock *conn; /* parent mptcp_sock */
net/mptcp/protocol.h
589
void (*tcp_state_change)(struct sock *sk);
net/mptcp/protocol.h
590
void (*tcp_error_report)(struct sock *sk);
net/mptcp/protocol.h
596
mptcp_subflow_ctx(const struct sock *sk)
net/mptcp/protocol.h
604
static inline struct sock *
net/mptcp/protocol.h
646
mptcp_send_active_reset_reason(struct sock *sk)
net/mptcp/protocol.h
659
static inline void mptcp_borrow_fwdmem(struct sock *sk, struct sk_buff *skb)
net/mptcp/protocol.h
661
struct sock *ssk = skb->sk;
net/mptcp/protocol.h
705
void mptcp_subflow_process_delegated(struct sock *ssk, long actions);
net/mptcp/protocol.h
753
void __mptcp_inherit_memcg(struct sock *sk, struct sock *ssk, gfp_t gfp);
net/mptcp/protocol.h
754
void __mptcp_inherit_cgrp_data(struct sock *sk, struct sock *ssk);
net/mptcp/protocol.h
761
unsigned int mptcp_close_timeout(const struct sock *sk);
net/mptcp/protocol.h
766
void mptcp_active_disable(struct sock *sk);
net/mptcp/protocol.h
767
bool mptcp_active_should_disable(struct sock *ssk);
net/mptcp/protocol.h
768
void mptcp_active_enable(struct sock *sk);
net/mptcp/protocol.h
774
bool __mptcp_retransmit_pending_data(struct sock *sk);
net/mptcp/protocol.h
775
void mptcp_check_and_set_pending(struct sock *sk);
net/mptcp/protocol.h
776
void __mptcp_push_pending(struct sock *sk, unsigned int flags);
net/mptcp/protocol.h
777
bool mptcp_subflow_data_available(struct sock *sk);
net/mptcp/protocol.h
779
void mptcp_subflow_shutdown(struct sock *sk, struct sock *ssk, int how);
net/mptcp/protocol.h
780
void mptcp_close_ssk(struct sock *sk, struct sock *ssk,
net/mptcp/protocol.h
782
void __mptcp_subflow_send_ack(struct sock *ssk);
net/mptcp/protocol.h
783
void mptcp_subflow_reset(struct sock *ssk);
net/mptcp/protocol.h
784
void mptcp_subflow_queue_clean(struct sock *sk, struct sock *ssk);
net/mptcp/protocol.h
785
void mptcp_sock_graft(struct sock *sk, struct socket *parent);
net/mptcp/protocol.h
786
struct sock *__mptcp_nmpc_sk(struct mptcp_sock *msk);
net/mptcp/protocol.h
787
bool __mptcp_close(struct sock *sk, long timeout);
net/mptcp/protocol.h
788
void mptcp_cancel_work(struct sock *sk);
net/mptcp/protocol.h
789
void __mptcp_unaccepted_force_close(struct sock *sk);
net/mptcp/protocol.h
790
void mptcp_set_state(struct sock *sk, int state);
net/mptcp/protocol.h
800
int __mptcp_subflow_connect(struct sock *sk, const struct mptcp_pm_local *local,
net/mptcp/protocol.h
802
int mptcp_subflow_create_socket(struct sock *sk, unsigned short family,
net/mptcp/protocol.h
817
struct sock *mptcp_subflow_get_send(struct mptcp_sock *msk);
net/mptcp/protocol.h
818
struct sock *mptcp_subflow_get_retrans(struct mptcp_sock *msk);
net/mptcp/protocol.h
827
static inline bool mptcp_epollin_ready(const struct sock *sk)
net/mptcp/protocol.h
841
int mptcp_set_rcvlowat(struct sock *sk, int val);
net/mptcp/protocol.h
843
static inline bool __tcp_can_send(const struct sock *ssk)
net/mptcp/protocol.h
862
void mptcp_subflow_drop_ctx(struct sock *ssk);
net/mptcp/protocol.h
864
static inline void mptcp_subflow_tcp_fallback(struct sock *sk,
net/mptcp/protocol.h
881
struct sock *mptcp_sk_clone_init(const struct sock *sk,
net/mptcp/protocol.h
883
struct sock *ssk,
net/mptcp/protocol.h
888
void mptcp_finish_connect(struct sock *sk);
net/mptcp/protocol.h
889
void __mptcp_sync_state(struct sock *sk, int state);
net/mptcp/protocol.h
892
static inline void mptcp_stop_tout_timer(struct sock *sk)
net/mptcp/protocol.h
901
static inline void mptcp_set_close_tout(struct sock *sk, unsigned long tout)
net/mptcp/protocol.h
907
static inline void mptcp_start_tout_timer(struct sock *sk)
net/mptcp/protocol.h
913
static inline bool mptcp_is_fully_established(struct sock *sk)
net/mptcp/protocol.h
924
void mptcp_data_ready(struct sock *sk, struct sock *ssk);
net/mptcp/protocol.h
925
bool mptcp_finish_join(struct sock *sk);
net/mptcp/protocol.h
926
bool mptcp_schedule_work(struct sock *sk);
net/mptcp/protocol.h
927
int mptcp_setsockopt(struct sock *sk, int level, int optname,
net/mptcp/protocol.h
929
int mptcp_getsockopt(struct sock *sk, int level, int optname,
net/mptcp/protocol.h
940
void __mptcp_check_push(struct sock *sk, struct sock *ssk);
net/mptcp/protocol.h
941
void __mptcp_data_acked(struct sock *sk);
net/mptcp/protocol.h
942
void __mptcp_error_report(struct sock *sk);
net/mptcp/protocol.h
950
static inline u32 mptcp_notsent_lowat(const struct sock *sk)
net/mptcp/protocol.h
959
static inline bool mptcp_stream_memory_free(const struct sock *sk, int wake)
net/mptcp/protocol.h
968
static inline bool __mptcp_stream_is_writeable(const struct sock *sk, int wake)
net/mptcp/protocol.h
974
static inline void mptcp_write_space(struct sock *sk)
net/mptcp/protocol.h
982
static inline void __mptcp_sync_sndbuf(struct sock *sk)
net/mptcp/sched.c
21
struct sock *ssk;
net/mptcp/sched.c
33
struct sock *ssk;
net/mptcp/sockopt.c
1107
struct sock *sk = (struct sock *)msk;
net/mptcp/sockopt.c
1126
struct sock *ssk = mptcp_subflow_tcp_sock(subflow);
net/mptcp/sockopt.c
1156
static void mptcp_get_sub_addrs(const struct sock *sk, struct mptcp_subflow_addrs *a)
net/mptcp/sockopt.c
1199
struct sock *sk = (struct sock *)msk;
net/mptcp/sockopt.c
1218
struct sock *ssk = mptcp_subflow_tcp_sock(subflow);
net/mptcp/sockopt.c
126
struct sock *sk = (struct sock *)msk;
net/mptcp/sockopt.c
1298
struct sock *sk = (struct sock *)msk;
net/mptcp/sockopt.c
1326
struct sock *ssk = mptcp_subflow_tcp_sock(subflow);
net/mptcp/sockopt.c
1399
struct sock *sk = (void *)msk;
net/mptcp/sockopt.c
140
struct sock *sk = (struct sock *)msk;
net/mptcp/sockopt.c
1445
struct sock *sk = (void *)msk;
net/mptcp/sockopt.c
1470
struct sock *sk = (void *)msk;
net/mptcp/sockopt.c
1504
int mptcp_getsockopt(struct sock *sk, int level, int optname,
net/mptcp/sockopt.c
1508
struct sock *ssk;
net/mptcp/sockopt.c
151
struct sock *sk = (struct sock *)msk;
net/mptcp/sockopt.c
1535
static void sync_socket_options(struct mptcp_sock *msk, struct sock *ssk)
net/mptcp/sockopt.c
1538
struct sock *sk = (struct sock *)msk;
net/mptcp/sockopt.c
1591
void mptcp_sockopt_sync_locked(struct mptcp_sock *msk, struct sock *ssk)
net/mptcp/sockopt.c
161
struct sock *ssk = mptcp_subflow_tcp_sock(subflow);
net/mptcp/sockopt.c
1615
int mptcp_set_rcvlowat(struct sock *sk, int val)
net/mptcp/sockopt.c
1645
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
211
struct sock *sk = (struct sock *)msk;
net/mptcp/sockopt.c
237
struct sock *ssk = mptcp_subflow_tcp_sock(subflow);
net/mptcp/sockopt.c
253
struct sock *sk = (struct sock *)msk;
net/mptcp/sockopt.c
272
struct sock *ssk = mptcp_subflow_tcp_sock(subflow);
net/mptcp/sockopt.c
293
struct sock *sk = (struct sock *)msk;
net/mptcp/sockopt.c
294
struct sock *ssk;
net/mptcp/sockopt.c
30
static u32 sockopt_seq_reset(const struct sock *sk)
net/mptcp/sockopt.c
390
struct sock *sk = (struct sock *)msk;
net/mptcp/sockopt.c
392
struct sock *ssk;
net/mptcp/sockopt.c
55
msk->setsockopt_seq = sockopt_seq_reset((struct sock *)msk) + seq;
net/mptcp/sockopt.c
586
struct sock *sk = (struct sock *)msk;
net/mptcp/sockopt.c
607
struct sock *ssk = mptcp_subflow_tcp_sock(subflow);
net/mptcp/sockopt.c
626
int (*set_val)(struct sock *, int),
net/mptcp/sockopt.c
633
struct sock *ssk = mptcp_subflow_tcp_sock(subflow);
net/mptcp/sockopt.c
653
struct sock *sk = (struct sock *)msk;
net/mptcp/sockopt.c
658
struct sock *ssk = mptcp_subflow_tcp_sock(subflow);
net/mptcp/sockopt.c
673
struct sock *sk = (struct sock *)msk;
net/mptcp/sockopt.c
678
struct sock *ssk = mptcp_subflow_tcp_sock(subflow);
net/mptcp/sockopt.c
692
struct sock *sk = (struct sock *)msk;
net/mptcp/sockopt.c
693
struct sock *ssk;
net/mptcp/sockopt.c
73
struct sock *sk = (struct sock *)msk;
net/mptcp/sockopt.c
739
struct sock *sk = (struct sock *)msk;
net/mptcp/sockopt.c
751
struct sock *ssk = mptcp_subflow_tcp_sock(subflow);
net/mptcp/sockopt.c
782
struct sock *sk = (struct sock *)msk;
net/mptcp/sockopt.c
783
struct sock *ssk;
net/mptcp/sockopt.c
79
struct sock *ssk = mptcp_subflow_tcp_sock(subflow);
net/mptcp/sockopt.c
809
struct sock *ssk = mptcp_subflow_tcp_sock(subflow);
net/mptcp/sockopt.c
821
struct sock *sk = (void *)msk;
net/mptcp/sockopt.c
892
int mptcp_setsockopt(struct sock *sk, int level, int optname,
net/mptcp/sockopt.c
896
struct sock *ssk;
net/mptcp/sockopt.c
933
struct sock *sk = (struct sock *)msk;
net/mptcp/sockopt.c
934
struct sock *ssk;
net/mptcp/sockopt.c
958
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
1733
call_ad(struct net *net, struct sock *ctnl, struct sk_buff *skb,
net/netfilter/ipset/ip_set_core.c
1805
static int ip_set_ad(struct net *net, struct sock *ctnl,
net/netfilter/ipset/ip_set_core.c
2242
ip_set_sockfn_get(struct sock *sk, int optval, void __user *user, int *len)
net/netfilter/ipvs/ip_vs_core.c
1337
struct sock *sk;
net/netfilter/ipvs/ip_vs_core.c
1916
struct sock *sk;
net/netfilter/ipvs/ip_vs_ctl.c
2690
do_ip_vs_set_ctl(struct sock *sk, int cmd, sockptr_t ptr, unsigned int len)
net/netfilter/ipvs/ip_vs_ctl.c
3013
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
1860
result = make_send_sock(ipvs, id, dev, &tinfo->sock);
net/netfilter/ipvs/ip_vs_sync.c
1862
result = make_receive_sock(ipvs, id, dev, &tinfo->sock);
net/netfilter/ipvs/ip_vs_sync.c
1910
if (tinfo->sock)
net/netfilter/ipvs/ip_vs_sync.c
1911
sock_release(tinfo->sock);
net/netfilter/ipvs/ip_vs_sync.c
199
struct socket *sock;
net/netfilter/ipvs/ip_vs_sync.c
2001
if (tinfo->sock)
net/netfilter/ipvs/ip_vs_sync.c
2002
sock_release(tinfo->sock);
net/netfilter/ipvs/ip_vs_xmit.c
199
struct sock *sk = skb->sk;
net/netfilter/nf_conntrack_netlink.c
3254
static int ctnetlink_dump_exp_ct(struct net *net, struct sock *ctnl,
net/netfilter/nf_conntrack_proto.c
265
getorigdst(struct sock *sk, int optval, void __user *user, int *len)
net/netfilter/nf_conntrack_proto.c
321
ipv6_getorigdst(struct sock *sk, int optval, void __user *user, int *len)
net/netfilter/nf_log_syslog.c
166
struct sock *sk)
net/netfilter/nf_nat_proto.c
623
struct sock *sk = skb->sk;
net/netfilter/nf_nat_proto.c
688
struct sock *sk = skb->sk;
net/netfilter/nf_nat_proto.c
940
struct sock *sk = skb->sk;
net/netfilter/nf_queue.c
182
struct sock *sk = skb->sk;
net/netfilter/nf_queue.c
49
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
1304
static int nft_netlink_dump_start_rcu(struct sock *nlsk, struct sk_buff *skb,
net/netfilter/nfnetlink.c
53
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
471
struct sock *sk;
net/netfilter/nfnetlink_queue.c
509
static int nfqnl_put_sk_uidgid(struct sk_buff *skb, struct sock *sk)
net/netfilter/nfnetlink_queue.c
534
static int nfqnl_put_sk_classid(struct sk_buff *skb, struct sock *sk)
net/netfilter/nft_meta.c
134
struct sock *sk = skb_to_full_sk(pkt->skb);
net/netfilter/nft_meta.c
135
struct socket *sock;
net/netfilter/nft_meta.c
141
sock = sk->sk_socket;
net/netfilter/nft_meta.c
142
if (!sock || !sock->file) {
net/netfilter/nft_meta.c
150
sock->file->f_cred->fsuid);
net/netfilter/nft_meta.c
154
sock->file->f_cred->fsgid);
net/netfilter/nft_meta.c
168
struct sock *sk = skb_to_full_sk(pkt->skb);
net/netfilter/nft_socket.c
113
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
81
static struct sock *nft_socket_do_lookup(const struct nft_pktinfo *pkt)
net/netfilter/nft_socket.c
85
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
110
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
67
struct sock *sk = skb_to_full_sk(skb);
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
1031
netlink_autobind(sock);
net/netlink/af_netlink.c
1057
static int netlink_connect(struct socket *sock, struct sockaddr_unsized *addr,
net/netlink/af_netlink.c
1061
struct sock *sk = sock->sk;
net/netlink/af_netlink.c
1083
!netlink_allowed(sock, NL_CFG_F_NONROOT_SEND))
net/netlink/af_netlink.c
1091
err = netlink_autobind(sock);
net/netlink/af_netlink.c
1104
static int netlink_getname(struct socket *sock, struct sockaddr *addr,
net/netlink/af_netlink.c
1107
struct sock *sk = sock->sk;
net/netlink/af_netlink.c
1128
static int netlink_ioctl(struct socket *sock, unsigned int cmd,
net/netlink/af_netlink.c
1136
static struct sock *netlink_getsockbyportid(struct sock *ssk, u32 portid)
net/netlink/af_netlink.c
1138
struct sock *sock;
net/netlink/af_netlink.c
1141
sock = netlink_lookup(sock_net(ssk), ssk->sk_protocol, portid);
net/netlink/af_netlink.c
1142
if (!sock)
net/netlink/af_netlink.c
1146
nlk = nlk_sk(sock);
net/netlink/af_netlink.c
1148
if (READ_ONCE(sock->sk_state) == NETLINK_CONNECTED &&
net/netlink/af_netlink.c
1150
sock_put(sock);
net/netlink/af_netlink.c
1153
return sock;
net/netlink/af_netlink.c
1156
struct sock *netlink_getsockbyfd(int fd)
net/netlink/af_netlink.c
1160
struct sock *sock;
net/netlink/af_netlink.c
1169
sock = SOCKET_I(inode)->sk;
net/netlink/af_netlink.c
1170
if (sock->sk_family != AF_NETLINK)
net/netlink/af_netlink.c
1173
sock_hold(sock);
net/netlink/af_netlink.c
1174
return sock;
net/netlink/af_netlink.c
1209
int netlink_attachskb(struct sock *sk, struct sk_buff *skb,
net/netlink/af_netlink.c
1210
long *timeo, struct sock *ssk)
net/netlink/af_netlink.c
1256
static int __netlink_sendskb(struct sock *sk, struct sk_buff *skb)
net/netlink/af_netlink.c
1267
int netlink_sendskb(struct sock *sk, struct sk_buff *skb)
net/netlink/af_netlink.c
1275
void netlink_detachskb(struct sock *sk, struct sk_buff *skb)
net/netlink/af_netlink.c
1305
static int netlink_unicast_kernel(struct sock *sk, struct sk_buff *skb,
net/netlink/af_netlink.c
1306
struct sock *ssk)
net/netlink/af_netlink.c
1327
int netlink_unicast(struct sock *ssk, struct sk_buff *skb,
net/netlink/af_netlink.c
133
static int netlink_dump(struct sock *sk, bool lock_taken);
net/netlink/af_netlink.c
1330
struct sock *sk;
net/netlink/af_netlink.c
1363
int netlink_has_listeners(struct sock *sk, unsigned int group)
net/netlink/af_netlink.c
1388
static int netlink_broadcast_deliver(struct sock *sk, struct sk_buff *skb)
net/netlink/af_netlink.c
1408
struct sock *exclude_sk;
net/netlink/af_netlink.c
1418
int (*tx_filter)(struct sock *dsk, struct sk_buff *skb, void *data);
net/netlink/af_netlink.c
1422
static void do_one_broadcast(struct sock *sk,
net/netlink/af_netlink.c
1502
int netlink_broadcast_filtered(struct sock *ssk, struct sk_buff *skb,
net/netlink/af_netlink.c
1510
struct sock *sk;
net/netlink/af_netlink.c
1554
int netlink_broadcast(struct sock *ssk, struct sk_buff *skb, u32 portid,
net/netlink/af_netlink.c
1563
struct sock *exclude_sk;
net/netlink/af_netlink.c
1569
static int do_one_set_err(struct sock *sk, struct netlink_set_err_data *p)
net/netlink/af_netlink.c
1605
int netlink_set_err(struct sock *ssk, u32 portid, u32 group, int code)
net/netlink/af_netlink.c
1609
struct sock *sk;
net/netlink/af_netlink.c
1642
static int netlink_setsockopt(struct socket *sock, int level, int optname,
net/netlink/af_netlink.c
1645
struct sock *sk = sock->sk;
net/netlink/af_netlink.c
1665
if (!netlink_allowed(sock, NL_CFG_F_NONROOT_RECV))
net/netlink/af_netlink.c
1718
static int netlink_getsockopt(struct socket *sock, int level, int optname,
net/netlink/af_netlink.c
1721
struct sock *sk = sock->sk;
net/netlink/af_netlink.c
1802
static void netlink_cmsg_listen_all_nsid(struct sock *sk, struct msghdr *msg,
net/netlink/af_netlink.c
1812
static int netlink_sendmsg(struct socket *sock, struct msghdr *msg, size_t len)
net/netlink/af_netlink.c
1814
struct sock *sk = sock->sk;
net/netlink/af_netlink.c
1832
err = scm_send(sock, msg, &scm, true);
net/netlink/af_netlink.c
1846
!netlink_allowed(sock, NL_CFG_F_NONROOT_SEND))
net/netlink/af_netlink.c
1857
err = netlink_autobind(sock);
net/netlink/af_netlink.c
1901
static int netlink_recvmsg(struct socket *sock, struct msghdr *msg, size_t len,
net/netlink/af_netlink.c
1905
struct sock *sk = sock->sk;
net/netlink/af_netlink.c
1983
scm_recv(sock, msg, &scm, flags);
net/netlink/af_netlink.c
1989
static void netlink_data_ready(struct sock *sk)
net/netlink/af_netlink.c
2000
struct sock *
net/netlink/af_netlink.c
2004
struct socket *sock;
net/netlink/af_netlink.c
2005
struct sock *sk;
net/netlink/af_netlink.c
2015
if (sock_create_lite(PF_NETLINK, SOCK_DGRAM, unit, &sock))
net/netlink/af_netlink.c
2018
if (__netlink_create(net, sock, unit, 1) < 0)
net/netlink/af_netlink.c
2021
sk = sock->sk;
net/netlink/af_netlink.c
2067
sock_release(sock);
net/netlink/af_netlink.c
2073
netlink_kernel_release(struct sock *sk)
net/netlink/af_netlink.c
2082
int __netlink_change_ngroups(struct sock *sk, unsigned int groups)
net/netlink/af_netlink.c
2117
int netlink_change_ngroups(struct sock *sk, unsigned int groups)
net/netlink/af_netlink.c
2128
void __netlink_clear_multicast_users(struct sock *ksk, unsigned int group)
net/netlink/af_netlink.c
2130
struct sock *sk;
net/netlink/af_netlink.c
2253
static int netlink_dump(struct sock *sk, bool lock_taken)
net/netlink/af_netlink.c
2386
int __netlink_dump_start(struct sock *ssk, struct sk_buff *skb,
net/netlink/af_netlink.c
2392
struct sock *sk;
net/netlink/af_netlink.c
2578
int nlmsg_notify(struct sock *sk, struct sk_buff *skb, u32 portid,
net/netlink/af_netlink.c
265
struct sock *sk = skb->sk;
net/netlink/af_netlink.c
2700
struct sock *s = v;
net/netlink/af_netlink.c
2736
ctx.sk = nlk_sk((struct sock *)v);
net/netlink/af_netlink.c
289
struct sock *sk = skb->sk;
net/netlink/af_netlink.c
343
static void netlink_deliver_tap_kernel(struct sock *dst, struct sock *src,
net/netlink/af_netlink.c
350
static void netlink_overrun(struct sock *sk)
net/netlink/af_netlink.c
362
static void netlink_rcv_wake(struct sock *sk)
net/netlink/af_netlink.c
385
static void netlink_skb_set_owner_r(struct sk_buff *skb, struct sock *sk)
net/netlink/af_netlink.c
393
static void netlink_sock_destruct(struct sock *sk)
net/netlink/af_netlink.c
492
static struct sock *__netlink_lookup(struct netlink_table *table, u32 portid,
net/netlink/af_netlink.c
502
static int __netlink_insert(struct netlink_table *table, struct sock *sk)
net/netlink/af_netlink.c
512
static struct sock *netlink_lookup(struct net *net, int protocol, u32 portid)
net/netlink/af_netlink.c
515
struct sock *sk;
net/netlink/af_netlink.c
529
netlink_update_listeners(struct sock *sk)
net/netlink/af_netlink.c
552
static int netlink_insert(struct sock *sk, u32 portid)
net/netlink/af_netlink.c
593
static void netlink_remove(struct sock *sk)
net/netlink/af_netlink.c
618
static int __netlink_create(struct net *net, struct socket *sock,
net/netlink/af_netlink.c
621
struct sock *sk;
net/netlink/af_netlink.c
624
sock->ops = &netlink_ops;
net/netlink/af_netlink.c
630
sock_init_data(sock, sk);
net/netlink/af_netlink.c
644
static int netlink_create(struct net *net, struct socket *sock, int protocol,
net/netlink/af_netlink.c
651
void (*release)(struct sock *sock, unsigned long *groups);
net/netlink/af_netlink.c
654
sock->state = SS_UNCONNECTED;
net/netlink/af_netlink.c
656
if (sock->type != SOCK_RAW && sock->type != SOCK_DGRAM)
net/netlink/af_netlink.c
684
err = __netlink_create(net, sock, protocol, kern);
net/netlink/af_netlink.c
690
nlk = nlk_sk(sock->sk);
net/netlink/af_netlink.c
706
struct sock *sk = &nlk->sk;
net/netlink/af_netlink.c
717
static int netlink_release(struct socket *sock)
net/netlink/af_netlink.c
719
struct sock *sk = sock->sk;
net/netlink/af_netlink.c
750
sock->sk = NULL;
net/netlink/af_netlink.c
800
static int netlink_autobind(struct socket *sock)
net/netlink/af_netlink.c
802
struct sock *sk = sock->sk;
net/netlink/af_netlink.c
85
static inline int netlink_is_kernel(struct sock *sk)
net/netlink/af_netlink.c
904
static inline int netlink_allowed(const struct socket *sock, unsigned int flag)
net/netlink/af_netlink.c
906
return (nl_table[sock->sk->sk_protocol].flags & flag) ||
net/netlink/af_netlink.c
907
ns_capable(sock_net(sock->sk)->user_ns, CAP_NET_ADMIN);
net/netlink/af_netlink.c
911
netlink_update_subscriptions(struct sock *sk, unsigned int subscriptions)
net/netlink/af_netlink.c
922
static int netlink_realloc_groups(struct sock *sk)
net/netlink/af_netlink.c
956
struct sock *sk)
net/netlink/af_netlink.c
969
static int netlink_bind(struct socket *sock, struct sockaddr_unsized *addr,
net/netlink/af_netlink.c
972
struct sock *sk = sock->sk;
net/netlink/af_netlink.c
989
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
1987
struct sock *sk = net->genl_sock;
net/netlink/genetlink.c
685
struct sock *sk)
net/netlink/genetlink.c
697
static void genl_release(struct sock *sk, unsigned long *groups)
net/netlink/genetlink.c
723
void *__genl_sk_priv_get(struct genl_family *family, struct sock *sk)
net/netlink/genetlink.c
742
void *genl_sk_priv_get(struct genl_family *family, struct sock *sk)
net/netrom/af_netrom.c
103
struct sock *s;
net/netrom/af_netrom.c
1042
static int nr_sendmsg(struct socket *sock, struct msghdr *msg, size_t len)
net/netrom/af_netrom.c
1044
struct sock *sk = sock->sk;
net/netrom/af_netrom.c
1151
static int nr_recvmsg(struct socket *sock, struct msghdr *msg, size_t size,
net/netrom/af_netrom.c
1154
struct sock *sk = sock->sk;
net/netrom/af_netrom.c
1208
static int nr_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
net/netrom/af_netrom.c
1210
struct sock *sk = sock->sk;
net/netrom/af_netrom.c
1285
struct sock *s = sk_entry(v);
net/netrom/af_netrom.c
134
static void nr_insert_socket(struct sock *sk)
net/netrom/af_netrom.c
145
static struct sock *nr_find_listener(ax25_address *addr)
net/netrom/af_netrom.c
147
struct sock *s;
net/netrom/af_netrom.c
165
static struct sock *nr_find_socket(unsigned char index, unsigned char id)
net/netrom/af_netrom.c
167
struct sock *s;
net/netrom/af_netrom.c
187
static struct sock *nr_find_peer(unsigned char index, unsigned char id,
net/netrom/af_netrom.c
190
struct sock *s;
net/netrom/af_netrom.c
215
struct sock *sk;
net/netrom/af_netrom.c
236
void nr_destroy_socket(struct sock *);
net/netrom/af_netrom.c
243
struct sock *sk = timer_container_of(sk, t, sk_timer);
net/netrom/af_netrom.c
257
void nr_destroy_socket(struct sock *sk)
net/netrom/af_netrom.c
296
static int nr_setsockopt(struct socket *sock, int level, int optname,
net/netrom/af_netrom.c
299
struct sock *sk = sock->sk;
net/netrom/af_netrom.c
348
static int nr_getsockopt(struct socket *sock, int level, int optname,
net/netrom/af_netrom.c
351
struct sock *sk = sock->sk;
net/netrom/af_netrom.c
398
static int nr_listen(struct socket *sock, int backlog)
net/netrom/af_netrom.c
400
struct sock *sk = sock->sk;
net/netrom/af_netrom.c
403
if (sock->state != SS_UNCONNECTED) {
net/netrom/af_netrom.c
426
static int nr_create(struct net *net, struct socket *sock, int protocol,
net/netrom/af_netrom.c
429
struct sock *sk;
net/netrom/af_netrom.c
435
if (sock->type != SOCK_SEQPACKET || protocol != 0)
net/netrom/af_netrom.c
444
sock_init_data(sock, sk);
net/netrom/af_netrom.c
446
sock->ops = &nr_proto_ops;
net/netrom/af_netrom.c
473
static struct sock *nr_make_new(struct sock *osk)
net/netrom/af_netrom.c
475
struct sock *sk;
net/netrom/af_netrom.c
518
static int nr_release(struct socket *sock)
net/netrom/af_netrom.c
520
struct sock *sk = sock->sk;
net/netrom/af_netrom.c
557
sock->sk = NULL;
net/netrom/af_netrom.c
564
static int nr_bind(struct socket *sock, struct sockaddr_unsized *uaddr, int addr_len)
net/netrom/af_netrom.c
566
struct sock *sk = sock->sk;
net/netrom/af_netrom.c
635
static int nr_connect(struct socket *sock, struct sockaddr_unsized *uaddr,
net/netrom/af_netrom.c
638
struct sock *sk = sock->sk;
net/netrom/af_netrom.c
647
if (sk->sk_state == TCP_ESTABLISHED && sock->state == SS_CONNECTING) {
net/netrom/af_netrom.c
648
sock->state = SS_CONNECTED;
net/netrom/af_netrom.c
652
if (sk->sk_state == TCP_CLOSE && sock->state == SS_CONNECTING) {
net/netrom/af_netrom.c
653
sock->state = SS_UNCONNECTED;
net/netrom/af_netrom.c
663
if (sock->state == SS_CONNECTING) {
net/netrom/af_netrom.c
669
sock->state = SS_UNCONNECTED;
net/netrom/af_netrom.c
720
sock->state = SS_CONNECTING;
net/netrom/af_netrom.c
762
sock->state = SS_UNCONNECTED;
net/netrom/af_netrom.c
767
sock->state = SS_CONNECTED;
net/netrom/af_netrom.c
775
static int nr_accept(struct socket *sock, struct socket *newsock,
net/netrom/af_netrom.c
779
struct sock *newsk;
net/netrom/af_netrom.c
781
struct sock *sk;
net/netrom/af_netrom.c
784
if ((sk = sock->sk) == NULL)
net/netrom/af_netrom.c
838
static int nr_getname(struct socket *sock, struct sockaddr *uaddr,
net/netrom/af_netrom.c
842
struct sock *sk = sock->sk;
net/netrom/af_netrom.c
873
struct sock *sk;
net/netrom/af_netrom.c
874
struct sock *make;
net/netrom/af_netrom.c
91
static void nr_remove_socket(struct sock *sk)
net/netrom/nr_in.c
115
static int nr_state2_machine(struct sock *sk, struct sk_buff *skb,
net/netrom/nr_in.c
146
static int nr_state3_machine(struct sock *sk, struct sk_buff *skb, int frametype)
net/netrom/nr_in.c
276
int nr_process_rx_frame(struct sock *sk, struct sk_buff *skb)
net/netrom/nr_in.c
29
static int nr_queue_rx_frame(struct sock *sk, struct sk_buff *skb, int more)
net/netrom/nr_in.c
71
static int nr_state1_machine(struct sock *sk, struct sk_buff *skb,
net/netrom/nr_out.c
124
void nr_kick(struct sock *sk)
net/netrom/nr_out.c
187
void nr_transmit_buffer(struct sock *sk, struct sk_buff *skb)
net/netrom/nr_out.c
222
void nr_establish_data_link(struct sock *sk)
net/netrom/nr_out.c
240
void nr_enquiry_response(struct sock *sk)
net/netrom/nr_out.c
258
void nr_check_iframes_acked(struct sock *sk, unsigned short nr)
net/netrom/nr_out.c
32
void nr_output(struct sock *sk, struct sk_buff *skb)
net/netrom/nr_out.c
81
static void nr_send_iframe(struct sock *sk, struct sk_buff *skb)
net/netrom/nr_out.c
99
void nr_send_nak_frame(struct sock *sk)
net/netrom/nr_subr.c
101
int nr_in_rx_window(struct sock *sk, unsigned short ns)
net/netrom/nr_subr.c
119
void nr_write_internal(struct sock *sk, int frametype)
net/netrom/nr_subr.c
261
void nr_disconnect(struct sock *sk, int reason)
net/netrom/nr_subr.c
31
void nr_clear_queues(struct sock *sk)
net/netrom/nr_subr.c
46
void nr_frames_acked(struct sock *sk, unsigned short nr)
net/netrom/nr_subr.c
68
void nr_requeue_frames(struct sock *sk)
net/netrom/nr_subr.c
85
int nr_validate_nr(struct sock *sk, unsigned short nr)
net/netrom/nr_timer.c
102
void nr_stop_heartbeat(struct sock *sk)
net/netrom/nr_timer.c
107
int nr_t1timer_running(struct sock *sk)
net/netrom/nr_timer.c
114
struct sock *sk = timer_container_of(sk, t, sk_timer);
net/netrom/nr_timer.c
156
struct sock *sk = &nr->sock;
net/netrom/nr_timer.c
170
struct sock *sk = &nr->sock;
net/netrom/nr_timer.c
181
struct sock *sk = &nr->sock;
net/netrom/nr_timer.c
210
struct sock *sk = &nr->sock;
net/netrom/nr_timer.c
35
void nr_init_timers(struct sock *sk)
net/netrom/nr_timer.c
48
void nr_start_t1timer(struct sock *sk)
net/netrom/nr_timer.c
55
void nr_start_t2timer(struct sock *sk)
net/netrom/nr_timer.c
62
void nr_start_t4timer(struct sock *sk)
net/netrom/nr_timer.c
69
void nr_start_idletimer(struct sock *sk)
net/netrom/nr_timer.c
77
void nr_start_heartbeat(struct sock *sk)
net/netrom/nr_timer.c
82
void nr_stop_t1timer(struct sock *sk)
net/netrom/nr_timer.c
87
void nr_stop_t2timer(struct sock *sk)
net/netrom/nr_timer.c
92
void nr_stop_t4timer(struct sock *sk)
net/netrom/nr_timer.c
97
void nr_stop_idletimer(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
1159
struct sock *sk;
net/nfc/llcp_core.c
1203
struct sock *sk;
net/nfc/llcp_core.c
1237
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
1004
if (sock != NULL)
net/nfc/llcp_sock.c
1005
sock->state = SS_UNCONNECTED;
net/nfc/llcp_sock.c
1010
void nfc_llcp_sock_free(struct nfc_llcp_sock *sock)
net/nfc/llcp_sock.c
1012
kfree(sock->service_name);
net/nfc/llcp_sock.c
1014
skb_queue_purge(&sock->tx_queue);
net/nfc/llcp_sock.c
1015
skb_queue_purge(&sock->tx_pending_queue);
net/nfc/llcp_sock.c
1017
list_del_init(&sock->accept_queue);
net/nfc/llcp_sock.c
1019
sock->parent = NULL;
net/nfc/llcp_sock.c
1021
nfc_llcp_local_put(sock->local);
net/nfc/llcp_sock.c
1024
static int llcp_sock_create(struct net *net, struct socket *sock,
net/nfc/llcp_sock.c
1027
struct sock *sk;
net/nfc/llcp_sock.c
1029
pr_debug("%p\n", sock);
net/nfc/llcp_sock.c
1031
if (sock->type != SOCK_STREAM &&
net/nfc/llcp_sock.c
1032
sock->type != SOCK_DGRAM &&
net/nfc/llcp_sock.c
1033
sock->type != SOCK_RAW)
net/nfc/llcp_sock.c
1036
if (sock->type == SOCK_RAW) {
net/nfc/llcp_sock.c
1039
sock->ops = &llcp_rawsock_ops;
net/nfc/llcp_sock.c
1041
sock->ops = &llcp_sock_ops;
net/nfc/llcp_sock.c
1044
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
651
static int llcp_sock_connect(struct socket *sock, struct sockaddr_unsized *_addr,
net/nfc/llcp_sock.c
654
struct sock *sk = sock->sk;
net/nfc/llcp_sock.c
661
pr_debug("sock %p sk %p flags 0x%x\n", sock, sk, flags);
net/nfc/llcp_sock.c
775
static int llcp_sock_sendmsg(struct socket *sock, struct msghdr *msg,
net/nfc/llcp_sock.c
778
struct sock *sk = sock->sk;
net/nfc/llcp_sock.c
782
pr_debug("sock %p sk %p", sock, sk);
net/nfc/llcp_sock.c
828
static int llcp_sock_recvmsg(struct socket *sock, struct msghdr *msg,
net/nfc/llcp_sock.c
831
struct sock *sk = sock->sk;
net/nfc/llcp_sock.c
955
static void llcp_sock_destruct(struct sock *sk)
net/nfc/llcp_sock.c
974
struct sock *nfc_llcp_sock_alloc(struct socket *sock, int type, gfp_t gfp, int kern)
net/nfc/llcp_sock.c
976
struct sock *sk;
net/nfc/llcp_sock.c
985
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
690
static int ovs_vport_output(struct net *net, struct sock *sk,
net/packet/af_packet.c
1272
const struct sock *sk = &po->sk;
net/packet/af_packet.c
1324
static void packet_sock_destruct(struct sock *sk)
net/packet/af_packet.c
1405
i = j = min_t(int, po->rollover->sock, num - 1);
net/packet/af_packet.c
1412
po->rollover->sock = i;
net/packet/af_packet.c
1512
static void __fanout_link(struct sock *sk, struct packet_sock *po)
net/packet/af_packet.c
1525
static void __fanout_unlink(struct sock *sk, struct packet_sock *po)
net/packet/af_packet.c
1546
static bool match_fanout_group(struct packet_type *ptype, struct sock *sk)
net/packet/af_packet.c
1647
static bool __fanout_id_is_free(struct sock *sk, u16 candidate_id)
net/packet/af_packet.c
1660
static bool fanout_find_new_id(struct sock *sk, u16 *new_id)
net/packet/af_packet.c
1677
static int fanout_add(struct sock *sk, struct fanout_args *args)
net/packet/af_packet.c
173
static int packet_set_ring(struct sock *sk, union tpacket_req_u *req_u,
net/packet/af_packet.c
1818
static struct packet_fanout *fanout_release(struct sock *sk)
net/packet/af_packet.c
1859
struct sock *sk;
net/packet/af_packet.c
1922
static void packet_parse_headers(struct sk_buff *skb, struct socket *sock)
net/packet/af_packet.c
1927
sock->type == SOCK_RAW) {
net/packet/af_packet.c
1946
static int packet_sendmsg_spkt(struct socket *sock, struct msghdr *msg,
net/packet/af_packet.c
1949
struct sock *sk = sock->sk;
net/packet/af_packet.c
2059
packet_parse_headers(skb, sock);
net/packet/af_packet.c
2073
const struct sock *sk,
net/packet/af_packet.c
2118
struct sock *sk = NULL;
net/packet/af_packet.c
212
static void packet_flush_mclist(struct sock *sk);
net/packet/af_packet.c
2231
struct sock *sk = NULL;
net/packet/af_packet.c
242
static void __fanout_unlink(struct sock *sk, struct packet_sock *po);
net/packet/af_packet.c
243
static void __fanout_link(struct sock *sk, struct packet_sock *po);
net/packet/af_packet.c
2575
struct socket *sock = po->sk.sk_socket;
net/packet/af_packet.c
2594
if (sock->type == SOCK_DGRAM) {
net/packet/af_packet.c
2643
packet_parse_headers(skb, sock);
net/packet/af_packet.c
2913
static struct sk_buff *packet_alloc_skb(struct sock *sk, size_t prepad,
net/packet/af_packet.c
2939
static int packet_snd(struct socket *sock, struct msghdr *msg, size_t len)
net/packet/af_packet.c
2941
struct sock *sk = sock->sk;
net/packet/af_packet.c
2971
if (sock->type == SOCK_DGRAM) {
net/packet/af_packet.c
2993
if (sock->type == SOCK_RAW)
net/packet/af_packet.c
3027
if (sock->type == SOCK_DGRAM) {
net/packet/af_packet.c
3043
if ((sock->type == SOCK_RAW &&
net/packet/af_packet.c
3066
packet_parse_headers(skb, sock);
net/packet/af_packet.c
3097
static int packet_sendmsg(struct socket *sock, struct msghdr *msg, size_t len)
net/packet/af_packet.c
3099
struct sock *sk = sock->sk;
net/packet/af_packet.c
3108
return packet_snd(sock, msg, len);
net/packet/af_packet.c
3116
static int packet_release(struct socket *sock)
net/packet/af_packet.c
3118
struct sock *sk = sock->sk;
net/packet/af_packet.c
3174
sock->sk = NULL;
net/packet/af_packet.c
3189
static int packet_do_bind(struct sock *sk, const char *name, int ifindex,
net/packet/af_packet.c
3283
static int packet_bind_spkt(struct socket *sock, struct sockaddr_unsized *uaddr,
net/packet/af_packet.c
3286
struct sock *sk = sock->sk;
net/packet/af_packet.c
3305
static int packet_bind(struct socket *sock, struct sockaddr_unsized *uaddr, int addr_len)
net/packet/af_packet.c
3308
struct sock *sk = sock->sk;
net/packet/af_packet.c
3332
static int packet_create(struct net *net, struct socket *sock, int protocol,
net/packet/af_packet.c
3335
struct sock *sk;
net/packet/af_packet.c
3342
if (sock->type != SOCK_DGRAM && sock->type != SOCK_RAW &&
net/packet/af_packet.c
3343
sock->type != SOCK_PACKET)
net/packet/af_packet.c
3346
sock->state = SS_UNCONNECTED;
net/packet/af_packet.c
335
static void __register_prot_hook(struct sock *sk)
net/packet/af_packet.c
3353
sock->ops = &packet_ops;
net/packet/af_packet.c
3354
if (sock->type == SOCK_PACKET)
net/packet/af_packet.c
3355
sock->ops = &packet_ops_spkt;
net/packet/af_packet.c
3362
sock_init_data(sock, sk);
net/packet/af_packet.c
3381
if (sock->type == SOCK_PACKET)
net/packet/af_packet.c
3410
static int packet_recvmsg(struct socket *sock, struct msghdr *msg, size_t len,
net/packet/af_packet.c
3413
struct sock *sk = sock->sk;
net/packet/af_packet.c
3477
if (sock->type != SOCK_PACKET) {
net/packet/af_packet.c
3483
sll->sll_protocol = (sock->type == SOCK_DGRAM) ?
net/packet/af_packet.c
3497
if (sock->type == SOCK_PACKET) {
net/packet/af_packet.c
350
static void register_prot_hook(struct sock *sk)
net/packet/af_packet.c
3541
} else if (unlikely(sock->type == SOCK_DGRAM && eth_type_vlan(skb->protocol))) {
net/packet/af_packet.c
3575
static int packet_getname_spkt(struct socket *sock, struct sockaddr *uaddr,
net/packet/af_packet.c
3579
struct sock *sk = sock->sk;
net/packet/af_packet.c
3595
static int packet_getname(struct socket *sock, struct sockaddr *uaddr,
net/packet/af_packet.c
3599
struct sock *sk = sock->sk;
net/packet/af_packet.c
362
static void __unregister_prot_hook(struct sock *sk, bool sync)
net/packet/af_packet.c
3677
static int packet_mc_add(struct sock *sk, struct packet_mreq_max *mreq)
net/packet/af_packet.c
3733
static int packet_mc_drop(struct sock *sk, struct packet_mreq_max *mreq)
net/packet/af_packet.c
3759
static void packet_flush_mclist(struct sock *sk)
net/packet/af_packet.c
3781
packet_setsockopt(struct socket *sock, int level, int optname, sockptr_t optval,
net/packet/af_packet.c
3784
struct sock *sk = sock->sk;
net/packet/af_packet.c
384
static void unregister_prot_hook(struct sock *sk, bool sync)
net/packet/af_packet.c
3950
if (sock->type != SOCK_RAW)
net/packet/af_packet.c
4053
static int packet_getsockopt(struct socket *sock, int level, int optname,
net/packet/af_packet.c
4058
struct sock *sk = sock->sk;
net/packet/af_packet.c
4188
struct sock *sk;
net/packet/af_packet.c
4242
static int packet_ioctl(struct socket *sock, unsigned int cmd,
net/packet/af_packet.c
4245
struct sock *sk = sock->sk;
net/packet/af_packet.c
4281
return inet_dgram_ops.ioctl(sock, cmd, arg);
net/packet/af_packet.c
4290
static __poll_t packet_poll(struct file *file, struct socket *sock,
net/packet/af_packet.c
4293
struct sock *sk = sock->sk;
net/packet/af_packet.c
4295
__poll_t mask = datagram_poll(file, sock, wait);
net/packet/af_packet.c
4322
struct socket *sock = file->private_data;
net/packet/af_packet.c
4323
struct sock *sk = sock->sk;
net/packet/af_packet.c
4332
struct socket *sock = file->private_data;
net/packet/af_packet.c
4333
struct sock *sk = sock->sk;
net/packet/af_packet.c
4412
static int packet_set_ring(struct sock *sk, union tpacket_req_u *req_u,
net/packet/af_packet.c
4579
static int packet_mmap(struct file *file, struct socket *sock,
net/packet/af_packet.c
4582
struct sock *sk = sock->sk;
net/packet/af_packet.c
4721
struct sock *s = sk_entry(v);
net/packet/af_packet.c
787
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
1004
static int pep_setsockopt(struct sock *sk, int level, int optname,
net/phonet/pep.c
1066
static int pep_getsockopt(struct sock *sk, int level, int optname,
net/phonet/pep.c
107
static int pep_indicate(struct sock *sk, u8 id, u8 code,
net/phonet/pep.c
1108
static int pipe_skb_send(struct sock *sk, struct sk_buff *skb)
net/phonet/pep.c
1138
static int pep_sendmsg(struct sock *sk, struct msghdr *msg, size_t len)
net/phonet/pep.c
1217
int pep_writeable(struct sock *sk)
net/phonet/pep.c
1224
int pep_write(struct sock *sk, struct sk_buff *skb)
net/phonet/pep.c
1255
struct sk_buff *pep_read(struct sock *sk)
net/phonet/pep.c
1264
static int pep_recvmsg(struct sock *sk, struct msghdr *msg, size_t len,
net/phonet/pep.c
128
static int pipe_handler_request(struct sock *sk, u8 id, u8 code,
net/phonet/pep.c
1321
static void pep_sock_unhash(struct sock *sk)
net/phonet/pep.c
1324
struct sock *skparent = NULL;
net/phonet/pep.c
147
static int pipe_handler_send_created_ind(struct sock *sk)
net/phonet/pep.c
159
static int pep_accept_conn(struct sock *sk, struct sk_buff *skb)
net/phonet/pep.c
180
static int pep_reject_conn(struct sock *sk, struct sk_buff *skb, u8 code,
net/phonet/pep.c
190
static int pep_ctrlreq_error(struct sock *sk, struct sk_buff *oskb, u8 code,
net/phonet/pep.c
217
static int pipe_snd_status(struct sock *sk, u8 type, u8 status, gfp_t priority)
net/phonet/pep.c
227
static void pipe_grant_credits(struct sock *sk, gfp_t priority)
net/phonet/pep.c
252
static int pipe_rcv_status(struct sock *sk, struct sk_buff *skb)
net/phonet/pep.c
304
static int pipe_rcv_created(struct sock *sk, struct sk_buff *skb)
net/phonet/pep.c
333
static int pipe_do_rcv(struct sock *sk, struct sk_buff *skb)
net/phonet/pep.c
460
static void pipe_destruct(struct sock *sk)
net/phonet/pep.c
482
static int pep_connresp_rcv(struct sock *sk, struct sk_buff *skb)
net/phonet/pep.c
524
static int pep_enableresp_rcv(struct sock *sk, struct sk_buff *skb)
net/phonet/pep.c
536
static void pipe_start_flow_control(struct sock *sk)
net/phonet/pep.c
549
static int pipe_handler_do_rcv(struct sock *sk, struct sk_buff *skb)
net/phonet/pep.c
625
static struct sock *pep_find_pipe(const struct hlist_head *hlist,
net/phonet/pep.c
629
struct sock *sknode;
net/phonet/pep.c
654
static int pep_do_rcv(struct sock *sk, struct sk_buff *skb)
net/phonet/pep.c
657
struct sock *sknode;
net/phonet/pep.c
69
static struct sk_buff *pep_alloc_skb(struct sock *sk, const void *payload,
net/phonet/pep.c
715
static int pipe_do_remove(struct sock *sk)
net/phonet/pep.c
734
static void pep_sock_close(struct sock *sk, long timeout)
net/phonet/pep.c
762
static struct sock *pep_sock_accept(struct sock *sk,
net/phonet/pep.c
766
struct sock *newsk = NULL;
net/phonet/pep.c
85
static int pep_reply(struct sock *sk, struct sk_buff *oskb, u8 code,
net/phonet/pep.c
885
static int pep_sock_connect(struct sock *sk, struct sockaddr_unsized *addr,
net/phonet/pep.c
907
static int pep_sock_enable(struct sock *sk, struct sockaddr *addr, int len)
net/phonet/pep.c
921
static unsigned int pep_first_packet_length(struct sock *sk)
net/phonet/pep.c
952
static int pep_ioctl(struct sock *sk, int cmd, int *karg)
net/phonet/pep.c
985
static int pep_init(struct sock *sk)
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
213
BUG_ON(!pn_port(pn_sk(sock->sk)->sobject));
net/phonet/socket.c
217
static int pn_socket_connect(struct socket *sock, struct sockaddr_unsized *addr,
net/phonet/socket.c
220
struct sock *sk = sock->sk;
net/phonet/socket.c
227
if (pn_socket_autobind(sock))
net/phonet/socket.c
236
switch (sock->state) {
net/phonet/socket.c
253
sock->state = SS_CONNECTING;
net/phonet/socket.c
257
sock->state = SS_UNCONNECTED;
net/phonet/socket.c
28
static int pn_socket_release(struct socket *sock)
net/phonet/socket.c
288
sock->state = err ? SS_UNCONNECTED : SS_CONNECTED;
net/phonet/socket.c
294
static int pn_socket_accept(struct socket *sock, struct socket *newsock,
net/phonet/socket.c
297
struct sock *sk = sock->sk;
net/phonet/socket.c
298
struct sock *newsk;
net/phonet/socket.c
30
struct sock *sk = sock->sk;
net/phonet/socket.c
314
static int pn_socket_getname(struct socket *sock, struct sockaddr *addr,
net/phonet/socket.c
317
struct sock *sk = sock->sk;
net/phonet/socket.c
329
static __poll_t pn_socket_poll(struct file *file, struct socket *sock,
net/phonet/socket.c
33
sock->sk = NULL;
net/phonet/socket.c
332
struct sock *sk = sock->sk;
net/phonet/socket.c
355
static int pn_socket_ioctl(struct socket *sock, unsigned int cmd,
net/phonet/socket.c
358
struct sock *sk = sock->sk;
net/phonet/socket.c
392
static int pn_socket_listen(struct socket *sock, int backlog)
net/phonet/socket.c
394
struct sock *sk = sock->sk;
net/phonet/socket.c
397
if (pn_socket_autobind(sock))
net/phonet/socket.c
401
if (sock->state != SS_UNCONNECTED) {
net/phonet/socket.c
416
static int pn_socket_sendmsg(struct socket *sock, struct msghdr *m,
net/phonet/socket.c
419
struct sock *sk = sock->sk;
net/phonet/socket.c
421
if (pn_socket_autobind(sock))
net/phonet/socket.c
467
int pn_sock_get_port(struct sock *sk, unsigned short sport)
net/phonet/socket.c
473
struct sock *tmpsk;
net/phonet/socket.c
516
static struct sock *pn_sock_get_idx(struct seq_file *seq, loff_t pos)
net/phonet/socket.c
520
struct sock *sknode;
net/phonet/socket.c
536
static struct sock *pn_sock_get_next(struct seq_file *seq, struct sock *sk)
net/phonet/socket.c
556
struct sock *sk;
net/phonet/socket.c
579
struct sock *sk = v;
net/phonet/socket.c
605
struct sock __rcu *sk[256];
net/phonet/socket.c
611
struct sock *pn_find_sock_by_res(struct net *net, u8 res)
net/phonet/socket.c
613
struct sock *sk;
net/phonet/socket.c
628
int pn_sock_bind_res(struct sock *sk, u8 res)
net/phonet/socket.c
649
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
670
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
691
static struct sock __rcu **pn_res_get_idx(struct seq_file *seq, loff_t pos)
net/phonet/socket.c
709
static struct sock __rcu **pn_res_get_next(struct seq_file *seq, struct sock __rcu **sk)
net/phonet/socket.c
731
struct sock __rcu **sk;
net/phonet/socket.c
753
struct sock __rcu **psk = v;
net/phonet/socket.c
754
struct sock *sk = rcu_dereference_protected(*psk,
net/psp/psp.h
22
struct psp_dev *psp_dev_get_for_sock(struct sock *sk);
net/psp/psp.h
24
int psp_sock_assoc_set_rx(struct sock *sk, struct psp_assoc *pas,
net/psp/psp.h
27
int psp_sock_assoc_set_tx(struct sock *sk, struct psp_dev *psd,
net/psp/psp_main.c
169
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
1026
static int qrtr_recvmsg(struct socket *sock, struct msghdr *msg,
net/qrtr/af_qrtr.c
1030
struct sock *sk = sock->sk;
net/qrtr/af_qrtr.c
1082
static int qrtr_connect(struct socket *sock, struct sockaddr_unsized *saddr,
net/qrtr/af_qrtr.c
1086
struct qrtr_sock *ipc = qrtr_sk(sock->sk);
net/qrtr/af_qrtr.c
1087
struct sock *sk = sock->sk;
net/qrtr/af_qrtr.c
1096
sock->state = SS_UNCONNECTED;
net/qrtr/af_qrtr.c
1098
rc = qrtr_autobind(sock);
net/qrtr/af_qrtr.c
1105
sock->state = SS_CONNECTED;
net/qrtr/af_qrtr.c
1113
static int qrtr_getname(struct socket *sock, struct sockaddr *saddr,
net/qrtr/af_qrtr.c
1116
struct qrtr_sock *ipc = qrtr_sk(sock->sk);
net/qrtr/af_qrtr.c
1118
struct sock *sk = sock->sk;
net/qrtr/af_qrtr.c
1140
static int qrtr_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
net/qrtr/af_qrtr.c
1143
struct qrtr_sock *ipc = qrtr_sk(sock->sk);
net/qrtr/af_qrtr.c
1144
struct sock *sk = sock->sk;
net/qrtr/af_qrtr.c
1200
static int qrtr_release(struct socket *sock)
net/qrtr/af_qrtr.c
1202
struct sock *sk = sock->sk;
net/qrtr/af_qrtr.c
1217
sock->sk = NULL;
net/qrtr/af_qrtr.c
1255
static int qrtr_create(struct net *net, struct socket *sock,
net/qrtr/af_qrtr.c
1259
struct sock *sk;
net/qrtr/af_qrtr.c
1261
if (sock->type != SOCK_DGRAM)
net/qrtr/af_qrtr.c
1270
sock_init_data(sock, sk);
net/qrtr/af_qrtr.c
1271
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
132
return kernel_sendmsg(qrtr_ns.sock, &msg, &iv, 1, sizeof(pkt));
net/qrtr/ns.c
159
ret = kernel_sendmsg(qrtr_ns.sock, &msg, &iv, 1, sizeof(pkt));
net/qrtr/ns.c
190
ret = kernel_sendmsg(qrtr_ns.sock, &msg, &iv, 1, sizeof(pkt));
net/qrtr/ns.c
22
struct socket *sock;
net/qrtr/ns.c
315
ret = kernel_sendmsg(qrtr_ns.sock, &msg, &iv, 1, sizeof(pkt));
net/qrtr/ns.c
374
ret = kernel_sendmsg(qrtr_ns.sock, &msg, &iv, 1, sizeof(pkt));
net/qrtr/ns.c
448
ret = kernel_sendmsg(qrtr_ns.sock, &msg, &iv, 1, sizeof(pkt));
net/qrtr/ns.c
611
msglen = kernel_recvmsg(qrtr_ns.sock, &msg, &iv, 1,
net/qrtr/ns.c
680
static void qrtr_ns_data_ready(struct sock *sk)
net/qrtr/ns.c
696
PF_QIPCRTR, &qrtr_ns.sock);
net/qrtr/ns.c
700
ret = kernel_getsockname(qrtr_ns.sock, (struct sockaddr *)&sq);
net/qrtr/ns.c
712
qrtr_ns.sock->sk->sk_data_ready = qrtr_ns_data_ready;
net/qrtr/ns.c
717
ret = kernel_bind(qrtr_ns.sock, (struct sockaddr_unsized *)&sq, sizeof(sq));
net/qrtr/ns.c
746
module_put(qrtr_ns.sock->ops->owner);
net/qrtr/ns.c
747
module_put(qrtr_ns.sock->sk->sk_prot_creator->owner);
net/qrtr/ns.c
754
sock_release(qrtr_ns.sock);
net/qrtr/ns.c
770
__module_get(qrtr_ns.sock->ops->owner);
net/qrtr/ns.c
771
__module_get(qrtr_ns.sock->sk->sk_prot_creator->owner);
net/qrtr/ns.c
772
sock_release(qrtr_ns.sock);
net/rds/af_rds.c
114
static int rds_getname(struct socket *sock, struct sockaddr *uaddr,
net/rds/af_rds.c
117
struct rds_sock *rs = rds_sk_to_rs(sock->sk);
net/rds/af_rds.c
212
static __poll_t rds_poll(struct file *file, struct socket *sock,
net/rds/af_rds.c
215
struct sock *sk = sock->sk;
net/rds/af_rds.c
255
static int rds_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
net/rds/af_rds.c
257
struct rds_sock *rs = rds_sk_to_rs(sock->sk);
net/rds/af_rds.c
381
static int rds_enable_recvtstamp(struct sock *sk, sockptr_t optval,
net/rds/af_rds.c
432
static int rds_setsockopt(struct socket *sock, int level, int optname,
net/rds/af_rds.c
435
struct rds_sock *rs = rds_sk_to_rs(sock->sk);
net/rds/af_rds.c
463
lock_sock(sock->sk);
net/rds/af_rds.c
465
release_sock(sock->sk);
net/rds/af_rds.c
469
lock_sock(sock->sk);
net/rds/af_rds.c
470
ret = rds_enable_recvtstamp(sock->sk, optval, optlen, optname);
net/rds/af_rds.c
471
release_sock(sock->sk);
net/rds/af_rds.c
483
static int rds_getsockopt(struct socket *sock, int level, int optname,
net/rds/af_rds.c
486
struct rds_sock *rs = rds_sk_to_rs(sock->sk);
net/rds/af_rds.c
500
ret = rds_info_getsockopt(sock, optname, optval,
net/rds/af_rds.c
536
static int rds_connect(struct socket *sock, struct sockaddr_unsized *uaddr,
net/rds/af_rds.c
539
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
658
static void rds_sock_destruct(struct sock *sk)
net/rds/af_rds.c
666
static int __rds_create(struct socket *sock, struct sock *sk, int protocol)
net/rds/af_rds.c
670
sock_init_data(sock, sk);
net/rds/af_rds.c
671
sock->ops = &rds_proto_ops;
net/rds/af_rds.c
697
static int rds_create(struct net *net, struct socket *sock, int protocol,
net/rds/af_rds.c
700
struct sock *sk;
net/rds/af_rds.c
702
if (sock->type != SOCK_SEQPACKET || protocol)
net/rds/af_rds.c
709
return __rds_create(sock, sk, protocol);
net/rds/af_rds.c
728
static void rds_sock_inc_info(struct socket *sock, unsigned int len,
net/rds/af_rds.c
767
static void rds6_sock_inc_info(struct socket *sock, unsigned int len,
net/rds/af_rds.c
799
static void rds_sock_info(struct socket *sock, unsigned int len,
net/rds/af_rds.c
840
static void rds6_sock_info(struct socket *sock, unsigned int len,
net/rds/af_rds.c
90
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
632
static void rds_conn_message_info(struct socket *sock, unsigned int len,
net/rds/connection.c
637
rds_conn_message_info_cmn(sock, len, iter, lens, want_send, false);
net/rds/connection.c
641
static void rds6_conn_message_info(struct socket *sock, unsigned int len,
net/rds/connection.c
646
rds_conn_message_info_cmn(sock, len, iter, lens, want_send, true);
net/rds/connection.c
650
static void rds_conn_message_info_send(struct socket *sock, unsigned int len,
net/rds/connection.c
654
rds_conn_message_info(sock, len, iter, lens, 1);
net/rds/connection.c
658
static void rds6_conn_message_info_send(struct socket *sock, unsigned int len,
net/rds/connection.c
662
rds6_conn_message_info(sock, len, iter, lens, 1);
net/rds/connection.c
666
static void rds_conn_message_info_retrans(struct socket *sock,
net/rds/connection.c
671
rds_conn_message_info(sock, len, iter, lens, 0);
net/rds/connection.c
675
static void rds6_conn_message_info_retrans(struct socket *sock,
net/rds/connection.c
680
rds6_conn_message_info(sock, len, iter, lens, 0);
net/rds/connection.c
684
void rds_for_each_conn_info(struct socket *sock, unsigned int len,
net/rds/connection.c
722
static void rds_walk_conn_path_info(struct socket *sock, unsigned int len,
net/rds/connection.c
828
static void rds_conn_info(struct socket *sock, unsigned int len,
net/rds/connection.c
834
rds_walk_conn_path_info(sock, len, iter, lens,
net/rds/connection.c
841
static void rds6_conn_info(struct socket *sock, unsigned int len,
net/rds/connection.c
847
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
158
int rds_info_getsockopt(struct socket *sock, int optname, char __user *optval,
net/rds/info.c
218
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, char __user *optval,
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
458
struct sock *sk = rds_rs_to_sk(rs);
net/rds/recv.c
671
int rds_recvmsg(struct socket *sock, struct msghdr *msg, size_t size,
net/rds/recv.c
674
struct sock *sk = sock->sk;
net/rds/recv.c
795
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
1127
int rds_sendmsg(struct socket *sock, struct msghdr *msg, size_t payload_len)
net/rds/send.c
1129
struct sock *sk = sock->sk;
net/rds/send.c
1321
conn = rds_conn_create_outgoing(sock_net(sock->sk),
net/rds/send.c
1324
sock->sk->sk_allocation,
net/rds/stats.c
111
static void rds_stats_info(struct socket *sock, unsigned int len,
net/rds/tcp.c
104
void rds_tcp_restore_callbacks(struct socket *sock,
net/rds/tcp.c
107
rdsdebug("restoring sock %p callbacks from tc %p\n", sock, tc);
net/rds/tcp.c
108
write_lock_bh(&sock->sk->sk_callback_lock);
net/rds/tcp.c
122
sock->sk->sk_write_space = tc->t_orig_write_space;
net/rds/tcp.c
123
sock->sk->sk_data_ready = tc->t_orig_data_ready;
net/rds/tcp.c
124
sock->sk->sk_state_change = tc->t_orig_state_change;
net/rds/tcp.c
125
sock->sk->sk_user_data = NULL;
net/rds/tcp.c
127
write_unlock_bh(&sock->sk->sk_callback_lock);
net/rds/tcp.c
139
void rds_tcp_reset_callbacks(struct socket *sock,
net/rds/tcp.c
185
lock_sock(sock->sk);
net/rds/tcp.c
186
rds_tcp_set_callbacks(sock, cp);
net/rds/tcp.c
187
release_sock(sock->sk);
net/rds/tcp.c
194
void rds_tcp_set_callbacks(struct socket *sock, struct rds_conn_path *cp)
net/rds/tcp.c
198
rdsdebug("setting sock %p callbacks to tc %p\n", sock, tc);
net/rds/tcp.c
199
write_lock_bh(&sock->sk->sk_callback_lock);
net/rds/tcp.c
212
if (sock->sk->sk_data_ready == rds_tcp_listen_data_ready)
net/rds/tcp.c
213
sock->sk->sk_data_ready = sock->sk->sk_user_data;
net/rds/tcp.c
215
tc->t_sock = sock;
net/rds/tcp.c
217
tc->t_rtn = net_generic(sock_net(sock->sk), rds_tcp_netid);
net/rds/tcp.c
219
tc->t_orig_data_ready = sock->sk->sk_data_ready;
net/rds/tcp.c
220
tc->t_orig_write_space = sock->sk->sk_write_space;
net/rds/tcp.c
221
tc->t_orig_state_change = sock->sk->sk_state_change;
net/rds/tcp.c
223
sock->sk->sk_user_data = cp;
net/rds/tcp.c
224
sock->sk->sk_data_ready = rds_tcp_data_ready;
net/rds/tcp.c
225
sock->sk->sk_write_space = rds_tcp_write_space;
net/rds/tcp.c
226
sock->sk->sk_state_change = rds_tcp_state_change;
net/rds/tcp.c
228
write_unlock_bh(&sock->sk->sk_callback_lock);
net/rds/tcp.c
280
static void rds6_tcp_tc_info(struct socket *sock, unsigned int len,
net/rds/tcp.c
294
struct sock *sk = tc->t_sock->sk;
net/rds/tcp.c
486
bool rds_tcp_tune(struct socket *sock)
net/rds/tcp.c
488
struct sock *sk = sock->sk;
net/rds/tcp.c
492
tcp_sock_set_nodelay(sock->sk);
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/rose/af_rose.c
1002
static int rose_getname(struct socket *sock, struct sockaddr *uaddr,
net/rose/af_rose.c
1006
struct sock *sk = sock->sk;
net/rose/af_rose.c
1034
struct sock *sk;
net/rose/af_rose.c
1035
struct sock *make;
net/rose/af_rose.c
1116
static int rose_sendmsg(struct socket *sock, struct msghdr *msg, size_t len)
net/rose/af_rose.c
1118
struct sock *sk = sock->sk;
net/rose/af_rose.c
1280
static int rose_recvmsg(struct socket *sock, struct msghdr *msg, size_t size,
net/rose/af_rose.c
1283
struct sock *sk = sock->sk;
net/rose/af_rose.c
1343
static int rose_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
net/rose/af_rose.c
1345
struct sock *sk = sock->sk;
net/rose/af_rose.c
1467
struct sock *s = sk_entry(v);
net/rose/af_rose.c
152
static void rose_remove_socket(struct sock *sk)
net/rose/af_rose.c
165
struct sock *s;
net/rose/af_rose.c
185
struct sock *sk, *array[16];
net/rose/af_rose.c
258
static void rose_insert_socket(struct sock *sk)
net/rose/af_rose.c
270
static struct sock *rose_find_listener(rose_address *addr, ax25_address *call)
net/rose/af_rose.c
272
struct sock *s;
net/rose/af_rose.c
301
struct sock *rose_find_socket(unsigned int lci, struct rose_neigh *neigh)
net/rose/af_rose.c
303
struct sock *s;
net/rose/af_rose.c
341
void rose_destroy_socket(struct sock *);
net/rose/af_rose.c
348
struct sock *sk = timer_container_of(sk, t, sk_timer);
net/rose/af_rose.c
359
void rose_destroy_socket(struct sock *sk)
net/rose/af_rose.c
395
static int rose_setsockopt(struct socket *sock, int level, int optname,
net/rose/af_rose.c
398
struct sock *sk = sock->sk;
net/rose/af_rose.c
455
static int rose_getsockopt(struct socket *sock, int level, int optname,
net/rose/af_rose.c
458
struct sock *sk = sock->sk;
net/rose/af_rose.c
513
static int rose_listen(struct socket *sock, int backlog)
net/rose/af_rose.c
515
struct sock *sk = sock->sk;
net/rose/af_rose.c
518
if (sock->state != SS_UNCONNECTED) {
net/rose/af_rose.c
546
static int rose_create(struct net *net, struct socket *sock, int protocol,
net/rose/af_rose.c
549
struct sock *sk;
net/rose/af_rose.c
555
if (sock->type != SOCK_SEQPACKET || protocol != 0)
net/rose/af_rose.c
564
sock_init_data(sock, sk);
net/rose/af_rose.c
572
sock->ops = &rose_proto_ops;
net/rose/af_rose.c
589
static struct sock *rose_make_new(struct sock *osk)
net/rose/af_rose.c
591
struct sock *sk;
net/rose/af_rose.c
637
static int rose_release(struct socket *sock)
net/rose/af_rose.c
639
struct sock *sk = sock->sk;
net/rose/af_rose.c
689
sock->sk = NULL;
net/rose/af_rose.c
696
static int rose_bind(struct socket *sock, struct sockaddr_unsized *uaddr, int addr_len)
net/rose/af_rose.c
698
struct sock *sk = sock->sk;
net/rose/af_rose.c
768
static int rose_connect(struct socket *sock, struct sockaddr_unsized *uaddr, int addr_len,
net/rose/af_rose.c
771
struct sock *sk = sock->sk;
net/rose/af_rose.c
796
if (sk->sk_state == TCP_ESTABLISHED && sock->state == SS_CONNECTING) {
net/rose/af_rose.c
798
sock->state = SS_CONNECTED;
net/rose/af_rose.c
802
if (sk->sk_state == TCP_CLOSE && sock->state == SS_CONNECTING) {
net/rose/af_rose.c
803
sock->state = SS_UNCONNECTED;
net/rose/af_rose.c
820
sock->state = SS_UNCONNECTED;
net/rose/af_rose.c
881
sock->state = SS_CONNECTING;
net/rose/af_rose.c
924
sock->state = SS_UNCONNECTED;
net/rose/af_rose.c
929
sock->state = SS_CONNECTED;
net/rose/af_rose.c
937
static int rose_accept(struct socket *sock, struct socket *newsock,
net/rose/af_rose.c
941
struct sock *newsk;
net/rose/af_rose.c
943
struct sock *sk;
net/rose/af_rose.c
946
if ((sk = sock->sk) == NULL)
net/rose/rose_in.c
102
static int rose_state3_machine(struct sock *sk, struct sk_buff *skb, int frametype, int ns, int nr, int q, int d, int m)
net/rose/rose_in.c
214
static int rose_state4_machine(struct sock *sk, struct sk_buff *skb, int frametype)
net/rose/rose_in.c
252
static int rose_state5_machine(struct sock *sk, struct sk_buff *skb, int frametype)
net/rose/rose_in.c
264
int rose_process_rx_frame(struct sock *sk, struct sk_buff *skb)
net/rose/rose_in.c
37
static int rose_state1_machine(struct sock *sk, struct sk_buff *skb, int frametype)
net/rose/rose_in.c
74
static int rose_state2_machine(struct sock *sk, struct sk_buff *skb, int frametype)
net/rose/rose_loopback.c
64
struct sock *sk;
net/rose/rose_out.c
109
void rose_enquiry_response(struct sock *sk)
net/rose/rose_out.c
30
static void rose_send_iframe(struct sock *sk, struct sk_buff *skb)
net/rose/rose_out.c
45
void rose_kick(struct sock *sk)
net/rose/rose_route.c
864
struct sock *sk;
net/rose/rose_subr.c
32
void rose_clear_queues(struct sock *sk)
net/rose/rose_subr.c
43
void rose_frames_acked(struct sock *sk, unsigned short nr)
net/rose/rose_subr.c
530
void rose_disconnect(struct sock *sk, int reason, int cause, int diagnostic)
net/rose/rose_subr.c
60
void rose_requeue_frames(struct sock *sk)
net/rose/rose_subr.c
82
int rose_validate_nr(struct sock *sk, unsigned short nr)
net/rose/rose_subr.c
99
void rose_write_internal(struct sock *sk, int frametype)
net/rose/rose_timer.c
104
void rose_stop_heartbeat(struct sock *sk)
net/rose/rose_timer.c
109
void rose_stop_timer(struct sock *sk)
net/rose/rose_timer.c
114
void rose_stop_idletimer(struct sock *sk)
net/rose/rose_timer.c
121
struct sock *sk = timer_container_of(sk, t, sk_timer);
net/rose/rose_timer.c
167
struct sock *sk = &rose->sock;
net/rose/rose_timer.c
202
struct sock *sk = &rose->sock;
net/rose/rose_timer.c
32
void rose_start_heartbeat(struct sock *sk)
net/rose/rose_timer.c
42
void rose_start_t1timer(struct sock *sk)
net/rose/rose_timer.c
54
void rose_start_t2timer(struct sock *sk)
net/rose/rose_timer.c
66
void rose_start_t3timer(struct sock *sk)
net/rose/rose_timer.c
78
void rose_start_hbtimer(struct sock *sk)
net/rose/rose_timer.c
90
void rose_start_idletimer(struct sock *sk)
net/rxrpc/af_rxrpc.c
130
static int rxrpc_bind(struct socket *sock, struct sockaddr_unsized *saddr, int len)
net/rxrpc/af_rxrpc.c
134
struct rxrpc_sock *rx = rxrpc_sk(sock->sk);
net/rxrpc/af_rxrpc.c
210
static int rxrpc_listen(struct socket *sock, int backlog)
net/rxrpc/af_rxrpc.c
212
struct sock *sk = sock->sk;
net/rxrpc/af_rxrpc.c
273
struct rxrpc_peer *rxrpc_kernel_lookup_peer(struct socket *sock,
net/rxrpc/af_rxrpc.c
277
struct rxrpc_sock *rx = rxrpc_sk(sock->sk);
net/rxrpc/af_rxrpc.c
339
struct rxrpc_call *rxrpc_kernel_begin_call(struct socket *sock,
net/rxrpc/af_rxrpc.c
355
struct rxrpc_sock *rx = rxrpc_sk(sock->sk);
net/rxrpc/af_rxrpc.c
399
static void rxrpc_dummy_notify_rx(struct sock *sk, struct rxrpc_call *rxcall,
net/rxrpc/af_rxrpc.c
412
void rxrpc_kernel_shutdown_call(struct socket *sock, struct rxrpc_call *call)
net/rxrpc/af_rxrpc.c
418
rxrpc_release_call(rxrpc_sk(sock->sk), call);
net/rxrpc/af_rxrpc.c
438
void rxrpc_kernel_put_call(struct socket *sock, struct rxrpc_call *call)
net/rxrpc/af_rxrpc.c
454
bool rxrpc_kernel_check_life(const struct socket *sock,
net/rxrpc/af_rxrpc.c
46
static void rxrpc_sock_destructor(struct sock *);
net/rxrpc/af_rxrpc.c
472
void rxrpc_kernel_set_notifications(struct socket *sock,
net/rxrpc/af_rxrpc.c
475
struct rxrpc_sock *rx = rxrpc_sk(sock->sk);
net/rxrpc/af_rxrpc.c
486
static int rxrpc_connect(struct socket *sock, struct sockaddr_unsized *addr,
net/rxrpc/af_rxrpc.c
490
struct rxrpc_sock *rx = rxrpc_sk(sock->sk);
net/rxrpc/af_rxrpc.c
51
static inline int rxrpc_writable(struct sock *sk)
net/rxrpc/af_rxrpc.c
537
static int rxrpc_sendmsg(struct socket *sock, struct msghdr *m, size_t len)
net/rxrpc/af_rxrpc.c
540
struct rxrpc_sock *rx = rxrpc_sk(sock->sk);
net/rxrpc/af_rxrpc.c
578
local = rxrpc_lookup_local(sock_net(sock->sk), &rx->srx);
net/rxrpc/af_rxrpc.c
59
static void rxrpc_write_space(struct sock *sk)
net/rxrpc/af_rxrpc.c
615
int rxrpc_sock_set_min_security_level(struct sock *sk, unsigned int val)
net/rxrpc/af_rxrpc.c
631
static int rxrpc_setsockopt(struct socket *sock, int level, int optname,
net/rxrpc/af_rxrpc.c
634
struct rxrpc_sock *rx = rxrpc_sk(sock->sk);
net/rxrpc/af_rxrpc.c
745
static int rxrpc_getsockopt(struct socket *sock, int level, int optname,
net/rxrpc/af_rxrpc.c
773
static __poll_t rxrpc_poll(struct file *file, struct socket *sock,
net/rxrpc/af_rxrpc.c
776
struct sock *sk = sock->sk;
net/rxrpc/af_rxrpc.c
780
sock_poll_wait(file, sock, wait);
net/rxrpc/af_rxrpc.c
800
static int rxrpc_create(struct net *net, struct socket *sock, int protocol,
net/rxrpc/af_rxrpc.c
805
struct sock *sk;
net/rxrpc/af_rxrpc.c
807
_enter("%p,%d", sock, protocol);
net/rxrpc/af_rxrpc.c
814
if (sock->type != SOCK_DGRAM)
net/rxrpc/af_rxrpc.c
817
sock->ops = &rxrpc_rpc_ops;
net/rxrpc/af_rxrpc.c
818
sock->state = SS_UNCONNECTED;
net/rxrpc/af_rxrpc.c
824
sock_init_data(sock, sk);
net/rxrpc/af_rxrpc.c
855
static int rxrpc_shutdown(struct socket *sock, int flags)
net/rxrpc/af_rxrpc.c
857
struct sock *sk = sock->sk;
net/rxrpc/af_rxrpc.c
888
static void rxrpc_purge_oob_queue(struct sock *sk)
net/rxrpc/af_rxrpc.c
905
static void rxrpc_sock_destructor(struct sock *sk)
net/rxrpc/af_rxrpc.c
925
static int rxrpc_release_sock(struct sock *sk)
net/rxrpc/af_rxrpc.c
981
static int rxrpc_release(struct socket *sock)
net/rxrpc/af_rxrpc.c
983
struct sock *sk = sock->sk;
net/rxrpc/af_rxrpc.c
985
_enter("%p{%p}", sock, sk);
net/rxrpc/af_rxrpc.c
990
sock->sk = NULL;
net/rxrpc/ar-internal.h
1253
int rxrpc_encap_rcv(struct sock *, struct sk_buff *);
net/rxrpc/ar-internal.h
1254
void rxrpc_error_report(struct sock *);
net/rxrpc/ar-internal.h
151
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
474
struct rxrpc_sock *rx = rxrpc_sk(sock->sk);
net/rxrpc/call_accept.c
477
if (sock->sk->sk_state == RXRPC_CLOSE)
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
299
struct sk_buff *rxrpc_kernel_dequeue_oob(struct socket *sock,
net/rxrpc/oob.c
302
struct rxrpc_sock *rx = rxrpc_sk(sock->sk);
net/rxrpc/oob.c
39
struct sock *sk;
net/rxrpc/output.c
19
extern int udpv6_sendmsg(struct sock *sk, struct msghdr *msg, size_t len);
net/rxrpc/output.c
24
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
186
static int rxrpc_recvmsg_challenge(struct socket *sock, struct msghdr *msg,
net/rxrpc/recvmsg.c
198
static int rxrpc_recvmsg_oob(struct socket *sock, struct msghdr *msg,
net/rxrpc/recvmsg.c
201
struct rxrpc_sock *rx = rxrpc_sk(sock->sk);
net/rxrpc/recvmsg.c
219
ret = rxrpc_recvmsg_challenge(sock, msg, skb, flags);
net/rxrpc/recvmsg.c
243
static int rxrpc_recvmsg_data(struct socket *sock, struct rxrpc_call *call,
net/rxrpc/recvmsg.c
248
struct rxrpc_sock *rx = rxrpc_sk(sock->sk);
net/rxrpc/recvmsg.c
26
struct sock *sk;
net/rxrpc/recvmsg.c
284
sock_recv_timestamp(msg, sock->sk, skb);
net/rxrpc/recvmsg.c
366
int rxrpc_recvmsg(struct socket *sock, struct msghdr *msg, size_t len,
net/rxrpc/recvmsg.c
370
struct rxrpc_sock *rx = rxrpc_sk(sock->sk);
net/rxrpc/recvmsg.c
427
ret = rxrpc_recvmsg_oob(sock, msg, flags);
net/rxrpc/recvmsg.c
506
ret = rxrpc_recvmsg_data(sock, call, msg, &msg->msg_iter, len,
net/rxrpc/recvmsg.c
603
int rxrpc_kernel_recv_data(struct socket *sock, struct rxrpc_call *call,
net/rxrpc/recvmsg.c
614
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
806
int rxrpc_kernel_send_data(struct socket *sock, struct rxrpc_call *call,
net/rxrpc/sendmsg.c
820
ret = rxrpc_send_data(rxrpc_sk(sock->sk), call, msg, len,
net/rxrpc/sendmsg.c
844
bool rxrpc_kernel_abort_call(struct socket *sock, struct rxrpc_call *call,
net/rxrpc/sendmsg.c
870
void rxrpc_kernel_set_tx_length(struct socket *sock, struct rxrpc_call *call,
net/rxrpc/server_key.c
161
int rxrpc_sock_set_security_keyring(struct sock *sk, struct key *keyring)
net/rxrpc/server_key.c
202
int rxrpc_sock_set_manage_response(struct sock *sk, bool set)
net/sched/cls_flow.c
205
struct sock *sk = skb_to_full_sk(skb);
net/sched/cls_flow.c
217
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
258
struct sock *sk)
net/sched/sch_fq.c
314
const struct sock *sk;
net/sched/sch_fq.c
357
struct sock *sk = skb->sk;
net/sched/sch_fq.c
377
sk = (struct sock *)((hash << 1) | 1UL);
net/sched/sch_fq.c
389
sk = (struct sock *)((hash << 1) | 1UL);
net/sched/sch_fq.c
84
struct sock *sk;
net/sched/sch_frag.c
26
static int sch_frag_xmit(struct net *net, struct sock *sk, struct sk_buff *skb)
net/sctp/associola.c
1054
void sctp_assoc_migrate(struct sctp_association *assoc, struct sock *newsk)
net/sctp/associola.c
1057
struct sock *oldsk = assoc->base.sk;
net/sctp/associola.c
1557
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
486
int sctp_is_any(struct sock *sk, const union sctp_addr *addr)
net/sctp/bind_addr.c
546
int sctp_is_ep_boundall(struct sock *sk)
net/sctp/diag.c
126
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
233
static size_t inet_assoc_attr_size(struct sock *sk,
net/sctp/diag.c
257
struct sock *sk = ep->base.sk;
net/sctp/diag.c
27
struct sock *sk,
net/sctp/diag.c
300
struct sock *sk = ep->base.sk;
net/sctp/diag.c
355
struct sock *sk = ep->base.sk;
net/sctp/diag.c
371
struct sock *sk = ep->base.sk;
net/sctp/diag.c
415
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
1025
static int sctp_getname(struct socket *sock, struct sockaddr *uaddr,
net/sctp/ipv6.c
1030
rc = inet6_getname(sock, uaddr, peer);
net/sctp/ipv6.c
1035
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
274
struct flowi *fl, struct sock *sk)
net/sctp/ipv6.c
490
static void sctp_v6_copy_ip_options(struct sock *sk, struct sock *newsk)
net/sctp/ipv6.c
511
static int sctp_v6_ip_options_len(struct sock *sk)
net/sctp/ipv6.c
548
static void sctp_v6_from_sk(union sctp_addr *addr, struct sock *sk)
net/sctp/ipv6.c
558
static void sctp_v6_to_sk_saddr(union sctp_addr *addr, struct sock *sk)
net/sctp/ipv6.c
572
static void sctp_v6_to_sk_daddr(union sctp_addr *addr, struct sock *sk)
net/sctp/ipv6.c
688
struct sock *sk = &sp->inet.sk;
net/sctp/ipv6.c
826
static void sctp_v6_ecn_capable(struct sock *sk)
net/sctp/ipv6.c
919
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
1043
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
839
static int sctp_udp_rcv(struct sock *sk, struct sk_buff *skb)
net/sctp/protocol.c
852
struct socket *sock;
net/sctp/protocol.c
858
err = udp_sock_create(net, &udp_conf, &sock);
net/sctp/protocol.c
867
setup_udp_tunnel_sock(net, sock, &tuncfg);
net/sctp/protocol.c
868
net->sctp.udp4_sock = sock->sk;
net/sctp/protocol.c
878
err = udp_sock_create(net, &udp_conf, &sock);
net/sctp/protocol.c
889
setup_udp_tunnel_sock(net, sock, &tuncfg);
net/sctp/protocol.c
890
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
6493
struct sock *sk = asoc->base.sk;
net/sctp/sm_statefuns.c
713
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
2089
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
2210
static int sctp_setsockopt_disable_fragments(struct sock *sk, int *val,
net/sctp/socket.c
2219
static int sctp_setsockopt_events(struct sock *sk, __u8 *sn_type,
net/sctp/socket.c
2268
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
2616
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
2777
static int __sctp_setsockopt_delayed_ack(struct sock *sk,
net/sctp/socket.c
2830
static int sctp_setsockopt_delayed_ack(struct sock *sk,
net/sctp/socket.c
2868
static int sctp_setsockopt_initmsg(struct sock *sk, struct sctp_initmsg *sinit,
net/sctp/socket.c
2902
static int sctp_setsockopt_default_send_param(struct sock *sk,
net/sctp/socket.c
2960
static int sctp_setsockopt_default_sndinfo(struct sock *sk,
net/sctp/socket.c
3018
static int sctp_setsockopt_primary_addr(struct sock *sk, struct sctp_prim *prim,
net/sctp/socket.c
3056
static int sctp_setsockopt_nodelay(struct sock *sk, int *val,
net/sctp/socket.c
3077
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
3141
static int sctp_setsockopt_associnfo(struct sock *sk,
net/sctp/socket.c
3209
static int sctp_setsockopt_mappedv4(struct sock *sk, int *val,
net/sctp/socket.c
3251
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
3311
static int sctp_setsockopt_peer_primary_addr(struct sock *sk,
net/sctp/socket.c
3372
static int sctp_setsockopt_adaptation_layer(struct sock *sk,
net/sctp/socket.c
3398
static int sctp_setsockopt_context(struct sock *sk,
net/sctp/socket.c
3458
static int sctp_setsockopt_fragment_interleave(struct sock *sk, int *val,
net/sctp/socket.c
3489
static int sctp_setsockopt_partial_delivery_point(struct sock *sk, u32 *val,
net/sctp/socket.c
3517
static int sctp_setsockopt_maxburst(struct sock *sk,
net/sctp/socket.c
3570
static int sctp_setsockopt_auth_chunk(struct sock *sk,
net/sctp/socket.c
3600
static int sctp_setsockopt_hmac_ident(struct sock *sk,
net/sctp/socket.c
3629
static int sctp_setsockopt_auth_key(struct sock *sk,
net/sctp/socket.c
3690
static int sctp_setsockopt_active_key(struct sock *sk,
net/sctp/socket.c
3738
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
3786
static int sctp_setsockopt_deactivate_key(struct sock *sk,
net/sctp/socket.c
3843
static int sctp_setsockopt_auto_asconf(struct sock *sk, int *val,
net/sctp/socket.c
3875
static int sctp_setsockopt_paddr_thresholds(struct sock *sk,
net/sctp/socket.c
3938
static int sctp_setsockopt_recvrcvinfo(struct sock *sk, int *val,
net/sctp/socket.c
3949
static int sctp_setsockopt_recvnxtinfo(struct sock *sk, int *val,
net/sctp/socket.c
3960
static int sctp_setsockopt_pr_supported(struct sock *sk,
net/sctp/socket.c
3979
static int sctp_setsockopt_default_prinfo(struct sock *sk,
net/sctp/socket.c
4031
static int sctp_setsockopt_reconfig_supported(struct sock *sk,
net/sctp/socket.c
4054
static int sctp_setsockopt_enable_strreset(struct sock *sk,
net/sctp/socket.c
4096
static int sctp_setsockopt_reset_streams(struct sock *sk,
net/sctp/socket.c
4119
static int sctp_setsockopt_reset_assoc(struct sock *sk, sctp_assoc_t *associd,
net/sctp/socket.c
4134
static int sctp_setsockopt_add_streams(struct sock *sk,
net/sctp/socket.c
4150
static int sctp_setsockopt_scheduler(struct sock *sk,
net/sctp/socket.c
4193
static int sctp_setsockopt_scheduler_value(struct sock *sk,
net/sctp/socket.c
4228
static int sctp_setsockopt_interleaving_supported(struct sock *sk,
net/sctp/socket.c
4250
static int sctp_setsockopt_reuse_port(struct sock *sk, int *val,
net/sctp/socket.c
4288
static int sctp_setsockopt_event(struct sock *sk, struct sctp_event *param,
net/sctp/socket.c
4331
static int sctp_setsockopt_asconf_supported(struct sock *sk,
net/sctp/socket.c
4361
static int sctp_setsockopt_auth_supported(struct sock *sk,
net/sctp/socket.c
4395
static int sctp_setsockopt_ecn_supported(struct sock *sk,
net/sctp/socket.c
4417
static int sctp_setsockopt_pf_expose(struct sock *sk,
net/sctp/socket.c
4445
static int sctp_setsockopt_encap_port(struct sock *sk,
net/sctp/socket.c
4495
static int sctp_setsockopt_probe_interval(struct sock *sk,
net/sctp/socket.c
4569
static int sctp_setsockopt(struct sock *sk, int level, int optname,
net/sctp/socket.c
4805
static int sctp_connect(struct sock *sk, struct sockaddr *addr,
net/sctp/socket.c
4824
int sctp_inet_connect(struct socket *sock, struct sockaddr_unsized *uaddr,
net/sctp/socket.c
4833
return sctp_connect(sock->sk, (struct sockaddr *)uaddr, addr_len, flags);
net/sctp/socket.c
4837
static int sctp_disconnect(struct sock *sk, int flags)
net/sctp/socket.c
4846
static struct sock *sctp_clone_sock(struct sock *sk,
net/sctp/socket.c
4850
struct sock *newsk = sk_clone(sk, GFP_KERNEL, false);
net/sctp/socket.c
4896
SCTP_DBG_OBJCNT_INC(sock);
net/sctp/socket.c
4923
static struct sock *sctp_accept(struct sock *sk, struct proto_accept_arg *arg)
net/sctp/socket.c
4926
struct sock *newsk = NULL;
net/sctp/socket.c
4968
static int sctp_ioctl(struct sock *sk, int cmd, int *karg)
net/sctp/socket.c
5010
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
5139
SCTP_DBG_OBJCNT_INC(sock);
net/sctp/socket.c
5150
static void sctp_destroy_sock(struct sock *sk)
net/sctp/socket.c
5173
SCTP_DBG_OBJCNT_DEC(sock);
net/sctp/socket.c
5176
static void sctp_destruct_sock(struct sock *sk)
net/sctp/socket.c
5197
static void sctp_shutdown(struct sock *sk, int how)
net/sctp/socket.c
5216
int sctp_get_sctp_info(struct sock *sk, struct sctp_association *asoc,
net/sctp/socket.c
5460
static int sctp_getsockopt_sctp_status(struct sock *sk, int len,
net/sctp/socket.c
5540
static int sctp_getsockopt_peer_addr_info(struct sock *sk, int len,
net/sctp/socket.c
556
static int sctp_send_asconf_add_ip(struct sock *sk,
net/sctp/socket.c
5603
static int sctp_getsockopt_disable_fragments(struct sock *sk, int len,
net/sctp/socket.c
5625
static int sctp_getsockopt_events(struct sock *sk, int len, char __user *optval,
net/sctp/socket.c
5660
static int sctp_getsockopt_autoclose(struct sock *sk, int len, char __user *optval, int __user *optlen)
net/sctp/socket.c
5676
static int sctp_do_peeloff(struct sock *sk, sctp_assoc_t id,
net/sctp/socket.c
5680
struct socket *sock;
net/sctp/socket.c
5681
struct sock *newsk;
net/sctp/socket.c
5697
err = sock_create_lite(sk->sk_family, SOCK_SEQPACKET, IPPROTO_SCTP, &sock);
net/sctp/socket.c
5703
sock_release(sock);
net/sctp/socket.c
5709
__inet_accept(sk->sk_socket, sock, newsk);
net/sctp/socket.c
5712
sock->ops = sk->sk_socket->ops;
net/sctp/socket.c
5713
__module_get(sock->ops->owner);
net/sctp/socket.c
5715
*sockp = sock;
net/sctp/socket.c
5720
static int sctp_getsockopt_peeloff_common(struct sock *sk, sctp_peeloff_arg_t *peeloff,
net/sctp/socket.c
5756
static int sctp_getsockopt_peeloff(struct sock *sk, int len, char __user *optval, int __user *optlen)
net/sctp/socket.c
5789
static int sctp_getsockopt_peeloff_flags(struct sock *sk, int len,
net/sctp/socket.c
5956
static int sctp_getsockopt_peer_addr_params(struct sock *sk, int len,
net/sctp/socket.c
6099
static int sctp_getsockopt_delayed_ack(struct sock *sk, int len,
net/sctp/socket.c
6173
static int sctp_getsockopt_initmsg(struct sock *sk, int len, char __user *optval, int __user *optlen)
net/sctp/socket.c
6186
static int sctp_getsockopt_peer_addrs(struct sock *sk, int len,
net/sctp/socket.c
6237
static int sctp_copy_laddrs(struct sock *sk, __u16 port, void *to,
net/sctp/socket.c
6282
static int sctp_getsockopt_local_addrs(struct sock *sk, int len,
net/sctp/socket.c
6390
static int sctp_getsockopt_primary_addr(struct sock *sk, int len,
net/sctp/socket.c
6432
static int sctp_getsockopt_adaptation_layer(struct sock *sk, int len,
net/sctp/socket.c
6471
static int sctp_getsockopt_default_send_param(struct sock *sk,
net/sctp/socket.c
6517
static int sctp_getsockopt_default_sndinfo(struct sock *sk, int len,
net/sctp/socket.c
6568
static int sctp_getsockopt_nodelay(struct sock *sk, int len,
net/sctp/socket.c
6597
static int sctp_getsockopt_rtoinfo(struct sock *sk, int len,
net/sctp/socket.c
6651
static int sctp_getsockopt_associnfo(struct sock *sk, int len,
net/sctp/socket.c
6720
static int sctp_getsockopt_mappedv4(struct sock *sk, int len,
net/sctp/socket.c
6743
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
6800
static int sctp_getsockopt_maxseg(struct sock *sk, int len,
net/sctp/socket.c
6847
static int sctp_getsockopt_fragment_interleave(struct sock *sk, int len,
net/sctp/socket.c
6870
static int sctp_getsockopt_partial_delivery_point(struct sock *sk, int len,
net/sctp/socket.c
6894
static int sctp_getsockopt_maxburst(struct sock *sk, int len,
net/sctp/socket.c
6934
static int sctp_getsockopt_hmac_ident(struct sock *sk, int len,
net/sctp/socket.c
6970
static int sctp_getsockopt_active_key(struct sock *sk, int len,
net/sctp/socket.c
7006
static int sctp_getsockopt_peer_auth_chunks(struct sock *sk, int len,
net/sctp/socket.c
7050
static int sctp_getsockopt_local_auth_chunks(struct sock *sk, int len,
net/sctp/socket.c
7106
static int sctp_getsockopt_assoc_number(struct sock *sk, int len,
net/sctp/socket.c
7137
static int sctp_getsockopt_auto_asconf(struct sock *sk, int len,
net/sctp/socket.c
7162
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
7212
static int sctp_getsockopt_paddr_thresholds(struct sock *sk,
net/sctp/socket.c
7271
static int sctp_getsockopt_assoc_stats(struct sock *sk, int len,
net/sctp/socket.c
7329
static int sctp_getsockopt_recvrcvinfo(struct sock *sk, int len,
net/sctp/socket.c
7349
static int sctp_getsockopt_recvnxtinfo(struct sock *sk, int len,
net/sctp/socket.c
7369
static int sctp_getsockopt_pr_supported(struct sock *sk, int len,
net/sctp/socket.c
7408
static int sctp_getsockopt_default_prinfo(struct sock *sk, int len,
net/sctp/socket.c
7454
static int sctp_getsockopt_pr_assocstatus(struct sock *sk, int len,
net/sctp/socket.c
7513
static int sctp_getsockopt_pr_streamstatus(struct sock *sk, int len,
net/sctp/socket.c
7577
static int sctp_getsockopt_reconfig_supported(struct sock *sk, int len,
net/sctp/socket.c
758
static int sctp_send_asconf_del_ip(struct sock *sk,
net/sctp/socket.c
7616
static int sctp_getsockopt_enable_strreset(struct sock *sk, int len,
net/sctp/socket.c
7655
static int sctp_getsockopt_scheduler(struct sock *sk, int len,
net/sctp/socket.c
7694
static int sctp_getsockopt_scheduler_value(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
7736
static int sctp_getsockopt_interleaving_supported(struct sock *sk, int len,
net/sctp/socket.c
7775
static int sctp_getsockopt_reuse_port(struct sock *sk, int len,
net/sctp/socket.c
7795
static int sctp_getsockopt_event(struct sock *sk, int len, char __user *optval,
net/sctp/socket.c
7830
static int sctp_getsockopt_asconf_supported(struct sock *sk, int len,
net/sctp/socket.c
7869
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
7908
static int sctp_getsockopt_ecn_supported(struct sock *sk, int len,
net/sctp/socket.c
7947
static int sctp_getsockopt_pf_expose(struct sock *sk, int len,
net/sctp/socket.c
7986
static int sctp_getsockopt_encap_port(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
8045
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
8105
static int sctp_getsockopt(struct sock *sk, int level, int optname,
net/sctp/socket.c
8356
static int sctp_hash(struct sock *sk)
net/sctp/socket.c
8362
static void sctp_unhash(struct sock *sk)
net/sctp/socket.c
8382
static int sctp_get_port_local(struct sock *sk, union sctp_addr *addr)
net/sctp/socket.c
84
static int sctp_bindx_add(struct sock *, struct sockaddr *, int);
net/sctp/socket.c
8458
struct sock *sk2;
net/sctp/socket.c
85
static int sctp_bindx_rem(struct sock *, struct sockaddr *, int);
net/sctp/socket.c
8553
static int sctp_get_port(struct sock *sk, unsigned short snum)
net/sctp/socket.c
8569
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
8624
int sctp_inet_listen(struct socket *sock, int backlog)
net/sctp/socket.c
8626
struct sock *sk = sock->sk;
net/sctp/socket.c
8639
if (sock->state != SS_UNCONNECTED)
net/sctp/socket.c
8686
__poll_t sctp_poll(struct file *file, struct socket *sock, poll_table *wait)
net/sctp/socket.c
8688
struct sock *sk = sock->sk;
net/sctp/socket.c
87
static int sctp_send_asconf_del_ip(struct sock *, struct sockaddr *, int);
net/sctp/socket.c
8773
static inline void __sctp_put_port(struct sock *sk)
net/sctp/socket.c
8789
void sctp_put_port(struct sock *sk)
net/sctp/socket.c
8802
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
9001
static int sctp_wait_for_packet(struct sock *sk, int *err, long *timeo_p)
net/sctp/socket.c
9059
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
9114
struct sock *sk = asoc->base.sk;
net/sctp/socket.c
912
struct sock *sk = sctp_opt2sk(sp);
net/sctp/socket.c
9143
static void sctp_wake_up_waiters(struct sock *sk,
net/sctp/socket.c
9191
struct sock *sk = asoc->base.sk;
net/sctp/socket.c
92
static int sctp_sock_migrate(struct sock *oldsk, struct sock *newsk,
net/sctp/socket.c
9232
struct sock *sk = skb->sk;
net/sctp/socket.c
9249
struct sock *sk = asoc->base.sk;
net/sctp/socket.c
9317
void sctp_data_ready(struct sock *sk)
net/sctp/socket.c
9333
void sctp_write_space(struct sock *sk)
net/sctp/socket.c
9354
static bool sctp_writeable(const struct sock *sk)
net/sctp/socket.c
9364
struct sock *sk = asoc->base.sk;
net/sctp/socket.c
9424
static int sctp_wait_for_accept(struct sock *sk, long timeo)
net/sctp/socket.c
9466
static void sctp_wait_for_close(struct sock *sk, long timeout)
net/sctp/socket.c
9482
static void sctp_skb_set_owner_r_frag(struct sk_buff *skb, struct sock *sk)
net/sctp/socket.c
9500
static int sctp_sock_migrate(struct sock *oldsk, struct sock *newsk,
net/sctp/socket.c
9666
static void sctp_v6_destruct_sock(struct sock *sk)
net/sctp/socket.c
9671
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
1657
int smc_connect(struct socket *sock, struct sockaddr_unsized *addr,
net/smc/af_smc.c
1660
struct sock *sk = sock->sk;
net/smc/af_smc.c
1673
switch (sock->state) {
net/smc/af_smc.c
1685
sock->state = SS_CONNECTING;
net/smc/af_smc.c
1694
sock->state = SS_UNCONNECTED;
net/smc/af_smc.c
1714
sock->state = rc ? SS_CONNECTING : SS_CONNECTED;
net/smc/af_smc.c
1731
sock->state = SS_CONNECTED;
net/smc/af_smc.c
174
static bool smc_hs_congested(const struct sock *sk)
net/smc/af_smc.c
1741
struct sock *lsk = &lsmc->sk;
net/smc/af_smc.c
1742
struct sock *new_sk;
net/smc/af_smc.c
1799
static void smc_accept_enqueue(struct sock *parent, struct sock *sk)
net/smc/af_smc.c
1811
static void smc_accept_unlink(struct sock *sk)
net/smc/af_smc.c
1825
struct sock *smc_accept_dequeue(struct sock *parent,
net/smc/af_smc.c
1829
struct sock *new_sk;
net/smc/af_smc.c
1832
new_sk = (struct sock *)isk;
net/smc/af_smc.c
1858
void smc_close_non_accepted(struct sock *sk)
net/smc/af_smc.c
1929
struct sock *newsmcsk = &new_smc->sk;
net/smc/af_smc.c
1951
struct sock *newsmcsk = &new_smc->sk;
net/smc/af_smc.c
1962
struct sock *newsmcsk = &new_smc->sk;
net/smc/af_smc.c
197
int smc_hash_sk(struct sock *sk)
net/smc/af_smc.c
212
void smc_unhash_sk(struct sock *sk)
net/smc/af_smc.c
226
void smc_release_cb(struct sock *sk)
net/smc/af_smc.c
2599
struct sock *lsk = &lsmc->sk;
net/smc/af_smc.c
2630
static void smc_clcsock_data_ready(struct sock *listen_clcsock)
net/smc/af_smc.c
264
struct sock *clcsk = smc->clcsock->sk;
net/smc/af_smc.c
2648
int smc_listen(struct socket *sock, int backlog)
net/smc/af_smc.c
2650
struct sock *sk = sock->sk;
net/smc/af_smc.c
2659
smc->connect_nonblock || sock->state != SS_UNCONNECTED)
net/smc/af_smc.c
2714
int smc_accept(struct socket *sock, struct socket *new_sock,
net/smc/af_smc.c
2717
struct sock *sk = sock->sk, *nsk;
net/smc/af_smc.c
2765
struct sock *clcsk = smc_sk(nsk)->clcsock->sk;
net/smc/af_smc.c
2783
int smc_getname(struct socket *sock, struct sockaddr *addr,
net/smc/af_smc.c
2788
if (peer && (sock->sk->sk_state != SMC_ACTIVE) &&
net/smc/af_smc.c
2789
(sock->sk->sk_state != SMC_APPCLOSEWAIT1))
net/smc/af_smc.c
2792
smc = smc_sk(sock->sk);
net/smc/af_smc.c
2797
int smc_sendmsg(struct socket *sock, struct msghdr *msg, size_t len)
net/smc/af_smc.c
2799
struct sock *sk = sock->sk;
net/smc/af_smc.c
2835
int smc_recvmsg(struct socket *sock, struct msghdr *msg, size_t len,
net/smc/af_smc.c
2838
struct sock *sk = sock->sk;
net/smc/af_smc.c
2872
static __poll_t smc_accept_poll(struct sock *parent)
net/smc/af_smc.c
288
struct sock *sk = &smc->sk;
net/smc/af_smc.c
2885
__poll_t smc_poll(struct file *file, struct socket *sock,
net/smc/af_smc.c
2888
struct sock *sk = sock->sk;
net/smc/af_smc.c
2895
smc = smc_sk(sock->sk);
net/smc/af_smc.c
2902
sock_poll_wait(file, sock, wait);
net/smc/af_smc.c
2945
int smc_shutdown(struct socket *sock, int how)
net/smc/af_smc.c
2947
struct sock *sk = sock->sk;
net/smc/af_smc.c
2961
if (sock->state == SS_CONNECTING) {
net/smc/af_smc.c
2963
sock->state = SS_CONNECTED;
net/smc/af_smc.c
2969
sock->state = SS_DISCONNECTING;
net/smc/af_smc.c
3012
sock->state = SS_UNCONNECTED;
net/smc/af_smc.c
3014
sock->state = SS_DISCONNECTING;
net/smc/af_smc.c
3020
static int __smc_getsockopt(struct socket *sock, int level, int optname,
net/smc/af_smc.c
3026
smc = smc_sk(sock->sk);
net/smc/af_smc.c
3052
static int __smc_setsockopt(struct socket *sock, int level, int optname,
net/smc/af_smc.c
3055
struct sock *sk = sock->sk;
net/smc/af_smc.c
3085
int smc_setsockopt(struct socket *sock, int level, int optname,
net/smc/af_smc.c
3088
struct sock *sk = sock->sk;
net/smc/af_smc.c
3095
return __smc_setsockopt(sock, level, optname, optval, optlen);
net/smc/af_smc.c
3172
int smc_getsockopt(struct socket *sock, int level, int optname,
net/smc/af_smc.c
3179
return __smc_getsockopt(sock, level, optname, optval, optlen);
net/smc/af_smc.c
3181
smc = smc_sk(sock->sk);
net/smc/af_smc.c
3198
int smc_ioctl(struct socket *sock, unsigned int cmd,
net/smc/af_smc.c
3206
smc = smc_sk(sock->sk);
net/smc/af_smc.c
326
int smc_release(struct socket *sock)
net/smc/af_smc.c
328
struct sock *sk = sock->sk;
net/smc/af_smc.c
3285
ssize_t smc_splice_read(struct socket *sock, loff_t *ppos,
net/smc/af_smc.c
3289
struct sock *sk = sock->sk;
net/smc/af_smc.c
3353
int smc_create_clcsk(struct net *net, struct sock *sk, int family)
net/smc/af_smc.c
3373
static int smc_create(struct net *net, struct socket *sock, int protocol,
net/smc/af_smc.c
3377
struct sock *sk;
net/smc/af_smc.c
3381
if (sock->type != SOCK_STREAM)
net/smc/af_smc.c
3389
sock->ops = &smc_sock_ops;
net/smc/af_smc.c
3390
sock->state = SS_UNCONNECTED;
net/smc/af_smc.c
3391
sk = smc_sock_alloc(net, sock, protocol);
net/smc/af_smc.c
3398
sock->sk = NULL;
net/smc/af_smc.c
363
sock->sk = NULL;
net/smc/af_smc.c
372
static void smc_destruct(struct sock *sk)
net/smc/af_smc.c
393
void smc_sk_init(struct net *net, struct sock *sk, int protocol)
net/smc/af_smc.c
419
static struct sock *smc_sock_alloc(struct net *net, struct socket *sock,
net/smc/af_smc.c
423
struct sock *sk;
net/smc/af_smc.c
430
sock_init_data(sock, sk); /* sets sk_refcnt to 1 */
net/smc/af_smc.c
436
int smc_bind(struct socket *sock, struct sockaddr_unsized *uaddr,
net/smc/af_smc.c
440
struct sock *sk = sock->sk;
net/smc/af_smc.c
499
static void smc_adjust_sock_bufsizes(struct sock *nsk, struct sock *osk,
net/smc/af_smc.c
509
static void smc_copy_sock_settings(struct sock *nsk, struct sock *osk,
net/smc/af_smc.c
840
static void smc_fback_forward_wakeup(struct smc_sock *smc, struct sock *clcsk,
net/smc/af_smc.c
841
void (*clcsock_callback)(struct sock *sk))
net/smc/af_smc.c
862
static void smc_fback_state_change(struct sock *clcsk)
net/smc/af_smc.c
874
static void smc_fback_data_ready(struct sock *clcsk)
net/smc/af_smc.c
886
static void smc_fback_write_space(struct sock *clcsk)
net/smc/af_smc.c
898
static void smc_fback_error_report(struct sock *clcsk)
net/smc/af_smc.c
912
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
1009
void __sock_recv_wifi_status(struct msghdr *msg, struct sock *sk,
net/socket.c
1026
static inline void sock_recv_drops(struct msghdr *msg, struct sock *sk,
net/socket.c
1034
static void sock_recv_mark(struct msghdr *msg, struct sock *sk,
net/socket.c
1045
static void sock_recv_priority(struct msghdr *msg, struct sock *sk,
net/socket.c
1055
void __sock_recv_cmsgs(struct msghdr *msg, struct sock *sk,
net/socket.c
1070
static noinline void call_trace_sock_recv_length(struct sock *sk, int ret, int flags)
net/socket.c
1075
static inline int sock_recvmsg_nosec(struct socket *sock, struct msghdr *msg,
net/socket.c
1078
int ret = INDIRECT_CALL_INET(READ_ONCE(sock->ops)->recvmsg,
net/socket.c
1080
inet_recvmsg, sock, msg,
net/socket.c
1083
call_trace_sock_recv_length(sock->sk, ret, flags);
net/socket.c
1096
int sock_recvmsg(struct socket *sock, struct msghdr *msg, int flags)
net/socket.c
1098
int err = security_socket_recvmsg(sock, msg, msg_data_left(msg), flags);
net/socket.c
1100
return err ?: sock_recvmsg_nosec(sock, msg, flags);
net/socket.c
1120
int kernel_recvmsg(struct socket *sock, struct msghdr *msg,
net/socket.c
1125
return sock_recvmsg(sock, msg, flags);
net/socket.c
1133
struct socket *sock = file->private_data;
net/socket.c
1136
ops = READ_ONCE(sock->ops);
net/socket.c
1140
return ops->splice_read(sock, ppos, pipe, len, flags);
net/socket.c
1145
struct socket *sock = file->private_data;
net/socket.c
1148
ops = READ_ONCE(sock->ops);
net/socket.c
1150
ops->splice_eof(sock);
net/socket.c
1156
struct socket *sock = file->private_data;
net/socket.c
1170
res = sock_recvmsg(sock, &msg, msg.msg_flags);
net/socket.c
1178
struct socket *sock = file->private_data;
net/socket.c
1189
if (sock->type == SOCK_SEQPACKET)
net/socket.c
1195
res = __sock_sendmsg(sock, &msg);
net/socket.c
1244
static long sock_do_ioctl(struct net *net, struct socket *sock,
net/socket.c
1247
const struct proto_ops *ops = READ_ONCE(sock->ops);
net/socket.c
1254
err = ops->ioctl(sock, cmd, arg);
net/socket.c
1284
struct socket *sock;
net/socket.c
1285
struct sock *sk;
net/socket.c
1290
sock = file->private_data;
net/socket.c
1291
ops = READ_ONCE(sock->ops);
net/socket.c
1292
sk = sock->sk;
net/socket.c
1316
err = f_setown(sock->file, pid, 1);
net/socket.c
1320
err = put_user(f_getown(sock->file),
net/socket.c
1355
err = ops->gettstamp(sock, argp,
net/socket.c
1365
err = ops->gettstamp(sock, argp,
net/socket.c
1375
err = sock_do_ioctl(net, sock, cmd, arg);
net/socket.c
1397
struct socket *sock = NULL;
net/socket.c
1403
sock = sock_alloc();
net/socket.c
1404
if (!sock) {
net/socket.c
1409
sock->type = type;
net/socket.c
141
struct socket *sock = f->private_data;
net/socket.c
1410
err = security_socket_post_create(sock, family, type, protocol, 1);
net/socket.c
1415
*res = sock;
net/socket.c
1418
sock_release(sock);
net/socket.c
1419
sock = NULL;
net/socket.c
142
const struct proto_ops *ops = READ_ONCE(sock->ops);
net/socket.c
1427
struct socket *sock = file->private_data;
net/socket.c
1428
const struct proto_ops *ops = READ_ONCE(sock->ops);
net/socket.c
1434
if (sk_can_busy_loop(sock->sk)) {
net/socket.c
1437
sk_busy_loop(sock->sk, 1);
net/socket.c
1443
return ops->poll(file, sock, wait) | flag;
net/socket.c
1448
struct socket *sock = file->private_data;
net/socket.c
145
ops->show_fdinfo(m, sock);
net/socket.c
1450
return READ_ONCE(sock->ops)->mmap(file, sock, vma);
net/socket.c
1472
struct socket *sock = filp->private_data;
net/socket.c
1473
struct sock *sk = sock->sk;
net/socket.c
1474
struct socket_wq *wq = &sock->wq;
net/socket.c
1538
struct socket *sock;
net/socket.c
1569
sock = sock_alloc();
net/socket.c
1570
if (!sock) {
net/socket.c
1576
sock->type = type;
net/socket.c
1605
err = pf->create(net, sock, protocol, kern);
net/socket.c
1610
DEBUG_NET_WARN_ONCE(sock->sk,
net/socket.c
1620
if (!try_module_get(sock->ops->owner))
net/socket.c
1628
err = security_socket_post_create(sock, family, type, protocol, kern);
net/socket.c
1631
*res = sock;
net/socket.c
1638
sock->ops = NULL;
net/socket.c
1641
sock_release(sock);
net/socket.c
1687
struct socket *sock;
net/socket.c
1700
retval = sock_create(family, type, protocol, &sock);
net/socket.c
1704
return sock;
net/socket.c
1709
struct socket *sock;
net/socket.c
1712
sock = __sys_socket_create(family, type, protocol);
net/socket.c
1713
if (IS_ERR(sock))
net/socket.c
1714
return ERR_CAST(sock);
net/socket.c
1720
return sock_alloc_file(sock, flags, NULL);
net/socket.c
1744
struct socket *sock;
net/socket.c
1747
sock = __sys_socket_create(family, type,
net/socket.c
1749
if (IS_ERR(sock))
net/socket.c
1750
return PTR_ERR(sock);
net/socket.c
1756
return sock_map_fd(sock, flags & (O_CLOEXEC | O_NONBLOCK));
net/socket.c
1866
int __sys_bind_socket(struct socket *sock, struct sockaddr_storage *address,
net/socket.c
1871
err = security_socket_bind(sock, (struct sockaddr *)address,
net/socket.c
1874
err = READ_ONCE(sock->ops)->bind(sock,
net/socket.c
1890
struct socket *sock;
net/socket.c
1897
sock = sock_from_file(fd_file(f));
net/socket.c
1898
if (unlikely(!sock))
net/socket.c
1905
return __sys_bind_socket(sock, &address, addrlen);
net/socket.c
1918
int __sys_listen_socket(struct socket *sock, int backlog)
net/socket.c
1922
somaxconn = READ_ONCE(sock_net(sock->sk)->core.sysctl_somaxconn);
net/socket.c
1926
err = security_socket_listen(sock, backlog);
net/socket.c
1928
err = READ_ONCE(sock->ops)->listen(sock, backlog);
net/socket.c
1935
struct socket *sock;
net/socket.c
1939
sock = sock_from_file(fd_file(f));
net/socket.c
1940
if (unlikely(!sock))
net/socket.c
1943
return __sys_listen_socket(sock, backlog);
net/socket.c
1955
struct socket *sock, *newsock;
net/socket.c
1961
sock = sock_from_file(file);
net/socket.c
1962
if (!sock)
net/socket.c
1968
ops = READ_ONCE(sock->ops);
net/socket.c
1970
newsock->type = sock->type;
net/socket.c
1979
newfile = sock_alloc_file(newsock, flags, sock->sk->sk_prot_creator->name);
net/socket.c
1983
err = security_socket_accept(sock, newsock);
net/socket.c
1987
arg->flags |= sock->file->f_flags;
net/socket.c
1988
err = ops->accept(sock, newsock, arg);
net/socket.c
2075
struct socket *sock;
net/socket.c
2078
sock = sock_from_file(file);
net/socket.c
2079
if (!sock) {
net/socket.c
2085
security_socket_connect(sock, (struct sockaddr *)address, addrlen);
net/socket.c
2089
err = READ_ONCE(sock->ops)->connect(sock, (struct sockaddr_unsized *)address,
net/socket.c
2090
addrlen, sock->file->f_flags | file_flags);
net/socket.c
2117
int do_getsockname(struct socket *sock, int peer,
net/socket.c
2124
err = security_socket_getpeername(sock);
net/socket.c
2126
err = security_socket_getsockname(sock);
net/socket.c
2129
err = READ_ONCE(sock->ops)->getname(sock, (struct sockaddr *)&address, peer);
net/socket.c
2143
struct socket *sock;
net/socket.c
2148
sock = sock_from_file(fd_file(f));
net/socket.c
2149
if (unlikely(!sock))
net/socket.c
2151
return do_getsockname(sock, peer, usockaddr, usockaddr_len);
net/socket.c
2174
struct socket *sock;
net/socket.c
2186
sock = sock_from_file(fd_file(f));
net/socket.c
2187
if (unlikely(!sock))
net/socket.c
2203
if (sock->file->f_flags & O_NONBLOCK)
net/socket.c
2206
return __sock_sendmsg(sock, &msg);
net/socket.c
2239
struct socket *sock;
net/socket.c
2250
sock = sock_from_file(fd_file(f));
net/socket.c
2251
if (unlikely(!sock))
net/socket.c
2254
if (sock->file->f_flags & O_NONBLOCK)
net/socket.c
2256
err = sock_recvmsg(sock, &msg, flags);
net/socket.c
2284
static bool sock_use_custom_sol_socket(const struct socket *sock)
net/socket.c
2286
return test_bit(SOCK_CUSTOM_SOCKOPT, &sock->flags);
net/socket.c
2289
int do_sock_setsockopt(struct socket *sock, bool compat, int level,
net/socket.c
2299
err = security_socket_setsockopt(sock, level, optname);
net/socket.c
2304
err = BPF_CGROUP_RUN_PROG_SETSOCKOPT(sock->sk, &level, &optname,
net/socket.c
2316
ops = READ_ONCE(sock->ops);
net/socket.c
2317
if (level == SOL_SOCKET && !sock_use_custom_sol_socket(sock))
net/socket.c
2318
err = sock_setsockopt(sock, level, optname, optval, optlen);
net/socket.c
2322
err = ops->setsockopt(sock, level, optname, optval,
net/socket.c
2338
struct socket *sock;
net/socket.c
2343
sock = sock_from_file(fd_file(f));
net/socket.c
2344
if (unlikely(!sock))
net/socket.c
2347
return do_sock_setsockopt(sock, compat, level, optname, optval, optlen);
net/socket.c
2359
int do_sock_getsockopt(struct socket *sock, bool compat, int level,
net/socket.c
2366
err = security_socket_getsockopt(sock, level, optname);
net/socket.c
2373
ops = READ_ONCE(sock->ops);
net/socket.c
2375
err = sk_getsockopt(sock->sk, level, optname, optval, optlen);
net/socket.c
2383
err = ops->getsockopt(sock, level, optname, optval.user,
net/socket.c
2388
err = BPF_CGROUP_RUN_PROG_GETSOCKOPT(sock->sk, level, optname,
net/socket.c
2403
struct socket *sock;
net/socket.c
2408
sock = sock_from_file(fd_file(f));
net/socket.c
2409
if (unlikely(!sock))
net/socket.c
2412
return do_sock_getsockopt(sock, in_compat_syscall(), level, optname,
net/socket.c
2426
int __sys_shutdown_sock(struct socket *sock, int how)
net/socket.c
2430
err = security_socket_shutdown(sock, how);
net/socket.c
2432
err = READ_ONCE(sock->ops)->shutdown(sock, how);
net/socket.c
2439
struct socket *sock;
net/socket.c
2444
sock = sock_from_file(fd_file(f));
net/socket.c
2445
if (unlikely(!sock))
net/socket.c
2448
return __sys_shutdown_sock(sock, how);
net/socket.c
2535
static int ____sys_sendmsg(struct socket *sock, struct msghdr *msg_sys,
net/socket.c
2554
cmsghdr_from_user_compat_to_kern(msg_sys, sock->sk, ctl,
net/socket.c
2564
ctl_buf = sock_kmalloc(sock->sk, ctl_len, GFP_KERNEL);
net/socket.c
2577
if (sock->file->f_flags & O_NONBLOCK)
net/socket.c
2589
err = sock_sendmsg_nosec(sock, msg_sys);
net/socket.c
2592
err = __sock_sendmsg(sock, msg_sys);
net/socket.c
2606
sock_kfree_s(sock->sk, ctl_buf, ctl_len);
net/socket.c
2631
static int ___sys_sendmsg(struct socket *sock, struct user_msghdr __user *msg,
net/socket.c
2646
err = ____sys_sendmsg(sock, msg_sys, flags, used_address,
net/socket.c
2655
long __sys_sendmsg_sock(struct socket *sock, struct msghdr *msg,
net/socket.c
2658
return ____sys_sendmsg(sock, msg, flags, NULL, 0);
net/socket.c
2665
struct socket *sock;
net/socket.c
2674
sock = sock_from_file(fd_file(f));
net/socket.c
2675
if (unlikely(!sock))
net/socket.c
2678
return ___sys_sendmsg(sock, msg, &msg_sys, flags, NULL, 0);
net/socket.c
2694
struct socket *sock;
net/socket.c
2713
sock = sock_from_file(fd_file(f));
net/socket.c
2714
if (unlikely(!sock))
net/socket.c
2728
err = ___sys_sendmsg(sock, (struct user_msghdr __user *)compat_entry,
net/socket.c
2735
err = ___sys_sendmsg(sock,
net/socket.c
2786
static int ____sys_recvmsg(struct socket *sock, struct msghdr *msg_sys,
net/socket.c
2806
if (sock->file->f_flags & O_NONBLOCK)
net/socket.c
2810
err = sock_recvmsg_nosec(sock, msg_sys, flags);
net/socket.c
2812
err = sock_recvmsg(sock, msg_sys, flags);
net/socket.c
2842
static int ___sys_recvmsg(struct socket *sock, struct user_msghdr __user *msg,
net/socket.c
2854
err = ____sys_recvmsg(sock, msg_sys, msg, uaddr, flags, nosec);
net/socket.c
2863
long __sys_recvmsg_sock(struct socket *sock, struct msghdr *msg,
net/socket.c
2867
return ____sys_recvmsg(sock, msg, umsg, uaddr, flags, 0);
net/socket.c
2874
struct socket *sock;
net/socket.c
2883
sock = sock_from_file(fd_file(f));
net/socket.c
2884
if (unlikely(!sock))
net/socket.c
2887
return ___sys_recvmsg(sock, msg, &msg_sys, flags, 0);
net/socket.c
2905
struct socket *sock;
net/socket.c
2923
sock = sock_from_file(fd_file(f));
net/socket.c
2924
if (unlikely(!sock))
net/socket.c
2928
err = sock_error(sock->sk);
net/socket.c
2941
err = ___sys_recvmsg(sock, (struct user_msghdr __user *)compat_entry,
net/socket.c
2949
err = ___sys_recvmsg(sock,
net/socket.c
3003
WRITE_ONCE(sock->sk->sk_err, -err);
net/socket.c
3416
static int compat_sock_ioctl_trans(struct file *file, struct socket *sock,
net/socket.c
3420
struct sock *sk = sock->sk;
net/socket.c
3432
ops = READ_ONCE(sock->ops);
net/socket.c
3435
return ops->gettstamp(sock, argp, cmd == SIOCGSTAMP_OLD,
net/socket.c
3507
return sock_do_ioctl(net, sock, cmd, arg);
net/socket.c
3516
struct socket *sock = file->private_data;
net/socket.c
3517
const struct proto_ops *ops = READ_ONCE(sock->ops);
net/socket.c
3519
struct sock *sk;
net/socket.c
3522
sk = sock->sk;
net/socket.c
3526
ret = ops->compat_ioctl(sock, cmd, arg);
net/socket.c
3533
ret = compat_sock_ioctl_trans(file, sock, cmd, arg);
net/socket.c
3548
int kernel_bind(struct socket *sock, struct sockaddr_unsized *addr, int addrlen)
net/socket.c
3554
return READ_ONCE(sock->ops)->bind(sock, (struct sockaddr_unsized *)&address,
net/socket.c
3567
int kernel_listen(struct socket *sock, int backlog)
net/socket.c
3569
return READ_ONCE(sock->ops)->listen(sock, backlog);
net/socket.c
3584
int kernel_accept(struct socket *sock, struct socket **newsock, int flags)
net/socket.c
3586
struct sock *sk = sock->sk;
net/socket.c
3587
const struct proto_ops *ops = READ_ONCE(sock->ops);
net/socket.c
3599
err = ops->accept(sock, *newsock, &arg);
net/socket.c
3627
int kernel_connect(struct socket *sock, struct sockaddr_unsized *addr, int addrlen,
net/socket.c
3634
return READ_ONCE(sock->ops)->connect(sock, (struct sockaddr_unsized *)&address,
net/socket.c
3648
int kernel_getsockname(struct socket *sock, struct sockaddr *addr)
net/socket.c
3650
return READ_ONCE(sock->ops)->getname(sock, addr, 0);
net/socket.c
3663
int kernel_getpeername(struct socket *sock, struct sockaddr *addr)
net/socket.c
3665
return READ_ONCE(sock->ops)->getname(sock, addr, 1);
net/socket.c
3677
int kernel_sock_shutdown(struct socket *sock, enum sock_shutdown_cmd how)
net/socket.c
3679
return READ_ONCE(sock->ops)->shutdown(sock, how);
net/socket.c
3693
u32 kernel_sock_ip_overhead(struct sock *sk)
net/socket.c
476
struct file *sock_alloc_file(struct socket *sock, int flags, const char *dname)
net/socket.c
481
dname = sock->sk ? sock->sk->sk_prot_creator->name : "";
net/socket.c
483
file = alloc_file_pseudo(SOCK_INODE(sock), sock_mnt, dname,
net/socket.c
487
sock_release(sock);
net/socket.c
492
sock->file = file;
net/socket.c
493
file->private_data = sock;
net/socket.c
494
stream_open(SOCK_INODE(sock), file);
net/socket.c
504
static int sock_map_fd(struct socket *sock, int flags)
net/socket.c
509
sock_release(sock);
net/socket.c
513
newfile = sock_alloc_file(sock, flags, NULL);
net/socket.c
555
struct socket *sock;
net/socket.c
563
sock = sock_from_file(file);
net/socket.c
564
if (!sock) {
net/socket.c
568
return sock;
net/socket.c
606
struct socket *sock = SOCKET_I(d_inode(dentry));
net/socket.c
608
if (sock->sk) {
net/socket.c
610
WRITE_ONCE(sock->sk->sk_uid, iattr->ia_uid);
net/socket.c
635
struct socket *sock;
net/socket.c
641
sock = SOCKET_I(inode);
net/socket.c
649
return sock;
net/socket.c
653
static void __sock_release(struct socket *sock, struct inode *inode)
net/socket.c
655
const struct proto_ops *ops = READ_ONCE(sock->ops);
net/socket.c
662
ops->release(sock);
net/socket.c
663
sock->sk = NULL;
net/socket.c
666
sock->ops = NULL;
net/socket.c
670
if (sock->wq.fasync_list)
net/socket.c
673
if (!sock->file) {
net/socket.c
674
iput(SOCK_INODE(sock));
net/socket.c
677
WRITE_ONCE(sock->file, NULL);
net/socket.c
688
void sock_release(struct socket *sock)
net/socket.c
690
__sock_release(sock, NULL);
net/socket.c
719
static noinline void call_trace_sock_send_length(struct sock *sk, int ret,
net/socket.c
725
static inline int sock_sendmsg_nosec(struct socket *sock, struct msghdr *msg)
net/socket.c
727
int ret = INDIRECT_CALL_INET(READ_ONCE(sock->ops)->sendmsg, inet6_sendmsg,
net/socket.c
728
inet_sendmsg, sock, msg,
net/socket.c
733
call_trace_sock_send_length(sock->sk, ret, 0);
net/socket.c
737
static int __sock_sendmsg(struct socket *sock, struct msghdr *msg)
net/socket.c
739
int err = security_socket_sendmsg(sock, msg,
net/socket.c
742
return err ?: sock_sendmsg_nosec(sock, msg);
net/socket.c
753
int sock_sendmsg(struct socket *sock, struct msghdr *msg)
net/socket.c
765
ret = __sock_sendmsg(sock, msg);
net/socket.c
785
int kernel_sendmsg(struct socket *sock, struct msghdr *msg,
net/socket.c
789
return sock_sendmsg(sock, msg);
net/socket.c
816
static ktime_t get_timestamp(struct sock *sk, struct sk_buff *skb, int *if_index)
net/socket.c
861
bool skb_has_tx_timestamp(struct sk_buff *skb, const struct sock *sk)
net/socket.c
878
int skb_get_tx_timestamp(struct sk_buff *skb, struct sock *sk,
net/socket.c
910
void __sock_recv_timestamp(struct msghdr *msg, struct sock *sk,
net/strparser/strparser.c
347
struct socket *sock = strp->sk->sk_socket;
net/strparser/strparser.c
350
if (unlikely(!sock || !sock->ops))
net/strparser/strparser.c
353
if (unlikely(!strp->cb.read_sock && !sock->ops->read_sock))
net/strparser/strparser.c
364
sock->ops->read_sock(strp->sk, &desc, strp_recv);
net/strparser/strparser.c
446
int strp_init(struct strparser *strp, struct sock *sk,
net/strparser/strparser.c
49
struct sock *sk = strp->sk;
net/strparser/strparser.c
76
struct socket *sock = strp->sk->sk_socket;
net/strparser/strparser.c
78
return sock->ops->peek_len(sock);
net/sunrpc/clnt.c
1447
struct socket *sock;
net/sunrpc/clnt.c
1451
SOCK_DGRAM, IPPROTO_UDP, &sock, 1);
net/sunrpc/clnt.c
1459
err = kernel_bind(sock,
net/sunrpc/clnt.c
1464
err = kernel_bind(sock,
net/sunrpc/clnt.c
1477
err = kernel_connect(sock, (struct sockaddr_unsized *)sap, salen, 0);
net/sunrpc/clnt.c
1483
err = kernel_getsockname(sock, buf);
net/sunrpc/clnt.c
1497
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
1055
struct socket *sock = svsk->sk_sock;
net/sunrpc/svc_xprt.c
1057
if (svc_register(serv, xprt->xpt_net, sock->sk->sk_family,
net/sunrpc/svc_xprt.c
1058
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
1357
struct sock *sk = svsk->sk_sk;
net/sunrpc/svcsock.c
1407
static int svc_sock_sendpages(struct svc_serv *serv, struct socket *sock, int flags)
net/sunrpc/svcsock.c
1409
switch (sock->type) {
net/sunrpc/svcsock.c
1425
struct socket *sock,
net/sunrpc/svcsock.c
1429
struct sock *inet;
net/sunrpc/svcsock.c
1434
sendpages = svc_sock_sendpages(serv, sock, flags);
net/sunrpc/svcsock.c
1453
inet = sock->sk;
net/sunrpc/svcsock.c
1458
err = svc_register(serv, sock_net(sock->sk), inet->sk_family,
net/sunrpc/svcsock.c
1468
svsk->sk_sock = sock;
net/sunrpc/svcsock.c
1482
if (sock->type == SOCK_DGRAM)
net/sunrpc/svcsock.c
1487
trace_svcsock_new(svsk, sock);
net/sunrpc/svcsock.c
1560
struct socket *sock;
net/sunrpc/svcsock.c
1586
error = __sock_create(net, family, type, protocol, &sock, 1);
net/sunrpc/svcsock.c
1590
svc_reclassify_socket(sock);
net/sunrpc/svcsock.c
1598
ip6_sock_set_v6only(sock->sk);
net/sunrpc/svcsock.c
1600
sock->sk->sk_reuse = SK_CAN_REUSE; /* allow address reuse */
net/sunrpc/svcsock.c
1601
error = kernel_bind(sock, (struct sockaddr_unsized *)sin, len);
net/sunrpc/svcsock.c
1605
error = kernel_getsockname(sock, newsin);
net/sunrpc/svcsock.c
1611
sk_net_refcnt_upgrade(sock->sk);
net/sunrpc/svcsock.c
1612
if ((error = kernel_listen(sock, SOMAXCONN)) < 0)
net/sunrpc/svcsock.c
1616
svsk = svc_setup_socket(serv, sock, flags);
net/sunrpc/svcsock.c
1624
sock_release(sock);
net/sunrpc/svcsock.c
1635
struct sock *sk = svsk->sk_sk;
net/sunrpc/svcsock.c
1669
struct socket *sock = svsk->sk_sock;
net/sunrpc/svcsock.c
1671
trace_svcsock_free(svsk, sock);
net/sunrpc/svcsock.c
1673
tls_handshake_cancel(sock->sk);
net/sunrpc/svcsock.c
1674
if (sock->file)
net/sunrpc/svcsock.c
1675
sockfd_put(sock);
net/sunrpc/svcsock.c
1677
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
381
struct socket *sock = svsk->sk_sock;
net/sunrpc/svcsock.c
385
lock_sock(sock->sk);
net/sunrpc/svcsock.c
386
sock->sk->sk_sndbuf = nreqs * max_mesg * 2;
net/sunrpc/svcsock.c
387
sock->sk->sk_rcvbuf = nreqs * max_mesg * 2;
net/sunrpc/svcsock.c
388
sock->sk->sk_write_space(sock->sk);
net/sunrpc/svcsock.c
389
release_sock(sock->sk);
net/sunrpc/svcsock.c
403
static void svc_data_ready(struct sock *sk)
net/sunrpc/svcsock.c
424
static void svc_write_space(struct sock *sk)
net/sunrpc/svcsock.c
486
struct sock *sk = svsk->sk_sock->sk;
net/sunrpc/svcsock.c
869
static void svc_tcp_listen_data_ready(struct sock *sk)
net/sunrpc/svcsock.c
901
static void svc_tcp_state_change(struct sock *sk)
net/sunrpc/svcsock.c
924
struct socket *sock = svsk->sk_sock;
net/sunrpc/svcsock.c
929
if (!sock)
net/sunrpc/svcsock.c
933
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
2750
trace_rpc_socket_connect(upper_xprt, upper_transport->sock, 0);
net/sunrpc/xprtsock.c
2798
if (transport->sock != NULL) {
net/sunrpc/xprtsock.c
2999
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
3604
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
1018
if (nla_put_u32(args, TIPC_NLA_SOCK_REF, sock)) {
net/tipc/netlink_compat.c
1041
struct nlattr *sock[TIPC_NLA_SOCK_MAX + 1];
net/tipc/netlink_compat.c
1046
err = nla_parse_nested_deprecated(sock, TIPC_NLA_SOCK_MAX,
net/tipc/netlink_compat.c
1051
sock_ref = nla_get_u32(sock[TIPC_NLA_SOCK_REF]);
net/tipc/netlink_compat.c
1054
if (sock[TIPC_NLA_SOCK_CON]) {
net/tipc/netlink_compat.c
1059
sock[TIPC_NLA_SOCK_CON],
net/tipc/netlink_compat.c
1078
} else if (sock[TIPC_NLA_SOCK_HAS_PUBL]) {
net/tipc/netlink_compat.c
63
struct sock *dst_sk;
net/tipc/netlink_compat.c
993
static int tipc_nl_compat_publ_dump(struct tipc_nl_compat_msg *msg, u32 sock)
net/tipc/socket.c
1003
struct sock *sk = sock->sk;
net/tipc/socket.c
1049
rc = tipc_wait_for_cond(sock, &timeout,
net/tipc/socket.c
1080
static int tipc_send_group_bcast(struct socket *sock, struct msghdr *m,
net/tipc/socket.c
1084
struct sock *sk = sock->sk;
net/tipc/socket.c
1097
rc = tipc_wait_for_cond(sock, &timeout,
net/tipc/socket.c
110
struct sock sk;
net/tipc/socket.c
1154
static int tipc_send_group_mcast(struct socket *sock, struct msghdr *m,
net/tipc/socket.c
1158
struct sock *sk = sock->sk;
net/tipc/socket.c
1175
return tipc_send_group_unicast(sock, m, dlen, timeout);
net/tipc/socket.c
1179
return tipc_send_group_bcast(sock, m, dlen, timeout);
net/tipc/socket.c
1330
struct sock *sk = &tsk->sk;
net/tipc/socket.c
1392
static int tipc_sendmsg(struct socket *sock,
net/tipc/socket.c
1395
struct sock *sk = sock->sk;
net/tipc/socket.c
1399
ret = __tipc_sendmsg(sock, m, dsz);
net/tipc/socket.c
1405
static int __tipc_sendmsg(struct socket *sock, struct msghdr *m, size_t dlen)
net/tipc/socket.c
1407
struct sock *sk = sock->sk;
net/tipc/socket.c
1432
return tipc_send_group_bcast(sock, m, dlen, timeout);
net/tipc/socket.c
1434
return tipc_send_group_anycast(sock, m, dlen, timeout);
net/tipc/socket.c
1436
return tipc_send_group_unicast(sock, m, dlen, timeout);
net/tipc/socket.c
1438
return tipc_send_group_mcast(sock, m, dlen, timeout);
net/tipc/socket.c
144
static int tipc_sk_backlog_rcv(struct sock *sk, struct sk_buff *skb);
net/tipc/socket.c
145
static void tipc_data_ready(struct sock *sk);
net/tipc/socket.c
146
static void tipc_write_space(struct sock *sk);
net/tipc/socket.c
1465
return tipc_sendmcast(sock, ua, m, dlen, timeout);
net/tipc/socket.c
147
static void tipc_sock_destruct(struct sock *sk);
net/tipc/socket.c
1478
rc = tipc_wait_for_cond(sock, &timeout,
net/tipc/socket.c
148
static int tipc_release(struct socket *sock);
net/tipc/socket.c
1522
tipc_wait_for_connect(sock, &timeout);
net/tipc/socket.c
1540
static int tipc_sendstream(struct socket *sock, struct msghdr *m, size_t dsz)
net/tipc/socket.c
1542
struct sock *sk = sock->sk;
net/tipc/socket.c
1546
ret = __tipc_sendstream(sock, m, dsz);
net/tipc/socket.c
1552
static int __tipc_sendstream(struct socket *sock, struct msghdr *m, size_t dlen)
net/tipc/socket.c
1554
struct sock *sk = sock->sk;
net/tipc/socket.c
156
static int __tipc_sendstream(struct socket *sock, struct msghdr *m, size_t dsz);
net/tipc/socket.c
157
static int __tipc_sendmsg(struct socket *sock, struct msghdr *m, size_t dsz);
net/tipc/socket.c
1573
rc = __tipc_sendmsg(sock, m, dlen);
net/tipc/socket.c
1582
rc = tipc_wait_for_cond(sock, &timeout,
net/tipc/socket.c
159
static int tipc_wait_for_connect(struct socket *sock, long *timeo_p);
net/tipc/socket.c
1647
static int tipc_send_packet(struct socket *sock, struct msghdr *m, size_t dsz)
net/tipc/socket.c
1652
return tipc_sendstream(sock, m, dsz);
net/tipc/socket.c
1660
struct sock *sk = &tsk->sk;
net/tipc/socket.c
1701
srcaddr->sock.family = AF_TIPC;
net/tipc/socket.c
1702
srcaddr->sock.addrtype = TIPC_SOCKET_ADDR;
net/tipc/socket.c
1703
srcaddr->sock.scope = 0;
net/tipc/socket.c
1704
srcaddr->sock.addr.id.ref = msg_origport(hdr);
net/tipc/socket.c
1705
srcaddr->sock.addr.id.node = msg_orignode(hdr);
net/tipc/socket.c
1706
srcaddr->sock.addr.name.domain = 0;
net/tipc/socket.c
1791
struct sock *sk = &tsk->sk;
net/tipc/socket.c
1828
static int tipc_wait_for_rcvmsg(struct socket *sock, long *timeop)
net/tipc/socket.c
1830
struct sock *sk = sock->sk;
net/tipc/socket.c
1881
static int tipc_recvmsg(struct socket *sock, struct msghdr *m,
net/tipc/socket.c
1884
struct sock *sk = sock->sk;
net/tipc/socket.c
1908
rc = tipc_wait_for_rcvmsg(sock, &timeout);
net/tipc/socket.c
2010
static int tipc_recvstream(struct socket *sock, struct msghdr *m,
net/tipc/socket.c
2013
struct sock *sk = sock->sk;
net/tipc/socket.c
2038
rc = tipc_wait_for_rcvmsg(sock, &timeout);
net/tipc/socket.c
207
static struct tipc_sock *tipc_sk(const struct sock *sk)
net/tipc/socket.c
2109
static void tipc_write_space(struct sock *sk)
net/tipc/socket.c
212
int tsk_set_importance(struct sock *sk, int imp)
net/tipc/socket.c
2125
static void tipc_data_ready(struct sock *sk)
net/tipc/socket.c
2139
static void tipc_sock_destruct(struct sock *sk)
net/tipc/socket.c
2144
static void tipc_sk_proto_rcv(struct sock *sk,
net/tipc/socket.c
2193
struct sock *sk = &tsk->sk;
net/tipc/socket.c
2306
static unsigned int rcvbuf_limit(struct sock *sk, struct sk_buff *skb)
net/tipc/socket.c
2334
static void tipc_sk_filter_rcv(struct sock *sk, struct sk_buff *skb,
net/tipc/socket.c
2399
static int tipc_sk_backlog_rcv(struct sock *sk, struct sk_buff *skb)
net/tipc/socket.c
2426
static void tipc_sk_enqueue(struct sk_buff_head *inputq, struct sock *sk,
net/tipc/socket.c
2486
struct sock *sk;
net/tipc/socket.c
2526
static int tipc_wait_for_connect(struct socket *sock, long *timeo_p)
net/tipc/socket.c
2529
struct sock *sk = sock->sk;
net/tipc/socket.c
254
struct sock *sk = &tsk->sk;
net/tipc/socket.c
2570
static int tipc_connect(struct socket *sock, struct sockaddr_unsized *dest,
net/tipc/socket.c
2573
struct sock *sk = sock->sk;
net/tipc/socket.c
2625
res = __tipc_sendmsg(sock, &m, 0);
net/tipc/socket.c
2643
res = tipc_wait_for_connect(sock, &timeout);
net/tipc/socket.c
2664
static int tipc_listen(struct socket *sock, int len)
net/tipc/socket.c
2666
struct sock *sk = sock->sk;
net/tipc/socket.c
2676
static int tipc_wait_for_accept(struct socket *sock, long timeo)
net/tipc/socket.c
2678
struct sock *sk = sock->sk;
net/tipc/socket.c
2716
static int tipc_accept(struct socket *sock, struct socket *new_sock,
net/tipc/socket.c
2719
struct sock *new_sk, *sk = sock->sk;
net/tipc/socket.c
2734
res = tipc_wait_for_accept(sock, timeo);
net/tipc/socket.c
2740
res = tipc_sk_create(sock_net(sock->sk), new_sock, 0, arg->kern);
net/tipc/socket.c
2743
security_sk_clone(sock->sk, new_sock->sk);
net/tipc/socket.c
276
static void tsk_advance_rx_queue(struct sock *sk)
net/tipc/socket.c
2796
static int tipc_shutdown(struct socket *sock, int how)
net/tipc/socket.c
2798
struct sock *sk = sock->sk;
net/tipc/socket.c
2807
__tipc_shutdown(sock, TIPC_CONN_SHUTDOWN);
net/tipc/socket.c
2825
static void tipc_sk_check_probing_state(struct sock *sk,
net/tipc/socket.c
284
static void tipc_sk_respond(struct sock *sk, struct sk_buff *skb, int err)
net/tipc/socket.c
2851
static void tipc_sk_retry_connect(struct sock *sk, struct sk_buff_head *list)
net/tipc/socket.c
2867
struct sock *sk = timer_container_of(sk, t, sk_timer);
net/tipc/socket.c
2904
struct sock *sk = &tsk->sk;
net/tipc/socket.c
3010
struct sock *sk = &tsk->sk;
net/tipc/socket.c
3033
struct sock *sk = &tsk->sk;
net/tipc/socket.c
306
static void tsk_rej_rx_queue(struct sock *sk, int error)
net/tipc/socket.c
3137
static int tipc_setsockopt(struct socket *sock, int lvl, int opt,
net/tipc/socket.c
314
static bool tipc_sk_connected(const struct sock *sk)
net/tipc/socket.c
3140
struct sock *sk = sock->sk;
net/tipc/socket.c
3146
if ((lvl == IPPROTO_TCP) && (sock->type == SOCK_STREAM))
net/tipc/socket.c
3180
if (sock->type != SOCK_STREAM)
net/tipc/socket.c
3231
static int tipc_getsockopt(struct socket *sock, int lvl, int opt,
net/tipc/socket.c
3234
struct sock *sk = sock->sk;
net/tipc/socket.c
324
static bool tipc_sk_type_connectionless(struct sock *sk)
net/tipc/socket.c
3241
if ((lvl == IPPROTO_TCP) && (sock->type == SOCK_STREAM))
net/tipc/socket.c
3298
static int tipc_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
net/tipc/socket.c
3300
struct net *net = sock_net(sock->sk);
net/tipc/socket.c
336
struct sock *sk = &tsk->sk;
net/tipc/socket.c
3503
struct sock *sk = &tsk->sk;
net/tipc/socket.c
3623
u64 (*tipc_diag_gen_cookie)(struct sock *sk))
net/tipc/socket.c
3625
struct sock *sk = &tsk->sk;
net/tipc/socket.c
369
static int tipc_set_sk_state(struct sock *sk, int state)
net/tipc/socket.c
3786
struct nlattr *sock[TIPC_NLA_SOCK_MAX + 1];
net/tipc/socket.c
3791
err = nla_parse_nested_deprecated(sock, TIPC_NLA_SOCK_MAX,
net/tipc/socket.c
3797
if (!sock[TIPC_NLA_SOCK_REF])
net/tipc/socket.c
3800
tsk_portid = nla_get_u32(sock[TIPC_NLA_SOCK_REF]);
net/tipc/socket.c
3835
bool tipc_sk_filtering(struct sock *sk)
net/tipc/socket.c
3885
u32 tipc_sock_get_portid(struct sock *sk)
net/tipc/socket.c
3899
bool tipc_sk_overlimit1(struct sock *sk, struct sk_buff *skb)
net/tipc/socket.c
3917
bool tipc_sk_overlimit2(struct sock *sk, struct sk_buff *skb)
net/tipc/socket.c
3936
int tipc_sk_dump(struct sock *sk, u16 dqueues, char *buf)
net/tipc/socket.c
401
static int tipc_sk_sock_err(struct socket *sock, long *timeout)
net/tipc/socket.c
403
struct sock *sk = sock->sk;
net/tipc/socket.c
405
int typ = sock->type;
net/tipc/socket.c
426
struct sock *sk_; \
net/tipc/socket.c
458
static int tipc_sk_create(struct net *net, struct socket *sock,
net/tipc/socket.c
462
struct sock *sk;
net/tipc/socket.c
470
switch (sock->type) {
net/tipc/socket.c
499
sock->ops = ops;
net/tipc/socket.c
500
sock_init_data(sock, sk);
net/tipc/socket.c
532
if (sock->type == SOCK_DGRAM)
net/tipc/socket.c
548
static void __tipc_shutdown(struct socket *sock, int error)
net/tipc/socket.c
550
struct sock *sk = sock->sk;
net/tipc/socket.c
558
tipc_wait_for_cond(sock, &timeout, (!tsk->cong_link_cnt &&
net/tipc/socket.c
624
static int tipc_release(struct socket *sock)
net/tipc/socket.c
626
struct sock *sk = sock->sk;
net/tipc/socket.c
640
__tipc_shutdown(sock, TIPC_ERR_NO_PORT);
net/tipc/socket.c
654
sock->sk = NULL;
net/tipc/socket.c
674
static int __tipc_bind(struct socket *sock, struct sockaddr *skaddr, int alen)
net/tipc/socket.c
677
struct tipc_sock *tsk = tipc_sk(sock->sk);
net/tipc/socket.c
70
struct sockaddr_tipc sock;
net/tipc/socket.c
703
int tipc_sk_bind(struct socket *sock, struct sockaddr *skaddr, int alen)
net/tipc/socket.c
707
lock_sock(sock->sk);
net/tipc/socket.c
708
res = __tipc_bind(sock, skaddr, alen);
net/tipc/socket.c
709
release_sock(sock->sk);
net/tipc/socket.c
713
static int tipc_bind(struct socket *sock, struct sockaddr_unsized *skaddr, int alen)
net/tipc/socket.c
729
return tipc_sk_bind(sock, (struct sockaddr *)skaddr, alen);
net/tipc/socket.c
744
static int tipc_getname(struct socket *sock, struct sockaddr *uaddr,
net/tipc/socket.c
748
struct sock *sk = sock->sk;
net/tipc/socket.c
789
static __poll_t tipc_poll(struct file *file, struct socket *sock,
net/tipc/socket.c
792
struct sock *sk = sock->sk;
net/tipc/socket.c
796
sock_poll_wait(file, sock, wait);
net/tipc/socket.c
841
static int tipc_sendmcast(struct socket *sock, struct tipc_uaddr *ua,
net/tipc/socket.c
844
struct sock *sk = sock->sk;
net/tipc/socket.c
857
rc = tipc_wait_for_cond(sock, &timeout, !tsk->cong_link_cnt);
net/tipc/socket.c
955
static int tipc_send_group_unicast(struct socket *sock, struct msghdr *m,
net/tipc/socket.c
958
struct sock *sk = sock->sk;
net/tipc/socket.c
973
rc = tipc_wait_for_cond(sock, &timeout,
net/tipc/socket.c
999
static int tipc_send_group_anycast(struct socket *sock, struct msghdr *m,
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
372
static int tipc_udp_recv(struct sock *sk, struct sk_buff *skb)
net/tipc/udp_media.c
412
struct sock *sk = ub->ubsock->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
192
int tls_strp_init(struct tls_strparser *strp, struct sock *sk);
net/tls/tls.h
232
int tls_set_device_offload(struct sock *sk);
net/tls/tls.h
233
void tls_device_free_resources_tx(struct sock *sk);
net/tls/tls.h
234
int tls_set_device_offload_rx(struct sock *sk, struct tls_context *ctx);
net/tls/tls.h
235
void tls_device_offload_cleanup_rx(struct sock *sk);
net/tls/tls.h
236
void tls_device_rx_resync_new_rec(struct sock *sk, u32 rcd_len, u32 seq);
net/tls/tls.h
237
int tls_device_decrypted(struct sock *sk, struct tls_context *tls_ctx);
net/tls/tls.h
243
tls_set_device_offload(struct sock *sk)
net/tls/tls.h
248
static inline void tls_device_free_resources_tx(struct sock *sk) {}
net/tls/tls.h
251
tls_set_device_offload_rx(struct sock *sk, struct tls_context *ctx)
net/tls/tls.h
256
static inline void tls_device_offload_cleanup_rx(struct sock *sk) {}
net/tls/tls.h
258
tls_device_rx_resync_new_rec(struct sock *sk, u32 rcd_len, u32 seq) {}
net/tls/tls.h
261
tls_device_decrypted(struct sock *sk, struct tls_context *tls_ctx)
net/tls/tls.h
267
int tls_push_sg(struct sock *sk, struct tls_context *ctx,
net/tls/tls.h
270
int tls_push_partial_record(struct sock *sk, struct tls_context *ctx,
net/tls/tls.h
272
void tls_free_partial_record(struct sock *sk, struct tls_context *ctx);
net/tls/tls.h
310
tls_advance_record_sn(struct sock *sk, struct tls_prot_info *prot,
net/tls/tls_device.c
1022
static void tls_device_attach(struct tls_context *ctx, struct sock *sk,
net/tls/tls_device.c
1062
int tls_set_device_offload(struct sock *sk)
net/tls/tls_device.c
1192
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
1268
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
673
static int tls_device_push_pending_record(struct sock *sk, int flags)
net/tls/tls_device.c
681
void tls_device_write_space(struct sock *sk, struct tls_context *ctx)
net/tls/tls_device.c
697
struct sock *sk, u32 seq, u8 *rcd_sn)
net/tls/tls_device.c
770
void tls_device_rx_resync_new_rec(struct sock *sk, u32 rcd_len, u32 seq)
net/tls/tls_device.c
837
struct sock *sk, struct sk_buff *skb)
net/tls/tls_device.c
883
tls_device_reencrypt(struct sock *sk, struct tls_context *tls_ctx)
net/tls/tls_device.c
974
int tls_device_decrypted(struct sock *sk, struct tls_context *tls_ctx)
net/tls/tls_device_fallback.c
185
struct sock *sk = skb->sk;
net/tls/tls_device_fallback.c
364
static struct sk_buff *tls_sw_fallback(struct sock *sk, struct sk_buff *skb)
net/tls/tls_device_fallback.c
414
struct sk_buff *tls_validate_xmit_skb(struct sock *sk,
net/tls/tls_device_fallback.c
426
struct sk_buff *tls_validate_xmit_skb_sw(struct sock *sk,
net/tls/tls_device_fallback.c
439
int tls_sw_fallback_init(struct sock *sk,
net/tls/tls_main.c
1047
static int tls_init(struct sock *sk)
net/tls/tls_main.c
1085
static void tls_update(struct sock *sk, struct proto *p,
net/tls/tls_main.c
1086
void (*write_space)(struct sock *sk))
net/tls/tls_main.c
1120
static int tls_get_info(struct sock *sk, struct sk_buff *skb, bool net_admin)
net/tls/tls_main.c
1184
static size_t tls_get_info_size(const struct sock *sk, bool net_admin)
net/tls/tls_main.c
131
void update_sk_prot(struct sock *sk, struct tls_context *ctx)
net/tls/tls_main.c
141
int wait_on_pending_writer(struct sock *sk, long *timeo)
net/tls/tls_main.c
170
int tls_push_sg(struct sock *sk,
net/tls/tls_main.c
228
static int tls_handle_open_record(struct sock *sk, int flags)
net/tls/tls_main.c
238
int tls_process_cmsg(struct sock *sk, struct msghdr *msg,
net/tls/tls_main.c
270
int tls_push_partial_record(struct sock *sk, struct tls_context *ctx,
net/tls/tls_main.c
283
void tls_free_partial_record(struct sock *sk, struct tls_context *ctx)
net/tls/tls_main.c
294
static void tls_write_space(struct sock *sk)
net/tls/tls_main.c
325
void tls_ctx_free(struct sock *sk, struct tls_context *ctx)
net/tls/tls_main.c
340
static void tls_sk_proto_cleanup(struct sock *sk,
net/tls/tls_main.c
365
static void tls_sk_proto_close(struct sock *sk, long timeout)
net/tls/tls_main.c
401
static __poll_t tls_sk_poll(struct file *file, struct socket *sock,
net/tls/tls_main.c
406
struct sock *sk = sock->sk;
net/tls/tls_main.c
412
mask = tcp_poll(file, sock, wait);
net/tls/tls_main.c
435
static int do_tls_getsockopt_conf(struct sock *sk, char __user *optval,
net/tls/tls_main.c
496
static int do_tls_getsockopt_tx_zc(struct sock *sk, char __user *optval,
net/tls/tls_main.c
516
static int do_tls_getsockopt_no_pad(struct sock *sk, char __user *optval,
net/tls/tls_main.c
544
static int do_tls_getsockopt_tx_payload_len(struct sock *sk, char __user *optval,
net/tls/tls_main.c
566
static int do_tls_getsockopt(struct sock *sk, int optname,
net/tls/tls_main.c
598
static int tls_getsockopt(struct sock *sk, int level, int optname,
net/tls/tls_main.c
635
static int do_tls_setsockopt_conf(struct sock *sk, sockptr_t optval,
net/tls/tls_main.c
785
static int do_tls_setsockopt_tx_zc(struct sock *sk, sockptr_t optval,
net/tls/tls_main.c
805
static int do_tls_setsockopt_no_pad(struct sock *sk, sockptr_t optval,
net/tls/tls_main.c
837
static int do_tls_setsockopt_tx_payload_len(struct sock *sk, sockptr_t optval,
net/tls/tls_main.c
863
static int do_tls_setsockopt(struct sock *sk, int optname, sockptr_t optval,
net/tls/tls_main.c
896
static int tls_setsockopt(struct sock *sk, int level, int optname,
net/tls/tls_main.c
908
static int tls_disconnect(struct sock *sk, int flags)
net/tls/tls_main.c
913
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
604
int tls_strp_init(struct tls_strparser *strp, struct sock *sk)
net/tls/tls_sw.c
1005
static int tls_sw_sendmsg_splice(struct sock *sk, struct msghdr *msg,
net/tls/tls_sw.c
1036
static int tls_sw_sendmsg_locked(struct sock *sk, struct msghdr *msg,
net/tls/tls_sw.c
1278
int tls_sw_sendmsg(struct sock *sk, struct msghdr *msg, size_t size)
net/tls/tls_sw.c
1301
void tls_sw_splice_eof(struct socket *sock)
net/tls/tls_sw.c
1303
struct sock *sk = sock->sk;
net/tls/tls_sw.c
1360
tls_rx_rec_wait(struct sock *sk, struct sk_psock *psock, bool nonblock,
net/tls/tls_sw.c
1476
tls_alloc_clrtxt_skb(struct sock *sk, struct sk_buff *skb,
net/tls/tls_sw.c
1518
static int tls_decrypt_sg(struct sock *sk, struct iov_iter *out_iov,
net/tls/tls_sw.c
1693
tls_decrypt_sw(struct sock *sk, struct tls_context *tls_ctx,
net/tls/tls_sw.c
1733
tls_decrypt_device(struct sock *sk, struct msghdr *msg,
net/tls/tls_sw.c
1782
static int tls_check_pending_rekey(struct sock *sk, struct tls_context *ctx,
net/tls/tls_sw.c
1812
static int tls_rx_one_record(struct sock *sk, struct msghdr *msg,
net/tls/tls_sw.c
1834
int decrypt_skb(struct sock *sk, struct scatterlist *sgout)
net/tls/tls_sw.c
1962
tls_read_flush_backlog(struct sock *sk, struct tls_prot_info *prot,
net/tls/tls_sw.c
197
struct sock *sk;
net/tls/tls_sw.c
1979
static int tls_rx_reader_acquire(struct sock *sk, struct tls_sw_context_rx *ctx,
net/tls/tls_sw.c
2010
static int tls_rx_reader_lock(struct sock *sk, struct tls_sw_context_rx *ctx,
net/tls/tls_sw.c
2022
static void tls_rx_reader_release(struct sock *sk, struct tls_sw_context_rx *ctx)
net/tls/tls_sw.c
2036
static void tls_rx_reader_unlock(struct sock *sk, struct tls_sw_context_rx *ctx)
net/tls/tls_sw.c
2042
int tls_sw_recvmsg(struct sock *sk,
net/tls/tls_sw.c
2267
ssize_t tls_sw_splice_read(struct socket *sock, loff_t *ppos,
net/tls/tls_sw.c
2271
struct tls_context *tls_ctx = tls_get_ctx(sock->sk);
net/tls/tls_sw.c
2274
struct sock *sk = sock->sk;
net/tls/tls_sw.c
2338
int tls_sw_read_sock(struct sock *sk, read_descriptor_t *desc,
net/tls/tls_sw.c
2434
bool tls_sw_sock_is_readable(struct sock *sk)
net/tls/tls_sw.c
2518
static void tls_data_ready(struct sock *sk)
net/tls/tls_sw.c
253
static int tls_do_decryption(struct sock *sk,
net/tls/tls_sw.c
2549
void tls_sw_release_resources_tx(struct sock *sk)
net/tls/tls_sw.c
2590
void tls_sw_release_resources_rx(struct sock *sk)
net/tls/tls_sw.c
2625
void tls_sw_free_resources_rx(struct sock *sk)
net/tls/tls_sw.c
2639
struct sock *sk = tx_work->sk;
net/tls/tls_sw.c
2678
void tls_sw_write_space(struct sock *sk, struct tls_context *ctx)
net/tls/tls_sw.c
2688
void tls_sw_strparser_arm(struct sock *sk, struct tls_context *tls_ctx)
net/tls/tls_sw.c
2706
static struct tls_sw_context_tx *init_ctx_tx(struct tls_context *ctx, struct sock *sk)
net/tls/tls_sw.c
2779
static void tls_finish_key_update(struct sock *sk, struct tls_context *tls_ctx)
net/tls/tls_sw.c
2788
int tls_set_sw_offload(struct sock *sk, int tx,
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_split_open_record(struct sock *sk, struct tls_rec *from,
net/tls/tls_sw.c
63
struct sock *sk;
net/tls/tls_sw.c
702
static void tls_merge_open_record(struct sock *sk, struct tls_rec *to,
net/tls/tls_sw.c
71
noinline void tls_err_abort(struct sock *sk, int err)
net/tls/tls_sw.c
735
static int tls_push_record(struct sock *sk, int flags,
net/tls/tls_sw.c
853
static int bpf_exec_tx_verdict(struct sk_msg *msg, struct sock *sk,
net/tls/tls_sw.c
861
struct sock *sk_redir;
net/tls/tls_sw.c
985
static int tls_sw_push_pending_record(struct sock *sk, int flags)
net/tls/tls_toe.c
103
int tls_toe_hash(struct sock *sk)
net/tls/tls_toe.c
46
static void tls_toe_sk_destruct(struct sock *sk)
net/tls/tls_toe.c
57
int tls_toe_bypass(struct sock *sk)
net/tls/tls_toe.c
84
void tls_toe_unhash(struct sock *sk)
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
1039
static void unix_close(struct sock *sk, long timeout)
net/unix/af_unix.c
1082
static struct sock *unix_create1(struct net *net, struct socket *sock, int kern, int type)
net/unix/af_unix.c
1085
struct sock *sk;
net/unix/af_unix.c
1104
sock_init_data(sock, sk);
net/unix/af_unix.c
1137
static int unix_create(struct net *net, struct socket *sock, int protocol,
net/unix/af_unix.c
1140
struct sock *sk;
net/unix/af_unix.c
1145
sock->state = SS_UNCONNECTED;
net/unix/af_unix.c
1147
switch (sock->type) {
net/unix/af_unix.c
1149
set_bit(SOCK_CUSTOM_SOCKOPT, &sock->flags);
net/unix/af_unix.c
1150
sock->ops = &unix_stream_ops;
net/unix/af_unix.c
1157
sock->type = SOCK_DGRAM;
net/unix/af_unix.c
1160
sock->ops = &unix_dgram_ops;
net/unix/af_unix.c
1163
sock->ops = &unix_seqpacket_ops;
net/unix/af_unix.c
1169
sk = unix_create1(net, sock, kern, sock->type);
net/unix/af_unix.c
1176
static int unix_release(struct socket *sock)
net/unix/af_unix.c
1178
struct sock *sk = sock->sk;
net/unix/af_unix.c
1185
sock->sk = NULL;
net/unix/af_unix.c
1190
static struct sock *unix_find_bsd(struct sockaddr_un *sunaddr, int addr_len,
net/unix/af_unix.c
1195
struct sock *sk;
net/unix/af_unix.c
1251
static struct sock *unix_find_abstract(struct net *net,
net/unix/af_unix.c
1257
struct sock *sk;
net/unix/af_unix.c
1270
static struct sock *unix_find_other(struct net *net,
net/unix/af_unix.c
1274
struct sock *sk;
net/unix/af_unix.c
1284
static int unix_autobind(struct sock *sk)
net/unix/af_unix.c
1346
static int unix_bind_bsd(struct sock *sk, struct sockaddr_un *sunaddr,
net/unix/af_unix.c
1415
static int unix_bind_abstract(struct sock *sk, struct sockaddr_un *sunaddr,
net/unix/af_unix.c
1459
static int unix_bind(struct socket *sock, struct sockaddr_unsized *uaddr, int addr_len)
net/unix/af_unix.c
1462
struct sock *sk = sock->sk;
net/unix/af_unix.c
1481
static void unix_state_double_lock(struct sock *sk1, struct sock *sk2)
net/unix/af_unix.c
1495
static void unix_state_double_unlock(struct sock *sk1, struct sock *sk2)
net/unix/af_unix.c
1505
static int unix_dgram_connect(struct socket *sock, struct sockaddr_unsized *addr,
net/unix/af_unix.c
1509
struct sock *sk = sock->sk;
net/unix/af_unix.c
1510
struct sock *other;
net/unix/af_unix.c
1533
other = unix_find_other(sock_net(sk), sunaddr, alen, sock->type, 0);
net/unix/af_unix.c
1570
struct sock *old_peer = unix_peer(sk);
net/unix/af_unix.c
1603
static long unix_wait_for_peer(struct sock *other, long timeo)
net/unix/af_unix.c
1624
static int unix_stream_connect(struct socket *sock, struct sockaddr_unsized *uaddr,
net/unix/af_unix.c
1628
struct sock *sk = sock->sk, *newsk = NULL, *other = NULL;
net/unix/af_unix.c
1658
newsk = unix_create1(net, NULL, 0, sock->type);
net/unix/af_unix.c
1774
sock->state = SS_CONNECTED;
net/unix/af_unix.c
1807
struct sock *ska = socka->sk, *skb = sockb->sk;
net/unix/af_unix.c
182
const struct sock *a, *b;
net/unix/af_unix.c
1835
static int unix_accept(struct socket *sock, struct socket *newsock,
net/unix/af_unix.c
1838
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
1840
struct sock *tsk;
net/unix/af_unix.c
1843
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
2015
static int unix_maybe_add_creds(struct sk_buff *skb, const struct sock *sk,
net/unix/af_unix.c
2016
const struct sock *other)
net/unix/af_unix.c
2047
static void scm_stat_add(struct sock *sk, struct sk_buff *skb)
net/unix/af_unix.c
2058
static void scm_stat_del(struct sock *sk, struct sk_buff *skb)
net/unix/af_unix.c
2073
static int unix_dgram_sendmsg(struct socket *sock, struct msghdr *msg,
net/unix/af_unix.c
2076
struct sock *sk = sock->sk, *other = NULL;
net/unix/af_unix.c
2085
err = scm_send(sock, msg, &scm, false);
net/unix/af_unix.c
2307
static int queue_oob(struct sock *sk, struct msghdr *msg, struct sock *other,
net/unix/af_unix.c
2367
static int unix_stream_sendmsg(struct socket *sock, struct msghdr *msg,
net/unix/af_unix.c
2370
struct sock *sk = sock->sk;
net/unix/af_unix.c
2372
struct sock *other = NULL;
net/unix/af_unix.c
2378
err = scm_send(sock, msg, &scm, false);
net/unix/af_unix.c
2512
static int unix_seqpacket_sendmsg(struct socket *sock, struct msghdr *msg,
net/unix/af_unix.c
2516
struct sock *sk = sock->sk;
net/unix/af_unix.c
2528
return unix_dgram_sendmsg(sock, msg, len);
net/unix/af_unix.c
2531
static int unix_seqpacket_recvmsg(struct socket *sock, struct msghdr *msg,
net/unix/af_unix.c
2534
struct sock *sk = sock->sk;
net/unix/af_unix.c
2539
return unix_dgram_recvmsg(sock, msg, size, flags);
net/unix/af_unix.c
2542
static void unix_copy_addr(struct msghdr *msg, struct sock *sk)
net/unix/af_unix.c
2552
int __unix_dgram_recvmsg(struct sock *sk, struct msghdr *msg, size_t size,
net/unix/af_unix.c
2556
struct socket *sock = sk->sk_socket;
net/unix/af_unix.c
2652
scm_recv_unix(sock, msg, &scm, flags);
net/unix/af_unix.c
2661
static int unix_dgram_recvmsg(struct socket *sock, struct msghdr *msg, size_t size,
net/unix/af_unix.c
2664
struct sock *sk = sock->sk;
net/unix/af_unix.c
2675
static int unix_read_skb(struct sock *sk, skb_read_actor_t recv_actor)
net/unix/af_unix.c
2693
static long unix_stream_data_wait(struct sock *sk, long timeo,
net/unix/af_unix.c
2746
struct socket *sock = state->socket;
net/unix/af_unix.c
2747
struct sock *sk = sock->sk;
net/unix/af_unix.c
2794
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
2847
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
2894
struct socket *sock = state->socket;
net/unix/af_unix.c
2896
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
3088
scm_recv_unix(sock, msg, &scm, flags);
net/unix/af_unix.c
3114
int __unix_stream_recvmsg(struct sock *sk, struct msghdr *msg,
net/unix/af_unix.c
3128
static int unix_stream_recvmsg(struct socket *sock, struct msghdr *msg,
net/unix/af_unix.c
3133
.socket = sock,
net/unix/af_unix.c
3140
struct sock *sk = sock->sk;
net/unix/af_unix.c
3158
static ssize_t unix_stream_splice_read(struct socket *sock, loff_t *ppos,
net/unix/af_unix.c
3164
.socket = sock,
net/unix/af_unix.c
3173
if (sock->file->f_flags & O_NONBLOCK ||
net/unix/af_unix.c
3180
static int unix_shutdown(struct socket *sock, int mode)
net/unix/af_unix.c
3182
struct sock *sk = sock->sk;
net/unix/af_unix.c
3183
struct sock *other;
net/unix/af_unix.c
3229
long unix_inq_len(struct sock *sk)
net/unix/af_unix.c
3255
long unix_outq_len(struct sock *sk)
net/unix/af_unix.c
3261
static int unix_open_file(struct sock *sk)
net/unix/af_unix.c
3275
static int unix_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
net/unix/af_unix.c
3277
struct sock *sk = sock->sk;
net/unix/af_unix.c
3332
static int unix_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
net/unix/af_unix.c
3334
return unix_ioctl(sock, cmd, (unsigned long)compat_ptr(arg));
net/unix/af_unix.c
3338
static __poll_t unix_poll(struct file *file, struct socket *sock, poll_table *wait)
net/unix/af_unix.c
3340
struct sock *sk = sock->sk;
net/unix/af_unix.c
3345
sock_poll_wait(file, sock, wait);
net/unix/af_unix.c
3383
static __poll_t unix_dgram_poll(struct file *file, struct socket *sock,
net/unix/af_unix.c
3386
struct sock *sk = sock->sk, *other;
net/unix/af_unix.c
3392
sock_poll_wait(file, sock, wait);
net/unix/af_unix.c
3451
static struct sock *unix_from_bucket(struct seq_file *seq, loff_t *pos)
net/unix/af_unix.c
3456
struct sock *sk;
net/unix/af_unix.c
3467
static struct sock *unix_get_first(struct seq_file *seq, loff_t *pos)
net/unix/af_unix.c
3471
struct sock *sk;
net/unix/af_unix.c
3488
static struct sock *unix_get_next(struct seq_file *seq, struct sock *sk,
net/unix/af_unix.c
3525
struct sock *sk = v;
net/unix/af_unix.c
3538
struct sock *s = v;
net/unix/af_unix.c
3590
struct sock **batch;
net/unix/af_unix.c
3612
static int bpf_iter_unix_hold_batch(struct seq_file *seq, struct sock *start_sk)
net/unix/af_unix.c
3617
struct sock *sk;
net/unix/af_unix.c
3645
struct sock **new_batch;
net/unix/af_unix.c
3660
static struct sock *bpf_iter_unix_batch(struct seq_file *seq,
net/unix/af_unix.c
3666
struct sock *sk;
net/unix/af_unix.c
3709
struct sock *sk;
net/unix/af_unix.c
372
static void __unix_remove_socket(struct sock *sk)
net/unix/af_unix.c
3732
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
856
static int unix_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg);
net/unix/af_unix.c
866
static int unix_read_skb(struct sock *sk, skb_read_actor_t recv_actor);
net/unix/af_unix.c
867
static int unix_stream_read_skb(struct sock *sk, skb_read_actor_t recv_actor);
net/unix/af_unix.c
875
static int unix_count_nr_fds(struct sock *sk)
net/unix/af_unix.c
893
static void unix_show_fdinfo(struct seq_file *m, struct socket *sock)
net/unix/af_unix.c
895
struct sock *sk = sock->sk;
net/unix/af_unix.c
908
if (sock->type == SOCK_DGRAM || s_state == TCP_ESTABLISHED)
net/unix/af_unix.c
930
static int unix_setsockopt(struct socket *sock, int level, int optname,
net/unix/af_unix.c
933
struct unix_sock *u = unix_sk(sock->sk);
net/unix/af_unix.c
934
struct sock *sk = sock->sk;
net/unix/af_unix.c
941
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
1012
static int vsock_queue_rcv_skb(struct sock *sk, struct sk_buff *skb)
net/vmw_vsock/af_vsock.c
1023
struct sock *vsock_create_connected(struct sock *parent)
net/vmw_vsock/af_vsock.c
1041
struct sock *sk = sk_vsock(vsk);
net/vmw_vsock/af_vsock.c
1062
void vsock_data_ready(struct sock *sk)
net/vmw_vsock/af_vsock.c
1075
static void vsock_close(struct sock *sk, long timeout)
net/vmw_vsock/af_vsock.c
1079
static int vsock_release(struct socket *sock)
net/vmw_vsock/af_vsock.c
1081
struct sock *sk = sock->sk;
net/vmw_vsock/af_vsock.c
1088
sock->sk = NULL;
net/vmw_vsock/af_vsock.c
1089
sock->state = SS_FREE;
net/vmw_vsock/af_vsock.c
1095
vsock_bind(struct socket *sock, struct sockaddr_unsized *addr, int addr_len)
net/vmw_vsock/af_vsock.c
1098
struct sock *sk;
net/vmw_vsock/af_vsock.c
1101
sk = sock->sk;
net/vmw_vsock/af_vsock.c
1113
static int vsock_getname(struct socket *sock,
net/vmw_vsock/af_vsock.c
1117
struct sock *sk;
net/vmw_vsock/af_vsock.c
1121
sk = sock->sk;
net/vmw_vsock/af_vsock.c
1128
if (sock->state != SS_CONNECTED) {
net/vmw_vsock/af_vsock.c
1146
void vsock_linger(struct sock *sk)
net/vmw_vsock/af_vsock.c
1179
static int vsock_shutdown(struct socket *sock, int mode)
net/vmw_vsock/af_vsock.c
1182
struct sock *sk;
net/vmw_vsock/af_vsock.c
1201
sk = sock->sk;
net/vmw_vsock/af_vsock.c
1204
if (sock->state == SS_UNCONNECTED) {
net/vmw_vsock/af_vsock.c
1209
sock->state = SS_DISCONNECTING;
net/vmw_vsock/af_vsock.c
1230
static __poll_t vsock_poll(struct file *file, struct socket *sock,
net/vmw_vsock/af_vsock.c
1233
struct sock *sk;
net/vmw_vsock/af_vsock.c
1237
sk = sock->sk;
net/vmw_vsock/af_vsock.c
1264
if (sock->type == SOCK_DGRAM) {
net/vmw_vsock/af_vsock.c
1351
static int vsock_read_skb(struct sock *sk, skb_read_actor_t read_actor)
net/vmw_vsock/af_vsock.c
1361
static int vsock_dgram_sendmsg(struct socket *sock, struct msghdr *msg,
net/vmw_vsock/af_vsock.c
1365
struct sock *sk;
net/vmw_vsock/af_vsock.c
1375
sk = sock->sk;
net/vmw_vsock/af_vsock.c
1404
} else if (sock->state == SS_CONNECTED) {
net/vmw_vsock/af_vsock.c
1435
static int vsock_dgram_connect(struct socket *sock,
net/vmw_vsock/af_vsock.c
1439
struct sock *sk;
net/vmw_vsock/af_vsock.c
1443
sk = sock->sk;
net/vmw_vsock/af_vsock.c
1451
sock->state = SS_UNCONNECTED;
net/vmw_vsock/af_vsock.c
1470
sock->state = SS_CONNECTED;
net/vmw_vsock/af_vsock.c
1487
int __vsock_dgram_recvmsg(struct socket *sock, struct msghdr *msg,
net/vmw_vsock/af_vsock.c
1490
struct sock *sk = sock->sk;
net/vmw_vsock/af_vsock.c
1496
int vsock_dgram_recvmsg(struct socket *sock, struct msghdr *msg,
net/vmw_vsock/af_vsock.c
1500
struct sock *sk = sock->sk;
net/vmw_vsock/af_vsock.c
1508
return __vsock_dgram_recvmsg(sock, msg, len, flags);
net/vmw_vsock/af_vsock.c
1512
static int vsock_do_ioctl(struct socket *sock, unsigned int cmd,
net/vmw_vsock/af_vsock.c
1515
struct sock *sk = sock->sk;
net/vmw_vsock/af_vsock.c
1573
static int vsock_ioctl(struct socket *sock, unsigned int cmd,
net/vmw_vsock/af_vsock.c
1578
lock_sock(sock->sk);
net/vmw_vsock/af_vsock.c
1579
ret = vsock_do_ioctl(sock, cmd, (int __user *)arg);
net/vmw_vsock/af_vsock.c
1580
release_sock(sock->sk);
net/vmw_vsock/af_vsock.c
1616
struct sock *sk;
net/vmw_vsock/af_vsock.c
1636
static int vsock_connect(struct socket *sock, struct sockaddr_unsized *addr,
net/vmw_vsock/af_vsock.c
1640
struct sock *sk;
net/vmw_vsock/af_vsock.c
1648
sk = sock->sk;
net/vmw_vsock/af_vsock.c
1654
switch (sock->state) {
net/vmw_vsock/af_vsock.c
1728
sock->state = SS_CONNECTING;
net/vmw_vsock/af_vsock.c
178
static int __vsock_bind(struct sock *sk, struct sockaddr_vm *addr);
net/vmw_vsock/af_vsock.c
179
static void vsock_sk_destruct(struct sock *sk);
net/vmw_vsock/af_vsock.c
1796
sock->state = SS_UNCONNECTED;
net/vmw_vsock/af_vsock.c
180
static int vsock_queue_rcv_skb(struct sock *sk, struct sk_buff *skb);
net/vmw_vsock/af_vsock.c
181
static void vsock_close(struct sock *sk, long timeout);
net/vmw_vsock/af_vsock.c
1812
sock->state = SS_UNCONNECTED;
net/vmw_vsock/af_vsock.c
1824
static int vsock_accept(struct socket *sock, struct socket *newsock,
net/vmw_vsock/af_vsock.c
1827
struct sock *listener;
net/vmw_vsock/af_vsock.c
1829
struct sock *connected;
net/vmw_vsock/af_vsock.c
1835
listener = sock->sk;
net/vmw_vsock/af_vsock.c
1839
if (!sock_type_connectible(sock->type)) {
net/vmw_vsock/af_vsock.c
1913
static int vsock_listen(struct socket *sock, int backlog)
net/vmw_vsock/af_vsock.c
1916
struct sock *sk;
net/vmw_vsock/af_vsock.c
1919
sk = sock->sk;
net/vmw_vsock/af_vsock.c
1928
if (sock->state != SS_UNCONNECTED) {
net/vmw_vsock/af_vsock.c
1967
static int vsock_connectible_setsockopt(struct socket *sock,
net/vmw_vsock/af_vsock.c
1974
struct sock *sk;
net/vmw_vsock/af_vsock.c
1995
sk = sock->sk;
net/vmw_vsock/af_vsock.c
2007
return sock_setsockopt(sock, level, optname, optval, optlen);
net/vmw_vsock/af_vsock.c
2081
static int vsock_connectible_getsockopt(struct socket *sock,
net/vmw_vsock/af_vsock.c
2086
struct sock *sk = sock->sk;
net/vmw_vsock/af_vsock.c
2143
static int vsock_connectible_sendmsg(struct socket *sock, struct msghdr *msg,
net/vmw_vsock/af_vsock.c
2146
struct sock *sk;
net/vmw_vsock/af_vsock.c
2155
sk = sock->sk;
net/vmw_vsock/af_vsock.c
2305
static int vsock_connectible_wait_data(struct sock *sk,
net/vmw_vsock/af_vsock.c
2372
static int __vsock_stream_recvmsg(struct sock *sk, struct msghdr *msg,
net/vmw_vsock/af_vsock.c
2451
static int __vsock_seqpacket_recvmsg(struct sock *sk, struct msghdr *msg,
net/vmw_vsock/af_vsock.c
2502
__vsock_connectible_recvmsg(struct socket *sock, struct msghdr *msg, size_t len,
net/vmw_vsock/af_vsock.c
2505
struct sock *sk;
net/vmw_vsock/af_vsock.c
2510
sk = sock->sk;
net/vmw_vsock/af_vsock.c
253
struct sock *sk = sk_vsock(vsk);
net/vmw_vsock/af_vsock.c
2569
vsock_connectible_recvmsg(struct socket *sock, struct msghdr *msg, size_t len,
net/vmw_vsock/af_vsock.c
2573
struct sock *sk = sock->sk;
net/vmw_vsock/af_vsock.c
2581
return __vsock_connectible_recvmsg(sock, msg, len, flags);
net/vmw_vsock/af_vsock.c
2585
static int vsock_set_rcvlowat(struct sock *sk, int val)
net/vmw_vsock/af_vsock.c
2652
static int vsock_create(struct net *net, struct socket *sock,
net/vmw_vsock/af_vsock.c
2656
struct sock *sk;
net/vmw_vsock/af_vsock.c
2659
if (!sock)
net/vmw_vsock/af_vsock.c
2665
switch (sock->type) {
net/vmw_vsock/af_vsock.c
2667
sock->ops = &vsock_dgram_ops;
net/vmw_vsock/af_vsock.c
2670
sock->ops = &vsock_stream_ops;
net/vmw_vsock/af_vsock.c
2673
sock->ops = &vsock_seqpacket_ops;
net/vmw_vsock/af_vsock.c
2679
sock->state = SS_UNCONNECTED;
net/vmw_vsock/af_vsock.c
2681
sk = __vsock_create(net, sock, NULL, GFP_KERNEL, 0, kern);
net/vmw_vsock/af_vsock.c
2687
if (sock->type == SOCK_DGRAM) {
net/vmw_vsock/af_vsock.c
2690
sock->sk = NULL;
net/vmw_vsock/af_vsock.c
2699
if (sock_type_connectible(sock->type))
net/vmw_vsock/af_vsock.c
299
static struct sock *__vsock_find_bound_socket_net(struct sockaddr_vm *addr,
net/vmw_vsock/af_vsock.c
305
struct sock *sk = sk_vsock(vsk);
net/vmw_vsock/af_vsock.c
321
static struct sock *
net/vmw_vsock/af_vsock.c
329
struct sock *sk = sk_vsock(vsk);
net/vmw_vsock/af_vsock.c
382
struct sock *vsock_find_bound_socket_net(struct sockaddr_vm *addr,
net/vmw_vsock/af_vsock.c
385
struct sock *sk;
net/vmw_vsock/af_vsock.c
403
struct sock *vsock_find_bound_socket(struct sockaddr_vm *addr)
net/vmw_vsock/af_vsock.c
414
struct sock *vsock_find_connected_socket_net(struct sockaddr_vm *src,
net/vmw_vsock/af_vsock.c
418
struct sock *sk;
net/vmw_vsock/af_vsock.c
436
struct sock *vsock_find_connected_socket(struct sockaddr_vm *src,
net/vmw_vsock/af_vsock.c
454
void (*fn)(struct sock *sk))
net/vmw_vsock/af_vsock.c
475
void vsock_add_pending(struct sock *listener, struct sock *pending)
net/vmw_vsock/af_vsock.c
489
void vsock_remove_pending(struct sock *listener, struct sock *pending)
net/vmw_vsock/af_vsock.c
499
void vsock_enqueue_accept(struct sock *listener, struct sock *connected)
net/vmw_vsock/af_vsock.c
555
struct sock *sk = sk_vsock(vsk);
net/vmw_vsock/af_vsock.c
688
static struct sock *vsock_dequeue_accept(struct sock *listener)
net/vmw_vsock/af_vsock.c
710
static bool vsock_is_accept_queue_empty(struct sock *sk)
net/vmw_vsock/af_vsock.c
716
static bool vsock_is_pending(struct sock *sk)
net/vmw_vsock/af_vsock.c
722
static int vsock_send_shutdown(struct sock *sk, int mode)
net/vmw_vsock/af_vsock.c
734
struct sock *sk;
net/vmw_vsock/af_vsock.c
735
struct sock *listener;
net/vmw_vsock/af_vsock.c
843
static int __vsock_bind(struct sock *sk, struct sockaddr_vm *addr)
net/vmw_vsock/af_vsock.c
882
static struct sock *__vsock_create(struct net *net,
net/vmw_vsock/af_vsock.c
883
struct socket *sock,
net/vmw_vsock/af_vsock.c
884
struct sock *parent,
net/vmw_vsock/af_vsock.c
889
struct sock *sk;
net/vmw_vsock/af_vsock.c
897
sock_init_data(sock, sk);
net/vmw_vsock/af_vsock.c
903
if (!sock)
net/vmw_vsock/af_vsock.c
952
static void __vsock_release(struct sock *sk, int level)
net/vmw_vsock/af_vsock.c
955
struct sock *pending;
net/vmw_vsock/af_vsock.c
994
static void vsock_sk_destruct(struct sock *sk)
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
445
struct sock *sk = sk_vsock(vsk);
net/vmw_vsock/hyperv_transport.c
499
struct sock *sk = sk_vsock(vsk);
net/vmw_vsock/hyperv_transport.c
514
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
1231
struct sock *sk = sk_vsock(vsk);
net/vmw_vsock/virtio_transport_common.c
1247
struct sock *sk = sk_vsock(vsk);
net/vmw_vsock/virtio_transport_common.c
1262
struct sock *sk = sk_vsock(vsk);
net/vmw_vsock/virtio_transport_common.c
1282
struct sock *sk = &vsk->sk;
net/vmw_vsock/virtio_transport_common.c
1314
struct sock *sk = &vsk->sk;
net/vmw_vsock/virtio_transport_common.c
1328
virtio_transport_recv_connecting(struct sock *sk,
net/vmw_vsock/virtio_transport_common.c
1425
virtio_transport_recv_connected(struct sock *sk,
net/vmw_vsock/virtio_transport_common.c
1476
virtio_transport_recv_disconnecting(struct sock *sk,
net/vmw_vsock/virtio_transport_common.c
1503
static bool virtio_transport_space_update(struct sock *sk,
net/vmw_vsock/virtio_transport_common.c
1530
virtio_transport_recv_listen(struct sock *sk, struct sk_buff *skb,
net/vmw_vsock/virtio_transport_common.c
1536
struct sock *child;
net/vmw_vsock/virtio_transport_common.c
1614
struct sock *sk;
net/vmw_vsock/virtio_transport_common.c
1754
struct sock *sk = sk_vsock(vsk);
net/vmw_vsock/virtio_transport_common.c
242
static u16 virtio_transport_get_type(struct sock *sk)
net/vmw_vsock/virtio_transport_common.c
477
struct sock *s = skb->sk;
net/vmw_vsock/vmci_transport.c
1138
vmci_transport_recv_connecting_server(struct sock *listener,
net/vmw_vsock/vmci_transport.c
1139
struct sock *pending,
net/vmw_vsock/vmci_transport.c
1285
vmci_transport_recv_connecting_client(struct sock *sk,
net/vmw_vsock/vmci_transport.c
1384
struct sock *sk,
net/vmw_vsock/vmci_transport.c
1505
vmci_transport_recv_connecting_client_invalid(struct sock *sk,
net/vmw_vsock/vmci_transport.c
1526
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
14879
IPPROTO_TCP, &cfg->sock, 1);
net/wireless/nl80211.c
14884
if (inet_csk_get_port(cfg->sock->sk, port)) {
net/wireless/nl80211.c
14885
sock_release(cfg->sock);
net/wireless/nl80211.c
14889
cfg->src_port = inet_sk(cfg->sock->sk)->inet_num;
net/wireless/nl80211.c
15157
if (new_triggers.tcp && new_triggers.tcp->sock)
net/wireless/nl80211.c
15158
sock_release(new_triggers.tcp->sock);
net/x25/af_x25.c
1103
static int x25_sendmsg(struct socket *sock, struct msghdr *msg, size_t len)
net/x25/af_x25.c
1105
struct sock *sk = sock->sk;
net/x25/af_x25.c
1277
static int x25_recvmsg(struct socket *sock, struct msghdr *msg, size_t size,
net/x25/af_x25.c
1280
struct sock *sk = sock->sk;
net/x25/af_x25.c
1378
static int x25_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
net/x25/af_x25.c
1380
struct sock *sk = sock->sk;
net/x25/af_x25.c
1678
static int compat_x25_ioctl(struct socket *sock, unsigned int cmd,
net/x25/af_x25.c
1687
rc = x25_ioctl(sock, cmd, (unsigned long)argp);
net/x25/af_x25.c
1728
rc = x25_ioctl(sock, cmd, (unsigned long)argp);
net/x25/af_x25.c
1773
struct sock *s;
net/x25/af_x25.c
195
static void x25_remove_socket(struct sock *sk)
net/x25/af_x25.c
250
static void x25_insert_socket(struct sock *sk)
net/x25/af_x25.c
264
static struct sock *x25_find_listener(struct x25_address *addr,
net/x25/af_x25.c
267
struct sock *s;
net/x25/af_x25.c
268
struct sock *next_best;
net/x25/af_x25.c
308
static struct sock *__x25_find_socket(unsigned int lci, struct x25_neigh *nb)
net/x25/af_x25.c
310
struct sock *s;
net/x25/af_x25.c
322
struct sock *x25_find_socket(unsigned int lci, struct x25_neigh *nb)
net/x25/af_x25.c
324
struct sock *s;
net/x25/af_x25.c
338
struct sock *sk;
net/x25/af_x25.c
355
static void __x25_destroy_socket(struct sock *);
net/x25/af_x25.c
362
struct sock *sk = timer_container_of(sk, t, sk_timer);
net/x25/af_x25.c
374
static void __x25_destroy_socket(struct sock *sk)
net/x25/af_x25.c
409
void x25_destroy_socket_from_timer(struct sock *sk)
net/x25/af_x25.c
423
static int x25_setsockopt(struct socket *sock, int level, int optname,
net/x25/af_x25.c
427
struct sock *sk = sock->sk;
net/x25/af_x25.c
450
static int x25_getsockopt(struct socket *sock, int level, int optname,
net/x25/af_x25.c
453
struct sock *sk = sock->sk;
net/x25/af_x25.c
479
static int x25_listen(struct socket *sock, int backlog)
net/x25/af_x25.c
481
struct sock *sk = sock->sk;
net/x25/af_x25.c
485
if (sock->state != SS_UNCONNECTED) {
net/x25/af_x25.c
508
static struct sock *x25_alloc_socket(struct net *net, int kern)
net/x25/af_x25.c
511
struct sock *sk = sk_alloc(net, AF_X25, GFP_ATOMIC, &x25_proto, kern);
net/x25/af_x25.c
527
static int x25_create(struct net *net, struct socket *sock, int protocol,
net/x25/af_x25.c
530
struct sock *sk;
net/x25/af_x25.c
538
if (sock->type != SOCK_SEQPACKET)
net/x25/af_x25.c
551
sock_init_data(sock, sk);
net/x25/af_x25.c
555
sock->ops = &x25_proto_ops;
net/x25/af_x25.c
587
static struct sock *x25_make_new(struct sock *osk)
net/x25/af_x25.c
589
struct sock *sk = NULL;
net/x25/af_x25.c
625
static int x25_release(struct socket *sock)
net/x25/af_x25.c
627
struct sock *sk = sock->sk;
net/x25/af_x25.c
673
static int x25_bind(struct socket *sock, struct sockaddr_unsized *uaddr, int addr_len)
net/x25/af_x25.c
675
struct sock *sk = sock->sk;
net/x25/af_x25.c
712
static int x25_wait_for_connection_establishment(struct sock *sk)
net/x25/af_x25.c
746
static int x25_connect(struct socket *sock, struct sockaddr_unsized *uaddr,
net/x25/af_x25.c
749
struct sock *sk = sock->sk;
net/x25/af_x25.c
756
if (sk->sk_state == TCP_ESTABLISHED && sock->state == SS_CONNECTING) {
net/x25/af_x25.c
757
sock->state = SS_CONNECTED;
net/x25/af_x25.c
762
if (sk->sk_state == TCP_CLOSE && sock->state == SS_CONNECTING) {
net/x25/af_x25.c
763
sock->state = SS_UNCONNECTED;
net/x25/af_x25.c
776
sock->state = SS_UNCONNECTED;
net/x25/af_x25.c
809
sock->state = SS_CONNECTING;
net/x25/af_x25.c
828
sock->state = SS_CONNECTED;
net/x25/af_x25.c
845
static int x25_wait_for_data(struct sock *sk, long timeout)
net/x25/af_x25.c
874
static int x25_accept(struct socket *sock, struct socket *newsock,
net/x25/af_x25.c
877
struct sock *sk = sock->sk;
net/x25/af_x25.c
878
struct sock *newsk;
net/x25/af_x25.c
916
static int x25_getname(struct socket *sock, struct sockaddr *uaddr,
net/x25/af_x25.c
920
struct sock *sk = sock->sk;
net/x25/af_x25.c
943
struct sock *sk;
net/x25/af_x25.c
944
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
1010
static bool xsk_no_wakeup(struct sock *sk)
net/xdp/xsk.c
1031
static int __xsk_sendmsg(struct socket *sock, struct msghdr *m, size_t total_len)
net/xdp/xsk.c
1034
struct sock *sk = sock->sk;
net/xdp/xsk.c
1062
static int xsk_sendmsg(struct socket *sock, struct msghdr *m, size_t total_len)
net/xdp/xsk.c
1067
ret = __xsk_sendmsg(sock, m, total_len);
net/xdp/xsk.c
1073
static int __xsk_recvmsg(struct socket *sock, struct msghdr *m, size_t len, int flags)
net/xdp/xsk.c
1076
struct sock *sk = sock->sk;
net/xdp/xsk.c
1099
static int xsk_recvmsg(struct socket *sock, struct msghdr *m, size_t len, int flags)
net/xdp/xsk.c
1104
ret = __xsk_recvmsg(sock, m, len, flags);
net/xdp/xsk.c
1110
static __poll_t xsk_poll(struct file *file, struct socket *sock,
net/xdp/xsk.c
1114
struct sock *sk = sock->sk;
net/xdp/xsk.c
1118
sock_poll_wait(file, sock, wait);
net/xdp/xsk.c
1221
static int xsk_release(struct socket *sock)
net/xdp/xsk.c
1223
struct sock *sk = sock->sk;
net/xdp/xsk.c
1252
sock->sk = NULL;
net/xdp/xsk.c
1261
struct socket *sock;
net/xdp/xsk.c
1264
sock = sockfd_lookup(fd, &err);
net/xdp/xsk.c
1265
if (!sock)
net/xdp/xsk.c
1268
if (sock->sk->sk_family != PF_XDP) {
net/xdp/xsk.c
1269
sockfd_put(sock);
net/xdp/xsk.c
1273
return sock;
net/xdp/xsk.c
1281
static int xsk_bind(struct socket *sock, struct sockaddr_unsized *addr, int addr_len)
net/xdp/xsk.c
1284
struct sock *sk = sock->sk;
net/xdp/xsk.c
1329
struct socket *sock;
net/xdp/xsk.c
1344
sock = xsk_lookup_xsk_from_fd(sxdp->sxdp_shared_umem_fd);
net/xdp/xsk.c
1345
if (IS_ERR(sock)) {
net/xdp/xsk.c
1346
err = PTR_ERR(sock);
net/xdp/xsk.c
1350
umem_xs = xdp_sk(sock->sk);
net/xdp/xsk.c
1353
sockfd_put(sock);
net/xdp/xsk.c
1361
sockfd_put(sock);
net/xdp/xsk.c
1372
sockfd_put(sock);
net/xdp/xsk.c
1381
sockfd_put(sock);
net/xdp/xsk.c
1389
sockfd_put(sock);
net/xdp/xsk.c
1405
sockfd_put(sock);
net/xdp/xsk.c
1413
sockfd_put(sock);
net/xdp/xsk.c
1475
static int xsk_setsockopt(struct socket *sock, int level, int optname,
net/xdp/xsk.c
1478
struct sock *sk = sock->sk;
net/xdp/xsk.c
1618
static int xsk_getsockopt(struct socket *sock, int level, int optname,
net/xdp/xsk.c
1621
struct sock *sk = sock->sk;
net/xdp/xsk.c
1749
static int xsk_mmap(struct file *file, struct socket *sock,
net/xdp/xsk.c
1754
struct xdp_sock *xs = xdp_sk(sock->sk);
net/xdp/xsk.c
1792
struct sock *sk;
net/xdp/xsk.c
1845
static void xsk_destruct(struct sock *sk)
net/xdp/xsk.c
1856
static int xsk_create(struct net *net, struct socket *sock, int protocol,
net/xdp/xsk.c
1860
struct sock *sk;
net/xdp/xsk.c
1864
if (sock->type != SOCK_RAW)
net/xdp/xsk.c
1870
sock->state = SS_UNCONNECTED;
net/xdp/xsk.c
1876
sock->ops = &xsk_proto_ops;
net/xdp/xsk.c
1878
sock_init_data(sock, sk);
net/xdp/xsk.c
908
static int __xsk_generic_xmit(struct sock *sk)
net/xdp/xsk.c
997
static int xsk_generic_xmit(struct sock *sk)
net/xdp/xsk.h
37
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
191
sockfd_put(sock);
net/xdp/xskmap.c
212
sockfd_put(sock);
net/xdp/xskmap.c
217
sockfd_put(sock);
net/xfrm/espintcp.c
135
static int espintcp_recvmsg(struct sock *sk, struct msghdr *msg, size_t len,
net/xfrm/espintcp.c
16
struct sock *sk)
net/xfrm/espintcp.c
169
int espintcp_queue_out(struct sock *sk, struct sk_buff *skb)
net/xfrm/espintcp.c
188
static int espintcp_sendskb_locked(struct sock *sk, struct espintcp_msg *emsg,
net/xfrm/espintcp.c
209
static int espintcp_sendskmsg_locked(struct sock *sk,
net/xfrm/espintcp.c
261
static int espintcp_push_msgs(struct sock *sk, int flags)
net/xfrm/espintcp.c
290
int espintcp_push_skb(struct sock *sk, struct sk_buff *skb)
net/xfrm/espintcp.c
32
static void handle_esp(struct sk_buff *skb, struct sock *sk)
net/xfrm/espintcp.c
324
static int espintcp_sendmsg(struct sock *sk, struct msghdr *msg, size_t size)
net/xfrm/espintcp.c
407
static void espintcp_data_ready(struct sock *sk)
net/xfrm/espintcp.c
420
struct sock *sk = ctx->strp.sk;
net/xfrm/espintcp.c
428
static void espintcp_write_space(struct sock *sk)
net/xfrm/espintcp.c
436
static void espintcp_destruct(struct sock *sk)
net/xfrm/espintcp.c
444
bool tcp_is_ulp_esp(struct sock *sk)
net/xfrm/espintcp.c
454
static int espintcp_init_sk(struct sock *sk)
net/xfrm/espintcp.c
514
static void espintcp_release(struct sock *sk)
net/xfrm/espintcp.c
529
static void espintcp_close(struct sock *sk, long timeout)
net/xfrm/espintcp.c
555
static __poll_t espintcp_poll(struct file *file, struct socket *sock,
net/xfrm/espintcp.c
558
struct sock *sk = sock->sk;
net/xfrm/espintcp.c
561
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
807
int (*finish)(struct net *, struct sock *,
net/xfrm/xfrm_input.c
830
int (*finish)(struct net *, struct sock *,
net/xfrm/xfrm_iptfs.c
1805
static int iptfs_is_too_big(struct sock *sk, struct sk_buff *skb, u32 pmtu)
net/xfrm/xfrm_iptfs.c
1830
static int iptfs_output_collect(struct net *net, struct sock *sk, struct sk_buff *skb)
net/xfrm/xfrm_nat_keepalive.c
218
struct sock *sk;
net/xfrm/xfrm_nat_keepalive.c
227
per_cpu_ptr(socks, i)->sock = sk;
net/xfrm/xfrm_nat_keepalive.c
233
inet_ctl_sock_destroy(per_cpu_ptr(socks, i)->sock);
net/xfrm/xfrm_nat_keepalive.c
242
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
64
sk = this_cpu_read(nat_keepalive_sk_ipv4.sock);
net/xfrm/xfrm_nat_keepalive.c
80
struct sock *sk;
net/xfrm/xfrm_nat_keepalive.c
99
sk = this_cpu_read(nat_keepalive_sk_ipv6.sock);
net/xfrm/xfrm_output.c
28
static int xfrm_output2(struct net *net, struct sock *sk, struct sk_buff *skb);
net/xfrm/xfrm_output.c
586
int xfrm_output_resume(struct sock *sk, struct sk_buff *skb, int err)
net/xfrm/xfrm_output.c
615
static int xfrm_dev_direct_output(struct sock *sk, struct xfrm_state *x,
net/xfrm/xfrm_output.c
649
static int xfrm_output2(struct net *net, struct sock *sk, struct sk_buff *skb)
net/xfrm/xfrm_output.c
654
static int xfrm_output_gso(struct net *net, struct sock *sk, struct sk_buff *skb)
net/xfrm/xfrm_output.c
743
int xfrm_output(struct sock *sk, struct sk_buff *skb)
net/xfrm/xfrm_output.c
887
struct sock *sk = skb_to_full_sk(skb);
net/xfrm/xfrm_policy.c
2240
static struct xfrm_policy *xfrm_sk_policy_lookup(const struct sock *sk, int dir,
net/xfrm/xfrm_policy.c
2379
int xfrm_sk_policy_insert(struct sock *sk, int dir, struct xfrm_policy *pol)
net/xfrm/xfrm_policy.c
2447
int __xfrm_sk_clone_policy(struct sock *sk, const struct sock *osk)
net/xfrm/xfrm_policy.c
2899
struct sock *sk;
net/xfrm/xfrm_policy.c
2983
static int xdst_queue_output(struct net *net, struct sock *sk, struct sk_buff *skb)
net/xfrm/xfrm_policy.c
3175
const struct sock *sk,
net/xfrm/xfrm_policy.c
3333
const struct flowi *fl, const struct sock *sk,
net/xfrm/xfrm_policy.c
3345
const struct sock *sk, int flags)
net/xfrm/xfrm_policy.c
3676
int __xfrm_policy_check(struct sock *sk, int dir, struct sk_buff *skb,
net/xfrm/xfrm_policy.c
3967
static void xfrm_negative_advice(struct sock *sk, struct dst_entry *dst)
net/xfrm/xfrm_state.c
2958
int xfrm_user_policy(struct sock *sk, int optname, sockptr_t optval, int optlen)
net/xfrm/xfrm_user.c
1491
struct sock *sk = cb->skb->sk;
net/xfrm/xfrm_user.c
1583
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
3873
static struct xfrm_policy *xfrm_compile_policy(struct sock *sk, int opt,
net/xfrm/xfrm_user.c
41
const struct sock *sk = NETLINK_CB(skb).sk;
net/xfrm/xfrm_user.c
4232
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
687
static void update_peer_ctx(struct sock *sk, struct aa_sk_ctx *ctx,
security/apparmor/af_unix.c
712
struct socket *sock = (struct socket *) file->private_data;
security/apparmor/af_unix.c
716
struct sock *peer_sk = NULL;
security/apparmor/af_unix.c
723
AA_BUG(!sock);
security/apparmor/af_unix.c
724
AA_BUG(!sock->sk);
security/apparmor/af_unix.c
725
AA_BUG(sock->sk->sk_family != PF_UNIX);
security/apparmor/af_unix.c
731
unix_state_lock(sock->sk);
security/apparmor/af_unix.c
732
peer_sk = unix_peer(sock->sk);
security/apparmor/af_unix.c
736
is_sk_fs = is_unix_fs(sock->sk);
security/apparmor/af_unix.c
737
addr = aa_sunaddr(unix_sk(sock->sk), &addrlen);
security/apparmor/af_unix.c
738
path = unix_sk(sock->sk)->path;
security/apparmor/af_unix.c
739
unix_state_unlock(sock->sk);
security/apparmor/af_unix.c
745
sk_req, sock->sk,
security/apparmor/af_unix.c
772
MAY_READ | MAY_WRITE, sock->sk,
security/apparmor/af_unix.c
794
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
1069
static int apparmor_sk_alloc_security(struct sock *sk, int family, gfp_t gfp)
security/apparmor/lsm.c
1084
static void apparmor_sk_free_security(struct sock *sk)
security/apparmor/lsm.c
1099
static void apparmor_sk_clone_security(const struct sock *sk,
security/apparmor/lsm.c
1100
struct sock *newsk)
security/apparmor/lsm.c
1124
struct sock *sk, struct sock *peer_sk)
security/apparmor/lsm.c
1185
static int apparmor_unix_stream_connect(struct sock *sk, struct sock *peer_sk,
security/apparmor/lsm.c
1186
struct sock *newsk)
security/apparmor/lsm.c
1231
static int apparmor_unix_may_send(struct socket *sock, struct socket *peer)
security/apparmor/lsm.c
1241
sock->sk, peer->sk,
security/apparmor/lsm.c
1248
sock->sk, label));
security/apparmor/lsm.c
1293
static int apparmor_socket_post_create(struct socket *sock, int family,
security/apparmor/lsm.c
1303
if (sock->sk) {
security/apparmor/lsm.c
1304
struct aa_sk_ctx *ctx = aa_sock(sock->sk);
security/apparmor/lsm.c
1358
static int apparmor_socket_bind(struct socket *sock,
security/apparmor/lsm.c
1361
AA_BUG(!sock);
security/apparmor/lsm.c
1362
AA_BUG(!sock->sk);
security/apparmor/lsm.c
1366
if (sock->sk->sk_family == PF_UNIX)
security/apparmor/lsm.c
1367
return aa_unix_bind_perm(sock, address, addrlen);
security/apparmor/lsm.c
1368
return aa_sk_perm(OP_BIND, AA_MAY_BIND, sock->sk);
security/apparmor/lsm.c
1371
static int apparmor_socket_connect(struct socket *sock,
security/apparmor/lsm.c
1374
AA_BUG(!sock);
security/apparmor/lsm.c
1375
AA_BUG(!sock->sk);
security/apparmor/lsm.c
1380
if (sock->sk->sk_family == PF_UNIX)
security/apparmor/lsm.c
1382
return aa_sk_perm(OP_CONNECT, AA_MAY_CONNECT, sock->sk);
security/apparmor/lsm.c
1385
static int apparmor_socket_listen(struct socket *sock, int backlog)
security/apparmor/lsm.c
1387
AA_BUG(!sock);
security/apparmor/lsm.c
1388
AA_BUG(!sock->sk);
security/apparmor/lsm.c
1391
if (sock->sk->sk_family == PF_UNIX)
security/apparmor/lsm.c
1392
return aa_unix_listen_perm(sock, backlog);
security/apparmor/lsm.c
1393
return aa_sk_perm(OP_LISTEN, AA_MAY_LISTEN, sock->sk);
security/apparmor/lsm.c
1400
static int apparmor_socket_accept(struct socket *sock, struct socket *newsock)
security/apparmor/lsm.c
1402
AA_BUG(!sock);
security/apparmor/lsm.c
1403
AA_BUG(!sock->sk);
security/apparmor/lsm.c
1407
if (sock->sk->sk_family == PF_UNIX)
security/apparmor/lsm.c
1408
return aa_unix_accept_perm(sock, newsock);
security/apparmor/lsm.c
1409
return aa_sk_perm(OP_ACCEPT, AA_MAY_ACCEPT, sock->sk);
security/apparmor/lsm.c
1412
static int aa_sock_msg_perm(const char *op, u32 request, struct socket *sock,
security/apparmor/lsm.c
1415
AA_BUG(!sock);
security/apparmor/lsm.c
1416
AA_BUG(!sock->sk);
security/apparmor/lsm.c
1421
if (sock->sk->sk_family == PF_UNIX)
security/apparmor/lsm.c
1423
return aa_sk_perm(op, request, sock->sk);
security/apparmor/lsm.c
1426
static int apparmor_socket_sendmsg(struct socket *sock,
security/apparmor/lsm.c
1429
return aa_sock_msg_perm(OP_SENDMSG, AA_MAY_SEND, sock, msg, size);
security/apparmor/lsm.c
1432
static int apparmor_socket_recvmsg(struct socket *sock,
security/apparmor/lsm.c
1435
return aa_sock_msg_perm(OP_RECVMSG, AA_MAY_RECEIVE, sock, msg, size);
security/apparmor/lsm.c
1439
static int aa_sock_perm(const char *op, u32 request, struct socket *sock)
security/apparmor/lsm.c
1441
AA_BUG(!sock);
security/apparmor/lsm.c
1442
AA_BUG(!sock->sk);
security/apparmor/lsm.c
1445
if (sock->sk->sk_family == PF_UNIX)
security/apparmor/lsm.c
1446
return aa_unix_sock_perm(op, request, sock);
security/apparmor/lsm.c
1447
return aa_sk_perm(op, request, sock->sk);
security/apparmor/lsm.c
1450
static int apparmor_socket_getsockname(struct socket *sock)
security/apparmor/lsm.c
1452
return aa_sock_perm(OP_GETSOCKNAME, AA_MAY_GETATTR, sock);
security/apparmor/lsm.c
1455
static int apparmor_socket_getpeername(struct socket *sock)
security/apparmor/lsm.c
1457
return aa_sock_perm(OP_GETPEERNAME, AA_MAY_GETATTR, sock);
security/apparmor/lsm.c
1461
static int aa_sock_opt_perm(const char *op, u32 request, struct socket *sock,
security/apparmor/lsm.c
1464
AA_BUG(!sock);
security/apparmor/lsm.c
1465
AA_BUG(!sock->sk);
security/apparmor/lsm.c
1468
if (sock->sk->sk_family == PF_UNIX)
security/apparmor/lsm.c
1469
return aa_unix_opt_perm(op, request, sock, level, optname);
security/apparmor/lsm.c
1470
return aa_sk_perm(op, request, sock->sk);
security/apparmor/lsm.c
1473
static int apparmor_socket_getsockopt(struct socket *sock, int level,
security/apparmor/lsm.c
1476
return aa_sock_opt_perm(OP_GETSOCKOPT, AA_MAY_GETOPT, sock,
security/apparmor/lsm.c
1480
static int apparmor_socket_setsockopt(struct socket *sock, int level,
security/apparmor/lsm.c
1483
return aa_sock_opt_perm(OP_SETSOCKOPT, AA_MAY_SETOPT, sock,
security/apparmor/lsm.c
1487
static int apparmor_socket_shutdown(struct socket *sock, int how)
security/apparmor/lsm.c
1489
return aa_sock_perm(OP_SHUTDOWN, AA_MAY_SHUTDOWN, sock);
security/apparmor/lsm.c
1503
static int apparmor_socket_sock_rcv_skb(struct sock *sk, struct sk_buff *skb)
security/apparmor/lsm.c
1528
static struct aa_label *sk_peer_get_label(struct sock *sk)
security/apparmor/lsm.c
1552
static int apparmor_socket_getpeersec_stream(struct socket *sock,
security/apparmor/lsm.c
1561
peer = sk_peer_get_label(sock->sk);
security/apparmor/lsm.c
1602
static int apparmor_socket_getpeersec_dgram(struct socket *sock,
security/apparmor/lsm.c
1621
static void apparmor_sock_graft(struct sock *sk, struct socket *parent)
security/apparmor/lsm.c
1631
static int apparmor_inet_conn_request(const struct sock *sk, struct sk_buff *skb,
security/apparmor/lsm.c
2373
struct sock *sk;
security/apparmor/net.c
286
struct sock *sk)
security/apparmor/net.c
306
int aa_sk_perm(const char *op, u32 request, struct sock *sk)
security/apparmor/net.c
326
struct socket *sock = (struct socket *) file->private_data;
security/apparmor/net.c
331
if (!sock || !sock->sk)
security/apparmor/net.c
334
if (sock->sk->sk_family == PF_UNIX)
security/apparmor/net.c
336
return aa_label_sk_perm(subj_cred, label, op, request, sock->sk);
security/apparmor/net.c
396
u32 secid, const struct sock *sk)
security/apparmor/net.c
98
const struct sock *sk)
security/landlock/net.c
105
if (sock->sk->__sk_common.skc_family == AF_INET) {
security/landlock/net.c
183
if (address->sa_family != sock->sk->__sk_common.skc_family &&
security/landlock/net.c
212
static int hook_socket_bind(struct socket *const sock,
security/landlock/net.c
217
if (sk_is_tcp(sock->sk))
security/landlock/net.c
222
return current_check_access_socket(sock, address, addrlen,
security/landlock/net.c
226
static int hook_socket_connect(struct socket *const sock,
security/landlock/net.c
232
if (sk_is_tcp(sock->sk))
security/landlock/net.c
237
return current_check_access_socket(sock, address, addrlen,
security/landlock/net.c
44
static int current_check_access_socket(struct socket *const sock,
security/landlock/task.c
235
static bool sock_is_scoped(struct sock *const other,
security/landlock/task.c
247
static bool is_abstract_socket(struct sock *const sock)
security/landlock/task.c
249
struct unix_address *addr = unix_sk(sock)->addr;
security/landlock/task.c
265
static int hook_unix_stream_connect(struct sock *const sock,
security/landlock/task.c
266
struct sock *const other,
security/landlock/task.c
267
struct sock *const newsk)
security/landlock/task.c
297
static int hook_unix_may_send(struct socket *const sock,
security/landlock/task.c
312
if (unix_peer(sock->sk) == other->sk)
security/lsm_audit.c
287
const struct sock *sk = a->u.net->sk;
security/security.c
4018
int security_netlink_send(struct sock *sk, struct sk_buff *skb)
security/security.c
4044
int security_unix_stream_connect(struct sock *sock, struct sock *other,
security/security.c
4045
struct sock *newsk)
security/security.c
4047
return call_int_hook(unix_stream_connect, sock, other, newsk);
security/security.c
4071
int security_unix_may_send(struct socket *sock, struct socket *other)
security/security.c
4073
return call_int_hook(unix_may_send, sock, other);
security/security.c
4111
int security_socket_post_create(struct socket *sock, int family,
security/security.c
4114
return call_int_hook(socket_post_create, sock, family, type,
security/security.c
4146
int security_socket_bind(struct socket *sock,
security/security.c
4149
return call_int_hook(socket_bind, sock, address, addrlen);
security/security.c
4163
int security_socket_connect(struct socket *sock,
security/security.c
4166
return call_int_hook(socket_connect, sock, address, addrlen);
security/security.c
4178
int security_socket_listen(struct socket *sock, int backlog)
security/security.c
4180
return call_int_hook(socket_listen, sock, backlog);
security/security.c
4194
int security_socket_accept(struct socket *sock, struct socket *newsock)
security/security.c
4196
return call_int_hook(socket_accept, sock, newsock);
security/security.c
4209
int security_socket_sendmsg(struct socket *sock, struct msghdr *msg, int size)
security/security.c
4211
return call_int_hook(socket_sendmsg, sock, msg, size);
security/security.c
4225
int security_socket_recvmsg(struct socket *sock, struct msghdr *msg,
security/security.c
4228
return call_int_hook(socket_recvmsg, sock, msg, size, flags);
security/security.c
4240
int security_socket_getsockname(struct socket *sock)
security/security.c
4242
return call_int_hook(socket_getsockname, sock);
security/security.c
4253
int security_socket_getpeername(struct socket *sock)
security/security.c
4255
return call_int_hook(socket_getpeername, sock);
security/security.c
4269
int security_socket_getsockopt(struct socket *sock, int level, int optname)
security/security.c
4271
return call_int_hook(socket_getsockopt, sock, level, optname);
security/security.c
4284
int security_socket_setsockopt(struct socket *sock, int level, int optname)
security/security.c
4286
return call_int_hook(socket_setsockopt, sock, level, optname);
security/security.c
4299
int security_socket_shutdown(struct socket *sock, int how)
security/security.c
4301
return call_int_hook(socket_shutdown, sock, how);
security/security.c
4316
int security_sock_rcv_skb(struct sock *sk, struct sk_buff *skb)
security/security.c
4337
int security_socket_getpeersec_stream(struct socket *sock, sockptr_t optval,
security/security.c
4340
return call_int_hook(socket_getpeersec_stream, sock, optval, optlen,
security/security.c
4358
int security_socket_getpeersec_dgram(struct socket *sock,
security/security.c
4361
return call_int_hook(socket_getpeersec_dgram, sock, skb, secid);
security/security.c
4374
static int lsm_sock_alloc(struct sock *sock, gfp_t gfp)
security/security.c
4376
return lsm_blob_alloc(&sock->sk_security, blob_sizes.lbs_sock, gfp);
security/security.c
4390
int security_sk_alloc(struct sock *sk, int family, gfp_t priority)
security/security.c
4408
void security_sk_free(struct sock *sk)
security/security.c
4422
void security_sk_clone(const struct sock *sk, struct sock *newsk)
security/security.c
4435
void security_sk_classify_flow(const struct sock *sk, struct flowi_common *flic)
security/security.c
4463
void security_sock_graft(struct sock *sk, struct socket *parent)
security/security.c
4479
int security_inet_conn_request(const struct sock *sk,
security/security.c
4493
void security_inet_csk_clone(struct sock *newsk,
security/security.c
4506
void security_inet_conn_established(struct sock *sk,
security/security.c
4624
int security_tun_dev_attach(struct sock *sk, void *security)
security/security.c
4675
int security_sctp_bind_connect(struct sock *sk, int optname,
security/security.c
4692
void security_sctp_sk_clone(struct sctp_association *asoc, struct sock *sk,
security/security.c
4693
struct sock *newsk)
security/security.c
4728
int security_mptcp_add_subflow(struct sock *sk, struct sock *ssk)
security/selinux/hooks.c
236
int ifindex, struct sock *sk, u16 family)
security/selinux/hooks.c
247
struct sock *sk)
security/selinux/hooks.c
4809
static int sock_has_perm(struct sock *sk, u32 perms)
security/selinux/hooks.c
4843
static int selinux_socket_post_create(struct socket *sock, int family,
security/selinux/hooks.c
4847
struct inode_security_struct *isec = inode_security_novalidate(SOCK_INODE(sock));
security/selinux/hooks.c
4863
if (sock->sk) {
security/selinux/hooks.c
4864
sksec = selinux_sock(sock->sk);
security/selinux/hooks.c
4871
err = selinux_netlbl_socket_post_create(sock->sk, family);
security/selinux/hooks.c
4893
static int selinux_socket_bind(struct socket *sock, struct sockaddr *address, int addrlen)
security/selinux/hooks.c
4895
struct sock *sk = sock->sk;
security/selinux/hooks.c
5028
static int selinux_socket_connect_helper(struct socket *sock,
security/selinux/hooks.c
5031
struct sock *sk = sock->sk;
security/selinux/hooks.c
5114
static int selinux_socket_connect(struct socket *sock,
security/selinux/hooks.c
5118
struct sock *sk = sock->sk;
security/selinux/hooks.c
5120
err = selinux_socket_connect_helper(sock, address, addrlen);
security/selinux/hooks.c
5127
static int selinux_socket_listen(struct socket *sock, int backlog)
security/selinux/hooks.c
5129
return sock_has_perm(sock->sk, SOCKET__LISTEN);
security/selinux/hooks.c
5132
static int selinux_socket_accept(struct socket *sock, struct socket *newsock)
security/selinux/hooks.c
5140
err = sock_has_perm(sock->sk, SOCKET__ACCEPT);
security/selinux/hooks.c
5144
isec = inode_security_novalidate(SOCK_INODE(sock));
security/selinux/hooks.c
5158
static int selinux_socket_sendmsg(struct socket *sock, struct msghdr *msg,
security/selinux/hooks.c
5161
return sock_has_perm(sock->sk, SOCKET__WRITE);
security/selinux/hooks.c
5164
static int selinux_socket_recvmsg(struct socket *sock, struct msghdr *msg,
security/selinux/hooks.c
5167
return sock_has_perm(sock->sk, SOCKET__READ);
security/selinux/hooks.c
5170
static int selinux_socket_getsockname(struct socket *sock)
security/selinux/hooks.c
5172
return sock_has_perm(sock->sk, SOCKET__GETATTR);
security/selinux/hooks.c
5175
static int selinux_socket_getpeername(struct socket *sock)
security/selinux/hooks.c
5177
return sock_has_perm(sock->sk, SOCKET__GETATTR);
security/selinux/hooks.c
5180
static int selinux_socket_setsockopt(struct socket *sock, int level, int optname)
security/selinux/hooks.c
5184
err = sock_has_perm(sock->sk, SOCKET__SETOPT);
security/selinux/hooks.c
5188
return selinux_netlbl_socket_setsockopt(sock, level, optname);
security/selinux/hooks.c
5191
static int selinux_socket_getsockopt(struct socket *sock, int level,
security/selinux/hooks.c
5194
return sock_has_perm(sock->sk, SOCKET__GETOPT);
security/selinux/hooks.c
5197
static int selinux_socket_shutdown(struct socket *sock, int how)
security/selinux/hooks.c
5199
return sock_has_perm(sock->sk, SOCKET__SHUTDOWN);
security/selinux/hooks.c
5202
static int selinux_socket_unix_stream_connect(struct sock *sock,
security/selinux/hooks.c
5203
struct sock *other,
security/selinux/hooks.c
5204
struct sock *newsk)
security/selinux/hooks.c
5206
struct sk_security_struct *sksec_sock = selinux_sock(sock);
security/selinux/hooks.c
5234
static int selinux_socket_unix_may_send(struct socket *sock,
security/selinux/hooks.c
5237
struct sk_security_struct *ssec = selinux_sock(sock->sk);
security/selinux/hooks.c
5271
static int selinux_sock_rcv_skb_compat(struct sock *sk, struct sk_buff *skb,
security/selinux/hooks.c
5301
static int selinux_socket_sock_rcv_skb(struct sock *sk, struct sk_buff *skb)
security/selinux/hooks.c
5365
static int selinux_socket_getpeersec_stream(struct socket *sock,
security/selinux/hooks.c
5372
struct sk_security_struct *sksec = selinux_sock(sock->sk);
security/selinux/hooks.c
5400
static int selinux_socket_getpeersec_dgram(struct socket *sock,
security/selinux/hooks.c
5410
else if (sock)
security/selinux/hooks.c
5411
family = sock->sk->sk_family;
security/selinux/hooks.c
5417
if (sock && family == PF_UNIX) {
security/selinux/hooks.c
5419
isec = inode_security_novalidate(SOCK_INODE(sock));
security/selinux/hooks.c
5430
static int selinux_sk_alloc_security(struct sock *sk, int family, gfp_t priority)
security/selinux/hooks.c
5442
static void selinux_sk_free_security(struct sock *sk)
security/selinux/hooks.c
5449
static void selinux_sk_clone_security(const struct sock *sk, struct sock *newsk)
security/selinux/hooks.c
5461
static void selinux_sk_getsecid(const struct sock *sk, u32 *secid)
security/selinux/hooks.c
5472
static void selinux_sock_graft(struct sock *sk, struct socket *parent)
security/selinux/hooks.c
5491
struct sock *sk = asoc->base.sk;
security/selinux/hooks.c
5598
static int selinux_sctp_bind_connect(struct sock *sk, int optname,
security/selinux/hooks.c
5605
struct socket *sock;
security/selinux/hooks.c
5611
sock = sk->sk_socket;
security/selinux/hooks.c
5640
err = selinux_socket_bind(sock, addr, len);
security/selinux/hooks.c
5647
err = selinux_socket_connect_helper(sock, addr, len);
security/selinux/hooks.c
5677
static void selinux_sctp_sk_clone(struct sctp_association *asoc, struct sock *sk,
security/selinux/hooks.c
5678
struct sock *newsk)
security/selinux/hooks.c
5695
static int selinux_mptcp_add_subflow(struct sock *sk, struct sock *ssk)
security/selinux/hooks.c
5710
static int selinux_inet_conn_request(const struct sock *sk, struct sk_buff *skb,
security/selinux/hooks.c
5731
static void selinux_inet_csk_clone(struct sock *newsk,
security/selinux/hooks.c
5748
static void selinux_inet_conn_established(struct sock *sk, struct sk_buff *skb)
security/selinux/hooks.c
5813
static int selinux_tun_dev_attach(struct sock *sk, void *security)
security/selinux/hooks.c
5910
struct sock *sk;
security/selinux/hooks.c
5953
struct sock *sk;
security/selinux/hooks.c
5987
struct sock *sk;
security/selinux/hooks.c
6116
static int nlmsg_sock_has_extended_perms(struct sock *sk, u32 perms, u16 nlmsg_type)
security/selinux/hooks.c
6136
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
241
static inline struct sk_security_struct *selinux_sock(const struct sock *sock)
security/selinux/include/objsec.h
243
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
482
struct context *newcontext, bool sock)
security/selinux/ss/mls.c
528
if ((tclass == p->process_class) || sock)
security/selinux/ss/mls.h
47
struct context *newcontext, bool sock);
security/selinux/ss/services.c
1771
bool sock;
security/selinux/ss/services.c
1795
sock = security_is_socket_class(orig_tclass);
security/selinux/ss/services.c
1798
sock = security_is_socket_class(map_class(&policy->map,
security/selinux/ss/services.c
1850
if ((tclass == policydb->process_class) || sock)
security/selinux/ss/services.c
1887
if ((tclass == policydb->process_class) || sock) {
security/selinux/ss/services.c
1919
&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
2013
struct socket *sock;
security/smack/smack_lsm.c
2024
sock = SOCKET_I(inode);
security/smack/smack_lsm.c
2025
ssp = smack_sock(sock->sk);
security/smack/smack_lsm.c
2449
static int smack_sk_alloc_security(struct sock *sk, int family, gfp_t gfp_flags)
security/smack/smack_lsm.c
2476
static void smack_sk_free_security(struct sock *sk)
security/smack/smack_lsm.c
2500
static void smack_sk_clone_security(const struct sock *sk, struct sock *newsk)
security/smack/smack_lsm.c
2619
static int smack_netlbl_add(struct sock *sk)
security/smack/smack_lsm.c
2652
static void smack_netlbl_delete(struct sock *sk)
security/smack/smack_lsm.c
2681
static int smk_ipv4_check(struct sock *sk, struct sockaddr_in *sap)
security/smack/smack_lsm.c
2757
static void smk_ipv6_port_label(struct socket *sock, struct sockaddr *address)
security/smack/smack_lsm.c
2759
struct sock *sk = sock->sk;
security/smack/smack_lsm.c
2761
struct socket_smack *ssp = smack_sock(sock->sk);
security/smack/smack_lsm.c
2802
if (spp->smk_port != port || spp->smk_sock_type != sock->type)
security/smack/smack_lsm.c
2828
spp->smk_sock_type = sock->type;
security/smack/smack_lsm.c
2845
static int smk_ipv6_port_check(struct sock *sk, struct sockaddr_in6 *address,
security/smack/smack_lsm.c
2918
struct socket *sock;
security/smack/smack_lsm.c
2948
sock = SOCKET_I(inode);
security/smack/smack_lsm.c
2949
if (sock == NULL || sock->sk == NULL)
security/smack/smack_lsm.c
2952
ssp = smack_sock(sock->sk);
security/smack/smack_lsm.c
2958
if (sock->sk->sk_family == PF_INET) {
security/smack/smack_lsm.c
2959
rc = smack_netlbl_add(sock->sk);
security/smack/smack_lsm.c
2969
if (sock->sk->sk_family == PF_INET6)
security/smack/smack_lsm.c
2970
smk_ipv6_port_label(sock, NULL);
security/smack/smack_lsm.c
2988
static int smack_socket_post_create(struct socket *sock, int family,
security/smack/smack_lsm.c
2993
if (sock->sk == NULL)
security/smack/smack_lsm.c
3000
ssp = smack_sock(sock->sk);
security/smack/smack_lsm.c
3010
return smack_netlbl_add(sock->sk);
security/smack/smack_lsm.c
3045
static int smack_socket_bind(struct socket *sock, struct sockaddr *address,
security/smack/smack_lsm.c
3048
if (sock->sk != NULL && sock->sk->sk_family == PF_INET6) {
security/smack/smack_lsm.c
3052
smk_ipv6_port_label(sock, address);
security/smack/smack_lsm.c
3068
static int smack_socket_connect(struct socket *sock, struct sockaddr *sap,
security/smack/smack_lsm.c
3073
if (sock->sk == NULL)
security/smack/smack_lsm.c
3075
if (sock->sk->sk_family != PF_INET &&
security/smack/smack_lsm.c
3076
(!IS_ENABLED(CONFIG_IPV6) || sock->sk->sk_family != PF_INET6))
security/smack/smack_lsm.c
3091
struct socket_smack *ssp = smack_sock(sock->sk);
security/smack/smack_lsm.c
3097
rc = smk_ipv6_port_check(sock->sk, sip, SMK_CONNECTING);
security/smack/smack_lsm.c
3106
rc = smk_ipv4_check(sock->sk, (struct sockaddr_in *)sap);
security/smack/smack_lsm.c
3928
static int smack_unix_stream_connect(struct sock *sock,
security/smack/smack_lsm.c
3929
struct sock *other, struct sock *newsk)
security/smack/smack_lsm.c
3933
struct socket_smack *ssp = smack_sock(sock);
security/smack/smack_lsm.c
3985
static int smack_unix_may_send(struct socket *sock, struct socket *other)
security/smack/smack_lsm.c
3987
struct socket_smack *ssp = smack_sock(sock->sk);
security/smack/smack_lsm.c
4017
static int smack_socket_sendmsg(struct socket *sock, struct msghdr *msg,
security/smack/smack_lsm.c
4025
struct socket_smack *ssp = smack_sock(sock->sk);
security/smack/smack_lsm.c
4036
switch (sock->sk->sk_family) {
security/smack/smack_lsm.c
4041
rc = smk_ipv4_check(sock->sk, sip);
security/smack/smack_lsm.c
4055
rc = smk_ipv6_port_check(sock->sk, sap, SMK_SENDING);
security/smack/smack_lsm.c
4221
static struct smack_known *smack_from_netlbl(const struct sock *sk, u16 family,
security/smack/smack_lsm.c
4251
static int smack_socket_sock_rcv_skb(struct sock *sk, struct sk_buff *skb)
security/smack/smack_lsm.c
4348
static int smack_socket_getpeersec_stream(struct socket *sock,
security/smack/smack_lsm.c
4357
ssp = smack_sock(sock->sk);
security/smack/smack_lsm.c
4384
static int smack_socket_getpeersec_dgram(struct socket *sock,
security/smack/smack_lsm.c
4390
struct sock *sk = NULL;
security/smack/smack_lsm.c
4402
if (family == PF_UNSPEC && sock != NULL)
security/smack/smack_lsm.c
4403
family = sock->sk->sk_family;
security/smack/smack_lsm.c
4407
ssp = smack_sock(sock->sk);
security/smack/smack_lsm.c
4419
if (sock != NULL)
security/smack/smack_lsm.c
4420
sk = sock->sk;
security/smack/smack_lsm.c
4448
static int smack_inet_conn_request(const struct sock *sk, struct sk_buff *skb,
security/smack/smack_lsm.c
4536
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
438
extern long __sys_sendmsg_sock(struct socket *sock, struct msghdr *msg,
tools/perf/trace/beauty/include/linux/socket.h
440
extern long __sys_recvmsg_sock(struct socket *sock, struct msghdr *msg,
tools/perf/trace/beauty/include/linux/socket.h
463
extern int __sys_bind_socket(struct socket *sock, struct sockaddr_storage *address,
tools/perf/trace/beauty/include/linux/socket.h
470
extern int __sys_listen_socket(struct socket *sock, int backlog);
tools/perf/trace/beauty/include/linux/socket.h
471
extern int do_getsockname(struct socket *sock, int peer,
tools/perf/trace/beauty/include/linux/socket.h
477
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
132
int n, sock = -1;
tools/testing/selftests/bpf/prog_tests/xdp_context_test_run.c
143
sock = socket(AF_PACKET, SOCK_RAW, IPPROTO_RAW);
tools/testing/selftests/bpf/prog_tests/xdp_context_test_run.c
144
if (!ASSERT_GE(sock, 0, "socket"))
tools/testing/selftests/bpf/prog_tests/xdp_context_test_run.c
152
n = sendto(sock, packet, sizeof(packet), 0, (struct sockaddr *)&saddr,
tools/testing/selftests/bpf/prog_tests/xdp_context_test_run.c
157
close(sock);
tools/testing/selftests/bpf/prog_tests/xdp_context_test_run.c
161
if (sock >= 0)
tools/testing/selftests/bpf/prog_tests/xdp_context_test_run.c
162
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
61
int BPF_PROG(socket_post_create, struct socket *sock, int family, int type,
tools/testing/selftests/bpf/progs/bench_local_storage_create.c
64
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, struct sock *sk, enum tcp_ca_event event)
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(struct sock *sk, enum tcp_ca_event event) __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
157
static __u32 bictcp_clock_us(const struct sock *sk)
tools/testing/selftests/bpf/progs/bpf_cubic.c
162
static void bictcp_hystart_reset(struct sock *sk)
tools/testing/selftests/bpf/progs/bpf_cubic.c
174
void BPF_PROG(bpf_cubic_init, struct sock *sk)
tools/testing/selftests/bpf/progs/bpf_cubic.c
188
void BPF_PROG(bpf_cubic_cwnd_event, struct sock *sk, enum tcp_ca_event event)
tools/testing/selftests/bpf/progs/bpf_cubic.c
379
void BPF_PROG(bpf_cubic_cong_avoid, struct sock *sk, __u32 ack, __u32 acked)
tools/testing/selftests/bpf/progs/bpf_cubic.c
399
__u32 BPF_PROG(bpf_cubic_recalc_ssthresh, struct sock *sk)
tools/testing/selftests/bpf/progs/bpf_cubic.c
417
void BPF_PROG(bpf_cubic_state, struct sock *sk, __u8 new_state)
tools/testing/selftests/bpf/progs/bpf_cubic.c
436
static __u32 hystart_ack_delay(struct sock *sk)
tools/testing/selftests/bpf/progs/bpf_cubic.c
447
static void hystart_update(struct sock *sk, __u32 delay)
tools/testing/selftests/bpf/progs/bpf_cubic.c
496
void BPF_PROG(bpf_cubic_acked, struct sock *sk, const struct ack_sample *sample)
tools/testing/selftests/bpf/progs/bpf_cubic.c
525
extern __u32 tcp_reno_undo_cwnd(struct sock *sk) __ksym;
tools/testing/selftests/bpf/progs/bpf_cubic.c
528
__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
10
static long sock_i_ino(const struct sock *sk)
tools/testing/selftests/bpf/progs/bpf_iter_unix.c
28
struct sock *sk = (struct sock *)unix_sk;
tools/testing/selftests/bpf/progs/bpf_qdisc_fq.c
230
static bool sk_listener(struct sock *sk)
tools/testing/selftests/bpf/progs/bpf_qdisc_fq.c
271
struct sock *sk = skb->sk;
tools/testing/selftests/bpf/progs/bpf_smc.c
16
struct sock sk;
tools/testing/selftests/bpf/progs/bpf_smc.c
25
int BPF_PROG(bpf_smc_release, struct socket *sock)
tools/testing/selftests/bpf/progs/bpf_smc.c
28
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
36
return bpf_kfunc_call_test2((struct sock *)sk, 1, 2);
tools/testing/selftests/bpf/progs/kfunc_call_test.c
53
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
101
static __always_inline int real_bind(struct socket *sock,
tools/testing/selftests/bpf/progs/lsm_cgroup.c
106
struct sock *sk = sock->sk;
tools/testing/selftests/bpf/progs/lsm_cgroup.c
130
int BPF_PROG(socket_bind, struct socket *sock, struct sockaddr *address,
tools/testing/selftests/bpf/progs/lsm_cgroup.c
134
return real_bind(sock, address, addrlen);
tools/testing/selftests/bpf/progs/lsm_cgroup.c
139
int BPF_PROG(socket_bind2, struct socket *sock, struct sockaddr *address,
tools/testing/selftests/bpf/progs/lsm_cgroup.c
143
return real_bind(sock, address, addrlen);
tools/testing/selftests/bpf/progs/lsm_cgroup.c
148
int BPF_PROG(socket_alloc, struct sock *sk, int family, gfp_t priority)
tools/testing/selftests/bpf/progs/lsm_cgroup.c
167
int BPF_PROG(socket_clone, struct sock *newsk, const struct request_sock *req)
tools/testing/selftests/bpf/progs/lsm_cgroup.c
51
static __always_inline int real_create(struct socket *sock, int family,
tools/testing/selftests/bpf/progs/lsm_cgroup.c
54
struct sock *sk;
tools/testing/selftests/bpf/progs/lsm_cgroup.c
61
sk = sock->sk;
tools/testing/selftests/bpf/progs/lsm_cgroup.c
85
int BPF_PROG(socket_post_create, struct socket *sock, int family,
tools/testing/selftests/bpf/progs/lsm_cgroup.c
89
return real_create(sock, family, protocol);
tools/testing/selftests/bpf/progs/lsm_cgroup.c
94
int BPF_PROG(socket_post_create2, struct socket *sock, int family,
tools/testing/selftests/bpf/progs/lsm_cgroup.c
98
return real_create(sock, family, protocol);
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
394
struct sock *sk;
tools/testing/selftests/bpf/progs/setget_sockopt.c
400
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
32
static long get_memory_allocated(struct sock *_sk, int *memory_per_cpu_fw_alloc)
tools/testing/selftests/bpf/progs/sk_bypass_prot_mem.c
34
struct sock *sk = bpf_core_cast(_sk, struct sock);
tools/testing/selftests/bpf/progs/sk_bypass_prot_mem.c
49
static void fentry_init_sock(struct sock *sk, bool *activated,
tools/testing/selftests/bpf/progs/sk_bypass_prot_mem.c
60
int BPF_PROG(fentry_tcp_init_sock, struct sock *sk)
tools/testing/selftests/bpf/progs/sk_bypass_prot_mem.c
68
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
100
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(struct sock *sk, enum tcp_ca_event event) __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 u32 dctcp_ssthresh(struct sock *sk) __ksym;
tools/testing/selftests/bpf/progs/tcp_ca_kfunc.c
20
extern u32 dctcp_cwnd_undo(struct sock *sk) __ksym;
tools/testing/selftests/bpf/progs/tcp_ca_kfunc.c
21
extern void dctcp_state(struct sock *sk, u8 new_state) __ksym;
tools/testing/selftests/bpf/progs/tcp_ca_kfunc.c
23
extern void cubictcp_init(struct sock *sk) __ksym;
tools/testing/selftests/bpf/progs/tcp_ca_kfunc.c
24
extern u32 cubictcp_recalc_ssthresh(struct sock *sk) __ksym;
tools/testing/selftests/bpf/progs/tcp_ca_kfunc.c
25
extern void cubictcp_cong_avoid(struct sock *sk, u32 ack, u32 acked) __ksym;
tools/testing/selftests/bpf/progs/tcp_ca_kfunc.c
26
extern void cubictcp_state(struct sock *sk, u8 new_state) __ksym;
tools/testing/selftests/bpf/progs/tcp_ca_kfunc.c
27
extern void cubictcp_cwnd_event(struct sock *sk, enum tcp_ca_event event) __ksym;
tools/testing/selftests/bpf/progs/tcp_ca_kfunc.c
28
extern void cubictcp_acked(struct sock *sk, const struct ack_sample *sample) __ksym;
tools/testing/selftests/bpf/progs/tcp_ca_kfunc.c
31
void BPF_PROG(init, struct sock *sk)
tools/testing/selftests/bpf/progs/tcp_ca_kfunc.c
39
void BPF_PROG(in_ack_event, struct sock *sk, u32 flags)
tools/testing/selftests/bpf/progs/tcp_ca_kfunc.c
45
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
51
void BPF_PROG(cong_avoid, struct sock *sk, u32 ack, u32 acked)
tools/testing/selftests/bpf/progs/tcp_ca_kfunc.c
57
u32 BPF_PROG(sndbuf_expand, struct sock *sk)
tools/testing/selftests/bpf/progs/tcp_ca_kfunc.c
63
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
70
void BPF_PROG(cwnd_event, struct sock *sk, enum tcp_ca_event event)
tools/testing/selftests/bpf/progs/tcp_ca_kfunc.c
78
u32 BPF_PROG(ssthresh, 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
86
u32 BPF_PROG(min_tso_segs, 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
92
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
1001
if (!sock) {
tools/testing/selftests/bpf/test_kmods/bpf_testmod.c
1007
err = kernel_bind(sock, (struct sockaddr_unsized *)&args->addr, args->addrlen);
tools/testing/selftests/bpf/test_kmods/bpf_testmod.c
1020
if (!sock) {
tools/testing/selftests/bpf/test_kmods/bpf_testmod.c
1026
err = kernel_listen(sock, 128);
tools/testing/selftests/bpf/test_kmods/bpf_testmod.c
1051
if (!sock) {
tools/testing/selftests/bpf/test_kmods/bpf_testmod.c
1057
err = kernel_sendmsg(sock, &msg, &iov, 1, args->msglen);
tools/testing/selftests/bpf/test_kmods/bpf_testmod.c
1084
if (!sock) {
tools/testing/selftests/bpf/test_kmods/bpf_testmod.c
1090
err = sock_sendmsg(sock, &msg);
tools/testing/selftests/bpf/test_kmods/bpf_testmod.c
1104
if (!sock) {
tools/testing/selftests/bpf/test_kmods/bpf_testmod.c
1110
err = kernel_getsockname(sock, (struct sockaddr *)&args->addr);
tools/testing/selftests/bpf/test_kmods/bpf_testmod.c
1128
if (!sock) {
tools/testing/selftests/bpf/test_kmods/bpf_testmod.c
1134
err = kernel_getpeername(sock, (struct sockaddr *)&args->addr);
tools/testing/selftests/bpf/test_kmods/bpf_testmod.c
1874
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
746
__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
751
__bpf_kfunc int bpf_kfunc_call_test2(struct sock *sk, u32 a, u32 b)
tools/testing/selftests/bpf/test_kmods/bpf_testmod.c
756
__bpf_kfunc struct sock *bpf_kfunc_call_test3(struct sock *sk)
tools/testing/selftests/bpf/test_kmods/bpf_testmod.c
922
if (sock) {
tools/testing/selftests/bpf/test_kmods/bpf_testmod.c
943
proto, &sock);
tools/testing/selftests/bpf/test_kmods/bpf_testmod.c
950
sock->sk->sk_sndtimeo = CONNECT_TIMEOUT_SEC * HZ;
tools/testing/selftests/bpf/test_kmods/bpf_testmod.c
961
if (sock) {
tools/testing/selftests/bpf/test_kmods/bpf_testmod.c
962
sock_release(sock);
tools/testing/selftests/bpf/test_kmods/bpf_testmod.c
963
sock = NULL;
tools/testing/selftests/bpf/test_kmods/bpf_testmod.c
978
if (!sock) {
tools/testing/selftests/bpf/test_kmods/bpf_testmod.c
984
err = kernel_connect(sock, (struct sockaddr_unsized *)&args->addr,
tools/testing/selftests/bpf/test_kmods/bpf_testmod_kfunc.h
108
__u64 bpf_kfunc_call_test1(struct sock *sk, __u32 a, __u64 b,
tools/testing/selftests/bpf/test_kmods/bpf_testmod_kfunc.h
110
int bpf_kfunc_call_test2(struct sock *sk, __u32 a, __u32 b) __ksym;
tools/testing/selftests/bpf/test_kmods/bpf_testmod_kfunc.h
111
struct sock *bpf_kfunc_call_test3(struct sock *sk) __ksym;
tools/testing/selftests/bpf/test_progs.c
1360
static int send_message(int sock, const struct msg *msg)
tools/testing/selftests/bpf/test_progs.c
1366
return send(sock, msg, sizeof(*msg), 0);
tools/testing/selftests/bpf/test_progs.c
1369
static int recv_message(int sock, struct msg *msg)
tools/testing/selftests/bpf/test_progs.c
1375
ret = recv(sock, msg, sizeof(*msg), 0);
tools/testing/selftests/bpf/test_progs.c
1764
static void worker_main_send_log(int sock, char *log_buf, size_t log_cnt)
tools/testing/selftests/bpf/test_progs.c
1787
assert(send_message(sock, &msg_log) >= 0);
tools/testing/selftests/bpf/test_progs.c
1802
static int worker_main_send_subtests(int sock, struct test_state *state)
tools/testing/selftests/bpf/test_progs.c
1828
if (send_message(sock, &msg) < 0) {
tools/testing/selftests/bpf/test_progs.c
1836
worker_main_send_log(sock, subtest_state->log_buf, subtest_state->log_cnt);
tools/testing/selftests/bpf/test_progs.c
1849
static int worker_main(int sock)
tools/testing/selftests/bpf/test_progs.c
1858
if (recv_message(sock, &msg) < 0)
tools/testing/selftests/bpf/test_progs.c
1894
if (send_message(sock, &msg) < 0) {
tools/testing/selftests/bpf/test_progs.c
1901
worker_main_send_log(sock, state->log_buf, state->log_cnt);
tools/testing/selftests/bpf/test_progs.c
1910
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
1351
long current, sock;
tools/testing/selftests/cgroup/test_memcontrol.c
1357
sock = cg_read_key_long(cgroup, "memory.stat", "sock ");
tools/testing/selftests/cgroup/test_memcontrol.c
1359
if (current < 0 || sock < 0)
tools/testing/selftests/cgroup/test_memcontrol.c
1363
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
825
int sock;
tools/testing/selftests/namespaces/nsid_test.c
839
sock = socket(AF_UNIX, SOCK_STREAM, 0);
tools/testing/selftests/namespaces/nsid_test.c
840
ASSERT_GE(sock, 0);
tools/testing/selftests/namespaces/nsid_test.c
844
ret = getsockopt(sock, SOL_SOCKET, SO_NETNS_COOKIE, &netns_cookie, &optlen);
tools/testing/selftests/namespaces/nsid_test.c
857
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
1333
static int netlink_sock_bind(int *sock, uint32_t *seq, int proto, uint32_t groups)
tools/testing/selftests/net/ipsec.c
1342
if (netlink_sock(sock, seq, proto)) {
tools/testing/selftests/net/ipsec.c
1347
if (bind(*sock, (struct sockaddr *)&snl, sizeof(snl)) < 0) {
tools/testing/selftests/net/ipsec.c
1353
if (getsockname(*sock, (struct sockaddr *)&snl, &addr_len) < 0) {
tools/testing/selftests/net/ipsec.c
1368
close(*sock);
tools/testing/selftests/net/ipsec.c
196
static int netlink_sock(int *sock, uint32_t *seq_nr, int proto)
tools/testing/selftests/net/ipsec.c
198
if (*sock > 0) {
tools/testing/selftests/net/ipsec.c
203
*sock = socket(AF_NETLINK, SOCK_RAW | SOCK_CLOEXEC, proto);
tools/testing/selftests/net/ipsec.c
204
if (*sock <= 0) {
tools/testing/selftests/net/ipsec.c
289
static int netlink_check_answer(int sock)
tools/testing/selftests/net/ipsec.c
297
if (recv(sock, &answer, sizeof(answer), 0) < 0) {
tools/testing/selftests/net/ipsec.c
312
static int veth_add(int sock, uint32_t seq, const char *peera, int ns_a,
tools/testing/selftests/net/ipsec.c
355
if (send(sock, &req, req.nh.nlmsg_len, 0) < 0) {
tools/testing/selftests/net/ipsec.c
359
return netlink_check_answer(sock);
tools/testing/selftests/net/ipsec.c
362
static int ip4_addr_set(int sock, uint32_t seq, const char *intf,
tools/testing/selftests/net/ipsec.c
397
if (send(sock, &req, req.nh.nlmsg_len, 0) < 0) {
tools/testing/selftests/net/ipsec.c
401
return netlink_check_answer(sock);
tools/testing/selftests/net/ipsec.c
404
static int link_set_up(int sock, uint32_t seq, const char *intf)
tools/testing/selftests/net/ipsec.c
423
if (send(sock, &req, req.nh.nlmsg_len, 0) < 0) {
tools/testing/selftests/net/ipsec.c
427
return netlink_check_answer(sock);
tools/testing/selftests/net/ipsec.c
430
static int ip4_route_set(int sock, uint32_t seq, const char *intf,
tools/testing/selftests/net/ipsec.c
461
if (send(sock, &req, req.nh.nlmsg_len, 0) < 0) {
tools/testing/selftests/net/ipsec.c
466
return netlink_check_answer(sock);
tools/testing/selftests/net/ipsec.c
627
unsigned int *server_port, int sock[2])
tools/testing/selftests/net/ipsec.c
633
sock[0] = socket(AF_INET, SOCK_DGRAM, 0);
tools/testing/selftests/net/ipsec.c
634
if (sock[0] < 0) {
tools/testing/selftests/net/ipsec.c
643
if (bind(sock[0], (struct sockaddr *)&server, s_len)) {
tools/testing/selftests/net/ipsec.c
648
if (getsockname(sock[0], (struct sockaddr *)&server, &s_len)) {
tools/testing/selftests/net/ipsec.c
655
if (setsockopt(sock[0], SOL_SOCKET, SO_RCVTIMEO, (const char *)&t, sizeof t)) {
tools/testing/selftests/net/ipsec.c
660
sock[1] = socket(AF_INET, SOCK_DGRAM, 0);
tools/testing/selftests/net/ipsec.c
661
if (sock[1] < 0) {
tools/testing/selftests/net/ipsec.c
669
close(sock[0]);
tools/testing/selftests/net/ipsec.c
673
static int udp_ping_send(int sock[2], in_addr_t dest_ip, unsigned int port,
tools/testing/selftests/net/ipsec.c
685
s_bytes = sendto(sock[1], buf, buf_len, 0, dest_addr, sizeof(server));
tools/testing/selftests/net/ipsec.c
694
r_bytes = recv(sock[0], sock_buf, buf_len, 0);
tools/testing/selftests/net/ipsec.c
710
static int udp_ping_reply(int sock[2], in_addr_t dest_ip, unsigned int port,
tools/testing/selftests/net/ipsec.c
722
r_bytes = recv(sock[0], sock_buf, buf_len, 0);
tools/testing/selftests/net/ipsec.c
737
s_bytes = sendto(sock[1], buf, buf_len, 0, dest_addr, sizeof(server));
tools/testing/selftests/net/ipsec.c
749
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
1309
int sock;
tools/testing/selftests/net/mptcp/pm_nl_ctl.c
1330
sock = socket(family, SOCK_STREAM, IPPROTO_MPTCP);
tools/testing/selftests/net/mptcp/pm_nl_ctl.c
1331
if (sock < 0)
tools/testing/selftests/net/mptcp/pm_nl_ctl.c
1334
if (setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, &enable, sizeof(enable))) {
tools/testing/selftests/net/mptcp/pm_nl_ctl.c
1335
close(sock);
tools/testing/selftests/net/mptcp/pm_nl_ctl.c
1339
err = bind(sock, (struct sockaddr *)&addr,
tools/testing/selftests/net/mptcp/pm_nl_ctl.c
1343
if (err == 0 && listen(sock, 30) == 0)
tools/testing/selftests/net/mptcp/pm_nl_ctl.c
1346
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
1531
static int ovpn_get_mcast_id(struct nl_sock *sock, const char *family,
tools/testing/selftests/net/ovpn/ovpn-cli.c
1552
ctrlid = genl_ctrl_resolve(sock, "nlctrl");
tools/testing/selftests/net/ovpn/ovpn-cli.c
1559
ret = nl_send_auto_complete(sock, msg);
tools/testing/selftests/net/ovpn/ovpn-cli.c
1570
nl_recvmsgs(sock, cb);
tools/testing/selftests/net/ovpn/ovpn-cli.c
1583
struct nl_sock *sock;
tools/testing/selftests/net/ovpn/ovpn-cli.c
1587
sock = nl_socket_alloc();
tools/testing/selftests/net/ovpn/ovpn-cli.c
1588
if (!sock) {
tools/testing/selftests/net/ovpn/ovpn-cli.c
1594
nl_socket_set_buffer_size(sock, 8192, 8192);
tools/testing/selftests/net/ovpn/ovpn-cli.c
1596
ret = genl_connect(sock);
tools/testing/selftests/net/ovpn/ovpn-cli.c
1603
mcid = ovpn_get_mcast_id(sock, OVPN_FAMILY_NAME, OVPN_MCGRP_PEERS);
tools/testing/selftests/net/ovpn/ovpn-cli.c
1610
ret = nl_socket_add_membership(sock, mcid);
tools/testing/selftests/net/ovpn/ovpn-cli.c
1623
int err = nl_recvmsgs(sock, cb);
tools/testing/selftests/net/ovpn/ovpn-cli.c
1636
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/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;