/kernel/linux/linux-5.10/include/crypto/ |
D | if_alg.h | 187 return max_t(int, max_t(int, sk->sk_sndbuf & PAGE_MASK, PAGE_SIZE) - in af_alg_sndbuf()
|
/kernel/linux/linux-5.10/crypto/ |
D | algif_hash.c | 73 if (limit > sk->sk_sndbuf) in hash_sendmsg() 74 limit = sk->sk_sndbuf; in hash_sendmsg()
|
/kernel/linux/linux-5.10/net/rds/ |
D | tcp_send.c | 201 if ((refcount_read(&sk->sk_wmem_alloc) << 1) <= sk->sk_sndbuf && in rds_tcp_write_space()
|
D | tcp.c | 499 sk->sk_sndbuf = rtn->sndbuf_size; in rds_tcp_tune()
|
/kernel/linux/linux-5.10/include/net/ |
D | sock.h | 438 int sk_sndbuf; member 956 return READ_ONCE(sk->sk_sndbuf) - READ_ONCE(sk->sk_wmem_queued); in sk_stream_wspace() 1279 if (READ_ONCE(sk->sk_wmem_queued) >= READ_ONCE(sk->sk_sndbuf)) in __sk_stream_memory_free() 2270 amt = sk->sk_sndbuf - refcount_read(&sk->sk_wmem_alloc); in sock_wspace() 2325 val = min(sk->sk_sndbuf, sk->sk_wmem_queued >> 1); in sk_stream_moderate_sndbuf() 2327 WRITE_ONCE(sk->sk_sndbuf, max_t(u32, val, SOCK_MIN_SNDBUF)); in sk_stream_moderate_sndbuf() 2366 return refcount_read(&sk->sk_wmem_alloc) < (READ_ONCE(sk->sk_sndbuf) >> 1); in sock_writeable()
|
/kernel/linux/linux-5.10/net/core/ |
D | sock.c | 897 WRITE_ONCE(sk->sk_sndbuf, in sock_setsockopt() 1334 v.val = sk->sk_sndbuf; in sock_getsockopt() 2196 refcount_read(&sk->sk_wmem_alloc) < READ_ONCE(sk->sk_sndbuf)) { in sock_wmalloc() 2299 if (refcount_read(&sk->sk_wmem_alloc) < READ_ONCE(sk->sk_sndbuf)) in sock_wait_for_wmem() 2334 if (sk_wmem_alloc_get(sk) < READ_ONCE(sk->sk_sndbuf)) in sock_alloc_send_pskb() 2658 if (sk->sk_wmem_queued + size >= sk->sk_sndbuf) in __sk_mem_raise_allocated() 2920 if ((refcount_read(&sk->sk_wmem_alloc) << 1) <= READ_ONCE(sk->sk_sndbuf)) { in sock_def_write_space() 2977 sk->sk_sndbuf = sysctl_wmem_default; in sock_init_data_uid() 3312 mem[SK_MEMINFO_SNDBUF] = READ_ONCE(sk->sk_sndbuf); in sk_get_meminfo()
|
/kernel/linux/linux-5.10/include/linux/ |
D | atmdev.h | 266 sk_atm(vcc)->sk_sndbuf; in atm_may_send()
|
/kernel/linux/linux-5.10/net/vmw_vsock/ |
D | hyperv_transport.c | 367 sndbuf = max_t(int, sk->sk_sndbuf, RINGBUFFER_HVS_SND_SIZE); in hvs_open_connection() 442 sk->sk_sndbuf = RINGBUFFER_HVS_SND_SIZE; in hvs_sock_init()
|
/kernel/linux/linux-5.10/net/atm/ |
D | ioctl.c | 70 error = put_user(sk->sk_sndbuf - sk_wmem_alloc_get(sk), in do_vcc_ioctl()
|
D | proc.c | 199 sk_wmem_alloc_get(sk), sk->sk_sndbuf, in vcc_info()
|
D | common.c | 72 sk_wmem_alloc_get(sk), size, sk->sk_sndbuf); in vcc_tx_ready() 105 refcount_read(&sk->sk_wmem_alloc)) <= sk->sk_sndbuf; in vcc_writable()
|
/kernel/linux/linux-5.10/net/smc/ |
D | af_smc.c | 305 nsk->sk_sndbuf = osk->sk_sndbuf; in smc_copy_sock_settings() 1821 new_smc->sk.sk_sndbuf = lsmc->sk.sk_sndbuf; in smc_tcp_listen_work() 2471 smc->sk.sk_sndbuf = max(smc->clcsock->sk->sk_sndbuf, SMC_BUF_MIN_SIZE); in smc_create()
|
/kernel/linux/linux-5.10/net/netrom/ |
D | af_netrom.c | 493 sk->sk_sndbuf = osk->sk_sndbuf; in nr_make_new() 1212 amount = sk->sk_sndbuf - sk_wmem_alloc_get(sk); in nr_ioctl()
|
/kernel/linux/linux-5.10/net/sctp/ |
D | proc.c | 288 sk->sk_sndbuf, in sctp_assocs_seq_show()
|
D | diag.c | 174 mem[SK_MEMINFO_SNDBUF] = sk->sk_sndbuf; in inet_sctp_diag_fill()
|
/kernel/linux/linux-5.10/net/rose/ |
D | af_rose.c | 579 sk->sk_sndbuf = osk->sk_sndbuf; in rose_make_new() 1286 amount = sk->sk_sndbuf - sk_wmem_alloc_get(sk); in rose_ioctl()
|
/kernel/linux/linux-5.10/net/x25/ |
D | af_x25.c | 608 sk->sk_sndbuf = osk->sk_sndbuf; in x25_make_new() 1389 amount = sk->sk_sndbuf - sk_wmem_alloc_get(sk); in x25_ioctl()
|
/kernel/linux/linux-5.10/net/caif/ |
D | caif_socket.c | 625 if (size > ((sk->sk_sndbuf >> 1) - 64)) in caif_stream_sendmsg() 626 size = (sk->sk_sndbuf >> 1) - 64; in caif_stream_sendmsg()
|
/kernel/linux/linux-5.10/net/ax25/ |
D | af_ax25.c | 940 sk->sk_sndbuf = osk->sk_sndbuf; in ax25_make_new() 1741 amount = sk->sk_sndbuf - sk_wmem_alloc_get(sk); in ax25_ioctl()
|
/kernel/linux/linux-5.10/drivers/net/wireguard/ |
D | socket.c | 344 sock->sk->sk_sndbuf = INT_MAX; in set_sock_opts()
|
/kernel/linux/linux-5.10/drivers/net/ |
D | tun.c | 1585 if (tfile->socket.sk->sk_sndbuf != INT_MAX) in tun_can_build_skb() 2819 tun->sndbuf = tfile->socket.sk->sk_sndbuf; in tun_set_iff() 2939 tfile->socket.sk->sk_sndbuf = tun->sndbuf; in tun_set_sndbuf() 3229 sndbuf = tfile->socket.sk->sk_sndbuf; in __tun_chr_ioctl() 3441 tfile->sk.sk_sndbuf = INT_MAX; in tun_chr_open()
|
/kernel/linux/linux-5.10/net/mptcp/ |
D | protocol.c | 1106 *sndbuf = msk->first->sk_sndbuf; in mptcp_subflow_get_send() 1238 sndbuf > READ_ONCE(sk->sk_sndbuf)) in mptcp_sendmsg() 1239 WRITE_ONCE(sk->sk_sndbuf, sndbuf); in mptcp_sendmsg() 1876 sk->sk_sndbuf = sock_net(sk)->ipv4.sysctl_tcp_wmem[1]; in mptcp_init_sock()
|
/kernel/linux/linux-5.10/net/bluetooth/ |
D | af_bluetooth.c | 508 amount = sk->sk_sndbuf - sk_wmem_alloc_get(sk); in bt_sock_ioctl()
|
/kernel/linux/linux-5.10/net/phonet/ |
D | socket.c | 349 refcount_read(&sk->sk_wmem_alloc) < sk->sk_sndbuf && in pn_socket_poll()
|
/kernel/linux/linux-5.10/net/unix/ |
D | af_unix.c | 453 (refcount_read(&sk->sk_wmem_alloc) << 2) <= sk->sk_sndbuf; in unix_writable() 1728 if (len > sk->sk_sndbuf - 32) in unix_dgram_sendmsg() 1930 size = min_t(int, size, (sk->sk_sndbuf >> 1) - 64); in unix_stream_sendmsg()
|